@ihabdevteam/core 0.309.0 → 0.311.0

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/dist/components.cjs.js +15 -15
  3. package/dist/components.esm.css +2 -2
  4. package/dist/hooks.cjs.js +3 -3
  5. package/dist/i18n.cjs.js +3 -3
  6. package/dist/ihabdevteam-core.cjs.js +185 -185
  7. package/dist/ihabdevteam-core.d.ts +120 -10
  8. package/dist/packages/core/src/components/CountTile.css +4 -0
  9. package/dist/packages/core/src/components/CountTile.d.ts +11 -1
  10. package/dist/packages/core/src/components/CountTile.js +2 -2
  11. package/dist/packages/core/src/components/Popup/Popup.css +12 -0
  12. package/dist/packages/core/src/components/Popup/Popup.d.ts +11 -0
  13. package/dist/packages/core/src/components/Popup/Popup.js +4 -2
  14. package/dist/packages/core/src/components/Tooltip/TrainingTooltip.d.ts +31 -3
  15. package/dist/packages/core/src/components/Tooltip/TrainingTooltip.js +25 -13
  16. package/dist/packages/core/src/components/Training/TrainingBlock.css +18 -0
  17. package/dist/packages/core/src/components/Training/TrainingBlockGrid.d.ts +27 -0
  18. package/dist/packages/core/src/components/Training/TrainingBlockGrid.js +65 -0
  19. package/dist/packages/core/src/components/Training/TrainingStep.d.ts +10 -2
  20. package/dist/packages/core/src/components/Training/TrainingStep.js +2 -2
  21. package/dist/packages/core/src/components/Training/TrainingStepCard.d.ts +4 -1
  22. package/dist/packages/core/src/components/Training/TrainingStepCard.js +2 -2
  23. package/dist/packages/core/src/components/Training/TrainingStepCardOrder.d.ts +4 -1
  24. package/dist/packages/core/src/components/Training/TrainingStepCardOrder.js +2 -2
  25. package/dist/packages/core/src/components/Training/TrainingStepConfirm.d.ts +4 -1
  26. package/dist/packages/core/src/components/Training/TrainingStepConfirm.js +2 -2
  27. package/dist/packages/core/src/components/Training/TrainingStepConfirmWithText.d.ts +4 -1
  28. package/dist/packages/core/src/components/Training/TrainingStepConfirmWithText.js +2 -2
  29. package/dist/packages/core/src/components/Training/TrainingStepOrderList.d.ts +1 -1
  30. package/dist/packages/core/src/components/Training/TrainingStepOrderList.js +2 -2
  31. package/dist/packages/core/src/components/Training/trainingStepOrderListTypes.d.ts +3 -0
  32. package/dist/packages/core/src/components/Training/trainingStepOrderListTypes.js +0 -4
  33. package/dist/packages/core/src/components.d.ts +3 -1
  34. package/dist/packages/core/src/components.js +1 -0
  35. package/dist/packages/core/src/i18n/locales/en.json +0 -1
  36. package/dist/packages/core/src/i18n/locales/ko.json +0 -1
  37. package/dist/packages/core/src/utils/blockGrid.d.ts +16 -0
  38. package/dist/packages/core/src/utils/blockGrid.js +28 -0
  39. package/dist/packages/core/src/utils.d.ts +1 -0
  40. package/dist/packages/core/src/utils.js +1 -0
  41. package/dist/packages/core/src/version.d.ts +1 -1
  42. package/dist/packages/core/src/version.js +1 -1
  43. package/dist/utils.cjs.js +1 -1
  44. package/package.json +1 -1
@@ -28,7 +28,7 @@
28
28
  *
29
29
  * This source code is licensed under the ISC license.
30
30
  * See the LICENSE file in the root directory of this source tree.
31
- */const Fc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Ic=o.createContext({}),Oc=()=>o.useContext(Ic),Hc=o.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:s="",children:i,iconNode:l,...u},c)=>{const{size:d=24,strokeWidth:m=2,absoluteStrokeWidth:p=!1,color:f="currentColor",className:y=""}=Oc()??{},v=r??p?Number(a??m)*24/Number(t??d):a??m;return o.createElement("svg",{ref:c,...wr,width:t??d??wr.width,height:t??d??wr.height,stroke:e??f,strokeWidth:v,className:us("lucide",y,s),...!i&&!Fc(u)&&{"aria-hidden":"true"},...u},[...l.map(([C,b])=>o.createElement(C,b)),...Array.isArray(i)?i:[i]])});/**
31
+ */const Fc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Ic=o.createContext({}),Oc=()=>o.useContext(Ic),Hc=o.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:s="",children:i,iconNode:l,...u},c)=>{const{size:d=24,strokeWidth:m=2,absoluteStrokeWidth:p=!1,color:f="currentColor",className:y=""}=Oc()??{},x=r??p?Number(a??m)*24/Number(t??d):a??m;return o.createElement("svg",{ref:c,...wr,width:t??d??wr.width,height:t??d??wr.height,stroke:e??f,strokeWidth:x,className:us("lucide",y,s),...!i&&!Fc(u)&&{"aria-hidden":"true"},...u},[...l.map(([h,g])=>o.createElement(h,g)),...Array.isArray(i)?i:[i]])});/**
32
32
  * @license lucide-react v1.38.0 - ISC
33
33
  *
34
34
  * This source code is licensed under the ISC license.
@@ -824,8 +824,8 @@
824
824
  * This source code is licensed under the ISC license.
825
825
  * See the LICENSE file in the root directory of this source tree.
826
826
  */const f0=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],g0=ee("thumbs-up",f0),ks={"alert-triangle":ds,"align-start-vertical":Wc,anchor:Bh,armchair:kh,"arrow-down":Uc,"arrow-left":Kc,"arrow-right":Zc,"arrow-right-left":Jc,"arrow-up-a-z":Dh,"audio-lines":ed,baby:nd,ban:rd,"bar-chart-2":Sh,bell:sd,"book-marked":ld,"book-open":cd,"bow-arrow":pd,braces:hd,bug:fd,calendar:ws,"calendar-check":bd,"calendar-days":vd,camera:_d,car:Mh,"chart-column":Bd,"chart-line":kd,"chart-pie":Dd,check:ps,"chevron-down":Bs,"chevron-left":ms,"chevron-right":hs,"chevron-up":As,circle:u0,"clipboard-list":Md,coffee:$h,combine:$d,copy:Pd,"chevrons-left-right-ellipsis":Id,"credit-card":Hd,database:Cs,diff:Wd,download:fs,ear:Gd,edit:Yd,"edit-2":Xd,"edit-3":Qd,ellipsis:gs,eraser:np,"external-link":rp,eye:sp,"file-text":lp,"flip-horizontal":cp,"folder-open":pp,"folder-plus":hp,gamepad:fp,"gamepad-2":Ph,clock:Ih,target:Hh,percent:Vh,gavel:bp,"git-merge":bs,globe:xp,"grip-vertical":wp,headphones:Ap,heart:Np,home:Ep,inbox:qh,info:jp,"key-round":Mp,landmark:$p,layers:Pp,"layout-dashboard":Ip,leaf:Hp,lightbulb:Vp,link:qp,"link-2":Gp,"link-2-off":Yp,list:Xp,"list-checks":Qp,"list-ordered":t1,"list-tree":Gh,loader:a1,lock:o1,"log-out":i1,mail:u1,"map-pin":d1,menu:m0,"message-circle":m1,"message-circle-question-mark":C1,"message-square":g1,"message-square-more":Yh,"message-square-text":y1,minus:Xh,"minus-circle":x1,moon:C0,"more-horizontal":gs,package:w1,palette:A1,"party-popper":N1,pause:E1,pencil:j1,phone:M1,play:$1,"play-circle":P1,plus:I1,printer:H1,"refresh-cw":V1,repeat:q1,replace:G1,rocket:Y1,"rotate-ccw":X1,"rotate-cw":Q1,salad:tm,"scan-search":am,search:im,"circle-alert":ys,"alert-circle":ys,"check-circle":vs,scissors:um,"search-x":dm,send:mm,settings:Cm,"share-2":Qh,"shield-check":gm,"shopping-cart":ym,shuffle:xm,"skip-back":wm,"skip-forward":Am,sparkles:t0,square:Nm,star:Em,store:jm,"sun-medium":Mm,table:$m,"table-2":Pm,tag:Im,terminal:Hm,"text-cursor-input":Vm,"text-initial":qm,"thumbs-up":g0,ticket:Gm,trash:Xm,triangle:d0,"trash-2":Ym,"trending-up":Qm,"triangle-alert":ds,trophy:th,type:a0,unlink:ah,upload:oh,user:Br,"user-plus":lh,"user-round":ch,"user-round-check":ph,users:hh,"users-round":fh,volume:o0,"volume-2":xs,wrench:yh,x:_s,zap:_h};function b0(e){return ks[e]??null}const Ns=new Set;function y0(e){return Zn&&!(e in ks)&&!Ns.has(e)&&(Ns.add(e),console.warn(`[ihabdevteam-core] lucide \uC544\uC774\uCF58 '${e}' \uC774 \uC815\uC801 \uBAA9\uB85D\uC5D0 \uC5C6\uC5B4 \uB80C\uB354\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. utils/lucideIconSet.ts \uC758 STATIC_LUCIDE_ICONS \uC5D0 \uCD94\uAC00\uD558\uC138\uC694.`)),Promise.resolve(null)}const v0=e=>e.replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Za-z])([0-9])/g,"$1-$2").replace(/[_ ]+/g,"-").toLowerCase();function x0(e){const t=e.toLowerCase();if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:")||e.includes("/assets/")||/\.(png|jpe?g|gif|webp|avif|bmp|ico)$/i.test(t))return null;const a=(e.split("/").pop()||"").replace(/\.svg$/,"");return a?v0(a):null}const Ds=new Map;function _0(e){const t=typeof e=="string"?x0(e):null,a=t?b0(t)??Ds.get(t)??null:null,[r,s]=o.useState(null);return o.useEffect(()=>{if(!t||a)return;let i=!1;return y0(t).then(l=>{Ds.set(t,l),i||s(l)}),()=>{i=!0}},[t,a]),a??r}/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function Es(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function w0(e){if(Array.isArray(e))return e}function B0(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,s,i,l,u=[],c=!0,d=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(c=(r=i.call(a)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(m){d=!0,s=m}finally{try{if(!c&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(d)throw s}}return u}}function A0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
827
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k0(e,t){return w0(e)||B0(e,t)||N0(e,t)||A0()}function N0(e,t){if(e){if(typeof e=="string")return Es(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Es(e,t):void 0}}const Ss=Object.entries,js=Object.setPrototypeOf,D0=Object.isFrozen,E0=Object.getPrototypeOf,S0=Object.getOwnPropertyDescriptor;let Dt=Object.freeze,St=Object.seal,Xn=Object.create,Ts=typeof Reflect<"u"&&Reflect,Ar=Ts.apply,kr=Ts.construct;Dt||(Dt=function(t){return t}),St||(St=function(t){return t}),Ar||(Ar=function(t,a){for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];return t.apply(a,s)}),kr||(kr=function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return new t(...r)});const On=kt(Array.prototype.forEach),j0=kt(Array.prototype.lastIndexOf),Ms=kt(Array.prototype.pop),ha=kt(Array.prototype.push),T0=kt(Array.prototype.splice),Jn=Array.isArray,Ca=kt(String.prototype.toLowerCase),Nr=kt(String.prototype.toString),Ls=kt(String.prototype.match),fa=kt(String.prototype.replace),$s=kt(String.prototype.indexOf),M0=kt(String.prototype.trim),L0=kt(Number.prototype.toString),$0=kt(Boolean.prototype.toString),Rs=typeof BigInt>"u"?null:kt(BigInt.prototype.toString),Ps=typeof Symbol>"u"?null:kt(Symbol.prototype.toString),Kt=kt(Object.prototype.hasOwnProperty),ga=kt(Object.prototype.toString),$t=kt(RegExp.prototype.test),Hn=R0(TypeError);function kt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return Ar(e,t,r)}}function R0(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return kr(e,a)}}function it(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ca;if(js&&js(e,null),!Jn(t))return e;let r=t.length;for(;r--;){let s=t[r];if(typeof s=="string"){const i=a(s);i!==s&&(D0(t)||(t[r]=i),s=i)}e[s]=!0}return e}function P0(e){for(let t=0;t<e.length;t++)Kt(e,t)||(e[t]=null);return e}function tn(e){const t=Xn(null);for(const r of Ss(e)){var a=k0(r,2);const s=a[0],i=a[1];Kt(e,s)&&(Jn(i)?t[s]=P0(i):i&&typeof i=="object"&&i.constructor===Object?t[s]=tn(i):t[s]=i)}return t}function F0(e){switch(typeof e){case"string":return e;case"number":return L0(e);case"boolean":return $0(e);case"bigint":return Rs?Rs(e):"0";case"symbol":return Ps?Ps(e):"Symbol()";case"undefined":return ga(e);case"function":case"object":{if(e===null)return ga(e);const t=e,a=ln(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:ga(r)}return ga(e)}default:return ga(e)}}function ln(e,t){for(;e!==null;){const r=S0(e,t);if(r){if(r.get)return kt(r.get);if(typeof r.value=="function")return kt(r.value)}e=E0(e)}function a(){return null}return a}function I0(e){try{return $t(e,""),!0}catch{return!1}}const Fs=Dt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Dr=Dt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Er=Dt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),O0=Dt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Sr=Dt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),H0=Dt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Is=Dt(["#text"]),Os=Dt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),jr=Dt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Hs=Dt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ha=Dt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z0=St(/{{[\w\W]*|^[\w\W]*}}/g),V0=St(/<%[\w\W]*|^[\w\W]*%>/g),W0=St(/\${[\w\W]*/g),q0=St(/^data-[\-\w.\u00B7-\uFFFF]+$/),U0=St(/^aria-[\-\w]+$/),zs=St(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G0=St(/^(?:\w+script|data):/i),K0=St(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y0=St(/^html$/i),Z0=St(/^[a-z][.\w]*(-[.\w]+)+$/i),Vs=St(/<[/\w!]/g),Ws=St(/<[/\w]/g),X0=St(/<\/no(script|embed|frames)/i),J0=St(/\/>/i),nn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qs=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Q0=Dt(it({},qs)),eC=(function(){const e={};return On(qs,t=>{e[t]=St(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Dt(e)})(),tC=function(){return typeof window>"u"?null:window},nC=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";a&&a.hasAttribute(s)&&(r=a.getAttribute(s));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Us=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},jn=function(t,a,r,s){return Kt(t,a)&&Jn(t[a])?it(s.base?tn(s.base):{},t[a],s.transform):r},Tr=function(t,a,r){const s=Kt(t,a)?t[a]:void 0;return s&&typeof s=="object"?tn(s):r()};function Gs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tC();const t=Ce=>Gs(Ce);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==nn.document||!e.Element)return t.isSupported=!1,t;let a=e.document;const r=a,s=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,l=e.Node,u=e.Element,c=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const m=e.DOMParser,p=e.trustedTypes,f=u.prototype,y=ln(f,"cloneNode"),v=ln(f,"remove"),C=ln(f,"nextSibling"),b=ln(f,"childNodes"),_=ln(f,"parentNode"),h=ln(f,"shadowRoot"),w=ln(f,"attributes"),g=l&&l.prototype?ln(l.prototype,"nodeType"):null,B=l&&l.prototype?ln(l.prototype,"nodeName"):null,x=l&&l.prototype?ln(l.prototype,"ownerDocument"):null,N=function(T){return g?g(T):T.nodeType},k=function(T){return B?B(T):T.nodeName};if(typeof i=="function"){const Ce=a.createElement("template");Ce.content&&Ce.content.ownerDocument&&(a=Ce.content.ownerDocument)}let A,S="",E,H=!1,$=0;const K=function(){if($>0)throw Hn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},L=function(T){K(),$++;try{return A.createHTML(T)}finally{$--}},j=function(T){K(),$++;try{return A.createScriptURL(T)}finally{$--}},O=function(){return H||(E=nC(p,s),H=!0),E},U=a,te=U.implementation,z=U.createNodeIterator,q=U.createDocumentFragment,R=U.getElementsByTagName,W=r.importNode;let D=Us();t.isSupported=typeof Ss=="function"&&typeof _=="function"&&te&&te.createHTMLDocument!==void 0;const P=z0,M=V0,F=W0,I=q0,Z=U0,J=G0,Y=K0,ne=Z0;let ie=zs,ue=null;const Se=it({},[...Fs,...Dr,...Er,...Sr,...Is]);let V=null;const oe=it({},[...Os,...jr,...Hs,...Ha]);let ge=Object.seal(Xn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),De=null,fe=null;const ae=Object.seal(Xn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let de=!0,pe=!0,he=!1,be=!0,Pe=!1,$e=!0,Ie=!1,Fe=!1,Oe=null,dt=null,lt=!1,ot=!1,ct=!1,ke=!1,He=!0,Be=!1;const Xe="user-content-";let X=!0,le=!1,we={},Ne=null;const Ve=it({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let et=null;const pt=it({},["audio","video","img","source","image","track"]);let ut=null;const ft=it({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gt="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",Ue="http://www.w3.org/1999/xhtml";let We=Ue,Ke=!1,rt=null;const bt=it({},[gt,Qe,Ue],Nr),Ye=Dt(["mi","mo","mn","ms","mtext"]);let ht=it({},Ye);const Nt=Dt(["annotation-xml"]);let Et=it({},Nt);const Me=it({},["title","style","font","a","script"]);let nt=null;const Lt=["application/xhtml+xml","text/html"],Xt="text/html";let at=null,Bt=null;const At=a.createElement("form"),vt=function(T){return T instanceof RegExp||T instanceof Function},an=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Bt&&Bt===T)return;(!T||typeof T!="object")&&(T={}),T=tn(T),nt=Lt.indexOf(T.PARSER_MEDIA_TYPE)===-1?Xt:T.PARSER_MEDIA_TYPE,at=nt==="application/xhtml+xml"?Nr:Ca,ue=jn(T,"ALLOWED_TAGS",Se,{transform:at}),V=jn(T,"ALLOWED_ATTR",oe,{transform:at}),rt=jn(T,"ALLOWED_NAMESPACES",bt,{transform:Nr}),ut=jn(T,"ADD_URI_SAFE_ATTR",ft,{transform:at,base:ft}),et=jn(T,"ADD_DATA_URI_TAGS",pt,{transform:at,base:pt}),Ne=jn(T,"FORBID_CONTENTS",Ve,{transform:at}),De=jn(T,"FORBID_TAGS",tn({}),{transform:at}),fe=jn(T,"FORBID_ATTR",tn({}),{transform:at}),we=Kt(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?tn(T.USE_PROFILES):T.USE_PROFILES:!1,de=T.ALLOW_ARIA_ATTR!==!1,pe=T.ALLOW_DATA_ATTR!==!1,he=T.ALLOW_UNKNOWN_PROTOCOLS||!1,be=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Pe=T.SAFE_FOR_TEMPLATES||!1,$e=T.SAFE_FOR_XML!==!1,Ie=T.WHOLE_DOCUMENT||!1,ot=T.RETURN_DOM||!1,ct=T.RETURN_DOM_FRAGMENT||!1,ke=T.RETURN_TRUSTED_TYPE||!1,lt=T.FORCE_BODY||!1,He=T.SANITIZE_DOM!==!1,Be=T.SANITIZE_NAMED_PROPS||!1,X=T.KEEP_CONTENT!==!1,le=T.IN_PLACE||!1,ie=I0(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:zs,We=typeof T.NAMESPACE=="string"?T.NAMESPACE:Ue,ht=Tr(T,"MATHML_TEXT_INTEGRATION_POINTS",()=>it({},Ye)),Et=Tr(T,"HTML_INTEGRATION_POINTS",()=>it({},Nt));const G=Tr(T,"CUSTOM_ELEMENT_HANDLING",()=>Xn(null));if(ge=Xn(null),Kt(G,"tagNameCheck")&&vt(G.tagNameCheck)&&(ge.tagNameCheck=G.tagNameCheck),Kt(G,"attributeNameCheck")&&vt(G.attributeNameCheck)&&(ge.attributeNameCheck=G.attributeNameCheck),Kt(G,"allowCustomizedBuiltInElements")&&typeof G.allowCustomizedBuiltInElements=="boolean"&&(ge.allowCustomizedBuiltInElements=G.allowCustomizedBuiltInElements),St(ge),Pe&&(pe=!1),ct&&(ot=!0),we&&(ue=it({},Is),V=Xn(null),we.html===!0&&(it(ue,Fs),it(V,Os)),we.svg===!0&&(it(ue,Dr),it(V,jr),it(V,Ha)),we.svgFilters===!0&&(it(ue,Er),it(V,jr),it(V,Ha)),we.mathMl===!0&&(it(ue,Sr),it(V,Hs),it(V,Ha))),ae.tagCheck=null,ae.attributeCheck=null,Kt(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?ae.tagCheck=T.ADD_TAGS:Jn(T.ADD_TAGS)&&(ue===Se&&(ue=tn(ue)),it(ue,T.ADD_TAGS,at))),Kt(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?ae.attributeCheck=T.ADD_ATTR:Jn(T.ADD_ATTR)&&(V===oe&&(V=tn(V)),it(V,T.ADD_ATTR,at))),Kt(T,"ADD_FORBID_CONTENTS")&&Jn(T.ADD_FORBID_CONTENTS)&&(Ne===Ve&&(Ne=tn(Ne)),it(Ne,T.ADD_FORBID_CONTENTS,at)),X&&(ue["#text"]=!0),Ie&&it(ue,["html","head","body"]),ue.table&&(it(ue,["tbody"]),delete De.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw Hn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Hn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ce=A;A=T.TRUSTED_TYPES_POLICY;try{S=L("")}catch(Ee){throw A=ce,Ee}}else T.TRUSTED_TYPES_POLICY===null?(A=void 0,S=""):(A===void 0&&(A=O()),A&&typeof S=="string"&&(S=L("")));Dt&&Dt(T),Bt=T},gn=it({},[...Dr,...Er,...O0]),pn=it({},[...Sr,...H0]),mn=function(T,G,ce){return G.namespaceURI===Ue?T==="svg":G.namespaceURI===gt?T==="svg"&&(ce==="annotation-xml"||ht[ce]):!!gn[T]},Dn=function(T,G,ce){return G.namespaceURI===Ue?T==="math":G.namespaceURI===Qe?T==="math"&&Et[ce]:!!pn[T]},Fn=function(T,G,ce){return G.namespaceURI===Qe&&!Et[ce]||G.namespaceURI===gt&&!ht[ce]?!1:!pn[T]&&(Me[T]||!gn[T])},bn=function(T){let G=_(T);(!G||!G.tagName)&&(G={namespaceURI:We,tagName:"template"});const ce=Ca(T.tagName),Ee=Ca(G.tagName);return rt[T.namespaceURI]?T.namespaceURI===Qe?mn(ce,G,Ee):T.namespaceURI===gt?Dn(ce,G,Ee):T.namespaceURI===Ue?Fn(ce,G,Ee):!!(nt==="application/xhtml+xml"&&rt[T.namespaceURI]):!1},zt=function(T){ha(t.removed,{element:T});try{_(T).removeChild(T)}catch{if(v(T),!_(T))throw Hn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},on=function(T,G,ce){try{T.removeAttributeNode(G)}catch{try{T.removeAttribute(ce)}catch{}}},Vt=function(T){Jt(T);const G=b(T);if(G){const Ee=[];On(G,Le=>{ha(Ee,Le)}),On(Ee,Le=>{try{v(Le)}catch{}})}const ce=w(T);if(ce)for(let Ee=ce.length-1;Ee>=0;--Ee){const Le=ce[Ee],Ge=Le&&Le.name;typeof Ge=="string"&&on(T,Le,Ge)}},Rt=function(T,G,ce){if(!ce)try{ce=G.getAttributeNode(T)}catch{ce=null}ha(t.removed,{attribute:ce||null,from:G});try{ce?G.removeAttributeNode(ce):G.removeAttribute(T)}catch{try{G.removeAttribute(T)}catch{}}if(T==="is")if(ot||ct)try{zt(G)}catch{}else try{G.setAttribute(T,"")}catch{}},En=function(T){const G=w(T);if(G)for(let ce=G.length-1;ce>=0;--ce){const Ee=G[ce],Le=Ee&&Ee.name;typeof Le!="string"||V[at(Le)]||on(T,Ee,Le)}},Jt=function(T){const G=[T];for(;G.length>0;){const ce=G.pop();N(ce)===nn.element&&En(ce);const Le=b(ce);if(Le)for(let Ge=Le.length-1;Ge>=0;--Ge)G.push(Le[Ge])}},Sn=function(T,G){return $e?T==="patchsrc"?!0:T==="for"&&G!=="label"&&G!=="output":!1},In=function(T){if(!$e)return;const G=[T];for(;G.length>0;){const ce=G.pop(),Ee=N(ce);if(Ee===nn.processingInstruction||Ee===nn.comment&&$t(Ws,ce.data)){try{v(ce)}catch{}continue}if(Ee===nn.element){const Ge=ce,Ct=at(k(ce));try{Ge.hasAttribute&&Ge.hasAttribute("patchsrc")&&Ge.removeAttribute("patchsrc"),Ge.hasAttribute&&Ge.hasAttribute("for")&&Sn("for",Ct)&&Ge.removeAttribute("for")}catch{}}const Le=b(ce);if(Le)for(let Ge=Le.length-1;Ge>=0;--Ge)G.push(Le[Ge])}},hn=function(T){let G=null,ce=null;if(lt)T="<remove></remove>"+T;else{const Ge=Ls(T,/^[\r\n\t ]+/);ce=Ge&&Ge[0]}nt==="application/xhtml+xml"&&We===Ue&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const Ee=A?L(T):T;if(We===Ue)try{G=new m().parseFromString(Ee,nt)}catch{}if(!G||!G.documentElement){G=te.createDocument(We,"template",null);try{G.documentElement.innerHTML=Ke?S:Ee}catch{}}const Le=G.body||G.documentElement;return T&&ce&&Le.insertBefore(a.createTextNode(ce),Le.childNodes[0]||null),We===Ue?R.call(G,Ie?"html":"body")[0]:Ie?G.documentElement:Le},jt=function(T){const G=x?x(T):T.ownerDocument;return z.call(G||T,T,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Pt=function(T){return T=fa(T,P," "),T=fa(T,M," "),T=fa(T,F," "),T},Wt=function(T){var G;T.normalize();const ce=x?x(T):T.ownerDocument,Ee=z.call(ce||T,T,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Le=Ee.nextNode();for(;Le;)Le.data=Pt(Le.data),Le=Ee.nextNode();const Ge=(G=T.querySelectorAll)===null||G===void 0?void 0:G.call(T,"template");Ge&&On(Ge,Ct=>{Ft(Ct.content)&&Wt(Ct.content)})},sn=function(T){const G=B?B(T):null;return typeof G!="string"||at(G)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==w(T)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function"||T.nodeType!==g(T)||T.childNodes!==b(T)},Ft=function(T){if(!g||typeof T!="object"||T===null)return!1;try{return g(T)===nn.documentFragment}catch{return!1}},Qt=function(T){if(!g||typeof T!="object"||T===null)return!1;try{return typeof g(T)=="number"}catch{return!1}};function se(Ce,T,G){Ce.length!==0&&On(Ce,ce=>{ce.call(t,T,G,Bt)})}const xe=function(T,G){return!!($e&&T.hasChildNodes()&&!Qt(T.firstElementChild)&&$t(Vs,T.textContent)&&$t(Vs,T.innerHTML)||$e&&T.namespaceURI===Ue&&Q0[G]&&(Qt(T.firstElementChild)||typeof T.textContent=="string"&&$t(eC[G],T.textContent))||T.nodeType===nn.processingInstruction||$e&&T.nodeType===nn.comment&&$t(Ws,T.data))},je=function(T,G){if(T instanceof RegExp)return $t(T,G);if(T instanceof Function){for(var ce=arguments.length,Ee=new Array(ce>2?ce-2:0),Le=2;Le<ce;Le++)Ee[Le-2]=arguments[Le];return!!T(G,...Ee)}return!1},Je=function(T,G,ce){if(!De[G]&&re(G)&&je(ge.tagNameCheck,G))return!1;if(X&&!Ne[G]){const Ee=_(T),Le=b(T);if(Le&&Ee){const Ge=Le.length;for(let Ct=Ge-1;Ct>=0;--Ct){const xt=T===ce?y(Le[Ct],!0):Le[Ct];Ee.insertBefore(xt,C(T))}}}return zt(T),!0},Re=function(T,G,ce,Ee){return T.length===0?G:G===ce||G===Ee?tn(G):G},qe=function(T,G){return T===G||_(T)!==null?!1:(le&&Jt(T),!0)},Ze=function(T,G){if(se(D.beforeSanitizeElements,T,null),qe(T,G))return!0;if(sn(T))return zt(T),!0;const ce=at(k(T));if(ue=Re(D.uponSanitizeElement,ue,Se,Oe),se(D.uponSanitizeElement,T,{tagName:ce,allowedTags:ue}),qe(T,G))return!0;if(xe(T,ce))return zt(T),!0;if(De[ce]||!(ae.tagCheck instanceof Function&&ae.tagCheck(ce))&&!ue[ce]){const Le=Je(T,ce,G);return Le===!1&&se(D.afterSanitizeElements,T,null),Le}if(N(T)===nn.element&&!bn(T)||(ce==="noscript"||ce==="noembed"||ce==="noframes")&&$t(X0,T.innerHTML))return zt(T),!0;if(Pe&&T.nodeType===nn.text){const Le=Pt(T.textContent);T.textContent!==Le&&(ha(t.removed,{element:T.cloneNode()}),T.textContent=Le)}return se(D.afterSanitizeElements,T,null),!1},Q=function(T,G,ce){if(fe[G]||Sn(G,T)||He&&(G==="id"||G==="name")&&(ce in a||ce in At))return!1;const Ee=V[G]||ae.attributeCheck instanceof Function&&ae.attributeCheck(G,T);return pe&&$t(I,G)||de&&$t(Z,G)?!0:Ee?ut[G]||$t(ie,fa(ce,Y,""))||(G==="src"||G==="xlink:href"||G==="href")&&T!=="script"&&$s(ce,"data:")===0&&et[T]||he&&!$t(J,fa(ce,Y,""))?!0:!ce:re(T)&&je(ge.tagNameCheck,T)&&je(ge.attributeNameCheck,G,T)||G==="is"&&ge.allowCustomizedBuiltInElements&&je(ge.tagNameCheck,ce)},ye=it({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),re=function(T){return!ye[Ca(T)]&&$t(ne,T)},ve=function(T,G,ce,Ee){if(A&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!ce)switch(p.getAttributeType(T,G)){case"TrustedHTML":return L(Ee);case"TrustedScriptURL":return j(Ee)}return Ee},Te=function(T,G,ce,Ee){try{ce?T.setAttributeNS(ce,G,Ee):T.setAttribute(G,Ee),sn(T)?zt(T):Ms(t.removed)}catch{Rt(G,T)}},ze=function(T){se(D.beforeSanitizeAttributes,T,null);const G=T.attributes;if(!G||sn(T))return;V=Re(D.uponSanitizeAttribute,V,oe,dt);const ce={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let Ee=G.length;const Le=at(T.nodeName);for(;Ee--;){const Ge=G[Ee],Ct=Ge.name,xt=Ge.namespaceURI,qt=Ge.value,Ut=at(Ct),_r=qt;let It=Ct==="value"?_r:M0(_r);if(ce.attrName=Ut,ce.attrValue=It,ce.keepAttr=!0,ce.forceKeepAttr=void 0,se(D.uponSanitizeAttribute,T,ce),It=ce.attrValue,Be&&(Ut==="id"||Ut==="name")&&$s(It,Xe)!==0&&(Rt(Ct,T,Ge),It=Xe+It),$e&&$t(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,It)){Rt(Ct,T,Ge);continue}if(Ut==="attributename"&&Ls(It,"href")){Rt(Ct,T,Ge);continue}if(!ce.forceKeepAttr){if(!ce.keepAttr){Rt(Ct,T,Ge);continue}if(!be&&$t(J0,It)){Rt(Ct,T,Ge);continue}if(Pe&&(It=Pt(It)),!Q(Le,Ut,It)){Rt(Ct,T,Ge);continue}It=ve(Le,Ut,xt,It),It!==_r&&Te(T,Ct,xt,It)}}se(D.afterSanitizeAttributes,T,null)},st=function(T){let G=null;const ce=jt(T);for(se(D.beforeSanitizeShadowDOM,T,null);G=ce.nextNode();)if(se(D.uponSanitizeShadowNode,G,null),Ze(G,T),ze(G),Ft(G.content)&&st(G.content),N(G)===nn.element){const Ee=h(G);Ft(Ee)&&(mt(Ee),st(Ee))}se(D.afterSanitizeShadowDOM,T,null)},mt=function(T){const G=[{node:T,shadow:null}];for(;G.length>0;){const ce=G.pop();if(ce.shadow){st(ce.shadow);continue}const Ee=ce.node,Ge=N(Ee)===nn.element,Ct=b(Ee);if(Ct)for(let xt=Ct.length-1;xt>=0;--xt)G.push({node:Ct[xt],shadow:null});if(Ge){const xt=B?B(Ee):null;if(typeof xt=="string"&&at(xt)==="template"){const qt=Ee.content;Ft(qt)&&G.push({node:qt,shadow:null})}}if(Ge){const xt=h(Ee);Ft(xt)&&G.push({node:null,shadow:xt},{node:xt,shadow:null})}}};return t.sanitize=function(Ce){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=null,ce=null,Ee=null,Le=null;if(Ke=!Ce,Ke&&(Ce="<!-->"),typeof Ce!="string"&&!Qt(Ce)&&(Ce=F0(Ce),typeof Ce!="string"))throw Hn("dirty is not a string, aborting");if(!t.isSupported)return Ce;Fe?(ue=Oe,V=dt):an(T),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(ue=tn(ue)),D.uponSanitizeAttribute.length>0&&(V=tn(V)),t.removed=[];const Ge=le&&typeof Ce!="string"&&Qt(Ce);if(Ge){In(Ce);const qt=k(Ce);if(typeof qt=="string"){const Ut=at(qt);if(!ue[Ut]||De[Ut])throw Vt(Ce),Hn("root node is forbidden and cannot be sanitized in-place")}if(sn(Ce))throw Vt(Ce),Hn("root node is clobbered and cannot be sanitized in-place");try{mt(Ce)}catch(Ut){throw Vt(Ce),Ut}}else if(Qt(Ce))G=hn("<!---->"),ce=G.ownerDocument.importNode(Ce,!0),ce.nodeType===nn.element&&ce.nodeName==="BODY"||ce.nodeName==="HTML"?G=ce:G.appendChild(ce),mt(ce);else{if(!ot&&!Pe&&!Ie&&Ce.indexOf("<")===-1)return A&&ke?L(Ce):Ce;if(G=hn(Ce),!G)return ot?null:ke?S:""}G&&lt&&zt(G.firstChild);const Ct=Ge?Ce:G;try{const qt=jt(Ct);for(;Ee=qt.nextNode();)Ze(Ee,Ct),ze(Ee),Ft(Ee.content)&&st(Ee.content)}catch(qt){throw Ge&&(Vt(Ce),On(t.removed,Ut=>{Ut.element&&Jt(Ut.element)})),qt}if(Ge)return On(t.removed,qt=>{qt.element&&Jt(qt.element)}),Pe&&Wt(Ce),Ce;if(ot){if(Pe&&Wt(G),ct)for(Le=q.call(G.ownerDocument);G.firstChild;)Le.appendChild(G.firstChild);else Le=G;return(V.shadowroot||V.shadowrootmode)&&(Le=W.call(r,Le,!0)),Le}let xt=Ie?G.outerHTML:G.innerHTML;return Ie&&ue["!doctype"]&&G.ownerDocument&&G.ownerDocument.doctype&&G.ownerDocument.doctype.name&&$t(Y0,G.ownerDocument.doctype.name)&&(xt="<!DOCTYPE "+G.ownerDocument.doctype.name+`>
828
- `+xt),Pe&&(xt=Pt(xt)),A&&ke?L(xt):xt},t.setConfig=function(){let Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};an(Ce),Fe=!0,Oe=ue,dt=V},t.clearConfig=function(){Bt=null,Fe=!1,Oe=null,dt=null,A=E,S=""},t.isValidAttribute=function(Ce,T,G){Bt||an({});const ce=at(Ce),Ee=at(T);return Q(ce,Ee,G)},t.addHook=function(Ce,T){typeof T=="function"&&Kt(D,Ce)&&ha(D[Ce],T)},t.removeHook=function(Ce,T){if(Kt(D,Ce)){if(T!==void 0){const G=j0(D[Ce],T);return G===-1?void 0:T0(D[Ce],G,1)[0]}return Ms(D[Ce])}},t.removeHooks=function(Ce){Kt(D,Ce)&&(D[Ce]=[])},t.removeAllHooks=function(){D=Us()},t}var Mr=Gs();const aC=/^(?:[a-z]+:)?\/\//i,rC="__ihab_core_asset_base_url__";function oC(){return globalThis[rC]??""}function Lr(e){const t=String(e||"").trim();if(!t)return"";if(aC.test(t)||t.startsWith("data:")||t.startsWith("blob:"))return t;const a=t.startsWith("/")?t:`/${t}`,r=oC();return r?`${r}${a}`:a}const Ks="__ihab_core_storage_resolvers__";function ba(){return globalThis[Ks]??null}function sC(e){globalThis[Ks]=e}let Ys=class extends Error{constructor(t){super(`
827
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k0(e,t){return w0(e)||B0(e,t)||N0(e,t)||A0()}function N0(e,t){if(e){if(typeof e=="string")return Es(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Es(e,t):void 0}}const Ss=Object.entries,js=Object.setPrototypeOf,D0=Object.isFrozen,E0=Object.getPrototypeOf,S0=Object.getOwnPropertyDescriptor;let Dt=Object.freeze,St=Object.seal,Xn=Object.create,Ts=typeof Reflect<"u"&&Reflect,Ar=Ts.apply,kr=Ts.construct;Dt||(Dt=function(t){return t}),St||(St=function(t){return t}),Ar||(Ar=function(t,a){for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];return t.apply(a,s)}),kr||(kr=function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return new t(...r)});const On=kt(Array.prototype.forEach),j0=kt(Array.prototype.lastIndexOf),Ms=kt(Array.prototype.pop),ha=kt(Array.prototype.push),T0=kt(Array.prototype.splice),Jn=Array.isArray,Ca=kt(String.prototype.toLowerCase),Nr=kt(String.prototype.toString),Ls=kt(String.prototype.match),fa=kt(String.prototype.replace),$s=kt(String.prototype.indexOf),M0=kt(String.prototype.trim),L0=kt(Number.prototype.toString),$0=kt(Boolean.prototype.toString),Rs=typeof BigInt>"u"?null:kt(BigInt.prototype.toString),Ps=typeof Symbol>"u"?null:kt(Symbol.prototype.toString),Kt=kt(Object.prototype.hasOwnProperty),ga=kt(Object.prototype.toString),$t=kt(RegExp.prototype.test),Hn=R0(TypeError);function kt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return Ar(e,t,r)}}function R0(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return kr(e,a)}}function it(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ca;if(js&&js(e,null),!Jn(t))return e;let r=t.length;for(;r--;){let s=t[r];if(typeof s=="string"){const i=a(s);i!==s&&(D0(t)||(t[r]=i),s=i)}e[s]=!0}return e}function P0(e){for(let t=0;t<e.length;t++)Kt(e,t)||(e[t]=null);return e}function tn(e){const t=Xn(null);for(const r of Ss(e)){var a=k0(r,2);const s=a[0],i=a[1];Kt(e,s)&&(Jn(i)?t[s]=P0(i):i&&typeof i=="object"&&i.constructor===Object?t[s]=tn(i):t[s]=i)}return t}function F0(e){switch(typeof e){case"string":return e;case"number":return L0(e);case"boolean":return $0(e);case"bigint":return Rs?Rs(e):"0";case"symbol":return Ps?Ps(e):"Symbol()";case"undefined":return ga(e);case"function":case"object":{if(e===null)return ga(e);const t=e,a=ln(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:ga(r)}return ga(e)}default:return ga(e)}}function ln(e,t){for(;e!==null;){const r=S0(e,t);if(r){if(r.get)return kt(r.get);if(typeof r.value=="function")return kt(r.value)}e=E0(e)}function a(){return null}return a}function I0(e){try{return $t(e,""),!0}catch{return!1}}const Fs=Dt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Dr=Dt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Er=Dt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),O0=Dt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Sr=Dt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),H0=Dt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Is=Dt(["#text"]),Os=Dt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),jr=Dt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Hs=Dt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ha=Dt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z0=St(/{{[\w\W]*|^[\w\W]*}}/g),V0=St(/<%[\w\W]*|^[\w\W]*%>/g),W0=St(/\${[\w\W]*/g),q0=St(/^data-[\-\w.\u00B7-\uFFFF]+$/),U0=St(/^aria-[\-\w]+$/),zs=St(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G0=St(/^(?:\w+script|data):/i),K0=St(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y0=St(/^html$/i),Z0=St(/^[a-z][.\w]*(-[.\w]+)+$/i),Vs=St(/<[/\w!]/g),Ws=St(/<[/\w]/g),X0=St(/<\/no(script|embed|frames)/i),J0=St(/\/>/i),nn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qs=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Q0=Dt(it({},qs)),eC=(function(){const e={};return On(qs,t=>{e[t]=St(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Dt(e)})(),tC=function(){return typeof window>"u"?null:window},nC=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";a&&a.hasAttribute(s)&&(r=a.getAttribute(s));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Us=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},jn=function(t,a,r,s){return Kt(t,a)&&Jn(t[a])?it(s.base?tn(s.base):{},t[a],s.transform):r},Tr=function(t,a,r){const s=Kt(t,a)?t[a]:void 0;return s&&typeof s=="object"?tn(s):r()};function Gs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tC();const t=Ce=>Gs(Ce);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==nn.document||!e.Element)return t.isSupported=!1,t;let a=e.document;const r=a,s=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,l=e.Node,u=e.Element,c=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const m=e.DOMParser,p=e.trustedTypes,f=u.prototype,y=ln(f,"cloneNode"),x=ln(f,"remove"),h=ln(f,"nextSibling"),g=ln(f,"childNodes"),_=ln(f,"parentNode"),C=ln(f,"shadowRoot"),w=ln(f,"attributes"),b=l&&l.prototype?ln(l.prototype,"nodeType"):null,B=l&&l.prototype?ln(l.prototype,"nodeName"):null,v=l&&l.prototype?ln(l.prototype,"ownerDocument"):null,k=function(T){return b?b(T):T.nodeType},A=function(T){return B?B(T):T.nodeName};if(typeof i=="function"){const Ce=a.createElement("template");Ce.content&&Ce.content.ownerDocument&&(a=Ce.content.ownerDocument)}let N,E="",D,H=!1,R=0;const G=function(){if(R>0)throw Hn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},L=function(T){G(),R++;try{return N.createHTML(T)}finally{R--}},M=function(T){G(),R++;try{return N.createScriptURL(T)}finally{R--}},I=function(){return H||(D=nC(p,s),H=!0),D},Y=a,Z=Y.implementation,z=Y.createNodeIterator,W=Y.createDocumentFragment,$=Y.getElementsByTagName,U=r.importNode;let S=Us();t.isSupported=typeof Ss=="function"&&typeof _=="function"&&Z&&Z.createHTMLDocument!==void 0;const P=z0,j=V0,F=W0,O=q0,q=U0,Q=G0,oe=K0,se=Z0;let te=zs,le=null;const De=it({},[...Fs,...Dr,...Er,...Sr,...Is]);let V=null;const ne=it({},[...Os,...jr,...Hs,...Ha]);let fe=Object.seal(Xn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ee=null,ge=null;const ae=Object.seal(Xn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let de=!0,pe=!0,he=!1,be=!0,Pe=!1,$e=!0,Ie=!1,Fe=!1,Oe=null,dt=null,lt=!1,ot=!1,ct=!1,ke=!1,He=!0,Be=!1;const Xe="user-content-";let X=!0,ue=!1,we={},Ne=null;const Ve=it({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let et=null;const pt=it({},["audio","video","img","source","image","track"]);let ut=null;const ft=it({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gt="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",Ue="http://www.w3.org/1999/xhtml";let We=Ue,Ke=!1,rt=null;const bt=it({},[gt,Qe,Ue],Nr),Ye=Dt(["mi","mo","mn","ms","mtext"]);let ht=it({},Ye);const Nt=Dt(["annotation-xml"]);let Et=it({},Nt);const Me=it({},["title","style","font","a","script"]);let nt=null;const Lt=["application/xhtml+xml","text/html"],Xt="text/html";let at=null,Bt=null;const At=a.createElement("form"),vt=function(T){return T instanceof RegExp||T instanceof Function},an=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Bt&&Bt===T)return;(!T||typeof T!="object")&&(T={}),T=tn(T),nt=Lt.indexOf(T.PARSER_MEDIA_TYPE)===-1?Xt:T.PARSER_MEDIA_TYPE,at=nt==="application/xhtml+xml"?Nr:Ca,le=jn(T,"ALLOWED_TAGS",De,{transform:at}),V=jn(T,"ALLOWED_ATTR",ne,{transform:at}),rt=jn(T,"ALLOWED_NAMESPACES",bt,{transform:Nr}),ut=jn(T,"ADD_URI_SAFE_ATTR",ft,{transform:at,base:ft}),et=jn(T,"ADD_DATA_URI_TAGS",pt,{transform:at,base:pt}),Ne=jn(T,"FORBID_CONTENTS",Ve,{transform:at}),Ee=jn(T,"FORBID_TAGS",tn({}),{transform:at}),ge=jn(T,"FORBID_ATTR",tn({}),{transform:at}),we=Kt(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?tn(T.USE_PROFILES):T.USE_PROFILES:!1,de=T.ALLOW_ARIA_ATTR!==!1,pe=T.ALLOW_DATA_ATTR!==!1,he=T.ALLOW_UNKNOWN_PROTOCOLS||!1,be=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Pe=T.SAFE_FOR_TEMPLATES||!1,$e=T.SAFE_FOR_XML!==!1,Ie=T.WHOLE_DOCUMENT||!1,ot=T.RETURN_DOM||!1,ct=T.RETURN_DOM_FRAGMENT||!1,ke=T.RETURN_TRUSTED_TYPE||!1,lt=T.FORCE_BODY||!1,He=T.SANITIZE_DOM!==!1,Be=T.SANITIZE_NAMED_PROPS||!1,X=T.KEEP_CONTENT!==!1,ue=T.IN_PLACE||!1,te=I0(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:zs,We=typeof T.NAMESPACE=="string"?T.NAMESPACE:Ue,ht=Tr(T,"MATHML_TEXT_INTEGRATION_POINTS",()=>it({},Ye)),Et=Tr(T,"HTML_INTEGRATION_POINTS",()=>it({},Nt));const K=Tr(T,"CUSTOM_ELEMENT_HANDLING",()=>Xn(null));if(fe=Xn(null),Kt(K,"tagNameCheck")&&vt(K.tagNameCheck)&&(fe.tagNameCheck=K.tagNameCheck),Kt(K,"attributeNameCheck")&&vt(K.attributeNameCheck)&&(fe.attributeNameCheck=K.attributeNameCheck),Kt(K,"allowCustomizedBuiltInElements")&&typeof K.allowCustomizedBuiltInElements=="boolean"&&(fe.allowCustomizedBuiltInElements=K.allowCustomizedBuiltInElements),St(fe),Pe&&(pe=!1),ct&&(ot=!0),we&&(le=it({},Is),V=Xn(null),we.html===!0&&(it(le,Fs),it(V,Os)),we.svg===!0&&(it(le,Dr),it(V,jr),it(V,Ha)),we.svgFilters===!0&&(it(le,Er),it(V,jr),it(V,Ha)),we.mathMl===!0&&(it(le,Sr),it(V,Hs),it(V,Ha))),ae.tagCheck=null,ae.attributeCheck=null,Kt(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?ae.tagCheck=T.ADD_TAGS:Jn(T.ADD_TAGS)&&(le===De&&(le=tn(le)),it(le,T.ADD_TAGS,at))),Kt(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?ae.attributeCheck=T.ADD_ATTR:Jn(T.ADD_ATTR)&&(V===ne&&(V=tn(V)),it(V,T.ADD_ATTR,at))),Kt(T,"ADD_FORBID_CONTENTS")&&Jn(T.ADD_FORBID_CONTENTS)&&(Ne===Ve&&(Ne=tn(Ne)),it(Ne,T.ADD_FORBID_CONTENTS,at)),X&&(le["#text"]=!0),Ie&&it(le,["html","head","body"]),le.table&&(it(le,["tbody"]),delete Ee.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw Hn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Hn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ce=N;N=T.TRUSTED_TYPES_POLICY;try{E=L("")}catch(Se){throw N=ce,Se}}else T.TRUSTED_TYPES_POLICY===null?(N=void 0,E=""):(N===void 0&&(N=I()),N&&typeof E=="string"&&(E=L("")));Dt&&Dt(T),Bt=T},gn=it({},[...Dr,...Er,...O0]),pn=it({},[...Sr,...H0]),mn=function(T,K,ce){return K.namespaceURI===Ue?T==="svg":K.namespaceURI===gt?T==="svg"&&(ce==="annotation-xml"||ht[ce]):!!gn[T]},Dn=function(T,K,ce){return K.namespaceURI===Ue?T==="math":K.namespaceURI===Qe?T==="math"&&Et[ce]:!!pn[T]},Fn=function(T,K,ce){return K.namespaceURI===Qe&&!Et[ce]||K.namespaceURI===gt&&!ht[ce]?!1:!pn[T]&&(Me[T]||!gn[T])},bn=function(T){let K=_(T);(!K||!K.tagName)&&(K={namespaceURI:We,tagName:"template"});const ce=Ca(T.tagName),Se=Ca(K.tagName);return rt[T.namespaceURI]?T.namespaceURI===Qe?mn(ce,K,Se):T.namespaceURI===gt?Dn(ce,K,Se):T.namespaceURI===Ue?Fn(ce,K,Se):!!(nt==="application/xhtml+xml"&&rt[T.namespaceURI]):!1},zt=function(T){ha(t.removed,{element:T});try{_(T).removeChild(T)}catch{if(x(T),!_(T))throw Hn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},on=function(T,K,ce){try{T.removeAttributeNode(K)}catch{try{T.removeAttribute(ce)}catch{}}},Vt=function(T){Jt(T);const K=g(T);if(K){const Se=[];On(K,Le=>{ha(Se,Le)}),On(Se,Le=>{try{x(Le)}catch{}})}const ce=w(T);if(ce)for(let Se=ce.length-1;Se>=0;--Se){const Le=ce[Se],Ge=Le&&Le.name;typeof Ge=="string"&&on(T,Le,Ge)}},Rt=function(T,K,ce){if(!ce)try{ce=K.getAttributeNode(T)}catch{ce=null}ha(t.removed,{attribute:ce||null,from:K});try{ce?K.removeAttributeNode(ce):K.removeAttribute(T)}catch{try{K.removeAttribute(T)}catch{}}if(T==="is")if(ot||ct)try{zt(K)}catch{}else try{K.setAttribute(T,"")}catch{}},En=function(T){const K=w(T);if(K)for(let ce=K.length-1;ce>=0;--ce){const Se=K[ce],Le=Se&&Se.name;typeof Le!="string"||V[at(Le)]||on(T,Se,Le)}},Jt=function(T){const K=[T];for(;K.length>0;){const ce=K.pop();k(ce)===nn.element&&En(ce);const Le=g(ce);if(Le)for(let Ge=Le.length-1;Ge>=0;--Ge)K.push(Le[Ge])}},Sn=function(T,K){return $e?T==="patchsrc"?!0:T==="for"&&K!=="label"&&K!=="output":!1},In=function(T){if(!$e)return;const K=[T];for(;K.length>0;){const ce=K.pop(),Se=k(ce);if(Se===nn.processingInstruction||Se===nn.comment&&$t(Ws,ce.data)){try{x(ce)}catch{}continue}if(Se===nn.element){const Ge=ce,Ct=at(A(ce));try{Ge.hasAttribute&&Ge.hasAttribute("patchsrc")&&Ge.removeAttribute("patchsrc"),Ge.hasAttribute&&Ge.hasAttribute("for")&&Sn("for",Ct)&&Ge.removeAttribute("for")}catch{}}const Le=g(ce);if(Le)for(let Ge=Le.length-1;Ge>=0;--Ge)K.push(Le[Ge])}},hn=function(T){let K=null,ce=null;if(lt)T="<remove></remove>"+T;else{const Ge=Ls(T,/^[\r\n\t ]+/);ce=Ge&&Ge[0]}nt==="application/xhtml+xml"&&We===Ue&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const Se=N?L(T):T;if(We===Ue)try{K=new m().parseFromString(Se,nt)}catch{}if(!K||!K.documentElement){K=Z.createDocument(We,"template",null);try{K.documentElement.innerHTML=Ke?E:Se}catch{}}const Le=K.body||K.documentElement;return T&&ce&&Le.insertBefore(a.createTextNode(ce),Le.childNodes[0]||null),We===Ue?$.call(K,Ie?"html":"body")[0]:Ie?K.documentElement:Le},jt=function(T){const K=v?v(T):T.ownerDocument;return z.call(K||T,T,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Pt=function(T){return T=fa(T,P," "),T=fa(T,j," "),T=fa(T,F," "),T},Wt=function(T){var K;T.normalize();const ce=v?v(T):T.ownerDocument,Se=z.call(ce||T,T,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Le=Se.nextNode();for(;Le;)Le.data=Pt(Le.data),Le=Se.nextNode();const Ge=(K=T.querySelectorAll)===null||K===void 0?void 0:K.call(T,"template");Ge&&On(Ge,Ct=>{Ft(Ct.content)&&Wt(Ct.content)})},sn=function(T){const K=B?B(T):null;return typeof K!="string"||at(K)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==w(T)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function"||T.nodeType!==b(T)||T.childNodes!==g(T)},Ft=function(T){if(!b||typeof T!="object"||T===null)return!1;try{return b(T)===nn.documentFragment}catch{return!1}},Qt=function(T){if(!b||typeof T!="object"||T===null)return!1;try{return typeof b(T)=="number"}catch{return!1}};function ie(Ce,T,K){Ce.length!==0&&On(Ce,ce=>{ce.call(t,T,K,Bt)})}const xe=function(T,K){return!!($e&&T.hasChildNodes()&&!Qt(T.firstElementChild)&&$t(Vs,T.textContent)&&$t(Vs,T.innerHTML)||$e&&T.namespaceURI===Ue&&Q0[K]&&(Qt(T.firstElementChild)||typeof T.textContent=="string"&&$t(eC[K],T.textContent))||T.nodeType===nn.processingInstruction||$e&&T.nodeType===nn.comment&&$t(Ws,T.data))},je=function(T,K){if(T instanceof RegExp)return $t(T,K);if(T instanceof Function){for(var ce=arguments.length,Se=new Array(ce>2?ce-2:0),Le=2;Le<ce;Le++)Se[Le-2]=arguments[Le];return!!T(K,...Se)}return!1},Je=function(T,K,ce){if(!Ee[K]&&re(K)&&je(fe.tagNameCheck,K))return!1;if(X&&!Ne[K]){const Se=_(T),Le=g(T);if(Le&&Se){const Ge=Le.length;for(let Ct=Ge-1;Ct>=0;--Ct){const xt=T===ce?y(Le[Ct],!0):Le[Ct];Se.insertBefore(xt,h(T))}}}return zt(T),!0},Re=function(T,K,ce,Se){return T.length===0?K:K===ce||K===Se?tn(K):K},qe=function(T,K){return T===K||_(T)!==null?!1:(ue&&Jt(T),!0)},Ze=function(T,K){if(ie(S.beforeSanitizeElements,T,null),qe(T,K))return!0;if(sn(T))return zt(T),!0;const ce=at(A(T));if(le=Re(S.uponSanitizeElement,le,De,Oe),ie(S.uponSanitizeElement,T,{tagName:ce,allowedTags:le}),qe(T,K))return!0;if(xe(T,ce))return zt(T),!0;if(Ee[ce]||!(ae.tagCheck instanceof Function&&ae.tagCheck(ce))&&!le[ce]){const Le=Je(T,ce,K);return Le===!1&&ie(S.afterSanitizeElements,T,null),Le}if(k(T)===nn.element&&!bn(T)||(ce==="noscript"||ce==="noembed"||ce==="noframes")&&$t(X0,T.innerHTML))return zt(T),!0;if(Pe&&T.nodeType===nn.text){const Le=Pt(T.textContent);T.textContent!==Le&&(ha(t.removed,{element:T.cloneNode()}),T.textContent=Le)}return ie(S.afterSanitizeElements,T,null),!1},J=function(T,K,ce){if(ge[K]||Sn(K,T)||He&&(K==="id"||K==="name")&&(ce in a||ce in At))return!1;const Se=V[K]||ae.attributeCheck instanceof Function&&ae.attributeCheck(K,T);return pe&&$t(O,K)||de&&$t(q,K)?!0:Se?ut[K]||$t(te,fa(ce,oe,""))||(K==="src"||K==="xlink:href"||K==="href")&&T!=="script"&&$s(ce,"data:")===0&&et[T]||he&&!$t(Q,fa(ce,oe,""))?!0:!ce:re(T)&&je(fe.tagNameCheck,T)&&je(fe.attributeNameCheck,K,T)||K==="is"&&fe.allowCustomizedBuiltInElements&&je(fe.tagNameCheck,ce)},ye=it({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),re=function(T){return!ye[Ca(T)]&&$t(se,T)},ve=function(T,K,ce,Se){if(N&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!ce)switch(p.getAttributeType(T,K)){case"TrustedHTML":return L(Se);case"TrustedScriptURL":return M(Se)}return Se},Te=function(T,K,ce,Se){try{ce?T.setAttributeNS(ce,K,Se):T.setAttribute(K,Se),sn(T)?zt(T):Ms(t.removed)}catch{Rt(K,T)}},ze=function(T){ie(S.beforeSanitizeAttributes,T,null);const K=T.attributes;if(!K||sn(T))return;V=Re(S.uponSanitizeAttribute,V,ne,dt);const ce={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let Se=K.length;const Le=at(T.nodeName);for(;Se--;){const Ge=K[Se],Ct=Ge.name,xt=Ge.namespaceURI,qt=Ge.value,Ut=at(Ct),_r=qt;let It=Ct==="value"?_r:M0(_r);if(ce.attrName=Ut,ce.attrValue=It,ce.keepAttr=!0,ce.forceKeepAttr=void 0,ie(S.uponSanitizeAttribute,T,ce),It=ce.attrValue,Be&&(Ut==="id"||Ut==="name")&&$s(It,Xe)!==0&&(Rt(Ct,T,Ge),It=Xe+It),$e&&$t(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,It)){Rt(Ct,T,Ge);continue}if(Ut==="attributename"&&Ls(It,"href")){Rt(Ct,T,Ge);continue}if(!ce.forceKeepAttr){if(!ce.keepAttr){Rt(Ct,T,Ge);continue}if(!be&&$t(J0,It)){Rt(Ct,T,Ge);continue}if(Pe&&(It=Pt(It)),!J(Le,Ut,It)){Rt(Ct,T,Ge);continue}It=ve(Le,Ut,xt,It),It!==_r&&Te(T,Ct,xt,It)}}ie(S.afterSanitizeAttributes,T,null)},st=function(T){let K=null;const ce=jt(T);for(ie(S.beforeSanitizeShadowDOM,T,null);K=ce.nextNode();)if(ie(S.uponSanitizeShadowNode,K,null),Ze(K,T),ze(K),Ft(K.content)&&st(K.content),k(K)===nn.element){const Se=C(K);Ft(Se)&&(mt(Se),st(Se))}ie(S.afterSanitizeShadowDOM,T,null)},mt=function(T){const K=[{node:T,shadow:null}];for(;K.length>0;){const ce=K.pop();if(ce.shadow){st(ce.shadow);continue}const Se=ce.node,Ge=k(Se)===nn.element,Ct=g(Se);if(Ct)for(let xt=Ct.length-1;xt>=0;--xt)K.push({node:Ct[xt],shadow:null});if(Ge){const xt=B?B(Se):null;if(typeof xt=="string"&&at(xt)==="template"){const qt=Se.content;Ft(qt)&&K.push({node:qt,shadow:null})}}if(Ge){const xt=C(Se);Ft(xt)&&K.push({node:null,shadow:xt},{node:xt,shadow:null})}}};return t.sanitize=function(Ce){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null,ce=null,Se=null,Le=null;if(Ke=!Ce,Ke&&(Ce="<!-->"),typeof Ce!="string"&&!Qt(Ce)&&(Ce=F0(Ce),typeof Ce!="string"))throw Hn("dirty is not a string, aborting");if(!t.isSupported)return Ce;Fe?(le=Oe,V=dt):an(T),(S.uponSanitizeElement.length>0||S.uponSanitizeAttribute.length>0)&&(le=tn(le)),S.uponSanitizeAttribute.length>0&&(V=tn(V)),t.removed=[];const Ge=ue&&typeof Ce!="string"&&Qt(Ce);if(Ge){In(Ce);const qt=A(Ce);if(typeof qt=="string"){const Ut=at(qt);if(!le[Ut]||Ee[Ut])throw Vt(Ce),Hn("root node is forbidden and cannot be sanitized in-place")}if(sn(Ce))throw Vt(Ce),Hn("root node is clobbered and cannot be sanitized in-place");try{mt(Ce)}catch(Ut){throw Vt(Ce),Ut}}else if(Qt(Ce))K=hn("<!---->"),ce=K.ownerDocument.importNode(Ce,!0),ce.nodeType===nn.element&&ce.nodeName==="BODY"||ce.nodeName==="HTML"?K=ce:K.appendChild(ce),mt(ce);else{if(!ot&&!Pe&&!Ie&&Ce.indexOf("<")===-1)return N&&ke?L(Ce):Ce;if(K=hn(Ce),!K)return ot?null:ke?E:""}K&&lt&&zt(K.firstChild);const Ct=Ge?Ce:K;try{const qt=jt(Ct);for(;Se=qt.nextNode();)Ze(Se,Ct),ze(Se),Ft(Se.content)&&st(Se.content)}catch(qt){throw Ge&&(Vt(Ce),On(t.removed,Ut=>{Ut.element&&Jt(Ut.element)})),qt}if(Ge)return On(t.removed,qt=>{qt.element&&Jt(qt.element)}),Pe&&Wt(Ce),Ce;if(ot){if(Pe&&Wt(K),ct)for(Le=W.call(K.ownerDocument);K.firstChild;)Le.appendChild(K.firstChild);else Le=K;return(V.shadowroot||V.shadowrootmode)&&(Le=U.call(r,Le,!0)),Le}let xt=Ie?K.outerHTML:K.innerHTML;return Ie&&le["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&$t(Y0,K.ownerDocument.doctype.name)&&(xt="<!DOCTYPE "+K.ownerDocument.doctype.name+`>
828
+ `+xt),Pe&&(xt=Pt(xt)),N&&ke?L(xt):xt},t.setConfig=function(){let Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};an(Ce),Fe=!0,Oe=le,dt=V},t.clearConfig=function(){Bt=null,Fe=!1,Oe=null,dt=null,N=D,E=""},t.isValidAttribute=function(Ce,T,K){Bt||an({});const ce=at(Ce),Se=at(T);return J(ce,Se,K)},t.addHook=function(Ce,T){typeof T=="function"&&Kt(S,Ce)&&ha(S[Ce],T)},t.removeHook=function(Ce,T){if(Kt(S,Ce)){if(T!==void 0){const K=j0(S[Ce],T);return K===-1?void 0:T0(S[Ce],K,1)[0]}return Ms(S[Ce])}},t.removeHooks=function(Ce){Kt(S,Ce)&&(S[Ce]=[])},t.removeAllHooks=function(){S=Us()},t}var Mr=Gs();const aC=/^(?:[a-z]+:)?\/\//i,rC="__ihab_core_asset_base_url__";function oC(){return globalThis[rC]??""}function Lr(e){const t=String(e||"").trim();if(!t)return"";if(aC.test(t)||t.startsWith("data:")||t.startsWith("blob:"))return t;const a=t.startsWith("/")?t:`/${t}`,r=oC();return r?`${r}${a}`:a}const Ks="__ihab_core_storage_resolvers__";function ba(){return globalThis[Ks]??null}function sC(e){globalThis[Ks]=e}let Ys=class extends Error{constructor(t){super(`
829
829
  [ihabdevteam-core] ${t}() \uD638\uCD9C \uC2E4\uD328 \u2014 configureStorage()\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
830
830
 
831
831
  \uC571 \uCD08\uAE30\uD654 \uC2DC\uC810(main.tsx \uB4F1)\uC5D0 \uC544\uB798\uC640 \uAC19\uC774 \uD55C \uBC88 \uD638\uCD9C\uD558\uC138\uC694:
@@ -844,19 +844,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
844
844
  \uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
845
845
  npm install @supabase/supabase-js
846
846
  pnpm add @supabase/supabase-js
847
- `),this.name="StorageNotConfiguredError"}};function iC(e){sC(e)}function Zs(e,t){if(!e)return null;const a=ba();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function Xs(e){if(!e)return null;const t=ba();if(!t)throw new Ys("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Js(e){const t=ba();if(!t)throw new Ys("downloadSound");return t.download(e)}function lC(){return ba()?.noiseBaseUrl??"/sounds/noise"}function uC(){const e=Number(ba()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function cC(e){const t=AbortSignal.timeout;if(typeof t=="function")return t.call(AbortSignal,e);const a=new AbortController;return setTimeout(()=>a.abort(),e),a.signal}const Qs="__ihab_core_tts_config__";function $r(){return globalThis[Qs]?.urlResolver??null}function dC(){return globalThis[Qs]?.fallbackUrlResolver??null}const pC="__ihab_core_pronunciation_resolver__";function mC(){return globalThis[pC]??null}let Tn=null;const ya=new WeakMap,Rr=new WeakMap,Pr=new WeakMap;let ei=!1;const ti=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function hC(){if(ei||typeof document>"u")return;ei=!0;const e=()=>{try{Tn&&Tn.state!=="running"&&Tn.resume()}catch{}};for(const t of["pointerdown","touchend","keydown"])document.addEventListener(t,e,{capture:!0,passive:!0})}function ni(){if(Tn)return Tn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(Tn=new e,hC(),Tn):null}catch{return null}}function Fr(){try{Tn?.resume()}catch{}}function Ir(e,t){const a=ya.get(t);if(a)return a;try{const r=e.createMediaElementSource(t),s=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,s.gain.value=ti(Rr.get(t)??t.volume),r.connect(s),s.connect(i),s.connect(e.destination);try{t.volume=1}catch{}const l={gain:s,analyser:i};return ya.set(t,l),l}catch{return null}}function za(e){if(!e)return Promise.resolve(null);const t=ya.get(e);if(t)return Promise.resolve(t.analyser);const a=ni();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Ir(a,e)?.analyser??null);const r=Pr.get(e);if(r)return r;const s=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Ir(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Pr.delete(e)});return Pr.set(e,s),s}function CC(e){if(!e)return null;const t=ya.get(e);if(t)return t.analyser;const a=ni();return a?a.state==="running"?Ir(a,e)?.analyser??null:(za(e),null):null}function Mn(e,t){const a=ti(t);Rr.set(e,a);const r=ya.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const s=r.gain.gain;try{const i=r.gain.context.currentTime;s.cancelScheduledValues(i),s.setTargetAtTime(a,i,.01)}catch{try{s.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function Va(e){return Rr.get(e)??e.volume}function fC(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const s=t[r];a+=s*s}return Math.sqrt(a/t.length)}const gC="__ihab_core_image_config__";function Qn(){return globalThis[gC]??null}const ai="word_image_existence_map_v1";let zn=null;const Wa=new Map;function bC(){if(zn)return zn;try{const e=typeof localStorage<"u"?localStorage.getItem(ai):null,t=e?JSON.parse(e):null;zn=t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{zn={}}return zn}let Or=null;function yC(){Or||(Or=setTimeout(()=>{Or=null;try{typeof localStorage<"u"&&zn&&localStorage.setItem(ai,JSON.stringify(zn))}catch{}},200))}function vC(e,t){return`${e}_${t??1}`}async function ri(e,t){const a=bC(),r=vC(e,t);if(r in a)return a[r];if(Wa.has(r))return Wa.get(r);const s=Qn();if(!s)return!1;const i=s(e,t);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:cC(8e3)}).then(u=>u.status>=500?null:u.ok,()=>null).then(u=>(Wa.delete(r),u===null?!1:(a[r]=u,yC(),u)));return Wa.set(r,l),l}const xC={\u314F:{nucleus:"\u314F"},\u3151:{glide:"j",nucleus:"\u314F"},\u3153:{nucleus:"\u3153"},\u3155:{glide:"j",nucleus:"\u3153"},\u3157:{nucleus:"\u3157"},\u315B:{glide:"j",nucleus:"\u3157"},\u315C:{nucleus:"\u315C"},\u3160:{glide:"j",nucleus:"\u315C"},\u3161:{nucleus:"\u3161"},\u3163:{nucleus:"\u3163"},\u3150:{nucleus:"\u3154/\u3150"},\u3152:{glide:"j",nucleus:"\u3154/\u3150"},\u3154:{nucleus:"\u3154/\u3150"},\u3156:{glide:"j",nucleus:"\u3154/\u3150"},\u3158:{glide:"w",nucleus:"\u314F"},\u3159:{glide:"w",nucleus:"\u3154/\u3150"},\u315A:{glide:"w",nucleus:"\u3154/\u3150"},\u315D:{glide:"w",nucleus:"\u3153"},\u315E:{glide:"w",nucleus:"\u3154/\u3150"},\u315F:{glide:"w",nucleus:"\u3163"},\u3162:{glide:"\u0270",nucleus:"\u3163"}},oi=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],si=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],_C=["","\u3131","\u3132","\u3133","\u3134","\u3135","\u3136","\u3137","\u3139","\u313A","\u313B","\u313C","\u313D","\u313E","\u313F","\u3140","\u3141","\u3142","\u3144","\u3145","\u3146","\u3147","\u3148","\u314A","\u314B","\u314C","\u314D","\u314E"];function va(e){if(!e)return null;const t=e.charCodeAt(0)-44032;return t<0||t>=11172?null:{cho:Math.floor(t/588),jung:Math.floor(t%588/28),jong:t%28}}function wC(e){const t=va(e[0]||"");return t?oi[t.cho]:""}function BC(e){if(!e)return()=>!0;e=e.normalize("NFC");const t=[...e],a=l=>oi.includes(l),r=l=>si.includes(l),s=t.map(l=>a(l)?"cho":r(l)?"jung":va(l)?"syl":"other"),i=t.map(l=>va(l));if(s.includes("other")){const l=e.toLowerCase();return u=>u.normalize("NFC").toLowerCase().includes(l)}return l=>{const u=[...l.normalize("NFC")];for(let c=0;c+t.length<=u.length;c++){let d=!0;for(let m=0;m<t.length;m++){const p=u[c+m],f=s[m];if(f==="cho"){if(wC(p)!==t[m]){d=!1;break}}else if(f==="jung"){const y=va(p);if(!y||si[y.jung]!==t[m]){d=!1;break}}else{const y=i[m];if(y&&y.jong===0){const v=va(p);if(!v||v.cho!==y.cho||v.jung!==y.jung){d=!1;break}}else if(p!==t[m]){d=!1;break}}}if(d)return!0}return!1}}const AC={3:["\u3131","\u3145"],5:["\u3134","\u3148"],6:["\u3134","\u314E"],9:["\u3139","\u3131"],10:["\u3139","\u3141"],11:["\u3139","\u3142"],12:["\u3139","\u3145"],13:["\u3139","\u314C"],14:["\u3139","\u314D"],15:["\u3139","\u314E"],18:["\u3142","\u3145"]};Object.fromEntries(Object.entries(AC).map(([e,t])=>[t.join(""),_C[Number(e)]]));const kC="word_pair_index_v2",NC="word_pair_index_sig_v2";let qa=null;function DC(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(kC),t=localStorage.getItem(NC);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function EC(){if(qa)return qa;const e=DC();return e?(qa=e.index,e.sig,qa):null}const Hr=/[ㄱ-ㅎ]/,SC=/[ㅏ-ㅣ]/;function ii(e){e=e.normalize("NFC");for(let t=e.length-1;t>=0;t--){const a=e[t],r=a.charCodeAt(0);if(r>=44032&&r<=55203||Hr.test(a)||SC.test(a))return a}return null}function jC(e){const t=ii(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":Hr.test(t)?"\uC774":"\uAC00"}function TC(e){return`${e}${jC(e)}`}function MC(e){const t=ii(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":Hr.test(t)?"\uC744":"\uB97C"}function LC(e){return`${e}${MC(e)}`}function $C(e,t,a){const r=e.slice(),[s]=r.splice(t,1);return r.splice(a,0,s),r}function xa(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const s=Math.floor(t()*(r+1));[a[r],a[s]]=[a[s],a[r]]}return a}const RC=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof Tt?.t=="function"?Tt.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function li(e,t){if(t===void 0&&(t=RC()),e instanceof Error)return e.message||t;if(typeof e=="string")return e||t;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return t}const PC="__ihab_core_word_pool__";function ui(){return globalThis[PC]??null}const ci=globalThis;function di(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function FC(e){di("time",()=>ci.__ihabTrainingTimeLogger?.(e))}function IC(e){di("completion",()=>ci.__ihabTrainingCompletionLogger?.(e))}function Ua(e){if(typeof e=="string"){const t=e.trim();return t?Number.isNaN(new Date(t).getTime())?null:t:null}if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.toISOString();if(typeof e=="number"&&Number.isFinite(e)){const t=new Date(e);return Number.isNaN(t.getTime())?null:t.toISOString()}return null}function Yt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function OC(e){for(const t of["correct","isCorrect","heard","judgement"])if(typeof e[t]=="boolean")return e[t];return e.score===1?!0:e.score===0?!1:null}function HC(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Yt(r.contextCode)??Yt(r.itemId)??Yt(r.itemCode)??Yt(r.id),question:Yt(r.question)??Yt(r.q)??Yt(r.sentence)??Yt(r.text)??Yt(r.prompt)??Yt(r.word)??Yt(r.targetSyllable),answer:Yt(r.answer),selected:Yt(r.selectedText)??Yt(r.selected),correct:OC(r),shownAt:Ua(r.shownAt)??Ua(r.shown_at),answeredAt:Ua(r.answeredAt)??Ua(r.answered_at)}}):[]}const zr=globalThis;async function zC(){try{return await zr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function pi(e){const t=a=>{};try{const a=zr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function Ga(e){try{zr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function VC(e){if(typeof document<"u"){const t=document.activeElement;let a=null;try{if(a=document.createElement("textarea"),a.value=e,a.setAttribute("readonly",""),a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a),a.focus(),a.select(),a.setSelectionRange(0,e.length),document.execCommand("copy"))return!0}catch{}finally{if(a?.parentNode&&a.parentNode.removeChild(a),t&&t!==document.activeElement&&typeof t.focus=="function"&&t.isConnected)try{t.focus({preventScroll:!0})}catch{}}}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}const WC="Asia/Seoul",qC=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function Vr(e){let t;if(e instanceof Date)t=e;else if(typeof e=="string"){const a=e.trim(),r=qC.exec(a);t=new Date(r?`${r[1]}T${r[2]}:${r[3]??"00"}${r[4]?`.${r[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:a)}else t=new Date(e);return Number.isNaN(t.getTime())?null:t}const UC=e=>Vr(e);function GC(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US",r=UC(e);return r?r.toLocaleDateString(a,{timeZone:WC,year:"numeric",month:"short",day:"numeric"}):""}function _a(){return qr(new Date)}function Wr(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:_a()}function ea(){return YC(_a())}const KC=540*60*1e3;function mi(e,t,a){return new Date(Date.UTC(e,t,a)-KC)}function YC(e){const[t,a,r]=e.split("-").map(Number);return new Date(t,(a||1)-1,r||1)}function qr(e){if(e==null||e==="")return"";const t=Vr(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function hi(e,t){if(!e)return"";const a=Vr(e);if(!a)return"";const r=a.getTime(),s=Math.max(0,Math.floor((Date.now()-r)/1e3)),i=Math.floor(s/60),l=Math.floor(i/60),u=Math.floor(l/24),c=Math.floor(u/7),d=Math.floor(u/30),m=Math.floor(u/365);return i<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):i<60?t("store.time.minutesAgo",{n:i}):l<24?t("store.time.hoursAgo",{n:l}):u<7?t("store.time.daysAgo",{n:u}):c<5?t("store.time.weeksAgo",{n:c}):u<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:m})}function Ci(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:s=!1,fallback:i="\u2014"}=t;if(!e)return i;const l=qr(e instanceof Date?e:String(e));if(!l)return i;const[u,c,d]=l.split("-"),m=r?c:String(Number(c)),p=r?d:String(Number(d));return`${u}${a}${m}${a}${p}${s?".":""}`}function ta(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function fi(e,t){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),s=Number(a[2]),i=a[1].padStart(2,"0");return s===0?t("date.timeH",{h:r,hh:i,mm:a[2]}):t("date.timeHM",{h:r,hh:i,m:s,mm:a[2]})}function Ur(e){return(e??0).toLocaleString("ko-KR")}const ZC=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uAC15\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],XC=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];function gi(){return ZC}function JC(){return XC}const QC=[],ef=[],tf=[],nf=[];function af(){return{LISTEN_IN_NOISE:QC,SHORT_STORY:ef,LONG_STORY:tf,ORDERING_SENTENCE:nf}}const rf=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],bi={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function of(e){return rf.map(t=>{const a=bi[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let Ka=null,yi=null,vi=null;function sf(){const e=ui();if(e&&e.entries.length>0){const t=EC();if(Ka&&yi===e&&vi===t)return Ka;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:t?.[s.word]?[...t[s.word].cho??[],...t[s.word].jung??[],...t[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return Ka=r,yi=e,vi=t,Ka}return[]}new Proxy([],{get(e,t){const a=sf(),r=a[t];return typeof r=="function"?r.bind(a):r}});const lf="0.309.0";function uf(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const t=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(t)}function cf(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&uf(r.attrValue)&&(r.keepAttr=!1)};Mr.addHook("uponSanitizeAttribute",t);try{return Mr.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{Mr.removeHook("uponSanitizeAttribute",t)}}function df(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),[i,l]=o.useState(null),[u,c]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),l(null);return}const d=e.split("/").pop();let m=e;d&&(e.startsWith("/")?m=Lr(e):/^(Logo|Symbol)/i.test(d)?m=Lr(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),s(null),l(null),a(m)},[e]),o.useEffect(()=>{if(!t)return;let d=!1;async function m(){try{let p=await fetch(t);p.ok||(p=await fetch(t));const f=p.headers.get("content-type")||"";if(d)return;if(f.includes("svg")){s("mask");return}if(f.startsWith("image/")){s("img");return}const y=await fetch(t);if(!y.ok)throw new Error("not ok");const v=await y.text();if(d)return;if(/^\s*<svg[\s>]/i.test(v)){const C=cf(v);if(!C){s("none");return}l(C),s("inline");return}s("none")}catch{d||s("none")}}return m(),()=>{d=!0}},[t]),o.useEffect(()=>{let d=!1,m=null;return r==="mask"&&t&&fetch(t).then(p=>{if(!p.ok)throw new Error("fetch failed");return p.blob()}).then(p=>{d||(m=URL.createObjectURL(p),c(m))}).catch(()=>{d||s("img")}),()=>{d=!0,m&&URL.revokeObjectURL(m),c(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:u}}function tt(e){const{icon:t,label:a,className:r,imgClassName:s,maskClassName:i,svgClassName:l,wrapperStyle:u,size:c}=e||{},d=r??"iconRenderer-icon",m=s??"iconRenderer-icon-image",p=i??"iconRenderer-icon-mask",f=l??"iconRenderer-icon-svg",y=typeof t=="string"?t:null,v=_0(y),{iconToUse:C,mode:b,svgText:_,blobUrl:h}=df(y),w=(k,A={})=>n.jsx("span",{className:d,style:u,...A,children:k}),g=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,B=(k,A={})=>n.jsx("img",{src:k,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:m,...A,style:g?{...A.style,...g}:A.style});if(!t)return null;if(typeof t!="string")return w(t);if(t==="none")return w(n.jsx("span",{className:f,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(v)try{return w(o.createElement(v,{className:f,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(C&&C.endsWith(".svg")){if(b==="mask"){const k={"--icon-url":h?`url(${h})`:`url(${C})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return w(n.jsx("span",{className:p,style:k}),{"aria-hidden":"true"})}return b==="img"?w(B(C,{onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):b==="inline"?w(n.jsx("span",{className:f,dangerouslySetInnerHTML:_?{__html:_}:void 0}),{"aria-hidden":"true"}):w(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return B(Lr(t),{style:u,onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}});const x=typeof c=="number"?c:20,N=`<svg width="${x}" height="${x}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return w(n.jsx("span",{className:f,dangerouslySetInnerHTML:{__html:N}}),{"aria-hidden":"true"})}function xi(e){const[t,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const i=o.useCallback(()=>{if(!e||r.current)return;const l=e();if(l&&typeof l.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,s.current&&a(!1)};l.then(u,u)}},[e]);return{pending:t,press:i}}function pf({icon:e,title:t,message:a,action:r,className:s}){const{pending:i,press:l}=xi(r?.onClick);return n.jsxs("div",{className:Ae("empty-state",s),children:[e&&n.jsx(tt,{icon:e,size:48,className:"empty-state__icon"}),t&&n.jsx("p",{className:"empty-state__title h4",children:t}),a&&n.jsx("p",{className:"empty-state__message body-3",children:a}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:l,disabled:i,"aria-busy":i||void 0,children:[r.icon&&n.jsx(tt,{icon:r.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function mf({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:i}){const{t:l}=_e.useTranslation(),{pending:u,press:c}=xi(r);return n.jsxs("div",{className:Ae("empty-state","error-state",i),role:"alert",children:[n.jsx(tt,{icon:a,size:48,className:"empty-state__icon error-state__icon"}),n.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&n.jsx("p",{className:"error-state__hint caption-1",children:t}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:c,disabled:u,"aria-busy":u||void 0,children:[n.jsx(tt,{icon:"rotate-cw",className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:s??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function hf({icon:e,title:t,description:a,cta:r,tone:s="main",disabled:i=!1,onClick:l,className:u=""}){const c=o.useId(),d=`${c}-title`,m=`${c}-desc`,p=`${c}-cta`,f=()=>{i||l?.()};return n.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":d,"aria-describedby":`${m} ${p}`,onClick:f,onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),f())},className:Ae("action-card",`action-card--${s}`,i&&"action-card--disabled",u),children:n.jsxs("div",{className:"action-card__body",children:[n.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:n.jsx(tt,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:d,className:"action-card__title",children:t}),n.jsx("p",{id:m,className:"action-card__desc",children:a})]}),n.jsxs("div",{className:"action-card__cta",children:[n.jsx("span",{id:p,children:r}),n.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:n.jsx(tt,{icon:"arrow-right",size:18})})]})]})})}function Cf({as:e="div",className:t="",children:a,storage:r,...s}){r&&iC({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl,noiseFileGain:r.noiseFileGain});const i=Ae("ihabdevteam-core-scope",t);return n.jsx(e,{className:i,...s,children:a})}function Gr(e,t=!0){o.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const i=Array.from(a.querySelectorAll(Cn)).filter(m=>!m.closest('[aria-hidden="true"]'));if(!i.length){s.preventDefault();return}const l=i[0],u=i[i.length-1],c=document.activeElement,d=c===a;s.shiftKey&&(c===l||d)?(s.preventDefault(),u.focus()):!s.shiftKey&&c===u&&(s.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const Cn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Kr=new WeakMap;function Yr(e,t){e&&Kr.set(e,t)}function Zr(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!Kr.has(r);)r=r.parentElement;if(!r)return t;t=Kr.get(r)??null}return t}function _i(e){return!(!e||!e.isConnected||e===document.body||typeof e.focus!="function"||e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e.closest('[inert],[aria-hidden="true"],[hidden]'))}function Ya(e,t,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(_i(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const s=Array.from(document.querySelectorAll(Cn)).filter(c=>!(e&&e.contains(c))&&_i(c));let i=null,l=null;for(const c of s)r.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_PRECEDING?i=c:l||(l=c);const u=i??l;return u?.focus(),u}function ff({title:e="",lines:t=[],notices:a=null,children:r,variant:s="default",dismissible:i=!1,className:l=""}){const{t:u}=_e.useTranslation(),[c,d]=o.useState(!1),m=o.useRef(null),p=o.useCallback(()=>{const C=m.current;C&&C.contains(document.activeElement)&&Ya(C),d(!0)},[]);if(c)return null;const f=`notice-box notice-box--${s} body-2 ${l}`.trim(),y=i&&n.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return n.jsxs("div",{className:f,role:"note",children:[a.map((C,b)=>n.jsxs("div",{className:"notice-box__inner",children:[C.title?n.jsx("span",{className:"notice-box__title body-3",children:C.title}):null,n.jsx("div",{className:"notice-box__body",children:C.lines&&C.lines.length?n.jsx("div",{children:C.lines.map((_,h)=>n.jsx("span",{className:"notice-box__line body-3",children:_},h))}):C.children??null})]},b)),y]});const v=e||t.length?n.jsxs("div",{className:"notice-box__inner",children:[e?n.jsx("span",{className:"notice-box__title body-1",children:e}):null,n.jsx("div",{className:"notice-box__body",children:t.length?n.jsx("ul",{children:t.map((C,b)=>n.jsx("li",{className:"notice-box__line",children:C},b))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:m,className:f,role:"note",children:[v,y]})}const na=[];let Za=!1;function wi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=na[na.length-1];t&&(e.stopPropagation(),t())}function Vn(e){return na.push(e),!Za&&typeof document<"u"&&(document.addEventListener("keydown",wi),Za=!0),()=>{const t=na.lastIndexOf(e);t>=0&&na.splice(t,1),na.length===0&&Za&&typeof document<"u"&&(document.removeEventListener("keydown",wi),Za=!1)}}const Bi=o.createContext(null);function gf(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const Ai=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function bf(e){const t=o.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return is.useSyncExternalStore(t,()=>Ai(e),()=>!1)}function yf(e){const[t,a]=o.useState(Ai(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=l=>a(l.matches),i=r;return i.addEventListener?i.addEventListener("change",s):i.addListener&&i.addListener(s),a(r.matches),()=>{i.removeEventListener?i.removeEventListener("change",s):i.removeListener&&i.removeListener(s)}},[e]),t}const vf=typeof is.useSyncExternalStore=="function"?bf:yf;function rn(e){const t=o.useContext(Bi),a=vf(e);return t&&typeof t.mobile=="boolean"&&gf(e)?t.mobile:a}const xf="(prefers-reduced-motion: reduce)";function Xr(){return rn(xf)}function un(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:i,closeOnOutsideClick:l=!0,className:u="",role:c="dialog",ariaLabel:d="",children:m,backdrop:p=!1,isMobilePopup:f=!1,useBorder:y=!0,header:v,focusOnOpen:C}=e||{},b=o.useRef(null),[_,h]=o.useState({position:"fixed",left:0,top:-9999}),[w,g]=o.useState(!1),[B,x]=o.useState("bottom"),[N,k]=o.useState(!1),[A,S]=o.useState(!1),E=!t&&!a,H=o.useCallback((q=!1)=>{if(A&&f)return;const R=a?a.getBoundingClientRect():t;if(!R||!b.current)return;const W=b.current,{offsetWidth:D,offsetHeight:P}=W,M=window.innerWidth,F=window.innerHeight,I=M-R.right,Z=R.left,J=R.top,Y=F-R.bottom;let ne=0,ie=0,ue="top";if(J>=P+r)ue="top",ie=R.top-r-P,ne=R.left+R.width/2-D/2;else if(Y>=P+r)ue="bottom",ie=R.bottom+r,ne=R.left+R.width/2-D/2;else if(I>=D+r)ue="right",ne=R.right+r,ie=R.top+R.height/2-P/2;else if(Z>=D+r)ue="left",ne=R.left-r-D,ie=R.top+R.height/2-P/2;else{const ge=Math.max(J,Y,I,Z);ge===J?(ue="top",ie=R.top-r-P,ne=R.left+R.width/2-D/2):ge===Y?(ue="bottom",ie=R.bottom+r,ne=R.left+R.width/2-D/2):ge===I?(ue="right",ne=R.right+r,ie=R.top+R.height/2-P/2):(ue="left",ne=R.left-r-D,ie=R.top+R.height/2-P/2)}const Se=Number.isFinite(Number(s))?Number(s):8;ne=Math.min(Math.max(ne,Se),M-D-Se),ie=Math.min(Math.max(ie,Se),F-P-Se);const V=Math.round(ne),oe=Math.round(ie);q&&b.current?(b.current.style.left=`${V}px`,b.current.style.top=`${oe}px`,b.current.dataset.placement=ue):(x(ue||B),h({position:"fixed",left:V,top:oe}),k(!0))},[A,f,a,t,r,s,B]);o.useLayoutEffect(()=>{if(E)return;if(A&&f){h({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),k(!0);return}H();const q=requestAnimationFrame(()=>H());return()=>cancelAnimationFrame(q)},[t,a,r,m,s,E,A,f,H]),o.useEffect(()=>{if(E||A&&f||!b.current||typeof ResizeObserver>"u")return;const q=new ResizeObserver(()=>{t&&H()});return q.observe(b.current),()=>q.disconnect()},[t,m,s,E,A,f,H]),o.useEffect(()=>{if(E||A&&f)return;const q=()=>H(!0),R=W=>{if(!a&&i){const D=W.target;if(D&&b.current&&b.current.contains(D))return;try{if(D&&D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}O.current(!0);return}q()};return window.addEventListener("resize",q),document.addEventListener("scroll",R,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",q),document.removeEventListener("scroll",R,{capture:!0})}},[t,a,i,r,m,s,E,A,f,H]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const q=window.matchMedia("(max-width: 768px)"),R=()=>S(!!q.matches);R();try{q.addEventListener?q.addEventListener("change",R):q.addListener(R)}catch{try{q.addListener(R)}catch{}}return()=>{try{q.removeEventListener?q.removeEventListener("change",R):q.removeListener(R)}catch{}}},[]);const $=o.useRef(!1),K=o.useRef(null),L=Xr(),j=o.useCallback((q=!1)=>{if(i&&!(w||$.current)){if($.current=!0,q){g(!0);try{i&&i()}catch{$.current=!1,g(!1)}return}g(!0),K.current=setTimeout(()=>{K.current=null;try{i&&i()}catch{$.current=!1,g(!1)}},L?0:200)}},[w,i,g,L]);o.useEffect(()=>()=>{K.current&&clearTimeout(K.current)},[]),o.useEffect(()=>{if(E)return;const q=D=>{const P=b.current;if(!P)return;const M=D.target;if(M&&!P.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&j(!0)}},R=D=>{const P=b.current;if(!P)return;const M=D.target;if(M&&!P.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&j(!0)}},W=D=>{if(D.key==="Tab"){const P=b.current;if(!P)return;const M=P.querySelectorAll(Cn);if(!M||M.length===0)return;const F=M[0],I=M[M.length-1],Z=document.activeElement;D.shiftKey?Z===F&&(D.preventDefault(),I.focus()):Z===I&&(D.preventDefault(),F.focus())}};return document.addEventListener("pointerdown",q,!0),document.addEventListener("click",R,!0),document.addEventListener("keydown",W),()=>{document.removeEventListener("pointerdown",q,!0),document.removeEventListener("click",R,!0),document.removeEventListener("keydown",W)}},[i,l,j,E]);const O=o.useRef(j);o.useEffect(()=>{O.current=j});const U=!!i;o.useEffect(()=>{if(!(E||!U))return Vn(()=>O.current())},[E,U]),o.useEffect(()=>{const q=()=>{j(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",q),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",q)}},[j]);const te=o.useRef(null);o.useEffect(()=>{if(E||C===!1||!N)return;const q=b.current;if(!q)return;const R=q.querySelector(Cn);if(R)return te.current=document.activeElement,R.focus(),()=>{const W=te.current;te.current=null,W&&document.contains(W)&&W.focus()}},[E,C,N]),o.useEffect(()=>{c==="dialog"&&!d&&Gt("tooltip-no-name",'[ihab/Tooltip] \uC774\uB984 \uC5C6\uB294 role="dialog" \uC785\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. \uB0AD\uB3C5\uAE30\uAC00 "\uB300\uD654\uC0C1\uC790" \uB77C\uACE0\uB9CC \uC77D\uC2B5\uB2C8\uB2E4.')},[c,d]);const z=n.jsxs("div",{ref:b,className:`tooltip-content ${E?"tooltip-content--inline":""} ${y?"tooltip-content--bordered":""} ${w?"is-closing":""} ${u} ${A&&f?"is-mobile":""}`,role:c,"aria-label":d||void 0,style:E?{}:{..._,visibility:N?"visible":"hidden"},tabIndex:-1,"data-placement":B,"data-left":E?"":_.left,"data-top":E?"":_.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[v!=null&&n.jsx("div",{className:"tooltip-content__header h5",children:v}),m]});if(E||typeof document>"u")return z;if(p||A&&f){const q=n.jsxs("div",{className:"tooltip-portal",children:[n.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&j(!0)}}),z]});return en.createPortal(q,document.body)}return en.createPortal(z,document.body)}function vn(e){const{anchorRect:t,text:a,offset:r=8,onClose:s,className:i="",ariaLabel:l}=e||{};return a?n.jsx(un,{anchorRect:t,offset:r,onClose:s,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:n.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Wn(e){const{t}=_e.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:i=-1,showIndex:l=!0,onClose:u,offset:c=12,closeOnOutsideClick:d=!0}=e||{},m=(Array.isArray(s)?s:s?[s]:[]).map(p=>typeof p=="string"?{text:p}:p);return!m.length&&!r?null:n.jsx(un,{anchorRect:a,offset:c,onClose:u,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:n.jsxs("div",{className:"tooltip-description__box",children:[r&&n.jsx("span",{className:"tooltip-description__title body-2",children:r}),n.jsx("ol",{className:"tooltip-description__items",children:m.map((p,f)=>n.jsxs("li",{className:`tooltip-description__item body-3${f===i?" tooltip-description__item--active":""}`,children:[l&&m.length>1&&n.jsxs("span",{className:"tooltip-description__index button-1",children:[f+1,"."]}),p.color&&n.jsx("span",{className:"tooltip-description__dot",style:{background:p.color},"aria-hidden":"true"}),n.jsx("span",{children:p.text})]},f))})]})})}function wa(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let Jr=0,ki=!1;function Ni(){ki||typeof document>"u"||(ki=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(Jr=Date.now())},!0),document.addEventListener("touchstart",()=>{Jr=Date.now()},{capture:!0,passive:!0}))}Ni();function aa(e){return!!e&&e.pointerType==="touch"}function ra(e=1e3){return Ni(),Date.now()-Jr<e}function Qr(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const i=wa(e),l=wa(t),u=o.useRef(null),c=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const m=p=>{const f=p,y=p.target,v=a.current,C=!!(y&&v&&v.contains(y));if(f.pointerType!=="touch"){C&&(u.current=null);return}if(C){u.current=i.current;return}u.current=null,i.current&&!(y&&y.closest?.(".tooltip-content"))&&l.current(!1,v)};return document.addEventListener("pointerdown",m,!0),()=>document.removeEventListener("pointerdown",m,!0)},[r,a,i,l]);const d=o.useCallback(m=>{const p=u.current;return p===null?!1:(u.current=null,c.current=Date.now(),l.current(!p,m??a.current),!0)},[a,l]);return o.useEffect(()=>{if(!r||!s)return;const m=a.current,p=m?.parentElement;if(!m||!p)return;let f=null;const y=b=>{const _=b.changedTouches?.[0];if(!_)return!1;const h=m.getBoundingClientRect();return _.clientX>=h.left&&_.clientX<=h.right&&_.clientY>=h.top&&_.clientY<=h.bottom},v=b=>{f=y(b)?i.current:null},C=b=>{const _=f;f=null,!(_===null||Date.now()-c.current<700||!y(b))&&(u.current=null,c.current=Date.now(),l.current(!_,m))};return p.addEventListener("touchstart",v,{passive:!0}),p.addEventListener("touchend",C),()=>{p.removeEventListener("touchstart",v),p.removeEventListener("touchend",C)}},[r,s,a,i,l]),{touchPress:d}}function _f(e,t){const{size:a=48,type:r,htmlType:s,href:i,target:l,rel:u,icon:c,rightIcon:d,label:m,count:p,subLabel:f,children:y,ariaLabel:v,variant:C="default",align:b="center",nowrap:_=!1,selected:h,toggleable:w=!1,ariaExpanded:g,ariaControls:B,disabled:x=!1,useLabel:N=!0,useBorder:k=!0,useBG:A=!0,useDisabledCovered:S=!1,useDisabledInvisible:E=!1,width:H,minWidth:$,onClick:K,onDisabledClick:L,showTooltipInfo:j=!1,tooltipInfoText:O=null,tooltipDescription:U=null,tooltipOnly:te=!1,iconSize:z="medium",iconColor:q,shape:R="rounded",color:W,className:D,...P}=e,M=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),F=M.match(/^\d+$/)?`button${M}`:`button-${M}`,I=Number(a),Z=!isNaN(I)&&I<40?"button-2":"button-1",J=m??y,Y=x||!!P.disabled,ne=Y?S?"disabled-covered":E?"disabled-invisibled":"disabled":C,ie=ne?`button--variant-${ne}`:"",ue=b?`button--align-${b}`:"",Se=_?"button--nowrap":"",V=R?`button--shape-${R}`:"",oe=typeof q=="string"&&q.startsWith("--")?`var(${q})`:q,ge={...H?{width:typeof H=="number"?`${H}px`:H}:{},...$?{minWidth:typeof $=="number"?`${$}px`:$}:{},...k?{}:{"--button-border":Y?"0":"1px solid transparent"},...oe?{"--button-icon-color":oe}:{},...W?{"--color-main":W}:{}},De=N===!1?"":J,fe=Array.isArray(De)?De.length>0:!!De,ae=!!d,de=r??(fe||c||ae?"bar":"dot"),pe=`${F}--${de}`,he=o.useRef(null);o.useEffect(()=>{!Zn||s!==void 0||he.current?.closest("form")&&Gt(`button-in-form:${typeof J=="string"?J:""}`,'[ihab/Button] <form> \uC548\uC778\uB370 htmlType \uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uC774 \uB2E8\uCD94\uB294 type="button" \uC774\uB77C \uD3FC\uC744 \uBCF4\uB0B4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uBA74 htmlType="submit" \uC744 \uC8FC\uC138\uC694. \uD3FC\uC5D0 \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uAC00 \uD558\uB098\uB3C4 \uC5C6\uC73C\uBA74 **Enter \uB85C\uB3C4 \uC548 \uBCF4\uB0B4\uC9D1\uB2C8\uB2E4**(\uCE78\uC774 \uB458 \uC774\uC0C1\uC77C \uB54C).'+(typeof J=="string"&&J?` \uB2E8\uCD94: ${J}`:""))},[s,J]);const be=o.useRef(t);be.current=t;const Pe=o.useCallback(Me=>{he.current=Me;const nt=be.current;typeof nt=="function"?nt(Me):nt&&(nt.current=Me)},[]),$e=o.useRef(Y),[Ie,Fe]=o.useState(!!h),[Oe,dt]=o.useState(!1),[lt,ot]=o.useState(null),ct=o.useCallback(()=>dt(!1),[]),[ke,He]=o.useState(!1),Be=o.useId();o.useEffect(()=>{typeof h=="boolean"&&Fe(h)},[h]),o.useEffect(()=>{if($e.current&&!Y&&he.current){const Me=he.current;let nt=!1;try{nt=Me.matches(":focus:not(:focus-visible)")}catch{nt=!1}nt&&Me.blur(),Me.style.pointerEvents="none";const Lt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{he.current&&(he.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(Lt)}$e.current=Y},[Y]);const Xe=typeof h=="boolean"?!!h:Ie,X=typeof g=="boolean"?void 0:w||typeof h=="boolean"?Xe?"true":"false":P["aria-pressed"],le=Ae("button",F,pe,ie,ue,Se,V,Xe?"is-selected":null,A?null:"button--no-bg",te?"button--tooltip-only":null,D),we=`button__icon button__icon--${z}`,Ne=Array.isArray(f)?f:f!==void 0?[f]:[],Ve=()=>{if(Array.isArray(De))return De.map((nt,Lt)=>{const Xt=Ne[Lt];return n.jsxs("span",{className:`button__label-text${Xt!==void 0?" button__label-text--has-sub":""}`,children:[nt,Xt!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:Xt})]},Lt)});const Me=f!==void 0;return n.jsxs("span",{className:`button__label-text${Me?" button__label-text--has-sub":""}`,children:[De,p!=null&&n.jsx("span",{className:"button__count",children:p}),Me&&n.jsx("span",{className:"button__sub-label-text caption-1",children:f})]})},et=Me=>{typeof h!="boolean"&&!w&&Fe(!1),Me.currentTarget.blur()},pt=Me=>{Y||(typeof P.onMouseLeave=="function"&&P.onMouseLeave(Me),et(Me))},ut=Me=>{if(te&&Qe&&Ue.touchPress(Me.currentTarget),Y){Qe&&Ue.touchPress(Me.currentTarget),Me.preventDefault(),L?.(Me);return}typeof h!="boolean"&&w&&Fe(nt=>!nt),K?.(Me)},ft=o.useCallback(()=>{(j||U)&&(dt(!0),ot(he.current?.getBoundingClientRect()??null))},[j,U]),gt=o.useCallback(()=>{(j||U)&&(dt(!1),ot(null))},[j,U]),Qe=!!(j||U),Ue=Qr(Oe,Me=>{Me?ft():gt()},he,{enabled:Qe&&(Y||te),fallbackOnParent:Qe&&Y}),We={...P};delete We.disabled,delete We.className,delete We.faded,delete We.useFaded,delete We.loading,delete We.onMouseLeave,delete We.onPointerEnter,delete We.onPointerLeave,delete We.onPointerUp,delete We.onFocus,delete We.onBlur,Y&&(Object.keys(We).forEach(Me=>{/^on[A-Z]/.test(Me)&&typeof We[Me]=="function"&&delete We[Me]}),We["aria-disabled"]="true");const Ke=(typeof j=="string"?j:null)??(typeof O=="string"?O:null)??(typeof v=="string"?v:null)??(typeof J=="string"?J:null)??void 0,rt=typeof v=="string"?v:typeof J=="string"?J:Ke,bt=U?[U.title,...U.items??[]].filter(Boolean).join(". "):j&&Ke&&Ke!==rt?Ke:"",Ye=[typeof P["aria-describedby"]=="string"?P["aria-describedby"]:void 0,bt?Be:null].filter(Boolean).join(" ")||void 0,ht=(Me,nt)=>n.jsx(tt,{icon:Me,label:nt??rt,className:we,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),Nt=()=>de==="dot"?n.jsxs(n.Fragment,{children:[ht(c),fe&&n.jsx("span",{className:`button__label ${Z}`,children:Ve()})]}):b==="center"&&c?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:ht(c)}),fe&&n.jsx("span",{className:`button__label ${Z}`,children:Ve()})]}),ae&&n.jsx("span",{className:"button__right",children:ht(d)})]}):n.jsxs(n.Fragment,{children:[c&&n.jsx("span",{className:"button__left",children:ht(c,v??J)}),fe&&n.jsx("span",{className:`button__label ${Z}`,children:Ve()}),ae&&n.jsx("span",{className:"button__right",children:ht(d)})]}),Et=!!i&&!Y;return n.jsxs(n.Fragment,{children:[n.jsxs(Et?"a":"button",{...We,ref:Pe,...Et?{href:i,target:l,rel:u??(l==="_blank"?"noreferrer":void 0)}:{type:s??"button",disabled:Y&&!L&&!ke},className:le,"aria-pressed":X,"aria-expanded":typeof g=="boolean"?g:P["aria-expanded"],"aria-controls":B??P["aria-controls"],"aria-label":rt,"aria-disabled":Y&&(Et||L||ke)?!0:void 0,"aria-describedby":Ye,style:ge,onClick:ut,onMouseLeave:pt,onPointerEnter:Me=>{aa(Me)||ft(),!Y&&typeof P.onPointerEnter=="function"&&P.onPointerEnter(Me)},onPointerLeave:Me=>{aa(Me)||gt(),!Y&&typeof P.onPointerLeave=="function"&&P.onPointerLeave(Me)},onPointerUp:Me=>{Y&&Qe&&Ue.touchPress(Me.currentTarget),!Y&&typeof P.onPointerUp=="function"&&P.onPointerUp(Me)},onFocus:Me=>{He(!0),ra()||ft(),!Y&&typeof P.onFocus=="function"&&P.onFocus(Me)},onBlur:Me=>{He(!1),Y||et(Me),gt(),!Y&&typeof P.onBlur=="function"&&P.onBlur(Me)},children:[Nt(),bt?n.jsx("span",{id:Be,hidden:!0,"aria-label":bt}):null]}),Oe&&U?n.jsx(Wn,{anchorRect:lt,title:U.title,items:U.items,onClose:ct}):Oe&&Ke?n.jsx(vn,{anchorRect:lt,text:Ke,onClose:ct}):null]})}const me=o.forwardRef(_f);me.displayName="Button";var wf={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",selectedOfMax:"\uCD5C\uB300 {{max}}\uAC1C \uC911 {{count}}\uAC1C",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",likeCount:"\uC88B\uC544\uC694 {{count}}",downloadCount:"\uAC00\uC838\uAC04 \uC218 {{count}}",descriptionFor:"{{name}} \uC124\uBA85",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",collapseFor:"{{name}} \uC811\uAE30",expandFor:"{{name}} \uD3BC\uCE58\uAE30",sortFor:"{{name}} \uC815\uB82C",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",playFor:"{{name}} \uC7AC\uC0DD",pauseFor:"{{name}} \uBA48\uCDA4",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",noMatches:"\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",networkError:"\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694."},Bf={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],yearMonth:"{{year}}\uB144 {{month}}\uC6D4",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704",visitCount:"\uBC29\uBB38 {{count}}\uAC74",statusCount:"{{label}} {{count}}\uAC74"},Af={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",expired:"\uB9CC\uB8CC\uB428",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},kf={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},Nf={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},Df={selected:"\uC120\uD0DD\uB428"},Ef={placeholder:"\uC120\uD0DD"},Sf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},jf={biArea:"BI \uC601\uC5ED",biSymbol:"BI \uC2EC\uBCFC",logoMalgwi:"\uB9D0\uADC0 \uB85C\uACE0",logoManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0",menuOpen:"\uBA54\uB274 \uC5F4\uAE30",utilMenu:"\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274",menuClose:"\uBA54\uB274 \uB2EB\uAE30"},Tf={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",feedback:"\uBC84\uADF8\uC2E0\uACE0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C",badgeInsideLabel:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"},Mf={language:{training:{label:"\uD6C8\uB828 \uC5B8\uC5B4",sub:"\uD6C8\uB828\uC5D0 \uC0AC\uC6A9\uB418\uB294 \uB2E8\uC5B4\uC640 \uC74C\uC131 \uC5B8\uC5B4"}},notifications:{title:"\uC54C\uB9BC"},display:{fontSize:{small:"\uC791\uAC8C",large:"\uD06C\uAC8C"}},cache:{title:"\uCE90\uC2DC \uAD00\uB9AC",confirmMessage:"\uCE90\uC2DC({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",delete:"\uC0AD\uC81C",deleting:"\uC0AD\uC81C \uC911",cleared:"\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",group:{wordData:{label:"\uB2E8\uC5B4 \uB370\uC774\uD130",sub:"\uB2E8\uC5B4 \uBAA9\uB85D \uBC0F \uBC84\uC804 \uC815\uBCF4"},pairIndex:{label:"\uB2E8\uC5B4\uC30D \uC778\uB371\uC2A4",sub:"\uCD08\uC131\xB7\uC911\uC131\xB7\uC885\uC131 \uB300\uB9BD\uC30D \uBD84\uC11D \uCE90\uC2DC"},imageCache:{label:"\uC774\uBBF8\uC9C0 \uCE90\uC2DC",sub:"\uB2E8\uC5B4\uBCC4 \uC774\uBBF8\uC9C0 \uC874\uC7AC \uC5EC\uBD80 \uD655\uC778 \uACB0\uACFC"},trainingRecord:{label:"\uD6C8\uB828 \uAE30\uB85D",sub:"\uC624\uB298\uC758 \uD6C8\uB828 \uC9C4\uD589\uB960 \uBC0F \uD559\uC2B5 \uC77C\uC218"}}},button:{save:"\uC124\uC815 \uC800\uC7A5"},popup:{clear:{confirm:"\uCD08\uAE30\uD654"},update:{confirm:"\uC5C5\uB370\uC774\uD2B8"},cache:{title:"{{label}} \uC0AD\uC81C",message:"{{label}}({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?"}},saved:"\u2713 \uC800\uC7A5\uB428",account:{title:"\uACC4\uC815",delete:{sub:"\uD0C8\uD1F4 \uD6C4 30\uC77C \uC774\uB0B4 \uC7AC\uAC00\uC785 \uC2DC \uBCF5\uAD6C \uAC00\uB2A5\uD569\uB2C8\uB2E4."}}},Lf={addButton:"\uC774\uC6A9\uAD8C \uCD94\uAC00\uD558\uAE30",couponButton:"\uCFE0\uD3F0 \uC785\uB825",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",segment:{personal:"\uB9D0\uADC0",org:"\uB9D0\uADC0\uB9E4\uB2C8\uC800"},org:{title:"\uD604\uC7AC \uC774\uC6A9\uAD8C",disc:"\uAE30\uAD00\uC5D0\uC11C \uC0AC\uC6A9 \uC911\uC778 \uC774\uC6A9\uAD8C \uC815\uBCF4\uC785\uB2C8\uB2E4.",empty:"\uB4F1\uB85D\uB41C \uAE30\uAD00 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",fallbackTitle:"\uAE30\uAD00 \uC774\uC6A9\uAD8C",startDate:"\uC2DC\uC791\uC77C",endDate:"\uB9CC\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04",duration:"\uC774\uC6A9 \uAE30\uAC04"},active:{infoTitle:"\uC774\uC6A9 \uC815\uBCF4",refund:"\uD658\uBD88 \uC694\uCCAD",startDate:"\uC0AC\uC6A9 \uC2DC\uC791\uC77C",endDate:"\uC885\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04"},pending:{title:"\uBCF4\uC720",empty:"\uB300\uAE30 \uC911\uC778 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}},$f={profile:{planSuffix:"\uD50C\uB79C",plan:"\uD50C\uB79C"},basicInfo:{name:{placeholder:"\uD64D\uAE38\uB3D9"}},security:{title:"\uBCF4\uC548",password:{label:"\uBE44\uBC00\uBC88\uD638",currentRequired:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",newRequired:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",mismatch:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",changed:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},twoFactor:{label:"2\uB2E8\uACC4 \uC778\uC99D",sub:"\uACC4\uC815 \uBCF4\uC548\uC744 \uAC15\uD654\uD558\uC138\uC694"}}},Rf={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},Pf={settings:"\uC124\uC815",start:{title:"\uB2E8\uC5B4\uD6C8\uB828 \uC2DC\uC791",description:"\uC544\uB798 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD574 \uC2DC\uC791\uD558\uC138\uC694"},difficulty:{tooltip:"\uAC00\uC7A5 \uC26C\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uBB34\uC791\uC704', \uAC00\uC7A5 \uC5B4\uB824\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uCD08\uC131\uCC28\uC774' \uC785\uB2C8\uB2E4."},contrast:{label:"\uB300\uB9BD",type:"\uB300\uB9BD \uC885\uB958",count:"\uB300\uB9BD \uAC2F\uC218",n:"{{n}}\uAC1C"},filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\uB4F1\uAE09",excludeImageInfo:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4.",sameStructureInfo:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694.",selectSection:"\uC120\uD0DD",excludeImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",sameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},noQuestions:"\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",countQuestions:"{{n}}\uBB38\uC81C",countSentences:"{{n}}\uBB38\uC7A5",comingSoon:"\uC900\uBE44 \uC911",nextQuestion:"\uB2E4\uC74C \uBB38\uC81C",noiseRatioTitle:"\uC18C\uC74C \uBE44\uC728",noiseRatioValue:"{{ratio}}\uBC30",noiseTypeTitle:"\uC18C\uC74C \uC885\uB958",playVolumeTitle:"\uC804\uCCB4 \uC18C\uB9AC",playSpeedTitle:"\uC7AC\uC0DD \uC18D\uB3C4",meter:{sentence:"\uC7AC\uC0DD",noise:"\uC18C\uC74C",toggle:"\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"},viewResult:"\uACB0\uACFC\uBCF4\uAE30",problemNotice:"{{n}}\uBC88 \uBB38\uC81C \uC785\uB2C8\uB2E4.",trainingSettingsTitle:"\uD6C8\uB828 \uC124\uC815",sentencePreview:"\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30",notHeard:"\uC548 \uB4E4\uB838\uC5B4\uC694.",answerLockedHint:"\uB2E4 \uB4E4\uC73C\uBA74 \uACE0\uB97C \uC218 \uC788\uC5B4\uC694.",heardWell:"\uC798 \uB4E4\uB838\uC5B4\uC694.",confirmTitle:"\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694.",noSoundWaveform:"\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",noise:{level:{none:"\uC5C6\uC74C",weak:"\uC57D\uD568",medium:"\uBCF4\uD1B5",strong:"\uAC15\uD568",veryStrong:"\uB9E4\uC6B0 \uAC15\uD568"},type:{none:"\uC5C6\uC74C",default:"\uAE30\uBCF8",street:"\uAE38\uAC70\uB9AC",buzz:"\uC640\uAE00\uC640\uAE00",restaurant:"\uC2DD\uB2F9"}},listenTitle:"\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694.",listenButton:"\uBB38\uC7A5 \uB4E3\uAE30",playSound:"\uC18C\uB9AC \uB4E3\uAE30",playAll:"\uBAA8\uB450 \uB4E3\uAE30",selectInOrder:"\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",previewFor:"{{name}} \uBBF8\uB9AC \uB4E3\uAE30",stopFor:"{{name}} \uC815\uC9C0",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ttsUnavailable:"\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{pendingDone:"\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",audioStatus:{idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD",synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026"}},Ff={totalCount:"\uAC1C\uC758 \uD6C8\uB828 \uBB36\uC74C",renameGroup:"\uADF8\uB8F9 \uC774\uB984 \uBC14\uAFB8\uAE30",itemCount:"\uD6C8\uB828 \uAC1C\uC218",menu:{edit:"\uD6C8\uB828 \uBB36\uC74C \uC218\uC815",rename:"\uC774\uB984 \uBC14\uAFB8\uAE30",move:"\uADF8\uB8F9 \uC774\uB3D9",duplicate:"\uD6C8\uB828 \uBB36\uC74C \uBCF5\uC0AC",publish:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30"},sort:{customers:"\uD6C8\uB828 \uACE0\uAC1D"},copyLink:"\uB9C1\uD06C \uBCF5\uC0AC",removeLink:"\uB9C1\uD06C \uC81C\uAC70",linkRemoved:"\uB9C1\uD06C\uAC00 \uC81C\uAC70\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",linkSaveFirst:"\uBA3C\uC800 \uD6C8\uB828 \uBB36\uC74C\uC744 \uC800\uC7A5\uD574\uC8FC\uC138\uC694.",linkSaveFirstHint:"\uC800\uC7A5\uB41C \uD6C8\uB828 \uBB36\uC74C\uC5D0\uC11C\uB9CC \uACF5\uC720 \uB9C1\uD06C\uB97C \uC0DD\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",linkCopySelect:"\uBCF5\uC0AC\uAC00 \uB9C9\uD600 \uB9C1\uD06C\uB97C \uC120\uD0DD\uD588\uC2B5\uB2C8\uB2E4. Ctrl/\u2318+C\uB85C \uBCF5\uC0AC\uD558\uC138\uC694.",nameRequired:"\uD6C8\uB828 \uBB36\uC74C \uC774\uB984\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694.",itemRequired:"\uD6C8\uB828\uC744 1\uAC1C \uC774\uC0C1 \uB2F4\uC544\uC8FC\uC138\uC694.",randomAdd:"\uBB34\uC791\uC704 \uCD94\uAC00"},If={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",basicInfo:{editTooltip:"\uC218\uC815\uD558\uAE30"},member:{placeholder:"\uC774\uBA54\uC77C \uB610\uB294 \uC804\uD654",link:"\uC5F0\uACB0",linking:"\uC5F0\uACB0 \uC911\u2026"},device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addTooltip:"\uC0C8\uB85C \uC0DD\uC131",addButton:"\uAE30\uAE30 \uCD94\uAC00",listTooltip:"\uBAA9\uB85D \uBCF4\uAE30",listTitle:"\uCE21 \uAE30\uAE30 \uBAA9\uB85D",historyEmpty:"\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",wearing:"\uCE21 \uCC29\uC6A9\uC911",notRegistered:"\uBBF8\uB4F1\uB85D",unit:"\uAC1C",wearingNow:"\uCC29\uC6A9",wear:"\uCC29\uC6A9",unwear:"\uCC29\uC6A9 \uD574\uC81C",wornSince:"{{date}}\uBD80\uD130",release:"\uD574\uC81C",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{title:"\uBC29\uBB38 \uC608\uC815",addTooltip:"\uC608\uC815 \uB4F1\uB85D",listTooltip:"\uC804\uCCB4 \uBCF4\uAE30",empty:"\uC608\uC815\uB41C \uBC29\uBB38\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D",memoPlaceholder:"\uBC29\uBB38 \uC608\uC815 \uAD00\uB828 \uBA54\uBAA8\uB97C \uC785\uB825\uD574 \uC8FC\uC138\uC694."},visitHistory:{title:"\uBC29\uBB38 \uC774\uB825",addTooltip:"\uC2E0\uADDC \uB4F1\uB85D",empty:"\uC544\uC9C1 \uBC29\uBB38 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",popupTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC774\uB825",registerTitle:" \uACE0\uAC1D\uB2D8 \uC2E0\uADDC \uBC29\uBB38 \uB4F1\uB85D"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uC0C1\uD669",active:"\uD65C\uC131",inactive:"\uBE44\uD65C\uC131",copy:"\uB9C1\uD06C \uBCF5\uC0AC",copied:"\uB9C1\uD06C\uAC00 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",visits:{title:"\uBC29\uBB38"},trainingRecord:{title:"\uACE0\uAC1D \uD6C8\uB828 \uAE30\uB85D"},status:{trainingSubtitle:"\uD6C8\uB828 \uD604\uD669"},detail:{session:{completedFmt:"\uC644\uB8CC {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:"\uC758 \uBC29\uBB38"},duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"}},Of={plan:{recommendedFor:"\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.",features:"\uD575\uC2EC \uAE30\uB2A5",freePrice:"\uBB34\uB8CC",contact:"\uBB38\uC758\uD558\uAE30",tierFallback:"\uC774\uC6A9\uAD8C",openPromo:"\uC624\uD508 \uD2B9\uAC00"},products:{mgrEnterprise:{tier:{price:"\uBB38\uC758"}}}},Hf={title:"\uCFE0\uD3F0",subtitle:"\uCFE0\uD3F0 \uCF54\uB4DC\uB97C \uC785\uB825\uD558\uAC70\uB098 \uBCF4\uC720 \uCFE0\uD3F0\uC744 \uD655\uC778\uD558\uC138\uC694.",input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9",error:{invalid:"\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uCFE0\uD3F0 \uCF54\uB4DC\uC785\uB2C8\uB2E4.",alreadyUsed:"\uC774\uBBF8 \uC0AC\uC6A9\uB41C \uCFE0\uD3F0\uC785\uB2C8\uB2E4."},success:{applied:'"{{name}}" \uCFE0\uD3F0\uC774 \uC801\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.'},section:{owned:"\uBCF4\uC720 \uCFE0\uD3F0"},status:{used:"\uC0AC\uC6A9 \uC644\uB8CC",available:"\uC0AC\uC6A9 \uAC00\uB2A5"}},zf={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},Vf={subtitle:"\uC5C5\uCCB4 \uBC0F \uBC95\uC778 \uC815\uBCF4\uB97C \uAD00\uB9AC\uD558\uC138\uC694.",editButton:"\uC815\uBCF4 \uC218\uC815",basicInfo:{title:"\uAE30\uBCF8 \uC815\uBCF4"},contactInfo:{title:"\uC5F0\uB77D\uCC98 \uC815\uBCF4"}},Wf={title:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",subtitle:"\uC6D0\uD558\uB294 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD558\uC138\uC694.",listenInNoise:{title:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},shortStory:{title:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uC774\uD574\uD569\uB2C8\uB2E4."},longStory:{title:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uC9D1\uC911\uD574\uC11C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uD30C\uC545\uD569\uB2C8\uB2E4."},orderingSentence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uB4E4\uC740 \uBB38\uC7A5\uB4E4\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD569\uB2C8\uB2E4."},SAME_SOUND_PICK:{label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},SAME_OR_DIFF:{label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",sub:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},HEAR_AND_PICK_SAME:{label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},HEAR_AND_PICK_INCLUDED:{label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},STARTS_WITH_SAME_SOUND:{label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."},LISTEN_AND_REMEMBER_ORDER:{label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",sub:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."},MERGE_2_SYLLABLES:{label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_SYLLABLES:{label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_2_PHONEMES:{label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_PHONEMES:{label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_PART_FROM_COMPOUND:{label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84 \uD0C8\uB77D",sub:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",sub:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",sub:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"},CHANGE_1_SYLL_IN_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_SYLL_IN_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_1SYLL:{label:"1\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_2SYLL:{label:"2\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}},qf={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},Uf={colName:"\uB2E8\uC5B4\uD45C \uC774\uB984",open:"\uC5F4\uAE30",countSuffix:"\uAC1C\uC758 \uB2E8\uC5B4\uD45C",tab:{cards:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",tables:"\uB2E8\uC5B4\uD45C"},cardsEmpty:"\uC544\uC9C1 \uB9CC\uB4E0 \uB2E8\uC5B4\uD45C \uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",addCard:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC \uCD94\uAC00",menu:{publishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30",unpublishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0\uC11C \uB0B4\uB9AC\uAE30"},newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},Gf={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},Kf={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",topInfo:"\uC0C1\uB2E8 \uC815\uBCF4",bottomInfo:"\uD558\uB2E8 \uC815\uBCF4",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",copyName:"{{name}} (\uBCF5\uC0AC)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"{{name}} \uC0AD\uC81C",viewLabel:"\uBCF4\uAE30 \uBC29\uC2DD",sortLabel:"\uC815\uB82C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},publisherFilter:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30",groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",markName:{o:"\uB9DE\uC74C",triangle:"\uC560\uB9E4",x:"\uD2C0\uB9BC"},button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78 \uC544\uB798 \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB20C\uB7EC \uB9E4\uAE30\uC138\uC694. \uB9C8\uC6B0\uC2A4\uB85C\uB294 \uCE78\uC5D0 \uC190\uC744 \uC5B9\uC73C\uBA74, \uC790\uD310\uC73C\uB85C\uB294 \uCE78\uC5D0 \uCD08\uC810\uC774 \uAC00\uBA74 \uB098\uD0C0\uB0A9\uB2C8\uB2E4.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},reorder:{moved:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40",handle:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)",hint:"Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"}},Yf={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB2E8\uC5B4\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB4F1\uAE09",grade:"{{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193",original:"\uBC1B\uC740 \uC21C\uC11C"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30",popup:{title:"{{n}}\uBC88 \uCE78\uC5D0 \uB123\uC744 \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uC138\uC694"}},Zf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},Xf={title:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uACE0 \uB4E3\uAE30 \uD6C8\uB828\uC744 \uC2DC\uC791\uD558\uC138\uC694.",noiseTitle:"\uC18C\uC74C \uD558 \uBB38\uC7A5\uB4E3\uAE30",shortStoryTitle:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",FOOD:"\uC74C\uC2DD",HLTH:"\uAC74\uAC15",WETH:"\uB0A0\uC528",PRSN:"\uC778\uBB3C",KRCT:"\uD55C\uAD6D\uBB38\uD654",STRY:"\uC774\uC57C\uAE30",LOCA:"\uC9C0\uC5ED",SOAR:"\uC0AC\uD68C\uC640 \uC608\uC220",NTSC:"\uC790\uC5F0\uACFC \uACFC\uD559",SPRT:"\uC2A4\uD3EC\uCE20",sub:{TRKRFD:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD",MDKRFD:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD",WRLDFD:"\uC138\uACC4\uC758 \uC74C\uC2DD",MTRFRT:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C",GEFDKL:"\uC74C\uC2DD \uC0C1\uC2DD",HTETHB:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00",DISILL:"\uBCD1\uACFC \uC9C8\uD658",EXCISE:"\uC6B4\uB3D9",GEHTKL:"\uAC74\uAC15\uC0C1\uC2DD",GESSKL:"\uACC4\uC808\uC0C1\uC2DD",SNWRAN:"\uB208\uACFC \uBE44",WTHFCT:"\uC77C\uAE30\uC608\uBCF4",GEWTKL:"\uB0A0\uC528\uC0C1\uC2DD",JODYPS:"\uC870\uC120\uC2DC\uB300",MDKRPS:"\uD55C\uAD6D \uADFC\uD604\uB300",THKDPS:"\uC0BC\uAD6D\uC2DC\uB300",WRLART:"\uC138\uACC4\uC758 \uC608\uC220\uAC00",WRLPSN:"\uC138\uACC4\uC758 \uC778\uBB3C",KRLANG:"\uC6B0\uB9AC\uB9D0",TRPLCT:"\uC804\uD1B5\uB180\uC774",HERITG:"\uBB38\uD654\uC7AC",EVTFES:"\uD589\uC0AC\uC640 \uCD95\uC81C",GECTKL:"\uC0C1\uC2DD",FRYTAL:"\uB3D9\uD654",AMZING:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30",DAYSTR:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30",KRLDMK:"\uD55C\uAD6D\uC758 \uBA85\uC18C",SELNMK:"\uC11C\uC6B8\uC758 \uBA85\uC18C",WRDTRB:"\uC138\uACC4\uC5EC\uD589",NAVIGT:"\uAE38 \uCC3E\uAE30",KRSOCI:"\uD55C\uAD6D",ECONEW:"\uACBD\uC81C\uC640 \uB274\uC2A4",GENART:"\uC608\uC220",GELFKL:"\uC0DD\uD65C \uC0C1\uC2DD",ANIMAL:"\uB3D9\uBB3C",PLANTS:"\uC2DD\uBB3C",ETHPLT:"\uC9C0\uAD6C",TOLELC:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488",GESCKL:"\uACFC\uD559\uC0C1\uC2DD",INVDSP:"\uAC1C\uC778\uACBD\uAE30",MARART:"\uACA9\uD22C\uAE30",TEAMSP:"\uB2E8\uCCB4\uACBD\uAE30",FOOTBL:"\uCD95\uAD6C",GESPKL:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}},Jf={maxUses:"\uCD5C\uB300 \uC0AC\uC6A9 \uD69F\uC218 (\uBE44\uC6CC\uB450\uBA74 \uBB34\uC81C\uD55C)",redirect:"\uC774\uB3D9\uD560 \uD398\uC774\uC9C0 URL (\uBE44\uC6CC\uB450\uBA74 \uC571 \uBA54\uC778)",creating:"\uC0DD\uC131 \uC911\u2026",create:"\uB9C1\uD06C \uC0DD\uC131",created:"\u2713 \uB9C1\uD06C\uAC00 \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4",copied:"\uBCF5\uC0AC\uB428!",copy:"\uBCF5\uC0AC",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",empty:"\uC0DD\uC131\uB41C \uB9C1\uD06C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",uses:"{{count}}\uD68C \uC0AC\uC6A9",expiresAt:"\uB9CC\uB8CC: {{date}}",createdAt:"\uC0DD\uC131: {{date}}",confirmDelete:"\uC0AD\uC81C\uD560\uAE4C\uC694?",deactivate:"\uBE44\uD65C\uC131\uD654",delete:"\uC0AD\uC81C",status:{active:"\uC720\uD6A8",expired:"\uB9CC\uB8CC",inactive:"\uBE44\uD65C\uC131"}},Qf={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},e2={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},t2={direction:{left:"\uC88C",right:"\uC6B0",label:"\uBC29\uD5A5"},wornDate:"\uCC29\uC6A9\uC77C",deviceType:"\uC885\uB958",brand:"\uBE0C\uB79C\uB4DC",fitType:"\uCC29\uC6A9\uD615\uD0DC",productName:"\uC81C\uD488\uBA85",validationError:{brandAndProduct:"\uBE0C\uB79C\uB4DC\uC640 \uC81C\uD488\uBA85\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."},addNew:"\uC0C8 \uAE30\uAE30 \uCD94\uAC00",selectFromList:"\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD",removeDevice:"\uCC29\uC6A9 \uD574\uC81C",type:{hearingAid:"\uBCF4\uCCAD\uAE30",cochlearImplant:"\uC778\uACF5\uC640\uC6B0"}},n2={stat:{totalCustomers:"\uCD1D \uACE0\uAC1D",monthlyVisits:"\uC774\uB2EC \uCD1D \uBC29\uBB38"},chart:{visitDetail:"\uC0C1\uC138 \uBC29\uBB38 \uD604\uD669",trainingDetail:"\uC0C1\uC138 \uD6C8\uB828 \uD604\uD669",weekly:"\uC8FC\uBCC4",daily:"\uC77C\uBCC4",periodMonth:"\uC6D4",periodWeek:"\uC8FC",weeklyPrefix:"\uC8FC\uAC04",monthlyPrefix:"\uC6D4\uAC04",visit:"\uBC29\uBB38",reservation:"\uC608\uC57D",trainingDone:"\uD6C8\uB828 \uC644\uB8CC",trainingInProgress:"\uD6C8\uB828 \uC911",weekRange:"{{start}}~{{end}}",week:"{{n}}\uC8FC"},subscriptionStatus:{active:"{{pct}}% \uD65C\uC131",expired:"{{pct}}% \uB9CC\uB8CC",unused:"{{pct}}% \uBBF8\uC0AC\uC6A9"}},a2={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB300\uB9BD\uC30D\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},phonemeSelect:{title:"\uC74C\uC18C \uC120\uD0DD",vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",infoInclude:"\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.",infoPick:"\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694.",infoContrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."},count:"{{n}}\uAC1C",countLabel:"\uC74C\uC18C \uAC1C\uC218",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4.",selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},searchLabel:{error:"\uB370\uC774\uD130 \uBD88\uB7EC\uC624\uAE30 \uC2E4\uD328",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},confirmMessage:"\uC120\uD0DD\uD55C {{unit}} {{count}}\uAC1C\uB97C \uD3EC\uD568\uD55C \uB2E8\uC5B4 \uD45C \uC815\uBCF4\uAC00 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",resetOptions:"\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654",phonemeContrast:"\uB300\uB9BD {{n}}\uBC88 \uC74C\uC808",infoNotes:["\uBBF8\uB9AC\uBCF4\uAE30 \uAE00\uC790\uB294 \uC120\uD0DD\uD55C \uC74C\uC18C\uC758 \uC870\uD569 \uC608\uC2DC\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uAC80\uC0C9\uC740 \uD574\uB2F9 \uC74C\uC18C\uAC00 \uD3EC\uD568\uB41C \uBAA8\uB4E0 \uB2E8\uC5B4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4.","\uCD08\uC131 '\u3147'\uC740 \uC120\uD0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E8\uC5B4 \uC55E\uC5D0 \uC624\uB294 \u3147\uC740 \uC2E4\uC9C8\uC801\uC73C\uB85C \uBB34\uC74C\uC774\uC5B4\uC11C \uB300\uB9BD\uC30D \uC131\uB9BD\uC5D0 \uC601\uD5A5\uC744 \uC8FC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","\uCD08\uC131\uACFC \uC885\uC131\uB9CC \uC120\uD0DD\uD558\uBA74 \uBAA8\uC74C\uC740 '\u314F'\uB85C \uC790\uB3D9 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","\uC74C\uC18C \uAC1C\uC218\uB97C \uB298\uB9AC\uBA74 \uAC01 \uC74C\uC18C \uC0AC\uC774\uC758 \uB300\uB9BD\uC30D\uC744 \uAC80\uC0C9\uD569\uB2C8\uB2E4."]},r2={sentenceTyping:{roundCount:"{{rounds}}\uBB38\uC81C \xB7 \uBB38\uC81C\uB2F9 {{timeLimit}}\uCD08"},wordDefense:{me:"\uB098"},dictation:{title:"\uBC1B\uC544\uC4F0\uAE30",desc:"\uBB38\uC7A5\uC744 \uB4E3\uACE0 \uC815\uD655\uD788 \uBC1B\uC544\uC801\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC131 \uC7AC\uC0DD, \uC785\uB825 \uD544\uB4DC, \uC815\uB2F5 \uBE44\uAD50"},result:{heading:"{{number}}\uB2E8\uACC4 \uD574\uB2F5",retry:"\uB2E4\uC2DC \uD480\uAE30"},common:{accuracy:"{{pct}}% \uC815\uD655\uB3C4"},soundMatch:{title:"\uC18C\uB9AC \uB9E4\uCE6D",desc:"\uAC19\uC740 \uC18C\uB9AC\uB97C \uAC00\uC9C4 \uB2E8\uC5B4 \uB610\uB294 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB9E4\uCE6D\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uD50C\uB808\uC774 \uBC84\uD2BC, \uD0C0\uC774\uBA38, \uC810\uC218 \uC9D1\uACC4"},orderSequence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uD769\uC5B4\uC9C4 \uBB38\uC7A5 \uC870\uAC01\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uBB38\uC7A5 \uC138\uD2B8, \uC21C\uC11C \uD655\uC778 \uC778\uD130\uD398\uC774\uC2A4"},speedListen:{title:"\uC18D\uB3C4 \uB4E3\uAE30",desc:"\uC2DC\uAC04 \uC81C\uD55C \uB0B4\uC5D0 \uBB38\uC7A5\uC758 \uB2E8\uC5B4 \uC218\uB97C \uB9DE\uCD94\uB294 \uB3C4\uC804\uD615 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC81C\uD55C\uC2DC\uAC04, \uC810\uC218\uD310"},noiseChallenge:{title:"\uC18C\uC74C \uCC4C\uB9B0\uC9C0",desc:"\uBC30\uACBD \uC18C\uC74C \uC18D\uC5D0\uC11C \uBB38\uC7A5\uC744 \uBD84\uBCC4\uD558\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB2E4\uC591\uD55C \uC18C\uC74C \uB808\uBCA8, \uC810\uC218 \uC9D1\uACC4"},fastListen:{title:"\uBE60\uB978 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB4E4\uB824\uC8FC\uACE0 \uD575\uC2EC \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB09C\uC774\uB3C4\uBCC4 \uC18D\uB3C4, \uD0C0\uC774\uBA38"},shadowing:{title:"\uC250\uB3C4\uC789",desc:"\uBB38\uC7A5\uC744 \uB530\uB77C \uB9D0\uD558\uBA70 \uBC1C\uC74C\uACFC \uC5B5\uC591\uC744 \uC5F0\uC2B5\uD558\uB294 \uBAA8\uB4DC\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC7AC\uC0DD, \uB179\uC74C, \uBE44\uAD50 \uD53C\uB4DC\uBC31"},phonemeHunt:{title:"\uC74C\uC6B4 \uCC3E\uAE30",desc:"\uD2B9\uC815 \uC74C\uC6B4(\uBC1C\uC74C)\uC744 \uD3EC\uD568\uD55C \uB2E8\uC5B4\uB97C \uCC3E\uC544\uB0B4\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC6B4 \uD544\uD130, \uD78C\uD2B8 \uAE30\uB2A5"}},o2={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
847
+ `),this.name="StorageNotConfiguredError"}};function iC(e){sC(e)}function Zs(e,t){if(!e)return null;const a=ba();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function Xs(e){if(!e)return null;const t=ba();if(!t)throw new Ys("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Js(e){const t=ba();if(!t)throw new Ys("downloadSound");return t.download(e)}function lC(){return ba()?.noiseBaseUrl??"/sounds/noise"}function uC(){const e=Number(ba()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function cC(e){const t=AbortSignal.timeout;if(typeof t=="function")return t.call(AbortSignal,e);const a=new AbortController;return setTimeout(()=>a.abort(),e),a.signal}const Qs="__ihab_core_tts_config__";function $r(){return globalThis[Qs]?.urlResolver??null}function dC(){return globalThis[Qs]?.fallbackUrlResolver??null}const pC="__ihab_core_pronunciation_resolver__";function mC(){return globalThis[pC]??null}let Tn=null;const ya=new WeakMap,Rr=new WeakMap,Pr=new WeakMap;let ei=!1;const ti=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function hC(){if(ei||typeof document>"u")return;ei=!0;const e=()=>{try{Tn&&Tn.state!=="running"&&Tn.resume()}catch{}};for(const t of["pointerdown","touchend","keydown"])document.addEventListener(t,e,{capture:!0,passive:!0})}function ni(){if(Tn)return Tn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(Tn=new e,hC(),Tn):null}catch{return null}}function Fr(){try{Tn?.resume()}catch{}}function Ir(e,t){const a=ya.get(t);if(a)return a;try{const r=e.createMediaElementSource(t),s=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,s.gain.value=ti(Rr.get(t)??t.volume),r.connect(s),s.connect(i),s.connect(e.destination);try{t.volume=1}catch{}const l={gain:s,analyser:i};return ya.set(t,l),l}catch{return null}}function za(e){if(!e)return Promise.resolve(null);const t=ya.get(e);if(t)return Promise.resolve(t.analyser);const a=ni();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Ir(a,e)?.analyser??null);const r=Pr.get(e);if(r)return r;const s=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Ir(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Pr.delete(e)});return Pr.set(e,s),s}function CC(e){if(!e)return null;const t=ya.get(e);if(t)return t.analyser;const a=ni();return a?a.state==="running"?Ir(a,e)?.analyser??null:(za(e),null):null}function Mn(e,t){const a=ti(t);Rr.set(e,a);const r=ya.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const s=r.gain.gain;try{const i=r.gain.context.currentTime;s.cancelScheduledValues(i),s.setTargetAtTime(a,i,.01)}catch{try{s.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function Va(e){return Rr.get(e)??e.volume}function fC(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const s=t[r];a+=s*s}return Math.sqrt(a/t.length)}const gC="__ihab_core_image_config__";function Qn(){return globalThis[gC]??null}const ai="word_image_existence_map_v1";let zn=null;const Wa=new Map;function bC(){if(zn)return zn;try{const e=typeof localStorage<"u"?localStorage.getItem(ai):null,t=e?JSON.parse(e):null;zn=t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{zn={}}return zn}let Or=null;function yC(){Or||(Or=setTimeout(()=>{Or=null;try{typeof localStorage<"u"&&zn&&localStorage.setItem(ai,JSON.stringify(zn))}catch{}},200))}function vC(e,t){return`${e}_${t??1}`}async function ri(e,t){const a=bC(),r=vC(e,t);if(r in a)return a[r];if(Wa.has(r))return Wa.get(r);const s=Qn();if(!s)return!1;const i=s(e,t);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:cC(8e3)}).then(u=>u.status>=500?null:u.ok,()=>null).then(u=>(Wa.delete(r),u===null?!1:(a[r]=u,yC(),u)));return Wa.set(r,l),l}const xC={\u314F:{nucleus:"\u314F"},\u3151:{glide:"j",nucleus:"\u314F"},\u3153:{nucleus:"\u3153"},\u3155:{glide:"j",nucleus:"\u3153"},\u3157:{nucleus:"\u3157"},\u315B:{glide:"j",nucleus:"\u3157"},\u315C:{nucleus:"\u315C"},\u3160:{glide:"j",nucleus:"\u315C"},\u3161:{nucleus:"\u3161"},\u3163:{nucleus:"\u3163"},\u3150:{nucleus:"\u3154/\u3150"},\u3152:{glide:"j",nucleus:"\u3154/\u3150"},\u3154:{nucleus:"\u3154/\u3150"},\u3156:{glide:"j",nucleus:"\u3154/\u3150"},\u3158:{glide:"w",nucleus:"\u314F"},\u3159:{glide:"w",nucleus:"\u3154/\u3150"},\u315A:{glide:"w",nucleus:"\u3154/\u3150"},\u315D:{glide:"w",nucleus:"\u3153"},\u315E:{glide:"w",nucleus:"\u3154/\u3150"},\u315F:{glide:"w",nucleus:"\u3163"},\u3162:{glide:"\u0270",nucleus:"\u3163"}},oi=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],si=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],_C=["","\u3131","\u3132","\u3133","\u3134","\u3135","\u3136","\u3137","\u3139","\u313A","\u313B","\u313C","\u313D","\u313E","\u313F","\u3140","\u3141","\u3142","\u3144","\u3145","\u3146","\u3147","\u3148","\u314A","\u314B","\u314C","\u314D","\u314E"];function va(e){if(!e)return null;const t=e.charCodeAt(0)-44032;return t<0||t>=11172?null:{cho:Math.floor(t/588),jung:Math.floor(t%588/28),jong:t%28}}function wC(e){const t=va(e[0]||"");return t?oi[t.cho]:""}function BC(e){if(!e)return()=>!0;e=e.normalize("NFC");const t=[...e],a=l=>oi.includes(l),r=l=>si.includes(l),s=t.map(l=>a(l)?"cho":r(l)?"jung":va(l)?"syl":"other"),i=t.map(l=>va(l));if(s.includes("other")){const l=e.toLowerCase();return u=>u.normalize("NFC").toLowerCase().includes(l)}return l=>{const u=[...l.normalize("NFC")];for(let c=0;c+t.length<=u.length;c++){let d=!0;for(let m=0;m<t.length;m++){const p=u[c+m],f=s[m];if(f==="cho"){if(wC(p)!==t[m]){d=!1;break}}else if(f==="jung"){const y=va(p);if(!y||si[y.jung]!==t[m]){d=!1;break}}else{const y=i[m];if(y&&y.jong===0){const x=va(p);if(!x||x.cho!==y.cho||x.jung!==y.jung){d=!1;break}}else if(p!==t[m]){d=!1;break}}}if(d)return!0}return!1}}const AC={3:["\u3131","\u3145"],5:["\u3134","\u3148"],6:["\u3134","\u314E"],9:["\u3139","\u3131"],10:["\u3139","\u3141"],11:["\u3139","\u3142"],12:["\u3139","\u3145"],13:["\u3139","\u314C"],14:["\u3139","\u314D"],15:["\u3139","\u314E"],18:["\u3142","\u3145"]};Object.fromEntries(Object.entries(AC).map(([e,t])=>[t.join(""),_C[Number(e)]]));const kC="word_pair_index_v2",NC="word_pair_index_sig_v2";let qa=null;function DC(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(kC),t=localStorage.getItem(NC);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function EC(){if(qa)return qa;const e=DC();return e?(qa=e.index,e.sig,qa):null}function SC(e,t,a){return!(e>0)||!(t>0)?1:Math.max(1,Math.floor((e+a)/(t+a)))}function jC(e,t){if(!(e>0))return 1;const a=Math.max(1,Math.floor(t));if(e<=a)return e;const r=Math.ceil(e/a);return Math.max(1,Math.ceil(e/r))}const Hr=/[ㄱ-ㅎ]/,TC=/[ㅏ-ㅣ]/;function ii(e){e=e.normalize("NFC");for(let t=e.length-1;t>=0;t--){const a=e[t],r=a.charCodeAt(0);if(r>=44032&&r<=55203||Hr.test(a)||TC.test(a))return a}return null}function MC(e){const t=ii(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":Hr.test(t)?"\uC774":"\uAC00"}function LC(e){return`${e}${MC(e)}`}function $C(e){const t=ii(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":Hr.test(t)?"\uC744":"\uB97C"}function RC(e){return`${e}${$C(e)}`}function PC(e,t,a){const r=e.slice(),[s]=r.splice(t,1);return r.splice(a,0,s),r}function xa(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const s=Math.floor(t()*(r+1));[a[r],a[s]]=[a[s],a[r]]}return a}const FC=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof Tt?.t=="function"?Tt.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function li(e,t){if(t===void 0&&(t=FC()),e instanceof Error)return e.message||t;if(typeof e=="string")return e||t;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return t}const IC="__ihab_core_word_pool__";function ui(){return globalThis[IC]??null}const ci=globalThis;function di(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function OC(e){di("time",()=>ci.__ihabTrainingTimeLogger?.(e))}function HC(e){di("completion",()=>ci.__ihabTrainingCompletionLogger?.(e))}function Ua(e){if(typeof e=="string"){const t=e.trim();return t?Number.isNaN(new Date(t).getTime())?null:t:null}if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.toISOString();if(typeof e=="number"&&Number.isFinite(e)){const t=new Date(e);return Number.isNaN(t.getTime())?null:t.toISOString()}return null}function Yt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function zC(e){for(const t of["correct","isCorrect","heard","judgement"])if(typeof e[t]=="boolean")return e[t];return e.score===1?!0:e.score===0?!1:null}function VC(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Yt(r.contextCode)??Yt(r.itemId)??Yt(r.itemCode)??Yt(r.id),question:Yt(r.question)??Yt(r.q)??Yt(r.sentence)??Yt(r.text)??Yt(r.prompt)??Yt(r.word)??Yt(r.targetSyllable),answer:Yt(r.answer),selected:Yt(r.selectedText)??Yt(r.selected),correct:zC(r),shownAt:Ua(r.shownAt)??Ua(r.shown_at),answeredAt:Ua(r.answeredAt)??Ua(r.answered_at)}}):[]}const zr=globalThis;async function WC(){try{return await zr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function pi(e){const t=a=>{};try{const a=zr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function Ga(e){try{zr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function qC(e){if(typeof document<"u"){const t=document.activeElement;let a=null;try{if(a=document.createElement("textarea"),a.value=e,a.setAttribute("readonly",""),a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a),a.focus(),a.select(),a.setSelectionRange(0,e.length),document.execCommand("copy"))return!0}catch{}finally{if(a?.parentNode&&a.parentNode.removeChild(a),t&&t!==document.activeElement&&typeof t.focus=="function"&&t.isConnected)try{t.focus({preventScroll:!0})}catch{}}}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}const UC="Asia/Seoul",GC=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function Vr(e){let t;if(e instanceof Date)t=e;else if(typeof e=="string"){const a=e.trim(),r=GC.exec(a);t=new Date(r?`${r[1]}T${r[2]}:${r[3]??"00"}${r[4]?`.${r[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:a)}else t=new Date(e);return Number.isNaN(t.getTime())?null:t}const KC=e=>Vr(e);function YC(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US",r=KC(e);return r?r.toLocaleDateString(a,{timeZone:UC,year:"numeric",month:"short",day:"numeric"}):""}function _a(){return qr(new Date)}function Wr(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:_a()}function ea(){return XC(_a())}const ZC=540*60*1e3;function mi(e,t,a){return new Date(Date.UTC(e,t,a)-ZC)}function XC(e){const[t,a,r]=e.split("-").map(Number);return new Date(t,(a||1)-1,r||1)}function qr(e){if(e==null||e==="")return"";const t=Vr(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function hi(e,t){if(!e)return"";const a=Vr(e);if(!a)return"";const r=a.getTime(),s=Math.max(0,Math.floor((Date.now()-r)/1e3)),i=Math.floor(s/60),l=Math.floor(i/60),u=Math.floor(l/24),c=Math.floor(u/7),d=Math.floor(u/30),m=Math.floor(u/365);return i<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):i<60?t("store.time.minutesAgo",{n:i}):l<24?t("store.time.hoursAgo",{n:l}):u<7?t("store.time.daysAgo",{n:u}):c<5?t("store.time.weeksAgo",{n:c}):u<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:m})}function Ci(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:s=!1,fallback:i="\u2014"}=t;if(!e)return i;const l=qr(e instanceof Date?e:String(e));if(!l)return i;const[u,c,d]=l.split("-"),m=r?c:String(Number(c)),p=r?d:String(Number(d));return`${u}${a}${m}${a}${p}${s?".":""}`}function ta(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function fi(e,t){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),s=Number(a[2]),i=a[1].padStart(2,"0");return s===0?t("date.timeH",{h:r,hh:i,mm:a[2]}):t("date.timeHM",{h:r,hh:i,m:s,mm:a[2]})}function Ur(e){return(e??0).toLocaleString("ko-KR")}const JC=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uAC15\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],QC=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];function gi(){return JC}function ef(){return QC}const tf=[],nf=[],af=[],rf=[];function of(){return{LISTEN_IN_NOISE:tf,SHORT_STORY:nf,LONG_STORY:af,ORDERING_SENTENCE:rf}}const sf=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],bi={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function lf(e){return sf.map(t=>{const a=bi[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let Ka=null,yi=null,vi=null;function uf(){const e=ui();if(e&&e.entries.length>0){const t=EC();if(Ka&&yi===e&&vi===t)return Ka;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:t?.[s.word]?[...t[s.word].cho??[],...t[s.word].jung??[],...t[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return Ka=r,yi=e,vi=t,Ka}return[]}new Proxy([],{get(e,t){const a=uf(),r=a[t];return typeof r=="function"?r.bind(a):r}});const cf="0.311.0";function df(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const t=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(t)}function pf(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&df(r.attrValue)&&(r.keepAttr=!1)};Mr.addHook("uponSanitizeAttribute",t);try{return Mr.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{Mr.removeHook("uponSanitizeAttribute",t)}}function mf(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),[i,l]=o.useState(null),[u,c]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),l(null);return}const d=e.split("/").pop();let m=e;d&&(e.startsWith("/")?m=Lr(e):/^(Logo|Symbol)/i.test(d)?m=Lr(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),s(null),l(null),a(m)},[e]),o.useEffect(()=>{if(!t)return;let d=!1;async function m(){try{let p=await fetch(t);p.ok||(p=await fetch(t));const f=p.headers.get("content-type")||"";if(d)return;if(f.includes("svg")){s("mask");return}if(f.startsWith("image/")){s("img");return}const y=await fetch(t);if(!y.ok)throw new Error("not ok");const x=await y.text();if(d)return;if(/^\s*<svg[\s>]/i.test(x)){const h=pf(x);if(!h){s("none");return}l(h),s("inline");return}s("none")}catch{d||s("none")}}return m(),()=>{d=!0}},[t]),o.useEffect(()=>{let d=!1,m=null;return r==="mask"&&t&&fetch(t).then(p=>{if(!p.ok)throw new Error("fetch failed");return p.blob()}).then(p=>{d||(m=URL.createObjectURL(p),c(m))}).catch(()=>{d||s("img")}),()=>{d=!0,m&&URL.revokeObjectURL(m),c(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:u}}function tt(e){const{icon:t,label:a,className:r,imgClassName:s,maskClassName:i,svgClassName:l,wrapperStyle:u,size:c}=e||{},d=r??"iconRenderer-icon",m=s??"iconRenderer-icon-image",p=i??"iconRenderer-icon-mask",f=l??"iconRenderer-icon-svg",y=typeof t=="string"?t:null,x=_0(y),{iconToUse:h,mode:g,svgText:_,blobUrl:C}=mf(y),w=(A,N={})=>n.jsx("span",{className:d,style:u,...N,children:A}),b=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,B=(A,N={})=>n.jsx("img",{src:A,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:m,...N,style:b?{...N.style,...b}:N.style});if(!t)return null;if(typeof t!="string")return w(t);if(t==="none")return w(n.jsx("span",{className:f,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(x)try{return w(o.createElement(x,{className:f,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(h&&h.endsWith(".svg")){if(g==="mask"){const A={"--icon-url":C?`url(${C})`:`url(${h})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return w(n.jsx("span",{className:p,style:A}),{"aria-hidden":"true"})}return g==="img"?w(B(h,{onError:A=>{A.currentTarget.onerror=null,A.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):g==="inline"?w(n.jsx("span",{className:f,dangerouslySetInnerHTML:_?{__html:_}:void 0}),{"aria-hidden":"true"}):w(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return B(Lr(t),{style:u,onError:A=>{A.currentTarget.onerror=null,A.currentTarget.style.display="none"}});const v=typeof c=="number"?c:20,k=`<svg width="${v}" height="${v}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return w(n.jsx("span",{className:f,dangerouslySetInnerHTML:{__html:k}}),{"aria-hidden":"true"})}function xi(e){const[t,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const i=o.useCallback(()=>{if(!e||r.current)return;const l=e();if(l&&typeof l.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,s.current&&a(!1)};l.then(u,u)}},[e]);return{pending:t,press:i}}function hf({icon:e,title:t,message:a,action:r,className:s}){const{pending:i,press:l}=xi(r?.onClick);return n.jsxs("div",{className:Ae("empty-state",s),children:[e&&n.jsx(tt,{icon:e,size:48,className:"empty-state__icon"}),t&&n.jsx("p",{className:"empty-state__title h4",children:t}),a&&n.jsx("p",{className:"empty-state__message body-3",children:a}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:l,disabled:i,"aria-busy":i||void 0,children:[r.icon&&n.jsx(tt,{icon:r.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function Cf({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:i}){const{t:l}=_e.useTranslation(),{pending:u,press:c}=xi(r);return n.jsxs("div",{className:Ae("empty-state","error-state",i),role:"alert",children:[n.jsx(tt,{icon:a,size:48,className:"empty-state__icon error-state__icon"}),n.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&n.jsx("p",{className:"error-state__hint caption-1",children:t}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:c,disabled:u,"aria-busy":u||void 0,children:[n.jsx(tt,{icon:"rotate-cw",className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:s??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function ff({icon:e,title:t,description:a,cta:r,tone:s="main",disabled:i=!1,onClick:l,className:u=""}){const c=o.useId(),d=`${c}-title`,m=`${c}-desc`,p=`${c}-cta`,f=()=>{i||l?.()};return n.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":d,"aria-describedby":`${m} ${p}`,onClick:f,onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),f())},className:Ae("action-card",`action-card--${s}`,i&&"action-card--disabled",u),children:n.jsxs("div",{className:"action-card__body",children:[n.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:n.jsx(tt,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:d,className:"action-card__title",children:t}),n.jsx("p",{id:m,className:"action-card__desc",children:a})]}),n.jsxs("div",{className:"action-card__cta",children:[n.jsx("span",{id:p,children:r}),n.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:n.jsx(tt,{icon:"arrow-right",size:18})})]})]})})}function gf({as:e="div",className:t="",children:a,storage:r,...s}){r&&iC({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl,noiseFileGain:r.noiseFileGain});const i=Ae("ihabdevteam-core-scope",t);return n.jsx(e,{className:i,...s,children:a})}function Gr(e,t=!0){o.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const i=Array.from(a.querySelectorAll(Cn)).filter(m=>!m.closest('[aria-hidden="true"]'));if(!i.length){s.preventDefault();return}const l=i[0],u=i[i.length-1],c=document.activeElement,d=c===a;s.shiftKey&&(c===l||d)?(s.preventDefault(),u.focus()):!s.shiftKey&&c===u&&(s.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const Cn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Kr=new WeakMap;function Yr(e,t){e&&Kr.set(e,t)}function Zr(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!Kr.has(r);)r=r.parentElement;if(!r)return t;t=Kr.get(r)??null}return t}function _i(e){return!(!e||!e.isConnected||e===document.body||typeof e.focus!="function"||e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e.closest('[inert],[aria-hidden="true"],[hidden]'))}function Ya(e,t,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(_i(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const s=Array.from(document.querySelectorAll(Cn)).filter(c=>!(e&&e.contains(c))&&_i(c));let i=null,l=null;for(const c of s)r.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_PRECEDING?i=c:l||(l=c);const u=i??l;return u?.focus(),u}function bf({title:e="",lines:t=[],notices:a=null,children:r,variant:s="default",dismissible:i=!1,className:l=""}){const{t:u}=_e.useTranslation(),[c,d]=o.useState(!1),m=o.useRef(null),p=o.useCallback(()=>{const h=m.current;h&&h.contains(document.activeElement)&&Ya(h),d(!0)},[]);if(c)return null;const f=`notice-box notice-box--${s} body-2 ${l}`.trim(),y=i&&n.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return n.jsxs("div",{className:f,role:"note",children:[a.map((h,g)=>n.jsxs("div",{className:"notice-box__inner",children:[h.title?n.jsx("span",{className:"notice-box__title body-3",children:h.title}):null,n.jsx("div",{className:"notice-box__body",children:h.lines&&h.lines.length?n.jsx("div",{children:h.lines.map((_,C)=>n.jsx("span",{className:"notice-box__line body-3",children:_},C))}):h.children??null})]},g)),y]});const x=e||t.length?n.jsxs("div",{className:"notice-box__inner",children:[e?n.jsx("span",{className:"notice-box__title body-1",children:e}):null,n.jsx("div",{className:"notice-box__body",children:t.length?n.jsx("ul",{children:t.map((h,g)=>n.jsx("li",{className:"notice-box__line",children:h},g))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:m,className:f,role:"note",children:[x,y]})}const na=[];let Za=!1;function wi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=na[na.length-1];t&&(e.stopPropagation(),t())}function Vn(e){return na.push(e),!Za&&typeof document<"u"&&(document.addEventListener("keydown",wi),Za=!0),()=>{const t=na.lastIndexOf(e);t>=0&&na.splice(t,1),na.length===0&&Za&&typeof document<"u"&&(document.removeEventListener("keydown",wi),Za=!1)}}const Bi=o.createContext(null);function yf(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const Ai=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function vf(e){const t=o.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return is.useSyncExternalStore(t,()=>Ai(e),()=>!1)}function xf(e){const[t,a]=o.useState(Ai(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=l=>a(l.matches),i=r;return i.addEventListener?i.addEventListener("change",s):i.addListener&&i.addListener(s),a(r.matches),()=>{i.removeEventListener?i.removeEventListener("change",s):i.removeListener&&i.removeListener(s)}},[e]),t}const _f=typeof is.useSyncExternalStore=="function"?vf:xf;function rn(e){const t=o.useContext(Bi),a=_f(e);return t&&typeof t.mobile=="boolean"&&yf(e)?t.mobile:a}const wf="(prefers-reduced-motion: reduce)";function Xr(){return rn(wf)}function un(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:i,closeOnOutsideClick:l=!0,className:u="",role:c="dialog",ariaLabel:d="",children:m,backdrop:p=!1,isMobilePopup:f=!1,useBorder:y=!0,header:x,focusOnOpen:h}=e||{},g=o.useRef(null),[_,C]=o.useState({position:"fixed",left:0,top:-9999}),[w,b]=o.useState(!1),[B,v]=o.useState("bottom"),[k,A]=o.useState(!1),[N,E]=o.useState(!1),D=!t&&!a,H=o.useCallback((W=!1)=>{if(N&&f)return;const $=a?a.getBoundingClientRect():t;if(!$||!g.current)return;const U=g.current,{offsetWidth:S,offsetHeight:P}=U,j=window.innerWidth,F=window.innerHeight,O=j-$.right,q=$.left,Q=$.top,oe=F-$.bottom;let se=0,te=0,le="top";if(Q>=P+r)le="top",te=$.top-r-P,se=$.left+$.width/2-S/2;else if(oe>=P+r)le="bottom",te=$.bottom+r,se=$.left+$.width/2-S/2;else if(O>=S+r)le="right",se=$.right+r,te=$.top+$.height/2-P/2;else if(q>=S+r)le="left",se=$.left-r-S,te=$.top+$.height/2-P/2;else{const fe=Math.max(Q,oe,O,q);fe===Q?(le="top",te=$.top-r-P,se=$.left+$.width/2-S/2):fe===oe?(le="bottom",te=$.bottom+r,se=$.left+$.width/2-S/2):fe===O?(le="right",se=$.right+r,te=$.top+$.height/2-P/2):(le="left",se=$.left-r-S,te=$.top+$.height/2-P/2)}const De=Number.isFinite(Number(s))?Number(s):8;se=Math.min(Math.max(se,De),j-S-De),te=Math.min(Math.max(te,De),F-P-De);const V=Math.round(se),ne=Math.round(te);W&&g.current?(g.current.style.left=`${V}px`,g.current.style.top=`${ne}px`,g.current.dataset.placement=le):(v(le||B),C({position:"fixed",left:V,top:ne}),A(!0))},[N,f,a,t,r,s,B]);o.useLayoutEffect(()=>{if(D)return;if(N&&f){C({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),A(!0);return}H();const W=requestAnimationFrame(()=>H());return()=>cancelAnimationFrame(W)},[t,a,r,m,s,D,N,f,H]),o.useEffect(()=>{if(D||N&&f||!g.current||typeof ResizeObserver>"u")return;const W=new ResizeObserver(()=>{t&&H()});return W.observe(g.current),()=>W.disconnect()},[t,m,s,D,N,f,H]),o.useEffect(()=>{if(D||N&&f)return;const W=()=>H(!0),$=U=>{if(!a&&i){const S=U.target;if(S&&g.current&&g.current.contains(S))return;try{if(S&&S.closest&&S.closest("[data-tooltip-ignore]"))return}catch{}I.current(!0);return}W()};return window.addEventListener("resize",W),document.addEventListener("scroll",$,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",W),document.removeEventListener("scroll",$,{capture:!0})}},[t,a,i,r,m,s,D,N,f,H]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const W=window.matchMedia("(max-width: 768px)"),$=()=>E(!!W.matches);$();try{W.addEventListener?W.addEventListener("change",$):W.addListener($)}catch{try{W.addListener($)}catch{}}return()=>{try{W.removeEventListener?W.removeEventListener("change",$):W.removeListener($)}catch{}}},[]);const R=o.useRef(!1),G=o.useRef(null),L=Xr(),M=o.useCallback((W=!1)=>{if(i&&!(w||R.current)){if(R.current=!0,W){b(!0);try{i&&i()}catch{R.current=!1,b(!1)}return}b(!0),G.current=setTimeout(()=>{G.current=null;try{i&&i()}catch{R.current=!1,b(!1)}},L?0:200)}},[w,i,b,L]);o.useEffect(()=>()=>{G.current&&clearTimeout(G.current)},[]),o.useEffect(()=>{if(D)return;const W=S=>{const P=g.current;if(!P)return;const j=S.target;if(j&&!P.contains(j)){try{if(j.closest&&j.closest("[data-tooltip-ignore]"))return}catch{}l&&M(!0)}},$=S=>{const P=g.current;if(!P)return;const j=S.target;if(j&&!P.contains(j)){try{if(j.closest&&j.closest("[data-tooltip-ignore]"))return}catch{}l&&M(!0)}},U=S=>{if(S.key==="Tab"){const P=g.current;if(!P)return;const j=P.querySelectorAll(Cn);if(!j||j.length===0)return;const F=j[0],O=j[j.length-1],q=document.activeElement;S.shiftKey?q===F&&(S.preventDefault(),O.focus()):q===O&&(S.preventDefault(),F.focus())}};return document.addEventListener("pointerdown",W,!0),document.addEventListener("click",$,!0),document.addEventListener("keydown",U),()=>{document.removeEventListener("pointerdown",W,!0),document.removeEventListener("click",$,!0),document.removeEventListener("keydown",U)}},[i,l,M,D]);const I=o.useRef(M);o.useEffect(()=>{I.current=M});const Y=!!i;o.useEffect(()=>{if(!(D||!Y))return Vn(()=>I.current())},[D,Y]),o.useEffect(()=>{const W=()=>{M(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",W),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",W)}},[M]);const Z=o.useRef(null);o.useEffect(()=>{if(D||h===!1||!k)return;const W=g.current;if(!W)return;const $=W.querySelector(Cn);if($)return Z.current=document.activeElement,$.focus(),()=>{const U=Z.current;Z.current=null,U&&document.contains(U)&&U.focus()}},[D,h,k]),o.useEffect(()=>{c==="dialog"&&!d&&Gt("tooltip-no-name",'[ihab/Tooltip] \uC774\uB984 \uC5C6\uB294 role="dialog" \uC785\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. \uB0AD\uB3C5\uAE30\uAC00 "\uB300\uD654\uC0C1\uC790" \uB77C\uACE0\uB9CC \uC77D\uC2B5\uB2C8\uB2E4.')},[c,d]);const z=n.jsxs("div",{ref:g,className:`tooltip-content ${D?"tooltip-content--inline":""} ${y?"tooltip-content--bordered":""} ${w?"is-closing":""} ${u} ${N&&f?"is-mobile":""}`,role:c,"aria-label":d||void 0,style:D?{}:{..._,visibility:k?"visible":"hidden"},tabIndex:-1,"data-placement":B,"data-left":D?"":_.left,"data-top":D?"":_.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[x!=null&&n.jsx("div",{className:"tooltip-content__header h5",children:x}),m]});if(D||typeof document>"u")return z;if(p||N&&f){const W=n.jsxs("div",{className:"tooltip-portal",children:[n.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&M(!0)}}),z]});return en.createPortal(W,document.body)}return en.createPortal(z,document.body)}function vn(e){const{anchorRect:t,text:a,offset:r=8,onClose:s,className:i="",ariaLabel:l}=e||{};return a?n.jsx(un,{anchorRect:t,offset:r,onClose:s,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:n.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Wn(e){const{t}=_e.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:i=-1,showIndex:l=!0,onClose:u,offset:c=12,closeOnOutsideClick:d=!0}=e||{},m=(Array.isArray(s)?s:s?[s]:[]).map(p=>typeof p=="string"?{text:p}:p);return!m.length&&!r?null:n.jsx(un,{anchorRect:a,offset:c,onClose:u,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:n.jsxs("div",{className:"tooltip-description__box",children:[r&&n.jsx("span",{className:"tooltip-description__title body-2",children:r}),n.jsx("ol",{className:"tooltip-description__items",children:m.map((p,f)=>n.jsxs("li",{className:`tooltip-description__item body-3${f===i?" tooltip-description__item--active":""}`,children:[l&&m.length>1&&n.jsxs("span",{className:"tooltip-description__index button-1",children:[f+1,"."]}),p.color&&n.jsx("span",{className:"tooltip-description__dot",style:{background:p.color},"aria-hidden":"true"}),n.jsx("span",{children:p.text})]},f))})]})})}function wa(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let Jr=0,ki=!1;function Ni(){ki||typeof document>"u"||(ki=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(Jr=Date.now())},!0),document.addEventListener("touchstart",()=>{Jr=Date.now()},{capture:!0,passive:!0}))}Ni();function aa(e){return!!e&&e.pointerType==="touch"}function ra(e=1e3){return Ni(),Date.now()-Jr<e}function Qr(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const i=wa(e),l=wa(t),u=o.useRef(null),c=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const m=p=>{const f=p,y=p.target,x=a.current,h=!!(y&&x&&x.contains(y));if(f.pointerType!=="touch"){h&&(u.current=null);return}if(h){u.current=i.current;return}u.current=null,i.current&&!(y&&y.closest?.(".tooltip-content"))&&l.current(!1,x)};return document.addEventListener("pointerdown",m,!0),()=>document.removeEventListener("pointerdown",m,!0)},[r,a,i,l]);const d=o.useCallback(m=>{const p=u.current;return p===null?!1:(u.current=null,c.current=Date.now(),l.current(!p,m??a.current),!0)},[a,l]);return o.useEffect(()=>{if(!r||!s)return;const m=a.current,p=m?.parentElement;if(!m||!p)return;let f=null;const y=g=>{const _=g.changedTouches?.[0];if(!_)return!1;const C=m.getBoundingClientRect();return _.clientX>=C.left&&_.clientX<=C.right&&_.clientY>=C.top&&_.clientY<=C.bottom},x=g=>{f=y(g)?i.current:null},h=g=>{const _=f;f=null,!(_===null||Date.now()-c.current<700||!y(g))&&(u.current=null,c.current=Date.now(),l.current(!_,m))};return p.addEventListener("touchstart",x,{passive:!0}),p.addEventListener("touchend",h),()=>{p.removeEventListener("touchstart",x),p.removeEventListener("touchend",h)}},[r,s,a,i,l]),{touchPress:d}}function Bf(e,t){const{size:a=48,type:r,htmlType:s,href:i,target:l,rel:u,icon:c,rightIcon:d,label:m,count:p,subLabel:f,children:y,ariaLabel:x,variant:h="default",align:g="center",nowrap:_=!1,selected:C,toggleable:w=!1,ariaExpanded:b,ariaControls:B,disabled:v=!1,useLabel:k=!0,useBorder:A=!0,useBG:N=!0,useDisabledCovered:E=!1,useDisabledInvisible:D=!1,width:H,minWidth:R,onClick:G,onDisabledClick:L,showTooltipInfo:M=!1,tooltipInfoText:I=null,tooltipDescription:Y=null,tooltipOnly:Z=!1,iconSize:z="medium",iconColor:W,shape:$="rounded",color:U,className:S,...P}=e,j=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),F=j.match(/^\d+$/)?`button${j}`:`button-${j}`,O=Number(a),q=!isNaN(O)&&O<40?"button-2":"button-1",Q=m??y,oe=v||!!P.disabled,se=oe?E?"disabled-covered":D?"disabled-invisibled":"disabled":h,te=se?`button--variant-${se}`:"",le=g?`button--align-${g}`:"",De=_?"button--nowrap":"",V=$?`button--shape-${$}`:"",ne=typeof W=="string"&&W.startsWith("--")?`var(${W})`:W,fe={...H?{width:typeof H=="number"?`${H}px`:H}:{},...R?{minWidth:typeof R=="number"?`${R}px`:R}:{},...A?{}:{"--button-border":oe?"0":"1px solid transparent"},...ne?{"--button-icon-color":ne}:{},...U?{"--color-main":U}:{}},Ee=k===!1?"":Q,ge=Array.isArray(Ee)?Ee.length>0:!!Ee,ae=!!d,de=r??(ge||c||ae?"bar":"dot"),pe=`${F}--${de}`,he=o.useRef(null);o.useEffect(()=>{!Zn||s!==void 0||he.current?.closest("form")&&Gt(`button-in-form:${typeof Q=="string"?Q:""}`,'[ihab/Button] <form> \uC548\uC778\uB370 htmlType \uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uC774 \uB2E8\uCD94\uB294 type="button" \uC774\uB77C \uD3FC\uC744 \uBCF4\uB0B4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uBA74 htmlType="submit" \uC744 \uC8FC\uC138\uC694. \uD3FC\uC5D0 \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uAC00 \uD558\uB098\uB3C4 \uC5C6\uC73C\uBA74 **Enter \uB85C\uB3C4 \uC548 \uBCF4\uB0B4\uC9D1\uB2C8\uB2E4**(\uCE78\uC774 \uB458 \uC774\uC0C1\uC77C \uB54C).'+(typeof Q=="string"&&Q?` \uB2E8\uCD94: ${Q}`:""))},[s,Q]);const be=o.useRef(t);be.current=t;const Pe=o.useCallback(Me=>{he.current=Me;const nt=be.current;typeof nt=="function"?nt(Me):nt&&(nt.current=Me)},[]),$e=o.useRef(oe),[Ie,Fe]=o.useState(!!C),[Oe,dt]=o.useState(!1),[lt,ot]=o.useState(null),ct=o.useCallback(()=>dt(!1),[]),[ke,He]=o.useState(!1),Be=o.useId();o.useEffect(()=>{typeof C=="boolean"&&Fe(C)},[C]),o.useEffect(()=>{if($e.current&&!oe&&he.current){const Me=he.current;let nt=!1;try{nt=Me.matches(":focus:not(:focus-visible)")}catch{nt=!1}nt&&Me.blur(),Me.style.pointerEvents="none";const Lt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{he.current&&(he.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(Lt)}$e.current=oe},[oe]);const Xe=typeof C=="boolean"?!!C:Ie,X=typeof b=="boolean"?void 0:w||typeof C=="boolean"?Xe?"true":"false":P["aria-pressed"],ue=Ae("button",F,pe,te,le,De,V,Xe?"is-selected":null,N?null:"button--no-bg",Z?"button--tooltip-only":null,S),we=`button__icon button__icon--${z}`,Ne=Array.isArray(f)?f:f!==void 0?[f]:[],Ve=()=>{if(Array.isArray(Ee))return Ee.map((nt,Lt)=>{const Xt=Ne[Lt];return n.jsxs("span",{className:`button__label-text${Xt!==void 0?" button__label-text--has-sub":""}`,children:[nt,Xt!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:Xt})]},Lt)});const Me=f!==void 0;return n.jsxs("span",{className:`button__label-text${Me?" button__label-text--has-sub":""}`,children:[Ee,p!=null&&n.jsx("span",{className:"button__count",children:p}),Me&&n.jsx("span",{className:"button__sub-label-text caption-1",children:f})]})},et=Me=>{typeof C!="boolean"&&!w&&Fe(!1),Me.currentTarget.blur()},pt=Me=>{oe||(typeof P.onMouseLeave=="function"&&P.onMouseLeave(Me),et(Me))},ut=Me=>{if(Z&&Qe&&Ue.touchPress(Me.currentTarget),oe){Qe&&Ue.touchPress(Me.currentTarget),Me.preventDefault(),L?.(Me);return}typeof C!="boolean"&&w&&Fe(nt=>!nt),G?.(Me)},ft=o.useCallback(()=>{(M||Y)&&(dt(!0),ot(he.current?.getBoundingClientRect()??null))},[M,Y]),gt=o.useCallback(()=>{(M||Y)&&(dt(!1),ot(null))},[M,Y]),Qe=!!(M||Y),Ue=Qr(Oe,Me=>{Me?ft():gt()},he,{enabled:Qe&&(oe||Z),fallbackOnParent:Qe&&oe}),We={...P};delete We.disabled,delete We.className,delete We.faded,delete We.useFaded,delete We.loading,delete We.onMouseLeave,delete We.onPointerEnter,delete We.onPointerLeave,delete We.onPointerUp,delete We.onFocus,delete We.onBlur,oe&&(Object.keys(We).forEach(Me=>{/^on[A-Z]/.test(Me)&&typeof We[Me]=="function"&&delete We[Me]}),We["aria-disabled"]="true");const Ke=(typeof M=="string"?M:null)??(typeof I=="string"?I:null)??(typeof x=="string"?x:null)??(typeof Q=="string"?Q:null)??void 0,rt=typeof x=="string"?x:typeof Q=="string"?Q:Ke,bt=Y?[Y.title,...Y.items??[]].filter(Boolean).join(". "):M&&Ke&&Ke!==rt?Ke:"",Ye=[typeof P["aria-describedby"]=="string"?P["aria-describedby"]:void 0,bt?Be:null].filter(Boolean).join(" ")||void 0,ht=(Me,nt)=>n.jsx(tt,{icon:Me,label:nt??rt,className:we,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),Nt=()=>de==="dot"?n.jsxs(n.Fragment,{children:[ht(c),ge&&n.jsx("span",{className:`button__label ${q}`,children:Ve()})]}):g==="center"&&c?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:ht(c)}),ge&&n.jsx("span",{className:`button__label ${q}`,children:Ve()})]}),ae&&n.jsx("span",{className:"button__right",children:ht(d)})]}):n.jsxs(n.Fragment,{children:[c&&n.jsx("span",{className:"button__left",children:ht(c,x??Q)}),ge&&n.jsx("span",{className:`button__label ${q}`,children:Ve()}),ae&&n.jsx("span",{className:"button__right",children:ht(d)})]}),Et=!!i&&!oe;return n.jsxs(n.Fragment,{children:[n.jsxs(Et?"a":"button",{...We,ref:Pe,...Et?{href:i,target:l,rel:u??(l==="_blank"?"noreferrer":void 0)}:{type:s??"button",disabled:oe&&!L&&!ke},className:ue,"aria-pressed":X,"aria-expanded":typeof b=="boolean"?b:P["aria-expanded"],"aria-controls":B??P["aria-controls"],"aria-label":rt,"aria-disabled":oe&&(Et||L||ke)?!0:void 0,"aria-describedby":Ye,style:fe,onClick:ut,onMouseLeave:pt,onPointerEnter:Me=>{aa(Me)||ft(),!oe&&typeof P.onPointerEnter=="function"&&P.onPointerEnter(Me)},onPointerLeave:Me=>{aa(Me)||gt(),!oe&&typeof P.onPointerLeave=="function"&&P.onPointerLeave(Me)},onPointerUp:Me=>{oe&&Qe&&Ue.touchPress(Me.currentTarget),!oe&&typeof P.onPointerUp=="function"&&P.onPointerUp(Me)},onFocus:Me=>{He(!0),ra()||ft(),!oe&&typeof P.onFocus=="function"&&P.onFocus(Me)},onBlur:Me=>{He(!1),oe||et(Me),gt(),!oe&&typeof P.onBlur=="function"&&P.onBlur(Me)},children:[Nt(),bt?n.jsx("span",{id:Be,hidden:!0,"aria-label":bt}):null]}),Oe&&Y?n.jsx(Wn,{anchorRect:lt,title:Y.title,items:Y.items,onClose:ct}):Oe&&Ke?n.jsx(vn,{anchorRect:lt,text:Ke,onClose:ct}):null]})}const me=o.forwardRef(Bf);me.displayName="Button";var Af={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",selectedOfMax:"\uCD5C\uB300 {{max}}\uAC1C \uC911 {{count}}\uAC1C",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",likeCount:"\uC88B\uC544\uC694 {{count}}",downloadCount:"\uAC00\uC838\uAC04 \uC218 {{count}}",descriptionFor:"{{name}} \uC124\uBA85",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",collapseFor:"{{name}} \uC811\uAE30",expandFor:"{{name}} \uD3BC\uCE58\uAE30",sortFor:"{{name}} \uC815\uB82C",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",playFor:"{{name}} \uC7AC\uC0DD",pauseFor:"{{name}} \uBA48\uCDA4",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",noMatches:"\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",networkError:"\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694."},kf={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],yearMonth:"{{year}}\uB144 {{month}}\uC6D4",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704",visitCount:"\uBC29\uBB38 {{count}}\uAC74",statusCount:"{{label}} {{count}}\uAC74"},Nf={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",expired:"\uB9CC\uB8CC\uB428",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},Df={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},Ef={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},Sf={selected:"\uC120\uD0DD\uB428"},jf={placeholder:"\uC120\uD0DD"},Tf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},Mf={biArea:"BI \uC601\uC5ED",biSymbol:"BI \uC2EC\uBCFC",logoMalgwi:"\uB9D0\uADC0 \uB85C\uACE0",logoManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0",menuOpen:"\uBA54\uB274 \uC5F4\uAE30",utilMenu:"\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274",menuClose:"\uBA54\uB274 \uB2EB\uAE30"},Lf={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",feedback:"\uBC84\uADF8\uC2E0\uACE0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C",badgeInsideLabel:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"},$f={language:{training:{label:"\uD6C8\uB828 \uC5B8\uC5B4",sub:"\uD6C8\uB828\uC5D0 \uC0AC\uC6A9\uB418\uB294 \uB2E8\uC5B4\uC640 \uC74C\uC131 \uC5B8\uC5B4"}},notifications:{title:"\uC54C\uB9BC"},display:{fontSize:{small:"\uC791\uAC8C",large:"\uD06C\uAC8C"}},cache:{title:"\uCE90\uC2DC \uAD00\uB9AC",confirmMessage:"\uCE90\uC2DC({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",delete:"\uC0AD\uC81C",deleting:"\uC0AD\uC81C \uC911",cleared:"\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",group:{wordData:{label:"\uB2E8\uC5B4 \uB370\uC774\uD130",sub:"\uB2E8\uC5B4 \uBAA9\uB85D \uBC0F \uBC84\uC804 \uC815\uBCF4"},pairIndex:{label:"\uB2E8\uC5B4\uC30D \uC778\uB371\uC2A4",sub:"\uCD08\uC131\xB7\uC911\uC131\xB7\uC885\uC131 \uB300\uB9BD\uC30D \uBD84\uC11D \uCE90\uC2DC"},imageCache:{label:"\uC774\uBBF8\uC9C0 \uCE90\uC2DC",sub:"\uB2E8\uC5B4\uBCC4 \uC774\uBBF8\uC9C0 \uC874\uC7AC \uC5EC\uBD80 \uD655\uC778 \uACB0\uACFC"},trainingRecord:{label:"\uD6C8\uB828 \uAE30\uB85D",sub:"\uC624\uB298\uC758 \uD6C8\uB828 \uC9C4\uD589\uB960 \uBC0F \uD559\uC2B5 \uC77C\uC218"}}},button:{save:"\uC124\uC815 \uC800\uC7A5"},popup:{clear:{confirm:"\uCD08\uAE30\uD654"},update:{confirm:"\uC5C5\uB370\uC774\uD2B8"},cache:{title:"{{label}} \uC0AD\uC81C",message:"{{label}}({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?"}},saved:"\u2713 \uC800\uC7A5\uB428",account:{title:"\uACC4\uC815",delete:{sub:"\uD0C8\uD1F4 \uD6C4 30\uC77C \uC774\uB0B4 \uC7AC\uAC00\uC785 \uC2DC \uBCF5\uAD6C \uAC00\uB2A5\uD569\uB2C8\uB2E4."}}},Rf={addButton:"\uC774\uC6A9\uAD8C \uCD94\uAC00\uD558\uAE30",couponButton:"\uCFE0\uD3F0 \uC785\uB825",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",segment:{personal:"\uB9D0\uADC0",org:"\uB9D0\uADC0\uB9E4\uB2C8\uC800"},org:{title:"\uD604\uC7AC \uC774\uC6A9\uAD8C",disc:"\uAE30\uAD00\uC5D0\uC11C \uC0AC\uC6A9 \uC911\uC778 \uC774\uC6A9\uAD8C \uC815\uBCF4\uC785\uB2C8\uB2E4.",empty:"\uB4F1\uB85D\uB41C \uAE30\uAD00 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",fallbackTitle:"\uAE30\uAD00 \uC774\uC6A9\uAD8C",startDate:"\uC2DC\uC791\uC77C",endDate:"\uB9CC\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04",duration:"\uC774\uC6A9 \uAE30\uAC04"},active:{infoTitle:"\uC774\uC6A9 \uC815\uBCF4",refund:"\uD658\uBD88 \uC694\uCCAD",startDate:"\uC0AC\uC6A9 \uC2DC\uC791\uC77C",endDate:"\uC885\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04"},pending:{title:"\uBCF4\uC720",empty:"\uB300\uAE30 \uC911\uC778 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}},Pf={profile:{planSuffix:"\uD50C\uB79C",plan:"\uD50C\uB79C"},basicInfo:{name:{placeholder:"\uD64D\uAE38\uB3D9"}},security:{title:"\uBCF4\uC548",password:{label:"\uBE44\uBC00\uBC88\uD638",currentRequired:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",newRequired:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",mismatch:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",changed:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},twoFactor:{label:"2\uB2E8\uACC4 \uC778\uC99D",sub:"\uACC4\uC815 \uBCF4\uC548\uC744 \uAC15\uD654\uD558\uC138\uC694"}}},Ff={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},If={settings:"\uC124\uC815",start:{title:"\uB2E8\uC5B4\uD6C8\uB828 \uC2DC\uC791",description:"\uC544\uB798 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD574 \uC2DC\uC791\uD558\uC138\uC694"},difficulty:{tooltip:"\uAC00\uC7A5 \uC26C\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uBB34\uC791\uC704', \uAC00\uC7A5 \uC5B4\uB824\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uCD08\uC131\uCC28\uC774' \uC785\uB2C8\uB2E4."},contrast:{label:"\uB300\uB9BD",type:"\uB300\uB9BD \uC885\uB958",count:"\uB300\uB9BD \uAC2F\uC218",n:"{{n}}\uAC1C"},filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\uB4F1\uAE09",excludeImageInfo:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4.",sameStructureInfo:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694.",selectSection:"\uC120\uD0DD",excludeImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",sameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},noQuestions:"\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",countQuestions:"{{n}}\uBB38\uC81C",countSentences:"{{n}}\uBB38\uC7A5",comingSoon:"\uC900\uBE44 \uC911",nextQuestion:"\uB2E4\uC74C \uBB38\uC81C",noiseRatioTitle:"\uC18C\uC74C \uBE44\uC728",noiseRatioValue:"{{ratio}}\uBC30",noiseTypeTitle:"\uC18C\uC74C \uC885\uB958",playVolumeTitle:"\uC804\uCCB4 \uC18C\uB9AC",playSpeedTitle:"\uC7AC\uC0DD \uC18D\uB3C4",meter:{sentence:"\uC7AC\uC0DD",noise:"\uC18C\uC74C",toggle:"\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"},viewResult:"\uACB0\uACFC\uBCF4\uAE30",problemNotice:"{{n}}\uBC88 \uBB38\uC81C \uC785\uB2C8\uB2E4.",trainingSettingsTitle:"\uD6C8\uB828 \uC124\uC815",sentencePreview:"\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30",notHeard:"\uC548 \uB4E4\uB838\uC5B4\uC694.",heardWell:"\uC798 \uB4E4\uB838\uC5B4\uC694.",confirmTitle:"\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694.",noSoundWaveform:"\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",noise:{level:{none:"\uC5C6\uC74C",weak:"\uC57D\uD568",medium:"\uBCF4\uD1B5",strong:"\uAC15\uD568",veryStrong:"\uB9E4\uC6B0 \uAC15\uD568"},type:{none:"\uC5C6\uC74C",default:"\uAE30\uBCF8",street:"\uAE38\uAC70\uB9AC",buzz:"\uC640\uAE00\uC640\uAE00",restaurant:"\uC2DD\uB2F9"}},listenTitle:"\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694.",listenButton:"\uBB38\uC7A5 \uB4E3\uAE30",playSound:"\uC18C\uB9AC \uB4E3\uAE30",playAll:"\uBAA8\uB450 \uB4E3\uAE30",selectInOrder:"\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",previewFor:"{{name}} \uBBF8\uB9AC \uB4E3\uAE30",stopFor:"{{name}} \uC815\uC9C0",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ttsUnavailable:"\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{pendingDone:"\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",audioStatus:{idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD",synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026"}},Of={totalCount:"\uAC1C\uC758 \uD6C8\uB828 \uBB36\uC74C",renameGroup:"\uADF8\uB8F9 \uC774\uB984 \uBC14\uAFB8\uAE30",itemCount:"\uD6C8\uB828 \uAC1C\uC218",menu:{edit:"\uD6C8\uB828 \uBB36\uC74C \uC218\uC815",rename:"\uC774\uB984 \uBC14\uAFB8\uAE30",move:"\uADF8\uB8F9 \uC774\uB3D9",duplicate:"\uD6C8\uB828 \uBB36\uC74C \uBCF5\uC0AC",publish:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30"},sort:{customers:"\uD6C8\uB828 \uACE0\uAC1D"},copyLink:"\uB9C1\uD06C \uBCF5\uC0AC",removeLink:"\uB9C1\uD06C \uC81C\uAC70",linkRemoved:"\uB9C1\uD06C\uAC00 \uC81C\uAC70\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",linkSaveFirst:"\uBA3C\uC800 \uD6C8\uB828 \uBB36\uC74C\uC744 \uC800\uC7A5\uD574\uC8FC\uC138\uC694.",linkSaveFirstHint:"\uC800\uC7A5\uB41C \uD6C8\uB828 \uBB36\uC74C\uC5D0\uC11C\uB9CC \uACF5\uC720 \uB9C1\uD06C\uB97C \uC0DD\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",linkCopySelect:"\uBCF5\uC0AC\uAC00 \uB9C9\uD600 \uB9C1\uD06C\uB97C \uC120\uD0DD\uD588\uC2B5\uB2C8\uB2E4. Ctrl/\u2318+C\uB85C \uBCF5\uC0AC\uD558\uC138\uC694.",nameRequired:"\uD6C8\uB828 \uBB36\uC74C \uC774\uB984\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694.",itemRequired:"\uD6C8\uB828\uC744 1\uAC1C \uC774\uC0C1 \uB2F4\uC544\uC8FC\uC138\uC694.",randomAdd:"\uBB34\uC791\uC704 \uCD94\uAC00"},Hf={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",basicInfo:{editTooltip:"\uC218\uC815\uD558\uAE30"},member:{placeholder:"\uC774\uBA54\uC77C \uB610\uB294 \uC804\uD654",link:"\uC5F0\uACB0",linking:"\uC5F0\uACB0 \uC911\u2026"},device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addTooltip:"\uC0C8\uB85C \uC0DD\uC131",addButton:"\uAE30\uAE30 \uCD94\uAC00",listTooltip:"\uBAA9\uB85D \uBCF4\uAE30",listTitle:"\uCE21 \uAE30\uAE30 \uBAA9\uB85D",historyEmpty:"\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",wearing:"\uCE21 \uCC29\uC6A9\uC911",notRegistered:"\uBBF8\uB4F1\uB85D",unit:"\uAC1C",wearingNow:"\uCC29\uC6A9",wear:"\uCC29\uC6A9",unwear:"\uCC29\uC6A9 \uD574\uC81C",wornSince:"{{date}}\uBD80\uD130",release:"\uD574\uC81C",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{title:"\uBC29\uBB38 \uC608\uC815",addTooltip:"\uC608\uC815 \uB4F1\uB85D",listTooltip:"\uC804\uCCB4 \uBCF4\uAE30",empty:"\uC608\uC815\uB41C \uBC29\uBB38\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D",memoPlaceholder:"\uBC29\uBB38 \uC608\uC815 \uAD00\uB828 \uBA54\uBAA8\uB97C \uC785\uB825\uD574 \uC8FC\uC138\uC694."},visitHistory:{title:"\uBC29\uBB38 \uC774\uB825",addTooltip:"\uC2E0\uADDC \uB4F1\uB85D",empty:"\uC544\uC9C1 \uBC29\uBB38 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",popupTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC774\uB825",registerTitle:" \uACE0\uAC1D\uB2D8 \uC2E0\uADDC \uBC29\uBB38 \uB4F1\uB85D"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uC0C1\uD669",active:"\uD65C\uC131",inactive:"\uBE44\uD65C\uC131",copy:"\uB9C1\uD06C \uBCF5\uC0AC",copied:"\uB9C1\uD06C\uAC00 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",visits:{title:"\uBC29\uBB38"},trainingRecord:{title:"\uACE0\uAC1D \uD6C8\uB828 \uAE30\uB85D"},status:{trainingSubtitle:"\uD6C8\uB828 \uD604\uD669"},detail:{session:{completedFmt:"\uC644\uB8CC {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:"\uC758 \uBC29\uBB38"},duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"}},zf={plan:{recommendedFor:"\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.",features:"\uD575\uC2EC \uAE30\uB2A5",freePrice:"\uBB34\uB8CC",contact:"\uBB38\uC758\uD558\uAE30",tierFallback:"\uC774\uC6A9\uAD8C",openPromo:"\uC624\uD508 \uD2B9\uAC00"},products:{mgrEnterprise:{tier:{price:"\uBB38\uC758"}}}},Vf={title:"\uCFE0\uD3F0",subtitle:"\uCFE0\uD3F0 \uCF54\uB4DC\uB97C \uC785\uB825\uD558\uAC70\uB098 \uBCF4\uC720 \uCFE0\uD3F0\uC744 \uD655\uC778\uD558\uC138\uC694.",input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9",error:{invalid:"\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uCFE0\uD3F0 \uCF54\uB4DC\uC785\uB2C8\uB2E4.",alreadyUsed:"\uC774\uBBF8 \uC0AC\uC6A9\uB41C \uCFE0\uD3F0\uC785\uB2C8\uB2E4."},success:{applied:'"{{name}}" \uCFE0\uD3F0\uC774 \uC801\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.'},section:{owned:"\uBCF4\uC720 \uCFE0\uD3F0"},status:{used:"\uC0AC\uC6A9 \uC644\uB8CC",available:"\uC0AC\uC6A9 \uAC00\uB2A5"}},Wf={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},qf={subtitle:"\uC5C5\uCCB4 \uBC0F \uBC95\uC778 \uC815\uBCF4\uB97C \uAD00\uB9AC\uD558\uC138\uC694.",editButton:"\uC815\uBCF4 \uC218\uC815",basicInfo:{title:"\uAE30\uBCF8 \uC815\uBCF4"},contactInfo:{title:"\uC5F0\uB77D\uCC98 \uC815\uBCF4"}},Uf={title:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",subtitle:"\uC6D0\uD558\uB294 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD558\uC138\uC694.",listenInNoise:{title:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},shortStory:{title:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uC774\uD574\uD569\uB2C8\uB2E4."},longStory:{title:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uC9D1\uC911\uD574\uC11C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uD30C\uC545\uD569\uB2C8\uB2E4."},orderingSentence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uB4E4\uC740 \uBB38\uC7A5\uB4E4\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD569\uB2C8\uB2E4."},SAME_SOUND_PICK:{label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},SAME_OR_DIFF:{label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",sub:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},HEAR_AND_PICK_SAME:{label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},HEAR_AND_PICK_INCLUDED:{label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},STARTS_WITH_SAME_SOUND:{label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."},LISTEN_AND_REMEMBER_ORDER:{label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",sub:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."},MERGE_2_SYLLABLES:{label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_SYLLABLES:{label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_2_PHONEMES:{label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_PHONEMES:{label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_PART_FROM_COMPOUND:{label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84 \uD0C8\uB77D",sub:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",sub:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",sub:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"},CHANGE_1_SYLL_IN_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_SYLL_IN_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_1SYLL:{label:"1\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_2SYLL:{label:"2\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}},Gf={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},Kf={colName:"\uB2E8\uC5B4\uD45C \uC774\uB984",open:"\uC5F4\uAE30",countSuffix:"\uAC1C\uC758 \uB2E8\uC5B4\uD45C",tab:{cards:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",tables:"\uB2E8\uC5B4\uD45C"},cardsEmpty:"\uC544\uC9C1 \uB9CC\uB4E0 \uB2E8\uC5B4\uD45C \uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",addCard:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC \uCD94\uAC00",menu:{publishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30",unpublishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0\uC11C \uB0B4\uB9AC\uAE30"},newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},Yf={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},Zf={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",topInfo:"\uC0C1\uB2E8 \uC815\uBCF4",bottomInfo:"\uD558\uB2E8 \uC815\uBCF4",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",copyName:"{{name}} (\uBCF5\uC0AC)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"{{name}} \uC0AD\uC81C",viewLabel:"\uBCF4\uAE30 \uBC29\uC2DD",sortLabel:"\uC815\uB82C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},publisherFilter:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30",groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",markName:{o:"\uB9DE\uC74C",triangle:"\uC560\uB9E4",x:"\uD2C0\uB9BC"},button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78 \uC544\uB798 \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB20C\uB7EC \uB9E4\uAE30\uC138\uC694. \uB9C8\uC6B0\uC2A4\uB85C\uB294 \uCE78\uC5D0 \uC190\uC744 \uC5B9\uC73C\uBA74, \uC790\uD310\uC73C\uB85C\uB294 \uCE78\uC5D0 \uCD08\uC810\uC774 \uAC00\uBA74 \uB098\uD0C0\uB0A9\uB2C8\uB2E4.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},reorder:{moved:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40",handle:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)",hint:"Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"}},Xf={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB2E8\uC5B4\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB4F1\uAE09",grade:"{{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193",original:"\uBC1B\uC740 \uC21C\uC11C"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30",popup:{title:"{{n}}\uBC88 \uCE78\uC5D0 \uB123\uC744 \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uC138\uC694"}},Jf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},Qf={title:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uACE0 \uB4E3\uAE30 \uD6C8\uB828\uC744 \uC2DC\uC791\uD558\uC138\uC694.",noiseTitle:"\uC18C\uC74C \uD558 \uBB38\uC7A5\uB4E3\uAE30",shortStoryTitle:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",FOOD:"\uC74C\uC2DD",HLTH:"\uAC74\uAC15",WETH:"\uB0A0\uC528",PRSN:"\uC778\uBB3C",KRCT:"\uD55C\uAD6D\uBB38\uD654",STRY:"\uC774\uC57C\uAE30",LOCA:"\uC9C0\uC5ED",SOAR:"\uC0AC\uD68C\uC640 \uC608\uC220",NTSC:"\uC790\uC5F0\uACFC \uACFC\uD559",SPRT:"\uC2A4\uD3EC\uCE20",sub:{TRKRFD:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD",MDKRFD:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD",WRLDFD:"\uC138\uACC4\uC758 \uC74C\uC2DD",MTRFRT:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C",GEFDKL:"\uC74C\uC2DD \uC0C1\uC2DD",HTETHB:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00",DISILL:"\uBCD1\uACFC \uC9C8\uD658",EXCISE:"\uC6B4\uB3D9",GEHTKL:"\uAC74\uAC15\uC0C1\uC2DD",GESSKL:"\uACC4\uC808\uC0C1\uC2DD",SNWRAN:"\uB208\uACFC \uBE44",WTHFCT:"\uC77C\uAE30\uC608\uBCF4",GEWTKL:"\uB0A0\uC528\uC0C1\uC2DD",JODYPS:"\uC870\uC120\uC2DC\uB300",MDKRPS:"\uD55C\uAD6D \uADFC\uD604\uB300",THKDPS:"\uC0BC\uAD6D\uC2DC\uB300",WRLART:"\uC138\uACC4\uC758 \uC608\uC220\uAC00",WRLPSN:"\uC138\uACC4\uC758 \uC778\uBB3C",KRLANG:"\uC6B0\uB9AC\uB9D0",TRPLCT:"\uC804\uD1B5\uB180\uC774",HERITG:"\uBB38\uD654\uC7AC",EVTFES:"\uD589\uC0AC\uC640 \uCD95\uC81C",GECTKL:"\uC0C1\uC2DD",FRYTAL:"\uB3D9\uD654",AMZING:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30",DAYSTR:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30",KRLDMK:"\uD55C\uAD6D\uC758 \uBA85\uC18C",SELNMK:"\uC11C\uC6B8\uC758 \uBA85\uC18C",WRDTRB:"\uC138\uACC4\uC5EC\uD589",NAVIGT:"\uAE38 \uCC3E\uAE30",KRSOCI:"\uD55C\uAD6D",ECONEW:"\uACBD\uC81C\uC640 \uB274\uC2A4",GENART:"\uC608\uC220",GELFKL:"\uC0DD\uD65C \uC0C1\uC2DD",ANIMAL:"\uB3D9\uBB3C",PLANTS:"\uC2DD\uBB3C",ETHPLT:"\uC9C0\uAD6C",TOLELC:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488",GESCKL:"\uACFC\uD559\uC0C1\uC2DD",INVDSP:"\uAC1C\uC778\uACBD\uAE30",MARART:"\uACA9\uD22C\uAE30",TEAMSP:"\uB2E8\uCCB4\uACBD\uAE30",FOOTBL:"\uCD95\uAD6C",GESPKL:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}},e2={maxUses:"\uCD5C\uB300 \uC0AC\uC6A9 \uD69F\uC218 (\uBE44\uC6CC\uB450\uBA74 \uBB34\uC81C\uD55C)",redirect:"\uC774\uB3D9\uD560 \uD398\uC774\uC9C0 URL (\uBE44\uC6CC\uB450\uBA74 \uC571 \uBA54\uC778)",creating:"\uC0DD\uC131 \uC911\u2026",create:"\uB9C1\uD06C \uC0DD\uC131",created:"\u2713 \uB9C1\uD06C\uAC00 \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4",copied:"\uBCF5\uC0AC\uB428!",copy:"\uBCF5\uC0AC",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",empty:"\uC0DD\uC131\uB41C \uB9C1\uD06C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",uses:"{{count}}\uD68C \uC0AC\uC6A9",expiresAt:"\uB9CC\uB8CC: {{date}}",createdAt:"\uC0DD\uC131: {{date}}",confirmDelete:"\uC0AD\uC81C\uD560\uAE4C\uC694?",deactivate:"\uBE44\uD65C\uC131\uD654",delete:"\uC0AD\uC81C",status:{active:"\uC720\uD6A8",expired:"\uB9CC\uB8CC",inactive:"\uBE44\uD65C\uC131"}},t2={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},n2={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},a2={direction:{left:"\uC88C",right:"\uC6B0",label:"\uBC29\uD5A5"},wornDate:"\uCC29\uC6A9\uC77C",deviceType:"\uC885\uB958",brand:"\uBE0C\uB79C\uB4DC",fitType:"\uCC29\uC6A9\uD615\uD0DC",productName:"\uC81C\uD488\uBA85",validationError:{brandAndProduct:"\uBE0C\uB79C\uB4DC\uC640 \uC81C\uD488\uBA85\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."},addNew:"\uC0C8 \uAE30\uAE30 \uCD94\uAC00",selectFromList:"\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD",removeDevice:"\uCC29\uC6A9 \uD574\uC81C",type:{hearingAid:"\uBCF4\uCCAD\uAE30",cochlearImplant:"\uC778\uACF5\uC640\uC6B0"}},r2={stat:{totalCustomers:"\uCD1D \uACE0\uAC1D",monthlyVisits:"\uC774\uB2EC \uCD1D \uBC29\uBB38"},chart:{visitDetail:"\uC0C1\uC138 \uBC29\uBB38 \uD604\uD669",trainingDetail:"\uC0C1\uC138 \uD6C8\uB828 \uD604\uD669",weekly:"\uC8FC\uBCC4",daily:"\uC77C\uBCC4",periodMonth:"\uC6D4",periodWeek:"\uC8FC",weeklyPrefix:"\uC8FC\uAC04",monthlyPrefix:"\uC6D4\uAC04",visit:"\uBC29\uBB38",reservation:"\uC608\uC57D",trainingDone:"\uD6C8\uB828 \uC644\uB8CC",trainingInProgress:"\uD6C8\uB828 \uC911",weekRange:"{{start}}~{{end}}",week:"{{n}}\uC8FC"},subscriptionStatus:{active:"{{pct}}% \uD65C\uC131",expired:"{{pct}}% \uB9CC\uB8CC",unused:"{{pct}}% \uBBF8\uC0AC\uC6A9"}},o2={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB300\uB9BD\uC30D\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},phonemeSelect:{title:"\uC74C\uC18C \uC120\uD0DD",vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",infoInclude:"\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.",infoPick:"\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694.",infoContrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."},count:"{{n}}\uAC1C",countLabel:"\uC74C\uC18C \uAC1C\uC218",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4.",selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},searchLabel:{error:"\uB370\uC774\uD130 \uBD88\uB7EC\uC624\uAE30 \uC2E4\uD328",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},confirmMessage:"\uC120\uD0DD\uD55C {{unit}} {{count}}\uAC1C\uB97C \uD3EC\uD568\uD55C \uB2E8\uC5B4 \uD45C \uC815\uBCF4\uAC00 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",resetOptions:"\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654",phonemeContrast:"\uB300\uB9BD {{n}}\uBC88 \uC74C\uC808",infoNotes:["\uBBF8\uB9AC\uBCF4\uAE30 \uAE00\uC790\uB294 \uC120\uD0DD\uD55C \uC74C\uC18C\uC758 \uC870\uD569 \uC608\uC2DC\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uAC80\uC0C9\uC740 \uD574\uB2F9 \uC74C\uC18C\uAC00 \uD3EC\uD568\uB41C \uBAA8\uB4E0 \uB2E8\uC5B4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4.","\uCD08\uC131 '\u3147'\uC740 \uC120\uD0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E8\uC5B4 \uC55E\uC5D0 \uC624\uB294 \u3147\uC740 \uC2E4\uC9C8\uC801\uC73C\uB85C \uBB34\uC74C\uC774\uC5B4\uC11C \uB300\uB9BD\uC30D \uC131\uB9BD\uC5D0 \uC601\uD5A5\uC744 \uC8FC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","\uCD08\uC131\uACFC \uC885\uC131\uB9CC \uC120\uD0DD\uD558\uBA74 \uBAA8\uC74C\uC740 '\u314F'\uB85C \uC790\uB3D9 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","\uC74C\uC18C \uAC1C\uC218\uB97C \uB298\uB9AC\uBA74 \uAC01 \uC74C\uC18C \uC0AC\uC774\uC758 \uB300\uB9BD\uC30D\uC744 \uAC80\uC0C9\uD569\uB2C8\uB2E4."]},s2={sentenceTyping:{roundCount:"{{rounds}}\uBB38\uC81C \xB7 \uBB38\uC81C\uB2F9 {{timeLimit}}\uCD08"},wordDefense:{me:"\uB098"},dictation:{title:"\uBC1B\uC544\uC4F0\uAE30",desc:"\uBB38\uC7A5\uC744 \uB4E3\uACE0 \uC815\uD655\uD788 \uBC1B\uC544\uC801\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC131 \uC7AC\uC0DD, \uC785\uB825 \uD544\uB4DC, \uC815\uB2F5 \uBE44\uAD50"},result:{heading:"{{number}}\uB2E8\uACC4 \uD574\uB2F5",retry:"\uB2E4\uC2DC \uD480\uAE30"},common:{accuracy:"{{pct}}% \uC815\uD655\uB3C4"},soundMatch:{title:"\uC18C\uB9AC \uB9E4\uCE6D",desc:"\uAC19\uC740 \uC18C\uB9AC\uB97C \uAC00\uC9C4 \uB2E8\uC5B4 \uB610\uB294 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB9E4\uCE6D\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uD50C\uB808\uC774 \uBC84\uD2BC, \uD0C0\uC774\uBA38, \uC810\uC218 \uC9D1\uACC4"},orderSequence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uD769\uC5B4\uC9C4 \uBB38\uC7A5 \uC870\uAC01\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uBB38\uC7A5 \uC138\uD2B8, \uC21C\uC11C \uD655\uC778 \uC778\uD130\uD398\uC774\uC2A4"},speedListen:{title:"\uC18D\uB3C4 \uB4E3\uAE30",desc:"\uC2DC\uAC04 \uC81C\uD55C \uB0B4\uC5D0 \uBB38\uC7A5\uC758 \uB2E8\uC5B4 \uC218\uB97C \uB9DE\uCD94\uB294 \uB3C4\uC804\uD615 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC81C\uD55C\uC2DC\uAC04, \uC810\uC218\uD310"},noiseChallenge:{title:"\uC18C\uC74C \uCC4C\uB9B0\uC9C0",desc:"\uBC30\uACBD \uC18C\uC74C \uC18D\uC5D0\uC11C \uBB38\uC7A5\uC744 \uBD84\uBCC4\uD558\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB2E4\uC591\uD55C \uC18C\uC74C \uB808\uBCA8, \uC810\uC218 \uC9D1\uACC4"},fastListen:{title:"\uBE60\uB978 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB4E4\uB824\uC8FC\uACE0 \uD575\uC2EC \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB09C\uC774\uB3C4\uBCC4 \uC18D\uB3C4, \uD0C0\uC774\uBA38"},shadowing:{title:"\uC250\uB3C4\uC789",desc:"\uBB38\uC7A5\uC744 \uB530\uB77C \uB9D0\uD558\uBA70 \uBC1C\uC74C\uACFC \uC5B5\uC591\uC744 \uC5F0\uC2B5\uD558\uB294 \uBAA8\uB4DC\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC7AC\uC0DD, \uB179\uC74C, \uBE44\uAD50 \uD53C\uB4DC\uBC31"},phonemeHunt:{title:"\uC74C\uC6B4 \uCC3E\uAE30",desc:"\uD2B9\uC815 \uC74C\uC6B4(\uBC1C\uC74C)\uC744 \uD3EC\uD568\uD55C \uB2E8\uC5B4\uB97C \uCC3E\uC544\uB0B4\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC6B4 \uD544\uD130, \uD78C\uD2B8 \uAE30\uB2A5"}},i2={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
848
848
  \uC2E0\uB8B0\uB97C \uC313\uACE0
849
- \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8",kakao:"KAKAO Talk \uC624\uD508\uCC44\uD305"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638"},s2={trainingPhone:{topic:"\uD143\uBC2D\uAC00\uAFB8\uAE30",prev:"\uC774\uC804",next:"\uB2E4\uC74C",speed:"\uBE60\uB974\uAE30 3",noiseType:"\uC640\uAE00\uC640\uAE00",settings:"\uC124\uC815",start:{caption:"\uC544\uB798 \uD50C\uB808\uC774(\u25B6) \uBC84\uD2BC\uC744 \uB20C\uB7EC \uBB38\uC7A5\uC744 \uC798 \uB4E4\uC5B4\uBCF4\uC138\uC694. \uC798 \uB4E4\uC73C\uC2E0 \uB4A4 \uBB38\uC7A5\uC744 \uD655\uC778\uD558\uC138\uC694."},feedback:{caption:"\uC798 \uD0A4\uC6B4 \uBAA8\uC885\uC744 \uD143\uBC2D\uC5D0 \uC2EC\uACE0 \uBE44\uB2D0\uC744 \uC798 \uB36E\uC5B4 \uC90D\uB2C8\uB2E4."},done:{heardWell:"\uC798 \uB4E4\uB9B0 \uBB38\uC7A5",listenAgain:"\uD55C \uBC88 \uB354 \uB4E3\uAE30"}}},i2={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},l2={options:"\uD6C8\uB828 \uC635\uC158",difficulty:"\uB09C\uC774\uB3C4",exclude:"\uC81C\uC678",chosung:"\uCD08\uC131",excludeOptions:{none:"\uC5C6\uC74C",noImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"}},u2={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},c2={phaseWordDownload:"\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC",phaseImageCheck:"\uC774\uBBF8\uC9C0 \uD655\uC778",phasePairAnalysis:"\uB2E8\uC5B4\uC30D \uBD84\uC11D",downloadingCount:"{{n}}\uAC1C \uB2E4\uC6B4\uB85C\uB4DC \uC911",checkingPage:"{{page}}\uD398\uC774\uC9C0 \uBAA9\uB85D \uD655\uC778 \uC911",imageCount:"{{done}} / {{total}}\uAC1C"},d2={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},p2={ariaLabel:"\uC120\uD0DD \uD0ED"},m2={ariaLabel:"\uD0ED"},h2={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},C2={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},f2={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"},reason:{notLoggedIn:"\uB85C\uADF8\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},list:{title:"\uBC1B\uC740 \uC219\uC81C"},status:{expired:"\uB9CC\uB8CC\uB428",done:"\uC644\uB8CC {{count}}\uD68C \xB7 {{date}}",notDone:"\uBBF8\uC644\uB8CC"}},g2={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30",crossword:"\uAC00\uB85C\uC138\uB85C"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",count:"\uC804\uCCB4",done:"\uC644\uB8CC",remaining:"\uBBF8\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},filter:{countSuffix:" \uD6C8\uB828"},time:{countLabel:"{{n}}\uD68C \uD6C8\uB828",empty:"\uD6C8\uB828 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},daily:{title:"\uC624\uB298\uC758 \uB4E3\uAE30 \uAE30\uB85D",empty:"\uC644\uB8CC\uD55C \uD68C\uCC28\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},crossword:{title:"\uAC00\uB85C\uC138\uB85C\uD034\uC988",empty:"\uC644\uB8CC\uD55C \uB808\uBCA8\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",trainingType:{LISTEN_IN_NOISE:"\uC18C\uC74C \uD558 \uBB38\uC7A5",SHORT_STORY:"\uC9E7\uC740 \uC774\uC57C\uAE30",LONG_STORY:"\uAE34 \uC774\uC57C\uAE30",ORDERING_SENTENCE:"\uBB38\uC7A5 \uC21C\uC11C\uD654"}},b2={publish:{descPlaceholder:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uD45C\uC2DC\uD560 \uD55C \uC904 \uC124\uBA85 (\uC120\uD0DD)"},import:"\uB0B4 \uD6C8\uB828\uC5D0 \uAC00\uC838\uC624\uAE30",publisher:"\uAC8C\uC2DC\uC790",time:{justNow:"\uBC29\uAE08 \uC804",minutesAgo:"{{n}}\uBD84 \uC804",hoursAgo:"{{n}}\uC2DC\uAC04 \uC804",daysAgo:"{{n}}\uC77C \uC804",weeksAgo:"{{n}}\uC8FC \uC804",monthsAgo:"{{n}}\uAC1C\uC6D4 \uC804",yearsAgo:"{{n}}\uB144 \uC804"},badge:{shared:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"}},y2={manage:{unit:"\uAC74"}},v2={cancelLabel:"\uCDE8\uC18C"},x2={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},_2={panelTitle:"\uD6C8\uB828 \uC624\uB2F5",viewItems:"\uBB38\uD56D",viewTypes:"\uC720\uD615",colPending:"\uB0A8\uC740 \uAC83",colTrend:"\uBCC0\uD654",colRuns:"\uD310",unitItem:"\uAC1C",skippedOnly:"\uC61B \uAE30\uB85D {{n}}\uAC74\uC740 \uBB34\uC5C7\uC744 \uD47C \uAC83\uC778\uC9C0 \uC548 \uB0A8\uC544 \uC788\uC5B4 \uC148\uC5D0\uC11C \uBE90\uC2B5\uB2C8\uB2E4.",summaryLabel:"\uC313\uC778 \uAE30\uB85D",summaryValue:"{{items}}\uBB38\uD56D \xB7 \uC544\uC9C1 \uBABB \uC7A1\uC740 \uAC83 {{pending}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C",picked:"\u2192 {{what}}",typeClear:"\uB2E4 \uC7A1\uC558\uC5B4\uC694",typePending:"{{total}}\uAC1C \uC911 {{pending}}\uAC1C \uB0A8\uC74C",flat:"\uBCC0\uD654 \uC5C6\uC74C",runs:"{{count}}\uD310",avgDuration:"\uD3C9\uADE0 {{sec}}\uCD08"},w2={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654",scrollRegion:"\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C",rowActionHint:"\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4"},B2={panelTitle:"\uB2E8\uC5B4\uD45C \uCC44\uC810",viewWords:"\uB0B1\uB9D0",viewTables:"\uD45C",colLatest:"\uB9C8\uC9C0\uB9C9",colTrend:"\uBCC0\uD654",unitTime:"\uD68C",summaryLabel:"\uC313\uC778 \uCC44\uC810",summaryValue:"{{times}}\uD68C \xB7 \uB0B1\uB9D0 {{words}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",allClear:"\uC9C0\uB09C\uBC88\uC5D0 \uBAA8\uB450 \uB9DE\uD614\uC2B5\uB2C8\uB2E4.",times:"{{count}}\uD68C",flat:"\uBCC0\uD654 \uC5C6\uC74C",recentLabel:"\uCD5C\uADFC \uCC44\uC810",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C"},A2={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},k2={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},N2={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},D2={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},E2={devNone:"\uBC1C\uB2EC \uC790\uB8CC \uC5C6\uC74C",place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},S2={clearSelection:"\uC120\uD0DD \uD574\uC81C"},j2={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},T2={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},M2={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},L2={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},$2={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},R2={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},P2={main:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",soft:"\uC18C\uD504\uD2B8",sub:"\uC11C\uBE0C \uCEEC\uB7EC",deep:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",softSub:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",warm:"\uC6DC(\uAC15\uC870)",dark:"\uB2E4\uD06C",radial:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",diagonal:"\uB300\uAC01\uC120 \uD328\uD134",dots:"\uB3C4\uD2B8 \uD328\uD134",outline:"\uC544\uC6C3\uB77C\uC778",success:"\uC131\uACF5/\uC644\uB8CC",naver:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",instagram:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4"},F2={common:wf,calendar:Bf,passCard:Af,searchField:kf,rating:Nf,colorPicker:Df,dropdown:Ef,accordion:Sf,header:jf,nav:Tf,settings:Mf,usage:Lf,account:$f,help:Rf,training:Pf,trainingSettings:Ff,customers:If,payment:Of,coupons:Hf,visits:zf,company:Vf,trainingType:Wf,myWordTraining:qf,myWordTable:Uf,keyWords:Gf,wordTable:Kf,wordSearch:Yf,wordPrint:Zf,topic:Xf,accessLinkManager:Jf,login:Qf,trainingPlanRun:e2,device:t2,manager:n2,wordPairs:a2,game:r2,footer:o2,landing:s2,date:i2,trainingSetPage:l2,wordTrainingPreview:u2,wordData:c2,textField:d2,segmentedControl:p2,tabs:m2,fileUpload:h2,avatar:C2,myHomework:f2,trainingStatus:g2,store:b2,homework:y2,inquiry:v2,progress:x2,trainingMiss:_2,table:w2,wordScore:B2,topBanner:A2,datePicker:k2,report:N2,tooltip:D2,phonemeProfile:E2,bulkBar:S2,debug:j2,badge:T2,loader:M2,soundCompass:L2,breadcrumb:$2,board:R2,promoBannerBg:P2},I2={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",collapseFor:"Collapse {{name}}",expandFor:"Expand {{name}}",sortFor:"Sort {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",likeCount:"{{count}} likes",selectedOfMax:"{{count}} of {{max}}",downloadCount:"{{count}} downloads",descriptionFor:"About {{name}}",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",playFor:"Play {{name}}",pauseFor:"Pause {{name}}",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",noMatches:"No matching items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error",networkError:"The network connection is unstable. Check your connection and try again."},O2={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yearMonth:"{{month}}/{{year}}",prevMonth:"Previous month",addOnDate:"Add a visit on {{date}}",nextMonth:"Next month",prevWeek:"Previous week",nextWeek:"Next week",legend:{visited:"Visited",scheduled:"Scheduled",noVisit:"No Show"},periodSelect:"Period unit",visitCount:"{{count}} visit(s)",statusCount:"{{count}} {{label}}"},H2={planSuffix:"Plan",labeledPlan:"{{label}} Plan",couponCode:"Pass Code",specialLabel:"Open Special",unitDay:"d",unitYear:"yr",remainingDay:"{{n}}d left",remainingHour:"{{n}}h left",remainingMinute:"{{n}}m left",remainingSecond:"{{n}}s left",expired:"Expired",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},z2={clearAriaLabel:"Clear search"},V2={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},W2={selected:"selected"},q2={placeholder:"Select"},U2={collapse:"Collapse",expand:"Expand"},G2={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},K2={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",feedback:"Report a bug",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu",badgeLabel:"{{label}}, {{count}}",badgeInsideLabel:"{{label}}, {{count}} notifications inside"},Y2={language:{training:{label:"Training Language",sub:"Language used for training words and speech"}},notifications:{title:"Notifications"},display:{fontSize:{small:"Small",large:"Large"}},cache:{title:"Cache Management",confirmMessage:"Delete cache ({{size}}). Do you want to continue?",delete:"Delete",deleting:"Deleting",cleared:"Cache cleared successfully.",group:{wordData:{label:"Word Data",sub:"Word list and version info"},pairIndex:{label:"Pair Index",sub:"Onset\xB7vowel\xB7coda minimal pair analysis cache"},imageCache:{label:"Image Cache",sub:"Word image existence check results"},trainingRecord:{label:"Training Record",sub:"Daily training progress and streak"}}},button:{save:"Save Settings"},popup:{clear:{confirm:"Reset"},update:{confirm:"Update"},cache:{title:"Delete {{label}}",message:"Delete {{label}} ({{size}}). Do you want to continue?"}},saved:"\u2713 Saved",account:{title:"Account",delete:{sub:"You can restore your account within 30 days of withdrawal."}}},Z2={addButton:"Add Subscription",couponButton:"Enter Coupon",active:{infoTitle:"Subscription Info",refund:"Request Refund",startDate:"Start Date",endDate:"End Date",remaining:"Remaining"},pending:{title:"Pending",empty:"No pending subscriptions."},loading:"Loading\u2026",segment:{personal:"Malgwi",org:"Malgwi Manager"},org:{title:"Current Plan",disc:"Subscription plan in use by your organization.",empty:"No organization plan registered.",fallbackTitle:"Organization Plan",startDate:"Start Date",endDate:"End Date",remaining:"Remaining",duration:"Duration"}},X2={profile:{planSuffix:"",plan:"Plan"},basicInfo:{name:{placeholder:"John Doe"}},security:{title:"Security",password:{label:"Password",currentRequired:"Enter your current password.",newRequired:"Enter a new password.",mismatch:"The new passwords do not match.",changed:"Your password has been changed."},twoFactor:{label:"Two-Factor Authentication",sub:"Strengthen your account security"}}},J2={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},Q2={settings:"Settings",start:{title:"Start Word Training",description:"Select a training type below to begin"},difficulty:{tooltip:"The easiest difficulty is 'Random', the hardest is 'Initial Consonant Difference'."},contrast:{label:"Contrast",type:"Contrast Type",count:"Contrast Count",n:"{{n}}"},filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Grade",excludeImageInfo:"Only words with images: keeps only results with a registered word image.",sameStructureInfo:"Only same phoneme structure: keeps only pairs where the correct and wrong answers share the same syllable structure (length, batchim, etc.).",selectSection:"Select",excludeImage:"Only words with images",sameStructure:"Only same phoneme structure"},noQuestions:"No questions available.",countQuestions:"{{n}} questions",countSentences:"{{n}} sentences",comingSoon:"Coming Soon",nextQuestion:"Next",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",answerLockedHint:"You can choose once it finishes playing.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playAll:"Play All",selectInOrder:"Select the cards in the order you heard.",stop:"Stop",preview:"Preview",previewFor:"Preview {{name}}",stopFor:"Stop {{name}}",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",ttsUnavailable:"Speech playback isn't available on this device.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{pendingDone:"Results are still being calculated, so you can't finish yet.",eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",done:"Done",viewResult:"View Results",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",audioStatus:{idle:"Idle",resolving:"Resolving\u2026",checking_exists:"Checking file\u2026",getting_signed_url:"Getting URL\u2026",downloading:"Downloading\u2026",measuring_duration:"Measuring length\u2026",ready:"Ready",error:"Error",synthesizing:"Preparing the sound\u2026"}},eg={totalCount:" training bundles",sort:{customers:"Customers"},copyLink:"Copy Link",removeLink:"Remove Link",linkRemoved:"Link removed.",linkSaveFirst:"Please save the training bundle first.",linkSaveFirstHint:"You can only create a shared link from a saved training bundle.",linkCopySelect:"Copy blocked \u2014 link selected. Press Ctrl/\u2318+C to copy.",nameRequired:"Please enter a training bundle name.",itemRequired:"Please add at least one training item.",randomAdd:"Random Add",menu:{publish:"Post to Store",duplicate:"Duplicate Training Bundle",edit:"Edit Training Bundle",move:"Move Group",rename:"Rename"},itemCount:"Number of Items",renameGroup:"Rename Group"},tg={totalCount:" customers",loadError:"Failed to load list",basicInfo:{editTooltip:"Edit"},member:{placeholder:"Email or phone",link:"Link",linking:"Linking\u2026"},device:{title:"Hearing Devices",addTooltip:"Add New",addButton:"Add device",listTooltip:"View List",listTitle:" Device List",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",release:"Release",historyTitle:"Hearing device history"},schedule:{title:"Upcoming Visits",addTooltip:"Add Schedule",listTooltip:"View All",empty:"No upcoming visits",registerTitle:" Register Schedule",memoPlaceholder:"Enter a memo for this visit."},visitHistory:{title:"Visit History",addTooltip:"Add Visit",empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",visits:{title:"Visits"},trainingRecord:{title:"Customer Training Records"},status:{trainingSubtitle:"Training Status"},detail:{session:{completedFmt:"Done {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:" visits"},homework:{active:"Active",copied:"Link copied.",copy:"Copy Link",inactive:"Inactive",title:"Homework Progress"},duration:{minSec:"{{m}}m {{s}}s",min:"{{m}}m",sec:"{{s}}s"}},ng={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},ag={title:"Coupons",subtitle:"Enter a coupon code or view your coupons",input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply",error:{invalid:"Invalid coupon code.",alreadyUsed:"This coupon has already been used."},success:{applied:'"{{name}}" coupon applied.'},section:{owned:"My Coupons"},status:{used:"Used",available:"Available"}},rg={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},og={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},sg={title:"Training by Type",subtitle:"Select the training type you want",listenInNoise:{title:"Sentence Listening in Noise",desc:"Train sentence comprehension in various noise environments."},shortStory:{title:"Short Story Listening",desc:"Listen to short stories and understand the content."},longStory:{title:"Long Story Listening",desc:"Focus on listening to long stories and grasp the content."},orderingSentence:{title:"Sentence Ordering",desc:"Arrange heard sentences in the correct order."},SAME_SOUND_PICK:{label:"Listen & Pick Same Sound",sub:"Pick the word card that matches what you heard."},SAME_OR_DIFF:{label:"Same or Different?",sub:"Decide whether the two sounds are the same or different."},HEAR_AND_PICK_SAME:{label:"Hear & Match Word",sub:"Pick the word card that matches the sound you heard."},HEAR_AND_PICK_INCLUDED:{label:"Find Word Containing Sound",sub:"Pick the word card that contains the syllable you heard."},STARTS_WITH_SAME_SOUND:{label:"Find Word Starting with Same Sound",sub:"Pick a word that starts with the same sound as what you heard."},LISTEN_AND_REMEMBER_ORDER:{label:"Listen & Recall Order",sub:"Select the cards in the order you heard the three words."},MERGE_2_SYLLABLES:{label:"Combine 2 Syllables",sub:"What word do two syllables make?"},MERGE_3_SYLLABLES:{label:"Combine 3 Syllables",sub:"What word do three syllables make?"},MERGE_2_PHONEMES:{label:"Combine 2 Phonemes",sub:"What sound do two phonemes make?"},MERGE_3_PHONEMES:{label:"Combine 3 Phonemes",sub:"What sound do three phonemes make?"},DROP_1_FROM_2SYLL:{label:"Drop 1 Syllable from 2-Syllable",sub:"What sound remains when you remove a syllable from a 2-syllable word?"},DROP_1_FROM_3SYLL:{label:"Drop 1 Syllable from 3-Syllable",sub:"What sound remains when you remove a syllable from a 3-syllable word?"},DROP_PART_FROM_COMPOUND:{label:"Drop Part of Compound Word",sub:"What word remains when you remove part of a compound word?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"Drop Final Consonant",sub:"What sound remains when you remove the final consonant?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"Drop Consonant",sub:"What sound remains when you remove the consonant?"},CHANGE_1_SYLL_IN_2SYLL:{label:"Change 1 Syllable (2-Syllable)",sub:"Change one syllable in a 2-syllable word to make a new word."},CHANGE_1_SYLL_IN_3SYLL:{label:"Change 1 Syllable (3-Syllable)",sub:"Change one syllable in a 3-syllable word to make a new word."},CHANGE_1_PHONEME_IN_1SYLL:{label:"Change 1 Phoneme (1-Syllable)",sub:"Change one phoneme in a 1-syllable word to make a new sound."},CHANGE_1_PHONEME_IN_2SYLL:{label:"Change 1 Phoneme (2-Syllable)",sub:"Change one phoneme in a 2-syllable word to make a new word."}},ig={comingSoon:"Word training is coming soon."},lg={colName:"Table Name",open:"Open",countSuffix:" tables",addCard:"Add Word Table Card",cardsEmpty:"No word table cards created yet.",menu:{publishStore:"Post to Training Store",unpublishStore:"Remove from Training Store"},newBadge:"Newly created",tab:{cards:"Word Table Cards",tables:"Word Tables"},publishedBadge:"Published",sharedBadge:"Shared"},ug={title:"Key Words",empty:"No key words available."},cg={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",topInfo:"Header",bottomInfo:"Footer",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete {{name}}",viewLabel:"View as",sortLabel:"Sort by",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},publisherFilter:"Show only tables by {{name}}",groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",markName:{o:"Correct",triangle:"Partial",x:"Incorrect"},button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse they appear when you hover the cell; with a keyboard, when focus reaches it.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"},info:{grade:"Grade: {{n}}",syllables:"Syllables: {{n}}",pos:"Part of speech: {{v}}",wordType:"Type: {{v}}"},pos:{noun:"Noun",verb:"Verb",adjective:"Adjective",adverb:"Adverb",numeral:"Numeral",determiner:"Determiner",interjection:"Interjection",particle:"Particle",affix:"Affix",dependentNoun:"Dependent noun",pronoun:"Pronoun",auxVerb:"Auxiliary verb",auxAdjective:"Auxiliary adjective"},reorder:{moved:"Moved to position {{n}} of {{total}}",handle:"Reorder {{word}} (Alt + arrow keys)",hint:"Alt + \u2190 \u2192 to reorder"}},dg={editBanner:{message:"Saving will update the word table you're editing."},filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193",original:"Original order"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},pg={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},mg={title:"By Topic",subtitle:"Select a topic to start listening training",noiseTitle:"Sentence Listening in Noise",shortStoryTitle:"Short Story Listening",FOOD:"Food",HLTH:"Health",WETH:"Weather",PRSN:"People",KRCT:"Korean Culture",STRY:"Stories",LOCA:"Locations",SOAR:"Society & Arts",NTSC:"Nature & Science",SPRT:"Sports",sub:{TRKRFD:"Traditional Korean Food",MDKRFD:"Modern Korean Food",WRLDFD:"World Cuisine",MTRFRT:"Ingredients & Fruits",GEFDKL:"Food Facts",HTETHB:"Healthy Eating",DISILL:"Diseases",EXCISE:"Exercise",GEHTKL:"Health Facts",GESSKL:"Seasons",SNWRAN:"Snow & Rain",WTHFCT:"Weather Forecast",GEWTKL:"Weather Facts",JODYPS:"Joseon Dynasty",MDKRPS:"Modern Korea",THKDPS:"Three Kingdoms",WRLART:"World Artists",WRLPSN:"World Figures",KRLANG:"Korean Language",TRPLCT:"Traditional Games",HERITG:"Heritage",EVTFES:"Events & Festivals",GECTKL:"General Knowledge",FRYTAL:"Fairy Tales",AMZING:"Amazing Stories",DAYSTR:"Everyday Stories",KRLDMK:"Korean Landmarks",SELNMK:"Seoul Landmarks",WRDTRB:"World Travel",NAVIGT:"Navigation",KRSOCI:"Korea",ECONEW:"Economy & News",GENART:"Arts",GELFKL:"Life Tips",ANIMAL:"Animals",PLANTS:"Plants",ETHPLT:"Earth",TOLELC:"Tools & Electronics",GESCKL:"Science Facts",INVDSP:"Individual Sports",MARART:"Martial Arts",TEAMSP:"Team Sports",FOOTBL:"Soccer",GESPKL:"Sports Facts"}},hg={maxUses:"Max uses (leave blank for unlimited)",redirect:"Redirect URL (leave blank for app home)",creating:"Creating\u2026",create:"Create link",created:"\u2713 Link created",copied:"Copied!",copy:"Copy",loading:"Loading\u2026",empty:"No links created yet.",uses:"Used {{count}} times",expiresAt:"Expires: {{date}}",createdAt:"Created: {{date}}",confirmDelete:"Delete this link?",deactivate:"Deactivate",delete:"Delete",status:{active:"Active",expired:"Expired",inactive:"Inactive"}},Cg={passwordPlaceholder:"Enter password"},fg={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",validationError:{brandAndProduct:"Please enter brand and product name."},addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove",type:{hearingAid:"Hearing Aid",cochlearImplant:"Cochlear Implant"}},gg={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",daily:"Daily",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"},subscriptionStatus:{active:"{{pct}}% Active",expired:"{{pct}}% Expired",unused:"{{pct}}% Unused"}},bg={editBanner:{message:"Saving will update the contrast pair table you're editing."},phonemeSelect:{title:"Phoneme Selection",vs:"vs"},caution:"Caution",mode:{include:"Phoneme Include",pick:"Phoneme Contrast",contrast:"Specify Contrast",infoTitle:"Contrast Mode",infoInclude:"Include \u2014 finds words containing all selected phonemes, plus their minimal pair.",infoPick:"Contrast \u2014 matches only if the selected phoneme is the actual point of difference in the pair.",infoContrast:"Specify Contrast \u2014 directly choose phonemes for the base word and the contrasting word to find pairs."},count:"{{n}}",countLabel:"Number of phonemes",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:"Reflects the National Institute of Korean Language's basic vocabulary grade.",selectLabel:"Select",onlyHasImage:"Only words with images",onlySameStructure:"Only same phoneme structure"},searchLabel:{error:"Failed to load data",loading:"Loading\u2026"},confirmMessage:"The word table with {{count}} selected {{unit}} will be lost.",resetOptions:"Reset Options",phonemeContrast:"Contrast Syllable {{n}}",infoNotes:["The preview character is an example of the selected phoneme combination. The actual search covers all words containing the phoneme.","Initial consonant '\u3147' cannot be selected. \u3147 at the start of a word is effectively silent.","If only onset and coda are selected, the vowel is automatically displayed as '\u314F'.","Increasing the phoneme count searches for minimal pairs between each phoneme."]},yg={sentenceTyping:{roundCount:"{{rounds}} rounds \xB7 {{timeLimit}}s each"},wordDefense:{me:"Me"},dictation:{title:"Dictation",desc:"Practice writing down exactly what you hear.",comingSoon:"Coming soon: audio playback, input field, answer comparison"},result:{heading:"Level {{number}} Answer",retry:"Try Again"},common:{accuracy:"{{pct}}% accuracy"},soundMatch:{title:"Sound Match",desc:"Quickly match words or sentences that share the same sound.",comingSoon:"Coming soon: play button, timer, score tracking"},orderSequence:{title:"Sentence Ordering",desc:"Arrange scattered sentence fragments in the correct order.",comingSoon:"Coming soon: sentence sets, ordering interface"},speedListen:{title:"Speed Listen",desc:"A challenge game to count the number of words in a sentence within a time limit.",comingSoon:"Coming soon: time limit, scoreboard"},noiseChallenge:{title:"Noise Challenge",desc:"Practice distinguishing sentences amid background noise.",comingSoon:"Coming soon: various noise levels, score tracking"},fastListen:{title:"Fast Listen",desc:"Listen to short sentences at speed and select the key word.",comingSoon:"Coming soon: speed by difficulty, timer"},shadowing:{title:"Shadowing",desc:"Practice pronunciation and intonation by repeating sentences aloud.",comingSoon:"Coming soon: playback, recording, comparison feedback"},phonemeHunt:{title:"Phoneme Hunt",desc:"Find words that contain a specific phoneme (sound).",comingSoon:"Coming soon: phoneme filter, hint feature"}},vg={lead:`IHAB builds trust
849
+ \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8",kakao:"KAKAO Talk \uC624\uD508\uCC44\uD305"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638"},l2={trainingPhone:{topic:"\uD143\uBC2D\uAC00\uAFB8\uAE30",prev:"\uC774\uC804",next:"\uB2E4\uC74C",speed:"\uBE60\uB974\uAE30 3",noiseType:"\uC640\uAE00\uC640\uAE00",settings:"\uC124\uC815",start:{caption:"\uC544\uB798 \uD50C\uB808\uC774(\u25B6) \uBC84\uD2BC\uC744 \uB20C\uB7EC \uBB38\uC7A5\uC744 \uC798 \uB4E4\uC5B4\uBCF4\uC138\uC694. \uC798 \uB4E4\uC73C\uC2E0 \uB4A4 \uBB38\uC7A5\uC744 \uD655\uC778\uD558\uC138\uC694."},feedback:{caption:"\uC798 \uD0A4\uC6B4 \uBAA8\uC885\uC744 \uD143\uBC2D\uC5D0 \uC2EC\uACE0 \uBE44\uB2D0\uC744 \uC798 \uB36E\uC5B4 \uC90D\uB2C8\uB2E4."},done:{heardWell:"\uC798 \uB4E4\uB9B0 \uBB38\uC7A5",listenAgain:"\uD55C \uBC88 \uB354 \uB4E3\uAE30"}}},u2={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},c2={options:"\uD6C8\uB828 \uC635\uC158",difficulty:"\uB09C\uC774\uB3C4",exclude:"\uC81C\uC678",chosung:"\uCD08\uC131",excludeOptions:{none:"\uC5C6\uC74C",noImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"}},d2={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},p2={phaseWordDownload:"\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC",phaseImageCheck:"\uC774\uBBF8\uC9C0 \uD655\uC778",phasePairAnalysis:"\uB2E8\uC5B4\uC30D \uBD84\uC11D",downloadingCount:"{{n}}\uAC1C \uB2E4\uC6B4\uB85C\uB4DC \uC911",checkingPage:"{{page}}\uD398\uC774\uC9C0 \uBAA9\uB85D \uD655\uC778 \uC911",imageCount:"{{done}} / {{total}}\uAC1C"},m2={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},h2={ariaLabel:"\uC120\uD0DD \uD0ED"},C2={ariaLabel:"\uD0ED"},f2={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},g2={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},b2={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"},reason:{notLoggedIn:"\uB85C\uADF8\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},list:{title:"\uBC1B\uC740 \uC219\uC81C"},status:{expired:"\uB9CC\uB8CC\uB428",done:"\uC644\uB8CC {{count}}\uD68C \xB7 {{date}}",notDone:"\uBBF8\uC644\uB8CC"}},y2={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30",crossword:"\uAC00\uB85C\uC138\uB85C"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",count:"\uC804\uCCB4",done:"\uC644\uB8CC",remaining:"\uBBF8\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},filter:{countSuffix:" \uD6C8\uB828"},time:{countLabel:"{{n}}\uD68C \uD6C8\uB828",empty:"\uD6C8\uB828 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},daily:{title:"\uC624\uB298\uC758 \uB4E3\uAE30 \uAE30\uB85D",empty:"\uC644\uB8CC\uD55C \uD68C\uCC28\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},crossword:{title:"\uAC00\uB85C\uC138\uB85C\uD034\uC988",empty:"\uC644\uB8CC\uD55C \uB808\uBCA8\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",trainingType:{LISTEN_IN_NOISE:"\uC18C\uC74C \uD558 \uBB38\uC7A5",SHORT_STORY:"\uC9E7\uC740 \uC774\uC57C\uAE30",LONG_STORY:"\uAE34 \uC774\uC57C\uAE30",ORDERING_SENTENCE:"\uBB38\uC7A5 \uC21C\uC11C\uD654"}},v2={publish:{descPlaceholder:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uD45C\uC2DC\uD560 \uD55C \uC904 \uC124\uBA85 (\uC120\uD0DD)"},import:"\uB0B4 \uD6C8\uB828\uC5D0 \uAC00\uC838\uC624\uAE30",publisher:"\uAC8C\uC2DC\uC790",time:{justNow:"\uBC29\uAE08 \uC804",minutesAgo:"{{n}}\uBD84 \uC804",hoursAgo:"{{n}}\uC2DC\uAC04 \uC804",daysAgo:"{{n}}\uC77C \uC804",weeksAgo:"{{n}}\uC8FC \uC804",monthsAgo:"{{n}}\uAC1C\uC6D4 \uC804",yearsAgo:"{{n}}\uB144 \uC804"},badge:{shared:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"}},x2={manage:{unit:"\uAC74"}},_2={cancelLabel:"\uCDE8\uC18C"},w2={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},B2={panelTitle:"\uD6C8\uB828 \uC624\uB2F5",viewItems:"\uBB38\uD56D",viewTypes:"\uC720\uD615",colPending:"\uB0A8\uC740 \uAC83",colTrend:"\uBCC0\uD654",colRuns:"\uD310",unitItem:"\uAC1C",skippedOnly:"\uC61B \uAE30\uB85D {{n}}\uAC74\uC740 \uBB34\uC5C7\uC744 \uD47C \uAC83\uC778\uC9C0 \uC548 \uB0A8\uC544 \uC788\uC5B4 \uC148\uC5D0\uC11C \uBE90\uC2B5\uB2C8\uB2E4.",summaryLabel:"\uC313\uC778 \uAE30\uB85D",summaryValue:"{{items}}\uBB38\uD56D \xB7 \uC544\uC9C1 \uBABB \uC7A1\uC740 \uAC83 {{pending}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C",picked:"\u2192 {{what}}",typeClear:"\uB2E4 \uC7A1\uC558\uC5B4\uC694",typePending:"{{total}}\uAC1C \uC911 {{pending}}\uAC1C \uB0A8\uC74C",flat:"\uBCC0\uD654 \uC5C6\uC74C",runs:"{{count}}\uD310",avgDuration:"\uD3C9\uADE0 {{sec}}\uCD08"},A2={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654",scrollRegion:"\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C",rowActionHint:"\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4"},k2={panelTitle:"\uB2E8\uC5B4\uD45C \uCC44\uC810",viewWords:"\uB0B1\uB9D0",viewTables:"\uD45C",colLatest:"\uB9C8\uC9C0\uB9C9",colTrend:"\uBCC0\uD654",unitTime:"\uD68C",summaryLabel:"\uC313\uC778 \uCC44\uC810",summaryValue:"{{times}}\uD68C \xB7 \uB0B1\uB9D0 {{words}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",allClear:"\uC9C0\uB09C\uBC88\uC5D0 \uBAA8\uB450 \uB9DE\uD614\uC2B5\uB2C8\uB2E4.",times:"{{count}}\uD68C",flat:"\uBCC0\uD654 \uC5C6\uC74C",recentLabel:"\uCD5C\uADFC \uCC44\uC810",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C"},N2={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},D2={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},E2={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},S2={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},j2={devNone:"\uBC1C\uB2EC \uC790\uB8CC \uC5C6\uC74C",place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},T2={clearSelection:"\uC120\uD0DD \uD574\uC81C"},M2={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},L2={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},$2={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},R2={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},P2={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},F2={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},I2={main:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",soft:"\uC18C\uD504\uD2B8",sub:"\uC11C\uBE0C \uCEEC\uB7EC",deep:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",softSub:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",warm:"\uC6DC(\uAC15\uC870)",dark:"\uB2E4\uD06C",radial:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",diagonal:"\uB300\uAC01\uC120 \uD328\uD134",dots:"\uB3C4\uD2B8 \uD328\uD134",outline:"\uC544\uC6C3\uB77C\uC778",success:"\uC131\uACF5/\uC644\uB8CC",naver:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",instagram:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4"},O2={common:Af,calendar:kf,passCard:Nf,searchField:Df,rating:Ef,colorPicker:Sf,dropdown:jf,accordion:Tf,header:Mf,nav:Lf,settings:$f,usage:Rf,account:Pf,help:Ff,training:If,trainingSettings:Of,customers:Hf,payment:zf,coupons:Vf,visits:Wf,company:qf,trainingType:Uf,myWordTraining:Gf,myWordTable:Kf,keyWords:Yf,wordTable:Zf,wordSearch:Xf,wordPrint:Jf,topic:Qf,accessLinkManager:e2,login:t2,trainingPlanRun:n2,device:a2,manager:r2,wordPairs:o2,game:s2,footer:i2,landing:l2,date:u2,trainingSetPage:c2,wordTrainingPreview:d2,wordData:p2,textField:m2,segmentedControl:h2,tabs:C2,fileUpload:f2,avatar:g2,myHomework:b2,trainingStatus:y2,store:v2,homework:x2,inquiry:_2,progress:w2,trainingMiss:B2,table:A2,wordScore:k2,topBanner:N2,datePicker:D2,report:E2,tooltip:S2,phonemeProfile:j2,bulkBar:T2,debug:M2,badge:L2,loader:$2,soundCompass:R2,breadcrumb:P2,board:F2,promoBannerBg:I2},H2={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",collapseFor:"Collapse {{name}}",expandFor:"Expand {{name}}",sortFor:"Sort {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",likeCount:"{{count}} likes",selectedOfMax:"{{count}} of {{max}}",downloadCount:"{{count}} downloads",descriptionFor:"About {{name}}",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",playFor:"Play {{name}}",pauseFor:"Pause {{name}}",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",noMatches:"No matching items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error",networkError:"The network connection is unstable. Check your connection and try again."},z2={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yearMonth:"{{month}}/{{year}}",prevMonth:"Previous month",addOnDate:"Add a visit on {{date}}",nextMonth:"Next month",prevWeek:"Previous week",nextWeek:"Next week",legend:{visited:"Visited",scheduled:"Scheduled",noVisit:"No Show"},periodSelect:"Period unit",visitCount:"{{count}} visit(s)",statusCount:"{{count}} {{label}}"},V2={planSuffix:"Plan",labeledPlan:"{{label}} Plan",couponCode:"Pass Code",specialLabel:"Open Special",unitDay:"d",unitYear:"yr",remainingDay:"{{n}}d left",remainingHour:"{{n}}h left",remainingMinute:"{{n}}m left",remainingSecond:"{{n}}s left",expired:"Expired",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},W2={clearAriaLabel:"Clear search"},q2={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},U2={selected:"selected"},G2={placeholder:"Select"},K2={collapse:"Collapse",expand:"Expand"},Y2={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},Z2={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",feedback:"Report a bug",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu",badgeLabel:"{{label}}, {{count}}",badgeInsideLabel:"{{label}}, {{count}} notifications inside"},X2={language:{training:{label:"Training Language",sub:"Language used for training words and speech"}},notifications:{title:"Notifications"},display:{fontSize:{small:"Small",large:"Large"}},cache:{title:"Cache Management",confirmMessage:"Delete cache ({{size}}). Do you want to continue?",delete:"Delete",deleting:"Deleting",cleared:"Cache cleared successfully.",group:{wordData:{label:"Word Data",sub:"Word list and version info"},pairIndex:{label:"Pair Index",sub:"Onset\xB7vowel\xB7coda minimal pair analysis cache"},imageCache:{label:"Image Cache",sub:"Word image existence check results"},trainingRecord:{label:"Training Record",sub:"Daily training progress and streak"}}},button:{save:"Save Settings"},popup:{clear:{confirm:"Reset"},update:{confirm:"Update"},cache:{title:"Delete {{label}}",message:"Delete {{label}} ({{size}}). Do you want to continue?"}},saved:"\u2713 Saved",account:{title:"Account",delete:{sub:"You can restore your account within 30 days of withdrawal."}}},J2={addButton:"Add Subscription",couponButton:"Enter Coupon",active:{infoTitle:"Subscription Info",refund:"Request Refund",startDate:"Start Date",endDate:"End Date",remaining:"Remaining"},pending:{title:"Pending",empty:"No pending subscriptions."},loading:"Loading\u2026",segment:{personal:"Malgwi",org:"Malgwi Manager"},org:{title:"Current Plan",disc:"Subscription plan in use by your organization.",empty:"No organization plan registered.",fallbackTitle:"Organization Plan",startDate:"Start Date",endDate:"End Date",remaining:"Remaining",duration:"Duration"}},Q2={profile:{planSuffix:"",plan:"Plan"},basicInfo:{name:{placeholder:"John Doe"}},security:{title:"Security",password:{label:"Password",currentRequired:"Enter your current password.",newRequired:"Enter a new password.",mismatch:"The new passwords do not match.",changed:"Your password has been changed."},twoFactor:{label:"Two-Factor Authentication",sub:"Strengthen your account security"}}},eg={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},tg={settings:"Settings",start:{title:"Start Word Training",description:"Select a training type below to begin"},difficulty:{tooltip:"The easiest difficulty is 'Random', the hardest is 'Initial Consonant Difference'."},contrast:{label:"Contrast",type:"Contrast Type",count:"Contrast Count",n:"{{n}}"},filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Grade",excludeImageInfo:"Only words with images: keeps only results with a registered word image.",sameStructureInfo:"Only same phoneme structure: keeps only pairs where the correct and wrong answers share the same syllable structure (length, batchim, etc.).",selectSection:"Select",excludeImage:"Only words with images",sameStructure:"Only same phoneme structure"},noQuestions:"No questions available.",countQuestions:"{{n}} questions",countSentences:"{{n}} sentences",comingSoon:"Coming Soon",nextQuestion:"Next",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playAll:"Play All",selectInOrder:"Select the cards in the order you heard.",stop:"Stop",preview:"Preview",previewFor:"Preview {{name}}",stopFor:"Stop {{name}}",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",ttsUnavailable:"Speech playback isn't available on this device.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{pendingDone:"Results are still being calculated, so you can't finish yet.",eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",done:"Done",viewResult:"View Results",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",audioStatus:{idle:"Idle",resolving:"Resolving\u2026",checking_exists:"Checking file\u2026",getting_signed_url:"Getting URL\u2026",downloading:"Downloading\u2026",measuring_duration:"Measuring length\u2026",ready:"Ready",error:"Error",synthesizing:"Preparing the sound\u2026"}},ng={totalCount:" training bundles",sort:{customers:"Customers"},copyLink:"Copy Link",removeLink:"Remove Link",linkRemoved:"Link removed.",linkSaveFirst:"Please save the training bundle first.",linkSaveFirstHint:"You can only create a shared link from a saved training bundle.",linkCopySelect:"Copy blocked \u2014 link selected. Press Ctrl/\u2318+C to copy.",nameRequired:"Please enter a training bundle name.",itemRequired:"Please add at least one training item.",randomAdd:"Random Add",menu:{publish:"Post to Store",duplicate:"Duplicate Training Bundle",edit:"Edit Training Bundle",move:"Move Group",rename:"Rename"},itemCount:"Number of Items",renameGroup:"Rename Group"},ag={totalCount:" customers",loadError:"Failed to load list",basicInfo:{editTooltip:"Edit"},member:{placeholder:"Email or phone",link:"Link",linking:"Linking\u2026"},device:{title:"Hearing Devices",addTooltip:"Add New",addButton:"Add device",listTooltip:"View List",listTitle:" Device List",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",release:"Release",historyTitle:"Hearing device history"},schedule:{title:"Upcoming Visits",addTooltip:"Add Schedule",listTooltip:"View All",empty:"No upcoming visits",registerTitle:" Register Schedule",memoPlaceholder:"Enter a memo for this visit."},visitHistory:{title:"Visit History",addTooltip:"Add Visit",empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",visits:{title:"Visits"},trainingRecord:{title:"Customer Training Records"},status:{trainingSubtitle:"Training Status"},detail:{session:{completedFmt:"Done {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:" visits"},homework:{active:"Active",copied:"Link copied.",copy:"Copy Link",inactive:"Inactive",title:"Homework Progress"},duration:{minSec:"{{m}}m {{s}}s",min:"{{m}}m",sec:"{{s}}s"}},rg={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},og={title:"Coupons",subtitle:"Enter a coupon code or view your coupons",input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply",error:{invalid:"Invalid coupon code.",alreadyUsed:"This coupon has already been used."},success:{applied:'"{{name}}" coupon applied.'},section:{owned:"My Coupons"},status:{used:"Used",available:"Available"}},sg={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},ig={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},lg={title:"Training by Type",subtitle:"Select the training type you want",listenInNoise:{title:"Sentence Listening in Noise",desc:"Train sentence comprehension in various noise environments."},shortStory:{title:"Short Story Listening",desc:"Listen to short stories and understand the content."},longStory:{title:"Long Story Listening",desc:"Focus on listening to long stories and grasp the content."},orderingSentence:{title:"Sentence Ordering",desc:"Arrange heard sentences in the correct order."},SAME_SOUND_PICK:{label:"Listen & Pick Same Sound",sub:"Pick the word card that matches what you heard."},SAME_OR_DIFF:{label:"Same or Different?",sub:"Decide whether the two sounds are the same or different."},HEAR_AND_PICK_SAME:{label:"Hear & Match Word",sub:"Pick the word card that matches the sound you heard."},HEAR_AND_PICK_INCLUDED:{label:"Find Word Containing Sound",sub:"Pick the word card that contains the syllable you heard."},STARTS_WITH_SAME_SOUND:{label:"Find Word Starting with Same Sound",sub:"Pick a word that starts with the same sound as what you heard."},LISTEN_AND_REMEMBER_ORDER:{label:"Listen & Recall Order",sub:"Select the cards in the order you heard the three words."},MERGE_2_SYLLABLES:{label:"Combine 2 Syllables",sub:"What word do two syllables make?"},MERGE_3_SYLLABLES:{label:"Combine 3 Syllables",sub:"What word do three syllables make?"},MERGE_2_PHONEMES:{label:"Combine 2 Phonemes",sub:"What sound do two phonemes make?"},MERGE_3_PHONEMES:{label:"Combine 3 Phonemes",sub:"What sound do three phonemes make?"},DROP_1_FROM_2SYLL:{label:"Drop 1 Syllable from 2-Syllable",sub:"What sound remains when you remove a syllable from a 2-syllable word?"},DROP_1_FROM_3SYLL:{label:"Drop 1 Syllable from 3-Syllable",sub:"What sound remains when you remove a syllable from a 3-syllable word?"},DROP_PART_FROM_COMPOUND:{label:"Drop Part of Compound Word",sub:"What word remains when you remove part of a compound word?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"Drop Final Consonant",sub:"What sound remains when you remove the final consonant?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"Drop Consonant",sub:"What sound remains when you remove the consonant?"},CHANGE_1_SYLL_IN_2SYLL:{label:"Change 1 Syllable (2-Syllable)",sub:"Change one syllable in a 2-syllable word to make a new word."},CHANGE_1_SYLL_IN_3SYLL:{label:"Change 1 Syllable (3-Syllable)",sub:"Change one syllable in a 3-syllable word to make a new word."},CHANGE_1_PHONEME_IN_1SYLL:{label:"Change 1 Phoneme (1-Syllable)",sub:"Change one phoneme in a 1-syllable word to make a new sound."},CHANGE_1_PHONEME_IN_2SYLL:{label:"Change 1 Phoneme (2-Syllable)",sub:"Change one phoneme in a 2-syllable word to make a new word."}},ug={comingSoon:"Word training is coming soon."},cg={colName:"Table Name",open:"Open",countSuffix:" tables",addCard:"Add Word Table Card",cardsEmpty:"No word table cards created yet.",menu:{publishStore:"Post to Training Store",unpublishStore:"Remove from Training Store"},newBadge:"Newly created",tab:{cards:"Word Table Cards",tables:"Word Tables"},publishedBadge:"Published",sharedBadge:"Shared"},dg={title:"Key Words",empty:"No key words available."},pg={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",topInfo:"Header",bottomInfo:"Footer",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete {{name}}",viewLabel:"View as",sortLabel:"Sort by",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},publisherFilter:"Show only tables by {{name}}",groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",markName:{o:"Correct",triangle:"Partial",x:"Incorrect"},button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse they appear when you hover the cell; with a keyboard, when focus reaches it.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"},info:{grade:"Grade: {{n}}",syllables:"Syllables: {{n}}",pos:"Part of speech: {{v}}",wordType:"Type: {{v}}"},pos:{noun:"Noun",verb:"Verb",adjective:"Adjective",adverb:"Adverb",numeral:"Numeral",determiner:"Determiner",interjection:"Interjection",particle:"Particle",affix:"Affix",dependentNoun:"Dependent noun",pronoun:"Pronoun",auxVerb:"Auxiliary verb",auxAdjective:"Auxiliary adjective"},reorder:{moved:"Moved to position {{n}} of {{total}}",handle:"Reorder {{word}} (Alt + arrow keys)",hint:"Alt + \u2190 \u2192 to reorder"}},mg={editBanner:{message:"Saving will update the word table you're editing."},filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193",original:"Original order"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},hg={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},Cg={title:"By Topic",subtitle:"Select a topic to start listening training",noiseTitle:"Sentence Listening in Noise",shortStoryTitle:"Short Story Listening",FOOD:"Food",HLTH:"Health",WETH:"Weather",PRSN:"People",KRCT:"Korean Culture",STRY:"Stories",LOCA:"Locations",SOAR:"Society & Arts",NTSC:"Nature & Science",SPRT:"Sports",sub:{TRKRFD:"Traditional Korean Food",MDKRFD:"Modern Korean Food",WRLDFD:"World Cuisine",MTRFRT:"Ingredients & Fruits",GEFDKL:"Food Facts",HTETHB:"Healthy Eating",DISILL:"Diseases",EXCISE:"Exercise",GEHTKL:"Health Facts",GESSKL:"Seasons",SNWRAN:"Snow & Rain",WTHFCT:"Weather Forecast",GEWTKL:"Weather Facts",JODYPS:"Joseon Dynasty",MDKRPS:"Modern Korea",THKDPS:"Three Kingdoms",WRLART:"World Artists",WRLPSN:"World Figures",KRLANG:"Korean Language",TRPLCT:"Traditional Games",HERITG:"Heritage",EVTFES:"Events & Festivals",GECTKL:"General Knowledge",FRYTAL:"Fairy Tales",AMZING:"Amazing Stories",DAYSTR:"Everyday Stories",KRLDMK:"Korean Landmarks",SELNMK:"Seoul Landmarks",WRDTRB:"World Travel",NAVIGT:"Navigation",KRSOCI:"Korea",ECONEW:"Economy & News",GENART:"Arts",GELFKL:"Life Tips",ANIMAL:"Animals",PLANTS:"Plants",ETHPLT:"Earth",TOLELC:"Tools & Electronics",GESCKL:"Science Facts",INVDSP:"Individual Sports",MARART:"Martial Arts",TEAMSP:"Team Sports",FOOTBL:"Soccer",GESPKL:"Sports Facts"}},fg={maxUses:"Max uses (leave blank for unlimited)",redirect:"Redirect URL (leave blank for app home)",creating:"Creating\u2026",create:"Create link",created:"\u2713 Link created",copied:"Copied!",copy:"Copy",loading:"Loading\u2026",empty:"No links created yet.",uses:"Used {{count}} times",expiresAt:"Expires: {{date}}",createdAt:"Created: {{date}}",confirmDelete:"Delete this link?",deactivate:"Deactivate",delete:"Delete",status:{active:"Active",expired:"Expired",inactive:"Inactive"}},gg={passwordPlaceholder:"Enter password"},bg={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",validationError:{brandAndProduct:"Please enter brand and product name."},addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove",type:{hearingAid:"Hearing Aid",cochlearImplant:"Cochlear Implant"}},yg={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",daily:"Daily",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"},subscriptionStatus:{active:"{{pct}}% Active",expired:"{{pct}}% Expired",unused:"{{pct}}% Unused"}},vg={editBanner:{message:"Saving will update the contrast pair table you're editing."},phonemeSelect:{title:"Phoneme Selection",vs:"vs"},caution:"Caution",mode:{include:"Phoneme Include",pick:"Phoneme Contrast",contrast:"Specify Contrast",infoTitle:"Contrast Mode",infoInclude:"Include \u2014 finds words containing all selected phonemes, plus their minimal pair.",infoPick:"Contrast \u2014 matches only if the selected phoneme is the actual point of difference in the pair.",infoContrast:"Specify Contrast \u2014 directly choose phonemes for the base word and the contrasting word to find pairs."},count:"{{n}}",countLabel:"Number of phonemes",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:"Reflects the National Institute of Korean Language's basic vocabulary grade.",selectLabel:"Select",onlyHasImage:"Only words with images",onlySameStructure:"Only same phoneme structure"},searchLabel:{error:"Failed to load data",loading:"Loading\u2026"},confirmMessage:"The word table with {{count}} selected {{unit}} will be lost.",resetOptions:"Reset Options",phonemeContrast:"Contrast Syllable {{n}}",infoNotes:["The preview character is an example of the selected phoneme combination. The actual search covers all words containing the phoneme.","Initial consonant '\u3147' cannot be selected. \u3147 at the start of a word is effectively silent.","If only onset and coda are selected, the vowel is automatically displayed as '\u314F'.","Increasing the phoneme count searches for minimal pairs between each phoneme."]},xg={sentenceTyping:{roundCount:"{{rounds}} rounds \xB7 {{timeLimit}}s each"},wordDefense:{me:"Me"},dictation:{title:"Dictation",desc:"Practice writing down exactly what you hear.",comingSoon:"Coming soon: audio playback, input field, answer comparison"},result:{heading:"Level {{number}} Answer",retry:"Try Again"},common:{accuracy:"{{pct}}% accuracy"},soundMatch:{title:"Sound Match",desc:"Quickly match words or sentences that share the same sound.",comingSoon:"Coming soon: play button, timer, score tracking"},orderSequence:{title:"Sentence Ordering",desc:"Arrange scattered sentence fragments in the correct order.",comingSoon:"Coming soon: sentence sets, ordering interface"},speedListen:{title:"Speed Listen",desc:"A challenge game to count the number of words in a sentence within a time limit.",comingSoon:"Coming soon: time limit, scoreboard"},noiseChallenge:{title:"Noise Challenge",desc:"Practice distinguishing sentences amid background noise.",comingSoon:"Coming soon: various noise levels, score tracking"},fastListen:{title:"Fast Listen",desc:"Listen to short sentences at speed and select the key word.",comingSoon:"Coming soon: speed by difficulty, timer"},shadowing:{title:"Shadowing",desc:"Practice pronunciation and intonation by repeating sentences aloud.",comingSoon:"Coming soon: playback, recording, comparison feedback"},phonemeHunt:{title:"Phoneme Hunt",desc:"Find words that contain a specific phoneme (sound).",comingSoon:"Coming soon: phoneme filter, hint feature"}},_g={lead:`IHAB builds trust
850
850
  through sound
851
- and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},xg={trainingPhone:{topic:"Gardening",prev:"Prev",next:"Next",speed:"Speed 3",noiseType:"Crowd noise",settings:"Settings",start:{caption:"Press the play (\u25B6) button below and listen carefully. After listening, check the sentence."},feedback:{caption:"Plant the well-grown seedlings in the garden bed and cover them carefully with plastic film."},done:{heardWell:"Heard clearly",listenAgain:"Listen again"}}},_g={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},wg={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},Bg={answer:"Answer",distractor:"Distractor"},Ag={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},kg={clearAriaLabel:"Clear input"},Ng={ariaLabel:"Select tab"},Dg={ariaLabel:"Tabs"},Eg={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Sg={ariaLabel:"User avatar"},jg={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"},reason:{notLoggedIn:"Login required."},list:{title:"Received Homework"},status:{expired:"Expired",done:"Done {{count}}\xD7 \xB7 {{date}}",notDone:"Not done"}},Tg={weekly:{title:"Weekly Training",daily:"Daily Listening",crossword:"Crossword"},homework:{title:"Homework Progress",totalRate:"Overall rate",count:"Total",done:"Done",remaining:"Remaining"},today:{tooltipTotal:"Total",tooltipDone:"Done"},filter:{countSuffix:" sessions"},time:{countLabel:"{{n}} sessions",empty:"No training records"},daily:{title:"Today's Listening Record",empty:"No completed sessions"},crossword:{title:"Crossword Quiz",empty:"No completed levels"},visit:{title:"Linked Visit Records"},detail:"Details",trainingType:{LISTEN_IN_NOISE:"Sentence in Noise",SHORT_STORY:"Short Story",LONG_STORY:"Long Story",ORDERING_SENTENCE:"Sentence Ordering"}},Mg={import:"Add to my trainings",publisher:"Publisher",time:{justNow:"just now",minutesAgo:"{{n}}m ago",hoursAgo:"{{n}}h ago",daysAgo:"{{n}}d ago",weeksAgo:"{{n}}w ago",monthsAgo:"{{n}}mo ago",yearsAgo:"{{n}}y ago"},badge:{shared:"Store"},publish:{descPlaceholder:"One-line description for the Training Store (optional)"}},Lg={manage:{unit:"item(s)"}},$g={cancelLabel:"Cancel"},Rg={subtitle:"Select a topic to start listening practice."},Pg={steps:"Step {{current}} of {{total}}"},Fg={panelTitle:"Training misses",viewItems:"Items",viewTypes:"Types",colPending:"Left",colTrend:"Change",colRuns:"Runs",unitItem:" items",skippedOnly:"{{n}} older record(s) were excluded \u2014 they do not say what was answered.",summaryLabel:"Recorded",summaryValue:"{{items}} items \xB7 {{pending}} still missed",nextLabel:"Next to work on",nextCount:"{{count}}",nextCountCapped:"{{shown}} of {{total}}",picked:"\u2192 {{what}}",typeClear:"All caught up",typePending:"{{pending}} of {{total}} left",flat:"no change",runs:"{{count}} run(s)",avgDuration:"{{sec}}s avg"},Ig={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},Og={panelTitle:"Word table scores",viewWords:"Words",viewTables:"Tables",colLatest:"When",colTrend:"Change",unitTime:" times",summaryLabel:"Scored",summaryValue:"{{times}} times \xB7 {{words}} words",nextLabel:"Focus next",nextCount:"{{count}}",allClear:"All correct last time.",times:"{{count}}x",flat:"no change",recentLabel:"Recent scorings",nextCountCapped:"{{shown}} of {{total}}"},Hg={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},zg={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},Vg={previewRegion:"Report preview \u2014 scrollable sideways"},Wg={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},qg={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Ug={clearSelection:"Clear selection"},Gg={showResult:"Show {{type}} result"},Kg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Yg={loading:"Loading"},Zg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},Xg={ariaLabel:"Breadcrumb"},Jg={empty:"No items yet."},Qg={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},eb={common:I2,calendar:O2,passCard:H2,searchField:z2,rating:V2,colorPicker:W2,dropdown:q2,accordion:U2,header:G2,nav:K2,settings:Y2,usage:Z2,account:X2,help:J2,training:Q2,trainingSettings:eg,customers:tg,payment:ng,coupons:ag,visits:rg,company:og,trainingType:sg,myWordTraining:ig,myWordTable:lg,keyWords:ug,wordTable:cg,wordSearch:dg,wordPrint:pg,topic:mg,accessLinkManager:hg,login:Cg,device:fg,manager:gg,wordPairs:bg,game:yg,footer:vg,landing:xg,date:_g,trainingSetPage:wg,wordTrainingPreview:Bg,wordData:Ag,textField:kg,segmentedControl:Ng,tabs:Dg,fileUpload:Eg,avatar:Sg,myHomework:jg,trainingStatus:Tg,store:Mg,homework:Lg,inquiry:$g,trainingPlanRun:Rg,progress:Pg,trainingMiss:Fg,table:Ig,wordScore:Og,topBanner:Hg,datePicker:zg,report:Vg,tooltip:Wg,phonemeProfile:qg,bulkBar:Ug,debug:Gg,badge:Kg,loader:Yg,soundCompass:Zg,breadcrumb:Xg,board:Jg,promoBannerBg:Qg};const tb=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],eo="ko",nb="ihab_display_language";function Di(){if(typeof window>"u")return eo;try{const e=localStorage.getItem(nb);if(e&&tb.some(t=>t.code===e))return e}catch{}return eo}function Ei(e){try{document.documentElement.lang=e}catch{}}Tt.on("languageChanged",Ei),Ei(Di()),Tt.use(_e.initReactI18next).init({resources:{ko:{translation:F2},en:{translation:eb}},lng:Di(),fallbackLng:eo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function _t(e,t,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return t(s,e),()=>a(s)},[e,t,a]),r}const Ba={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},to=new WeakMap;function no(e){if(e)return to.get(e)}function Ot(e,t){e&&(e.style.setProperty(Ba.title,t.title),e.style.setProperty(Ba.description,t.description),to.set(e,t))}function Ht(e){e&&(e.style.removeProperty(Ba.title),e.style.removeProperty(Ba.description),to.delete(e))}const Si={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function ji(){const e=_t(Si,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Ti={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Mi(){const e=_t(Ti,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Li={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function $i(){const e=_t(Li,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const Ri={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Pi(){const e=_t(Ri,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Fi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ii(){const e=_t(Fi,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Oi={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Hi(){const e=_t(Oi,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const zi={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Vi(){const e=_t(zi,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Wi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function qi(){const e=_t(Wi,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Ui={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Gi(){const e=_t(Ui,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Ki={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Yi(){const e=_t(Ki,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Zi={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Xi(){const e=_t(Zi,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:n.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const Ji={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Qi(){const e=_t(Ji,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const el={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function tl(){const e=_t(el,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const nl={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function al(){const e=_t(nl,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Zt=(e,t,a)=>({key:e,get label(){return Tt.t(`promoBannerBg.${e}`,t)},textTone:a}),ab=[Zt("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Zt("soft","\uC18C\uD504\uD2B8","dark"),Zt("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),Zt("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Zt("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),Zt("warm","\uC6DC(\uAC15\uC870)","dark"),Zt("dark","\uB2E4\uD06C","light"),Zt("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Zt("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),Zt("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),Zt("outline","\uC544\uC6C3\uB77C\uC778","dark"),Zt("success","\uC131\uACF5/\uC644\uB8CC","light"),Zt("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),Zt("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],rl={main:ji,soft:Mi,sub:$i,deep:Pi,softSub:Ii,warm:Hi,dark:Vi,radial:qi,diagonal:Gi,dots:Yi,outline:Xi,success:Qi,naver:tl,instagram:al};function ol({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:i=1.4}={}){const l=w=>Math.max(a,Math.min(r,Number(w))),u=w=>{try{const g=localStorage.getItem(w),B=g?Number(g):1;return Number.isFinite(B)?l(B):l(1)}catch{return l(1)}},[c,d]=o.useState(()=>u(e)),[m,p]=o.useState(e);m!==e&&(p(e),d(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const f=w=>{d(typeof w=="function"?g=>l(w(g)):l(w))},y=()=>f(w=>+(w+s).toFixed(6)),v=()=>f(w=>+(w-s).toFixed(6)),C=c<r-Number.EPSILON,b=c>a+Number.EPSILON,_=Math.round(t*c),h=Math.round(_*i);return{scale:c,setScale:f,increase:y,decrease:v,canIncrease:C,canDecrease:b,fontSize:_,lineHeight:h}}function sl(e,t){const a=wa(t);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const ao=" \xB7 ",il=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(ao)?e.split(ao).pop()??e:e})(),rb=o.createContext(!1),qn=[];let ll=null;function ob(e){const t=o.useContext(rb);o.useEffect(()=>{if(t||typeof e!="string"||!e)return;qn.length===0&&(ll=document.title);const a={text:il?`${e}${ao}${il}`:e};return qn.push(a),document.title=a.text,()=>{const r=qn.lastIndexOf(a);r>=0&&qn.splice(r,1),document.title=qn.length?qn[qn.length-1].text:ll??document.title}},[e,t])}const ul=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}],sb=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function oa(e,t){return sb().compare(e,t)}const Xa=new Map;function ib(e){const t=Xa.get(e);if(t)return t;const a=[],r=/-?\d+(?:\.\d+)?/g;let s=0;for(let i=r.exec(e);i;i=r.exec(e)){let l=i.index,u=i[0];u[0]==="-"&&l>0&&!/\s/.test(e[l-1])&&(l+=1,u=u.slice(1)),l>s&&a.push(e.slice(s,l)),a.push(Number(u)),s=i.index+i[0].length}return s<e.length&&a.push(e.slice(s)),Xa.size>5e3&&Xa.clear(),Xa.set(e,a),a}function lb(e){if(!/^[\d\s-]+$/.test(e))return null;const t=e.replace(/\D/g,"");return t.length<9||t.length>11?null:t[0]==="0"||t[0]==="1"&&e!==t?t:null}function ub(e,t){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),s=a(t);if(r===s)return 0;const i=(d,m)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const p=lb(m);return p!==null?[p]:ib(m)},l=i(e,r),u=i(t,s),c=Math.min(l.length,u.length);for(let d=0;d<c;d++){const m=l[d],p=u[d];if(typeof m=="number"&&typeof p=="number"){if(m!==p)return m-p;continue}if(typeof m=="number")return-1;if(typeof p=="number")return 1;const f=oa(m,p);if(f!==0)return f}return l.length!==u.length?l.length-u.length:oa(r,s)}const cl=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function ro(e,t,a){const r=cl(e),s=cl(t);if(r||s)return r===s?0:r?1:-1;const i=ub(e,t);return a?i:-i}function cb(e,t,a){const{t:r}=_e.useTranslation(),[s,i]=o.useState(()=>{const v=a?.initialPageSize;return v&&ul.some(C=>C.value===v)?v:"25"}),[l,u]=o.useState(1),[c,d]=o.useState(t);Object.is(c,t)||(d(t),l!==1&&u(1));const m=o.useMemo(()=>ul.map(v=>({...v,label:r("visits.showN",{n:v.value})})),[r]),p=o.useCallback(v=>{i(v),u(1)},[]),f=Math.max(1,Math.ceil(e.length/Number(s)));(l>f||l<1||!Number.isFinite(l))&&u(Math.min(Math.max(1,Number.isFinite(l)?l:1),f));const y=Math.min(Math.max(1,Number.isFinite(l)?l:1),f);return{pageRows:o.useMemo(()=>e.slice((y-1)*Number(s),y*Number(s)),[e,y,s]),pageSizeProps:{options:m,value:s,onChange:p},paginationProps:{page:y,total:f,onChange:u},setPage:u}}function db(e){const[t,a]=o.useState(null),r=o.useRef(t),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const i=o.useCallback(c=>{const d=r.current,m=d?.key===c?{key:c,asc:!d.asc}:{key:c,asc:!0};r.current=m,a(m),s.current?.(m)},[]),l=o.useCallback((c,d)=>({label:c,sortDir:t?.key===d?t.asc?"asc":"desc":null,onClick:()=>i(d)}),[t,i]),u=o.useCallback((c,d)=>{if(!t)return c;const{key:m,asc:p}=t;return[...c].sort((f,y)=>ro(d(f,m),d(y,m),p))},[t]);return{\uC815\uB82C:t,\uCE78:l,sortRows:u}}const cn="\uC804\uCCB4",pb=new Map;try{Tt.store?.on?.("added",()=>pb.clear())}catch{}Object.fromEntries(Object.entries(xC).map(([e,{nucleus:t}])=>[e,t]));const mb={labial:e=>e("common.phonetics.place.labial",{defaultValue:"\uC591\uC21C\uC74C"}),alveolar:e=>e("common.phonetics.place.alveolar",{defaultValue:"\uCE58\uC870\uC74C"}),palatal:e=>e("common.phonetics.place.palatal",{defaultValue:"\uACBD\uAD6C\uAC1C\uC74C"}),velar:e=>e("common.phonetics.place.velar",{defaultValue:"\uC5F0\uAD6C\uAC1C\uC74C"}),glottal:e=>e("common.phonetics.place.glottal",{defaultValue:"\uC131\uBB38\uC74C"})},hb={frontHigh:e=>e("common.phonetics.vowel.frontHigh",{defaultValue:"\uC804\uC124 \uACE0\uBAA8\uC74C"}),backHighUnrounded:e=>e("common.phonetics.vowel.backHighUnrounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C"}),backHighRounded:e=>e("common.phonetics.vowel.backHighRounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"}),frontMid:e=>e("common.phonetics.vowel.frontMid",{defaultValue:"\uC804\uC124 \uC911\uBAA8\uC74C"}),backMidUnrounded:e=>e("common.phonetics.vowel.backMidUnrounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"}),backMidRounded:e=>e("common.phonetics.vowel.backMidRounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"}),low:e=>e("common.phonetics.vowel.low",{defaultValue:"\uC800\uBAA8\uC74C"})},Cb={j:e=>e("common.phonetics.glide.j",{defaultValue:"j\uD65C\uC74C"}),w:e=>e("common.phonetics.glide.w",{defaultValue:"w\uD65C\uC74C"}),velar:e=>e("common.phonetics.glide.velar",{defaultValue:"\u0270\uD65C\uC74C"})};function fb(e,t){if("place"in t)return mb[t.place](e);const a=hb[t.vowel](e);return t.glide?`${a} \xB7 ${Cb[t.glide](e)}`:a}const gb=(e,{defaultValue:t})=>t,dl=(e,t)=>({jamos:e,phonetic:t,tooltip:fb(gb,t)}),xn=(e,t)=>t.map(a=>dl([a],{place:e})),Mt=(e,t,a)=>dl([...e],a?{vowel:t,glide:a}:{vowel:t}),oo={cho:[xn("labial",["\u3142","\u3143","\u314D","\u3141"]),xn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),xn("alveolar",["\u3145","\u3146"]),xn("palatal",["\u3148","\u3149","\u314A"]),xn("velar",["\u3131","\u3132","\u314B"]),xn("glottal",["\u314E"])],jung:[[Mt("\u3163","frontHigh"),Mt("\u315F","frontHigh","w"),Mt("\u3162","frontHigh","velar")],[Mt("\u3161","backHighUnrounded")],[Mt("\u315C","backHighRounded"),Mt("\u3160","backHighRounded","j")],[Mt("\u3154\u3150","frontMid"),Mt("\u3156\u3152","frontMid","j"),Mt("\u3159\u315A\u315E","frontMid","w")],[Mt("\u3153","backMidUnrounded"),Mt("\u3155","backMidUnrounded","j"),Mt("\u315D","backMidUnrounded","w")],[Mt("\u3157","backMidRounded"),Mt("\u315B","backMidRounded","j")],[Mt("\u314F","low"),Mt("\u3151","low","j"),Mt("\u3158","low","w")]],jong:[xn("labial",["\u3142","\u3141"]),xn("alveolar",["\u3137","\u3134","\u3139"]),xn("velar",["\u3131","\u3147"])]},bb=e=>e===yb?[]:Array.from(e),yb="__NO_CODA__",so=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),pl={cho:so(oo.cho),jung:so(oo.jung),jong:so(oo.jong)};pl.jung.flat().forEach(({v:e})=>{for(const t of bb(e));}),new Set(pl.cho.flat().map(e=>e.v));function vb(e,t=!0){const a=wa(e);o.useEffect(()=>{if(t)return Vn(()=>{a.current?.()})},[t,a])}function Aa(){const[e,t]=o.useState(null),a=o.useCallback(i=>t(i.getBoundingClientRect()),[]),r=o.useCallback(()=>t(null),[]),s=o.useCallback(i=>{const l=i.getBoundingClientRect();t(u=>u?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function xb(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),i=o.useRef(null);o.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const l=o.useCallback((c,d)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(c),s(d)},e)},[e]),u=o.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),s(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:l,close:u}}function ml(e="warning"){const[t,a]=o.useState(""),[r,s]=o.useState(e),[i,l]=o.useState(0),u=o.useCallback((p,f)=>{s(f),a(p),l(y=>y+1)},[]),c=o.useCallback(p=>u(p,"warning"),[u]),d=o.useCallback(p=>u(p,"normal"),[u]),m=o.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:u,showWarning:c,showNormal:d,clearToast:m}}function ka(e){let t=0;if(e&&typeof window<"u"&&typeof window.getComputedStyle=="function")for(let a=e;a&&a!==document.body&&a!==document.documentElement;a=a.parentElement){const r=parseInt(window.getComputedStyle(a).zIndex,10);!Number.isNaN(r)&&r>t&&(t=r)}return t>0?`max(var(--z-menu, 1500), ${t+1})`:"var(--z-menu, 1500)"}function Na({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,i]=o.useState(!1),[l,u]=o.useState({position:"fixed"}),c=o.useRef(null),d=o.useRef(null),m=o.useCallback(()=>{c.current&&u(e(c.current.getBoundingClientRect(),c.current))},[e]);o.useLayoutEffect(()=>{s&&m()},[s,m]),o.useEffect(()=>{if(!s)return;let y=d.current?.offsetHeight??0;y>0&&m();let v=0,C=null;typeof ResizeObserver<"u"&&d.current&&(C=new ResizeObserver(()=>{const B=d.current?.offsetHeight??0;if(B!==y){if(y=B,++v>4){C?.disconnect(),C=null;return}m()}}),C.observe(d.current));const b=B=>{const x=B.target;r&&x.closest?.(r)||c.current?.contains(x)||d.current?.contains(x)||i(!1)};document.addEventListener("mousedown",b),document.addEventListener("pointerdown",b);const _=B=>{d.current?.contains(B.target)||(t==="reposition"?m():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",_,!0);const h=()=>{a==="reposition"?m():a==="close"&&i(!1)};let w=null;const g=()=>{h(),w&&clearTimeout(w),w=setTimeout(()=>{w=null,a==="reposition"&&m()},250)};return a!=="ignore"&&(window.addEventListener("resize",h),window.addEventListener("orientationchange",g)),()=>{C?.disconnect(),document.removeEventListener("mousedown",b),document.removeEventListener("pointerdown",b),t!=="ignore"&&window.removeEventListener("scroll",_,!0),a!=="ignore"&&(window.removeEventListener("resize",h),window.removeEventListener("orientationchange",g)),w&&clearTimeout(w)}},[s,m,t,a,r]),o.useEffect(()=>{if(s)return Vn(()=>i(!1))},[s]);const p=o.useCallback(()=>i(y=>!y),[]),f=o.useCallback(()=>i(!1),[]);return{open:s,setOpen:i,toggle:p,close:f,style:l,triggerRef:c,menuRef:d}}function _b(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:i=1100,feedbackMs:l=1500}={}){const[u,c]=o.useState([]),[d,m]=o.useState(0),[p,f]=o.useState("idle"),[y,v]=o.useState(null),[C,b]=o.useState([]),[_,h]=o.useState(null),[w,g]=o.useState(0),B=o.useRef(0),x=o.useCallback(R=>{B.current=typeof R=="function"?R(B.current):R,g(B.current)},[]),N=o.useRef(r),k=o.useRef(s);o.useEffect(()=>{N.current=r,k.current=s},[r,s]);const A=o.useRef([]),S=()=>{A.current.forEach(clearTimeout),A.current=[]},E=(R,W)=>{A.current.push(setTimeout(W,R))};o.useEffect(()=>()=>S(),[]);const H=u[d]?.id??null,$=o.useRef(null),K=o.useCallback(()=>{S(),f("playing"),b([]),h(null),x(0);let R=0;e.forEach((W,D)=>{E(R,()=>{m(D),v(W.id),N.current?.(W)}),E(R+1e3,()=>{v(null),b(P=>[...P,W.id])}),R+=1300}),E(R,()=>{f("done"),k.current?.({score:0,total:e.length})})},[e,x]),L=o.useCallback((R,W)=>{if(W>=R.length){f("done"),k.current?.({score:B.current,total:R.length});return}$.current=null,m(W),h(null),f("playing"),v(R[W].id),N.current?.(R[W]),E(i,()=>{v(null),f("waiting")})},[i]),j=o.useCallback(()=>{S();const R=xa(e);c(R),x(0),b([]),L(R,0)},[e,L,x]),O=o.useCallback(()=>{t==="playback"?(c(e),K()):j()},[t,e,K,j]),U=o.useCallback(()=>{S(),f("idle"),v(null),b([]),h(null),m(0),x(0),c([])},[x]),te=e.map(R=>R.id).join("|");o.useEffect(()=>(a?O():U(),()=>S()),[t,te,a]);const z=o.useCallback(R=>{p!=="waiting"||t==="playback"||$.current===d||($.current=d,h(R),R===u[d]?.id&&x(W=>W+1),t==="exam"?(f("playing"),E(400,()=>L(u,d+1))):(f("feedback"),E(l,()=>L(u,d+1))))},[p,t,u,d,L,l,x]),q=t==="playback"?e.length:u.length;return{bind:{activeSpeakerId:y,playedIds:C,selectedId:_,answerId:H,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:z},index:d,total:q,score:w,phase:p,done:p==="done",start:O,reset:U}}function wb({title:e,description:t,actionLabel:a,onAction:r,bg:s,color:i,size:l="medium",actionVariant:u,titleColor:c,descriptionColor:d,className:m=""}){const p=s??i??"main",f=o.useRef(null),[y,v]=o.useState("main"),C=rn("(max-width: 767px)"),b=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const w=f.current;if(!w)return;const g=no(w),B=(x,N,k)=>{if(k!==void 0)w.style.setProperty(N,k),b.current[x]=!0;else if(b.current[x]){const A=g?.[x];A?w.style.setProperty(N,A):w.style.removeProperty(N),b.current[x]=!1}};B("title","--promo-banner-bg-title",c),B("description","--promo-banner-bg-description",d)},[c,d,p]),o.useLayoutEffect(()=>{const w=f.current;if(!w)return;const g=no(w);v(g?.actionVariant??"main")},[p]);const _=Ae("promo-banner",`promo-banner--${l}`,m),h=rl[p];return n.jsxs("div",{ref:f,className:_,role:"note",children:[n.jsx(h,{}),n.jsxs("div",{className:"promo-banner__text",children:[n.jsx("span",{className:`promo-banner__title ${l==="small"?"body-2":"h2"}`,children:e}),t&&n.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&n.jsx(me,{htmlType:"button",size:40,variant:u??y,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...C?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function Bb({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":s}){const{t:i}=_e.useTranslation(),l=s??i("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),c=u.length,[d,m]=o.useState(0),[p,f]=o.useState(!1),[y,v]=o.useState(!1),[C,b]=o.useState(!1),_=o.useRef(null),h=o.useRef(null),w=o.useRef(null),g=Xr(),B=p||y||C,x=c>0?Math.min(d,c-1):0;o.useEffect(()=>{if(c<2||t<=0||B||g)return;const k=window.setInterval(()=>m(A=>(Math.min(A,c-1)+1)%c),t);return()=>window.clearInterval(k)},[c,t,B,g]);const N=k=>{h.current!=null&&window.clearTimeout(h.current),h.current=window.setTimeout(()=>{h.current=null,b(!1)},k)};return o.useEffect(()=>()=>{h.current!=null&&window.clearTimeout(h.current)},[]),o.useEffect(()=>{if(!C)return;const k=A=>{A.pointerType==="touch"&&(w.current&&w.current.contains(A.target)||(h.current!=null&&(window.clearTimeout(h.current),h.current=null),b(!1)))};return document.addEventListener("pointerdown",k,!0),()=>document.removeEventListener("pointerdown",k,!0)},[C]),c===0?null:n.jsxs("section",{ref:w,className:Ae("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onPointerEnter:k=>{_.current=k.pointerType},onPointerDown:k=>{_.current=k.pointerType,k.pointerType==="touch"&&(h.current!=null&&(window.clearTimeout(h.current),h.current=null),b(!0))},onPointerUp:k=>{k.pointerType==="touch"&&N(5e3)},onPointerCancel:k=>{k.pointerType==="touch"&&N(5e3)},onMouseEnter:()=>{_.current!=="touch"&&f(!0)},onMouseLeave:()=>f(!1),onFocus:k=>{let A=!0;try{A=k.target.matches(":focus-visible")}catch{A=!0}v(A)},onBlur:k=>{k.currentTarget.contains(k.relatedTarget)||v(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${x*100}%)`},children:u.map((k,A)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":A!==x,...A!==x?{inert:!0}:{},children:k},A))})}),c>1&&n.jsx("div",{className:`top-banner__dots${(a?.[x]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((k,A)=>n.jsx("button",{type:"button",className:`top-banner__dot${A===x?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:c,index:A+1,defaultValue:`${c}\uAC1C \uC911 ${A+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":A===x,onClick:()=>m(A)},A))})]})}function Ab({title:e,body:t,open:a=!1,onToggle:r,avatar:s,titleClassName:i="body-2",bodyClassName:l="body-2",className:u=""}){const{t:c}=_e.useTranslation();return n.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.trim(),role:"listitem",children:[n.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const m=d.currentTarget.closest('[role="list"]');if(!m)return;const p=Array.from(m.querySelectorAll("[data-accordion-header]")),f=p.indexOf(d.currentTarget);(d.key==="ArrowDown"?p[f+1]:p[f-1])?.focus()}},children:[s&&n.jsx("div",{className:"accordion-item__avatar",children:s}),n.jsx("div",{className:`accordion-item__title ${i}`,children:e}),n.jsx("div",{className:"accordion-item__chevron",children:n.jsx(tt,{icon:a?"chevron-up":"chevron-down",label:a?c("accordion.collapse","\uC811\uAE30"):c("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&n.jsx("div",{className:`accordion-item__body ${l}`,children:typeof t=="string"?n.jsx("p",{children:t}):t})]})}function kb({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:s}){const[i,l]=o.useState({index:t}),u=(c,d)=>i.id!=null&&c.id!=null?c.id===i.id:i.id==null&&d===i.index;return n.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>n.jsx(Ab,{title:c.title,body:c.body,avatar:c.avatar,open:u(c,d),onToggle:()=>l(u(c,d)?{index:-1}:{index:d,id:c.id}),bodyClassName:s},c.id??d))})}function Nb(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:n.jsx("polyline",{points:"2,6 5,9 10,3"})})}function Db(){return n.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[n.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),n.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function Eb(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:n.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function wt(e){const{t}=_e.useTranslation(),{type:a="bar",size:r,className:s="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:B,number:x,position:N="top-right",onClick:k,animate:A=!1}=e,S=B??"check",E=x!==void 0?"number":S,H=typeof r=="number"?r:32,$=Ae("circle-badge",`circle-badge--${E}`,`circle-badge--${N}`,`circle-badge--${H}`,A?"circle-badge--animate":"",k?"circle-badge--clickable":"",s),K=x!==void 0?t("badge.nthSelected",{n:x,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:t("badge.selected","\uC120\uD0DD\uB428"),remove:t("badge.remove","\uC81C\uAC70"),minus:t("badge.exclude","\uC81C\uC678")}[S];return n.jsxs("span",{className:$,onClick:k,onKeyDown:k?L=>{L.key!=="Enter"&&L.key!==" "||(L.preventDefault(),L.currentTarget.click())}:void 0,"aria-label":l?void 0:i??K,"aria-hidden":l||void 0,role:k?"button":l?void 0:"img",tabIndex:k?0:void 0,children:[x!==void 0&&x,x===void 0&&S==="check"&&n.jsx(Nb,{}),x===void 0&&S==="remove"&&n.jsx(Db,{}),x===void 0&&S==="minus"&&n.jsx(Eb,{})]})}const{label:u,children:c,variant:d="default",fill:m="filled",minWidth:p,iconLeft:f,iconRight:y,color:v}=e,C=typeof r=="number"?"medium":r??"medium",b={small:"caption-2b",medium:"body-3b",large:"body-2b"}[C]??"body-2b",_={small:12,medium:14,large:16}[C]??14,h=Ae("badge",`badge--${d}`,`badge--${C}`,m!=="filled"?`badge--${m}`:"",b,s),w=v?.startsWith("--")?`var(${v})`:v,g=p!==void 0||w?{...p!==void 0?{minWidth:typeof p=="number"?`${p}px`:p}:{},...w?{"--badge-color":w}:{}}:void 0;return n.jsxs("span",{className:h,style:g,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[f&&n.jsx(tt,{icon:f,size:_,className:"badge__icon"}),u??c,y&&n.jsx(tt,{icon:y,size:_,className:"badge__icon"})]})}function Da({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:s}=_e.useTranslation(),i=r==="small"?40:48,[l,u]=o.useState([]),c=o.useMemo(()=>{const b=[{title:null,columns:e}];let _=e;for(const h of l){const w=_?.[h.ci]?.items?.[h.ii];if(!w||!Array.isArray(w.children)||!w.children.length)break;_=[{title:null,items:w.children}],b.push({title:w.label||null,columns:_})}return b},[e,l]),d=c[c.length-1],m=c.length-1,p=o.useCallback(()=>u(b=>b.slice(0,Math.max(0,Math.min(b.length,m)-1))),[m]),f=o.useRef(null),y=o.useRef(null),v=c.length;o.useEffect(()=>{y.current||(y.current=document.activeElement);let b=0,_=0;const h=()=>{const w=f.current?.querySelector("button:not([disabled])");if(w&&w.offsetParent){w.focus({preventScroll:!0});return}_++<20&&(b=requestAnimationFrame(h))};return b=requestAnimationFrame(h),()=>cancelAnimationFrame(b)},[v]),o.useEffect(()=>()=>{y.current?.focus?.({preventScroll:!0})},[]);const C=o.useCallback((b,_,h)=>{if(b){if(Array.isArray(b.children)&&b.children.length){u(w=>[...w.slice(0,m),{ci:_,ii:h}]);return}try{typeof b.onClick=="function"&&b.onClick()}catch{}try{b&&b.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t,m]);return n.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(c.length>1||d.title)&&n.jsxs("div",{className:"tooltip-menu__header",children:[c.length>1?n.jsx(me,{htmlType:"button",size:i,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:p,variant:"transparent-gray",useBorder:!1}):null,n.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),n.jsx("div",{className:"tooltip-menu__columns",ref:f,children:d.columns&&d.columns.map((b,_)=>n.jsxs("div",{className:"tooltip-menu__column",children:[b.title?n.jsx("div",{className:"tooltip-menu__column-title body-3",children:b.title}):null,n.jsx("div",{className:"tooltip-menu__items",children:(b.items||[]).map((h,w)=>n.jsxs(o.Fragment,{children:[h.separatorBefore&&w>0&&n.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),n.jsx(me,{htmlType:"button",className:"tooltip-menu__item",size:i,type:h.label?"bar":"dot",icon:h.selected?"check":h.icon||"none",rightIcon:Array.isArray(h.children)&&h.children.length?"chevron-right":h.badgeCount?n.jsx(wt,{type:"dot",position:"inline",number:Math.min(h.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:h.label,ariaLabel:h.label&&h.badgeCount&&h.badgeCount>0?s("nav.badgeLabel",{label:h.label,count:h.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):h.label,onClick:()=>C(h,_,w),selected:h.selected,disabled:h.disabled,showTooltipInfo:h.tooltip||!1,useBorder:!1,align:"left"})]},w))})]},_))})]})}const hl=".content-area";function io(e,t="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(hl);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&Gt("nav-scroll-container",`[${t}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${hl}) \u2014 \uCC3D\uB3C4 \uAD6C\uB97C \uC218 \uC5C6\uC5B4 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4. scrollContainer \uB85C \uD1B5\uC744 \uC54C\uB824 \uC900\uB2E4.`),window.scrollTo({top:0})}catch{}}const lo=52,Ja=10,Cl=e=>e&&e>0?e:0;function fl({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:s,moreItems:i=[],scrollContainer:l}){const{t:u}=_e.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",m=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=o.useRef(null),[f,y]=o.useState(0),v=e.length;o.useEffect(()=>{const R=p.current;if(!R)return;const W=()=>{const M=typeof getComputedStyle=="function"?getComputedStyle(R):null,F=R.clientWidth-(parseFloat(M?.paddingLeft??"")||0)-(parseFloat(M?.paddingRight??"")||0),I=R.querySelector(".bottom-nav__left"),Z=I?.nextElementSibling,J=(I?.offsetWidth??0)+(I&&Z?.classList.contains("bottom-nav__divider")?Z.offsetWidth:0);y(Math.max(0,F-J))};if(W(),typeof ResizeObserver>"u")return;const D=new ResizeObserver(W);D.observe(R);const P=R.querySelector(".bottom-nav__left");return P&&D.observe(P),()=>D.disconnect()},[s]);const C=lo+1,b=R=>Math.max(0,Math.floor((R+Ja)/(lo+Ja))),_=v*(lo+Ja)-Ja<=f,h=f<=0||i.length===0&&_?v:Math.min(v,b(f-C)),w=f>0&&h<v,g=w?h:v,B=e.slice(0,g),x=e.slice(g),N=w||i.length>0,k=o.useCallback((R,W)=>({position:"fixed",bottom:window.innerHeight-R.top+8,right:window.innerWidth-R.right,zIndex:ka(W)}),[]),A=o.useId(),{open:S,toggle:E,close:H,style:$,triggerRef:K,menuRef:L}=Na({computeStyle:k,onScroll:"ignore",onResize:"reposition"}),j=o.useCallback((R,W)=>W>0?u("nav.badgeLabel",{label:R,count:W,defaultValue:"{{label}}, {{count}}\uAC1C"}):R,[u]),O=o.useCallback((R,W)=>W>0?u("nav.badgeInsideLabel",{label:R,count:W,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):R,[u]),U=o.useCallback(()=>s?.(c),[s,c]),te=o.useMemo(()=>x.find(R=>!!R.key&&R.key===t)??i.find(R=>R.selected||R.key&&R.key===t),[x,t,i]),z=o.useMemo(()=>[{items:[...x.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:!!R.key&&R.key===t,closeOnSelect:!0,disabled:R.state==="disabled",onClick:()=>{R.state!=="disabled"&&(R.key&&a&&(a(R.key),io(l,"BottomNav")),H())}})),...i.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.selected??(!!R.key&&R.key===t),closeOnSelect:!0,onClick:()=>{R.onClick?.(),H()}}))]}],[x,i,t,a,H]),q=[...x,...i].reduce((R,W)=>R+Cl(W.badgeCount),0);return n.jsxs("nav",{className:"bottom-nav",ref:p,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__left",children:n.jsx(me,{htmlType:"button",size:52,type:"dot",icon:d,ariaLabel:m,className:"bottom-nav-item",onClick:U})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",children:B.map((R,W)=>{const D=Cl(R.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(me,{htmlType:"button",size:52,type:"dot",icon:R.icon,ariaLabel:j(R.label,D),selected:!!R.key&&R.key===t,disabled:R.state==="disabled",className:"bottom-nav-item",onClick:()=>{R.key&&(a?.(R.key),io(l,"BottomNav"))}}),D>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(wt,{type:"dot",position:"top-right",number:Math.min(D,99),size:24})})]},R.key??`__slot-${W}`)})}),N&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),n.jsx("div",{className:"bottom-nav__right",children:n.jsxs("div",{ref:K,className:"bottom-nav__slot",children:[n.jsx(me,{htmlType:"button",size:52,type:"dot",icon:te?.icon??"ellipsis",ariaLabel:O(te?.label??u("nav.more","\uB354\uBCF4\uAE30"),q),selected:!!te,className:"bottom-nav-item",onClick:E,"aria-expanded":S,"aria-controls":S?A:void 0}),q>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(wt,{type:"dot",position:"top-right",number:Math.min(q,99),size:24})}),S&&en.createPortal(n.jsx("div",{id:A,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:$,ref:L,children:n.jsx(Da,{columns:z,onClose:H})}),document.body)]})})]})]})}function gl(e){if(typeof e!="string")return!1;let t="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(t+=r)}if(!t)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(t);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function bl(e,t,a){return a&&a>0?e("nav.badgeLabel",{label:t,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):t}function Sb(e){const{t}=_e.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:i,onSetting:l,onHelp:u,onFeedback:c,onAccount:d}=e||{},m="default";return s||i||l||u||c||d?n.jsxs("div",{className:"side-nav__footer",children:[s&&n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),i&&n.jsxs("span",{className:"side-nav__notification-wrap",children:[n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"bell",ariaLabel:bl(t,t("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&n.jsx(wt,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),u&&n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),c&&n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"bug",ariaLabel:t("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:c,selected:a==="feedback"}),d&&n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]}):null}function yl(e){const{t}=_e.useTranslation(),{item:a,itemKey:r,label:s,icon:i,active:l,onClick:u,style:c,state:d,labelStyle:m}=e||{},p=a?.key??r??"",f=a?.label??s??"",y=a?.icon??i??"",v=a?.badge??0,C=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(tt,{icon:y,label:typeof f=="string"?f:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),b=d==="disabled",_=`side-nav__item ${l?"active":""} ${d||""} ${b?"disabled":""} ${a?.child?"side-nav__item--child":""}`,h=o.useCallback(w=>{if(b)return;const g=w.detail>0;if(g)try{w.currentTarget.blur()}catch{}u?.(p,w.currentTarget,g)},[b,p,u]);return n.jsxs("button",{type:"button",className:_,onClick:h,"aria-label":typeof f=="string"?bl(t,f,v):void 0,"aria-current":l?"page":void 0,style:c,"aria-disabled":b,children:[C,n.jsx("span",{className:"side-nav__label button-1 f",style:m,children:f}),v>0&&n.jsx(wt,{type:"dot",position:"inline",number:Math.min(v,99),size:24,"aria-hidden":!0}),d==="loading"&&n.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":t("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function vl(e){const{t}=_e.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:f,onAppModeChange:y,scrollContainer:v}=e||{},C=f==="manager",b=o.useCallback(()=>y?.(C?"malgwi":"manager"),[y,C]),_=o.useRef(null),[h,w]=o.useState(null);o.useEffect(()=>{const k=_.current;if(!k)return;const A=()=>{const{scrollHeight:E,clientHeight:H,scrollTop:$}=k;if(E<=H+1){w(null);return}const K=Math.max(24,H/E*H),L=H-K,j=E-H;w({top:Math.round($/j*L),height:Math.round(K)})};A(),k.addEventListener("scroll",A,{passive:!0});const S=typeof ResizeObserver<"u"?new ResizeObserver(A):null;S?.observe(k);for(const E of Array.from(k.children))S?.observe(E);return()=>{k.removeEventListener("scroll",A),S?.disconnect()}},[a]);const g=o.useRef(null),B=o.useCallback(k=>{const A=_.current;A&&(k.preventDefault(),g.current={y:k.clientY,top:A.scrollTop},k.currentTarget.setPointerCapture(k.pointerId))},[]),x=o.useCallback(k=>{const A=_.current,S=g.current;!A||!S||(A.scrollTop=S.top+(k.clientY-S.y)*(A.scrollHeight/A.clientHeight))},[]),N=o.useCallback(k=>{g.current=null,k.currentTarget.hasPointerCapture(k.pointerId)&&k.currentTarget.releasePointerCapture(k.pointerId)},[]);return n.jsxs("nav",{ref:_,"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[h&&n.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:n.jsx("div",{className:"side-nav__scroll-thumb",style:{top:h.top,height:h.height},onPointerDown:B,onPointerMove:x,onPointerUp:N,onPointerCancel:N})}),n.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(k=>!k.section&&(k.key||k.label)).map((k,A)=>n.jsxs(o.Fragment,{children:[k.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(yl,{item:k,active:!!k.key&&k.key===r,state:k.disabled?"disabled":void 0,onClick:(S,E,H)=>{if(k.disabled)return;if(k.href){if(gl(k.href)&&window.open(k.href,"_blank","noopener,noreferrer"),H)try{E?.blur()}catch{}return}if(s?.(k.key),io(v,"SideNav"),!H)return;try{E?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const $=document.querySelector(".header");if($){const K=typeof $.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&K&&$.matches(":hover"))){$.classList.add("header--force-collapsed");const L=()=>{$.classList.remove("header--force-collapsed"),$.removeEventListener("mouseenter",L)};$.addEventListener("mouseenter",L)}}}})]},k.key??`side-nav__item-${A}`)),y&&n.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),y&&n.jsx(yl,{item:{key:"__mode-switch__",label:C?t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:C?"arrow-left":"arrow-right"},onClick:b})]}),n.jsx(Sb,{activeKey:r,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p})]})}var Qa='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2080_3066)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="black"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="black"/>%0A<path d="M46.4288 17.8571H25.0002C15.138 17.8571 7.14307 25.852 7.14307 35.7143V57.1428C7.14307 67.0051 15.138 75 25.0002 75H46.4288C56.291 75 64.2859 67.0051 64.2859 57.1428V35.7143C64.2859 25.852 56.291 17.8571 46.4288 17.8571Z" fill="%234DCDC0"/>%0A<path d="M34.8607 50.7393C25.8285 60.6821 10.6142 61.6678 0.385667 53.1643C-0.0821902 52.775 -0.13219 52.0678 0.278524 51.6178L16.3535 33.925L34.8607 50.7393Z" fill="%234DCDC0"/>%0A<path d="M53.5714 25H32.1428C22.2821 25 14.2856 32.9964 14.2856 42.8571V64.2857C14.2856 74.1464 22.2821 82.1429 32.1428 82.1429H48.2535C49.2178 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7214 51.8928 85.6321C62.8392 84.675 71.4285 75.4821 71.4285 64.2857V42.8571C71.4285 32.9964 63.4321 25 53.5714 25Z" fill="%234DCDC0"/>%0A<path d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23499CDF"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="white"/>%0A<path d="M36.0715 57.1429C35.0287 57.1429 33.9822 56.875 33.0358 56.3286C32.1822 55.8357 31.8894 54.7429 32.3858 53.8893C32.8787 53.0357 33.9715 52.7429 34.8251 53.2393C35.8037 53.8036 37.043 53.6429 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3536 40.4322 35.9107 37.5072 35.7286C36.5215 35.6679 35.5715 35.8464 34.693 36.2679C33.8037 36.6929 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0429C34.5751 32.3714 36.1537 32.0679 37.7322 32.1643C42.4894 32.4607 46.3072 36.4286 46.4251 41.1964C46.4822 43.5286 45.6715 45.7786 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9357C41.8965 53.2464 41.3037 54.4357 40.368 55.375C39.2001 56.5429 37.6465 57.15 36.0751 57.15L36.0715 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2080_3066">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',uo='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7374)">%0A<path d="M237.151 26.0393V72.7214H216.65V26.0393H237.151ZM234.408 70.0464V28.7179H219.254V70.0464H234.408ZM261.495 76.3607H258.819V48.9679H247.575V75.4679H244.899V23.9821H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3607Z" fill="black"/>%0A<path d="M299.722 69.2571C302.076 68.775 304.031 68.1464 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.789 72.0357C297.435 72.4929 295.045 72.7214 292.623 72.7214H272.257V25.6964H275V69.975H292.623C294.998 69.975 297.364 69.7357 299.722 69.2536V69.2571ZM311.69 76.4321V23.6393H314.433V76.3643L311.69 76.4321Z" fill="black"/>%0A<path d="M340.556 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.329 62.2643 333.632 65.925C330.935 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.33 63.1107C334.617 59.3572 336.354 54.5179 337.542 48.5893C338.73 42.6643 339.369 36.0393 339.461 28.7143H324.992V26.0357H356.602V28.7143H342.201C342.155 35.9 341.605 42.3072 340.556 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="black"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="black"/>%0A<path d="M181.886 47.8714V57.275C179.097 58.5571 174.73 59.1964 168.791 59.1964H168.174V76.3607H158.299V59.1964H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8714H181.886ZM148.971 34.2786V24.875H177.634V47.05H167.76V34.2821H148.971V34.2786ZM194.64 76.3607H184.765V23.6393H194.64V76.3643V76.3607Z" fill="black"/>%0A<path d="M48.1549 17.8571H26.7511C16.9002 17.8571 8.91455 25.852 8.91455 35.7143V57.1428C8.91455 67.0051 16.9002 75 26.7511 75H48.1549C58.0058 75 65.9915 67.0051 65.9915 57.1428V35.7143C65.9915 25.852 58.0058 17.8571 48.1549 17.8571Z" fill="%234DCDC0"/>%0A<path d="M36.6007 50.7393C27.579 60.6821 12.3823 61.6678 2.1655 53.1643C1.69818 52.775 1.64824 52.0678 2.05848 51.6178L18.1149 33.925L36.6007 50.7393Z" fill="%234DCDC0"/>%0A<path d="M55.2897 25H33.8859C24.0365 25 16.0493 32.9964 16.0493 42.8571V64.2857C16.0493 74.1464 24.0365 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7214 53.6131 85.6321C64.5469 84.675 73.1262 75.4821 73.1262 64.2857V42.8571C73.1262 32.9964 65.139 25 55.2897 25Z" fill="%234DCDC0"/>%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23499CDF"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="white"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7374">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',jb='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65214)">%0A<path d="M57.1427 17.8571H35.7141C25.8518 17.8571 17.8569 25.852 17.8569 35.7143V57.1428C17.8569 67.0051 25.8518 75 35.7141 75H57.1427C67.0049 75 74.9998 67.0051 74.9998 57.1428V35.7143C74.9998 25.852 67.0049 17.8571 57.1427 17.8571Z" fill="%234DCDC0"/>%0A<path d="M45.575 50.7393C36.5429 60.6821 21.3286 61.6678 11.1 53.1643C10.6322 52.775 10.5822 52.0678 10.9929 51.6178L27.0679 33.925L45.575 50.7393Z" fill="%234DCDC0"/>%0A<path d="M64.2857 25H42.8571C32.9964 25 25 32.9964 25 42.8571V64.2857C25 74.1464 32.9964 82.1429 42.8571 82.1429H58.9679C59.9321 82.1429 60.7143 82.925 60.7143 83.8893C60.7143 84.9107 61.5893 85.7214 62.6071 85.6321C73.5536 84.675 82.1429 75.4821 82.1429 64.2857V42.8571C82.1429 32.9964 74.1464 25 64.2857 25Z" fill="%234DCDC0"/>%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23499CDF"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="white"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2359 35.6679 46.2859 35.8464 45.4073 36.2679C44.5145 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2002 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2175_65214">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';function xl({appMode:e}){const{t}=_e.useTranslation(),a=e==="manager",r=a?uo:Qa,s=jb;return n.jsxs("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:[n.jsx("img",{src:s,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),n.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image brand-identity__image--logo"})]})}function _l({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:s,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:f,onAppModeChange:y,scrollContainer:v}){const{t:C}=_e.useTranslation(),b=rn("(max-width: 767px)"),_=o.useMemo(()=>(a??[]).filter($=>!$.section&&($.key||$.label)).map($=>({key:$.key,label:typeof $.label=="string"?$.label:void 0,icon:$.icon,state:$.disabled?"disabled":void 0,badgeCount:$.badge})),[a]),h=o.useCallback($=>{const K=a?.find(L=>L.key===$);if(!K?.disabled){if(K?.href){gl(K.href)&&window.open(K.href,"_blank","noopener,noreferrer");return}t?.($)}},[a,t]),w=o.useMemo(()=>{const $=[];return l&&$.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),u&&$.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:u}),d&&$.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),m&&$.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:m}),p&&$.push({key:"feedback",icon:"bug",label:C("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:p}),c&&$.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:c}),$},[C,l,u,d,m,p,c,i]),g=o.useCallback(($,K)=>({position:"fixed",top:$.bottom+8,right:Math.max(8,window.innerWidth-$.right),zIndex:ka(K)}),[]),B=o.useId(),{open:x,toggle:N,close:k,style:A,triggerRef:S,menuRef:E}=Na({computeStyle:g,onScroll:"ignore",onResize:"reposition"}),H=o.useMemo(()=>[{items:w.map($=>({label:$.label,icon:$.icon,badgeCount:$.badgeCount,selected:$.selected??(!!$.key&&$.key===e),closeOnSelect:!0,onClick:()=>{$.onClick?.(),k()}}))}],[w,e,k]);return n.jsxs("aside",{className:`header${f==="manager"?" header--manager":""}`,children:[n.jsxs("div",{className:"header__bi",children:[n.jsx(xl,{appMode:f}),n.jsxs("div",{className:"header__menu-button",ref:S,children:[n.jsx(me,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&i&&i>0?C("nav.badgeInsideLabel",{label:C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:i,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:N,"aria-expanded":x,"aria-controls":x?B:void 0}),!!u&&!!i&&i>0&&n.jsx(wt,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),x&&en.createPortal(n.jsx("div",{id:B,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:A,ref:E,children:n.jsx(Da,{columns:H,onClose:k})}),document.body)]})]}),n.jsx(vl,{scrollContainer:v,items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:f,onAppModeChange:y}),b&&n.jsx(fl,{items:_,activeKey:e??void 0,onChange:h,scrollContainer:v,appMode:f,onAppModeChange:y})]})}const Tb=_l,Mb=()=>Tt.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function wl(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const t=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(t))return ta(`${t.toLocaleString("ko-KR")}\uC6D0`)}return ta(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function Lb(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function $b(e){if(e.durationDays&&e.durationDays>0){const i=e.durationDays;return i%365===0?`${i/365}\uB144`:`${i}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);if(r)return r[1].replace(/\s+/g,"");const s=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return s?s[2].toLowerCase()==="year"?`${s[1]}\uB144`:`${s[1]}\uC77C`:a||Mb()}function Rb(e){const t=(e??"").match(/(\d+)(d|y)\b/i);if(!t)return null;const a=Number(t[1]);return t[2].toLowerCase()==="y"?a*365:a}function Bl(e){return{type:e.type??Lb(e),plan:$b(e),label:e.label,price:wl(e.price),originalPrice:wl(e.originalPrice),discountLabel:e.discountLabel}}var Pb='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7326)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23FAFAFA"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23FAFAFA"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23FAFAFA"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23FAFAFA"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7326">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Fb='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 200 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="200" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M96.43,48.35v-24.1h30.62v24.1h-30.62ZM142.98,69.15v7.21h-44.76v-15.72h34.46v-2.13h-34.6v-7.21h44.35v15.72h-34.33v2.13h34.88,0ZM106.25,32.56v7.41h11.05v-7.41h-11.05ZM148.33,40.39h-5.9v9.06h-9.89v-25.81h9.89v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M185.54,47.87v9.4c-2.79,1.28-7.16,1.92-13.11,1.92h-.62v17.16h-9.89v-17.16h-12.22v-9.4h22.86c5.86,0,10.18-.64,12.98-1.92h0ZM152.59,34.28v-9.4h28.7v22.17h-9.89v-12.77h-18.81ZM198.31,76.36h-9.89V23.64h9.89v52.73h0Z"/>%0A <path class="st1" d="M46.43,17.86h-21.43c-9.86,0-17.86,7.99-17.86,17.86v21.43c0,9.86,7.99,17.86,17.86,17.86h21.43c9.86,0,17.86-7.99,17.86-17.86v-21.43c0-9.86-7.99-17.86-17.86-17.86Z"/>%0A <path class="st1" d="M34.86,50.74c-9.03,9.94-24.25,10.93-34.48,2.42-.47-.39-.52-1.1-.11-1.55l16.07-17.69,18.51,16.81Z"/>%0A <path class="st1" d="M53.57,25h-21.43c-9.86,0-17.86,8-17.86,17.86v21.43c0,9.86,8,17.86,17.86,17.86h16.11c.96,0,1.75.78,1.75,1.75,0,1.02.88,1.83,1.89,1.74,10.95-.96,19.54-10.15,19.54-21.35v-21.43c0-9.86-8-17.86-17.86-17.86Z"/>%0A <path class="st2" d="M25,25c-5.92,0-10.71,4.8-10.71,10.71v28.57c0,3.09.79,6,2.17,8.54,2.54,1.39,5.45,2.17,8.54,2.17h28.57c5.92,0,10.71-4.8,10.71-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.54-1.39-5.45-2.17-8.54-2.17h-28.57Z"/>%0A <path class="st3" d="M25.36,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M36.07,57.14c-1.04,0-2.09-.27-3.04-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.59-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.33-4.44,2.91-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.35-5.56-.99-.06-1.94.12-2.81.54-.89.43-1.96.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.76.3,8.58,4.26,8.69,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',Ib='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7325)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23111111"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23111111"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23111111"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23111111"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23111111"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7325">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Ob='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7395)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23FAFAFA"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23FAFAFA"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23FAFAFA"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23FAFAFA"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23FAFAFA"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7395">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Hb='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 371 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="371" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M237.15,26.04v46.68h-20.5V26.04h20.5ZM234.41,70.05V28.72h-15.15v41.33h15.15ZM261.49,76.36h-2.68v-27.39h-11.24v26.5h-2.68V23.98h2.68v22.31h11.24v-22.65h2.68v52.73h0Z"/>%0A <path class="st3" d="M299.72,69.26c2.35-.48,4.31-1.11,5.86-1.89v2.75c-1.51.82-3.44,1.46-5.79,1.92-2.35.46-4.74.69-7.17.69h-20.37V25.7h2.74v44.28h17.62c2.38,0,4.74-.24,7.1-.72h0ZM311.69,76.43V23.64h2.74v52.73l-2.74.07Z"/>%0A <path class="st3" d="M340.56,47.94l17.62,22.52-2.13,1.65-16.18-20.94c-1.46,6.18-3.54,11.1-6.24,14.76-2.7,3.66-5.9,5.93-9.6,6.8v-2.75c3.25-.82,6.01-3.11,8.3-6.86,2.29-3.75,4.02-8.59,5.21-14.52,1.19-5.92,1.83-12.55,1.92-19.87h-14.47v-2.68h31.61v2.68h-14.4c-.05,7.19-.6,13.59-1.64,19.22h0ZM369.22,76.36h-2.74v-28.9h-14.06v-2.68h14.06v-21.14h2.74v52.73Z"/>%0A <path class="st3" d="M92.88,48.35v-24.1h30.58v24.1h-30.58ZM139.37,69.15v7.21h-44.71v-15.72h34.42v-2.13h-34.56v-7.21h44.3v15.72h-34.28v2.13h34.83,0ZM102.68,32.56v7.41h11.04v-7.41h-11.04ZM144.72,40.39h-5.9v9.06h-9.88v-25.81h9.88v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M181.89,47.87v9.4c-2.79,1.28-7.16,1.92-13.1,1.92h-.62v17.16h-9.88v-17.16h-12.2v-9.4h22.83c5.85,0,10.17-.64,12.96-1.92h0ZM148.97,34.28v-9.4h28.66v22.17h-9.87v-12.77h-18.79ZM194.64,76.36h-9.88V23.64h9.88v52.73h0Z"/>%0A <path class="st1" d="M48.15,17.86h-21.4c-9.85,0-17.84,7.99-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h21.4c9.85,0,17.84-7.99,17.84-17.86v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st1" d="M36.6,50.74c-9.02,9.94-24.22,10.93-34.44,2.42-.47-.39-.52-1.1-.11-1.55l16.06-17.69,18.49,16.81Z"/>%0A <path class="st1" d="M55.29,25h-21.4c-9.85,0-17.84,8-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h16.09c.96,0,1.74.78,1.74,1.75,0,1.02.87,1.83,1.89,1.74,10.93-.96,19.51-10.15,19.51-21.35v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st2" d="M26.75,25c-5.91,0-10.7,4.8-10.7,10.71v28.57c0,3.09.79,6,2.17,8.54,2.53,1.39,5.44,2.17,8.53,2.17h28.54c5.91,0,10.7-4.8,10.7-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.53-1.39-5.44-2.17-8.53-2.17h-28.54Z"/>%0A <path class="st3" d="M27.11,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M37.81,57.14c-1.04,0-2.09-.27-3.03-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.58-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.32-4.44,2.9-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.34-5.56-.99-.06-1.93.12-2.81.54-.89.43-1.95.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.75.3,8.57,4.26,8.68,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',zb='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7394)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23111111"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23111111"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23111111"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23111111"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23111111"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23111111"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23111111"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7394">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Al='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7305)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7179 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7179 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7305">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Un={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},co=new WeakMap;function Vb(e){if(e)return co.get(e)}function _n(e,t){e&&(e.style.setProperty(Un.text,t.text),e.style.setProperty(Un.sub,t.sub),t.copyrightColor&&e.style.setProperty(Un.copyright,t.copyrightColor),co.set(e,t))}function wn(e){e&&(e.style.removeProperty(Un.text),e.style.removeProperty(Un.sub),e.style.removeProperty(Un.copyright),co.delete(e))}const kl={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Nl(e={}){const t=_t(kl,_n,wn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-two-circle__c1"}),n.jsx("div",{className:"pass-card-bg-two-circle__c3"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${Al}")`}})]})}const Dl="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464Z";var Ea='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65181)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="url(%23paint0_linear_2175_65181)"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2175_65181" x1="29.6392" y1="29.6393" x2="75.2535" y2="75.2536" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2175_65181">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Wb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},qb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function El(e={}){const t=_t(Wb,_n,wn),a="var(--color-main)",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[n.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:qb.map(({scale:i,opacity:l},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:n.jsx("path",{d:Dl,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}const Ub={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},Gb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Kb(e={}){const t=_t(Ub,_n,wn),a="#ffffff",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[n.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:Gb.map(({scale:i,opacity:l},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:n.jsx("path",{d:Dl,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${Al}")`}})]})}const Yb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Zb(e={}){const t=_t(Yb,_n,wn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}const Xb={Logo_speechear_kr:{"":Qa,_white:Pb,_textWhite:Fb,_black:Ib},Logo_speechearManager_kr:{"":uo,_white:Ob,_textWhite:Hb,_black:zb}};function Jb(e,t){if(e)return Xb[e]?.[t??""]??void 0}const Qb={speechear:Qa,manager:uo},e4={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},Sl=10;function t4(e){return e<=0?0:e>=86400?Math.floor(e/86400)*86400:e>=3600?Math.floor(e/3600)*3600:e>=60?Math.floor(e/60)*60:Math.floor(e)}function jl(e,t){if(e<=0)return t("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return t("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return t("passCard.remainingHour",{n:r});const s=Math.floor(e/60);return s>0?t("passCard.remainingMinute",{n:s}):t("passCard.remainingSecond",{n:Math.floor(e)})}function n4(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),s=a==="\uC624\uD508\uD2B9\uAC00"||a===Tt.t("passCard.specialLabel");return r?n.jsx(Zb,{}):s?n.jsx(Kb,{}):n.jsx(El,{})}return n.jsx(Nl,{})}function Tl({ariaLabel:e,product:t,showPrice:a=!1,plan:r,type:s,endDate:i,remainingSeconds:l,endInclusive:u=!1,state:c="active",bg:d,bgOnly:m=!1,textColor:p,subColor:f,copyrightColor:y,logoSrc:v,label:C,price:b,originalPrice:_,discountLabel:h,onUse:w,onRefund:g,onDelete:B}){const{t:x}=_e.useTranslation(),N=t?Bl(t):void 0,k=s??N?.type??"speechear",A=r??N?.plan??x("passCard.planSuffix","\uC774\uC6A9\uAD8C"),S=C??N?.label,E=b??(a?N?.price:void 0),H=_??(a?N?.originalPrice:void 0),$=h??N?.discountLabel,K=o.useMemo(()=>{if(E)return null;const V=t?.durationDays??Rb(t?.code);if(!V||V<=0)return l!=null?{percent:null,remainingLabel:jl(l,x)}:null;const oe=V*86400;let ge;if(l!=null)ge=l;else if((c==="active"||c==="expired")&&i){const ae=new Date(i).getTime();if(Number.isNaN(ae))return null;const de=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(i)),pe=/^(\d{4})-(\d{2})-(\d{2})/.exec(_a()),he=Math.round(de&&pe?(Date.UTC(+de[1],+de[2]-1,+de[3])-Date.UTC(+pe[1],+pe[2]-1,+pe[3]))/864e5:(ae-Date.now())/864e5);ge=Math.max(0,u?he+1:he)*86400}else c==="expired"?ge=0:ge=oe;const De=t4(ge),fe=Math.max(0,Math.min(100,Math.floor(Math.min(De,oe)/oe*100)));return c==="pending"&&fe>=100?null:{percent:fe,remainingLabel:c==="expired"?x("passCard.expired","\uB9CC\uB8CC\uB428"):jl(ge,x)}},[E,c,i,l,u,t?.durationDays,t?.code,x]),L=o.useRef(null),[j,O]=o.useState({}),[U,te]=o.useState(null),z=!!(w||g||B),q=o.useRef(!1),R=o.useRef(void 0),[W,D]=o.useState(v);o.useLayoutEffect(()=>{D(v)},[v]),o.useLayoutEffect(()=>{const V=L.current;V&&(p!==void 0&&V.style.setProperty("--pass-card-text",p),f!==void 0&&V.style.setProperty("--pass-card-sub",f),y!==void 0&&V.style.setProperty("--pass-card-copyright",y))},[p,f,y]),o.useLayoutEffect(()=>{const V=L.current;if(!V)return;const oe=Vb(V);if(!v){const ge=e4[k],De=c==="expired"?"_black":oe?.logoColor??"",fe=Jb(ge,De);D(fe)}},[d,v,k,c]);const P=V=>{const oe=L.current;if(!oe)return null;const{left:ge,top:De,width:fe,height:ae}=oe.getBoundingClientRect(),de=(V.clientX-ge)/fe-.5;return{rotateX:-((V.clientY-De)/ae-.5)*Sl,rotateY:de*Sl}},M=(V,oe)=>{const ge=oe*-.7,De=V*.7+10,fe=20+(Math.abs(V)+Math.abs(oe))*.4;return`${ge}px ${De}px ${fe}px rgba(0, 0, 0, 0.18)`},F=o.useCallback(V=>{if(ra())return;q.current=!0,clearTimeout(R.current),R.current=setTimeout(()=>{q.current=!1},200);const oe=P(V);oe&&O({transform:`perspective(800px) rotateX(${oe.rotateX}deg) rotateY(${oe.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:M(oe.rotateX,oe.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),I=o.useCallback(V=>{if(ra())return;const oe=P(V);if(!oe)return;const ge=q.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";O({transform:`perspective(800px) rotateX(${oe.rotateX}deg) rotateY(${oe.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:M(oe.rotateX,oe.rotateY),transition:ge})},[]),Z=o.useCallback(()=>{clearTimeout(R.current),q.current=!1,O({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),J=o.useCallback(()=>te(null),[]),Y=o.useMemo(()=>{const V=x("passCard.planSuffix","\uC774\uC6A9\uAD8C"),oe=A.replace("\uC774\uC6A9\uAD8C","").replace(V==="\uC774\uC6A9\uAD8C"?"":V,"").trim(),ge=oe.match(/^(.*?)(일|년)$/);return ge?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"h0 pass-card__plan-number",children:ge[1]}),n.jsx("span",{className:"h5b pass-card__plan-unit",children:ge[2]==="\uB144"?x("passCard.unitYear","\uB144"):x("passCard.unitDay","\uC77C")})]}):n.jsx("span",{className:"h0",children:oe})},[A,x]),ne=o.useMemo(()=>{const V=ta(E);if(!V)return null;const oe=V.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!oe)return n.jsx("span",{className:"h1",children:V});const[,ge,De,fe]=oe;return n.jsxs(n.Fragment,{children:[ge&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:ge}),n.jsx("span",{className:"h1 pass-card__price-amount",children:De}),fe.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:fe.trim()})]})},[E]),ie=o.useCallback(()=>{z&&te(V=>{if(V)return null;const oe=L.current?.getBoundingClientRect();if(!oe)return null;const ge=50;return{left:oe.left,right:oe.right,width:oe.width,height:oe.height,x:oe.x,y:oe.y+ge,top:oe.top+ge,bottom:oe.bottom+ge}})},[z]),ue=o.useCallback(V=>{z&&(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),ie())},[z,ie]),Se=[{items:[...w?[{label:x("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{w(),te(null)},closeOnSelect:!0}]:[],...g?[{label:x("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{g(),te(null)},closeOnSelect:!0}]:[],...B?[{label:x("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{B(),te(null)},closeOnSelect:!0}]:[]]}];return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card-frame",children:n.jsxs("div",{ref:L,className:`pass-card pass-card--${c}${z?" pass-card--clickable":""}`,style:j,onMouseEnter:F,onMouseMove:I,onMouseLeave:Z,onPointerUp:V=>{V.pointerType==="touch"&&Z()},onPointerCancel:V=>{V.pointerType==="touch"&&Z()},onClick:ie,onKeyDown:z?ue:void 0,role:z?"button":void 0,tabIndex:z?0:void 0,"aria-label":e,"aria-haspopup":z?"menu":void 0,"aria-expanded":z?!!U:void 0,children:[d??n4(k,A,S),!m&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card__top",children:n.jsxs("div",{className:"pass-card__top-left",children:[n.jsx("img",{src:W??Qb[k],className:"pass-card__logo",alt:k==="manager"?x("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):x("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),n.jsxs("div",{className:"pass-card__plan",children:[n.jsx("div",{children:Y}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:S?x("passCard.labeledPlan",{label:S}):x("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),E?n.jsxs("div",{className:"pass-card__price-area",children:[$&&n.jsx("span",{className:"pass-card__discount body-3",children:$}),n.jsxs("div",{className:"pass-card__price",children:[H&&n.jsx("span",{className:"pass-card__price-original body-3",children:ta(H)}),ne]})]}):K?n.jsxs("div",{className:"pass-card__usage",children:[n.jsx("span",{className:"h5b pass-card__usage-remaining",children:K.remainingLabel}),K.percent!=null&&n.jsxs("span",{className:"pass-card__usage-percent",children:[n.jsx("span",{className:"h1 pass-card__usage-value",children:K.percent}),n.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):n.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),U&&n.jsx(un,{anchorRect:U,onClose:J,ariaLabel:x("tooltip.menu","\uBA54\uB274"),children:n.jsx(Da,{columns:Se,onClose:J,size:"small"})})]})}const a4={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function r4(e={}){const t=`passcard-sound-line-grad-${o.useId()}`,a=_t(a4,_n,wn);return n.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[n.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("defs",{children:n.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[n.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),n.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),n.jsx("g",{transform:"translate(25, 45)",children:n.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${t})`,strokeWidth:"50",strokeLinecap:"round"})})]}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}const o4={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function s4(e={}){const t=_t(o4,_n,wn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}function i4(e,t){if(e){if(t==="manager_pro")return n.jsx(s4,{});if(t==="manager_standard")return n.jsx(r4,{});if(t==="manager_lite")return n.jsx(El,{})}}function l4(e){const t=ta(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,s,i]=a;return n.jsxs(n.Fragment,{children:[r&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,i.trim()&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function u4(e){const{t}=_e.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:i,period:l="monthly",ownedCodes:u}=e||{},c=g=>!!g&&!!u?.includes(g),d=g=>g.onceOnly??/오픈\s*특가/.test(g.label??""),m=(s.tiers||[]).some(g=>d(g)&&c(g.code)),p=g=>{const B=g.prices?g.prices[l]:g.price;return B?(s.tiers||[]).some(x=>!!x.badge&&x.originals?.[l]===B):!1},f=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",y=t("payment.plan.freePrice","\uBB34\uB8CC"),v=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),C=g=>g.prices?g.prices[l]:g.price,b=(s.tiers||[]).length>0&&(s.tiers||[]).every(g=>{const B=C(g);return B==="\uBB34\uB8CC"||B===y||B==="0\uC6D0"||typeof B=="string"&&/\d/.test(B)&&!/[1-9]/.test(B)}),_=(s.tiers||[]).length>0&&(s.tiers||[]).every(g=>{const B=C(g);return B==="\uBB38\uC758"||B===v}),h=s.group==="org",w=h?"manager":"speechear";return n.jsxs("div",{className:"payment-plan__card",style:{borderColor:f,"--plan-color":f},children:[s.cardBadge&&n.jsx("div",{className:"payment-plan__card-badge",children:n.jsx(wt,{label:s.cardBadge,variant:"main",size:"medium",fill:"soft"})}),n.jsxs("div",{className:"payment-plan__title",children:[n.jsx("p",{className:"payment-plan__quote body-3b",style:{color:f},children:s.quote||"\xA0"}),n.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),n.jsx("p",{className:"payment-plan__subtitle body-3",children:s.subtitle})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.recommendedFor||[]).map((g,B)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(tt,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:f}}),g]},B))})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.features||[]).map((g,B)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(tt,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:f}}),g]},B))})]}),n.jsx("div",{className:"payment-plan__card-pricing",children:b?null:_?n.jsx(me,{htmlType:"button",className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>s.tiers?.[0]&&i?.({...s.tiers[0],productId:s.id,productTitle:s.title})}):n.jsx(n.Fragment,{children:n.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(g=>{const B=g.label||a,x=d(g),N=x||g.openPromo===!0,k=B.replace(/^오픈\s*특가\s*/,"")||a,A=g.prices?g.prices[l]:g.price,S=g.badge?N?`${r}
852
- ${g.badge}`:g.badge:void 0;if(x&&c(g.code))return null;if(!g.badge&&!m)return p(g)?null:n.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${g.highlight?" payment-plan__pricing-row--highlight":""}`,children:[n.jsx("div",{className:"payment-plan__pricing-row-title",children:n.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:g.label})}),n.jsx("div",{className:"payment-plan__pricing-row-price",children:n.jsx("span",{className:"payment-plan__pricing-current h1",children:l4(A)})})]},g.id);const E=s.tier??(h?s.title:void 0),H=n.jsx(Tl,{showPrice:!0,product:{type:w,code:g.code,name:k,label:E,price:A,originalPrice:g.originals?.[l]??void 0,discountLabel:S},bg:i4(h,s.id)}),$=()=>i?.({...g,productId:s.id,productTitle:s.title,preview:H});return n.jsx("div",{className:"payment-plan__pricing-card",onClick:$,onKeyDown:i?K=>{K.target===K.currentTarget&&(K.key==="Enter"||K.key===" ")&&(K.preventDefault(),$())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:H},g.id)})})})})]})}function c4({variant:e="default"}){return n.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var po='data:image/svg+xml,<svg width="264" height="100" viewBox="0 0 264 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2079_3030)">%0A<path d="M60.9019 24.7464C54.4446 18.2821 45.5257 14.2857 35.6757 14.2857C25.8256 14.2857 23.2106 24.5964 16.7569 31.0607C10.2996 37.5214 0 40.1857 0 50C0 59.8143 3.99211 68.7893 10.4494 75.2536C16.9067 81.7178 25.8256 85.7143 35.6757 85.7143C45.5257 85.7143 54.4446 81.7178 60.9019 75.2536C67.3592 68.7893 71.3513 59.8607 71.3513 50C71.3513 40.1393 67.3592 31.2107 60.9019 24.7464ZM48.2906 62.6286C45.0619 65.8607 40.6025 67.8571 35.6757 67.8571C30.7489 67.8571 26.2894 65.8571 23.0608 62.6286C19.8321 59.3964 17.8378 54.9321 17.8378 50C17.8378 45.0678 19.8357 40.6036 23.0608 37.3714C26.2894 34.1393 30.7489 32.1428 35.6757 32.1428C40.6025 32.1428 45.0619 34.1428 48.2906 37.3714C51.5192 40.6036 53.5135 45.0678 53.5135 50C53.5135 54.9321 51.5157 59.3964 48.2906 62.6286Z" fill="url(%23paint0_linear_2079_3030)"/>%0A<path d="M106.735 74.8322H93.6274V24.8322H106.735V74.8322Z" fill="%23111111"/>%0A<path d="M113.495 24.8322H126.602V44.5143H145.022V24.8322H158.197V74.8322H145.022V55.15H126.602V74.8322H113.495V24.8322Z" fill="%23111111"/>%0A<path d="M163.027 74.8322L179.652 24.8322H197.519L214.076 74.8322H199.934L196.969 65.025H180.205L177.241 74.8322H163.031H163.027ZM193.933 55.0786L188.76 38.2964H188.346L183.241 55.0786H193.933Z" fill="%23111111"/>%0A<path d="M218.906 24.8322H240.29C251.674 24.8322 257.675 29.7357 257.675 37.4C257.675 42.925 253.743 47.1393 248.085 48.3107V48.7929C254.364 49 259.605 53.6286 259.605 60.7393C259.605 68.8893 252.983 74.8286 242.081 74.8286H218.902V24.8322H218.906ZM244.157 40.1643C244.157 36.9857 241.674 35.1929 238.085 35.1929H232.013V45.1393H237.878C241.535 45.1393 244.157 43.3429 244.157 40.1679V40.1643ZM245.741 59.0857C245.741 55.425 243.119 53.3536 238.913 53.3536H232.013V64.2643H238.706C243.397 64.2643 245.741 62.4679 245.741 59.0857Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2079_3030" x1="15.337" y1="29.6393" x2="60.9512" y2="75.2042" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2079_3030">%0A<rect width="264" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Ml={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function d4(){const e=_t(Ml,_n,wn);return n.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${po}")`}})})}const Ll={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function p4(e={}){const t=_t(Ll,_n,wn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),n.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}function $l({keys:e,anchor:t="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return n.jsx("span",{className:Ae("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:s.map((i,l)=>n.jsxs("span",{className:"shortcut-badge__group",children:[l>0&&n.jsx("span",{className:"shortcut-badge__plus",children:"+"}),n.jsx("kbd",{className:"shortcut-badge__key",children:i})]},`${i}-${l}`))})}const Sa=(e,t,a)=>e+(t-e)*a;function m4({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:i=null,answerId:l=null,showFeedback:u=!1,pulseSelected:c=!1,pulseSelectedDuration:d,pulseScale:m,clickable:p=!1,onSelectSpeaker:f,buttonSize:y=40,showIcon:v=!0,onCenterClick:C,centerLabel:b,centerDisabled:_=!1,centerAttention:h=!1,shortcutAnchor:w="top-right",shortcutScale:g,scaleShortcut:B=!1}){const{t:x}=_e.useTranslation(),N=Math.max(0,Math.min(1,a)),k=t/2,A=110/300,S=.18,E=V=>t*(A+(V-1)*S),H=V=>{const oe=E(V.row??1),ge=V.angleDeg*Math.PI/180;return{x:k+oe*Math.cos(ge),y:k+oe*Math.sin(ge)}},$=Math.max(...e.map(V=>V.row??1),1),K=t*.08,L=t*.1,j=t*.24,O=t-2*K,U=t-L-j,te=t-j/2,z=o.useMemo(()=>[...new Set(e.map(V=>V.deg))].sort((V,oe)=>V-oe),[e]),q=z.length,R=Math.max(68,q>1?O/(q-1):0),W=o.useMemo(()=>new Map(z.map((V,oe)=>[V,oe])),[z]),D=V=>{const oe=W.get(V.deg)??0,ge=k+(oe-(q-1)/2)*R,De=$>1?Math.min(68,U/($-1)):0,fe=De*($-1),ae=L+(U-fe)/2,de=$===1?L+U*.4:ae+($-(V.row??1))*De;return{x:ge,y:de}},P=V=>{const oe=H(V),ge=D(V);return{x:Sa(oe.x,ge.x,N),y:Sa(oe.y,ge.y,N)}},M={x:k,y:Sa(k,te,N)},F=Math.round(y*1.2),I=Math.round(Math.max(16,Math.min(80,y*.7))),Z=[],J=new Map;for(const V of e){const oe=V.row??1;J.has(oe)||J.set(oe,[]),J.get(oe).push(V)}for(const[V,oe]of J.entries()){if(oe.length<2)continue;const ge=[...oe].sort((Oe,dt)=>Oe.deg-dt.deg),De=ge.map(Oe=>P(Oe)),fe=ge.map(Oe=>Oe.deg),ae=fe[fe.length-1]-fe[0],de=ae/(fe.length-1),pe=360-ae,he=ge.length>=3&&de>0&&pe<=de*1.5,be=Math.round(E(V)*1e3)/1e3,Pe=(Oe,dt,lt,ot)=>{const ct=(dt.angleDeg-Oe.angleDeg+540)%360-180;if(ct===0)return`L ${ot.x} ${ot.y}`;if(N===0)return`A ${be} ${be} 0 0 ${ct>0?1:0} ${ot.x} ${ot.y}`;const ke=(Oe.angleDeg+ct/2)*Math.PI/180,He={x:k+be*Math.cos(ke),y:k+be*Math.sin(ke)},Be={x:(lt.x+ot.x)/2,y:(lt.y+ot.y)/2},Xe={x:Sa(He.x,Be.x,N),y:Sa(He.y,Be.y,N)},X={x:2*Xe.x-Be.x,y:2*Xe.y-Be.y};return`Q ${X.x} ${X.y} ${ot.x} ${ot.y}`},$e=he?[...ge,ge[0]]:ge,Ie=he?[...De,De[0]]:De;let Fe=`M ${Ie[0].x} ${Ie[0].y}`;for(let Oe=1;Oe<Ie.length;Oe++)Fe+=" "+Pe($e[Oe-1],$e[Oe],Ie[Oe-1],Ie[Oe]);Z.push({key:`arc-${V}`,d:Fe})}const Y=o.useMemo(()=>new Set(s??[]),[s]),ne=V=>({idle:"",active:x("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:x("soundCompass.state.played","\uB4E4\uC74C"),correct:x("soundCompass.state.correct","\uC815\uB2F5"),wrong:x("soundCompass.state.wrong","\uC624\uB2F5")})[V],ie=V=>{if(r===V.id)return"active";if(u){if(V.id===l)return"correct";if(V.id===i&&i!==l)return"wrong"}return Y.has(V.id)?"played":"idle"},ue=V=>r===V.id?"loop":u?V.id===l?"loop":null:c&&V.id===i?"once":null,Se=(V,oe)=>{switch(V){case"played":case"correct":return n.jsx(ps,{size:oe});case"wrong":return n.jsx(_s,{size:oe});default:return n.jsx(xs,{size:oe})}};return n.jsx("div",{className:"sound-compass",children:n.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:t,height:t},children:[n.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,className:"sound-compass__svg",children:[N===0&&e.map(V=>{const{x:oe,y:ge}=P(V);return n.jsx("line",{x1:M.x,y1:M.y,x2:oe,y2:ge,stroke:"#dde3ec",strokeWidth:"1"},V.id)}),Z.map(V=>n.jsx("path",{d:V.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},V.key))]}),h&&!_&&n.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:F,height:F,left:M.x-F/2,top:M.y-F/2}}),C?n.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${_?" sound-compass__center--disabled":""}`,style:{width:F,height:F,left:M.x,top:M.y},"aria-label":b,"aria-disabled":_||void 0,tabIndex:_?-1:0,onClick:_?void 0:C,children:n.jsx(Br,{size:I,color:"currentColor",strokeWidth:1.5})}):n.jsx("div",{className:"sound-compass__center",style:{width:F,height:F,left:M.x,top:M.y},children:n.jsx(Br,{size:I,color:"currentColor",strokeWidth:1.5})}),e.map((V,oe)=>{const{x:ge,y:De}=P(V),fe=ie(V),ae=ue(V),de={...g!==void 0||B?{"--shortcut-badge-scale":String(g??Math.max(.75,Math.min(3,y/56)))}:null,pointerEvents:p?"auto":"none",cursor:p?"pointer":"default",zIndex:fe!=="idle"?10:1},pe=y,he=Math.round(Math.max(10,Math.min(56,pe*.38))),be=Math.round(Math.max(7,Math.min(18,pe*.2))),Pe=Math.round(Math.max(10,Math.min(56,pe*.4))),$e=v==="answered"&&(fe==="played"||fe==="correct"||fe==="wrong"),Ie=v===!0||$e,Fe=!$e;return n.jsxs("div",{className:"sound-compass__speaker-pos",style:{...de,left:ge-pe/2,top:De-pe/2},children:[ae&&n.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${fe}`+(ae==="once"?" sound-compass__pulse--once":""),style:{width:pe,height:pe,...ae==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...m!==void 0?{"--sc-pulse-scale":String(m)}:null}}),n.jsxs("button",{type:"button",tabIndex:p?0:-1,"aria-disabled":p?void 0:!0,onClick:p?()=>f?.(V.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${fe}`,style:{width:pe,height:pe},"aria-label":ne(fe)?`${V.label}, ${ne(fe)}`:V.label,"aria-pressed":i!=null?V.id===i:void 0,children:[Ie&&Se(fe,he),Fe&&n.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:v===!0?be:Pe},children:oe+1})]}),V.shortcut&&n.jsx($l,{keys:V.shortcut,anchor:w,className:"sound-compass__speaker-shortcut"})]},V.id)})]})})}function h4({children:e,position:t="top-left",size:a=24,className:r=""}){return n.jsx("span",{className:Ae("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}function C4({orientation:e="horizontal",label:t,className:a=""}){const r=Ae("divider",`divider--${e}`,t&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?n.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):t?n.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[n.jsx("span",{className:"divider__line"}),n.jsx("span",{className:"divider__label caption-1",children:t}),n.jsx("span",{className:"divider__line"})]}):n.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function Rl({checked:e,onChange:t,name:a,value:r,disabled:s=!1,label:i,className:l=""}){const u=o.useId();return n.jsxs("label",{className:`radio${s?" radio--disabled":""} ${l}`.trim(),htmlFor:u,children:[n.jsx("input",{id:u,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:c=>t?.(c.target.checked)}),n.jsx("span",{className:"radio__dot"}),i&&n.jsx("span",{className:"radio__label body-2",children:i})]})}function f4({options:e,value:t,onChange:a,name:r,disabled:s=!1,direction:i="vertical",className:l="",ariaLabel:u}){const c=o.useId(),d=r??`radio-group-${c}`;return n.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":u,children:e.map(m=>n.jsx(Rl,{name:d,value:m.value,checked:t===m.value,disabled:s||m.disabled,label:m.label,onChange:p=>{p&&a?.(m.value)}},m.value))})}const g4={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function b4({tone:e="info",title:t,message:a,children:r,dismissible:s=!1,onDismiss:i,live:l,className:u=""}){const{t:c}=_e.useTranslation(),[d,m]=o.useState(!1),p=o.useRef(null),f=o.useCallback(()=>{const h=p.current;h&&h.contains(document.activeElement)&&Ya(h),m(!0),i?.()},[i]);if(d)return null;const y=Ae("alert",`alert--${e}`,u),v=l??(e==="danger"||e==="warning"?"assertive":"polite"),C=v==="assertive"?"alert":v==="polite"?"status":void 0,b=!!t,_=!!(a||r);return n.jsxs("div",{ref:p,className:y,role:C,children:[n.jsxs("div",{className:"alert__body",children:[n.jsxs("div",{className:"alert__header",children:[n.jsx(tt,{icon:g4[e],size:20,className:"alert__icon"}),b&&n.jsx("span",{className:"alert__title body-2",children:t}),!b&&_&&n.jsx("div",{className:"alert__message body-3",children:a||r})]}),b&&_&&n.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&n.jsx("button",{type:"button",className:"alert__dismiss",onClick:f,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const y4={ready:"search",guide:"info",error:"circle-alert"};function v4(e,t){const a=t.filter(Boolean);if(a.length===0)return e;const r=[];let s=0,i=0;for(const l of a){const u=e.indexOf(l,s);u<0||(u>s&&r.push(e.slice(s,u)),r.push(n.jsx("strong",{className:"search-summary__em body-2",children:l},i++)),s=u+l.length)}return s<e.length&&r.push(e.slice(s)),r}function x4({status:e="guide",label:t,children:a,emphasis:r,icon:s,className:i=""}){const l=s===!1?null:s??y4[e],u=Ae("search-summary",`search-summary--${e}`,i),c=t??a,d=typeof c=="string"&&r&&r.length>0?v4(c,r):c;return n.jsxs("div",{className:u,role:"status","aria-live":"polite",children:[l!=null&&n.jsx(tt,{icon:l,size:18,className:"search-summary__icon"}),n.jsx("span",{className:"search-summary__text body-2",children:d})]})}function ja({title:e,items:t}){const{t:a}=_e.useTranslation(),{anchorRect:r,openAt:s,close:i}=Aa(),l=o.useRef(null),u=Qr(!!r,(c,d)=>{c&&d?s(l.current?.querySelector("button")??d):i()},l);return n.jsxs("span",{ref:l,style:{display:"contents"},children:[n.jsx(me,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:c=>{aa(c)||s(c.currentTarget)},onPointerLeave:c=>{aa(c)||i()},onClick:c=>{u.touchPress(c.currentTarget)},onFocus:c=>{ra()||s(c.currentTarget)},onBlur:i}),r&&n.jsx(Wn,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:i})]})}function _4({items:e=[],value:t,onChange:a,className:r="",size:s=40}){const i=o.useId(),{t:l}=_e.useTranslation(),u=o.useRef(null),c=e.find(C=>!C.disabled)?.key,d=e.some(C=>C.key===t)?t:c??e[0]?.key,m=e.find(C=>C.key===d&&!C.disabled)?.key??c,p=()=>Array.from(u.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),f=(C,b=p())=>{if(b.length===0)return;const _=(C%b.length+b.length)%b.length;b[_]?.focus(),b[_]?.click()},y=C=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(C.key))return;C.preventDefault();const b=p(),_=b.indexOf(C.currentTarget);C.key==="ArrowRight"||C.key==="ArrowDown"?f(_+1,b):C.key==="ArrowLeft"||C.key==="ArrowUp"?f(_-1,b):C.key==="Home"?f(0,b):f(b.length-1,b)},v=e.find(C=>C.key===d);return n.jsxs("div",{className:`tabs ${r}`.trim(),children:[n.jsx("div",{ref:u,className:`tabs__list tabs__list--${s}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(C=>n.jsx("button",{id:`tabs__tab-${i}-${C.key}`,type:"button",role:"tab","aria-selected":C.key===d,"aria-controls":`tabs__panel-${i}-${C.key}`,disabled:C.disabled,tabIndex:C.key===m?0:-1,className:`tabs__tab body-2${C.key===d?" tabs__tab--active":""}`,onClick:()=>{C.key!==t&&a?.(C.key)},onKeyDown:y,children:C.label},C.key))}),v&&n.jsx("div",{id:`tabs__panel-${i}-${v.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${v.key}`,tabIndex:0,className:"tabs__panel",children:v.panel},v.key)]})}const w4={xs:12,sm:16,md:20,lg:28,xl:36};function B4(e){const t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"":t.length===1?[...t[0]].slice(0,2).join("").toUpperCase():([...t[0]][0]+[...t[t.length-1]][0]).toUpperCase()}function A4({src:e,name:t,size:a="md",shape:r="circle",className:s=""}){const{t:i}=_e.useTranslation(),[l,u]=o.useState(null),c=!!e&&l===e,d=t?B4(t):"",m=!!e&&!c,p=!m&&!!d,f=t||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return n.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":f,children:[m&&n.jsx("img",{className:"avatar__image",src:e,alt:f,onError:()=>u(e??null)}),!m&&p&&n.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!m&&!p&&n.jsx(tt,{icon:"user-round",size:w4[a],className:"avatar__icon"})]})}function k4(e,t){if(!t)return!0;const a=t.split(",").map(i=>i.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),s=e.type.toLowerCase();return a.some(i=>{const l=i.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?s.startsWith(l.slice(0,-1)):s===l})}function N4({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:i,onRemove:l,className:u=""}){const{t:c}=_e.useTranslation(),d=o.useRef(null),[m,p]=o.useState(!1),[f,y]=o.useState([]),v=i??f,C=x=>{if(!x||x.length===0)return;const N=Array.from(x).filter(A=>k4(A,t));if(N.length===0)return;const k=a?N:N.slice(0,1);if(i===void 0){const A=a?[...v,...k]:k;y(A),e?.(A)}else e?.(k)},b=x=>{x.preventDefault(),!r&&p(!0)},_=x=>{x.preventDefault(),p(!1)},h=x=>{x.preventDefault(),p(!1),!r&&C(x.dataTransfer.files)},w=x=>{const N=x.target;try{C(N.files)}finally{N.value=""}},g=()=>{r||d.current?.click()},B=x=>{if(!r&&(l?.(x),i===void 0)){const N=v.filter((k,A)=>A!==x);y(N),l||e?.(N)}};return n.jsxs("div",{className:`file-upload ${u}`.trim(),children:[n.jsxs("div",{className:Ae("file-upload__dropzone",m&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:g,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),g())},onDragOver:b,onDragLeave:_,onDrop:h,children:[n.jsx(tt,{icon:"upload",size:24,className:"file-upload__icon"}),n.jsx("span",{className:"file-upload__prompt body-2",children:c("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),n.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:x=>{x.stopPropagation(),g()},children:c("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),n.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:w,tabIndex:-1})]}),s&&v.length>0&&n.jsx("ul",{className:"file-upload__list",children:v.map((x,N)=>n.jsxs("li",{className:"file-upload__list-item body-3",children:[n.jsx("span",{className:"file-upload__file-name body-3",children:x.name}),n.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":c("fileUpload.removeAriaLabel",{name:x.name}),disabled:r,onClick:()=>B(N),children:n.jsx(tt,{icon:"x",size:14})})]},`${x.name}-${N}`))})]})}function D4({items:e,className:t=""}){const{t:a}=_e.useTranslation();return n.jsx("nav",{className:`breadcrumb ${t}`.trim(),"aria-label":a("breadcrumb.ariaLabel","\uC774\uB3D9 \uACBD\uB85C"),children:n.jsx("ol",{className:"breadcrumb__list",children:e.map((r,s)=>{const i=s===e.length-1;return n.jsxs("li",{className:"breadcrumb__item",children:[i?n.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:r.label}):r.href?n.jsx("a",{className:"breadcrumb__link body-3",href:r.href,target:r.target,rel:r.rel??(r.target==="_blank"?"noopener noreferrer":void 0),onClick:r.onClick,children:r.label}):r.onClick?n.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}):n.jsx("span",{className:"breadcrumb__text body-3",children:r.label}),!i&&n.jsx(tt,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const E4={small:14,medium:20,large:28};function S4({value:e,onChange:t,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:i,className:l=""}){const{t:u}=_e.useTranslation(),c=r||!t,[d,m]=o.useState(null),p=c?e:Number.isFinite(e)?Math.round(e):0,f=d??p,y=E4[s],v=x=>{x!==e&&t?.(x)},C=x=>{c||v(x)},b=x=>{c||ra()||m(x)},_=o.useRef(null),h=x=>{const N=Math.min(a,Math.max(1,x));v(N),Array.from(_.current?.querySelectorAll("[data-star]")??[]).find(k=>k.dataset.star===String(N))?.focus()},w=x=>{if(!c){switch(x.key){case"ArrowRight":case"ArrowUp":h((p||0)+1);break;case"ArrowLeft":case"ArrowDown":h((p||1)-1);break;case"Home":h(1);break;case"End":h(a);break;default:return}x.preventDefault()}},g=p>=1&&p<=a?Math.round(p):1,B=()=>{c||m(null)};return n.jsx("div",{className:`rating rating--${s}${c?" rating--readOnly":""} ${l}`.trim(),ref:_,onKeyDown:w,role:c?"img":"radiogroup","aria-label":c?u("rating.valueLabel",{value:e,max:a}):i??u("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:B,onPointerUp:x=>{x.pointerType==="touch"&&B()},onPointerCancel:x=>{x.pointerType==="touch"&&B()},children:Array.from({length:a},(x,N)=>{const k=N+1,A=Math.max(0,Math.min(1,f-N)),S=A>0&&A<1,E=n.jsxs("span",{className:"rating__star-wrap",children:[n.jsx(tt,{icon:"star",size:y,className:"rating__star rating__star--empty"}),A>0&&n.jsx("span",{className:`rating__star-fill${S?" rating__star-fill--half":""}`,style:S?{width:`${A*100}%`}:void 0,children:n.jsx(tt,{icon:"star",size:y,className:"rating__star rating__star--filled"})})]});return c?n.jsx("span",{className:"rating__item","aria-hidden":"true",children:E},k):n.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":p===k,"aria-label":u("rating.starLabel",{n:k}),"data-star":k,tabIndex:k===g?0:-1,onClick:()=>C(k),onMouseEnter:()=>b(k),children:E},k)})})}const j4=20,T4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function M4({value:e,onChange:t,palette:a=T4,size:r=40,className:s="",ariaLabel:i}){const{t:l}=_e.useTranslation();return n.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":i,children:a.map(u=>{const c=e?.toLowerCase()===u.toLowerCase();return n.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:u},onClick:()=>t(u),"aria-pressed":c,"aria-label":c?`${u} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:u,children:c&&n.jsx(tt,{icon:"check",size:j4,className:"color-picker__check"})},u)})})}function Pl({icon:e,label:t,tooltip:a,wrapperStyle:r,color:s,bgColor:i,useHover:l=!0,iconSize:u="medium"}){const{t:c}=_e.useTranslation(),d=u==="small",m=Ae("category-icon",d?"category-icon--small":""),p=d?16:20,f=o.useRef(null),[y,v]=o.useState(!1),C=o.useMemo(()=>{const k=r&&typeof r=="object"?{...r}:{};return!s&&!i?k:{...k,...s?{color:s,"--t-item-fg":s}:{},...i?{"--t-item-bg":i}:{}}},[r,s,i]),b=a||t,_=l&&!!b,[h,w]=o.useState(null);o.useLayoutEffect(()=>{y&&w(f.current?.getBoundingClientRect()??null)},[y]),o.useEffect(()=>{if(!l&&y)try{v(!1)}catch{}},[l,y]),o.useEffect(()=>{if(!y)return;const k=A=>{const S=f.current;if(!S)return;const E=A.target;E&&!S.contains(E)&&v(!1)};return document.addEventListener("pointerdown",k,!0),()=>document.removeEventListener("pointerdown",k,!0)},[y]);const g=o.useCallback(()=>{l&&v(!0)},[l]),B=o.useCallback(()=>{l&&v(!1)},[l]),x=o.useCallback(()=>v(!1),[]),N=o.useCallback(k=>{if(k.key==="Escape"){v(!1);return}(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),v(A=>!A))},[]);return n.jsxs("span",{ref:f,className:Ae("category-icon__wrap",_&&"category-icon__wrap--interactive"),onPointerEnter:g,onPointerLeave:B,onFocus:g,onBlur:B,onKeyDown:N,role:"button",tabIndex:0,"aria-label":typeof b=="string"?c("common.descriptionFor",{name:b,defaultValue:`${b} \uC124\uBA85`}):void 0,"aria-haspopup":!!b,"aria-expanded":y,"data-tooltip-ignore":!0,children:[n.jsx(tt,{icon:e,label:t,className:m,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:C,size:p}),y&&b&&n.jsx(vn,{anchorRect:h,text:typeof b=="string"?b:void 0,offset:8,onClose:x,className:"category-icon__tooltip",ariaLabel:typeof b=="string"?b:void 0})]})}let Ln=null;function er(e){if(Ln&&Ln!==e)try{Ln()}catch{}return Ln=e,()=>{Ln===e&&(Ln=null)}}function tr(e){if(Ln===e){Ln=null;try{e()}catch{}}}function mo(e,t){let a=()=>{};const r=new Promise(u=>{a=u});let s=!1;const i=u=>{if(!s){s=!0;try{t?.(u)}catch{}a(u)}};let l;try{l=new Audio(e)}catch{return i(!1),{el:{},stop:()=>{},done:r}}l.onended=()=>i(!0),l.onerror=()=>i(!1);try{l.play().catch(()=>i(!1))}catch{i(!1)}return{el:l,stop:()=>{try{l.pause()}catch{}i(!1)},done:r}}function L4(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(u=>u?.contextCode||u?.context_code).filter(Boolean).map(String);if(t==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}if(t==="SHORT_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"SHORT_S"}}if(t==="LONG_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LONG"}}if(t==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}const s=a.sentences||a.items||[],i=r(Array.isArray(s)?s:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function $4(e,t){const[a,r]=o.useState(!1),[s,i]=o.useState(-1),[l,u]=o.useState({key:"",urls:[]}),c=o.useRef(null),d=o.useRef(!1),m=o.useRef(null),p=o.useRef(null),[f,y]=o.useState(!1),v=o.useRef([]),{previewCodes:C,previewBucket:b}=L4(e,t),_=`${C.join(",")}|${b??""}`,h=o.useMemo(()=>l.key===_?l.urls:[],[l,_]);o.useEffect(()=>{if(!C.length)return;let g=!1;return(async()=>{const B=[],x=[];for(const N of C)try{const k=Zs(N,b);if(!k){B.push("");continue}let A=null;try{A=await Xs(k)}catch{}if(!A)try{const S=await Js(k);S&&(A=URL.createObjectURL(S),x.push(A))}catch{}B.push(A??"")}catch{B.push("")}g?x.forEach(N=>{try{URL.revokeObjectURL(N)}catch{}}):(v.current.forEach(N=>{try{URL.revokeObjectURL(N)}catch{}}),v.current=x,u({key:_,urls:B}))})(),()=>{g=!0}},[C.join(","),b]),o.useEffect(()=>()=>{v.current.forEach(g=>{try{URL.revokeObjectURL(g)}catch{}}),v.current=[]},[]);const w=o.useCallback(async g=>{if(g.stopPropagation(),g.preventDefault(),d.current){m.current&&tr(m.current),d.current=!1;try{c.current?.pause()}catch{}r(!1),i(-1);return}if(!h.filter(Boolean).length)return;let B=null;const x=()=>{d.current=!1,B?.stop()};m.current=x;const N=er(x);d.current=!0,r(!0);for(let k=0;k<h.length&&d.current;k++){const A=h[k];if(A&&(i(k),B=mo(A),c.current=B.el,!await B.done))break}N(),m.current===x&&(m.current=null,d.current=!1,r(!1),i(-1))},[h]);return o.useEffect(()=>()=>{m.current&&tr(m.current),d.current=!1;try{c.current?.pause()}catch{}c.current=null},[]),{playing:a,playingIndex:s,previewUrls:h,previewHover:f,setPreviewHover:y,previewBtnRef:p,handlePreview:w}}const R4=e=>{if(!e)return[];const t=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(t)return[String(t)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const s=r;return s.sentence||s.text||s.context||s.question||s.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function ho(e){const{index:t,type:a,trainingData:r,ariaLabel:s,depth:i,renderPopup:l,completed:u,completedIds:c,selectedIds:d,tooltipText:m,useDescriptionTooltip:p=!1,onRemove:f,hideCheckBadge:y=!1,showTypeLabel:v=!1,onComplete:C,onSelect:b,onMore:_,countLabelOverride:h,size:w="square"}=e||{},{t:g}=_e.useTranslation(),[B,x]=o.useState(!1),N=o.useRef(null),[k,A]=o.useState(!1);o.useEffect(()=>{N.current?.matches(":hover")&&A(!0)},[]);const{playing:S,playingIndex:E,previewUrls:H,previewHover:$,setPreviewHover:K,previewBtnRef:L,handlePreview:j}=$4(r,a?.key),O=o.useCallback(()=>{b?b():x(!0)},[b]),U=o.useCallback(()=>x(!1),[]),te=o.useCallback(()=>A(!0),[]),z=o.useCallback(()=>A(!1),[]),q=o.useCallback(()=>K(!0),[K]),R=o.useCallback(()=>K(!1),[K]),[W,D]=o.useState(null);o.useLayoutEffect(()=>{$&&D(L.current?.getBoundingClientRect()??null)},[$,L]);const[P,M]=o.useState(null);o.useLayoutEffect(()=>{k&&!B&&p&&M(N.current?.getBoundingClientRect()??null)},[k,B,p]);const F=o.useCallback(Be=>{Be.target===Be.currentTarget&&(Be.key==="Enter"||Be.key===" ")&&(Be.preventDefault(),O())},[O]),I=r||null,Z=o.useMemo(()=>{if(!p)return null;const Be=m?(Array.isArray(m)?m:[m]).filter(Boolean):null,Xe=Be&&Be.length>0?Be:R4(I);return Xe&&Xe.length>0?Xe:null},[p,m,I]),J=o.useCallback(Be=>{Be.stopPropagation(),f?.()},[f]),Y=o.useCallback(Be=>Be.stopPropagation(),[]),ne=o.useCallback(Be=>{typeof C=="function"&&C(Be)},[C]),ie=u||(c&&r?.id!=null?c.has(String(r.id)):!1),ue=!ie&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);sl("speechear.popup.close",U);const Se=gi(),V=`${a?.label||""} ${t+1}`,oe=I?.title||I?.name||V;let ge=a?.icon,De,fe="",ae="";try{const Be=I?.category_0||I?.category_main_code||I?.category_main,Xe=I?.category_1||I?.category_sub_code||I?.category_sub,X=Se.find(le=>le.key===Be);X?.icon&&(ge=X.icon),!De&&X?.color&&(De={"--t-item-fg":X.color}),!De&&I?.iconColor&&(De={"--t-item-fg":I.iconColor}),fe=X?g(`topic.${X.key}`,{defaultValue:X.label||""}):"";try{const le=X?.subs?.find(we=>we.key===Xe);ae=le?g(`topic.sub.${le.key}`,{defaultValue:le.label||""}):""}catch{}}catch{}const de=ae?`${fe} / ${ae}`:fe||a?.label||oe,pe=Be=>g("training.countQuestions",{n:Be}),he=Be=>g("training.countSentences",{n:Be});let be="";try{if(I)if(a?.key==="LISTEN_IN_NOISE"){let Be=0;Array.isArray(I.items)&&I.items.length>0?Be=I.items.length:Array.isArray(I.sentences)&&I.sentences.length>0?Be=I.sentences.length:I.sentences&&(Be=1),be=he(Be)}else if(a?.key==="SHORT_STORY"){let Be=1;Array.isArray(r?.items)?Be=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?Be=r.raw.items.length:Array.isArray(I?.questions)?Be=I.questions.length:Array.isArray(I?.sentences)&&(Be=I.sentences.length),be=pe(Be)}else if(a?.key==="LONG_STORY"){let Be=1;if(Array.isArray(I.items)&&I.items.length>0){const Xe=I.items.reduce((X,le)=>{const we=le.questionItems;return Array.isArray(we)?X+we.length:Array.isArray(le.questions)?X+le.questions.length:X},0);Be=Xe>0?Xe:I.items.length}else Array.isArray(I.questions)&&I.questions.length>0?Be=I.questions.length:Array.isArray(I.sentences)&&I.sentences.length>0&&(Be=I.sentences.length);be=pe(Be)}else if(a?.key==="ORDERING_SENTENCE"){let Be=1;Array.isArray(I.items)&&I.items.length>0?Be=I.items.length:Array.isArray(I.sentences)&&I.sentences.length>0&&(Be=I.sentences.length),be=he(Be)}else Array.isArray(I.items)&&(be=I.items.length>0?pe(I.items.length):"")}catch{}const Pe=w==="row",$e=w==="list"||Pe,Ie=w==="compact",Fe=w==="small",Oe=Fe&&a?.key?JC().find(Be=>Be.key===a.key):void 0,dt=Oe?bi[Oe.key]:void 0,lt=Oe?dt?g(`trainingType.${dt}.title`,{defaultValue:Oe.label}):Oe.label??"":"",ot=v&&a?.label&&a.label!==String(oe)?String(a.label):Fe&&lt&&lt!==String(oe)?lt:"",ct=!!ot,ke=h!==void 0?h:be,He=[ot,typeof oe=="string"?oe:"",ke].map(Be=>String(Be??"").trim()).filter(Boolean).join(" ");return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:N,className:`training-block-button${$e?" training-block-button--list":""}${Pe?" training-block-button--row":""}${Ie?" training-block-button--compact":""}${Fe?" training-block-button--small":""}${ie?" training-block-button--completed":""}${ue?" training-block-button--selected":""}${ct&&!Fe?" training-block-button--withType":""}${Fe&&!ct?" training-block-button--no-type-label":""}`,onClick:O,onPointerEnter:te,onPointerLeave:z,role:"button",tabIndex:0,onKeyDown:F,"aria-label":typeof s=="string"?s:He||void 0,title:!p&&m&&(Array.isArray(m)?m.filter(Boolean).join(`
853
- `):m)||void 0,children:[n.jsxs("div",{className:"training-block-button__left",children:[v&&a?.label&&a.label!==String(oe)&&n.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Fe&&lt&&lt!==String(oe)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:lt}),n.jsx(Pl,{icon:ge,label:oe,tooltip:de,wrapperStyle:De,iconSize:Fe||Ie?"small":"medium"}),!y&&(ie||ue)&&!(f&&k)&&n.jsx(wt,{className:f?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":ie?g("training.completed","\uD6C8\uB828 \uC644\uB8CC"):g("training.selected","\uC120\uD0DD\uB428")}),f&&n.jsx(wt,{className:`training-block-button__remove${k?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":g("common.remove","\uC81C\uAC70"),onClick:J}),n.jsx("div",{className:`training-block-button__title ${Ie?"body-3":Fe?"body-3b":"h3"}`,children:String(oe)}),n.jsxs("div",{className:"training-block-button__description",children:[ke?n.jsx("div",{className:`training-block-button__count ${Fe?"caption-2":"caption-1"}`,children:ke}):null,n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(tt,{icon:"chevron-right",label:g("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Fe?12:20})})]}),($e&&!Pe||Fe)&&H.length>0&&n.jsx("div",{ref:L,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:Y,onPointerEnter:q,onPointerLeave:R,children:n.jsx(me,{htmlType:"button",size:Fe?28:32,type:"dot",icon:S?"pause":"play",variant:Fe?"transparent-lightGray":"default",useBorder:!1,selected:S,ariaLabel:String(oe).trim()?S?g("training.stopFor",{name:oe,defaultValue:`${oe} \uC815\uC9C0`}):g("training.previewFor",{name:oe,defaultValue:`${oe} \uBBF8\uB9AC \uB4E3\uAE30`}):S?g("training.stop","\uC815\uC9C0"):g("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:j})})]}),_&&n.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:Be=>{Be.stopPropagation(),_(Be)},children:n.jsx(me,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:String(oe).trim()?g("common.moreFor",{name:oe}):g("common.more","\uB354\uBCF4\uAE30")})})]}),$&&n.jsx(vn,{anchorRect:W,text:S?g("training.stop","\uC815\uC9C0"):g("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:R}),k&&!B&&p&&(Z?n.jsx(Wn,{anchorRect:P,items:Z,activeIndex:E,onClose:z}):I?.subTitle?n.jsx(vn,{anchorRect:P,text:I.subTitle,offset:8,onClose:z}):null),B&&l&&l({trainingData:I,typeKey:a?.key??"",onClose:U,onComplete:ne,popupTitle:String(oe),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:ge,popupIconTooltip:String(de),popupWrapperStyle:De})]})}const Fl=200;function P4(e){return e.itemId?(af()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function Il({plan:e,anchorRect:t,offset:a=12,onClose:r}){const{t:s}=_e.useTranslation(),i=o.useMemo(()=>of(s).map(u=>({type:u,items:(e.items??[]).filter(c=>c.trainingType===u.key)})).filter(u=>u.items.length>0),[e.items,s]);if(i.length===0)return null;const l=n.jsx("div",{className:"tooltip-training__box",children:n.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({type:u,items:c},d)=>[d>0?n.jsx("div",{className:"tooltip-training__divider"},`div-${u.key}`):null,n.jsxs("div",{className:"tooltip-training__section",children:[n.jsx("div",{className:"tooltip-training__section-header",children:n.jsx("span",{className:"tooltip-training__type-label body-3b",children:u.label})}),n.jsx("div",{className:"tooltip-training__items",children:c.map((m,p)=>{const f=P4(m);return f?n.jsx(ho,{index:p,type:u,trainingData:f,size:"compact",hideCheckBadge:!0},m.itemId??p):null})})]},u.key)])})});return t?n.jsx(un,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:s("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const F4=200;function I4({icon:e,count:t,title:a,plan:r,tooltip:s=!0,className:i="",onClick:l,onMouseEnter:u,onMouseLeave:c}){const d=Ae("count-tile",(!!l||!!u||s&&!!r)&&"count-tile--interactive",l&&"count-tile--clickable",i),m=o.useRef(null),[p,f]=o.useState(null),y=o.useRef(null),v=o.useRef(null),C=!!(p&&r&&s),b=o.useCallback(()=>{y.current&&(clearTimeout(y.current),y.current=null),v.current&&(clearTimeout(v.current),v.current=null)},[]),_=o.useCallback(()=>{b(),f(null)},[b]),h=o.useCallback(()=>{!s||!r||(b(),y.current=setTimeout(()=>{y.current=null,f(m.current?.getBoundingClientRect()??null)},Fl))},[s,r,b]),w=o.useCallback(()=>{y.current&&(clearTimeout(y.current),y.current=null),!v.current&&(v.current=setTimeout(()=>{v.current=null,f(null)},F4))},[]);return o.useEffect(()=>()=>{b()},[b]),o.useEffect(()=>{(!s||!r)&&_()},[s,r,_]),o.useEffect(()=>{if(!C)return;const g=x=>x instanceof Element&&(m.current?.contains(x)||!!x.closest(".tooltip-training")),B=x=>{g(x.target)?b():w()};return document.addEventListener("pointerover",B,!0),()=>document.removeEventListener("pointerover",B,!0)},[C,b,w]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:m,className:d,onClick:l?g=>{_(),l(g)}:void 0,onKeyDown:l?g=>{g.key!=="Enter"&&g.key!==" "||(g.preventDefault(),g.currentTarget.click())}:void 0,onPointerEnter:g=>{g.pointerType==="touch"||g.pointerType==="pen"?_():h()},onMouseEnter:u,onMouseLeave:g=>{w(),c?.(g)},role:l?"button":"img",tabIndex:l?0:void 0,"aria-label":`${a} ${t}`,children:[n.jsx(tt,{icon:e,size:20,className:"count-tile__icon"}),n.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]}),p&&r&&n.jsx(Il,{plan:r,anchorRect:p,onClose:_})]})}let Ta=0,Ol="",Co="",Ma=0;function Hl(){return zl(!1)}function O4(){return zl(!0)}function zl(e){const t=typeof document<"u";Ta===0&&t&&(Ol=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Ma===0&&(Co=document.body.style.paddingRight),Ma++,document.body.style.paddingRight="0px"),Ta++;let a=!1;return()=>{a||(a=!0,Ta=Math.max(0,Ta-1),e&&t&&(Ma=Math.max(0,Ma-1),Ma===0&&(Co?document.body.style.paddingRight=Co:document.body.style.removeProperty("padding-right"))),Ta===0&&t&&(document.body.style.overflow=Ol))}}function H4(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:n.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function z4({open:e,onClose:t,ariaLabel:a,title:r,children:s,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:u=!0,showClose:c=!0,className:d,contentClassName:m}){const{t:p}=_e.useTranslation(),f=o.useId(),y=o.useRef(null),v=o.useCallback(()=>t(),[t]);o.useEffect(()=>{if(!e)return;const h=document.activeElement,w=Hl(),g=y.current;return Yr(g,h),g?.focus(),()=>{w();const B=document.activeElement;(!B||B===document.body||g&&g.contains(B))&&Zr(h)?.focus?.()}},[e]);const C=o.useRef(v),b=o.useRef(u);o.useEffect(()=>{C.current=v,b.current=u}),o.useEffect(()=>{if(e)return Vn(()=>{b.current&&C.current()})},[e]);const _=o.useRef(!1);return Gr(y,e),!e||typeof document>"u"?null:en.createPortal(n.jsx("div",{className:Ae("dialog",d),onPointerDown:l?h=>{_.current=h.target===h.currentTarget}:void 0,onMouseDown:h=>{h.target===h.currentTarget&&h.preventDefault()},onClick:l?h=>{const w=_.current;_.current=!1,w&&h.target===h.currentTarget&&v()}:void 0,children:n.jsxs("div",{ref:y,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?f:void 0,tabIndex:-1,className:Ae("dialog__surface",`dialog__surface--${i}`,m),onClick:h=>h.stopPropagation(),children:[r?n.jsx("div",{className:"dialog__header",children:n.jsx("h2",{id:f,className:"dialog__title h4b",children:r})}):null,c?n.jsx("button",{type:"button",className:"dialog__close","aria-label":p("common.close","\uB2EB\uAE30"),onClick:v,children:n.jsx(H4,{})}):null,n.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function V4({columns:e,rows:t,rowKey:a,title:r,toolbar:s,empty:i,loading:l,caption:u,className:c=""}){const{t:d}=_e.useTranslation(),m=!l&&t.length===0;return n.jsxs("div",{className:Ae("board",c),children:[r||s?n.jsxs("div",{className:"board__head",children:[r?n.jsx("h2",{className:"board__title",children:r}):n.jsx("span",{}),s?n.jsx("div",{className:"board__toolbar",children:s}):null]}):null,n.jsxs("table",{className:"board__table",children:[u?n.jsx("caption",{className:"board__caption",children:u}):null,n.jsx("thead",{children:n.jsx("tr",{children:e.map(p=>n.jsx("th",{scope:"col",className:Ae("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),n.jsx("tbody",{children:l?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):m?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:i??d("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):t.map((p,f)=>n.jsx("tr",{className:"board__row",children:e.map(y=>n.jsx("td",{className:Ae("board__td",`board__cell--${y.align??"left"}`),children:y.render(p,f)},y.key))},a(p,f)))})]})]})}function W4({name:e,role:t,photo:a,media:r,credentials:s,size:i=190,className:l=""}){return n.jsxs("div",{className:Ae("person-card",l),children:[n.jsx("div",{className:"person-card__photo",style:{width:i,height:i},children:r??(a?n.jsx("img",{src:a,alt:t?`${e} ${t}`:e}):null)}),n.jsx("h3",{className:"person-card__name",children:e}),t?n.jsx("p",{className:"person-card__role",children:t}):null,s?.length?n.jsx("ul",{className:"person-card__credentials",children:s.map(u=>n.jsx("li",{children:u},u))}):null]})}function q4({groups:e,className:t=""}){return n.jsx("div",{className:Ae("timeline",t),children:e.map(a=>n.jsxs("section",{className:"timeline__group",children:[n.jsx("h3",{className:"timeline__title",children:a.title}),n.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,s)=>n.jsxs("li",{className:"timeline__row",children:[r.label?n.jsx("span",{className:"timeline__label",children:r.label}):null,n.jsx("div",{className:"timeline__items",children:r.items.map((i,l)=>n.jsx("p",{children:i},l))})]},`${r.label??""}-${s}`))})]},a.title))})}function U4({title:e,kind:t,body:a,badge:r,badgeSrc:s,footer:i,width:l,className:u=""}){const c=r??(s?n.jsx("img",{src:s,alt:""}):null);return n.jsxs("div",{className:Ae("publication-card",u),style:l?{width:l,flexShrink:0}:void 0,children:[c?n.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:c}):null,n.jsx("h3",{className:"publication-card__title",children:e}),t?n.jsx("p",{className:"publication-card__kind",children:t}):null,n.jsx("p",{className:"publication-card__body",children:a}),i?n.jsx("div",{className:"publication-card__footer",children:i}):null]})}function G4({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const s=wa(a);return o.useEffect(()=>{const i=setTimeout(()=>s.current?.(),r);return()=>clearTimeout(i)},[r,s]),n.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:n.jsx("img",{src:e,alt:t,className:"splash-logo__image"})})}function K4({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:s=2,tone:i="dark",className:l=""}){const u=s===1?"h1":"h2";return n.jsxs("div",{className:Ae("section-header",`section-header--${i}`,l),children:[e?n.jsxs("p",{className:"section-header__eyebrow",children:[t?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"section-header__index",children:t}),n.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?n.jsx(u,{className:"section-header__title",children:a}):null,r?n.jsx("div",{className:"section-header__description",children:r}):null]})}function Y4({items:e,className:t=""}){return n.jsx("ul",{className:Ae("company-meta",t),children:e.map((a,r)=>n.jsxs("li",{className:"company-meta__item",children:[r>0?n.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function Vl(e){return typeof e=="string"?e:e.label}function Wl({value:e,onChange:t,suggestions:a,openOnFocus:r=!1,filterSuggestions:s,onSelectSuggestion:i,autoActiveFirst:l=!1}){const u=o.useId(),[c,d]=o.useState(!1),[m,p]=o.useState(-1),f=o.useRef(null),y=o.useMemo(()=>{if(!a.length)return[];const E=e??"";return s===!1?a:E?typeof s=="function"?s(a,E):a.filter(H=>Vl(H).toLowerCase().includes(E.toLowerCase())):r?a:[]},[a,e,r,s]),[v,C]=o.useState(!1),b=o.useRef([]),_=v&&y.length===0?b.current:y;o.useEffect(()=>{_.length&&(b.current=_)},[_]);const h=o.useCallback(()=>C(!0),[]),w=o.useCallback(()=>C(!1),[]),g=l?0:-1;o.useEffect(()=>{c||p(g)},[c,g]),o.useEffect(()=>()=>{f.current&&clearTimeout(f.current)},[]);const B=m<_.length?m:g<_.length?g:-1,x=o.useCallback(E=>{i?i(E):t?.(Vl(E)),d(!1)},[t,i]),N=o.useCallback(()=>d(!0),[]),k=o.useCallback(()=>{d(!0),p(g)},[g]),A=o.useCallback(()=>{f.current=setTimeout(()=>d(!1),120)},[]),S=o.useCallback(E=>{E.nativeEvent.isComposing||E.keyCode===229||(E.key==="ArrowDown"?(E.preventDefault(),d(!0),p(H=>Math.min(_.length-1,(H<_.length?H:g)+1))):E.key==="ArrowUp"?(E.preventDefault(),p(H=>Math.max(g,(H<_.length?H:_.length)-1))):E.key==="Enter"?B>=0&&x(_[B]):E.key==="Escape"&&c&&(E.preventDefault(),d(!1)))},[_,B,c,x,g]);return{listId:u,open:c,activeIdx:B,filtered:_,handleFocus:N,handleBlur:A,handleInput:k,handleKeyDown:S,handleSelect:x,handleCompositionStart:h,handleCompositionEnd:w}}const fo=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Gn(e){const{value:t,defaultValue:a,name:r,inputRef:s,onChange:i,label:l,ariaLabel:u,ariaDescribedBy:c,required:d,placeholder:m,ghostText:p,ghostHint:f,type:y="text",disabled:v=!1,readOnly:C=!1,error:b,helperText:_,maxLength:h,size:w=48,variant:g="input",fullWidth:B=!1,newline:x=!1,multiline:N=!1,rows:k=3,leftIcon:A,rightIcon:S,clearable:E=!1,list:H,showCount:$=!0,className:K="",onFocus:L,onBlur:j,onKeyDown:O,onEnter:U,inputMode:te,autoComplete:z,autoFocus:q,suggestions:R,filterSuggestions:W,onSelectSuggestion:D,autoActiveFirst:P,openOnFocus:M=!1}=e,F=C||v?void 0:R,{t:I}=_e.useTranslation(),Z=o.useId();!l&&!u&&Gt(`TextField:unnamed:${Z}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const J=`tf-${Z}`,Y=`tf-helper-${Z}`,ne=o.useRef(null),ie=Wl({value:t??"",onChange:i,suggestions:F??[],openOnFocus:M,filterSuggestions:W,onSelectSuggestion:D,autoActiveFirst:P}),ue=!!F&&ie.open&&ie.filtered.length>0,Se=o.useRef(null),[V,oe]=o.useState(null),ge=o.useCallback(()=>{const ke=Se.current;if(!ke||typeof window>"u")return;const He=ke.getBoundingClientRect(),Be=230,Xe=window.innerHeight-He.bottom<Be+8&&He.top>Be+8;oe({position:"fixed",left:He.left,width:He.width,...Xe?{bottom:window.innerHeight-He.top+8}:{top:He.bottom+8},zIndex:ka(ke)})},[]);fo(()=>{if(!ue)return;ge();const ke=He=>{const Be=He.target;Be&&Be.nodeType===1&&Be.closest?.(".text-field__suggestions")||ge()};return window.addEventListener("scroll",ke,!0),window.addEventListener("resize",ge),()=>{window.removeEventListener("scroll",ke,!0),window.removeEventListener("resize",ge)}},[ue,ge]);const De=o.useCallback(ke=>{ne.current=ke,typeof s=="function"?s(ke):s&&(s.current=ke)},[s]),fe=p?`${p}${f??I("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:m,ae=t!==void 0,de=ae&&y==="password",[pe,he]=o.useState((a??"").length),be=ae?(t??"").length:pe,Pe=o.useRef(t);fo(()=>{Pe.current=t}),o.useEffect(()=>{const ke=ne.current;if(!de||!ke)return;const He=t??"";ke.value!==He&&(ke.value=He)},[de,t]),o.useEffect(()=>{if(!x||!ne.current)return;const ke=ne.current;ke.style.height="",ke.scrollHeight>ke.clientHeight&&(ke.style.height=`${ke.scrollHeight}px`)},[t,pe,x]);const $e=h!=null&&be>h,Ie=w===32?16:20,Fe=Ae("text-field",`text-field--s${w}`,g==="display"?"text-field--display":"",B?"text-field--full-width":"",v?"text-field--disabled":"",C?"text-field--readonly":"",b?"text-field--error":"",A?"text-field--has-left-icon":"",S||E?"text-field--has-right-icon":"",K),Oe={id:J,...de?{}:ae?{value:t}:{defaultValue:a},ref:De,placeholder:fe,name:r,disabled:v,readOnly:C,autoFocus:q,maxLength:h,list:H,inputMode:te,autoComplete:z,"aria-label":!l&&u?u:void 0,"aria-required":d,"aria-invalid":!!b,"aria-describedby":[_||b?Y:null,c].filter(Boolean).join(" ")||void 0,role:F?"combobox":void 0,"aria-autocomplete":F?"list":void 0,"aria-haspopup":F?"listbox":void 0,"aria-expanded":F?ue:void 0,"aria-controls":ue?ie.listId:void 0,"aria-activedescendant":ue&&ie.activeIdx>=0?`${ie.listId}-option-${ie.activeIdx}`:void 0,onChange:ke=>{const He=ke.target;ae||he(He.value.length),i?.(He.value),F&&ie.handleInput(),de&&queueMicrotask(()=>{const Be=Pe.current??"";He.value!==Be&&(He.value=Be)})},onCompositionStart:F?ie.handleCompositionStart:void 0,onCompositionEnd:F?ie.handleCompositionEnd:void 0,onFocus:(ke=>{L?.(ke),F&&ie.handleFocus()}),onBlur:(ke=>{j?.(ke),F&&ie.handleBlur()}),onKeyDown:(ke=>{const He=(ke.key==="Tab"&&!ke.shiftKey||ke.key===" ")&&!ke.nativeEvent.isComposing;if(p&&He&&!C&&!v&&!(ke.currentTarget.value??"").trim()){ke.preventDefault();const Be=ke.currentTarget;ae||(Be.value=p,he(p.length)),i?.(p);return}F&&ke.key==="Enter"&&!ke.nativeEvent.isComposing&&ie.activeIdx>=0?ke.preventDefault():U&&ke.key==="Enter"&&!ke.nativeEvent.isComposing&&(ke.preventDefault(),U()),O?.(ke),F&&ie.handleKeyDown(ke)})},dt=E&&!v&&!C&&be>0,lt=()=>x?n.jsx("textarea",{...Oe,className:"text-field__input text-field__input--auto body-2",rows:1}):N?n.jsx("textarea",{...Oe,className:"text-field__input text-field__input--textarea body-2",rows:k}):n.jsx("input",{...Oe,type:y,className:"text-field__input body-2"}),ot=g==="display"&&!x&&!N&&!!fe,ct=()=>n.jsxs(n.Fragment,{children:[lt(),ot&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:fe})]});return n.jsxs("div",{ref:Se,className:Fe,children:[l&&n.jsxs("label",{htmlFor:J,className:"text-field__label caption-1",children:[l,d&&n.jsx("span",{className:"text-field__required",children:"*"})]}),n.jsxs("div",{className:"text-field__wrap",children:[A&&n.jsx("span",{className:"text-field__icon text-field__icon--left",children:n.jsx(tt,{icon:A,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ie})}),ct(),h!=null&&$&&n.jsxs("span",{className:`text-field__count caption-2${$e?" text-field__count--over":""}`,children:[be,"/",h]}),dt&&n.jsx(me,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:I("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:ke=>{ke.preventDefault()},onClick:()=>{!ae&&ne.current&&(ne.current.value="",he(0)),i?.("")},tabIndex:-1}),S&&!dt&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(tt,{icon:S,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ie})})]}),!!F&&n.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:ie.open&&(t??"").length>0&&ie.filtered.length===0?I("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),ue&&(typeof document>"u"?null:en.createPortal(n.jsx("ul",{id:ie.listId,className:"text-field__suggestions",role:"listbox",style:V??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:ie.filtered.map((ke,He)=>n.jsx("li",{id:`${ie.listId}-option-${He}`,role:"option","aria-selected":He===ie.activeIdx,className:`text-field__suggestion body-2${He===ie.activeIdx?" is-active":""}`,onMouseDown:Be=>Be.preventDefault(),onClick:()=>{ie.handleSelect(ke),ne.current?.focus()},children:typeof ke=="string"?ke:n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"text-field__suggestion-label",children:ke.label}),ke.hint&&n.jsx("span",{className:"text-field__suggestion-hint caption-1",children:ke.hint})]})},typeof ke=="string"?`${ke}-${He}`:ke.id))}),document.body)),(_||b)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:Y,className:"text-field__helper caption-1",role:b?"alert":void 0,children:b||_})})]})}function dn({options:e,value:t,onChange:a,placeholder:r,disabled:s=!1,block:i=!1,size:l=48,error:u=!1,className:c="",ariaLabel:d,ariaDescribedBy:m}){const{t:p}=_e.useTranslation(),f=r??p("dropdown.placeholder","\uC120\uD0DD"),y=o.useId(),v=o.useId(),C=o.useRef(null),b=o.useCallback((L,j)=>{const O=window.innerHeight-L.bottom<260&&L.top>260;return{position:"fixed",left:L.left,minWidth:L.width,...O?{bottom:window.innerHeight-L.top+6}:{top:L.bottom+6},zIndex:ka(j)}},[]),{open:_,setOpen:h,toggle:w,style:g,triggerRef:B,menuRef:x}=Na({computeStyle:b}),[N,k]=o.useState(-1),A=o.useCallback(()=>k(-1),[]),S=e.find(L=>L.value===t);o.useEffect(()=>{if(_){const L=e.findIndex(j=>j.value===t);k(L>=0?L:e.length?0:-1),requestAnimationFrame(()=>{const j=x.current;if(!j)return;const O=j.querySelectorAll(".dropdown__option")[L];O&&(j.scrollTop=Math.max(0,O.offsetTop-j.clientHeight/2+O.clientHeight/2))})}},[_]),o.useEffect(()=>{_&&k(L=>{if(L>=0&&L<e.length)return L;const j=e.findIndex(O=>O.value===t);return j>=0?j:e.length?0:-1})},[_,e.length]);const E=o.useCallback(()=>{s||w()},[s,w]),H=o.useCallback(L=>{L.disabled||s||(L.value!==t&&a?.(L.value),h(!1))},[a,h,s,t]);o.useEffect(()=>{s&&h(!1)},[s,h]);const $=o.useCallback(L=>{if(!s){if(!_){(L.key==="Enter"||L.key===" "||L.key==="ArrowDown")&&(L.preventDefault(),h(!0));return}if(L.key==="Escape"){L.preventDefault(),h(!1);return}L.key==="ArrowDown"?(L.preventDefault(),k(j=>{let O=j+1;for(;O<e.length&&e[O].disabled;)O++;return O<e.length?O:j})):L.key==="ArrowUp"?(L.preventDefault(),k(j=>{let O=j-1;for(;O>=0&&e[O].disabled;)O--;return O>=0?O:j})):(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),e[N]?H(e[N]):h(!1))}},[s,_,e,N,H,h]),K=_?n.jsx("div",{ref:x,id:y,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:g,onMouseLeave:A,onMouseDown:L=>L.preventDefault(),children:e.map((L,j)=>n.jsxs("button",{id:`${y}-option-${j}`,type:"button",role:"option","aria-selected":L.value===t,className:Ae("dropdown__option body-2",L.value===t?"dropdown__option--active":"",j===N?"dropdown__option--active":"",L.disabled?"dropdown__option--disabled":""),onMouseDown:O=>O.preventDefault(),onClick:()=>H(L),onMouseEnter:()=>k(j),disabled:L.disabled,children:[n.jsx("span",{className:"dropdown__option-check",children:L.value===t&&n.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),L.label]},L.value))}):null;return n.jsxs("div",{ref:C,className:Ae("dropdown",`dropdown--s${l}`,_?"dropdown--open":"",i?"dropdown--block":"",u?"dropdown--error":"",c),onKeyDown:$,children:[n.jsxs("button",{ref:B,type:"button",className:"dropdown__trigger",role:"combobox","aria-haspopup":"listbox","aria-expanded":_,"aria-controls":_?y:void 0,"aria-activedescendant":_&&N>=0?`${y}-option-${N}`:void 0,"aria-label":d,"aria-describedby":[d&&S?v:"",m??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:s,onClick:E,onBlur:L=>{_&&!x.current?.contains(L.relatedTarget)&&h(!1)},children:[n.jsx("span",{id:v,className:`dropdown__trigger-label body-2${S?"":" dropdown__trigger-label--placeholder"}`,children:S?S.label:f}),n.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&en.createPortal(K,C.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function nr({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:s,className:i=""}){const{t:l}=_e.useTranslation(),u=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),c=s??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,t),m=()=>a(Math.max(1,Math.min(d,e-1))),p=()=>a(Math.min(d,e+1));return n.jsxs("div",{className:Ae("pagination",i),children:[n.jsx(me,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:u,disabled:e<=1,onClick:m}),n.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),d)," / ",d]}),n.jsx(me,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:c,disabled:e>=t,onClick:p})]})}const La=new Map;function Bn(e){const{t}=_e.useTranslation(),{options:a=[],value:r=a.find(g=>!g.disabled)?.key??a[0]?.key,onChange:s=g=>{},className:i="",size:l=40,shape:u="pill",useBG:c=!0,fullWidth:d=!1,minButtonWidth:m,ariaLabel:p}=e||{},f=o.useRef(null),y=a.filter(g=>!g.disabled),v=o.useId(),C=a.map(g=>g.key).join("\xB7");o.useEffect(()=>{if(!(!Zn||p!=null&&p!=="")){if(La.set(v,C||"(\uBCF4\uAE30 \uC5C6\uC74C)"),La.size>1){const g=[...La.values()].sort();Gt(`segmented-control-unnamed:${g.join("|")}`,`[ihab/SegmentedControl] \uC774\uB984 \uC5C6\uB294 \uB77C\uB514\uC624\uADF8\uB8F9\uC774 \uD55C \uD654\uBA74\uC5D0 ${La.size} \uAC1C \uC11C \uC788\uC2B5\uB2C8\uB2E4 \u2014 \uB0AD\uB3C5\uAE30\uB294 \uBAA8\uB450 "\uC120\uD0DD \uD0ED" \uC73C\uB85C \uC77D\uC5B4 \uC5B4\uB290 \uAC83\uC774 \uBB34\uC5C7\uC778\uC9C0 \uAC00\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. ariaLabel \uC744 \uC8FC\uC138\uC694. \uC9C0\uAE08 \uC120 \uAC83(\uBCF4\uAE30 \uC774\uB984\uC73C\uB85C \uC801\uC74C): ${g.join(" / ")}`)}return()=>{La.delete(v)}}},[p,C,v]);const b=g=>{if(!y.length)return;const B=Math.max(0,y.findIndex(N=>N.key===r)),x=g==="first"?y[0]:g==="last"?y[y.length-1]:y[(B+g+y.length)%y.length];x&&(s(x.key),Array.from(f.current?.querySelectorAll("[data-segkey]")??[]).find(N=>N.dataset.segkey===x.key)?.focus())},_=g=>{switch(g.key){case"ArrowRight":case"ArrowDown":b(1);break;case"ArrowLeft":case"ArrowUp":b(-1);break;case"Home":b("first");break;case"End":b("last");break;default:return}g.preventDefault()},h=g=>{const B=x=>typeof x=="string"||typeof x=="number";if(!(!B(g.label)||g.count==null||g.count===!1||!B(g.count)))return`${g.label}, ${g.count}`},w=y.some(g=>g.key===r)?r:y[0]?.key;return n.jsx("div",{ref:f,onKeyDown:_,className:Ae("segmented-control",`segmented-control--${u}`,`segmented-control--${l}`,d&&"segmented-control--full",!c&&"segmented-control--no-bg",m!=null&&"segmented-control--min",i),style:m!=null?{"--segmented-min-button-w":`${m}px`}:void 0,role:"radiogroup","aria-label":p??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(g=>n.jsx(me,{htmlType:"button",role:"radio","aria-checked":g.key===r,"data-segkey":g.key,tabIndex:g.key===w?0:-1,label:g.label,count:g.count,ariaLabel:h(g),disabled:g.disabled,className:g.key===r?"is-selected":"",onClick:()=>{g.disabled||s(g.key)},size:l,shape:u,useBorder:!1,useBG:!1},g.key))})}function go({count:e,search:t,segment:a,filters:r,pageSize:s,pagination:i,actions:l,className:u}){const{t:c}=_e.useTranslation(),d=e!=null&&n.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??c("common.totalPrefix","\uCD1D "),n.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),m=!!(t||r?.length||s||i||l);return n.jsxs("div",{className:Ae("toolbar",u),children:[n.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((p,f)=>n.jsx(Bn,{size:40,...p},p.ariaLabel??f))]}),m&&n.jsx("div",{className:"toolbar__row",children:n.jsxs("div",{className:"toolbar__row-end",children:[t&&n.jsx(Gn,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??c("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??c("common.search","\uAC80\uC0C9"),autoFocus:t.autoFocus,clearable:!0}),r?.map((p,f)=>n.jsx(dn,{size:40,options:p.options,value:p.value,onChange:p.onChange,ariaLabel:p.ariaLabel},f)),(s||i)&&n.jsxs("div",{className:"toolbar__pager",children:[s&&n.jsx(dn,{size:40,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??c("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&n.jsx(nr,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel})]}),l]})})]})}function ql(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(ql).join(""):""}function Z4(e){let t=e.replace(/\r\n/g,`
851
+ and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},wg={trainingPhone:{topic:"Gardening",prev:"Prev",next:"Next",speed:"Speed 3",noiseType:"Crowd noise",settings:"Settings",start:{caption:"Press the play (\u25B6) button below and listen carefully. After listening, check the sentence."},feedback:{caption:"Plant the well-grown seedlings in the garden bed and cover them carefully with plastic film."},done:{heardWell:"Heard clearly",listenAgain:"Listen again"}}},Bg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},Ag={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},kg={answer:"Answer",distractor:"Distractor"},Ng={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},Dg={clearAriaLabel:"Clear input"},Eg={ariaLabel:"Select tab"},Sg={ariaLabel:"Tabs"},jg={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Tg={ariaLabel:"User avatar"},Mg={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"},reason:{notLoggedIn:"Login required."},list:{title:"Received Homework"},status:{expired:"Expired",done:"Done {{count}}\xD7 \xB7 {{date}}",notDone:"Not done"}},Lg={weekly:{title:"Weekly Training",daily:"Daily Listening",crossword:"Crossword"},homework:{title:"Homework Progress",totalRate:"Overall rate",count:"Total",done:"Done",remaining:"Remaining"},today:{tooltipTotal:"Total",tooltipDone:"Done"},filter:{countSuffix:" sessions"},time:{countLabel:"{{n}} sessions",empty:"No training records"},daily:{title:"Today's Listening Record",empty:"No completed sessions"},crossword:{title:"Crossword Quiz",empty:"No completed levels"},visit:{title:"Linked Visit Records"},detail:"Details",trainingType:{LISTEN_IN_NOISE:"Sentence in Noise",SHORT_STORY:"Short Story",LONG_STORY:"Long Story",ORDERING_SENTENCE:"Sentence Ordering"}},$g={import:"Add to my trainings",publisher:"Publisher",time:{justNow:"just now",minutesAgo:"{{n}}m ago",hoursAgo:"{{n}}h ago",daysAgo:"{{n}}d ago",weeksAgo:"{{n}}w ago",monthsAgo:"{{n}}mo ago",yearsAgo:"{{n}}y ago"},badge:{shared:"Store"},publish:{descPlaceholder:"One-line description for the Training Store (optional)"}},Rg={manage:{unit:"item(s)"}},Pg={cancelLabel:"Cancel"},Fg={subtitle:"Select a topic to start listening practice."},Ig={steps:"Step {{current}} of {{total}}"},Og={panelTitle:"Training misses",viewItems:"Items",viewTypes:"Types",colPending:"Left",colTrend:"Change",colRuns:"Runs",unitItem:" items",skippedOnly:"{{n}} older record(s) were excluded \u2014 they do not say what was answered.",summaryLabel:"Recorded",summaryValue:"{{items}} items \xB7 {{pending}} still missed",nextLabel:"Next to work on",nextCount:"{{count}}",nextCountCapped:"{{shown}} of {{total}}",picked:"\u2192 {{what}}",typeClear:"All caught up",typePending:"{{pending}} of {{total}} left",flat:"no change",runs:"{{count}} run(s)",avgDuration:"{{sec}}s avg"},Hg={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},zg={panelTitle:"Word table scores",viewWords:"Words",viewTables:"Tables",colLatest:"When",colTrend:"Change",unitTime:" times",summaryLabel:"Scored",summaryValue:"{{times}} times \xB7 {{words}} words",nextLabel:"Focus next",nextCount:"{{count}}",allClear:"All correct last time.",times:"{{count}}x",flat:"no change",recentLabel:"Recent scorings",nextCountCapped:"{{shown}} of {{total}}"},Vg={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Wg={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},qg={previewRegion:"Report preview \u2014 scrollable sideways"},Ug={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},Gg={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Kg={clearSelection:"Clear selection"},Yg={showResult:"Show {{type}} result"},Zg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Xg={loading:"Loading"},Jg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},Qg={ariaLabel:"Breadcrumb"},eb={empty:"No items yet."},tb={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},nb={common:H2,calendar:z2,passCard:V2,searchField:W2,rating:q2,colorPicker:U2,dropdown:G2,accordion:K2,header:Y2,nav:Z2,settings:X2,usage:J2,account:Q2,help:eg,training:tg,trainingSettings:ng,customers:ag,payment:rg,coupons:og,visits:sg,company:ig,trainingType:lg,myWordTraining:ug,myWordTable:cg,keyWords:dg,wordTable:pg,wordSearch:mg,wordPrint:hg,topic:Cg,accessLinkManager:fg,login:gg,device:bg,manager:yg,wordPairs:vg,game:xg,footer:_g,landing:wg,date:Bg,trainingSetPage:Ag,wordTrainingPreview:kg,wordData:Ng,textField:Dg,segmentedControl:Eg,tabs:Sg,fileUpload:jg,avatar:Tg,myHomework:Mg,trainingStatus:Lg,store:$g,homework:Rg,inquiry:Pg,trainingPlanRun:Fg,progress:Ig,trainingMiss:Og,table:Hg,wordScore:zg,topBanner:Vg,datePicker:Wg,report:qg,tooltip:Ug,phonemeProfile:Gg,bulkBar:Kg,debug:Yg,badge:Zg,loader:Xg,soundCompass:Jg,breadcrumb:Qg,board:eb,promoBannerBg:tb};const ab=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],eo="ko",rb="ihab_display_language";function Di(){if(typeof window>"u")return eo;try{const e=localStorage.getItem(rb);if(e&&ab.some(t=>t.code===e))return e}catch{}return eo}function Ei(e){try{document.documentElement.lang=e}catch{}}Tt.on("languageChanged",Ei),Ei(Di()),Tt.use(_e.initReactI18next).init({resources:{ko:{translation:O2},en:{translation:nb}},lng:Di(),fallbackLng:eo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function _t(e,t,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return t(s,e),()=>a(s)},[e,t,a]),r}const Ba={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},to=new WeakMap;function no(e){if(e)return to.get(e)}function Ot(e,t){e&&(e.style.setProperty(Ba.title,t.title),e.style.setProperty(Ba.description,t.description),to.set(e,t))}function Ht(e){e&&(e.style.removeProperty(Ba.title),e.style.removeProperty(Ba.description),to.delete(e))}const Si={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function ji(){const e=_t(Si,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Ti={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Mi(){const e=_t(Ti,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Li={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function $i(){const e=_t(Li,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const Ri={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Pi(){const e=_t(Ri,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Fi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ii(){const e=_t(Fi,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Oi={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Hi(){const e=_t(Oi,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const zi={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Vi(){const e=_t(zi,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Wi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function qi(){const e=_t(Wi,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Ui={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Gi(){const e=_t(Ui,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Ki={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Yi(){const e=_t(Ki,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Zi={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Xi(){const e=_t(Zi,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:n.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const Ji={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Qi(){const e=_t(Ji,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const el={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function tl(){const e=_t(el,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const nl={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function al(){const e=_t(nl,Ot,Ht);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Zt=(e,t,a)=>({key:e,get label(){return Tt.t(`promoBannerBg.${e}`,t)},textTone:a}),ob=[Zt("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Zt("soft","\uC18C\uD504\uD2B8","dark"),Zt("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),Zt("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Zt("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),Zt("warm","\uC6DC(\uAC15\uC870)","dark"),Zt("dark","\uB2E4\uD06C","light"),Zt("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Zt("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),Zt("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),Zt("outline","\uC544\uC6C3\uB77C\uC778","dark"),Zt("success","\uC131\uACF5/\uC644\uB8CC","light"),Zt("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),Zt("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],rl={main:ji,soft:Mi,sub:$i,deep:Pi,softSub:Ii,warm:Hi,dark:Vi,radial:qi,diagonal:Gi,dots:Yi,outline:Xi,success:Qi,naver:tl,instagram:al};function ol({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:i=1.4}={}){const l=w=>Math.max(a,Math.min(r,Number(w))),u=w=>{try{const b=localStorage.getItem(w),B=b?Number(b):1;return Number.isFinite(B)?l(B):l(1)}catch{return l(1)}},[c,d]=o.useState(()=>u(e)),[m,p]=o.useState(e);m!==e&&(p(e),d(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const f=w=>{d(typeof w=="function"?b=>l(w(b)):l(w))},y=()=>f(w=>+(w+s).toFixed(6)),x=()=>f(w=>+(w-s).toFixed(6)),h=c<r-Number.EPSILON,g=c>a+Number.EPSILON,_=Math.round(t*c),C=Math.round(_*i);return{scale:c,setScale:f,increase:y,decrease:x,canIncrease:h,canDecrease:g,fontSize:_,lineHeight:C}}function sl(e,t){const a=wa(t);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const ao=" \xB7 ",il=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(ao)?e.split(ao).pop()??e:e})(),sb=o.createContext(!1),qn=[];let ll=null;function ib(e){const t=o.useContext(sb);o.useEffect(()=>{if(t||typeof e!="string"||!e)return;qn.length===0&&(ll=document.title);const a={text:il?`${e}${ao}${il}`:e};return qn.push(a),document.title=a.text,()=>{const r=qn.lastIndexOf(a);r>=0&&qn.splice(r,1),document.title=qn.length?qn[qn.length-1].text:ll??document.title}},[e,t])}const ul=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}],lb=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function oa(e,t){return lb().compare(e,t)}const Xa=new Map;function ub(e){const t=Xa.get(e);if(t)return t;const a=[],r=/-?\d+(?:\.\d+)?/g;let s=0;for(let i=r.exec(e);i;i=r.exec(e)){let l=i.index,u=i[0];u[0]==="-"&&l>0&&!/\s/.test(e[l-1])&&(l+=1,u=u.slice(1)),l>s&&a.push(e.slice(s,l)),a.push(Number(u)),s=i.index+i[0].length}return s<e.length&&a.push(e.slice(s)),Xa.size>5e3&&Xa.clear(),Xa.set(e,a),a}function cb(e){if(!/^[\d\s-]+$/.test(e))return null;const t=e.replace(/\D/g,"");return t.length<9||t.length>11?null:t[0]==="0"||t[0]==="1"&&e!==t?t:null}function db(e,t){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),s=a(t);if(r===s)return 0;const i=(d,m)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const p=cb(m);return p!==null?[p]:ub(m)},l=i(e,r),u=i(t,s),c=Math.min(l.length,u.length);for(let d=0;d<c;d++){const m=l[d],p=u[d];if(typeof m=="number"&&typeof p=="number"){if(m!==p)return m-p;continue}if(typeof m=="number")return-1;if(typeof p=="number")return 1;const f=oa(m,p);if(f!==0)return f}return l.length!==u.length?l.length-u.length:oa(r,s)}const cl=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function ro(e,t,a){const r=cl(e),s=cl(t);if(r||s)return r===s?0:r?1:-1;const i=db(e,t);return a?i:-i}function pb(e,t,a){const{t:r}=_e.useTranslation(),[s,i]=o.useState(()=>{const x=a?.initialPageSize;return x&&ul.some(h=>h.value===x)?x:"25"}),[l,u]=o.useState(1),[c,d]=o.useState(t);Object.is(c,t)||(d(t),l!==1&&u(1));const m=o.useMemo(()=>ul.map(x=>({...x,label:r("visits.showN",{n:x.value})})),[r]),p=o.useCallback(x=>{i(x),u(1)},[]),f=Math.max(1,Math.ceil(e.length/Number(s)));(l>f||l<1||!Number.isFinite(l))&&u(Math.min(Math.max(1,Number.isFinite(l)?l:1),f));const y=Math.min(Math.max(1,Number.isFinite(l)?l:1),f);return{pageRows:o.useMemo(()=>e.slice((y-1)*Number(s),y*Number(s)),[e,y,s]),pageSizeProps:{options:m,value:s,onChange:p},paginationProps:{page:y,total:f,onChange:u},setPage:u}}function mb(e){const[t,a]=o.useState(null),r=o.useRef(t),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const i=o.useCallback(c=>{const d=r.current,m=d?.key===c?{key:c,asc:!d.asc}:{key:c,asc:!0};r.current=m,a(m),s.current?.(m)},[]),l=o.useCallback((c,d)=>({label:c,sortDir:t?.key===d?t.asc?"asc":"desc":null,onClick:()=>i(d)}),[t,i]),u=o.useCallback((c,d)=>{if(!t)return c;const{key:m,asc:p}=t;return[...c].sort((f,y)=>ro(d(f,m),d(y,m),p))},[t]);return{\uC815\uB82C:t,\uCE78:l,sortRows:u}}const cn="\uC804\uCCB4",hb=new Map;try{Tt.store?.on?.("added",()=>hb.clear())}catch{}Object.fromEntries(Object.entries(xC).map(([e,{nucleus:t}])=>[e,t]));const Cb={labial:e=>e("common.phonetics.place.labial",{defaultValue:"\uC591\uC21C\uC74C"}),alveolar:e=>e("common.phonetics.place.alveolar",{defaultValue:"\uCE58\uC870\uC74C"}),palatal:e=>e("common.phonetics.place.palatal",{defaultValue:"\uACBD\uAD6C\uAC1C\uC74C"}),velar:e=>e("common.phonetics.place.velar",{defaultValue:"\uC5F0\uAD6C\uAC1C\uC74C"}),glottal:e=>e("common.phonetics.place.glottal",{defaultValue:"\uC131\uBB38\uC74C"})},fb={frontHigh:e=>e("common.phonetics.vowel.frontHigh",{defaultValue:"\uC804\uC124 \uACE0\uBAA8\uC74C"}),backHighUnrounded:e=>e("common.phonetics.vowel.backHighUnrounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C"}),backHighRounded:e=>e("common.phonetics.vowel.backHighRounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"}),frontMid:e=>e("common.phonetics.vowel.frontMid",{defaultValue:"\uC804\uC124 \uC911\uBAA8\uC74C"}),backMidUnrounded:e=>e("common.phonetics.vowel.backMidUnrounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"}),backMidRounded:e=>e("common.phonetics.vowel.backMidRounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"}),low:e=>e("common.phonetics.vowel.low",{defaultValue:"\uC800\uBAA8\uC74C"})},gb={j:e=>e("common.phonetics.glide.j",{defaultValue:"j\uD65C\uC74C"}),w:e=>e("common.phonetics.glide.w",{defaultValue:"w\uD65C\uC74C"}),velar:e=>e("common.phonetics.glide.velar",{defaultValue:"\u0270\uD65C\uC74C"})};function bb(e,t){if("place"in t)return Cb[t.place](e);const a=fb[t.vowel](e);return t.glide?`${a} \xB7 ${gb[t.glide](e)}`:a}const yb=(e,{defaultValue:t})=>t,dl=(e,t)=>({jamos:e,phonetic:t,tooltip:bb(yb,t)}),xn=(e,t)=>t.map(a=>dl([a],{place:e})),Mt=(e,t,a)=>dl([...e],a?{vowel:t,glide:a}:{vowel:t}),oo={cho:[xn("labial",["\u3142","\u3143","\u314D","\u3141"]),xn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),xn("alveolar",["\u3145","\u3146"]),xn("palatal",["\u3148","\u3149","\u314A"]),xn("velar",["\u3131","\u3132","\u314B"]),xn("glottal",["\u314E"])],jung:[[Mt("\u3163","frontHigh"),Mt("\u315F","frontHigh","w"),Mt("\u3162","frontHigh","velar")],[Mt("\u3161","backHighUnrounded")],[Mt("\u315C","backHighRounded"),Mt("\u3160","backHighRounded","j")],[Mt("\u3154\u3150","frontMid"),Mt("\u3156\u3152","frontMid","j"),Mt("\u3159\u315A\u315E","frontMid","w")],[Mt("\u3153","backMidUnrounded"),Mt("\u3155","backMidUnrounded","j"),Mt("\u315D","backMidUnrounded","w")],[Mt("\u3157","backMidRounded"),Mt("\u315B","backMidRounded","j")],[Mt("\u314F","low"),Mt("\u3151","low","j"),Mt("\u3158","low","w")]],jong:[xn("labial",["\u3142","\u3141"]),xn("alveolar",["\u3137","\u3134","\u3139"]),xn("velar",["\u3131","\u3147"])]},vb=e=>e===xb?[]:Array.from(e),xb="__NO_CODA__",so=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),pl={cho:so(oo.cho),jung:so(oo.jung),jong:so(oo.jong)};pl.jung.flat().forEach(({v:e})=>{for(const t of vb(e));}),new Set(pl.cho.flat().map(e=>e.v));function _b(e,t=!0){const a=wa(e);o.useEffect(()=>{if(t)return Vn(()=>{a.current?.()})},[t,a])}function Aa(){const[e,t]=o.useState(null),a=o.useCallback(i=>t(i.getBoundingClientRect()),[]),r=o.useCallback(()=>t(null),[]),s=o.useCallback(i=>{const l=i.getBoundingClientRect();t(u=>u?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function wb(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),i=o.useRef(null);o.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const l=o.useCallback((c,d)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(c),s(d)},e)},[e]),u=o.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),s(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:l,close:u}}function ml(e="warning"){const[t,a]=o.useState(""),[r,s]=o.useState(e),[i,l]=o.useState(0),u=o.useCallback((p,f)=>{s(f),a(p),l(y=>y+1)},[]),c=o.useCallback(p=>u(p,"warning"),[u]),d=o.useCallback(p=>u(p,"normal"),[u]),m=o.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:u,showWarning:c,showNormal:d,clearToast:m}}function ka(e){let t=0;if(e&&typeof window<"u"&&typeof window.getComputedStyle=="function")for(let a=e;a&&a!==document.body&&a!==document.documentElement;a=a.parentElement){const r=parseInt(window.getComputedStyle(a).zIndex,10);!Number.isNaN(r)&&r>t&&(t=r)}return t>0?`max(var(--z-menu, 1500), ${t+1})`:"var(--z-menu, 1500)"}function Na({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,i]=o.useState(!1),[l,u]=o.useState({position:"fixed"}),c=o.useRef(null),d=o.useRef(null),m=o.useCallback(()=>{c.current&&u(e(c.current.getBoundingClientRect(),c.current))},[e]);o.useLayoutEffect(()=>{s&&m()},[s,m]),o.useEffect(()=>{if(!s)return;let y=d.current?.offsetHeight??0;y>0&&m();let x=0,h=null;typeof ResizeObserver<"u"&&d.current&&(h=new ResizeObserver(()=>{const B=d.current?.offsetHeight??0;if(B!==y){if(y=B,++x>4){h?.disconnect(),h=null;return}m()}}),h.observe(d.current));const g=B=>{const v=B.target;r&&v.closest?.(r)||c.current?.contains(v)||d.current?.contains(v)||i(!1)};document.addEventListener("mousedown",g),document.addEventListener("pointerdown",g);const _=B=>{d.current?.contains(B.target)||(t==="reposition"?m():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",_,!0);const C=()=>{a==="reposition"?m():a==="close"&&i(!1)};let w=null;const b=()=>{C(),w&&clearTimeout(w),w=setTimeout(()=>{w=null,a==="reposition"&&m()},250)};return a!=="ignore"&&(window.addEventListener("resize",C),window.addEventListener("orientationchange",b)),()=>{h?.disconnect(),document.removeEventListener("mousedown",g),document.removeEventListener("pointerdown",g),t!=="ignore"&&window.removeEventListener("scroll",_,!0),a!=="ignore"&&(window.removeEventListener("resize",C),window.removeEventListener("orientationchange",b)),w&&clearTimeout(w)}},[s,m,t,a,r]),o.useEffect(()=>{if(s)return Vn(()=>i(!1))},[s]);const p=o.useCallback(()=>i(y=>!y),[]),f=o.useCallback(()=>i(!1),[]);return{open:s,setOpen:i,toggle:p,close:f,style:l,triggerRef:c,menuRef:d}}function Bb(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:i=1100,feedbackMs:l=1500}={}){const[u,c]=o.useState([]),[d,m]=o.useState(0),[p,f]=o.useState("idle"),[y,x]=o.useState(null),[h,g]=o.useState([]),[_,C]=o.useState(null),[w,b]=o.useState(0),B=o.useRef(0),v=o.useCallback($=>{B.current=typeof $=="function"?$(B.current):$,b(B.current)},[]),k=o.useRef(r),A=o.useRef(s);o.useEffect(()=>{k.current=r,A.current=s},[r,s]);const N=o.useRef([]),E=()=>{N.current.forEach(clearTimeout),N.current=[]},D=($,U)=>{N.current.push(setTimeout(U,$))};o.useEffect(()=>()=>E(),[]);const H=u[d]?.id??null,R=o.useRef(null),G=o.useCallback(()=>{E(),f("playing"),g([]),C(null),v(0);let $=0;e.forEach((U,S)=>{D($,()=>{m(S),x(U.id),k.current?.(U)}),D($+1e3,()=>{x(null),g(P=>[...P,U.id])}),$+=1300}),D($,()=>{f("done"),A.current?.({score:0,total:e.length})})},[e,v]),L=o.useCallback(($,U)=>{if(U>=$.length){f("done"),A.current?.({score:B.current,total:$.length});return}R.current=null,m(U),C(null),f("playing"),x($[U].id),k.current?.($[U]),D(i,()=>{x(null),f("waiting")})},[i]),M=o.useCallback(()=>{E();const $=xa(e);c($),v(0),g([]),L($,0)},[e,L,v]),I=o.useCallback(()=>{t==="playback"?(c(e),G()):M()},[t,e,G,M]),Y=o.useCallback(()=>{E(),f("idle"),x(null),g([]),C(null),m(0),v(0),c([])},[v]),Z=e.map($=>$.id).join("|");o.useEffect(()=>(a?I():Y(),()=>E()),[t,Z,a]);const z=o.useCallback($=>{p!=="waiting"||t==="playback"||R.current===d||(R.current=d,C($),$===u[d]?.id&&v(U=>U+1),t==="exam"?(f("playing"),D(400,()=>L(u,d+1))):(f("feedback"),D(l,()=>L(u,d+1))))},[p,t,u,d,L,l,v]),W=t==="playback"?e.length:u.length;return{bind:{activeSpeakerId:y,playedIds:h,selectedId:_,answerId:H,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:z},index:d,total:W,score:w,phase:p,done:p==="done",start:I,reset:Y}}function Ab({title:e,description:t,actionLabel:a,onAction:r,bg:s,color:i,size:l="medium",actionVariant:u,titleColor:c,descriptionColor:d,className:m=""}){const p=s??i??"main",f=o.useRef(null),[y,x]=o.useState("main"),h=rn("(max-width: 767px)"),g=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const w=f.current;if(!w)return;const b=no(w),B=(v,k,A)=>{if(A!==void 0)w.style.setProperty(k,A),g.current[v]=!0;else if(g.current[v]){const N=b?.[v];N?w.style.setProperty(k,N):w.style.removeProperty(k),g.current[v]=!1}};B("title","--promo-banner-bg-title",c),B("description","--promo-banner-bg-description",d)},[c,d,p]),o.useLayoutEffect(()=>{const w=f.current;if(!w)return;const b=no(w);x(b?.actionVariant??"main")},[p]);const _=Ae("promo-banner",`promo-banner--${l}`,m),C=rl[p];return n.jsxs("div",{ref:f,className:_,role:"note",children:[n.jsx(C,{}),n.jsxs("div",{className:"promo-banner__text",children:[n.jsx("span",{className:`promo-banner__title ${l==="small"?"body-2":"h2"}`,children:e}),t&&n.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&n.jsx(me,{htmlType:"button",size:40,variant:u??y,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...h?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function kb({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":s}){const{t:i}=_e.useTranslation(),l=s??i("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),c=u.length,[d,m]=o.useState(0),[p,f]=o.useState(!1),[y,x]=o.useState(!1),[h,g]=o.useState(!1),_=o.useRef(null),C=o.useRef(null),w=o.useRef(null),b=Xr(),B=p||y||h,v=c>0?Math.min(d,c-1):0;o.useEffect(()=>{if(c<2||t<=0||B||b)return;const A=window.setInterval(()=>m(N=>(Math.min(N,c-1)+1)%c),t);return()=>window.clearInterval(A)},[c,t,B,b]);const k=A=>{C.current!=null&&window.clearTimeout(C.current),C.current=window.setTimeout(()=>{C.current=null,g(!1)},A)};return o.useEffect(()=>()=>{C.current!=null&&window.clearTimeout(C.current)},[]),o.useEffect(()=>{if(!h)return;const A=N=>{N.pointerType==="touch"&&(w.current&&w.current.contains(N.target)||(C.current!=null&&(window.clearTimeout(C.current),C.current=null),g(!1)))};return document.addEventListener("pointerdown",A,!0),()=>document.removeEventListener("pointerdown",A,!0)},[h]),c===0?null:n.jsxs("section",{ref:w,className:Ae("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onPointerEnter:A=>{_.current=A.pointerType},onPointerDown:A=>{_.current=A.pointerType,A.pointerType==="touch"&&(C.current!=null&&(window.clearTimeout(C.current),C.current=null),g(!0))},onPointerUp:A=>{A.pointerType==="touch"&&k(5e3)},onPointerCancel:A=>{A.pointerType==="touch"&&k(5e3)},onMouseEnter:()=>{_.current!=="touch"&&f(!0)},onMouseLeave:()=>f(!1),onFocus:A=>{let N=!0;try{N=A.target.matches(":focus-visible")}catch{N=!0}x(N)},onBlur:A=>{A.currentTarget.contains(A.relatedTarget)||x(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${v*100}%)`},children:u.map((A,N)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":N!==v,...N!==v?{inert:!0}:{},children:A},N))})}),c>1&&n.jsx("div",{className:`top-banner__dots${(a?.[v]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((A,N)=>n.jsx("button",{type:"button",className:`top-banner__dot${N===v?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:c,index:N+1,defaultValue:`${c}\uAC1C \uC911 ${N+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":N===v,onClick:()=>m(N)},N))})]})}function Nb({title:e,body:t,open:a=!1,onToggle:r,avatar:s,titleClassName:i="body-2",bodyClassName:l="body-2",className:u=""}){const{t:c}=_e.useTranslation();return n.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.trim(),role:"listitem",children:[n.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const m=d.currentTarget.closest('[role="list"]');if(!m)return;const p=Array.from(m.querySelectorAll("[data-accordion-header]")),f=p.indexOf(d.currentTarget);(d.key==="ArrowDown"?p[f+1]:p[f-1])?.focus()}},children:[s&&n.jsx("div",{className:"accordion-item__avatar",children:s}),n.jsx("div",{className:`accordion-item__title ${i}`,children:e}),n.jsx("div",{className:"accordion-item__chevron",children:n.jsx(tt,{icon:a?"chevron-up":"chevron-down",label:a?c("accordion.collapse","\uC811\uAE30"):c("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&n.jsx("div",{className:`accordion-item__body ${l}`,children:typeof t=="string"?n.jsx("p",{children:t}):t})]})}function Db({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:s}){const[i,l]=o.useState({index:t}),u=(c,d)=>i.id!=null&&c.id!=null?c.id===i.id:i.id==null&&d===i.index;return n.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>n.jsx(Nb,{title:c.title,body:c.body,avatar:c.avatar,open:u(c,d),onToggle:()=>l(u(c,d)?{index:-1}:{index:d,id:c.id}),bodyClassName:s},c.id??d))})}function Eb(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:n.jsx("polyline",{points:"2,6 5,9 10,3"})})}function Sb(){return n.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[n.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),n.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function jb(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:n.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function wt(e){const{t}=_e.useTranslation(),{type:a="bar",size:r,className:s="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:B,number:v,position:k="top-right",onClick:A,animate:N=!1}=e,E=B??"check",D=v!==void 0?"number":E,H=typeof r=="number"?r:32,R=Ae("circle-badge",`circle-badge--${D}`,`circle-badge--${k}`,`circle-badge--${H}`,N?"circle-badge--animate":"",A?"circle-badge--clickable":"",s),G=v!==void 0?t("badge.nthSelected",{n:v,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:t("badge.selected","\uC120\uD0DD\uB428"),remove:t("badge.remove","\uC81C\uAC70"),minus:t("badge.exclude","\uC81C\uC678")}[E];return n.jsxs("span",{className:R,onClick:A,onKeyDown:A?L=>{L.key!=="Enter"&&L.key!==" "||(L.preventDefault(),L.currentTarget.click())}:void 0,"aria-label":l?void 0:i??G,"aria-hidden":l||void 0,role:A?"button":l?void 0:"img",tabIndex:A?0:void 0,children:[v!==void 0&&v,v===void 0&&E==="check"&&n.jsx(Eb,{}),v===void 0&&E==="remove"&&n.jsx(Sb,{}),v===void 0&&E==="minus"&&n.jsx(jb,{})]})}const{label:u,children:c,variant:d="default",fill:m="filled",minWidth:p,iconLeft:f,iconRight:y,color:x}=e,h=typeof r=="number"?"medium":r??"medium",g={small:"caption-2b",medium:"body-3b",large:"body-2b"}[h]??"body-2b",_={small:12,medium:14,large:16}[h]??14,C=Ae("badge",`badge--${d}`,`badge--${h}`,m!=="filled"?`badge--${m}`:"",g,s),w=x?.startsWith("--")?`var(${x})`:x,b=p!==void 0||w?{...p!==void 0?{minWidth:typeof p=="number"?`${p}px`:p}:{},...w?{"--badge-color":w}:{}}:void 0;return n.jsxs("span",{className:C,style:b,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[f&&n.jsx(tt,{icon:f,size:_,className:"badge__icon"}),u??c,y&&n.jsx(tt,{icon:y,size:_,className:"badge__icon"})]})}function Da({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:s}=_e.useTranslation(),i=r==="small"?40:48,[l,u]=o.useState([]),c=o.useMemo(()=>{const g=[{title:null,columns:e}];let _=e;for(const C of l){const w=_?.[C.ci]?.items?.[C.ii];if(!w||!Array.isArray(w.children)||!w.children.length)break;_=[{title:null,items:w.children}],g.push({title:w.label||null,columns:_})}return g},[e,l]),d=c[c.length-1],m=c.length-1,p=o.useCallback(()=>u(g=>g.slice(0,Math.max(0,Math.min(g.length,m)-1))),[m]),f=o.useRef(null),y=o.useRef(null),x=c.length;o.useEffect(()=>{y.current||(y.current=document.activeElement);let g=0,_=0;const C=()=>{const w=f.current?.querySelector("button:not([disabled])");if(w&&w.offsetParent){w.focus({preventScroll:!0});return}_++<20&&(g=requestAnimationFrame(C))};return g=requestAnimationFrame(C),()=>cancelAnimationFrame(g)},[x]),o.useEffect(()=>()=>{y.current?.focus?.({preventScroll:!0})},[]);const h=o.useCallback((g,_,C)=>{if(g){if(Array.isArray(g.children)&&g.children.length){u(w=>[...w.slice(0,m),{ci:_,ii:C}]);return}try{typeof g.onClick=="function"&&g.onClick()}catch{}try{g&&g.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t,m]);return n.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(c.length>1||d.title)&&n.jsxs("div",{className:"tooltip-menu__header",children:[c.length>1?n.jsx(me,{htmlType:"button",size:i,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:p,variant:"transparent-gray",useBorder:!1}):null,n.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),n.jsx("div",{className:"tooltip-menu__columns",ref:f,children:d.columns&&d.columns.map((g,_)=>n.jsxs("div",{className:"tooltip-menu__column",children:[g.title?n.jsx("div",{className:"tooltip-menu__column-title body-3",children:g.title}):null,n.jsx("div",{className:"tooltip-menu__items",children:(g.items||[]).map((C,w)=>n.jsxs(o.Fragment,{children:[C.separatorBefore&&w>0&&n.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),n.jsx(me,{htmlType:"button",className:"tooltip-menu__item",size:i,type:C.label?"bar":"dot",icon:C.selected?"check":C.icon||"none",rightIcon:Array.isArray(C.children)&&C.children.length?"chevron-right":C.badgeCount?n.jsx(wt,{type:"dot",position:"inline",number:Math.min(C.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:C.label,ariaLabel:C.label&&C.badgeCount&&C.badgeCount>0?s("nav.badgeLabel",{label:C.label,count:C.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):C.label,onClick:()=>h(C,_,w),selected:C.selected,disabled:C.disabled,showTooltipInfo:C.tooltip||!1,useBorder:!1,align:"left"})]},w))})]},_))})]})}const hl=".content-area";function io(e,t="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(hl);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&Gt("nav-scroll-container",`[${t}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${hl}) \u2014 \uCC3D\uB3C4 \uAD6C\uB97C \uC218 \uC5C6\uC5B4 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4. scrollContainer \uB85C \uD1B5\uC744 \uC54C\uB824 \uC900\uB2E4.`),window.scrollTo({top:0})}catch{}}const lo=52,Ja=10,Cl=e=>e&&e>0?e:0;function fl({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:s,moreItems:i=[],scrollContainer:l}){const{t:u}=_e.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",m=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=o.useRef(null),[f,y]=o.useState(0),x=e.length;o.useEffect(()=>{const $=p.current;if(!$)return;const U=()=>{const j=typeof getComputedStyle=="function"?getComputedStyle($):null,F=$.clientWidth-(parseFloat(j?.paddingLeft??"")||0)-(parseFloat(j?.paddingRight??"")||0),O=$.querySelector(".bottom-nav__left"),q=O?.nextElementSibling,Q=(O?.offsetWidth??0)+(O&&q?.classList.contains("bottom-nav__divider")?q.offsetWidth:0);y(Math.max(0,F-Q))};if(U(),typeof ResizeObserver>"u")return;const S=new ResizeObserver(U);S.observe($);const P=$.querySelector(".bottom-nav__left");return P&&S.observe(P),()=>S.disconnect()},[s]);const h=lo+1,g=$=>Math.max(0,Math.floor(($+Ja)/(lo+Ja))),_=x*(lo+Ja)-Ja<=f,C=f<=0||i.length===0&&_?x:Math.min(x,g(f-h)),w=f>0&&C<x,b=w?C:x,B=e.slice(0,b),v=e.slice(b),k=w||i.length>0,A=o.useCallback(($,U)=>({position:"fixed",bottom:window.innerHeight-$.top+8,right:window.innerWidth-$.right,zIndex:ka(U)}),[]),N=o.useId(),{open:E,toggle:D,close:H,style:R,triggerRef:G,menuRef:L}=Na({computeStyle:A,onScroll:"ignore",onResize:"reposition"}),M=o.useCallback(($,U)=>U>0?u("nav.badgeLabel",{label:$,count:U,defaultValue:"{{label}}, {{count}}\uAC1C"}):$,[u]),I=o.useCallback(($,U)=>U>0?u("nav.badgeInsideLabel",{label:$,count:U,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):$,[u]),Y=o.useCallback(()=>s?.(c),[s,c]),Z=o.useMemo(()=>v.find($=>!!$.key&&$.key===t)??i.find($=>$.selected||$.key&&$.key===t),[v,t,i]),z=o.useMemo(()=>[{items:[...v.map($=>({label:$.label,icon:$.icon,badgeCount:$.badgeCount,selected:!!$.key&&$.key===t,closeOnSelect:!0,disabled:$.state==="disabled",onClick:()=>{$.state!=="disabled"&&($.key&&a&&(a($.key),io(l,"BottomNav")),H())}})),...i.map($=>({label:$.label,icon:$.icon,badgeCount:$.badgeCount,selected:$.selected??(!!$.key&&$.key===t),closeOnSelect:!0,onClick:()=>{$.onClick?.(),H()}}))]}],[v,i,t,a,H]),W=[...v,...i].reduce(($,U)=>$+Cl(U.badgeCount),0);return n.jsxs("nav",{className:"bottom-nav",ref:p,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__left",children:n.jsx(me,{htmlType:"button",size:52,type:"dot",icon:d,ariaLabel:m,className:"bottom-nav-item",onClick:Y})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",children:B.map(($,U)=>{const S=Cl($.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(me,{htmlType:"button",size:52,type:"dot",icon:$.icon,ariaLabel:M($.label,S),selected:!!$.key&&$.key===t,disabled:$.state==="disabled",className:"bottom-nav-item",onClick:()=>{$.key&&(a?.($.key),io(l,"BottomNav"))}}),S>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(wt,{type:"dot",position:"top-right",number:Math.min(S,99),size:24})})]},$.key??`__slot-${U}`)})}),k&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),n.jsx("div",{className:"bottom-nav__right",children:n.jsxs("div",{ref:G,className:"bottom-nav__slot",children:[n.jsx(me,{htmlType:"button",size:52,type:"dot",icon:Z?.icon??"ellipsis",ariaLabel:I(Z?.label??u("nav.more","\uB354\uBCF4\uAE30"),W),selected:!!Z,className:"bottom-nav-item",onClick:D,"aria-expanded":E,"aria-controls":E?N:void 0}),W>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(wt,{type:"dot",position:"top-right",number:Math.min(W,99),size:24})}),E&&en.createPortal(n.jsx("div",{id:N,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:R,ref:L,children:n.jsx(Da,{columns:z,onClose:H})}),document.body)]})})]})]})}function gl(e){if(typeof e!="string")return!1;let t="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(t+=r)}if(!t)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(t);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function bl(e,t,a){return a&&a>0?e("nav.badgeLabel",{label:t,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):t}function Tb(e){const{t}=_e.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:i,onSetting:l,onHelp:u,onFeedback:c,onAccount:d}=e||{},m="default";return s||i||l||u||c||d?n.jsxs("div",{className:"side-nav__footer",children:[s&&n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),i&&n.jsxs("span",{className:"side-nav__notification-wrap",children:[n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"bell",ariaLabel:bl(t,t("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&n.jsx(wt,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),u&&n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),c&&n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"bug",ariaLabel:t("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:c,selected:a==="feedback"}),d&&n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]}):null}function yl(e){const{t}=_e.useTranslation(),{item:a,itemKey:r,label:s,icon:i,active:l,onClick:u,style:c,state:d,labelStyle:m}=e||{},p=a?.key??r??"",f=a?.label??s??"",y=a?.icon??i??"",x=a?.badge??0,h=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(tt,{icon:y,label:typeof f=="string"?f:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),g=d==="disabled",_=`side-nav__item ${l?"active":""} ${d||""} ${g?"disabled":""} ${a?.child?"side-nav__item--child":""}`,C=o.useCallback(w=>{if(g)return;const b=w.detail>0;if(b)try{w.currentTarget.blur()}catch{}u?.(p,w.currentTarget,b)},[g,p,u]);return n.jsxs("button",{type:"button",className:_,onClick:C,"aria-label":typeof f=="string"?bl(t,f,x):void 0,"aria-current":l?"page":void 0,style:c,"aria-disabled":g,children:[h,n.jsx("span",{className:"side-nav__label button-1 f",style:m,children:f}),x>0&&n.jsx(wt,{type:"dot",position:"inline",number:Math.min(x,99),size:24,"aria-hidden":!0}),d==="loading"&&n.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":t("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function vl(e){const{t}=_e.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:f,onAppModeChange:y,scrollContainer:x}=e||{},h=f==="manager",g=o.useCallback(()=>y?.(h?"malgwi":"manager"),[y,h]),_=o.useRef(null),[C,w]=o.useState(null);o.useEffect(()=>{const A=_.current;if(!A)return;const N=()=>{const{scrollHeight:D,clientHeight:H,scrollTop:R}=A;if(D<=H+1){w(null);return}const G=Math.max(24,H/D*H),L=H-G,M=D-H;w({top:Math.round(R/M*L),height:Math.round(G)})};N(),A.addEventListener("scroll",N,{passive:!0});const E=typeof ResizeObserver<"u"?new ResizeObserver(N):null;E?.observe(A);for(const D of Array.from(A.children))E?.observe(D);return()=>{A.removeEventListener("scroll",N),E?.disconnect()}},[a]);const b=o.useRef(null),B=o.useCallback(A=>{const N=_.current;N&&(A.preventDefault(),b.current={y:A.clientY,top:N.scrollTop},A.currentTarget.setPointerCapture(A.pointerId))},[]),v=o.useCallback(A=>{const N=_.current,E=b.current;!N||!E||(N.scrollTop=E.top+(A.clientY-E.y)*(N.scrollHeight/N.clientHeight))},[]),k=o.useCallback(A=>{b.current=null,A.currentTarget.hasPointerCapture(A.pointerId)&&A.currentTarget.releasePointerCapture(A.pointerId)},[]);return n.jsxs("nav",{ref:_,"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[C&&n.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:n.jsx("div",{className:"side-nav__scroll-thumb",style:{top:C.top,height:C.height},onPointerDown:B,onPointerMove:v,onPointerUp:k,onPointerCancel:k})}),n.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(A=>!A.section&&(A.key||A.label)).map((A,N)=>n.jsxs(o.Fragment,{children:[A.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(yl,{item:A,active:!!A.key&&A.key===r,state:A.disabled?"disabled":void 0,onClick:(E,D,H)=>{if(A.disabled)return;if(A.href){if(gl(A.href)&&window.open(A.href,"_blank","noopener,noreferrer"),H)try{D?.blur()}catch{}return}if(s?.(A.key),io(x,"SideNav"),!H)return;try{D?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const R=document.querySelector(".header");if(R){const G=typeof R.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&G&&R.matches(":hover"))){R.classList.add("header--force-collapsed");const L=()=>{R.classList.remove("header--force-collapsed"),R.removeEventListener("mouseenter",L)};R.addEventListener("mouseenter",L)}}}})]},A.key??`side-nav__item-${N}`)),y&&n.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),y&&n.jsx(yl,{item:{key:"__mode-switch__",label:h?t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:h?"arrow-left":"arrow-right"},onClick:g})]}),n.jsx(Tb,{activeKey:r,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p})]})}var Qa='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2080_3066)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="black"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="black"/>%0A<path d="M46.4288 17.8571H25.0002C15.138 17.8571 7.14307 25.852 7.14307 35.7143V57.1428C7.14307 67.0051 15.138 75 25.0002 75H46.4288C56.291 75 64.2859 67.0051 64.2859 57.1428V35.7143C64.2859 25.852 56.291 17.8571 46.4288 17.8571Z" fill="%234DCDC0"/>%0A<path d="M34.8607 50.7393C25.8285 60.6821 10.6142 61.6678 0.385667 53.1643C-0.0821902 52.775 -0.13219 52.0678 0.278524 51.6178L16.3535 33.925L34.8607 50.7393Z" fill="%234DCDC0"/>%0A<path d="M53.5714 25H32.1428C22.2821 25 14.2856 32.9964 14.2856 42.8571V64.2857C14.2856 74.1464 22.2821 82.1429 32.1428 82.1429H48.2535C49.2178 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7214 51.8928 85.6321C62.8392 84.675 71.4285 75.4821 71.4285 64.2857V42.8571C71.4285 32.9964 63.4321 25 53.5714 25Z" fill="%234DCDC0"/>%0A<path d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23499CDF"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="white"/>%0A<path d="M36.0715 57.1429C35.0287 57.1429 33.9822 56.875 33.0358 56.3286C32.1822 55.8357 31.8894 54.7429 32.3858 53.8893C32.8787 53.0357 33.9715 52.7429 34.8251 53.2393C35.8037 53.8036 37.043 53.6429 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3536 40.4322 35.9107 37.5072 35.7286C36.5215 35.6679 35.5715 35.8464 34.693 36.2679C33.8037 36.6929 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0429C34.5751 32.3714 36.1537 32.0679 37.7322 32.1643C42.4894 32.4607 46.3072 36.4286 46.4251 41.1964C46.4822 43.5286 45.6715 45.7786 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9357C41.8965 53.2464 41.3037 54.4357 40.368 55.375C39.2001 56.5429 37.6465 57.15 36.0751 57.15L36.0715 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2080_3066">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',uo='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7374)">%0A<path d="M237.151 26.0393V72.7214H216.65V26.0393H237.151ZM234.408 70.0464V28.7179H219.254V70.0464H234.408ZM261.495 76.3607H258.819V48.9679H247.575V75.4679H244.899V23.9821H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3607Z" fill="black"/>%0A<path d="M299.722 69.2571C302.076 68.775 304.031 68.1464 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.789 72.0357C297.435 72.4929 295.045 72.7214 292.623 72.7214H272.257V25.6964H275V69.975H292.623C294.998 69.975 297.364 69.7357 299.722 69.2536V69.2571ZM311.69 76.4321V23.6393H314.433V76.3643L311.69 76.4321Z" fill="black"/>%0A<path d="M340.556 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.329 62.2643 333.632 65.925C330.935 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.33 63.1107C334.617 59.3572 336.354 54.5179 337.542 48.5893C338.73 42.6643 339.369 36.0393 339.461 28.7143H324.992V26.0357H356.602V28.7143H342.201C342.155 35.9 341.605 42.3072 340.556 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="black"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="black"/>%0A<path d="M181.886 47.8714V57.275C179.097 58.5571 174.73 59.1964 168.791 59.1964H168.174V76.3607H158.299V59.1964H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8714H181.886ZM148.971 34.2786V24.875H177.634V47.05H167.76V34.2821H148.971V34.2786ZM194.64 76.3607H184.765V23.6393H194.64V76.3643V76.3607Z" fill="black"/>%0A<path d="M48.1549 17.8571H26.7511C16.9002 17.8571 8.91455 25.852 8.91455 35.7143V57.1428C8.91455 67.0051 16.9002 75 26.7511 75H48.1549C58.0058 75 65.9915 67.0051 65.9915 57.1428V35.7143C65.9915 25.852 58.0058 17.8571 48.1549 17.8571Z" fill="%234DCDC0"/>%0A<path d="M36.6007 50.7393C27.579 60.6821 12.3823 61.6678 2.1655 53.1643C1.69818 52.775 1.64824 52.0678 2.05848 51.6178L18.1149 33.925L36.6007 50.7393Z" fill="%234DCDC0"/>%0A<path d="M55.2897 25H33.8859C24.0365 25 16.0493 32.9964 16.0493 42.8571V64.2857C16.0493 74.1464 24.0365 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7214 53.6131 85.6321C64.5469 84.675 73.1262 75.4821 73.1262 64.2857V42.8571C73.1262 32.9964 65.139 25 55.2897 25Z" fill="%234DCDC0"/>%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23499CDF"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="white"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7374">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Mb='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65214)">%0A<path d="M57.1427 17.8571H35.7141C25.8518 17.8571 17.8569 25.852 17.8569 35.7143V57.1428C17.8569 67.0051 25.8518 75 35.7141 75H57.1427C67.0049 75 74.9998 67.0051 74.9998 57.1428V35.7143C74.9998 25.852 67.0049 17.8571 57.1427 17.8571Z" fill="%234DCDC0"/>%0A<path d="M45.575 50.7393C36.5429 60.6821 21.3286 61.6678 11.1 53.1643C10.6322 52.775 10.5822 52.0678 10.9929 51.6178L27.0679 33.925L45.575 50.7393Z" fill="%234DCDC0"/>%0A<path d="M64.2857 25H42.8571C32.9964 25 25 32.9964 25 42.8571V64.2857C25 74.1464 32.9964 82.1429 42.8571 82.1429H58.9679C59.9321 82.1429 60.7143 82.925 60.7143 83.8893C60.7143 84.9107 61.5893 85.7214 62.6071 85.6321C73.5536 84.675 82.1429 75.4821 82.1429 64.2857V42.8571C82.1429 32.9964 74.1464 25 64.2857 25Z" fill="%234DCDC0"/>%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23499CDF"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="white"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2359 35.6679 46.2859 35.8464 45.4073 36.2679C44.5145 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2002 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2175_65214">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';function xl({appMode:e}){const{t}=_e.useTranslation(),a=e==="manager",r=a?uo:Qa,s=Mb;return n.jsxs("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:[n.jsx("img",{src:s,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),n.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image brand-identity__image--logo"})]})}function _l({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:s,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:f,onAppModeChange:y,scrollContainer:x}){const{t:h}=_e.useTranslation(),g=rn("(max-width: 767px)"),_=o.useMemo(()=>(a??[]).filter(R=>!R.section&&(R.key||R.label)).map(R=>({key:R.key,label:typeof R.label=="string"?R.label:void 0,icon:R.icon,state:R.disabled?"disabled":void 0,badgeCount:R.badge})),[a]),C=o.useCallback(R=>{const G=a?.find(L=>L.key===R);if(!G?.disabled){if(G?.href){gl(G.href)&&window.open(G.href,"_blank","noopener,noreferrer");return}t?.(R)}},[a,t]),w=o.useMemo(()=>{const R=[];return l&&R.push({key:"debug",icon:"terminal",label:h("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),u&&R.push({key:"notifications",icon:"bell",label:h("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:u}),d&&R.push({key:"settings",icon:"settings",label:h("nav.settings","\uC124\uC815"),onClick:d}),m&&R.push({key:"help",icon:"message-circle-question-mark",label:h("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:m}),p&&R.push({key:"feedback",icon:"bug",label:h("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:p}),c&&R.push({key:"account",icon:"user-round",label:h("nav.account","\uACC4\uC815"),onClick:c}),R},[h,l,u,d,m,p,c,i]),b=o.useCallback((R,G)=>({position:"fixed",top:R.bottom+8,right:Math.max(8,window.innerWidth-R.right),zIndex:ka(G)}),[]),B=o.useId(),{open:v,toggle:k,close:A,style:N,triggerRef:E,menuRef:D}=Na({computeStyle:b,onScroll:"ignore",onResize:"reposition"}),H=o.useMemo(()=>[{items:w.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.selected??(!!R.key&&R.key===e),closeOnSelect:!0,onClick:()=>{R.onClick?.(),A()}}))}],[w,e,A]);return n.jsxs("aside",{className:`header${f==="manager"?" header--manager":""}`,children:[n.jsxs("div",{className:"header__bi",children:[n.jsx(xl,{appMode:f}),n.jsxs("div",{className:"header__menu-button",ref:E,children:[n.jsx(me,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&i&&i>0?h("nav.badgeInsideLabel",{label:h("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:i,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):h("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:k,"aria-expanded":v,"aria-controls":v?B:void 0}),!!u&&!!i&&i>0&&n.jsx(wt,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),v&&en.createPortal(n.jsx("div",{id:B,role:"group","aria-label":h("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:N,ref:D,children:n.jsx(Da,{columns:H,onClose:A})}),document.body)]})]}),n.jsx(vl,{scrollContainer:x,items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:f,onAppModeChange:y}),g&&n.jsx(fl,{items:_,activeKey:e??void 0,onChange:C,scrollContainer:x,appMode:f,onAppModeChange:y})]})}const Lb=_l,$b=()=>Tt.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function wl(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const t=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(t))return ta(`${t.toLocaleString("ko-KR")}\uC6D0`)}return ta(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function Rb(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function Pb(e){if(e.durationDays&&e.durationDays>0){const i=e.durationDays;return i%365===0?`${i/365}\uB144`:`${i}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);if(r)return r[1].replace(/\s+/g,"");const s=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return s?s[2].toLowerCase()==="year"?`${s[1]}\uB144`:`${s[1]}\uC77C`:a||$b()}function Fb(e){const t=(e??"").match(/(\d+)(d|y)\b/i);if(!t)return null;const a=Number(t[1]);return t[2].toLowerCase()==="y"?a*365:a}function Bl(e){return{type:e.type??Rb(e),plan:Pb(e),label:e.label,price:wl(e.price),originalPrice:wl(e.originalPrice),discountLabel:e.discountLabel}}var Ib='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7326)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23FAFAFA"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23FAFAFA"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23FAFAFA"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23FAFAFA"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7326">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Ob='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 200 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="200" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M96.43,48.35v-24.1h30.62v24.1h-30.62ZM142.98,69.15v7.21h-44.76v-15.72h34.46v-2.13h-34.6v-7.21h44.35v15.72h-34.33v2.13h34.88,0ZM106.25,32.56v7.41h11.05v-7.41h-11.05ZM148.33,40.39h-5.9v9.06h-9.89v-25.81h9.89v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M185.54,47.87v9.4c-2.79,1.28-7.16,1.92-13.11,1.92h-.62v17.16h-9.89v-17.16h-12.22v-9.4h22.86c5.86,0,10.18-.64,12.98-1.92h0ZM152.59,34.28v-9.4h28.7v22.17h-9.89v-12.77h-18.81ZM198.31,76.36h-9.89V23.64h9.89v52.73h0Z"/>%0A <path class="st1" d="M46.43,17.86h-21.43c-9.86,0-17.86,7.99-17.86,17.86v21.43c0,9.86,7.99,17.86,17.86,17.86h21.43c9.86,0,17.86-7.99,17.86-17.86v-21.43c0-9.86-7.99-17.86-17.86-17.86Z"/>%0A <path class="st1" d="M34.86,50.74c-9.03,9.94-24.25,10.93-34.48,2.42-.47-.39-.52-1.1-.11-1.55l16.07-17.69,18.51,16.81Z"/>%0A <path class="st1" d="M53.57,25h-21.43c-9.86,0-17.86,8-17.86,17.86v21.43c0,9.86,8,17.86,17.86,17.86h16.11c.96,0,1.75.78,1.75,1.75,0,1.02.88,1.83,1.89,1.74,10.95-.96,19.54-10.15,19.54-21.35v-21.43c0-9.86-8-17.86-17.86-17.86Z"/>%0A <path class="st2" d="M25,25c-5.92,0-10.71,4.8-10.71,10.71v28.57c0,3.09.79,6,2.17,8.54,2.54,1.39,5.45,2.17,8.54,2.17h28.57c5.92,0,10.71-4.8,10.71-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.54-1.39-5.45-2.17-8.54-2.17h-28.57Z"/>%0A <path class="st3" d="M25.36,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M36.07,57.14c-1.04,0-2.09-.27-3.04-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.59-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.33-4.44,2.91-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.35-5.56-.99-.06-1.94.12-2.81.54-.89.43-1.96.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.76.3,8.58,4.26,8.69,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',Hb='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7325)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23111111"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23111111"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23111111"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23111111"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23111111"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7325">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',zb='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7395)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23FAFAFA"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23FAFAFA"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23FAFAFA"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23FAFAFA"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23FAFAFA"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7395">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Vb='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 371 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="371" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M237.15,26.04v46.68h-20.5V26.04h20.5ZM234.41,70.05V28.72h-15.15v41.33h15.15ZM261.49,76.36h-2.68v-27.39h-11.24v26.5h-2.68V23.98h2.68v22.31h11.24v-22.65h2.68v52.73h0Z"/>%0A <path class="st3" d="M299.72,69.26c2.35-.48,4.31-1.11,5.86-1.89v2.75c-1.51.82-3.44,1.46-5.79,1.92-2.35.46-4.74.69-7.17.69h-20.37V25.7h2.74v44.28h17.62c2.38,0,4.74-.24,7.1-.72h0ZM311.69,76.43V23.64h2.74v52.73l-2.74.07Z"/>%0A <path class="st3" d="M340.56,47.94l17.62,22.52-2.13,1.65-16.18-20.94c-1.46,6.18-3.54,11.1-6.24,14.76-2.7,3.66-5.9,5.93-9.6,6.8v-2.75c3.25-.82,6.01-3.11,8.3-6.86,2.29-3.75,4.02-8.59,5.21-14.52,1.19-5.92,1.83-12.55,1.92-19.87h-14.47v-2.68h31.61v2.68h-14.4c-.05,7.19-.6,13.59-1.64,19.22h0ZM369.22,76.36h-2.74v-28.9h-14.06v-2.68h14.06v-21.14h2.74v52.73Z"/>%0A <path class="st3" d="M92.88,48.35v-24.1h30.58v24.1h-30.58ZM139.37,69.15v7.21h-44.71v-15.72h34.42v-2.13h-34.56v-7.21h44.3v15.72h-34.28v2.13h34.83,0ZM102.68,32.56v7.41h11.04v-7.41h-11.04ZM144.72,40.39h-5.9v9.06h-9.88v-25.81h9.88v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M181.89,47.87v9.4c-2.79,1.28-7.16,1.92-13.1,1.92h-.62v17.16h-9.88v-17.16h-12.2v-9.4h22.83c5.85,0,10.17-.64,12.96-1.92h0ZM148.97,34.28v-9.4h28.66v22.17h-9.87v-12.77h-18.79ZM194.64,76.36h-9.88V23.64h9.88v52.73h0Z"/>%0A <path class="st1" d="M48.15,17.86h-21.4c-9.85,0-17.84,7.99-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h21.4c9.85,0,17.84-7.99,17.84-17.86v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st1" d="M36.6,50.74c-9.02,9.94-24.22,10.93-34.44,2.42-.47-.39-.52-1.1-.11-1.55l16.06-17.69,18.49,16.81Z"/>%0A <path class="st1" d="M55.29,25h-21.4c-9.85,0-17.84,8-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h16.09c.96,0,1.74.78,1.74,1.75,0,1.02.87,1.83,1.89,1.74,10.93-.96,19.51-10.15,19.51-21.35v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st2" d="M26.75,25c-5.91,0-10.7,4.8-10.7,10.71v28.57c0,3.09.79,6,2.17,8.54,2.53,1.39,5.44,2.17,8.53,2.17h28.54c5.91,0,10.7-4.8,10.7-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.53-1.39-5.44-2.17-8.53-2.17h-28.54Z"/>%0A <path class="st3" d="M27.11,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M37.81,57.14c-1.04,0-2.09-.27-3.03-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.58-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.32-4.44,2.9-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.34-5.56-.99-.06-1.93.12-2.81.54-.89.43-1.95.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.75.3,8.57,4.26,8.68,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',Wb='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7394)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23111111"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23111111"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23111111"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23111111"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23111111"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23111111"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23111111"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7394">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Al='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7305)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7179 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7179 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7305">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Un={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},co=new WeakMap;function qb(e){if(e)return co.get(e)}function _n(e,t){e&&(e.style.setProperty(Un.text,t.text),e.style.setProperty(Un.sub,t.sub),t.copyrightColor&&e.style.setProperty(Un.copyright,t.copyrightColor),co.set(e,t))}function wn(e){e&&(e.style.removeProperty(Un.text),e.style.removeProperty(Un.sub),e.style.removeProperty(Un.copyright),co.delete(e))}const kl={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Nl(e={}){const t=_t(kl,_n,wn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-two-circle__c1"}),n.jsx("div",{className:"pass-card-bg-two-circle__c3"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${Al}")`}})]})}const Dl="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464Z";var Ea='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65181)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="url(%23paint0_linear_2175_65181)"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2175_65181" x1="29.6392" y1="29.6393" x2="75.2535" y2="75.2536" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2175_65181">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Ub={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},Gb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function El(e={}){const t=_t(Ub,_n,wn),a="var(--color-main)",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[n.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:Gb.map(({scale:i,opacity:l},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:n.jsx("path",{d:Dl,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}const Kb={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},Yb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Zb(e={}){const t=_t(Kb,_n,wn),a="#ffffff",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[n.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:Yb.map(({scale:i,opacity:l},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:n.jsx("path",{d:Dl,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${Al}")`}})]})}const Xb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Jb(e={}){const t=_t(Xb,_n,wn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}const Qb={Logo_speechear_kr:{"":Qa,_white:Ib,_textWhite:Ob,_black:Hb},Logo_speechearManager_kr:{"":uo,_white:zb,_textWhite:Vb,_black:Wb}};function e4(e,t){if(e)return Qb[e]?.[t??""]??void 0}const t4={speechear:Qa,manager:uo},n4={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},Sl=10;function a4(e){return e<=0?0:e>=86400?Math.floor(e/86400)*86400:e>=3600?Math.floor(e/3600)*3600:e>=60?Math.floor(e/60)*60:Math.floor(e)}function jl(e,t){if(e<=0)return t("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return t("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return t("passCard.remainingHour",{n:r});const s=Math.floor(e/60);return s>0?t("passCard.remainingMinute",{n:s}):t("passCard.remainingSecond",{n:Math.floor(e)})}function r4(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),s=a==="\uC624\uD508\uD2B9\uAC00"||a===Tt.t("passCard.specialLabel");return r?n.jsx(Jb,{}):s?n.jsx(Zb,{}):n.jsx(El,{})}return n.jsx(Nl,{})}function Tl({ariaLabel:e,product:t,showPrice:a=!1,plan:r,type:s,endDate:i,remainingSeconds:l,endInclusive:u=!1,state:c="active",bg:d,bgOnly:m=!1,textColor:p,subColor:f,copyrightColor:y,logoSrc:x,label:h,price:g,originalPrice:_,discountLabel:C,onUse:w,onRefund:b,onDelete:B}){const{t:v}=_e.useTranslation(),k=t?Bl(t):void 0,A=s??k?.type??"speechear",N=r??k?.plan??v("passCard.planSuffix","\uC774\uC6A9\uAD8C"),E=h??k?.label,D=g??(a?k?.price:void 0),H=_??(a?k?.originalPrice:void 0),R=C??k?.discountLabel,G=o.useMemo(()=>{if(D)return null;const V=t?.durationDays??Fb(t?.code);if(!V||V<=0)return l!=null?{percent:null,remainingLabel:jl(l,v)}:null;const ne=V*86400;let fe;if(l!=null)fe=l;else if((c==="active"||c==="expired")&&i){const ae=new Date(i).getTime();if(Number.isNaN(ae))return null;const de=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(i)),pe=/^(\d{4})-(\d{2})-(\d{2})/.exec(_a()),he=Math.round(de&&pe?(Date.UTC(+de[1],+de[2]-1,+de[3])-Date.UTC(+pe[1],+pe[2]-1,+pe[3]))/864e5:(ae-Date.now())/864e5);fe=Math.max(0,u?he+1:he)*86400}else c==="expired"?fe=0:fe=ne;const Ee=a4(fe),ge=Math.max(0,Math.min(100,Math.floor(Math.min(Ee,ne)/ne*100)));return c==="pending"&&ge>=100?null:{percent:ge,remainingLabel:c==="expired"?v("passCard.expired","\uB9CC\uB8CC\uB428"):jl(fe,v)}},[D,c,i,l,u,t?.durationDays,t?.code,v]),L=o.useRef(null),[M,I]=o.useState({}),[Y,Z]=o.useState(null),z=!!(w||b||B),W=o.useRef(!1),$=o.useRef(void 0),[U,S]=o.useState(x);o.useLayoutEffect(()=>{S(x)},[x]),o.useLayoutEffect(()=>{const V=L.current;V&&(p!==void 0&&V.style.setProperty("--pass-card-text",p),f!==void 0&&V.style.setProperty("--pass-card-sub",f),y!==void 0&&V.style.setProperty("--pass-card-copyright",y))},[p,f,y]),o.useLayoutEffect(()=>{const V=L.current;if(!V)return;const ne=qb(V);if(!x){const fe=n4[A],Ee=c==="expired"?"_black":ne?.logoColor??"",ge=e4(fe,Ee);S(ge)}},[d,x,A,c]);const P=V=>{const ne=L.current;if(!ne)return null;const{left:fe,top:Ee,width:ge,height:ae}=ne.getBoundingClientRect(),de=(V.clientX-fe)/ge-.5;return{rotateX:-((V.clientY-Ee)/ae-.5)*Sl,rotateY:de*Sl}},j=(V,ne)=>{const fe=ne*-.7,Ee=V*.7+10,ge=20+(Math.abs(V)+Math.abs(ne))*.4;return`${fe}px ${Ee}px ${ge}px rgba(0, 0, 0, 0.18)`},F=o.useCallback(V=>{if(ra())return;W.current=!0,clearTimeout($.current),$.current=setTimeout(()=>{W.current=!1},200);const ne=P(V);ne&&I({transform:`perspective(800px) rotateX(${ne.rotateX}deg) rotateY(${ne.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:j(ne.rotateX,ne.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),O=o.useCallback(V=>{if(ra())return;const ne=P(V);if(!ne)return;const fe=W.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";I({transform:`perspective(800px) rotateX(${ne.rotateX}deg) rotateY(${ne.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:j(ne.rotateX,ne.rotateY),transition:fe})},[]),q=o.useCallback(()=>{clearTimeout($.current),W.current=!1,I({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),Q=o.useCallback(()=>Z(null),[]),oe=o.useMemo(()=>{const V=v("passCard.planSuffix","\uC774\uC6A9\uAD8C"),ne=N.replace("\uC774\uC6A9\uAD8C","").replace(V==="\uC774\uC6A9\uAD8C"?"":V,"").trim(),fe=ne.match(/^(.*?)(일|년)$/);return fe?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"h0 pass-card__plan-number",children:fe[1]}),n.jsx("span",{className:"h5b pass-card__plan-unit",children:fe[2]==="\uB144"?v("passCard.unitYear","\uB144"):v("passCard.unitDay","\uC77C")})]}):n.jsx("span",{className:"h0",children:ne})},[N,v]),se=o.useMemo(()=>{const V=ta(D);if(!V)return null;const ne=V.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!ne)return n.jsx("span",{className:"h1",children:V});const[,fe,Ee,ge]=ne;return n.jsxs(n.Fragment,{children:[fe&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:fe}),n.jsx("span",{className:"h1 pass-card__price-amount",children:Ee}),ge.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:ge.trim()})]})},[D]),te=o.useCallback(()=>{z&&Z(V=>{if(V)return null;const ne=L.current?.getBoundingClientRect();if(!ne)return null;const fe=50;return{left:ne.left,right:ne.right,width:ne.width,height:ne.height,x:ne.x,y:ne.y+fe,top:ne.top+fe,bottom:ne.bottom+fe}})},[z]),le=o.useCallback(V=>{z&&(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),te())},[z,te]),De=[{items:[...w?[{label:v("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{w(),Z(null)},closeOnSelect:!0}]:[],...b?[{label:v("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{b(),Z(null)},closeOnSelect:!0}]:[],...B?[{label:v("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{B(),Z(null)},closeOnSelect:!0}]:[]]}];return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card-frame",children:n.jsxs("div",{ref:L,className:`pass-card pass-card--${c}${z?" pass-card--clickable":""}`,style:M,onMouseEnter:F,onMouseMove:O,onMouseLeave:q,onPointerUp:V=>{V.pointerType==="touch"&&q()},onPointerCancel:V=>{V.pointerType==="touch"&&q()},onClick:te,onKeyDown:z?le:void 0,role:z?"button":void 0,tabIndex:z?0:void 0,"aria-label":e,"aria-haspopup":z?"menu":void 0,"aria-expanded":z?!!Y:void 0,children:[d??r4(A,N,E),!m&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card__top",children:n.jsxs("div",{className:"pass-card__top-left",children:[n.jsx("img",{src:U??t4[A],className:"pass-card__logo",alt:A==="manager"?v("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):v("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),n.jsxs("div",{className:"pass-card__plan",children:[n.jsx("div",{children:oe}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:E?v("passCard.labeledPlan",{label:E}):v("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),D?n.jsxs("div",{className:"pass-card__price-area",children:[R&&n.jsx("span",{className:"pass-card__discount body-3",children:R}),n.jsxs("div",{className:"pass-card__price",children:[H&&n.jsx("span",{className:"pass-card__price-original body-3",children:ta(H)}),se]})]}):G?n.jsxs("div",{className:"pass-card__usage",children:[n.jsx("span",{className:"h5b pass-card__usage-remaining",children:G.remainingLabel}),G.percent!=null&&n.jsxs("span",{className:"pass-card__usage-percent",children:[n.jsx("span",{className:"h1 pass-card__usage-value",children:G.percent}),n.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):n.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),Y&&n.jsx(un,{anchorRect:Y,onClose:Q,ariaLabel:v("tooltip.menu","\uBA54\uB274"),children:n.jsx(Da,{columns:De,onClose:Q,size:"small"})})]})}const o4={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function s4(e={}){const t=`passcard-sound-line-grad-${o.useId()}`,a=_t(o4,_n,wn);return n.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[n.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("defs",{children:n.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[n.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),n.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),n.jsx("g",{transform:"translate(25, 45)",children:n.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${t})`,strokeWidth:"50",strokeLinecap:"round"})})]}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}const i4={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function l4(e={}){const t=_t(i4,_n,wn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}function u4(e,t){if(e){if(t==="manager_pro")return n.jsx(l4,{});if(t==="manager_standard")return n.jsx(s4,{});if(t==="manager_lite")return n.jsx(El,{})}}function c4(e){const t=ta(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,s,i]=a;return n.jsxs(n.Fragment,{children:[r&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,i.trim()&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function d4(e){const{t}=_e.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:i,period:l="monthly",ownedCodes:u}=e||{},c=b=>!!b&&!!u?.includes(b),d=b=>b.onceOnly??/오픈\s*특가/.test(b.label??""),m=(s.tiers||[]).some(b=>d(b)&&c(b.code)),p=b=>{const B=b.prices?b.prices[l]:b.price;return B?(s.tiers||[]).some(v=>!!v.badge&&v.originals?.[l]===B):!1},f=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",y=t("payment.plan.freePrice","\uBB34\uB8CC"),x=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),h=b=>b.prices?b.prices[l]:b.price,g=(s.tiers||[]).length>0&&(s.tiers||[]).every(b=>{const B=h(b);return B==="\uBB34\uB8CC"||B===y||B==="0\uC6D0"||typeof B=="string"&&/\d/.test(B)&&!/[1-9]/.test(B)}),_=(s.tiers||[]).length>0&&(s.tiers||[]).every(b=>{const B=h(b);return B==="\uBB38\uC758"||B===x}),C=s.group==="org",w=C?"manager":"speechear";return n.jsxs("div",{className:"payment-plan__card",style:{borderColor:f,"--plan-color":f},children:[s.cardBadge&&n.jsx("div",{className:"payment-plan__card-badge",children:n.jsx(wt,{label:s.cardBadge,variant:"main",size:"medium",fill:"soft"})}),n.jsxs("div",{className:"payment-plan__title",children:[n.jsx("p",{className:"payment-plan__quote body-3b",style:{color:f},children:s.quote||"\xA0"}),n.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),n.jsx("p",{className:"payment-plan__subtitle body-3",children:s.subtitle})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.recommendedFor||[]).map((b,B)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(tt,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:f}}),b]},B))})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.features||[]).map((b,B)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(tt,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:f}}),b]},B))})]}),n.jsx("div",{className:"payment-plan__card-pricing",children:g?null:_?n.jsx(me,{htmlType:"button",className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>s.tiers?.[0]&&i?.({...s.tiers[0],productId:s.id,productTitle:s.title})}):n.jsx(n.Fragment,{children:n.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(b=>{const B=b.label||a,v=d(b),k=v||b.openPromo===!0,A=B.replace(/^오픈\s*특가\s*/,"")||a,N=b.prices?b.prices[l]:b.price,E=b.badge?k?`${r}
852
+ ${b.badge}`:b.badge:void 0;if(v&&c(b.code))return null;if(!b.badge&&!m)return p(b)?null:n.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${b.highlight?" payment-plan__pricing-row--highlight":""}`,children:[n.jsx("div",{className:"payment-plan__pricing-row-title",children:n.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:b.label})}),n.jsx("div",{className:"payment-plan__pricing-row-price",children:n.jsx("span",{className:"payment-plan__pricing-current h1",children:c4(N)})})]},b.id);const D=s.tier??(C?s.title:void 0),H=n.jsx(Tl,{showPrice:!0,product:{type:w,code:b.code,name:A,label:D,price:N,originalPrice:b.originals?.[l]??void 0,discountLabel:E},bg:u4(C,s.id)}),R=()=>i?.({...b,productId:s.id,productTitle:s.title,preview:H});return n.jsx("div",{className:"payment-plan__pricing-card",onClick:R,onKeyDown:i?G=>{G.target===G.currentTarget&&(G.key==="Enter"||G.key===" ")&&(G.preventDefault(),R())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:H},b.id)})})})})]})}function p4({variant:e="default"}){return n.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var po='data:image/svg+xml,<svg width="264" height="100" viewBox="0 0 264 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2079_3030)">%0A<path d="M60.9019 24.7464C54.4446 18.2821 45.5257 14.2857 35.6757 14.2857C25.8256 14.2857 23.2106 24.5964 16.7569 31.0607C10.2996 37.5214 0 40.1857 0 50C0 59.8143 3.99211 68.7893 10.4494 75.2536C16.9067 81.7178 25.8256 85.7143 35.6757 85.7143C45.5257 85.7143 54.4446 81.7178 60.9019 75.2536C67.3592 68.7893 71.3513 59.8607 71.3513 50C71.3513 40.1393 67.3592 31.2107 60.9019 24.7464ZM48.2906 62.6286C45.0619 65.8607 40.6025 67.8571 35.6757 67.8571C30.7489 67.8571 26.2894 65.8571 23.0608 62.6286C19.8321 59.3964 17.8378 54.9321 17.8378 50C17.8378 45.0678 19.8357 40.6036 23.0608 37.3714C26.2894 34.1393 30.7489 32.1428 35.6757 32.1428C40.6025 32.1428 45.0619 34.1428 48.2906 37.3714C51.5192 40.6036 53.5135 45.0678 53.5135 50C53.5135 54.9321 51.5157 59.3964 48.2906 62.6286Z" fill="url(%23paint0_linear_2079_3030)"/>%0A<path d="M106.735 74.8322H93.6274V24.8322H106.735V74.8322Z" fill="%23111111"/>%0A<path d="M113.495 24.8322H126.602V44.5143H145.022V24.8322H158.197V74.8322H145.022V55.15H126.602V74.8322H113.495V24.8322Z" fill="%23111111"/>%0A<path d="M163.027 74.8322L179.652 24.8322H197.519L214.076 74.8322H199.934L196.969 65.025H180.205L177.241 74.8322H163.031H163.027ZM193.933 55.0786L188.76 38.2964H188.346L183.241 55.0786H193.933Z" fill="%23111111"/>%0A<path d="M218.906 24.8322H240.29C251.674 24.8322 257.675 29.7357 257.675 37.4C257.675 42.925 253.743 47.1393 248.085 48.3107V48.7929C254.364 49 259.605 53.6286 259.605 60.7393C259.605 68.8893 252.983 74.8286 242.081 74.8286H218.902V24.8322H218.906ZM244.157 40.1643C244.157 36.9857 241.674 35.1929 238.085 35.1929H232.013V45.1393H237.878C241.535 45.1393 244.157 43.3429 244.157 40.1679V40.1643ZM245.741 59.0857C245.741 55.425 243.119 53.3536 238.913 53.3536H232.013V64.2643H238.706C243.397 64.2643 245.741 62.4679 245.741 59.0857Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2079_3030" x1="15.337" y1="29.6393" x2="60.9512" y2="75.2042" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2079_3030">%0A<rect width="264" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Ml={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function m4(){const e=_t(Ml,_n,wn);return n.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${po}")`}})})}const Ll={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function h4(e={}){const t=_t(Ll,_n,wn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),n.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}function $l({keys:e,anchor:t="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return n.jsx("span",{className:Ae("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:s.map((i,l)=>n.jsxs("span",{className:"shortcut-badge__group",children:[l>0&&n.jsx("span",{className:"shortcut-badge__plus",children:"+"}),n.jsx("kbd",{className:"shortcut-badge__key",children:i})]},`${i}-${l}`))})}const Sa=(e,t,a)=>e+(t-e)*a;function C4({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:i=null,answerId:l=null,showFeedback:u=!1,pulseSelected:c=!1,pulseSelectedDuration:d,pulseScale:m,clickable:p=!1,onSelectSpeaker:f,buttonSize:y=40,showIcon:x=!0,onCenterClick:h,centerLabel:g,centerDisabled:_=!1,centerAttention:C=!1,shortcutAnchor:w="top-right",shortcutScale:b,scaleShortcut:B=!1}){const{t:v}=_e.useTranslation(),k=Math.max(0,Math.min(1,a)),A=t/2,N=110/300,E=.18,D=V=>t*(N+(V-1)*E),H=V=>{const ne=D(V.row??1),fe=V.angleDeg*Math.PI/180;return{x:A+ne*Math.cos(fe),y:A+ne*Math.sin(fe)}},R=Math.max(...e.map(V=>V.row??1),1),G=t*.08,L=t*.1,M=t*.24,I=t-2*G,Y=t-L-M,Z=t-M/2,z=o.useMemo(()=>[...new Set(e.map(V=>V.deg))].sort((V,ne)=>V-ne),[e]),W=z.length,$=Math.max(68,W>1?I/(W-1):0),U=o.useMemo(()=>new Map(z.map((V,ne)=>[V,ne])),[z]),S=V=>{const ne=U.get(V.deg)??0,fe=A+(ne-(W-1)/2)*$,Ee=R>1?Math.min(68,Y/(R-1)):0,ge=Ee*(R-1),ae=L+(Y-ge)/2,de=R===1?L+Y*.4:ae+(R-(V.row??1))*Ee;return{x:fe,y:de}},P=V=>{const ne=H(V),fe=S(V);return{x:Sa(ne.x,fe.x,k),y:Sa(ne.y,fe.y,k)}},j={x:A,y:Sa(A,Z,k)},F=Math.round(y*1.2),O=Math.round(Math.max(16,Math.min(80,y*.7))),q=[],Q=new Map;for(const V of e){const ne=V.row??1;Q.has(ne)||Q.set(ne,[]),Q.get(ne).push(V)}for(const[V,ne]of Q.entries()){if(ne.length<2)continue;const fe=[...ne].sort((Oe,dt)=>Oe.deg-dt.deg),Ee=fe.map(Oe=>P(Oe)),ge=fe.map(Oe=>Oe.deg),ae=ge[ge.length-1]-ge[0],de=ae/(ge.length-1),pe=360-ae,he=fe.length>=3&&de>0&&pe<=de*1.5,be=Math.round(D(V)*1e3)/1e3,Pe=(Oe,dt,lt,ot)=>{const ct=(dt.angleDeg-Oe.angleDeg+540)%360-180;if(ct===0)return`L ${ot.x} ${ot.y}`;if(k===0)return`A ${be} ${be} 0 0 ${ct>0?1:0} ${ot.x} ${ot.y}`;const ke=(Oe.angleDeg+ct/2)*Math.PI/180,He={x:A+be*Math.cos(ke),y:A+be*Math.sin(ke)},Be={x:(lt.x+ot.x)/2,y:(lt.y+ot.y)/2},Xe={x:Sa(He.x,Be.x,k),y:Sa(He.y,Be.y,k)},X={x:2*Xe.x-Be.x,y:2*Xe.y-Be.y};return`Q ${X.x} ${X.y} ${ot.x} ${ot.y}`},$e=he?[...fe,fe[0]]:fe,Ie=he?[...Ee,Ee[0]]:Ee;let Fe=`M ${Ie[0].x} ${Ie[0].y}`;for(let Oe=1;Oe<Ie.length;Oe++)Fe+=" "+Pe($e[Oe-1],$e[Oe],Ie[Oe-1],Ie[Oe]);q.push({key:`arc-${V}`,d:Fe})}const oe=o.useMemo(()=>new Set(s??[]),[s]),se=V=>({idle:"",active:v("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:v("soundCompass.state.played","\uB4E4\uC74C"),correct:v("soundCompass.state.correct","\uC815\uB2F5"),wrong:v("soundCompass.state.wrong","\uC624\uB2F5")})[V],te=V=>{if(r===V.id)return"active";if(u){if(V.id===l)return"correct";if(V.id===i&&i!==l)return"wrong"}return oe.has(V.id)?"played":"idle"},le=V=>r===V.id?"loop":u?V.id===l?"loop":null:c&&V.id===i?"once":null,De=(V,ne)=>{switch(V){case"played":case"correct":return n.jsx(ps,{size:ne});case"wrong":return n.jsx(_s,{size:ne});default:return n.jsx(xs,{size:ne})}};return n.jsx("div",{className:"sound-compass",children:n.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:t,height:t},children:[n.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,className:"sound-compass__svg",children:[k===0&&e.map(V=>{const{x:ne,y:fe}=P(V);return n.jsx("line",{x1:j.x,y1:j.y,x2:ne,y2:fe,stroke:"#dde3ec",strokeWidth:"1"},V.id)}),q.map(V=>n.jsx("path",{d:V.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},V.key))]}),C&&!_&&n.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:F,height:F,left:j.x-F/2,top:j.y-F/2}}),h?n.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${_?" sound-compass__center--disabled":""}`,style:{width:F,height:F,left:j.x,top:j.y},"aria-label":g,"aria-disabled":_||void 0,tabIndex:_?-1:0,onClick:_?void 0:h,children:n.jsx(Br,{size:O,color:"currentColor",strokeWidth:1.5})}):n.jsx("div",{className:"sound-compass__center",style:{width:F,height:F,left:j.x,top:j.y},children:n.jsx(Br,{size:O,color:"currentColor",strokeWidth:1.5})}),e.map((V,ne)=>{const{x:fe,y:Ee}=P(V),ge=te(V),ae=le(V),de={...b!==void 0||B?{"--shortcut-badge-scale":String(b??Math.max(.75,Math.min(3,y/56)))}:null,pointerEvents:p?"auto":"none",cursor:p?"pointer":"default",zIndex:ge!=="idle"?10:1},pe=y,he=Math.round(Math.max(10,Math.min(56,pe*.38))),be=Math.round(Math.max(7,Math.min(18,pe*.2))),Pe=Math.round(Math.max(10,Math.min(56,pe*.4))),$e=x==="answered"&&(ge==="played"||ge==="correct"||ge==="wrong"),Ie=x===!0||$e,Fe=!$e;return n.jsxs("div",{className:"sound-compass__speaker-pos",style:{...de,left:fe-pe/2,top:Ee-pe/2},children:[ae&&n.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ge}`+(ae==="once"?" sound-compass__pulse--once":""),style:{width:pe,height:pe,...ae==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...m!==void 0?{"--sc-pulse-scale":String(m)}:null}}),n.jsxs("button",{type:"button",tabIndex:p?0:-1,"aria-disabled":p?void 0:!0,onClick:p?()=>f?.(V.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ge}`,style:{width:pe,height:pe},"aria-label":se(ge)?`${V.label}, ${se(ge)}`:V.label,"aria-pressed":i!=null?V.id===i:void 0,children:[Ie&&De(ge,he),Fe&&n.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:x===!0?be:Pe},children:ne+1})]}),V.shortcut&&n.jsx($l,{keys:V.shortcut,anchor:w,className:"sound-compass__speaker-shortcut"})]},V.id)})]})})}function f4({children:e,position:t="top-left",size:a=24,className:r=""}){return n.jsx("span",{className:Ae("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}function g4({orientation:e="horizontal",label:t,className:a=""}){const r=Ae("divider",`divider--${e}`,t&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?n.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):t?n.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[n.jsx("span",{className:"divider__line"}),n.jsx("span",{className:"divider__label caption-1",children:t}),n.jsx("span",{className:"divider__line"})]}):n.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function Rl({checked:e,onChange:t,name:a,value:r,disabled:s=!1,label:i,className:l=""}){const u=o.useId();return n.jsxs("label",{className:`radio${s?" radio--disabled":""} ${l}`.trim(),htmlFor:u,children:[n.jsx("input",{id:u,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:c=>t?.(c.target.checked)}),n.jsx("span",{className:"radio__dot"}),i&&n.jsx("span",{className:"radio__label body-2",children:i})]})}function b4({options:e,value:t,onChange:a,name:r,disabled:s=!1,direction:i="vertical",className:l="",ariaLabel:u}){const c=o.useId(),d=r??`radio-group-${c}`;return n.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":u,children:e.map(m=>n.jsx(Rl,{name:d,value:m.value,checked:t===m.value,disabled:s||m.disabled,label:m.label,onChange:p=>{p&&a?.(m.value)}},m.value))})}const y4={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function v4({tone:e="info",title:t,message:a,children:r,dismissible:s=!1,onDismiss:i,live:l,className:u=""}){const{t:c}=_e.useTranslation(),[d,m]=o.useState(!1),p=o.useRef(null),f=o.useCallback(()=>{const C=p.current;C&&C.contains(document.activeElement)&&Ya(C),m(!0),i?.()},[i]);if(d)return null;const y=Ae("alert",`alert--${e}`,u),x=l??(e==="danger"||e==="warning"?"assertive":"polite"),h=x==="assertive"?"alert":x==="polite"?"status":void 0,g=!!t,_=!!(a||r);return n.jsxs("div",{ref:p,className:y,role:h,children:[n.jsxs("div",{className:"alert__body",children:[n.jsxs("div",{className:"alert__header",children:[n.jsx(tt,{icon:y4[e],size:20,className:"alert__icon"}),g&&n.jsx("span",{className:"alert__title body-2",children:t}),!g&&_&&n.jsx("div",{className:"alert__message body-3",children:a||r})]}),g&&_&&n.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&n.jsx("button",{type:"button",className:"alert__dismiss",onClick:f,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const x4={ready:"search",guide:"info",error:"circle-alert"};function _4(e,t){const a=t.filter(Boolean);if(a.length===0)return e;const r=[];let s=0,i=0;for(const l of a){const u=e.indexOf(l,s);u<0||(u>s&&r.push(e.slice(s,u)),r.push(n.jsx("strong",{className:"search-summary__em body-2",children:l},i++)),s=u+l.length)}return s<e.length&&r.push(e.slice(s)),r}function w4({status:e="guide",label:t,children:a,emphasis:r,icon:s,className:i=""}){const l=s===!1?null:s??x4[e],u=Ae("search-summary",`search-summary--${e}`,i),c=t??a,d=typeof c=="string"&&r&&r.length>0?_4(c,r):c;return n.jsxs("div",{className:u,role:"status","aria-live":"polite",children:[l!=null&&n.jsx(tt,{icon:l,size:18,className:"search-summary__icon"}),n.jsx("span",{className:"search-summary__text body-2",children:d})]})}function ja({title:e,items:t}){const{t:a}=_e.useTranslation(),{anchorRect:r,openAt:s,close:i}=Aa(),l=o.useRef(null),u=Qr(!!r,(c,d)=>{c&&d?s(l.current?.querySelector("button")??d):i()},l);return n.jsxs("span",{ref:l,style:{display:"contents"},children:[n.jsx(me,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:c=>{aa(c)||s(c.currentTarget)},onPointerLeave:c=>{aa(c)||i()},onClick:c=>{u.touchPress(c.currentTarget)},onFocus:c=>{ra()||s(c.currentTarget)},onBlur:i}),r&&n.jsx(Wn,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:i})]})}function B4({items:e=[],value:t,onChange:a,className:r="",size:s=40}){const i=o.useId(),{t:l}=_e.useTranslation(),u=o.useRef(null),c=e.find(h=>!h.disabled)?.key,d=e.some(h=>h.key===t)?t:c??e[0]?.key,m=e.find(h=>h.key===d&&!h.disabled)?.key??c,p=()=>Array.from(u.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),f=(h,g=p())=>{if(g.length===0)return;const _=(h%g.length+g.length)%g.length;g[_]?.focus(),g[_]?.click()},y=h=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(h.key))return;h.preventDefault();const g=p(),_=g.indexOf(h.currentTarget);h.key==="ArrowRight"||h.key==="ArrowDown"?f(_+1,g):h.key==="ArrowLeft"||h.key==="ArrowUp"?f(_-1,g):h.key==="Home"?f(0,g):f(g.length-1,g)},x=e.find(h=>h.key===d);return n.jsxs("div",{className:`tabs ${r}`.trim(),children:[n.jsx("div",{ref:u,className:`tabs__list tabs__list--${s}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(h=>n.jsx("button",{id:`tabs__tab-${i}-${h.key}`,type:"button",role:"tab","aria-selected":h.key===d,"aria-controls":`tabs__panel-${i}-${h.key}`,disabled:h.disabled,tabIndex:h.key===m?0:-1,className:`tabs__tab body-2${h.key===d?" tabs__tab--active":""}`,onClick:()=>{h.key!==t&&a?.(h.key)},onKeyDown:y,children:h.label},h.key))}),x&&n.jsx("div",{id:`tabs__panel-${i}-${x.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${x.key}`,tabIndex:0,className:"tabs__panel",children:x.panel},x.key)]})}const A4={xs:12,sm:16,md:20,lg:28,xl:36};function k4(e){const t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"":t.length===1?[...t[0]].slice(0,2).join("").toUpperCase():([...t[0]][0]+[...t[t.length-1]][0]).toUpperCase()}function N4({src:e,name:t,size:a="md",shape:r="circle",className:s=""}){const{t:i}=_e.useTranslation(),[l,u]=o.useState(null),c=!!e&&l===e,d=t?k4(t):"",m=!!e&&!c,p=!m&&!!d,f=t||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return n.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":f,children:[m&&n.jsx("img",{className:"avatar__image",src:e,alt:f,onError:()=>u(e??null)}),!m&&p&&n.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!m&&!p&&n.jsx(tt,{icon:"user-round",size:A4[a],className:"avatar__icon"})]})}function D4(e,t){if(!t)return!0;const a=t.split(",").map(i=>i.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),s=e.type.toLowerCase();return a.some(i=>{const l=i.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?s.startsWith(l.slice(0,-1)):s===l})}function E4({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:i,onRemove:l,className:u=""}){const{t:c}=_e.useTranslation(),d=o.useRef(null),[m,p]=o.useState(!1),[f,y]=o.useState([]),x=i??f,h=v=>{if(!v||v.length===0)return;const k=Array.from(v).filter(N=>D4(N,t));if(k.length===0)return;const A=a?k:k.slice(0,1);if(i===void 0){const N=a?[...x,...A]:A;y(N),e?.(N)}else e?.(A)},g=v=>{v.preventDefault(),!r&&p(!0)},_=v=>{v.preventDefault(),p(!1)},C=v=>{v.preventDefault(),p(!1),!r&&h(v.dataTransfer.files)},w=v=>{const k=v.target;try{h(k.files)}finally{k.value=""}},b=()=>{r||d.current?.click()},B=v=>{if(!r&&(l?.(v),i===void 0)){const k=x.filter((A,N)=>N!==v);y(k),l||e?.(k)}};return n.jsxs("div",{className:`file-upload ${u}`.trim(),children:[n.jsxs("div",{className:Ae("file-upload__dropzone",m&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:b,onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),b())},onDragOver:g,onDragLeave:_,onDrop:C,children:[n.jsx(tt,{icon:"upload",size:24,className:"file-upload__icon"}),n.jsx("span",{className:"file-upload__prompt body-2",children:c("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),n.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:v=>{v.stopPropagation(),b()},children:c("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),n.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:w,tabIndex:-1})]}),s&&x.length>0&&n.jsx("ul",{className:"file-upload__list",children:x.map((v,k)=>n.jsxs("li",{className:"file-upload__list-item body-3",children:[n.jsx("span",{className:"file-upload__file-name body-3",children:v.name}),n.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":c("fileUpload.removeAriaLabel",{name:v.name}),disabled:r,onClick:()=>B(k),children:n.jsx(tt,{icon:"x",size:14})})]},`${v.name}-${k}`))})]})}function S4({items:e,className:t=""}){const{t:a}=_e.useTranslation();return n.jsx("nav",{className:`breadcrumb ${t}`.trim(),"aria-label":a("breadcrumb.ariaLabel","\uC774\uB3D9 \uACBD\uB85C"),children:n.jsx("ol",{className:"breadcrumb__list",children:e.map((r,s)=>{const i=s===e.length-1;return n.jsxs("li",{className:"breadcrumb__item",children:[i?n.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:r.label}):r.href?n.jsx("a",{className:"breadcrumb__link body-3",href:r.href,target:r.target,rel:r.rel??(r.target==="_blank"?"noopener noreferrer":void 0),onClick:r.onClick,children:r.label}):r.onClick?n.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}):n.jsx("span",{className:"breadcrumb__text body-3",children:r.label}),!i&&n.jsx(tt,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const j4={small:14,medium:20,large:28};function T4({value:e,onChange:t,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:i,className:l=""}){const{t:u}=_e.useTranslation(),c=r||!t,[d,m]=o.useState(null),p=c?e:Number.isFinite(e)?Math.round(e):0,f=d??p,y=j4[s],x=v=>{v!==e&&t?.(v)},h=v=>{c||x(v)},g=v=>{c||ra()||m(v)},_=o.useRef(null),C=v=>{const k=Math.min(a,Math.max(1,v));x(k),Array.from(_.current?.querySelectorAll("[data-star]")??[]).find(A=>A.dataset.star===String(k))?.focus()},w=v=>{if(!c){switch(v.key){case"ArrowRight":case"ArrowUp":C((p||0)+1);break;case"ArrowLeft":case"ArrowDown":C((p||1)-1);break;case"Home":C(1);break;case"End":C(a);break;default:return}v.preventDefault()}},b=p>=1&&p<=a?Math.round(p):1,B=()=>{c||m(null)};return n.jsx("div",{className:`rating rating--${s}${c?" rating--readOnly":""} ${l}`.trim(),ref:_,onKeyDown:w,role:c?"img":"radiogroup","aria-label":c?u("rating.valueLabel",{value:e,max:a}):i??u("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:B,onPointerUp:v=>{v.pointerType==="touch"&&B()},onPointerCancel:v=>{v.pointerType==="touch"&&B()},children:Array.from({length:a},(v,k)=>{const A=k+1,N=Math.max(0,Math.min(1,f-k)),E=N>0&&N<1,D=n.jsxs("span",{className:"rating__star-wrap",children:[n.jsx(tt,{icon:"star",size:y,className:"rating__star rating__star--empty"}),N>0&&n.jsx("span",{className:`rating__star-fill${E?" rating__star-fill--half":""}`,style:E?{width:`${N*100}%`}:void 0,children:n.jsx(tt,{icon:"star",size:y,className:"rating__star rating__star--filled"})})]});return c?n.jsx("span",{className:"rating__item","aria-hidden":"true",children:D},A):n.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":p===A,"aria-label":u("rating.starLabel",{n:A}),"data-star":A,tabIndex:A===b?0:-1,onClick:()=>h(A),onMouseEnter:()=>g(A),children:D},A)})})}const M4=20,L4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function $4({value:e,onChange:t,palette:a=L4,size:r=40,className:s="",ariaLabel:i}){const{t:l}=_e.useTranslation();return n.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":i,children:a.map(u=>{const c=e?.toLowerCase()===u.toLowerCase();return n.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:u},onClick:()=>t(u),"aria-pressed":c,"aria-label":c?`${u} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:u,children:c&&n.jsx(tt,{icon:"check",size:M4,className:"color-picker__check"})},u)})})}function Pl({icon:e,label:t,tooltip:a,wrapperStyle:r,color:s,bgColor:i,useHover:l=!0,iconSize:u="medium"}){const{t:c}=_e.useTranslation(),d=u==="small",m=Ae("category-icon",d?"category-icon--small":""),p=d?16:20,f=o.useRef(null),[y,x]=o.useState(!1),h=o.useMemo(()=>{const A=r&&typeof r=="object"?{...r}:{};return!s&&!i?A:{...A,...s?{color:s,"--t-item-fg":s}:{},...i?{"--t-item-bg":i}:{}}},[r,s,i]),g=a||t,_=l&&!!g,[C,w]=o.useState(null);o.useLayoutEffect(()=>{y&&w(f.current?.getBoundingClientRect()??null)},[y]),o.useEffect(()=>{if(!l&&y)try{x(!1)}catch{}},[l,y]),o.useEffect(()=>{if(!y)return;const A=N=>{const E=f.current;if(!E)return;const D=N.target;D&&!E.contains(D)&&x(!1)};return document.addEventListener("pointerdown",A,!0),()=>document.removeEventListener("pointerdown",A,!0)},[y]);const b=o.useCallback(()=>{l&&x(!0)},[l]),B=o.useCallback(()=>{l&&x(!1)},[l]),v=o.useCallback(()=>x(!1),[]),k=o.useCallback(A=>{if(A.key==="Escape"){x(!1);return}(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),x(N=>!N))},[]);return n.jsxs("span",{ref:f,className:Ae("category-icon__wrap",_&&"category-icon__wrap--interactive"),onPointerEnter:b,onPointerLeave:B,onFocus:b,onBlur:B,onKeyDown:k,role:"button",tabIndex:0,"aria-label":typeof g=="string"?c("common.descriptionFor",{name:g,defaultValue:`${g} \uC124\uBA85`}):void 0,"aria-haspopup":!!g,"aria-expanded":y,"data-tooltip-ignore":!0,children:[n.jsx(tt,{icon:e,label:t,className:m,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:h,size:p}),y&&g&&n.jsx(vn,{anchorRect:C,text:typeof g=="string"?g:void 0,offset:8,onClose:v,className:"category-icon__tooltip",ariaLabel:typeof g=="string"?g:void 0})]})}let Ln=null;function er(e){if(Ln&&Ln!==e)try{Ln()}catch{}return Ln=e,()=>{Ln===e&&(Ln=null)}}function tr(e){if(Ln===e){Ln=null;try{e()}catch{}}}function mo(e,t){let a=()=>{};const r=new Promise(u=>{a=u});let s=!1;const i=u=>{if(!s){s=!0;try{t?.(u)}catch{}a(u)}};let l;try{l=new Audio(e)}catch{return i(!1),{el:{},stop:()=>{},done:r}}l.onended=()=>i(!0),l.onerror=()=>i(!1);try{l.play().catch(()=>i(!1))}catch{i(!1)}return{el:l,stop:()=>{try{l.pause()}catch{}i(!1)},done:r}}function R4(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(u=>u?.contextCode||u?.context_code).filter(Boolean).map(String);if(t==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}if(t==="SHORT_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"SHORT_S"}}if(t==="LONG_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LONG"}}if(t==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}const s=a.sentences||a.items||[],i=r(Array.isArray(s)?s:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function P4(e,t){const[a,r]=o.useState(!1),[s,i]=o.useState(-1),[l,u]=o.useState({key:"",urls:[]}),c=o.useRef(null),d=o.useRef(!1),m=o.useRef(null),p=o.useRef(null),[f,y]=o.useState(!1),x=o.useRef([]),{previewCodes:h,previewBucket:g}=R4(e,t),_=`${h.join(",")}|${g??""}`,C=o.useMemo(()=>l.key===_?l.urls:[],[l,_]);o.useEffect(()=>{if(!h.length)return;let b=!1;return(async()=>{const B=[],v=[];for(const k of h)try{const A=Zs(k,g);if(!A){B.push("");continue}let N=null;try{N=await Xs(A)}catch{}if(!N)try{const E=await Js(A);E&&(N=URL.createObjectURL(E),v.push(N))}catch{}B.push(N??"")}catch{B.push("")}b?v.forEach(k=>{try{URL.revokeObjectURL(k)}catch{}}):(x.current.forEach(k=>{try{URL.revokeObjectURL(k)}catch{}}),x.current=v,u({key:_,urls:B}))})(),()=>{b=!0}},[h.join(","),g]),o.useEffect(()=>()=>{x.current.forEach(b=>{try{URL.revokeObjectURL(b)}catch{}}),x.current=[]},[]);const w=o.useCallback(async b=>{if(b.stopPropagation(),b.preventDefault(),d.current){m.current&&tr(m.current),d.current=!1;try{c.current?.pause()}catch{}r(!1),i(-1);return}if(!C.filter(Boolean).length)return;let B=null;const v=()=>{d.current=!1,B?.stop()};m.current=v;const k=er(v);d.current=!0,r(!0);for(let A=0;A<C.length&&d.current;A++){const N=C[A];if(N&&(i(A),B=mo(N),c.current=B.el,!await B.done))break}k(),m.current===v&&(m.current=null,d.current=!1,r(!1),i(-1))},[C]);return o.useEffect(()=>()=>{m.current&&tr(m.current),d.current=!1;try{c.current?.pause()}catch{}c.current=null},[]),{playing:a,playingIndex:s,previewUrls:C,previewHover:f,setPreviewHover:y,previewBtnRef:p,handlePreview:w}}const F4=e=>{if(!e)return[];const t=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(t)return[String(t)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const s=r;return s.sentence||s.text||s.context||s.question||s.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function ho(e){const{index:t,type:a,trainingData:r,ariaLabel:s,depth:i,renderPopup:l,completed:u,completedIds:c,selectedIds:d,tooltipText:m,useDescriptionTooltip:p=!1,onRemove:f,hideCheckBadge:y=!1,showTypeLabel:x=!1,onComplete:h,onSelect:g,onMore:_,countLabelOverride:C,size:w="square"}=e||{},{t:b}=_e.useTranslation(),[B,v]=o.useState(!1),k=o.useRef(null),[A,N]=o.useState(!1);o.useEffect(()=>{k.current?.matches(":hover")&&N(!0)},[]);const{playing:E,playingIndex:D,previewUrls:H,previewHover:R,setPreviewHover:G,previewBtnRef:L,handlePreview:M}=P4(r,a?.key),I=o.useCallback(()=>{g?g():v(!0)},[g]),Y=o.useCallback(()=>v(!1),[]),Z=o.useCallback(()=>N(!0),[]),z=o.useCallback(()=>N(!1),[]),W=o.useCallback(()=>G(!0),[G]),$=o.useCallback(()=>G(!1),[G]),[U,S]=o.useState(null);o.useLayoutEffect(()=>{R&&S(L.current?.getBoundingClientRect()??null)},[R,L]);const[P,j]=o.useState(null);o.useLayoutEffect(()=>{A&&!B&&p&&j(k.current?.getBoundingClientRect()??null)},[A,B,p]);const F=o.useCallback(Be=>{Be.target===Be.currentTarget&&(Be.key==="Enter"||Be.key===" ")&&(Be.preventDefault(),I())},[I]),O=r||null,q=o.useMemo(()=>{if(!p)return null;const Be=m?(Array.isArray(m)?m:[m]).filter(Boolean):null,Xe=Be&&Be.length>0?Be:F4(O);return Xe&&Xe.length>0?Xe:null},[p,m,O]),Q=o.useCallback(Be=>{Be.stopPropagation(),f?.()},[f]),oe=o.useCallback(Be=>Be.stopPropagation(),[]),se=o.useCallback(Be=>{typeof h=="function"&&h(Be)},[h]),te=u||(c&&r?.id!=null?c.has(String(r.id)):!1),le=!te&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);sl("speechear.popup.close",Y);const De=gi(),V=`${a?.label||""} ${t+1}`,ne=O?.title||O?.name||V;let fe=a?.icon,Ee,ge="",ae="";try{const Be=O?.category_0||O?.category_main_code||O?.category_main,Xe=O?.category_1||O?.category_sub_code||O?.category_sub,X=De.find(ue=>ue.key===Be);X?.icon&&(fe=X.icon),!Ee&&X?.color&&(Ee={"--t-item-fg":X.color}),!Ee&&O?.iconColor&&(Ee={"--t-item-fg":O.iconColor}),ge=X?b(`topic.${X.key}`,{defaultValue:X.label||""}):"";try{const ue=X?.subs?.find(we=>we.key===Xe);ae=ue?b(`topic.sub.${ue.key}`,{defaultValue:ue.label||""}):""}catch{}}catch{}const de=ae?`${ge} / ${ae}`:ge||a?.label||ne,pe=Be=>b("training.countQuestions",{n:Be}),he=Be=>b("training.countSentences",{n:Be});let be="";try{if(O)if(a?.key==="LISTEN_IN_NOISE"){let Be=0;Array.isArray(O.items)&&O.items.length>0?Be=O.items.length:Array.isArray(O.sentences)&&O.sentences.length>0?Be=O.sentences.length:O.sentences&&(Be=1),be=he(Be)}else if(a?.key==="SHORT_STORY"){let Be=1;Array.isArray(r?.items)?Be=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?Be=r.raw.items.length:Array.isArray(O?.questions)?Be=O.questions.length:Array.isArray(O?.sentences)&&(Be=O.sentences.length),be=pe(Be)}else if(a?.key==="LONG_STORY"){let Be=1;if(Array.isArray(O.items)&&O.items.length>0){const Xe=O.items.reduce((X,ue)=>{const we=ue.questionItems;return Array.isArray(we)?X+we.length:Array.isArray(ue.questions)?X+ue.questions.length:X},0);Be=Xe>0?Xe:O.items.length}else Array.isArray(O.questions)&&O.questions.length>0?Be=O.questions.length:Array.isArray(O.sentences)&&O.sentences.length>0&&(Be=O.sentences.length);be=pe(Be)}else if(a?.key==="ORDERING_SENTENCE"){let Be=1;Array.isArray(O.items)&&O.items.length>0?Be=O.items.length:Array.isArray(O.sentences)&&O.sentences.length>0&&(Be=O.sentences.length),be=he(Be)}else Array.isArray(O.items)&&(be=O.items.length>0?pe(O.items.length):"")}catch{}const Pe=w==="row",$e=w==="list"||Pe,Ie=w==="compact",Fe=w==="small",Oe=Fe&&a?.key?ef().find(Be=>Be.key===a.key):void 0,dt=Oe?bi[Oe.key]:void 0,lt=Oe?dt?b(`trainingType.${dt}.title`,{defaultValue:Oe.label}):Oe.label??"":"",ot=x&&a?.label&&a.label!==String(ne)?String(a.label):Fe&&lt&&lt!==String(ne)?lt:"",ct=!!ot,ke=C!==void 0?C:be,He=[ot,typeof ne=="string"?ne:"",ke].map(Be=>String(Be??"").trim()).filter(Boolean).join(" ");return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:k,className:`training-block-button${$e?" training-block-button--list":""}${Pe?" training-block-button--row":""}${Ie?" training-block-button--compact":""}${Fe?" training-block-button--small":""}${te?" training-block-button--completed":""}${le?" training-block-button--selected":""}${ct&&!Fe?" training-block-button--withType":""}${Fe&&!ct?" training-block-button--no-type-label":""}`,onClick:I,onPointerEnter:Z,onPointerLeave:z,role:"button",tabIndex:0,onKeyDown:F,"aria-label":typeof s=="string"?s:He||void 0,title:!p&&m&&(Array.isArray(m)?m.filter(Boolean).join(`
853
+ `):m)||void 0,children:[n.jsxs("div",{className:"training-block-button__left",children:[x&&a?.label&&a.label!==String(ne)&&n.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Fe&&lt&&lt!==String(ne)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:lt}),n.jsx(Pl,{icon:fe,label:ne,tooltip:de,wrapperStyle:Ee,iconSize:Fe||Ie?"small":"medium"}),!y&&(te||le)&&!(f&&A)&&n.jsx(wt,{className:f?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":te?b("training.completed","\uD6C8\uB828 \uC644\uB8CC"):b("training.selected","\uC120\uD0DD\uB428")}),f&&n.jsx(wt,{className:`training-block-button__remove${A?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":b("common.remove","\uC81C\uAC70"),onClick:Q}),n.jsx("div",{className:`training-block-button__title ${Ie?"body-3":Fe?"body-3b":"h3"}`,children:String(ne)}),n.jsxs("div",{className:"training-block-button__description",children:[ke?n.jsx("div",{className:`training-block-button__count ${Fe?"caption-2":"caption-1"}`,children:ke}):null,n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(tt,{icon:"chevron-right",label:b("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Fe?12:20})})]}),($e&&!Pe||Fe)&&H.length>0&&n.jsx("div",{ref:L,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:oe,onPointerEnter:W,onPointerLeave:$,children:n.jsx(me,{htmlType:"button",size:Fe?28:32,type:"dot",icon:E?"pause":"play",variant:Fe?"transparent-lightGray":"default",useBorder:!1,selected:E,ariaLabel:String(ne).trim()?E?b("training.stopFor",{name:ne,defaultValue:`${ne} \uC815\uC9C0`}):b("training.previewFor",{name:ne,defaultValue:`${ne} \uBBF8\uB9AC \uB4E3\uAE30`}):E?b("training.stop","\uC815\uC9C0"):b("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:M})})]}),_&&n.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:Be=>{Be.stopPropagation(),_(Be)},children:n.jsx(me,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:String(ne).trim()?b("common.moreFor",{name:ne}):b("common.more","\uB354\uBCF4\uAE30")})})]}),R&&n.jsx(vn,{anchorRect:U,text:E?b("training.stop","\uC815\uC9C0"):b("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:$}),A&&!B&&p&&(q?n.jsx(Wn,{anchorRect:P,items:q,activeIndex:D,onClose:z}):O?.subTitle?n.jsx(vn,{anchorRect:P,text:O.subTitle,offset:8,onClose:z}):null),B&&l&&l({trainingData:O,typeKey:a?.key??"",onClose:Y,onComplete:se,popupTitle:String(ne),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:fe,popupIconTooltip:String(de),popupWrapperStyle:Ee})]})}const Fl=200;function I4(e){return e.itemId?(of()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function Il({plan:e,groups:t,anchorRect:a,offset:r=12,onClose:s}){const{t:i}=_e.useTranslation(),l=o.useMemo(()=>t?t.map((c,d)=>({key:c.key??c.type?.key??String(d),label:c.label,type:c.type,data:c.items??[]})).filter(c=>c.data.length>0):lf(i).map(c=>{const d=(e?.items??[]).filter(m=>m.trainingType===c.key);return{key:c.key,label:c.label,type:c,\uACE0\uB978\uC218:d.length,data:d.map(I4).filter(m=>m!=null)}}).filter(c=>c.\uACE0\uB978\uC218>0),[t,e?.items,i]);if(l.length===0)return null;const u=n.jsx("div",{className:"tooltip-training__box",children:n.jsx("div",{className:"tooltip-training__groups",children:l.flatMap(({key:c,label:d,type:m,data:p},f)=>[f>0?n.jsx("div",{className:"tooltip-training__divider"},`div-${c}`):null,n.jsxs("div",{className:"tooltip-training__section",children:[n.jsx("div",{className:"tooltip-training__section-header",children:n.jsx("span",{className:"tooltip-training__type-label body-3b",children:d})}),n.jsx("div",{className:"tooltip-training__items",children:p.map((y,x)=>n.jsx(ho,{index:x,type:m,trainingData:y,size:"compact",hideCheckBadge:!0},String(y.id??x)))})]},c)])})});return a?n.jsx(un,{anchorRect:a,offset:r,onClose:s,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:i("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:u}):u}const O4=200;function H4({icon:e,count:t,title:a,plan:r,tooltip:s=!0,hoverAccent:i=!1,className:l="",onClick:u,onMouseEnter:c,onMouseLeave:d}){const m=!!u||!!c||s&&!!r,p=Ae("count-tile",m&&"count-tile--interactive",m&&i&&"count-tile--accent",u&&"count-tile--clickable",l),f=o.useRef(null),[y,x]=o.useState(null),h=o.useRef(null),g=o.useRef(null),_=!!(y&&r&&s),C=o.useCallback(()=>{h.current&&(clearTimeout(h.current),h.current=null),g.current&&(clearTimeout(g.current),g.current=null)},[]),w=o.useCallback(()=>{C(),x(null)},[C]),b=o.useCallback(()=>{!s||!r||(C(),h.current=setTimeout(()=>{h.current=null,x(f.current?.getBoundingClientRect()??null)},Fl))},[s,r,C]),B=o.useCallback(()=>{h.current&&(clearTimeout(h.current),h.current=null),!g.current&&(g.current=setTimeout(()=>{g.current=null,x(null)},O4))},[]);return o.useEffect(()=>()=>{C()},[C]),o.useEffect(()=>{(!s||!r)&&w()},[s,r,w]),o.useEffect(()=>{if(!_)return;const v=A=>A instanceof Element&&(f.current?.contains(A)||!!A.closest(".tooltip-training")),k=A=>{v(A.target)?C():B()};return document.addEventListener("pointerover",k,!0),()=>document.removeEventListener("pointerover",k,!0)},[_,C,B]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:f,className:p,onClick:u?v=>{w(),u(v)}:void 0,onKeyDown:u?v=>{v.key!=="Enter"&&v.key!==" "||(v.preventDefault(),v.currentTarget.click())}:void 0,onPointerEnter:v=>{v.pointerType==="touch"||v.pointerType==="pen"?w():b()},onMouseEnter:c,onMouseLeave:v=>{B(),d?.(v)},role:u?"button":"img",tabIndex:u?0:void 0,"aria-label":`${a} ${t}`,children:[n.jsx(tt,{icon:e,size:20,className:"count-tile__icon"}),n.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]}),y&&r&&n.jsx(Il,{plan:r,anchorRect:y,onClose:w})]})}let Ta=0,Ol="",Co="",Ma=0;function Hl(){return zl(!1)}function z4(){return zl(!0)}function zl(e){const t=typeof document<"u";Ta===0&&t&&(Ol=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Ma===0&&(Co=document.body.style.paddingRight),Ma++,document.body.style.paddingRight="0px"),Ta++;let a=!1;return()=>{a||(a=!0,Ta=Math.max(0,Ta-1),e&&t&&(Ma=Math.max(0,Ma-1),Ma===0&&(Co?document.body.style.paddingRight=Co:document.body.style.removeProperty("padding-right"))),Ta===0&&t&&(document.body.style.overflow=Ol))}}function V4(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:n.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function W4({open:e,onClose:t,ariaLabel:a,title:r,children:s,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:u=!0,showClose:c=!0,className:d,contentClassName:m}){const{t:p}=_e.useTranslation(),f=o.useId(),y=o.useRef(null),x=o.useCallback(()=>t(),[t]);o.useEffect(()=>{if(!e)return;const C=document.activeElement,w=Hl(),b=y.current;return Yr(b,C),b?.focus(),()=>{w();const B=document.activeElement;(!B||B===document.body||b&&b.contains(B))&&Zr(C)?.focus?.()}},[e]);const h=o.useRef(x),g=o.useRef(u);o.useEffect(()=>{h.current=x,g.current=u}),o.useEffect(()=>{if(e)return Vn(()=>{g.current&&h.current()})},[e]);const _=o.useRef(!1);return Gr(y,e),!e||typeof document>"u"?null:en.createPortal(n.jsx("div",{className:Ae("dialog",d),onPointerDown:l?C=>{_.current=C.target===C.currentTarget}:void 0,onMouseDown:C=>{C.target===C.currentTarget&&C.preventDefault()},onClick:l?C=>{const w=_.current;_.current=!1,w&&C.target===C.currentTarget&&x()}:void 0,children:n.jsxs("div",{ref:y,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?f:void 0,tabIndex:-1,className:Ae("dialog__surface",`dialog__surface--${i}`,m),onClick:C=>C.stopPropagation(),children:[r?n.jsx("div",{className:"dialog__header",children:n.jsx("h2",{id:f,className:"dialog__title h4b",children:r})}):null,c?n.jsx("button",{type:"button",className:"dialog__close","aria-label":p("common.close","\uB2EB\uAE30"),onClick:x,children:n.jsx(V4,{})}):null,n.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function q4({columns:e,rows:t,rowKey:a,title:r,toolbar:s,empty:i,loading:l,caption:u,className:c=""}){const{t:d}=_e.useTranslation(),m=!l&&t.length===0;return n.jsxs("div",{className:Ae("board",c),children:[r||s?n.jsxs("div",{className:"board__head",children:[r?n.jsx("h2",{className:"board__title",children:r}):n.jsx("span",{}),s?n.jsx("div",{className:"board__toolbar",children:s}):null]}):null,n.jsxs("table",{className:"board__table",children:[u?n.jsx("caption",{className:"board__caption",children:u}):null,n.jsx("thead",{children:n.jsx("tr",{children:e.map(p=>n.jsx("th",{scope:"col",className:Ae("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),n.jsx("tbody",{children:l?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):m?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:i??d("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):t.map((p,f)=>n.jsx("tr",{className:"board__row",children:e.map(y=>n.jsx("td",{className:Ae("board__td",`board__cell--${y.align??"left"}`),children:y.render(p,f)},y.key))},a(p,f)))})]})]})}function U4({name:e,role:t,photo:a,media:r,credentials:s,size:i=190,className:l=""}){return n.jsxs("div",{className:Ae("person-card",l),children:[n.jsx("div",{className:"person-card__photo",style:{width:i,height:i},children:r??(a?n.jsx("img",{src:a,alt:t?`${e} ${t}`:e}):null)}),n.jsx("h3",{className:"person-card__name",children:e}),t?n.jsx("p",{className:"person-card__role",children:t}):null,s?.length?n.jsx("ul",{className:"person-card__credentials",children:s.map(u=>n.jsx("li",{children:u},u))}):null]})}function G4({groups:e,className:t=""}){return n.jsx("div",{className:Ae("timeline",t),children:e.map(a=>n.jsxs("section",{className:"timeline__group",children:[n.jsx("h3",{className:"timeline__title",children:a.title}),n.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,s)=>n.jsxs("li",{className:"timeline__row",children:[r.label?n.jsx("span",{className:"timeline__label",children:r.label}):null,n.jsx("div",{className:"timeline__items",children:r.items.map((i,l)=>n.jsx("p",{children:i},l))})]},`${r.label??""}-${s}`))})]},a.title))})}function K4({title:e,kind:t,body:a,badge:r,badgeSrc:s,footer:i,width:l,className:u=""}){const c=r??(s?n.jsx("img",{src:s,alt:""}):null);return n.jsxs("div",{className:Ae("publication-card",u),style:l?{width:l,flexShrink:0}:void 0,children:[c?n.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:c}):null,n.jsx("h3",{className:"publication-card__title",children:e}),t?n.jsx("p",{className:"publication-card__kind",children:t}):null,n.jsx("p",{className:"publication-card__body",children:a}),i?n.jsx("div",{className:"publication-card__footer",children:i}):null]})}function Y4({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const s=wa(a);return o.useEffect(()=>{const i=setTimeout(()=>s.current?.(),r);return()=>clearTimeout(i)},[r,s]),n.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:n.jsx("img",{src:e,alt:t,className:"splash-logo__image"})})}function Z4({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:s=2,tone:i="dark",className:l=""}){const u=s===1?"h1":"h2";return n.jsxs("div",{className:Ae("section-header",`section-header--${i}`,l),children:[e?n.jsxs("p",{className:"section-header__eyebrow",children:[t?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"section-header__index",children:t}),n.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?n.jsx(u,{className:"section-header__title",children:a}):null,r?n.jsx("div",{className:"section-header__description",children:r}):null]})}function X4({items:e,className:t=""}){return n.jsx("ul",{className:Ae("company-meta",t),children:e.map((a,r)=>n.jsxs("li",{className:"company-meta__item",children:[r>0?n.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function Vl(e){return typeof e=="string"?e:e.label}function Wl({value:e,onChange:t,suggestions:a,openOnFocus:r=!1,filterSuggestions:s,onSelectSuggestion:i,autoActiveFirst:l=!1}){const u=o.useId(),[c,d]=o.useState(!1),[m,p]=o.useState(-1),f=o.useRef(null),y=o.useMemo(()=>{if(!a.length)return[];const D=e??"";return s===!1?a:D?typeof s=="function"?s(a,D):a.filter(H=>Vl(H).toLowerCase().includes(D.toLowerCase())):r?a:[]},[a,e,r,s]),[x,h]=o.useState(!1),g=o.useRef([]),_=x&&y.length===0?g.current:y;o.useEffect(()=>{_.length&&(g.current=_)},[_]);const C=o.useCallback(()=>h(!0),[]),w=o.useCallback(()=>h(!1),[]),b=l?0:-1;o.useEffect(()=>{c||p(b)},[c,b]),o.useEffect(()=>()=>{f.current&&clearTimeout(f.current)},[]);const B=m<_.length?m:b<_.length?b:-1,v=o.useCallback(D=>{i?i(D):t?.(Vl(D)),d(!1)},[t,i]),k=o.useCallback(()=>d(!0),[]),A=o.useCallback(()=>{d(!0),p(b)},[b]),N=o.useCallback(()=>{f.current=setTimeout(()=>d(!1),120)},[]),E=o.useCallback(D=>{D.nativeEvent.isComposing||D.keyCode===229||(D.key==="ArrowDown"?(D.preventDefault(),d(!0),p(H=>Math.min(_.length-1,(H<_.length?H:b)+1))):D.key==="ArrowUp"?(D.preventDefault(),p(H=>Math.max(b,(H<_.length?H:_.length)-1))):D.key==="Enter"?B>=0&&v(_[B]):D.key==="Escape"&&c&&(D.preventDefault(),d(!1)))},[_,B,c,v,b]);return{listId:u,open:c,activeIdx:B,filtered:_,handleFocus:k,handleBlur:N,handleInput:A,handleKeyDown:E,handleSelect:v,handleCompositionStart:C,handleCompositionEnd:w}}const fo=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Gn(e){const{value:t,defaultValue:a,name:r,inputRef:s,onChange:i,label:l,ariaLabel:u,ariaDescribedBy:c,required:d,placeholder:m,ghostText:p,ghostHint:f,type:y="text",disabled:x=!1,readOnly:h=!1,error:g,helperText:_,maxLength:C,size:w=48,variant:b="input",fullWidth:B=!1,newline:v=!1,multiline:k=!1,rows:A=3,leftIcon:N,rightIcon:E,clearable:D=!1,list:H,showCount:R=!0,className:G="",onFocus:L,onBlur:M,onKeyDown:I,onEnter:Y,inputMode:Z,autoComplete:z,autoFocus:W,suggestions:$,filterSuggestions:U,onSelectSuggestion:S,autoActiveFirst:P,openOnFocus:j=!1}=e,F=h||x?void 0:$,{t:O}=_e.useTranslation(),q=o.useId();!l&&!u&&Gt(`TextField:unnamed:${q}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const Q=`tf-${q}`,oe=`tf-helper-${q}`,se=o.useRef(null),te=Wl({value:t??"",onChange:i,suggestions:F??[],openOnFocus:j,filterSuggestions:U,onSelectSuggestion:S,autoActiveFirst:P}),le=!!F&&te.open&&te.filtered.length>0,De=o.useRef(null),[V,ne]=o.useState(null),fe=o.useCallback(()=>{const ke=De.current;if(!ke||typeof window>"u")return;const He=ke.getBoundingClientRect(),Be=230,Xe=window.innerHeight-He.bottom<Be+8&&He.top>Be+8;ne({position:"fixed",left:He.left,width:He.width,...Xe?{bottom:window.innerHeight-He.top+8}:{top:He.bottom+8},zIndex:ka(ke)})},[]);fo(()=>{if(!le)return;fe();const ke=He=>{const Be=He.target;Be&&Be.nodeType===1&&Be.closest?.(".text-field__suggestions")||fe()};return window.addEventListener("scroll",ke,!0),window.addEventListener("resize",fe),()=>{window.removeEventListener("scroll",ke,!0),window.removeEventListener("resize",fe)}},[le,fe]);const Ee=o.useCallback(ke=>{se.current=ke,typeof s=="function"?s(ke):s&&(s.current=ke)},[s]),ge=p?`${p}${f??O("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:m,ae=t!==void 0,de=ae&&y==="password",[pe,he]=o.useState((a??"").length),be=ae?(t??"").length:pe,Pe=o.useRef(t);fo(()=>{Pe.current=t}),o.useEffect(()=>{const ke=se.current;if(!de||!ke)return;const He=t??"";ke.value!==He&&(ke.value=He)},[de,t]),o.useEffect(()=>{if(!v||!se.current)return;const ke=se.current;ke.style.height="",ke.scrollHeight>ke.clientHeight&&(ke.style.height=`${ke.scrollHeight}px`)},[t,pe,v]);const $e=C!=null&&be>C,Ie=w===32?16:20,Fe=Ae("text-field",`text-field--s${w}`,b==="display"?"text-field--display":"",B?"text-field--full-width":"",x?"text-field--disabled":"",h?"text-field--readonly":"",g?"text-field--error":"",N?"text-field--has-left-icon":"",E||D?"text-field--has-right-icon":"",G),Oe={id:Q,...de?{}:ae?{value:t}:{defaultValue:a},ref:Ee,placeholder:ge,name:r,disabled:x,readOnly:h,autoFocus:W,maxLength:C,list:H,inputMode:Z,autoComplete:z,"aria-label":!l&&u?u:void 0,"aria-required":d,"aria-invalid":!!g,"aria-describedby":[_||g?oe:null,c].filter(Boolean).join(" ")||void 0,role:F?"combobox":void 0,"aria-autocomplete":F?"list":void 0,"aria-haspopup":F?"listbox":void 0,"aria-expanded":F?le:void 0,"aria-controls":le?te.listId:void 0,"aria-activedescendant":le&&te.activeIdx>=0?`${te.listId}-option-${te.activeIdx}`:void 0,onChange:ke=>{const He=ke.target;ae||he(He.value.length),i?.(He.value),F&&te.handleInput(),de&&queueMicrotask(()=>{const Be=Pe.current??"";He.value!==Be&&(He.value=Be)})},onCompositionStart:F?te.handleCompositionStart:void 0,onCompositionEnd:F?te.handleCompositionEnd:void 0,onFocus:(ke=>{L?.(ke),F&&te.handleFocus()}),onBlur:(ke=>{M?.(ke),F&&te.handleBlur()}),onKeyDown:(ke=>{const He=(ke.key==="Tab"&&!ke.shiftKey||ke.key===" ")&&!ke.nativeEvent.isComposing;if(p&&He&&!h&&!x&&!(ke.currentTarget.value??"").trim()){ke.preventDefault();const Be=ke.currentTarget;ae||(Be.value=p,he(p.length)),i?.(p);return}F&&ke.key==="Enter"&&!ke.nativeEvent.isComposing&&te.activeIdx>=0?ke.preventDefault():Y&&ke.key==="Enter"&&!ke.nativeEvent.isComposing&&(ke.preventDefault(),Y()),I?.(ke),F&&te.handleKeyDown(ke)})},dt=D&&!x&&!h&&be>0,lt=()=>v?n.jsx("textarea",{...Oe,className:"text-field__input text-field__input--auto body-2",rows:1}):k?n.jsx("textarea",{...Oe,className:"text-field__input text-field__input--textarea body-2",rows:A}):n.jsx("input",{...Oe,type:y,className:"text-field__input body-2"}),ot=b==="display"&&!v&&!k&&!!ge,ct=()=>n.jsxs(n.Fragment,{children:[lt(),ot&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:ge})]});return n.jsxs("div",{ref:De,className:Fe,children:[l&&n.jsxs("label",{htmlFor:Q,className:"text-field__label caption-1",children:[l,d&&n.jsx("span",{className:"text-field__required",children:"*"})]}),n.jsxs("div",{className:"text-field__wrap",children:[N&&n.jsx("span",{className:"text-field__icon text-field__icon--left",children:n.jsx(tt,{icon:N,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ie})}),ct(),C!=null&&R&&n.jsxs("span",{className:`text-field__count caption-2${$e?" text-field__count--over":""}`,children:[be,"/",C]}),dt&&n.jsx(me,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:O("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:ke=>{ke.preventDefault()},onClick:()=>{!ae&&se.current&&(se.current.value="",he(0)),i?.("")},tabIndex:-1}),E&&!dt&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(tt,{icon:E,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ie})})]}),!!F&&n.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:te.open&&(t??"").length>0&&te.filtered.length===0?O("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),le&&(typeof document>"u"?null:en.createPortal(n.jsx("ul",{id:te.listId,className:"text-field__suggestions",role:"listbox",style:V??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:te.filtered.map((ke,He)=>n.jsx("li",{id:`${te.listId}-option-${He}`,role:"option","aria-selected":He===te.activeIdx,className:`text-field__suggestion body-2${He===te.activeIdx?" is-active":""}`,onMouseDown:Be=>Be.preventDefault(),onClick:()=>{te.handleSelect(ke),se.current?.focus()},children:typeof ke=="string"?ke:n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"text-field__suggestion-label",children:ke.label}),ke.hint&&n.jsx("span",{className:"text-field__suggestion-hint caption-1",children:ke.hint})]})},typeof ke=="string"?`${ke}-${He}`:ke.id))}),document.body)),(_||g)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:oe,className:"text-field__helper caption-1",role:g?"alert":void 0,children:g||_})})]})}function dn({options:e,value:t,onChange:a,placeholder:r,disabled:s=!1,block:i=!1,size:l=48,error:u=!1,className:c="",ariaLabel:d,ariaDescribedBy:m}){const{t:p}=_e.useTranslation(),f=r??p("dropdown.placeholder","\uC120\uD0DD"),y=o.useId(),x=o.useId(),h=o.useRef(null),g=o.useCallback((L,M)=>{const I=window.innerHeight-L.bottom<260&&L.top>260;return{position:"fixed",left:L.left,minWidth:L.width,...I?{bottom:window.innerHeight-L.top+6}:{top:L.bottom+6},zIndex:ka(M)}},[]),{open:_,setOpen:C,toggle:w,style:b,triggerRef:B,menuRef:v}=Na({computeStyle:g}),[k,A]=o.useState(-1),N=o.useCallback(()=>A(-1),[]),E=e.find(L=>L.value===t);o.useEffect(()=>{if(_){const L=e.findIndex(M=>M.value===t);A(L>=0?L:e.length?0:-1),requestAnimationFrame(()=>{const M=v.current;if(!M)return;const I=M.querySelectorAll(".dropdown__option")[L];I&&(M.scrollTop=Math.max(0,I.offsetTop-M.clientHeight/2+I.clientHeight/2))})}},[_]),o.useEffect(()=>{_&&A(L=>{if(L>=0&&L<e.length)return L;const M=e.findIndex(I=>I.value===t);return M>=0?M:e.length?0:-1})},[_,e.length]);const D=o.useCallback(()=>{s||w()},[s,w]),H=o.useCallback(L=>{L.disabled||s||(L.value!==t&&a?.(L.value),C(!1))},[a,C,s,t]);o.useEffect(()=>{s&&C(!1)},[s,C]);const R=o.useCallback(L=>{if(!s){if(!_){(L.key==="Enter"||L.key===" "||L.key==="ArrowDown")&&(L.preventDefault(),C(!0));return}if(L.key==="Escape"){L.preventDefault(),C(!1);return}L.key==="ArrowDown"?(L.preventDefault(),A(M=>{let I=M+1;for(;I<e.length&&e[I].disabled;)I++;return I<e.length?I:M})):L.key==="ArrowUp"?(L.preventDefault(),A(M=>{let I=M-1;for(;I>=0&&e[I].disabled;)I--;return I>=0?I:M})):(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),e[k]?H(e[k]):C(!1))}},[s,_,e,k,H,C]),G=_?n.jsx("div",{ref:v,id:y,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:b,onMouseLeave:N,onMouseDown:L=>L.preventDefault(),children:e.map((L,M)=>n.jsxs("button",{id:`${y}-option-${M}`,type:"button",role:"option","aria-selected":L.value===t,className:Ae("dropdown__option body-2",L.value===t?"dropdown__option--active":"",M===k?"dropdown__option--active":"",L.disabled?"dropdown__option--disabled":""),onMouseDown:I=>I.preventDefault(),onClick:()=>H(L),onMouseEnter:()=>A(M),disabled:L.disabled,children:[n.jsx("span",{className:"dropdown__option-check",children:L.value===t&&n.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),L.label]},L.value))}):null;return n.jsxs("div",{ref:h,className:Ae("dropdown",`dropdown--s${l}`,_?"dropdown--open":"",i?"dropdown--block":"",u?"dropdown--error":"",c),onKeyDown:R,children:[n.jsxs("button",{ref:B,type:"button",className:"dropdown__trigger",role:"combobox","aria-haspopup":"listbox","aria-expanded":_,"aria-controls":_?y:void 0,"aria-activedescendant":_&&k>=0?`${y}-option-${k}`:void 0,"aria-label":d,"aria-describedby":[d&&E?x:"",m??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:s,onClick:D,onBlur:L=>{_&&!v.current?.contains(L.relatedTarget)&&C(!1)},children:[n.jsx("span",{id:x,className:`dropdown__trigger-label body-2${E?"":" dropdown__trigger-label--placeholder"}`,children:E?E.label:f}),n.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&en.createPortal(G,h.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function nr({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:s,className:i=""}){const{t:l}=_e.useTranslation(),u=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),c=s??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,t),m=()=>a(Math.max(1,Math.min(d,e-1))),p=()=>a(Math.min(d,e+1));return n.jsxs("div",{className:Ae("pagination",i),children:[n.jsx(me,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:u,disabled:e<=1,onClick:m}),n.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),d)," / ",d]}),n.jsx(me,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:c,disabled:e>=t,onClick:p})]})}const La=new Map;function Bn(e){const{t}=_e.useTranslation(),{options:a=[],value:r=a.find(b=>!b.disabled)?.key??a[0]?.key,onChange:s=b=>{},className:i="",size:l=40,shape:u="pill",useBG:c=!0,fullWidth:d=!1,minButtonWidth:m,ariaLabel:p}=e||{},f=o.useRef(null),y=a.filter(b=>!b.disabled),x=o.useId(),h=a.map(b=>b.key).join("\xB7");o.useEffect(()=>{if(!(!Zn||p!=null&&p!=="")){if(La.set(x,h||"(\uBCF4\uAE30 \uC5C6\uC74C)"),La.size>1){const b=[...La.values()].sort();Gt(`segmented-control-unnamed:${b.join("|")}`,`[ihab/SegmentedControl] \uC774\uB984 \uC5C6\uB294 \uB77C\uB514\uC624\uADF8\uB8F9\uC774 \uD55C \uD654\uBA74\uC5D0 ${La.size} \uAC1C \uC11C \uC788\uC2B5\uB2C8\uB2E4 \u2014 \uB0AD\uB3C5\uAE30\uB294 \uBAA8\uB450 "\uC120\uD0DD \uD0ED" \uC73C\uB85C \uC77D\uC5B4 \uC5B4\uB290 \uAC83\uC774 \uBB34\uC5C7\uC778\uC9C0 \uAC00\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. ariaLabel \uC744 \uC8FC\uC138\uC694. \uC9C0\uAE08 \uC120 \uAC83(\uBCF4\uAE30 \uC774\uB984\uC73C\uB85C \uC801\uC74C): ${b.join(" / ")}`)}return()=>{La.delete(x)}}},[p,h,x]);const g=b=>{if(!y.length)return;const B=Math.max(0,y.findIndex(k=>k.key===r)),v=b==="first"?y[0]:b==="last"?y[y.length-1]:y[(B+b+y.length)%y.length];v&&(s(v.key),Array.from(f.current?.querySelectorAll("[data-segkey]")??[]).find(k=>k.dataset.segkey===v.key)?.focus())},_=b=>{switch(b.key){case"ArrowRight":case"ArrowDown":g(1);break;case"ArrowLeft":case"ArrowUp":g(-1);break;case"Home":g("first");break;case"End":g("last");break;default:return}b.preventDefault()},C=b=>{const B=v=>typeof v=="string"||typeof v=="number";if(!(!B(b.label)||b.count==null||b.count===!1||!B(b.count)))return`${b.label}, ${b.count}`},w=y.some(b=>b.key===r)?r:y[0]?.key;return n.jsx("div",{ref:f,onKeyDown:_,className:Ae("segmented-control",`segmented-control--${u}`,`segmented-control--${l}`,d&&"segmented-control--full",!c&&"segmented-control--no-bg",m!=null&&"segmented-control--min",i),style:m!=null?{"--segmented-min-button-w":`${m}px`}:void 0,role:"radiogroup","aria-label":p??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(b=>n.jsx(me,{htmlType:"button",role:"radio","aria-checked":b.key===r,"data-segkey":b.key,tabIndex:b.key===w?0:-1,label:b.label,count:b.count,ariaLabel:C(b),disabled:b.disabled,className:b.key===r?"is-selected":"",onClick:()=>{b.disabled||s(b.key)},size:l,shape:u,useBorder:!1,useBG:!1},b.key))})}function go({count:e,search:t,segment:a,filters:r,pageSize:s,pagination:i,actions:l,className:u}){const{t:c}=_e.useTranslation(),d=e!=null&&n.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??c("common.totalPrefix","\uCD1D "),n.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),m=!!(t||r?.length||s||i||l);return n.jsxs("div",{className:Ae("toolbar",u),children:[n.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((p,f)=>n.jsx(Bn,{size:40,...p},p.ariaLabel??f))]}),m&&n.jsx("div",{className:"toolbar__row",children:n.jsxs("div",{className:"toolbar__row-end",children:[t&&n.jsx(Gn,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??c("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??c("common.search","\uAC80\uC0C9"),autoFocus:t.autoFocus,clearable:!0}),r?.map((p,f)=>n.jsx(dn,{size:40,options:p.options,value:p.value,onChange:p.onChange,ariaLabel:p.ariaLabel},f)),(s||i)&&n.jsxs("div",{className:"toolbar__pager",children:[s&&n.jsx(dn,{size:40,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??c("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&n.jsx(nr,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel})]}),l]})})]})}function ql(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(ql).join(""):""}function J4(e){let t=e.replace(/\r\n/g,`
854
854
  `).replace(/\r/g,`
855
855
  `);t=t.replace(/^\n+/,"").replace(/\n+$/,"");const a=t.split(`
856
856
  `).map(i=>i.replace(/\t/g," ")),r=a.filter(i=>i.trim().length>0),s=r.length>0?Math.min(...r.map(i=>i.match(/^ */)?.[0].length??0)):0;return a.map(i=>i.slice(s)).join(`
857
- `)}const X4=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),J4=/^(?:const|let|var|function|return|if|else|for|while|switch|case|break|import|from|export|class|new|try|catch|finally|throw|await|async|null|true|false|this|typeof|instanceof)\b/;function Q4(e,t){let a=e;const r=[],s=/^(?:sh|bash|zsh|shell|console)$/.test(t.toLowerCase()),i=(l,u)=>r.push({type:l,content:u});for(;a.length>0;){const l=a.match(/^\s+/);if(l){i("whitespace",l[0]),a=a.slice(l[0].length);continue}if(!s&&a.startsWith("//")){const v=a.indexOf(`
858
- `),C=v===-1?a:a.slice(0,v);i("comment",C),a=a.slice(C.length);continue}if(s&&a.startsWith("#")){const v=a.indexOf(`
859
- `),C=v===-1?a:a.slice(0,v);i("comment",C),a=a.slice(C.length);continue}const u=a.match(/^\/\*[\s\S]*?\*\//);if(u){i("comment",u[0]),a=a.slice(u[0].length);continue}const c=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(c){i("string",c[0]),a=a.slice(c[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){i("number",d[0]),a=a.slice(d[0].length);continue}const m=a.match(J4);if(m){i("keyword",m[0]),a=a.slice(m[0].length);continue}const p=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(p){const v=p[0];i(s&&X4.has(v)?"command":"identifier",v),a=a.slice(v.length);continue}const f=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(f){i("operator",f[0]),a=a.slice(f[0].length);continue}const y=a.match(/^[()[\]{};.,]/);if(y){i("punctuation",y[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function ey({children:e,language:t="bash",title:a="",showCopy:r=!0,size:s="default",className:i=""}){const{t:l}=_e.useTranslation(),[u,c]=o.useState(!1),d=Z4(ql(e)),m=o.useRef(null);o.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const p=async()=>{try{if(!await VC(d))return;c(!0),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>c(!1),2e3)}catch{}},f=Q4(d,t),y=s==="small"?"caption-1":"body-3";return n.jsxs("div",{className:Ae("code-box",s==="small"?"code-box--small":"",i),children:[(a||r)&&n.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":l("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[n.jsx("div",{className:"code-box__title caption-1",children:a}),r&&n.jsx(me,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:u?"check":"copy",onClick:p,ariaLabel:u?l("common.copied","\uBCF5\uC0AC\uB428"):l("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),n.jsx("pre",{className:"code-box__inner","data-lang":t,children:n.jsx("code",{children:f.map((v,C)=>n.jsx("span",{className:`code-token ${v.type} ${y}`,children:v.content},C))})})]})}const ty={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function $a(e){const{t}=_e.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:i}=e||{},l=i||t("loader.loading","Loading");if(a==="bar"){const c=s==null||!Number.isFinite(Number(s)),d=c?0:Math.max(0,Math.min(100,Number(s)));return n.jsx("div",{className:`loader-bar${c?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c?void 0:d,"aria-label":l,children:n.jsx("div",{className:"loader-bar__inner",style:c?void 0:{width:`${d}%`}})})}const u=typeof r=="number"?`${r}px`:r;return n.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":l,children:[n.jsx("span",{style:ty,children:l}),n.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[n.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),n.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})]})}function Ul({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:s,labelPosition:i="right",className:l="",id:u}){const c=r&&n.jsx("span",{className:"toggle__label body-3",children:r});return n.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[i==="left"&&c,n.jsx("input",{id:u,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>t?.(d.target.checked),"aria-label":!r&&s?s:void 0}),n.jsx("span",{className:"toggle__slider"}),i==="right"&&c]})}function Gl({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:s,size:i="medium",className:l,title:u,ariaLabel:c}){const d=o.useRef(null),m=o.useId(),p=o.useRef(!!r);return p.current=!!r,o.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)}),n.jsxs("label",{className:Ae("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:m,title:u,children:[n.jsx("input",{ref:d,id:m,type:"checkbox",className:"checkbox__input",checked:e,onChange:f=>{t?.(f.target.checked),d.current&&(d.current.indeterminate=p.current)},disabled:a,"aria-label":!s&&c?c:void 0}),n.jsx("span",{className:"checkbox__box"}),s&&n.jsx("span",{className:"checkbox__label body-3",children:s})]})}function ny({count:e,actions:t,onClear:a,clearLabel:r,visible:s,content:i,max:l}){const{t:u}=_e.useTranslation(),c=s!==void 0?s:e>0,d=r??u("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),m=o.useRef(null),p=o.useRef(null),f=o.useRef(null),y=o.useRef(c);o.useLayoutEffect(()=>{const h=p.current,w=y.current;if(y.current=c,c&&!w){const g=typeof document<"u"?document.activeElement:null;f.current=g&&g!==document.body&&!h?.contains(g)?g:null}else!c&&w&&h&&h.contains(document.activeElement)&&Ya(h,f.current)},[c]);const[v,C]=o.useState(!1),b=o.useRef(!1),_=o.useRef(null);return o.useEffect(()=>{const h=m.current;if(!h)return;const w=A=>{b.current=A,C(A)},g=()=>{const A=h.firstElementChild??h,S=Array.from(A.children);if(S.length<2){w(!1);return}const E=S[0].offsetTop,H=S.some(O=>O.offsetTop!==E);if(!b.current){_.current=h.clientWidth,H&&w(!0);return}if(H)return;const $=S[0],K=S[S.length-1],L=K.offsetLeft+K.offsetWidth-$.offsetLeft,j=_.current;(j==null||L<=j)&&w(!1)};if(g(),typeof ResizeObserver>"u")return;const B=new ResizeObserver(g);B.observe(h);const x=h.parentElement;let N=x?.clientWidth??0;const k=new ResizeObserver(()=>{const A=x?.clientWidth??0;A!==N&&(N=A,_.current=null,g())});return x&&k.observe(x),()=>{B.disconnect(),k.disconnect()}},[i,e]),n.jsxs("div",{ref:p,className:`bulk-bar ${c?"bulk-bar--visible":""}`,inert:!c||void 0,"aria-hidden":c?void 0:!0,children:[n.jsx("span",{ref:m,className:"bulk-bar__count body-2",role:"status",children:i??n.jsx("b",{children:u("common.selectedCount",{count:e})})}),l!==void 0&&n.jsx(wt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`,"aria-label":u("common.selectedOfMax",{count:e,max:l,defaultValue:`\uCD5C\uB300 ${l}\uAC1C \uC911 ${e}\uAC1C`})}),n.jsxs("div",{className:`bulk-bar__actions${v?" bulk-bar__actions--stacked":""}`,children:[n.jsx(me,{htmlType:"button",size:40,label:d,onClick:a}),t.map((h,w)=>n.jsx(me,{htmlType:"button",size:40,variant:h.variant??"default",icon:h.icon,label:h.label,onClick:h.onClick},w))]})]})}const ay=[{\uC5F4\uC1E0:"edit",icon:"edit-2",\uB2EB\uACE0\uD560\uAE4C:!0},{\uC5F4\uC1E0:"duplicate",icon:"copy",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"publish",icon:"book-marked",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"copyLink",icon:"link",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"remove",icon:"trash-2",\uB2EB\uACE0\uD560\uAE4C:!0}];function ry(e){const{onClose:t,className:a}=e;return n.jsx("div",{className:Ae("item-actions",a),children:ay.map(({\uC5F4\uC1E0:r,icon:s,\uB2EB\uACE0\uD560\uAE4C:i})=>{const l=e[r];if(!l)return null;const u=r==="publish"?l.published?l.unpublish:l.publish:l;return n.jsx(me,{htmlType:"button",size:40,type:"dot",icon:s,ariaLabel:u.label,showTooltipInfo:u.label,onClick:()=>{i&&t(),u.onClick()}},r)})})}function Kl(e,t){const a=()=>{if(e){const[C,b]=e.split("-");return{y:+C,m:+b-1}}const[y,v]=Wr(t).split("-");return{y:+y,m:+v-1}},[r,s]=o.useState(()=>a().y),[i,l]=o.useState(()=>a().m),u=o.useRef(e);o.useEffect(()=>{if(e===u.current)return;u.current=e;const y=a();s(y.y),l(y.m)},[e]);const c=o.useRef({y:r,m:i});o.useEffect(()=>{c.current={y:r,m:i}},[r,i]);const d=o.useCallback(y=>{const v=c.current.y*12+c.current.m+y,C=Math.floor(v/12),b=v-C*12;c.current={y:C,m:b},s(C),l(b)},[]),m=o.useCallback(()=>d(-1),[d]),p=o.useCallback(()=>d(1),[d]),f=o.useCallback((y,v)=>{c.current={y,m:v},s(y),l(v)},[]);return{viewY:r,viewM:i,prevMonth:m,nextMonth:p,setViewYM:f}}function ar(e,t){return new Date(e,t+1,0).getDate()}function oy(e,t){return new Date(e,t,1).getDay()}function rr(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function sy(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function iy(e,t,a,r){const s=a?+a.split("-")[0]:e-10,i=r?+r.split("-")[0]:e+10,l=[];for(let u=s;u<=i;u++)for(let c=0;c<12;c++){const d=`${u}-${String(c+1).padStart(2,"0")}`;a&&d<a.slice(0,7)||r&&d>r.slice(0,7)||l.push({value:d,label:t(u,c+1)})}return l}function ly({value:e,onChange:t,size:a=48,min:r,max:s,disabled:i,placeholder:l,className:u,today:c}){const{t:d}=_e.useTranslation(),m=l??d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),p=o.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),f=Wr(c),{viewY:y,viewM:v,prevMonth:C,nextMonth:b,setViewYM:_}=Kl(e,c),h=o.useId(),w=o.useCallback((D,P)=>{const M=window.innerHeight,F=window.innerWidth,I=typeof document<"u"?document.getElementById(h):null,Z=Math.max(I?.offsetHeight||0,I?.scrollHeight||0)||300,J=Math.max(D.width,I?.offsetWidth||0,260),Y=M-D.bottom,ne=D.top,ie=Y<Z&&ne>Y,ue=8,Se=(V,oe)=>Math.min(Math.max(ue,V),Math.max(ue,oe));return{position:"fixed",left:Se(D.left,F-J-ue),width:D.width,minWidth:260,...ie?{top:"auto",bottom:Se(M-D.top+6,M-Z-ue)}:{bottom:"auto",top:Se(D.bottom+6,M-Z-ue)},zIndex:ka(P)}},[h]),{open:g,setOpen:B,toggle:x,style:N,triggerRef:k,menuRef:A}=Na({computeStyle:w,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!g)return;const D=A.current;return(D?.querySelector(".date-picker__day--selected:not(:disabled)")??D?.querySelector(".date-picker__day--today:not(:disabled)")??D?.querySelector(".date-picker__day:not(:disabled)")??D?.querySelector(Cn)??D)?.focus?.(),()=>{const P=document.activeElement;(!P||P===document.body)&&k.current?.focus?.()}},[g,A,k]);const[S,E]=o.useState(1),H=o.useRef(null),$=o.useRef(null);o.useEffect(()=>{if(!g)return;const D=e&&e.slice(0,7)===`${y}-${String(v+1).padStart(2,"0")}`?+e.slice(8):f.slice(0,7)===`${y}-${String(v+1).padStart(2,"0")}`?+f.slice(8):1;E(D)},[g]),o.useEffect(()=>{if($.current==null)return;const D=$.current;$.current=null,H.current?.querySelector(`[data-day="${D}"]`)?.focus()}),o.useEffect(()=>{E(D=>Math.min(D,ar(y,v)))},[y,v]);const K=o.useCallback(D=>{let P=rr(D.getFullYear(),D.getMonth(),D.getDate());r&&P<r&&(P=r),s&&P>s&&(P=s);const[M,F,I]=P.split("-").map(Number);(M!==y||F-1!==v)&&_(M,F-1),E(I),$.current=I},[r,s,y,v,_]),L=o.useCallback(D=>{const P=new Date(y,v,S),M=I=>{P.setDate(P.getDate()+I),K(P)},F=I=>{const Z=P.getFullYear()*12+P.getMonth()+I,J=Math.floor(Z/12),Y=Z-J*12;K(new Date(J,Y,Math.min(P.getDate(),ar(J,Y))))};switch(D.key){case"ArrowLeft":M(-1);break;case"ArrowRight":M(1);break;case"ArrowUp":M(-7);break;case"ArrowDown":M(7);break;case"Home":M(-P.getDay());break;case"End":M(6-P.getDay());break;case"PageUp":D.shiftKey?F(-12):F(-1);break;case"PageDown":D.shiftKey?F(12):F(1);break;default:return}D.preventDefault()},[y,v,S,K]),j=o.useCallback(D=>{i||(t(rr(y,v,D)),B(!1))},[y,v,t,B,i]);o.useEffect(()=>{i&&B(!1)},[i,B]);const O=D=>{const P=rr(y,v,D);return!!(r&&P<r||s&&P>s)},U=(()=>{const D=ar(y,v);if(S>=1&&S<=D&&!O(S))return S;for(let P=1;P<=D;P++)if(!O(P))return P;return-1})(),te=[];for(let D=0;D<oy(y,v);D++)te.push(null);for(let D=1;D<=ar(y,v);D++)te.push(D);const z=a===64?20:a===40?16:18,q=iy(y,(D,P)=>d("calendar.yearMonth",{year:D,month:P,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,s),R=`${y}-${String(v+1).padStart(2,"0")}`,W=g?en.createPortal(n.jsxs("div",{ref:A,id:h,className:"date-picker__dropdown",style:N,"data-tooltip-ignore":!0,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[n.jsxs("div",{className:"date-picker__nav",children:[n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:C,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(ms,{size:16,strokeWidth:2})}),n.jsx(dn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:q,value:R,onChange:D=>{const[P,M]=D.split("-");_(+P,+M-1)},block:!0,size:40}),n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:b,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(hs,{size:16,strokeWidth:2})})]}),n.jsxs("div",{className:"date-picker__grid",ref:H,onKeyDown:L,children:[p.map(D=>n.jsx("div",{className:"date-picker__dow caption-1",children:D},D)),te.map((D,P)=>{if(D===null)return n.jsx("div",{},`e${P}`);const M=rr(y,v,D),F=M===e,I=M===f,Z=O(D),J=P%7;return n.jsx("button",{type:"button",disabled:Z,"data-day":D,tabIndex:D===U?0:-1,"aria-current":I?"date":void 0,onClick:()=>!Z&&j(D),className:Ae("date-picker__day caption-1",F&&"date-picker__day--selected",I&&!F&&"date-picker__day--today",Z&&"date-picker__day--disabled",J===0&&"date-picker__day--sun",J===6&&"date-picker__day--sat"),children:D},D)})]})]}),document.body):null;return n.jsxs("div",{className:Ae("date-picker",`date-picker--s${a}`,g&&"date-picker--open",u),children:[n.jsxs("button",{ref:k,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&x(),disabled:i,"aria-haspopup":"true","aria-expanded":g,children:[n.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?sy(e):m}),n.jsx(ws,{size:z,className:"date-picker__icon",strokeWidth:1.5})]}),W]})}function Yl({children:e,className:t}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useEffect(()=>{s(a.current?.parentElement??null)},[]),o.useEffect(()=>{const i=a.current;if(!i||!r)return;const l=()=>{const c=typeof window<"u"&&window.getComputedStyle(i).position==="absolute"?Math.ceil(i.getBoundingClientRect().width):0;c>0?r.style.setProperty("--section-head-float-w",`${c}px`):r.style.removeProperty("--section-head-float-w")};if(l(),typeof ResizeObserver>"u")return()=>{r.style.removeProperty("--section-head-float-w")};const u=new ResizeObserver(()=>l());return u.observe(i),u.observe(r),()=>{u.disconnect(),r.style.removeProperty("--section-head-float-w")}},[r,e]),n.jsx("div",{ref:a,className:Ae("section-head-float",t),children:e})}function bo({items:e,className:t}){return n.jsx("div",{className:t?`manager-bar-chart-legend ${t}`:"manager-bar-chart-legend",children:e.map((a,r)=>n.jsxs("span",{className:"manager-bar-chart-legend-item",children:[n.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function Ra({label:e,children:t}){return e?n.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[n.jsx("span",{className:"barchart-total__label body-3",children:e}),n.jsx("span",{className:"barchart-total__value",children:t})]}):n.jsx("div",{className:"barchart-total",children:t})}function yo({title:e,titleClassName:t="h3",titleLevel:a=3,icon:r,disc:s,headRight:i,headFloat:l,headSegment:u,headMenuItems:c,collapseBelow:d=420,onClick:m,ariaLabel:p,tooltip:f,totalNum:y,totalUnit:v,totalLabel:C,subRow:b,subRowAlign:_="start",className:h,inGrid:w=!1,children:g}){const{t:B}=_e.useTranslation(),x=o.useRef(null),{anchorRect:N,openAt:k,close:A}=Aa(),S=o.useCallback(()=>{f&&x.current&&k(x.current)},[f,k]),[E,H]=o.useState(!1);fo(()=>{const M=x.current;if(!M||!u)return;const F=Z=>H(Z>0&&Z<d);if(F(M.clientWidth),typeof ResizeObserver>"u")return;const I=new ResizeObserver(Z=>F(Z[0].contentRect.width));return I.observe(M),()=>I.disconnect()},[u,d]);const[$,K]=o.useState(null),L=o.useCallback(()=>K(null),[]),j=o.useCallback(M=>{const F=M.currentTarget.getBoundingClientRect();K(I=>I?null:{left:F.left,right:F.right,top:F.top,bottom:F.bottom,width:F.width,height:F.height,x:F.x,y:F.y})},[]),O=!!u&&E;o.useEffect(()=>{O||K(null)},[O]);const U=u?[...u.options.map(M=>({label:M.label,icon:M.icon,selected:M.key===u.value,disabled:M.disabled,onClick:()=>u.onChange(M.key),closeOnSelect:!0})),...(c??[]).map((M,F)=>F===0?{...M,separatorBefore:!0}:M)]:[],te=o.useCallback(M=>{if(!m)return;const F=M.target;F&&typeof F.closest=="function"&&F.closest('button, a, input, select, textarea, [role="radiogroup"]')||m()},[m]),z=o.useCallback(M=>{m&&M.target===M.currentTarget&&(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),m())},[m]),q=typeof i=="function"?i({collapsed:O}):i,R=y!=null||C?n.jsxs(Ra,{label:C,children:[y!=null&&n.jsx("span",{className:"barchart-total__num h0",children:y}),v&&n.jsx("span",{className:"barchart-total__unit h5",children:v})]}):null,W=q||u?n.jsxs("div",{className:"manager-section__head-right",children:[u&&(O?n.jsx(me,{htmlType:"button",size:32,type:"dot",icon:"ellipsis",ariaLabel:u.ariaLabel??B("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:u.ariaLabel??B("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!$,onClick:j}):n.jsx(Bn,{size:32,ariaLabel:u.ariaLabel,options:u.options.map(M=>({key:M.key,label:M.label,disabled:M.disabled})),value:u.value,onChange:u.onChange})),q]}):null,D=o.useId(),P=a?`h${a}`:"div";return n.jsxs("section",{ref:x,className:["manager-section",w&&"manager-section--grid",m&&"manager-section--clickable",h].filter(Boolean).join(" "),onClick:m?te:void 0,onKeyDown:m?z:void 0,onPointerEnter:f?S:void 0,onPointerLeave:f?A:void 0,onFocus:f?S:void 0,onBlur:f?A:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,"aria-label":m?p??(typeof e=="string"?e:void 0):void 0,"aria-labelledby":!m&&e!=null?D:void 0,children:[f&&N&&n.jsx(vn,{anchorRect:{left:N.left,top:N.top+21,right:N.right,bottom:N.bottom,width:N.width,height:N.height},text:f}),l&&n.jsx(Yl,{children:l}),n.jsxs("div",{className:"manager-section__head",children:[n.jsxs("div",{className:"manager-section__title-row",children:[r&&n.jsx(tt,{icon:r,label:typeof e=="string"?e:void 0,className:"manager-section__icon"}),n.jsx(P,{id:D,className:["manager-section__title",t].filter(Boolean).join(" "),children:e})]}),W,s&&n.jsx("div",{className:"manager-section__disc body-3",children:s})]}),(R||b)&&n.jsxs("div",{className:["barchart-sub-row",_!=="start"&&`barchart-sub-row--${_}`].filter(Boolean).join(" "),children:[R,b]}),g,$&&n.jsx(un,{anchorRect:$,onClose:L,ariaLabel:u?.ariaLabel??B("tooltip.menu","\uBA54\uB274"),children:n.jsx(Da,{columns:[{items:U}],onClose:L,size:"small"})})]})}function fn(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function uy(){const e=ea();let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<fn(t,a)){const l=new Date(t,a,0);t=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const s=Math.floor((r-fn(t,a))/7),i=`${t}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${s}`}}function cy(e){const t=ea(),a=`${t.getFullYear()}\uB144 ${t.getMonth()+1}\uC6D4`,r=(c,d)=>`${c}\uB144 ${d+1}\uC6D4`,s=new Map;s.set(a,[]);for(const c of e){if(isNaN(c.date.getTime()))continue;const d=r(c.date.getFullYear(),c.date.getMonth());s.has(d)||s.set(d,[]),s.get(d).push(c)}for(const[c,d]of[...s.entries()]){const m=c.match(/^(\d+)년 (\d+)월$/);if(!m)continue;const p=Number(m[1]),f=Number(m[2])-1,y=fn(p,f);if(!(c===a&&t.getDate()<y)&&!d.some(b=>b.date.getDate()<y))continue;const v=new Date(p,f,0),C=r(v.getFullYear(),v.getMonth());s.has(C)||s.set(C,[])}const i=new Map;for(const[c,d]of s){const m=c.match(/^(\d+)년 (\d+)월$/);if(!m)continue;const p=Number(m[1]),f=Number(m[2])-1,y=new Date(p,f+1,0).getDate(),v=d.reduce((g,B)=>Math.max(g,B.parts?.length??0,B.partsB?.length??0),0),C=d.some(g=>g.partsB),b=new Array(y+1).fill(0),_=new Array(y+1).fill(0),h=Array.from({length:y+1},()=>new Array(v).fill(0)),w=Array.from({length:y+1},()=>new Array(v).fill(0));for(const g of d){const B=g.date.getDate();if(b[B]+=g.a,_[B]+=g.b,g.parts)for(let x=0;x<v;x++)h[B][x]+=g.parts[x]??0;if(g.partsB)for(let x=0;x<v;x++)w[B][x]+=g.partsB[x]??0}i.set(c,{year:p,month:f,daysInMonth:y,partsLen:v,hasPartsB:C,dayA:b,dayB:_,dayParts:h,dayPartsB:w})}const l=(c,d,m)=>new Date(c,d,m).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),u={};for(const[c,d]of i){const{year:m,month:p,daysInMonth:f,dayA:y,dayB:v,dayParts:C,dayPartsB:b}=d,_=m===t.getFullYear()&&p===t.getMonth(),h=t.getDate(),w=i.get(r(p===11?m+1:m,(p+1)%12)),g=d.partsLen,B=[];for(let N=1;N<=f;N++){const k=_&&N>h;B.push({label:String(N),...k&&y[N]===0&&v[N]===0?{future:!0}:{},a:k&&y[N]===0&&v[N]===0?-1:y[N],b:v[N],...g?{parts:C[N]}:{},...g&&d.hasPartsB?{partsB:b[N]}:{}})}const x=[];for(let N=fn(m,p);N<=f;N+=7){const k=Math.max(0,N+6-f),A=k&&w?Math.max(g,w.partsLen):g,S=d.hasPartsB||!!(k&&w?.hasPartsB);let E=0,H=0;const $=new Array(A).fill(0),K=new Array(A).fill(0);for(let j=N;j<=Math.min(N+6,f);j++){E+=y[j],H+=v[j];for(let O=0;O<g;O++)$[O]+=C[j][O],K[O]+=b[j][O]}if(k&&w)for(let j=1;j<=k&&!l(w.year,w.month,j);j++){E+=w.dayA[j],H+=w.dayB[j];for(let O=0;O<w.partsLen;O++)$[O]+=w.dayParts[j][O],K[O]+=w.dayPartsB[j][O]}const L=k?`${(p+1)%12+1}/${k}`:`${N+6}`;x.push({label:`${x.length+1}\uC8FC`,sublabel:`[${N}\uC77C~${L}\uC77C]`,a:E,b:H,...A?{parts:$}:{},...A&&S?{partsB:K}:{}})}u[c]={weekly:x,daily:B}}return u}function Zl(){const e=ea(),t=e.getFullYear(),a=e.getMonth()+1,r=[];for(let s=2024;s<=t;s++){const i=s===t?a:12;for(let l=1;l<=i;l++){const u=`${s}\uB144 ${l}\uC6D4`;r.push({value:u,label:u,year:s,month:l})}}return r.reverse()}Zl();function dy(){return Zl()}const Xl=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function Jl(e){const{t,i18n:a}=_e.useTranslation(),[r,s]=o.useState("week"),i=o.useMemo(()=>dy().filter(A=>A.value in e),[e]),l=o.useMemo(()=>{const A=[];for(const S of i){const E=new Date(S.year,S.month,0).getDate(),H=fn(S.year,S.month-1),$=Math.ceil((E-H+1)/7);for(let K=$-1;K>=0;K--)A.push({value:`${S.value}#${K}`,monthKey:S.value,year:S.year,month:S.month,week:K})}return A},[i]),u=o.useCallback(A=>{const S=t("calendar.yearMonth",{year:A.year,month:A.month});return a.language?.startsWith("ko")?`${S} ${Xl[A.week]??`${A.week+1}`}\uC8FC`:`${S} Week ${A.week+1}`},[t,a.language]),c=o.useMemo(()=>i.map(A=>({value:A.value,label:t("calendar.yearMonth",{year:A.year,month:A.month})})),[t,i]),d=o.useMemo(()=>l.map(A=>({value:A.value,label:u(A)})),[l,u]),m=o.useMemo(()=>uy(),[e]),p=o.useMemo(()=>i.find(A=>A.value===m.monthKey)?.value??i[0]?.value??"",[i,m]),f=o.useMemo(()=>l.find(A=>A.value===m.value)?.value??l[0]?.value??"",[l,m]),[y,v]=o.useState(""),[C,b]=o.useState("");o.useEffect(()=>{i.find(A=>A.value===y)||v(p)},[i,y,p]),o.useEffect(()=>{l.find(A=>A.value===C)||b(f)},[l,C,f]);const _=r==="month"?c:d,h=r==="month"?y:C,w=r==="month"?v:b,g=o.useMemo(()=>{const A=t("calendar.dow",{returnObjects:!0});return Array.isArray(A)?A:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),B=_.findIndex(A=>A.value===h),x=o.useCallback(()=>{const A=_.findIndex(S=>S.value===h);A<_.length-1&&w(_[A+1].value)},[_,h,w]),N=o.useCallback(()=>{const A=_.findIndex(S=>S.value===h);A>0&&w(_[A-1].value)},[_,h,w]),k=o.useMemo(()=>[{key:"week",label:t("manager.chart.periodWeek","\uC8FC")},{key:"month",label:t("manager.chart.periodMonth","\uC6D4")}],[t]);return{period:r,setPeriod:s,range:h,setRange:w,activeOptions:_,activeIdx:B,handlePrev:x,handleNext:N,periodOptions:k,monthRange:y,weekRange:C,weekRanges:l,DOW:g}}const yt=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function An(e,t=!0){return e.future===!0||t&&e.a===-1}function py({data:e,colorA:t,colorB:a,labelA:r,labelB:s,barWidth:i=10,barGap:l=1,height:u=140,maxOverride:c,tightMax:d,seriesColors:m,seriesLabels:p,rateLabels:f,grouped:y=!1,baseline:v,focusableBars:C=!1}){const b=!a,_=!!(m&&m.length>0),h=v,w=o.useMemo(()=>_?Math.max(0,...e.filter(z=>!An(z,h==null)).map(z=>y?Math.max(0,...(z.parts??[]).map(yt)):(z.parts??[]).reduce((q,R)=>q+Math.max(0,yt(R)),0))):Math.max(0,...e.filter(z=>!An(z,h==null)).flatMap(z=>b?[yt(z.a)]:[yt(z.a),yt(z.b)])),[e,b,_,y]),g=o.useMemo(()=>{if(h==null)return 0;const z=e.filter(q=>!An(q,h==null)).flatMap(q=>_?(q.parts??[]).map(yt):b?[yt(q.a)]:[yt(q.a),yt(q.b)]);return Math.max(0,...z.map(q=>Math.abs(q-h)))},[e,h,_,b]),B=o.useMemo(()=>{const z=h!=null?g:w;return c??(d?z>0?z:10:Math.ceil(z/10)*10||10)},[w,g,h,c,d]),x=u,N=_?y?Math.max(1,m.length):1:b?1:2,k={"--bar-width":`${o.useMemo(()=>{const z=Math.max(1,e.length);return Math.max(2,Math.min(i,Math.round(120/(z*N)+6)))},[e.length,N,i])}px`},A={"--bar-group-gap":`${Math.max(0,l)}px`},S=o.useMemo(()=>{const z=Math.round(B/2);return h!=null?[h+B,...z!==B?[h+z]:[],h,...z!==B?[h-z]:[],h-B]:z!==B?[B,z,0]:[B,0]},[B,h]),E=z=>h!=null?1-(z-(h-B))/(2*B):1-z/B,[H,$]=o.useState(null),K=o.useCallback(()=>$(null),[]),L=o.useCallback((z,q)=>{const R=[z.label,z.sublabel].filter(Boolean).join(" ");let W;if(_&&y&&z.rawPartsB)W=(p??[]).map((D,P)=>{const M=z.rawPartsB[P]??0;return{text:M>0?`${D}: ${q[P]??0}% (${z.rawParts?.[P]??0}/${M})`:`${D}: -`,color:(m??[])[P]}});else if(_&&y)W=(p??[]).map((D,P)=>({text:`${D}: ${U(q[P]??0)}`,color:(m??[])[P]}));else if(_){const D=(p??[]).map((M,F)=>({text:`${M}: ${q[F]??0}`,color:(m??[])[F]})),P=D.filter((M,F)=>(q[F]??0)>0);W=P.length?P:D}else f&&!b?W=[{text:`${r} ${yt(z.a)}%`,color:t},{text:`${s} ${yt(z.b)}%`,color:a}]:f&&z.rawB!==void 0?W=[{text:`${f.total} ${z.rawB}`},{text:`${f.done} ${z.rawA??0}`,color:t}]:b?W=[{text:`${r}: ${yt(z.a)}`,color:t}]:W=[{text:`${r}: ${yt(z.a)}`,color:t},{text:`${s}: ${yt(z.b)}`,color:a}];return{title:R,items:W}},[_,y,p,m,f,b,r,s,t,a,h]),j=o.useCallback((z,q,R)=>{const W=z.getBoundingClientRect(),{title:D,items:P}=L(q,R);$({rect:{left:W.left,top:W.top,right:W.right,bottom:W.bottom,width:W.width,height:W.height},title:D,items:P})},[L]),O=o.useCallback((z,q)=>{const{title:R,items:W}=L(z,q);return[R,...W.map(D=>D.text)].filter(Boolean).join(", ")},[L]),U=z=>h!=null&&z>h?`+${z}`:`${z}`,te=H!=null;return o.useEffect(()=>{if(!te)return;const z=()=>$(null),q=R=>{const W=R.target;W&&typeof W.closest=="function"&&W.closest(".manager-bar-chart-col")||$(null)};return window.addEventListener("scroll",z,!0),document.addEventListener("pointerdown",q,!0),()=>{window.removeEventListener("scroll",z,!0),document.removeEventListener("pointerdown",q,!0)}},[te]),n.jsxs("div",{className:"manager-bar-chart-wrap",style:A,children:[n.jsx("div",{className:"manager-bar-chart-inner",children:n.jsx("div",{className:"manager-bar-chart-scroll",children:n.jsxs("div",{className:"manager-bar-chart-area",children:[n.jsxs("div",{className:"manager-bar-chart-plot",style:{height:x},children:[S.slice(0,-1).map((z,q)=>n.jsx("div",{className:`manager-bar-chart-gridline${h!=null&&z===h?" manager-bar-chart-gridline--baseline":""}`,style:{top:E(z)*x},children:n.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:z})},q)),e.map((z,q)=>{const R=An(z,h==null),W=x/2,D=I=>h!=null?Math.min(W,Math.abs(yt(I)-h)/B*W):Math.min(x,Math.max(0,yt(I)/B*x)),P=R?0:D(z.a),M=R?0:D(z.b),F=(z.parts??[]).map(yt);return n.jsx("div",{className:`manager-bar-chart-col${y&&_?" manager-bar-chart-col--group":""}`,style:{cursor:R?"default":"pointer"},tabIndex:C&&!R?0:void 0,role:C&&!R?"img":void 0,"aria-label":C&&!R?O(z,F):void 0,onMouseEnter:R?void 0:I=>j(I.currentTarget,z,F),onFocus:R||!C?void 0:I=>j(I.currentTarget,z,F),onBlur:C?K:void 0,onMouseLeave:K,children:!R&&(_&&y?(m??[]).map((I,Z)=>{const J=F[Z]??0;if(h==null)return n.jsx("div",{className:"manager-bar-chart-bar",style:{...k,height:D(J),background:I}},Z);const Y=yt(J)<h;return n.jsxs("div",{className:"manager-bar-chart-slot",style:k,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!Y&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:D(J),background:I}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:Y&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:D(J),background:I}})})]},Z)}):_?n.jsx("div",{className:"manager-bar-chart-stack",style:k,children:(()=>{const I=F.reduce((J,Y,ne)=>Y>0?ne:J,-1);let Z=x;return F.map((J,Y)=>{if(J<=0)return null;const ne=Math.min(Z,J/B*x);return Z-=ne,n.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:ne,background:(m??[])[Y],borderRadius:Y===I?"6px 6px 0 0":void 0}},Y)})})()}):h!=null?n.jsx(n.Fragment,{children:[{v:yt(z.a),c:t},...b?[]:[{v:yt(z.b),c:a}]].map(({v:I,c:Z},J)=>n.jsxs("div",{className:"manager-bar-chart-slot",style:k,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:I>=h&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:D(I),background:Z}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:I<h&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:D(I),background:Z}})})]},J))}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"manager-bar-chart-bar",style:{...k,height:P,background:t}}),!b&&n.jsx("div",{className:"manager-bar-chart-bar",style:{...k,height:M,background:a}})]}))},q)})]}),n.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((z,q)=>{const R=An(z,h==null);return n.jsxs("span",{className:`manager-bar-chart-x-axis__label${R?" manager-bar-chart-x-axis__label--future":""}`,children:[n.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[z.isToday&&n.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),z.label]}),z.sublabel&&n.jsx("span",{className:"caption-1",children:z.sublabel})]},q)})})]})})}),H&&n.jsx(Wn,{anchorRect:H.rect,title:H.title,items:H.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Ql({control:e}){const{t}=_e.useTranslation(),{activeOptions:a,activeIdx:r,range:s,setRange:i,handlePrev:l,handleNext:u,periodOptions:c,period:d,setPeriod:m}=e,p=d==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),f=d==="week"?t("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):t("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return n.jsxs("div",{className:"manager-section-controls",children:[n.jsx(me,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:p,showTooltipInfo:p,disabled:r===a.length-1,onClick:l}),n.jsx(dn,{value:s,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),n.jsx(me,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:f,showTooltipInfo:f,disabled:r<=0,onClick:u}),n.jsx(Bn,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:c,value:d,onChange:y=>m(y),size:40})]})}function vo(e,t,a,r=!0){const s=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(i,l)=>{const u=new Date(t);u.setDate(t.getDate()+l);const c=(e[`${u.getFullYear()}\uB144 ${u.getMonth()+1}\uC6D4`]?.daily??[])[u.getDate()-1],d=c!=null&&An(c,r)||u>s;return{dt:u,entry:c,isFuture:d}})}function my(e,t,a,r,s=!0){const{period:i,monthRange:l,weekRange:u,weekRanges:c,DOW:d}=t,m=r?.startsWith("ko"),p=ea(),f=p.getFullYear(),y=p.getMonth()+1,v=p.getDate();if(i==="month"){const _=e[l]??{weekly:[],daily:[]},h=l.match(/^(\d+)년 (\d+)월$/),w=h?Number(h[1]):null,g=h?Number(h[2]):null,B=w&&g?fn(w,g-1):1;return _.weekly.map((x,N)=>{const k=N+1;let A=x.label,S=!1,E=!1;if(w&&g){const H=B+N*7,$=new Date(w,g-1,H+6),K=$.getMonth()+1,L=$.getDate(),j=K===g?`${L}`:`${K}/${L}`;A=a("manager.chart.weekRange",{start:H,end:j});const O=new Date(f,y-1,v).getTime();S=O>=new Date(w,g-1,H).getTime()&&O<=$.getTime(),E=w>f||w===f&&(g>y||g===y&&H>v)}return{...x,label:A,sublabel:m?`${Xl[k-1]??k}\uC8FC`:`Week ${k}`,isToday:S,future:x.future===!0||E||void 0,a:E?-1:x.a,b:E?0:x.b}})}const C=c.find(_=>_.value===u);if(!C)return[];const b=new Date(C.year,C.month-1,fn(C.year,C.month-1)+C.week*7);return vo(e,b,p,s).map(({dt:_,entry:h,isFuture:w})=>{const g=_.getMonth()+1,B=_.getDate(),x=_.getFullYear();return{label:g===C.month&&x===C.year?`${B}`:`${g}/${B}`,sublabel:d[_.getDay()]??"",future:w||void 0,a:w?-1:h&&h.a>0?h.a:0,b:w?0:h&&h.b>0?h.b:0,isToday:x===f&&g===y&&B===v,...h?.parts?{parts:w?h.parts.map(()=>0):h.parts}:{},...h?.partsB?{partsB:w?h.partsB.map(()=>0):h.partsB}:{}}})}const hy={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function Cy({focusableBars:e,size:t="medium",barWidth:a,titleKey:r,titleLevel:s,data:i,colorA:l,colorB:u,labelAKey:c,labelBKey:d,showTotal:m=!1,totalUnitKey:p,totalLabelKey:f,control:y,hideControls:v=!1,rate:C=!1,rateAgg:b="dayMean",tightMax:_=!1,avgMode:h=!1,totalFormat:w,series:g,seriesMode:B="stack",loading:x=!1,onDetail:N,headExtra:k,headSegment:A,icon:S,disc:E,onClick:H,cardAriaLabel:$,cardTooltip:K,detailSize:L=32,barGap:j,baseline:O,className:U,inGrid:te=!1}){const{t:z,i18n:q}=_e.useTranslation(),R=hy[t],W=Jl(i),D=y??W,P=o.useMemo(()=>my(i,D,z,q.language,O==null),[i,D,z,q.language,O]),M=B==="group"&&!!g&&g.length>0;j!=null&&!M&&Gt("bar-chart-bargap-without-group","[BarChart] barGap \uC740 seriesMode='group' + series \uC5D0\uC11C\uB9CC \uC4F0\uC778\uB2E4 \u2014 \uADF8 \uBC16\uC5D0\uC11C\uB294 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4.");const F=o.useMemo(()=>{if(!C)return P;const ne=D.period==="month"?D.monthRange.match(/^(\d+)년 (\d+)월$/):null,ie=ea(),ue=g?.length??0,Se=V=>{const oe=[],ge=[],De=[];for(let fe=0;fe<ue;fe++){let ae=0,de=0,pe=0;for(const he of V){const be=yt(he.a[fe]),Pe=yt(he.b[fe]);Pe<=0||(ae+=be,de+=Pe,pe+=be/Pe*100)}oe.push(b==="weighted"?de>0?Math.round(ae/de*100):0:V.length?Math.round(pe/V.length):0),ge.push(ae),De.push(de)}return{pct:oe,ra:ge,rb:De}};return P.map((V,oe)=>{let ge=V.a===-1?-1:V.b>0?Math.round(V.a/V.b*100):0;if(ne&&!An(V)){const fe=Number(ne[1]),ae=Number(ne[2])-1,de=vo(i,new Date(fe,ae,fn(fe,ae)+oe*7),ie).filter(pe=>!pe.isFuture);if(b==="weighted"){let pe=0,he=0;for(const{entry:be}of de)be&&be.b>0&&(pe+=be.a,he+=be.b);ge=he>0?Math.round(pe/he*100):0}else ge=de.length?Math.round(de.reduce((pe,{entry:he})=>pe+(he&&he.b>0?he.a/he.b*100:0),0)/de.length):0}let De=null;if(M&&!An(V)){let fe;if(ne){const de=Number(ne[1]),pe=Number(ne[2])-1;fe=vo(i,new Date(de,pe,fn(de,pe)+oe*7),ie).filter(he=>!he.isFuture).map(({entry:he})=>({a:he?.parts??[],b:he?.partsB??[]}))}else fe=[{a:V.parts??[],b:V.partsB??[]}];const ae=Se(fe);De={parts:ae.pct,rawParts:ae.ra,rawPartsB:ae.rb}}return{...V,a:ge,b:V.a===-1?0:d&&V.parts&&V.parts[1]>0?Math.round(V.parts[0]/V.parts[1]*100):0,rawA:V.a===-1?-1:V.a,rawB:V.b,...De??{}}})},[P,C,b,d,D.period,D.monthRange,i,M,g?.length]),I=o.useMemo(()=>{if(C||h){const ie=(D.period==="week"?P:i[D.monthRange]?.daily??[]).filter(Se=>Se.a!==-1);if(ie.length===0)return 0;if(C&&b==="weighted"){let Se=0,V=0;for(const oe of ie)oe.b>0&&(Se+=oe.a,V+=oe.b);return V>0?Math.round(Se/V*100):0}const ue=C?ie.reduce((Se,V)=>Se+(V.b>0?V.a/V.b*100:0),0):ie.reduce((Se,V)=>Se+(V.a>0?V.a:0),0);return Math.round(ue/ie.length)}const ne=D.period==="month"?i[D.monthRange]?.daily??[]:F;return O!=null?ne.reduce((ie,ue)=>ie+(An(ue,!1)?0:yt(ue.a)+(d?yt(ue.b):0)),0):ne.reduce((ie,ue)=>ie+(ue.a>0?ue.a:0)+(d&&ue.b>0?ue.b:0),0)},[F,P,C,b,h,O,d,D.period,D.monthRange,i]),Z=g&&g.length>0?g.map(ne=>({color:ne.color,label:ne.label})):[{color:l,label:z(c)},...d?[{color:u,label:z(d)}]:[]],J=t==="small",Y=[J?"manager-section--compact":t==="large"?"manager-section--full":void 0,U].filter(Boolean).join(" ")||void 0;return n.jsx(yo,{className:Y,inGrid:te,icon:S,disc:E,onClick:H,ariaLabel:$,tooltip:K,headSegment:A,headMenuItems:N?[{label:z("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),icon:"list",onClick:N,closeOnSelect:!0}]:void 0,title:z(r),titleLevel:s,titleClassName:J?"h5 chart-section-title--small":void 0,headRight:J?k??void 0:({collapsed:ne})=>n.jsxs(n.Fragment,{children:[!v&&n.jsx(Ql,{control:D}),k,N&&!ne&&n.jsx("span",{className:"manager-bar-chart-detail-btn",children:n.jsx(me,{htmlType:"button",size:L,type:"dot",icon:"list",ariaLabel:z("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),showTooltipInfo:z("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:N})})]}),subRow:n.jsxs(n.Fragment,{children:[m?C||h||f&&w?n.jsx(Ra,{label:J?void 0:`${z(D.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${z(f??c)}`,children:w?(w(I).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((ne,ie)=>/\d/.test(ne)?n.jsx("span",{className:"barchart-total__num h0",children:ne},ie):n.jsx("span",{className:"barchart-total__unit h5",children:ne},ie)):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"barchart-total__num h0",children:I}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:z(p)})]})}):n.jsxs(Ra,{children:[n.jsx("span",{className:"barchart-total__num h0",children:I}),n.jsx("span",{className:"barchart-total__unit h5",children:z(c)}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:z(p)})]}):n.jsx("span",{}),n.jsx(bo,{items:Z,className:"caption-1"})]}),children:x?n.jsx("div",{className:"manager-bar-chart-wrap manager-bar-chart-loading","aria-busy":"true",children:n.jsx("div",{className:"manager-bar-chart-inner",children:n.jsxs("div",{className:"manager-bar-chart-area manager-bar-chart-area--loading",children:[n.jsx("div",{className:"manager-bar-chart-plot manager-bar-chart-plot--loading",style:{height:R.height},children:n.jsx($a,{size:32})}),n.jsx("div",{className:"manager-bar-chart-x-axis","aria-hidden":"true",children:n.jsxs("span",{className:"manager-bar-chart-x-axis__label",children:[n.jsx("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:"\xA0"}),F.some(ne=>!!ne.sublabel)&&n.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):n.jsx(py,{focusableBars:e,data:F,colorA:l,colorB:d?u:void 0,labelA:z(c),labelB:d?z(d):void 0,barWidth:a??R.barWidth,barGap:j,baseline:O,height:R.height,maxOverride:C?100:void 0,tightMax:_,seriesColors:g?.map(ne=>ne.color),seriesLabels:g?.map(ne=>ne.label),rateLabels:C?{total:z("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:z("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:M})})}const eu=120,fy={left:38,right:16,top:26,bottom:24};function gy({points:e=[],range:t,ticks:a=[],axisTitle:r,color:s,height:i=156,fallbackWidth:l=320,insets:u,overlay:c,ariaLabel:d,className:m}){const[p,f]=o.useState(null),[y,v]=o.useState(null);o.useEffect(()=>{if(!y)return;const O=te=>f(Math.round(te)||null);if(O(y.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const U=new ResizeObserver(([te])=>O(te.contentRect.width));return U.observe(y),()=>{U.disconnect()}},[y]);const{payload:C,anchorRect:b,openAfterDelay:_,close:h}=xb(eu),w=o.useCallback((O,U)=>{O&&_(O,U.getBoundingClientRect())},[_]),g=p??l,B=i,{left:x,right:N,top:k,bottom:A}={...fy,...u},[S,E]=t,H=O=>E===S?x:x+(g-x-N)*(O-S)/(E-S),$=O=>k+(B-k-A)*(100-O)/100,K={x:H,y:$,plot:{left:x,right:g-N,top:k,bottom:B-A,width:Math.max(0,g-x-N),height:Math.max(0,B-k-A)}},L=e.filter(O=>!O.hollow),j=s??"var(--color-main)";return n.jsxs(n.Fragment,{children:[n.jsxs("svg",{ref:v,className:Ae("line-chart",m),viewBox:`0 0 ${g} ${B}`,role:"img","aria-label":d??e.map(O=>O.description).filter(Boolean).join(", "),children:[r&&n.jsx("text",{className:"line-chart__axis-title",x:0,y:12,children:r}),[0,100].map(O=>n.jsxs("g",{children:[n.jsx("line",{className:"line-chart__grid",x1:x,x2:g-N,y1:$(O),y2:$(O)}),n.jsxs("text",{className:"line-chart__tick",x:x-6,y:$(O)+4,textAnchor:"end",children:[O,"%"]})]},O)),c?.(K),a.map(O=>n.jsx("text",{className:"line-chart__tick",x:H(O.x),y:B-5,textAnchor:"middle",children:O.label},O.x)),L.length>1&&n.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:j,points:L.map(O=>`${H(O.x)},${$(O.pct)}`).join(" ")}),e.map(O=>n.jsxs("g",{className:"line-chart__dot",onPointerEnter:U=>w(O.description,U.currentTarget),onPointerLeave:h,children:[n.jsx("circle",{className:"line-chart__dot-hit",cx:H(O.x),cy:$(O.pct),r:12}),n.jsx("circle",{className:Ae("line-chart__dot-main",O.hollow&&"is-hollow"),cx:H(O.x),cy:$(O.pct),r:4,stroke:j,fill:O.hollow?void 0:j})]},O.x))]}),C!=null&&n.jsx(un,{anchorRect:b,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:C,children:C})]})}function by({icon:e,iconSize:t=56,title:a,titleClass:r="h2",description:s,tipGroups:i,start:l,className:u}){return n.jsxs("div",{className:Ae("game-intro",u),children:[e!=null&&n.jsx("span",{className:"game-intro__icon","aria-hidden":"true",style:{"--game-intro-icon":`${t}px`},children:e}),n.jsx("h2",{className:Ae("game-intro__title",r),children:a}),s!=null&&n.jsx("p",{className:"game-intro__description body-3",children:s}),i?.map((c,d)=>n.jsxs("div",{className:"game-intro__tips",children:[c.title!=null&&n.jsx("span",{className:"game-intro__tips-title body-3",children:c.title}),c.tips.map((m,p)=>n.jsxs("span",{className:"game-intro__tip body-3",children:[m.icon!=null&&n.jsx("span",{"aria-hidden":"true",children:m.icon}),n.jsx("span",{children:m.text})]},p))]},d)),l&&n.jsx(me,{htmlType:"button",className:l.className,variant:"main",color:l.color,size:48,width:"100%",disabled:l.disabled,onClick:l.onClick,children:l.label})]})}const tu=(e,t,a)=>{const r=new Date(Date.UTC(e,t,a));return`${r.getUTCFullYear()}-${String(r.getUTCMonth()+1).padStart(2,"0")}-${String(r.getUTCDate()).padStart(2,"0")}`},nu=(e,t,a,r)=>({from:mi(e,t,a),to:new Date(mi(e,t,a+r).getTime()-1),fromYmd:tu(e,t,a),toYmd:tu(e,t,a+r-1)});function yy(e,t=0){if(e.period==="month"){const s=e.monthRange.match(/^(\d+)년 (\d+)월$/),i=ea(),l=s?Number(s[1]):i.getFullYear(),u=(s?Number(s[2]):i.getMonth()+1)-1+t,c=new Date(Date.UTC(l,u+1,0)).getUTCDate();return nu(l,u,1,c)}const a=e.weekRanges.find(s=>s.value===e.weekRange);if(!a){const s=new Date,i=_a();return{from:s,to:s,fromYmd:i,toYmd:i}}const r=fn(a.year,a.month-1);return nu(a.year,a.month-1,r+(a.week+t)*7,7)}const xo={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function au(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function ru({done:e,total:t,segments:a,color:r="var(--color-main)",size:s="medium",strokeWidth:i,label:l="%",hideCenter:u=!1,hideLabel:c=!1}){const d=typeof s=="number"?s:xo[s].diameter,m=i??(typeof s=="number"?12:xo[s].strokeWidth),p=d/2,f=(d-m)/2,y=2*Math.PI*f;if(a&&a.length>0){const _=a.reduce((h,w)=>{const g=h.length>0?h[h.length-1].acc:0,B=Number.isFinite(w.ratio)?w.ratio:0,x=Math.max(0,Math.min(B,1-g));return h.push({color:w.color,rotate:-90+g*360,dash:y*x,acc:g+x}),h},[]);return n.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),_.map((h,w)=>h.dash>0&&n.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:h.color,strokeWidth:m,strokeDasharray:`${h.dash} ${y}`,strokeLinecap:"round",transform:`rotate(${h.rotate} ${p} ${p})`},w))]})})}const v=(t??0)>0?Math.min((e??0)/t,1):0,C=y*v,b=y-C;return n.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),v>0&&n.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:r,strokeWidth:m,strokeDasharray:`${C} ${b}`,strokeLinecap:v<.02||v>.98?"butt":"round",transform:`rotate(-90 ${p} ${p})`})]}),!u&&n.jsxs("div",{className:`ring-chart__center${c?"":` ${d<=96?"ring-chart__center--small":s==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[n.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:au(v)}),!c&&n.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||s==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function vy({titleKey:e,titleLevel:t,headRight:a,icon:r,showTotal:s,totalLabelKey:i,legend:l,loading:u,className:c,inGrid:d=!1,onClick:m,ariaLabel:p,tooltip:f,...y}){const{t:v}=_e.useTranslation();if(!e)return n.jsx(ru,{...y});const C=(y.total??0)>0?au(Math.min((y.done??0)/y.total,1)):0,b=y.size==="small",_=typeof y.size=="number"?y.size:xo[y.size??"medium"].diameter,h=y.size==="large",w=[c,b?"manager-section--compact":h?"manager-section--full":""].filter(Boolean).join(" ")||void 0,g=r&&n.jsx("span",{className:"chart-section-icon",children:n.jsx(tt,{icon:r,className:"chart-section-icon-inner"})});return n.jsx(yo,{className:w,inGrid:d,onClick:m,ariaLabel:p,tooltip:f,title:v(e),titleLevel:t,titleClassName:b?"h5 chart-section-title--small":void 0,headRight:g||(b?void 0:a),subRow:(s||l)&&n.jsxs(n.Fragment,{children:[s?n.jsxs(Ra,{label:!b&&i?v(i):void 0,children:[n.jsx("span",{className:"barchart-total__num h0",children:C}),n.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):n.jsx("span",{}),l&&n.jsx(bo,{items:l})]}),children:u?n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx("div",{className:"ring-chart ring-chart--loading",style:{width:_,height:_},"aria-busy":"true",children:n.jsx($a,{size:32})})}):n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx(ru,{...y,hideCenter:y.hideCenter??b})})})}function xy({label:e,value:t,change:a,changeType:r,icon:s,tooltip:i,onClick:l,children:u}){const c=o.useRef(null),{anchorRect:d,openAt:m,close:p}=Aa(),f=o.useCallback(()=>{i&&c.current&&m(c.current)},[i,m]),y=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),v=a===void 0?void 0:a>0?`+${a}`:`${a}`,C=o.useCallback(b=>{l&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),l())},[l]);return n.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?C:void 0,onPointerEnter:f,onPointerLeave:p,onFocus:f,onBlur:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,t,v].filter(b=>b!==void 0&&b!=="").join(" "):void 0,children:[i&&d&&n.jsx(vn,{anchorRect:{left:d.left,top:d.top+21,right:d.right,bottom:d.bottom,width:d.width,height:d.height},text:i}),n.jsxs("div",{className:"manager-stat-card__label-row",children:[n.jsx("span",{className:"manager-stat-card__label h5",children:e}),s&&n.jsx("span",{className:"manager-stat-card__icon",children:n.jsx(tt,{icon:s,className:"manager-stat-card__icon-inner"})})]}),n.jsxs("div",{className:"manager-stat-card__content",children:[n.jsxs("div",{className:"manager-stat-card__left",children:[n.jsx("div",{className:"manager-stat-card__value h2",children:t}),v&&n.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${y??"neutral"} caption-1`,children:v})]}),u&&n.jsx("div",{className:"manager-stat-card__body",children:u})]})]})}function ou({value:e,onChange:t,min:a=0,max:r=100,step:s=1,orientation:i="horizontal",size:l=24,disabled:u=!1,ariaLabel:c,length:d,className:m,label:p,formatValue:f,labelPos:y,labelAlign:v="right",showMinMax:C=!1,minLabel:b,maxLabel:_,showBgTick:h=!1,showFillTick:w=!1,tickStep:g,tickShape:B="dot"}){t&&!c&&Gt("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const x=Math.min(r,Math.max(a,e)),N=r>a?(x-a)/(r-a):0,k=i==="vertical",A=!t,S=D=>t?.(Number(D.target.value)),E=typeof d=="number"?`${d}px`:d,H={"--slider-ratio":String(N),"--slider-thumb":`${l}px`,...E?k?{height:E}:{width:E}:{}},$=g??s,K=(h||w)&&$>0&&r>a?Math.floor((r-a)/$+1e-6):0;if(K>0&&K<=100){const D=B!=="dash",P=J=>D?`radial-gradient(circle, ${J} 0.5px, transparent 1px)`:k?`linear-gradient(to bottom, transparent calc(50% - 2px), ${J} calc(50% - 2px), ${J} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${J} calc(50% - 2px), ${J} calc(50% + 2px), transparent calc(50% + 2px))`,M=D?"2px":"4px",F=[],I=[],Z=[];for(let J=0;J<=K;J++){const Y=J*$/(r-a);if(Y>1+1e-6)break;const ne=`${((k?1-Y:Y)*100).toFixed(4)}%`,ie=Y<=N+1e-6;if(ie?!w:!h)continue;const ue=ie?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";F.push(P(ue)),I.push(k?`${M} var(--slider-thumb)`:`var(--slider-thumb) ${M}`),Z.push(k?`center ${ne}`:`${ne} center`)}F.push(k?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),I.push("100% 100%"),Z.push("0 0"),H.backgroundImage=F.join(", "),H.backgroundSize=I.join(", "),H.backgroundPosition=Z.join(", "),H.backgroundRepeat="no-repeat"}const L=f?f(x):p==="percent"?`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`:p==="count"?`${x} / ${r}`:x===a&&b?b:x===r&&_?_:void 0,j=n.jsx("input",{type:"range",className:Ae("slider",`slider--${i}`,A&&"slider--static",!p&&!C&&m),min:a,max:r,step:s,value:x,disabled:u,readOnly:A,tabIndex:A?-1:void 0,"aria-label":c,"aria-valuetext":L,"aria-orientation":i,onChange:S,style:H});if(!p&&!C)return j;const O=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:b??a}),U=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:_??r}),te=C?n.jsxs("div",{className:Ae("slider-track-group",`slider-track-group--${i}`,!p&&m),children:[k?U:O,j,k?O:U]}):j;if(!p)return te;const z=y??(k?"bottom":"right"),q=`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`,R=f?f(x):p==="percent"?q:p==="count"?`${x} / ${r}`:String(x),W=n.jsx("span",{className:"slider-wrap__value body-3b",children:R});return n.jsxs("div",{className:Ae("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${z}`,`slider-wrap--align-${v}`,m),children:[te,W]})}const _y=.86,wy=250,_o=(e,t,a,r)=>Math.round(Math.min(r,Math.max(a,e-t))),wo=(e,t,a,r)=>{const s=_o(e,t,a,r);return`${s<0?"-":"+"}${Math.abs(s)} dB`};function Bo({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:s,labelPos:i,labelAlign:l="right",floorDb:u=-60,refDb:c=-35,displayMin:d=-5,displayMax:m=25,className:p,ariaLabel:f}){const y=o.useRef(null),v=o.useRef(null),C=o.useRef(null),b=o.useRef(null),[_,h]=o.useState(null);o.useEffect(()=>{const x=j=>{const O=wo(j,c,d,m);C.current&&(C.current.textContent=O);const U=y.current;U&&(U.setAttribute("aria-valuenow",String(_o(j,c,d,m))),U.setAttribute("aria-valuetext",O))},N=e??CC(t)??(_&&_.el===t?_.node:null),k=v.current;if(!N||!k){k?.style.setProperty("--meter-level","0"),x(u);let j=!1;return!e&&t&&za(t).then(O=>{!j&&O&&h({el:t,node:O})}),()=>{j=!0}}Fr();const A=new Float32Array(N.fftSize);let S=0,E=0,H=0,$=0,K=null;const L=j=>{const O=fC(N,A);S=O>S?O:S*_y;const U=S>1e-5?20*Math.log10(S):-1/0,te=Math.max(u,U),z=te-c,q=Math.min(1,Math.max(0,(z-d)/(m-d)));if(k.style.setProperty("--meter-level",q.toFixed(3)),E+=te,H+=1,j-$>=wy){const R=E/H;K=K==null?R:K*.6+R*.4,x(K),E=0,H=0,$=j}b.current=requestAnimationFrame(L)};return b.current=requestAnimationFrame(L),()=>{b.current!=null&&cancelAnimationFrame(b.current),b.current=null}},[e,t,_,u,c,d,m]);const w=typeof r=="number"?`${r}px`:r,g=n.jsx("div",{className:"audio-meter__track",style:w?a==="vertical"?{height:w}:{width:w}:{},children:n.jsx("div",{ref:v,className:"audio-meter__fill"})}),B=i??(a==="vertical"?"bottom":"right");return n.jsxs("div",{ref:y,className:Ae("audio-meter",`audio-meter--${a}`,s&&`audio-meter--label-${B}`,s&&`audio-meter--align-${l}`,p),role:"meter","aria-label":f,"aria-valuemin":d,"aria-valuemax":m,"aria-valuenow":_o(u,c,d,m),"aria-valuetext":wo(u,c,d,m),children:[g,s&&n.jsx("span",{ref:C,className:"audio-meter__value caption-2",children:wo(u,c,d,m)})]})}const su=260;function iu({message:e,position:t,duration:a,onClose:r}){const[s,i]=o.useState(!1),[l,u]=o.useState(!1),c=o.useRef(l),d=o.useRef(s);o.useEffect(()=>{c.current=l},[l]),o.useEffect(()=>{d.current=s},[s]);const m=o.useRef(null),p=o.useRef(""),f=o.useRef(r);o.useEffect(()=>{f.current=r});const y=a,v=o.useRef(null),C=o.useRef(0),b=o.useRef(0),_=o.useRef(!1),h=o.useRef(null),w=o.useRef(null),g=o.useRef(null),B=o.useRef(null),x=o.useRef(()=>{});x.current=A=>{A<0||(C.current=Date.now(),b.current=A,v.current=setTimeout(()=>{v.current=null,i(!1),h.current=setTimeout(()=>{u(!1);try{f.current()}catch{}},su)},A))};const N=o.useCallback(()=>{_.current||!v.current||(_.current=!0,clearTimeout(v.current),v.current=null,b.current=Math.max(0,b.current-(Date.now()-C.current)))},[]),k=o.useCallback(()=>{_.current&&(_.current=!1,x.current(b.current))},[]);return o.useEffect(()=>{if(e!==p.current&&(v.current&&(clearTimeout(v.current),v.current=null),h.current&&(clearTimeout(h.current),h.current=null)),e){if(d.current)return y>0&&!v.current&&(_.current?b.current=y:x.current(y)),p.current=e,()=>{v.current&&(clearTimeout(v.current),v.current=null),h.current&&(clearTimeout(h.current),h.current=null)};const A=()=>{const S=m.current;if(S)try{S.classList.remove("is-visible"),S.style.transition="none",t==="top"?S.style.transform="translateX(-50%) translateY(-16px)":S.style.transform="translateX(-50%) translateY(16px)",S.style.opacity="0",S.offsetWidth,S.style.transition="",S.classList.add("is-visible"),B.current&&clearTimeout(B.current),B.current=setTimeout(()=>{B.current=null;try{S.style.opacity="",S.style.transform="",S.style.transition=""}catch{}},60)}catch{}};c.current?(A(),i(!0)):(u(!0),w.current=requestAnimationFrame(()=>{g.current=requestAnimationFrame(()=>{A(),i(!0)})})),y>0&&(_.current=!1,x.current(y))}else i(!1),h.current=setTimeout(()=>u(!1),su);return p.current=e,()=>{v.current&&clearTimeout(v.current),h.current&&clearTimeout(h.current),w.current&&cancelAnimationFrame(w.current),g.current&&cancelAnimationFrame(g.current),B.current&&clearTimeout(B.current),v.current=null,h.current=null,w.current=null,g.current=null,B.current=null}},[e,y,t]),{mounted:l,showing:s,popupRef:m,pause:N,resume:k}}function sa({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:s=2e3}){const{mounted:i,showing:l,popupRef:u,pause:c,resume:d}=iu({message:e,position:t,duration:s,onClose:r}),m=o.useRef(null),[p,f]=o.useState(!1);if(o.useEffect(()=>{l?f(!0):i||f(!1)},[l,i]),!i)return null;const y=a==="notice"||a==="warning"?a:"normal",v=n.jsx("div",{ref:u,className:`toast toast--${t} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:C=>{m.current=C.pointerType},onMouseEnter:()=>{m.current!=="touch"&&c()},onMouseLeave:d,onFocusCapture:c,onBlurCapture:d,children:n.jsx("div",{className:`toast__inner toast__inner--${y} body-2`,"aria-hidden":p||l?void 0:!0,children:n.jsx("span",{className:"toast__text",children:e})})});return typeof document<"u"?en.createPortal(v,document.body):v}const By=24;function Ay({value:e,max:t=100,size:a=8,color:r,trackColor:s,label:i,formatValue:l,labelPos:u,labelAlign:c="right",ariaLabel:d,className:m}){const p=Number.isFinite(t)&&t>0?t:1,f=Math.max(0,Math.min(Number.isFinite(e)?e:0,p)),y=f/p*100,v=Number.isFinite(t)&&t>0?t:0,C=u??(a>=By?"inside":"bottom"),b=C==="center"?"inside":C,_=b==="inside"&&(c==="left"?y>=15:c==="center"?y>=50:y>=85),h={};return r&&(h["--progress-bar-fill"]=r),s&&(h["--progress-bar-track"]=s),n.jsxs("div",{className:Ae("progress-bar",`progress-bar--${a}`,`progress-bar--label-${b}`,i&&`progress-bar--align-${c}`,i&&_&&"progress-bar--label-on-fill",m),style:h,children:[n.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":v,"aria-valuetext":i?l?l(f):i==="percent"?void 0:i==="raw"?String(f):`${f} / ${v}`:void 0,"aria-label":d,children:n.jsx("div",{className:"progress-bar__fill",style:{width:`${y}%`}})}),i&&n.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(f):i==="percent"?`${Math.round(y)}%`:i==="raw"?String(f):`${f} / ${v}`})]})}const lu={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},ky="rgba(255, 255, 255, 0.16)";function uu({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:s,variant:i="numbered",announce:l=!1,ariaLabel:u}){const{t:c}=_e.useTranslation(),d=rn("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const m=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,p=u??c("progress.steps",{current:m+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),f={};if(a&&(f["--pi-inactive-bg"]=a),r&&(f["--pi-inactive-color"]=r),s&&(a||(f["--pi-inactive-bg"]=ky),r||(f["--pi-inactive-color"]="var(--color-white)")),i==="dot")return n.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:f,role:l?"status":"img","aria-label":l?void 0:p,children:[l&&n.jsx("span",{style:lu,children:p}),Array.from({length:e}).map((v,C)=>n.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${C<m?" done":C===m?" active":""}`},C))]});const y=l?n.jsx("span",{role:"status",style:lu,children:p}):null;return d?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:f,role:"list","aria-label":p,children:n.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[m+1," / ",e]})}),y]}):n.jsxs(n.Fragment,{children:[y,n.jsx("div",{className:"progress-indicator",style:f,role:"list","aria-label":p,children:Array.from({length:e}).map((v,C)=>n.jsx("span",{role:"listitem","aria-current":C===m?"step":void 0,className:`progress-indicator-dot ${C<m?" done":C===m?" active":""} body-3`,children:C+1},C))})]})}function Ny(e){if(!e)return[];const t=[];let a=0,r="";for(const s of e.trim()){if(s==="("?a++:s===")"&&a--,/\s/.test(s)&&a===0){r&&(t.push(r),r="");continue}r+=s}return r&&t.push(r),t}function Dy({children:e,className:t,style:a,rowLabel:r,onRowClick:s}){return n.jsx("div",{role:"cell",className:t?`table-cell ${t}`:"table-cell",style:a,children:r&&s?n.jsx("button",{type:"button",className:"table-cell__row-button","aria-label":r,children:e}):e})}function Ao({variant:e="default",children:t,className:a,draggable:r,onClick:s,onMouseEnter:i,onMouseLeave:l,onDragStart:u,onDragEnd:c,expandedContent:d,colSpan:m,describedBy:p,rowHasButton:f}){const y=o.useCallback(v=>{s&&v.target===v.currentTarget&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),s())},[s]);return e==="loading"?n.jsx("div",{role:"presentation",className:"table-row-wrap",children:n.jsx("div",{role:"row",className:"table-row table-row--loading",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row__full-cell",children:n.jsx($a,{size:28})})})}):e==="empty"?n.jsx("div",{role:"presentation",className:"table-row-wrap",children:n.jsx("div",{role:"row",className:"table-row table-row--empty body-3",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row__full-cell",children:t})})}):n.jsxs("div",{role:"presentation",className:"table-row-wrap",children:[n.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:s,onKeyDown:s?y:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:u,onDragEnd:c,role:"row",tabIndex:s&&!f?0:void 0,"aria-describedby":s&&!f?p:void 0,children:t}),d&&n.jsx("div",{role:"row",className:"table-row-expand",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row-expand__cell",children:d})})]})}function Ey({dir:e}){return n.jsx(e==="asc"?As:Bs,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Sy({children:e,onClick:t,className:a,sortDir:r,ariaSort:s,onResizeStart:i}){const l=n.jsxs(n.Fragment,{children:[e,r&&n.jsx(Ey,{dir:r})]});return n.jsxs("div",{onClick:t,role:"columnheader","aria-sort":s,className:Ae("table-field body-3",a,r?"table-field--sorted":"",i?"table-field--resizable":""),children:[t?n.jsx("button",{type:"button",className:"table-field__button",children:l}):l,i&&n.jsx("span",{className:"table-field__resizer",onPointerDown:i,onClick:u=>u.stopPropagation(),"aria-hidden":"true"})]})}function ko({fields:e=[],headerGroups:t,items:a=[],renderRow:r,onRowClick:s,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:u,onRowDragStart:c,onRowDragEnd:d,draggingId:m,gridTemplateColumns:p,mobileGridTemplateColumns:f,resizable:y=!1,resizeMode:v="grow",resizeStorageKey:C,size:b="small",title:_,icon:h,count:w,collapsed:g=!1,onToggleCollapse:B,headerActions:x,empty:N,loading:k,dragOver:A=!1,onDragOver:S,onDragLeave:E,onDrop:H,renderExpandedRow:$,expandedId:K}){const{t:L}=_e.useTranslation(),j=o.useId(),O=`table-title-${j}`,U=`table-row-hint-${j}`,te=rn("(max-width: 767px)"),z=f&&te?f:null,q=y&&!te,R=48,W=o.useRef(()=>R),D=C?`table-cols:${C}`:null,P=o.useRef(null),M=o.useRef(null),F=o.useRef(null),I=o.useRef(null),[Z,J]=o.useState(!1),Y=o.useCallback(()=>{const X=F.current;X&&J(X.scrollWidth>X.clientWidth+1)},[]),ne=o.useCallback((X,le)=>{const we=X.current;we&&M.current&&M.current.unobserve(we),X.current=le,le?(!M.current&&typeof ResizeObserver<"u"&&(M.current=new ResizeObserver(()=>Y())),M.current?.observe(le)):!F.current&&!I.current&&(M.current?.disconnect(),M.current=null),Y()},[Y]),ie=o.useCallback(X=>ne(F,X),[ne]),ue=o.useCallback(X=>ne(I,X),[ne]);o.useEffect(()=>{Y()}),o.useEffect(()=>{if(typeof window>"u")return;const X=typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>Y()):null;return window.addEventListener("resize",Y),()=>{X!=null&&cancelAnimationFrame(X),window.removeEventListener("resize",Y)}},[Y]);const Se=o.useRef(()=>!1),V=o.useRef([]),oe=o.useRef(null),ge=X=>{if(!X||typeof window>"u")return null;try{const le=JSON.parse(window.localStorage.getItem(X)??"null");return Array.isArray(le)&&le.length>0&&le.every(we=>typeof we=="number"&&Number.isFinite(we)&&we>0)?le:null}catch{return null}},[De,fe]=o.useState(()=>ge(D)),[ae,de]=o.useState(D);ae!==D&&(de(D),fe(ge(D)));const pe=o.useRef(De);o.useEffect(()=>{pe.current=De},[De]);const he=o.useCallback(X=>{const le=oe.current;if(!le)return;const we=pe.current;if(we){const Ne=[...we];if(le.next!=null&&le.startWNext!=null){const Ve=X.clientX-le.startX,et=Math.max(W.current(le.index)-le.startW,Math.min(le.startWNext-W.current(le.next),Ve));Ne[le.index]=le.startW+et,Ne[le.next]=le.startWNext-et}else Ne[le.index]=Math.max(W.current(le.index),le.startW+(X.clientX-le.startX));pe.current=Ne,fe(Ne)}},[]),be=o.useCallback(()=>{if(oe.current=null,window.removeEventListener("pointermove",he),window.removeEventListener("pointerup",be),window.removeEventListener("pointercancel",be),document.body.style.cursor="",document.body.style.userSelect="",D&&pe.current)try{window.localStorage.setItem(D,JSON.stringify(pe.current))}catch{}},[he,D]),Pe=o.useCallback((X,le)=>{le.preventDefault(),le.stopPropagation();const we=P.current;if(!we)return;const Ne=Array.from(we.children).map(et=>et.getBoundingClientRect().width),Ve=v==="fit"?e.findIndex((et,pt)=>pt>X&&et.resizable!==!1):-1;oe.current=Ve>=0?{index:X,startX:le.clientX,startW:Ne[X],next:Ve,startWNext:Ne[Ve]}:{index:X,startX:le.clientX,startW:Ne[X]},pe.current=Ne,fe(Ne),window.addEventListener("pointermove",he),window.addEventListener("pointerup",be),window.addEventListener("pointercancel",be),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[he,be,v,e]),$e=o.useCallback(()=>{const X=P.current,le=X?.closest(".table-wrap");if(!X||!le)return;const we=le.style.getPropertyValue("--table-grid-cols");le.style.setProperty("--table-grid-cols",e.map((Ue,We)=>Se.current(We)?V.current[We]:"max-content").join(" "));const Ne=Array.from(le.querySelectorAll(".table-row")).filter(Ue=>!Ue.classList.contains("table-row--loading")&&!Ue.classList.contains("table-row--empty")),Ve=e.map((Ue,We)=>{let Ke=X.children[We]?.getBoundingClientRect().width??0;for(const bt of Ne){const Ye=bt.children[We];Ye&&(Ke=Math.max(Ke,Ye.getBoundingClientRect().width))}const rt=Se.current(We)?parseFloat(V.current[We]):NaN;return Number.isFinite(rt)?rt:Math.max(W.current(We),Math.ceil(Ke))}),et=window.getComputedStyle(X),pt=X.clientWidth-(parseFloat(et.paddingLeft)||0)-(parseFloat(et.paddingRight)||0);we?le.style.setProperty("--table-grid-cols",we):le.style.removeProperty("--table-grid-cols");let ut=Ve;const ft=Ve.reduce((Ue,We,Ke)=>Ue+(Se.current(Ke)?We:0),0),gt=Ve.reduce((Ue,We,Ke)=>Ue+(Se.current(Ke)?0:We),0),Qe=pt-ft;if(pt>0&&gt>0&&Qe>0){const Ue=Qe/gt;ut=Ve.map((Ke,rt)=>Se.current(rt)?Ke:Math.max(W.current(rt),Math.round(Ke*Ue)));const We=Math.round(Qe-ut.reduce((Ke,rt,bt)=>Ke+(Se.current(bt)?0:rt),0));if(We!==0){let Ke=-1;ut.forEach((rt,bt)=>{!Se.current(bt)&&(Ke<0||rt>ut[Ke])&&(Ke=bt)}),Ke>=0&&(ut[Ke]=Math.max(W.current(Ke),ut[Ke]+We))}}if(fe(ut),D)try{window.localStorage.setItem(D,JSON.stringify(ut))}catch{}},[e,v,D]);o.useEffect(()=>()=>{oe.current&&(window.removeEventListener("pointermove",he),window.removeEventListener("pointerup",be),window.removeEventListener("pointercancel",be),document.body.style.cursor="",document.body.style.userSelect="")},[he,be]);const Ie=Ny(p),Fe=Ie.filter(X=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(X));Fe.length>0&&Gt(`table-content-track:${p}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${Fe.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${p})`);const Oe=e.findIndex(X=>!!X.sortDir);e.filter(X=>!!X.sortDir).length>1&&Gt("table-multi-sort","[ihabdevteam-core] Table \uC758 fields \uC5D0 sortDir \uC774 \uB458 \uC774\uC0C1 \uC788\uC2B5\uB2C8\uB2E4. aria-sort \uB294 \uD45C \uD558\uB098\uC5D0 \uD55C \uCE78\uB9CC \uAC00\uC9C8 \uC218 \uC788\uC5B4 \uCCAB \uCE78\uB9CC \uBC29\uD5A5\uC73C\uB85C \uC54C\uB9AC\uACE0 \uB098\uBA38\uC9C0\uB294 none \uC73C\uB85C \uB461\uB2C8\uB2E4.");const dt=X=>X===Oe?e[X].sortDir==="asc"?"ascending":"descending":e[X].onClick?"none":void 0,lt=X=>/^\d+(\.\d+)?px$/.test(Ie[X]??""),ot=X=>{const le=Ie[X]??"",we=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(le)??/^(\d+(?:\.\d+)?)px$/.exec(le);return we?parseFloat(we[1]):R};Se.current=lt,W.current=ot,V.current=Ie;const ct=X=>v==="fit"&&!lt(X)?"fr":"px",ke=De&&De.length===e.length&&!te&&(v==="fit"||a.length>0),He=z??(ke?e.map((X,le)=>X.resizable===!1&&Ie[le]?Ie[le]:`${De[le]}${ct(le)}`).join(" "):p),Be=He?{"--table-grid-cols":He}:void 0,Xe=_!==void 0;return n.jsxs("div",{ref:ie,className:`table-wrap table-wrap--${b}${q?" table-wrap--resizable":""}${A?" table-wrap--dragover":""}${g?" table-wrap--collapsed":""}`,style:Be,onDragOver:S,onDragLeave:E,onDrop:H,tabIndex:Z?0:void 0,role:Z?"region":void 0,"aria-label":Z?typeof _=="string"?_:L("table.scrollRegion","\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C"):void 0,children:[!!s&&n.jsx("span",{id:U,className:"table-row-hint",children:L("table.rowActionHint","\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4")}),n.jsxs("div",{ref:ue,role:"table","aria-labelledby":Xe&&typeof _=="string"?O:void 0,className:"table body-2",children:[Xe&&n.jsxs("div",{className:Ae("table-header",B&&"table-header--clickable"),onClick:B,role:"caption",children:[B&&n.jsx(me,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:g?"chevron-right":"chevron-down",ariaLabel:g?L("common.expand","\uD3BC\uCE58\uAE30"):L("common.collapse","\uC811\uAE30"),ariaExpanded:!g,className:"table-header__chevron"}),h&&n.jsx(tt,{icon:h,label:typeof _=="string"?_:void 0,className:"table-header__icon"}),n.jsx("span",{id:O,className:"table-header__title h5b",children:_}),w!==void 0&&n.jsx("span",{className:"table-header__count body-3b",children:w}),x&&n.jsx("span",{className:"table-header__actions",onClick:X=>X.stopPropagation(),children:x})]}),!g&&n.jsxs(n.Fragment,{children:[t&&t.length>0&&n.jsx("div",{role:"row",className:"table-fields table-fields--groups",children:t.map((X,le)=>n.jsx("div",{role:"columnheader","aria-colspan":X.span,className:Ae("table-field body-3",X.className),style:{gridColumn:`span ${X.span}`},children:X.label},le))}),n.jsxs("div",{role:"presentation",className:Ae("table-fields-strip",q&&"table-fields-strip--resizable"),children:[n.jsx("div",{role:"row",className:"table-fields",ref:P,children:e.map((X,le)=>n.jsx(Sy,{onClick:X.onClick,className:X.className,sortDir:X.sortDir,ariaSort:dt(le),onResizeStart:q&&le<e.length-1&&X.resizable!==!1&&(v!=="fit"||e.some((we,Ne)=>Ne>le&&we.resizable!==!1))?we=>Pe(le,we):void 0,children:X.label},le))}),q&&n.jsx(me,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:L("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:L("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:$e})]}),n.jsx("div",{role:"rowgroup",className:"table-body",children:k?n.jsx(Ao,{variant:"loading",colSpan:e.length||void 0}):a.length===0&&N?n.jsx(Ao,{variant:"empty",colSpan:e.length||void 0,children:N}):a.map((X,le)=>{const we=m!=null&&X.id===m,Ne=!!s&&(i?i(X):!0),Ve=K!=null&&X.id!=null&&(K instanceof Set?K.has(X.id)||[...K].some(et=>String(et)===String(X.id)):String(X.id)===String(K));return n.jsx(Ao,{className:`${Ne?" table-row--clickable":""}${c?" table-row--draggable":""}${we?" table-row--dragging":""}`.trim(),draggable:!!c,onClick:Ne?()=>s(X):void 0,colSpan:e.length||void 0,rowHasButton:r(X).some(et=>!!et.rowLabel),describedBy:U,onMouseEnter:l?et=>l(X,et):void 0,onMouseLeave:u?et=>u(X,et):void 0,onDragStart:c?et=>c(X,et):void 0,onDragEnd:d?et=>d(X,et):void 0,expandedContent:Ve&&$?$(X):void 0,children:r(X).map((et,pt)=>n.jsx(Dy,{className:et.className,style:et.style,rowLabel:Ne?et.rowLabel:void 0,onRowClick:Ne?()=>s(X):void 0,children:et.content},pt))},X.id!=null?`${typeof X.id}:${X.id}`:`__idx:${le}`)})})]})]})]})}function cu(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const ia=e=>e==null?"":String(e).trim();function No(e,t,a){const r=[ia(e),ia(t),ia(a)];for(;r.length>0&&r[r.length-1]==="";)r.pop();return r.join(".")}function jy(e,t,a){const r=ia(e);return r?`${r}-${ia(t).padStart(2,"0")}-${ia(a).padStart(2,"0")}`:""}const Ty={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function My(e,t){const a=Ty[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}function du(e,t){return t!=="wornAt"?String(e[t]??""):jy(e.wornYear,e.wornMonth,e.wornDay)}function Ly({rows:e,loading:t,onSelect:a,onDelete:r,onWear:s,onRelease:i,onAdd:l}){const{t:u}=_e.useTranslation(),c=C=>C==="\uC88C"?u("device.direction.left","\uC88C"):u("device.direction.right","\uC6B0"),{\uC815\uB82C:d,\uCE78:m}=db(),p=o.useMemo(()=>{if(!d)return e;const{key:C,asc:b}=d;return[...e].sort((_,h)=>{if(C==="worn"){const w=Number(h.worn)-Number(_.worn);return b?w:-w}return ro(du(_,C),du(h,C),b)})},[e,d]),{pageRows:f,pageSizeProps:y,paginationProps:v}=cb(p,d);return n.jsxs("div",{className:"dlp-side-table",children:[n.jsx(go,{count:{value:e.length,unit:u("customers.device.unit","\uAC1C")},pageSize:y,pagination:v,actions:l&&n.jsx(me,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:u("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:l})}),n.jsx(ko,{loading:t,resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...m(u("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},m(u("device.direction.label","\uBC29\uD5A5"),"side"),m(u("device.deviceType","\uC885\uB958"),"device"),m(u("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),m(u("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),m(u("device.productName","\uC81C\uD488\uBA85"),"productName"),m(u("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...r?[{label:"",resizable:!1}]:[]],items:f.map((C,b)=>({id:C.id??`${C.side}-${b}`,row:C})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${r?" 80px":""}`,renderRow:({row:C})=>[{content:n.jsx("span",{className:"dlp-worn-check",onClick:b=>b.stopPropagation(),children:n.jsx(Gl,{checked:C.worn,disabled:C.worn?!i:!s,ariaLabel:C.worn?u("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):u("customers.device.wear","\uCC29\uC6A9"),onChange:b=>{b?s?.(C):i?.(C)}})})},{content:n.jsx("span",{children:c(C.side)})},{content:C.device?n.jsx(wt,{size:"small",variant:cu(C.device),fill:"soft",label:My(C.device,u)}):n.jsx("span",{})},{content:n.jsx("span",{children:C.brand})},{content:n.jsx("span",{children:C.fitType||"-"})},{content:n.jsx("span",{children:C.productName||"-"})},{content:n.jsx("span",{className:"dlp-date",children:No(C.wornYear,C.wornMonth,C.wornDay)||"-"})},...r?[{content:n.jsx("span",{className:"dlp-row-actions",children:n.jsx(me,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:u("common.delete","\uC0AD\uC81C"),onClick:b=>{b?.stopPropagation(),r(C)}})})}]:[]],onRowClick:({row:C})=>a(C),empty:u("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function pu(e,t){return e?{role:t?.role??"button",tabIndex:0,...t?.selected===void 0?{}:{"aria-selected":t.selected},onKeyDown:a=>{a.target===a.currentTarget&&(a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a)))}}:{}}function $y(e,t){return new Date(e,t+1,0).getDate()}function Ry(e,t){return new Date(e,t,1).getDay()}function Py({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:r,today:s}){const{t:i,i18n:l}=_e.useTranslation(),u=o.useMemo(()=>i("calendar.dow",{returnObjects:!0}),[i]),c=Wr(s),[d,m]=o.useState(()=>Number(c.slice(0,4))),[p,f]=o.useState(()=>Number(c.slice(5,7))-1),[y,v]=o.useState(null),C=o.useRef(null),b=o.useMemo(()=>{const x={};return e.forEach(N=>{x[N.date]||(x[N.date]=[]),x[N.date].push(N)}),x},[e]),_=o.useMemo(()=>{const x=$y(d,p),N=Ry(d,p),k=[];for(let A=0;A<N;A++)k.push(null);for(let A=1;A<=x;A++)k.push(A);for(;k.length<35;)k.push(null);return k},[d,p]),h=o.useCallback(()=>{p===0?(m(x=>x-1),f(11)):f(x=>x-1)},[p]),w=o.useCallback(()=>{p===11?(m(x=>x+1),f(0)):f(x=>x+1)},[p]),g=x=>`${d}-${String(p+1).padStart(2,"0")}-${String(x).padStart(2,"0")}`,B=x=>g(x)===c;return n.jsxs("div",{children:[n.jsxs("div",{className:"calendar-nav",children:[n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:h,"aria-label":i("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(tt,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),n.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:i("calendar.yearMonth",{year:d,month:p+1})}),n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:w,"aria-label":i("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(tt,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),n.jsxs("div",{className:"calendar-nav__legend",children:[n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),n.jsx("span",{className:"caption-1",children:i("calendar.legend.visited","\uBC29\uBB38")}),n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),n.jsx("span",{className:"caption-1",children:i("calendar.legend.scheduled","\uC608\uC57D")}),n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),n.jsx("span",{className:"caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),n.jsxs("div",{className:"calendar-grid",children:[u.map(x=>n.jsx("div",{className:"calendar-day-header body-3",children:x},x)),_.map((x,N)=>{if(x===null)return n.jsx("div",{className:"calendar-cell empty"},`empty-${N}`);const k=x,A=g(k),S=b[A]??[],E=GC(A,l.language),H=y===A;return n.jsxs("div",{className:`calendar-cell${B(k)?" today":""}${H?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?i("calendar.addOnDate",{date:A}):void 0,"aria-current":B(k)?"date":void 0,onClick:r?()=>r(A):void 0,onKeyDown:r?$=>{$.target===$.currentTarget&&($.key!=="Enter"&&$.key!==" "||($.preventDefault(),r(A)))}:void 0,onDragOver:a?$=>{$.preventDefault(),v(A)}:void 0,onDragLeave:a?$=>{$.currentTarget.contains($.relatedTarget)||v(null)}:void 0,onDrop:a?$=>{$.preventDefault(),C.current!=null&&(a(C.current,A),C.current=null),v(null)}:void 0,children:[n.jsx("div",{className:"calendar-cell__number body-3",children:k}),S.length>0&&(()=>{const $=[{key:"visited",\uB9D0:i("calendar.legend.visited","\uBC29\uBB38"),\uC218:S.filter(L=>(L.status??"visited")==="visited").length},{key:"scheduled",\uB9D0:i("calendar.legend.scheduled","\uC608\uC57D"),\uC218:S.filter(L=>L.status==="scheduled").length},{key:"noVisit",\uB9D0:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38"),\uC218:S.filter(L=>L.status==="noVisit").length}].filter(L=>L.\uC218>0),K=$.length===1&&$[0].key==="visited"?i("calendar.visitCount",{count:S.length,defaultValue:"\uBC29\uBB38 {{count}}\uAC74"}):$.map(L=>i("calendar.statusCount",{label:L.\uB9D0,count:L.\uC218,defaultValue:"{{label}} {{count}}\uAC74"})).join(" \xB7 ");return n.jsxs("span",{className:"calendar-cell__visit-count caption-1","aria-label":`${E} ${K}`,children:[$.map(L=>n.jsx("span",{className:`calendar-cell__visit-dot calendar-cell__visit-dot--${L.key}`,"aria-hidden":"true"},L.key)),S.length]})})(),n.jsx("div",{className:"calendar-cell__badges",children:S.map(($,K)=>n.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${$.status==="noVisit"?" calendar-visit-badge--no-visit":$.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?L=>{C.current=$.id,L.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{C.current=null,v(null)}:void 0,onClick:t?L=>{L.stopPropagation(),t($)}:void 0,...pu(t?()=>t($):void 0),"aria-label":[E,$.time?fi($.time,i):null,$.customer,i($.status==="noVisit"?"calendar.legend.noVisit":$.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[$.time&&n.jsx("span",{className:"calendar-visit-badge__time body-3",children:fi($.time,i)}),n.jsx("span",{className:"calendar-visit-badge__name body-3",children:$.customer}),$.status==="noVisit"&&n.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},$.id??K))})]},k)})]})]})}const Fy={page:"h3",pagePopup:"h4",popup:"h5"};function la({type:e="page",title:t,headingLevel:a=2,icon:r,action:s,disc:i,children:l,inGrid:u=!1,className:c,style:d}){const m=Fy[e],p=t||i||s||r,f=a?`h${a}`:"div";return n.jsxs("div",{className:Ae("section",`section--${e}`,u&&"section--in-grid",c),style:d,children:[p&&n.jsxs("div",{className:"section__header",children:[n.jsxs("div",{className:"section__title-row",children:[r&&n.jsx(tt,{icon:r,label:typeof t=="string"?t:void 0,className:"section__icon"}),n.jsxs("div",{className:"section__title-group",children:[t&&n.jsx(f,{className:`section__title ${m}`,children:t}),i&&n.jsx("div",{className:"section__disc body-3",children:i})]})]}),s&&n.jsx("div",{className:"section__action",children:s})]}),l]})}let Do=null,mu=!1;function hu(){if(mu||typeof document>"u")return;mu=!0,document.addEventListener("keydown",t=>{t.metaKey||t.ctrlKey||t.altKey||(Do="keyboard")},!0);const e=()=>{Do="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}hu();function or(){return hu(),Do==="keyboard"}const sr=20;function Iy(e){const{t}=_e.useTranslation(),{type:a,trainingDatas:r,depth:s,renderPopup:i,completedIds:l,selectedIds:u,onItemComplete:c,size:d,useDescriptionTooltip:m,onRemove:p,onMore:f,sectionType:y="page"}=e||{},[,v]=o.useState(0),C=typeof r<"u"?Array.isArray(r)?r:[]:[],b=C.length,[_,h]=o.useState(Math.min(b,sr)),w=o.useMemo(()=>Array.isArray(s)?[...s,a?.label].filter(Boolean).join(" \xB7 "):[s||"",a?.label].filter(Boolean).join(" \xB7 "),[s,a?.label]);o.useEffect(()=>{h(Math.min(b,sr))},[b]),sl("speechear.data.updated",()=>v(N=>N+1));const g=o.useRef(null),B=o.useRef(null);function x(){const N=document.activeElement;B.current=or()&&N&&N.closest?.(".training-block__more")?_:null,h(k=>Math.min(b,k+sr))}return o.useEffect(()=>{const N=B.current;if(N==null)return;B.current=null;const k=document.activeElement;k&&k!==document.body||g.current?.querySelectorAll(".training-block-button")[N]?.focus()},[_]),n.jsxs(la,{type:y,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[n.jsx("div",{className:"training-list",ref:g,children:(C||[]).slice(0,_).map((N,k)=>{const A=N;return n.jsx(ho,{index:k,type:a,trainingData:A,depth:w,renderPopup:i,completedIds:l,selectedIds:u,size:d,useDescriptionTooltip:m,onRemove:typeof p=="function"&&u!=null&&A?.id!=null&&u.has(String(A.id))?()=>p(A):void 0,onComplete:typeof c=="function"&&A?.id!=null?()=>c(String(A.id)):void 0,onMore:typeof f=="function"?S=>f(A,S):void 0},A?.id!=null?`${a?.key||"t"}-${String(A.id)}`:`${a?.key||"t"}-${k}`)})}),b>sr&&_<b&&n.jsx("div",{className:"training-block__more",children:n.jsx(me,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:x,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function Eo(e){const t=o.useRef(null),[a,r]=o.useState(!!e),[s,i]=o.useState(!1);o.useEffect(()=>{i(!1);const c=t.current;r(!!e&&!(c?.complete&&c.naturalWidth>0))},[e]);const l=o.useCallback(()=>r(!1),[]),u=o.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:t,loading:a,failed:s,hasImage:!!e&&!s,onLoad:l,onError:u}}var Oy='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2256_7437)">%0A<g opacity="0.1">%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23111111"/>%0A</g>%0A<path d="M57.1426 17.8571H35.7141C25.8533 17.8571 17.8569 25.8536 17.8569 35.7143V44.0643L10.9926 51.6179C10.5819 52.0679 10.6283 52.775 11.0998 53.1643C13.1783 54.8929 15.4641 56.2214 17.8569 57.1679C17.8676 63.925 21.6283 69.8 27.1712 72.825C25.7855 70.2893 24.9998 67.3786 24.9998 64.2821V35.7107C24.9998 29.7929 29.7962 24.9964 35.7141 24.9964H64.2855C67.3783 24.9964 70.2891 25.7857 72.8283 27.1679C69.7998 21.6179 63.9105 17.8536 57.1426 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M72.8285 27.1714C74.2142 29.7072 75 32.6179 75 35.7143V64.2857C75 70.2036 70.2035 75 64.2857 75H35.7142C32.6214 75 29.7107 74.2107 27.1714 72.8286C30.2 78.3786 36.0892 82.1429 42.8571 82.1429H58.9678C59.9321 82.1429 60.7142 82.925 60.7142 83.8893C60.7142 84.9107 61.5892 85.7215 62.6071 85.6322C73.5535 84.675 82.1428 75.4822 82.1428 64.2857V42.8572C82.1428 36.0893 78.3785 30.2 72.8285 27.1714Z" fill="%23111111"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="%23111111"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2323 35.6679 46.2859 35.8464 45.4073 36.2679C44.518 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2037 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2256_7437">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Hy=Oy,So=o.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:r=!1,selected:s=!1,onSelect:i,flipDelay:l=0,hideLabel:u=!1,hideAudio:c=!1,orderRank:d=null},m){const{t:p}=_e.useTranslation(),f=e.word||e.title||"",y=t||!f,v=e.audio??e.sound??e.audioKey,C=e.subLabel||e.pronunciation||"",b=e.colloquialLabel||"",[_,h]=o.useState({label:f,subLabel:C,colloquialLabel:b,homonum:e.homonum});f&&(_.label!==f||_.subLabel!==C||_.colloquialLabel!==b||!Object.is(_.homonum,e.homonum))&&h({label:f,subLabel:C,colloquialLabel:b,homonum:e.homonum});const w=o.useRef(null),g=rn("(max-width: 767px)"),[B,x]=o.useState(!1),N=`${typeof v=="string"?v:v?.src??""}\0${f}`,[k,A]=o.useState({for:"",url:""}),S=k.for===N?k.url:"",E=ui(),H=e.textOnly??(!e.image&&!!_.label&&!!E&&E.entries.length>0&&!E.byWord.has(_.label)),$=H?"":Qn()?.(_.label,_.homonum)??e.image??"",{imgRef:K,loading:L,hasImage:j,onLoad:O,onError:U}=Eo($);o.useEffect(()=>{let F=!1;return(async()=>{if(v){if(typeof v=="string"){if(v.startsWith("http")||v.includes("/")){A({for:N,url:v});return}}else if(typeof v=="object"&&!Array.isArray(v)){const Z=v.src;if(Z){A({for:N,url:Z});return}}}const I=$r();if(I&&f)try{const Z=await Promise.resolve(I(f));!F&&Z&&A({for:N,url:Z})}catch{}})(),()=>{F=!0}},[v,f,N]);const te=o.useRef(!0),z=o.useRef(null);o.useEffect(()=>(te.current=!0,()=>{te.current=!1,z.current&&tr(z.current),z.current=null;try{w.current?.pause()}catch{}w.current=null}),[]);const q=o.useCallback(()=>new Promise(F=>{if(typeof window<"u"&&window.speechSynthesis&&f){x(!0),window.speechSynthesis.cancel();const I=new SpeechSynthesisUtterance(f);I.lang="ko-KR",I.onend=()=>{x(!1);try{a?.()}catch{}F()},I.onerror=()=>{x(!1),F()},window.speechSynthesis.speak(I)}else F()}),[f,a]),R=o.useCallback(F=>{const I=mo(F,Z=>{if(x(!1),Z)try{a?.()}catch{}});return w.current=I.el,I.done},[a]),W=o.useCallback(async()=>{if(t||!te.current)return;const F=()=>{z.current===F&&(z.current=null);try{w.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1)},I=er(F);z.current=F;try{window.speechSynthesis?.cancel()}catch{}try{if(S&&(x(!0),await R(S)))return;const Z=dC();if(Z&&f)try{const J=await Promise.resolve(Z(f));if(!te.current||z.current!==F||J&&(x(!0),await R(J)))return}catch{}if(!te.current||z.current!==F)return;await q()}finally{I(),z.current===F&&(z.current=null)}},[t,S,f,R,q]);o.useImperativeHandle(m,()=>({play:()=>W()}),[W]);const D=F=>F.stopPropagation(),P=o.useCallback(F=>{if(F.stopPropagation(),!t){if(B){try{w.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1);return}W()}},[t,B,W]),M=Ae("training-word-card",t?"training-word-card--disabled":"",y?"training-word-card--flipped":"",r?"training-word-card--selectable":"",s?"training-word-card--selected":"");return n.jsx("div",{className:M,onClick:r&&!t?i:void 0,role:r?"button":void 0,"aria-pressed":r?s:void 0,tabIndex:r&&!t?0:void 0,"aria-disabled":r&&t?!0:void 0,onKeyDown:r&&!t?F=>{F.target===F.currentTarget&&(F.key==="Enter"||F.key===" "||F.key==="Spacebar")&&(F.preventDefault(),i?.())}:void 0,children:n.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:y?"0ms":`${l}ms`},children:[n.jsxs("div",{className:"training-word-card__front",children:[s&&n.jsx("div",{className:"training-word-card__selected-badge",onClick:D,children:n.jsx(wt,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?p("training.nthSelected",{n:d}):p("training.selected","\uC120\uD0DD\uB428")})}),n.jsx("div",{className:"training-word-card__image-wrap",children:H?n.jsx("div",{className:"training-word-card__text-face",children:_.label}):j?n.jsxs(n.Fragment,{children:[L&&n.jsx("div",{className:"training-word-card__spinner"}),n.jsx("img",{ref:K,className:"training-word-card__image",src:$,alt:_.label||p("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:L?0:1},onLoad:O,onError:U})]}):n.jsx("div",{className:"training-word-card__placeholder"})}),!u&&n.jsxs("div",{className:"training-word-card__body",children:[!H&&n.jsx("div",{className:"training-word-card__word",children:_.label}),_.subLabel&&n.jsxs("div",{className:"training-word-card__pronunciation",children:["[",_.subLabel,"]"]}),_.colloquialLabel&&n.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",_.colloquialLabel,"]"]})]}),!c&&n.jsx("div",{className:"training-word-card__bottom",onClick:r?D:void 0,children:n.jsx(me,{htmlType:"button",size:g?40:48,type:g?"dot":"bar",icon:B?"pause":"play",label:g?void 0:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:B,onClick:P,disabled:t,ariaLabel:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),n.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:n.jsx("img",{src:Hy,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),zy=260;function $n(e){const{t}=_e.useTranslation(),{title:a,subtitle:r,headerActions:s,headerSegment:i,children:l,buttons:u,footer:c,footerStart:d,footerEnd:m,footerClassName:p="",footerLayout:f="center",onClose:y,closeDisabled:v=!1,beforeClose:C,closeOnBackdrop:b=!0,className:_="",ariaLabel:h,useTitle:w=!0,inline:g=!1,size:B,layer:x="modal",height:N,fillBody:k=!1,resetScrollKey:A}=e||{},[S,E]=o.useState(!1),H=o.useRef(!1),$=o.useRef(null),K=o.useId(),L=o.useRef(null);o.useEffect(()=>{},[g,a,h,_]),o.useEffect(()=>{A!==void 0&&L.current&&(L.current.scrollTop=0)},[A]);const[j,O]=o.useState(!1);o.useEffect(()=>{const Y=L.current;if(!Y)return;const ne=()=>O(Y.scrollHeight>Y.clientHeight+1);if(ne(),typeof ResizeObserver>"u")return;const ie=new ResizeObserver(ne);ie.observe(Y);const ue=Y.firstElementChild;return ue&&ie.observe(ue),()=>ie.disconnect()},[l,A]),o.useEffect(()=>{if(!g)return Hl()},[g]),o.useEffect(()=>{if(g)return;const Y=document.activeElement,ne=$.current;return Yr(ne,Y),ne&&!ne.contains(document.activeElement)&&(ne.querySelector(Cn)??ne).focus(),()=>{const ie=document.activeElement;(!ie||ie===document.body||ne&&ne.contains(ie))&&Zr(Y)?.focus?.()}},[g]),Gr($,!g);const U=o.useRef(!0),te=Xr(),z=o.useRef(null);o.useEffect(()=>(U.current=!0,()=>{U.current=!1,z.current&&(clearTimeout(z.current),z.current=null)}),[]);const q=o.useCallback(()=>{!U.current||!H.current||(H.current=!1,E(!1))},[]),R=o.useCallback((Y,ne=!1)=>{if(ne&&!U.current||H.current)return;H.current=!0,E(!0);const ie=setTimeout(()=>{z.current===ie&&(z.current=null);let ue;try{ue=Y?Y():void 0}catch{q();return}ue&&typeof ue.then=="function"&&ue.then(()=>{setTimeout(q,120)},q)},te?0:zy);ne&&(z.current=ie)},[q,te]),W=o.useCallback(()=>{v||C&&C()===!1||R(y,!0)},[R,y,v,C]),D=o.useRef(W);o.useEffect(()=>{D.current=W});const P=!g&&!!y;o.useEffect(()=>{if(P)return Vn(()=>D.current())},[P]);const M=P&&b,F=o.useRef(!1),I=Y=>{F.current=Y.target===Y.currentTarget},Z=Y=>{const ne=F.current;F.current=!1,ne&&Y.target===Y.currentTarget&&W()},J=n.jsx("div",{className:`popup ${g?"popup--inline":""} ${x==="belowPagePopup"?"popup--below-page-popup":""} ${S?"popup--closing":""} ${_}`,onPointerDown:M?I:void 0,onClick:M?Z:void 0,onMouseDown:g?void 0:Y=>{Y.target===Y.currentTarget&&Y.preventDefault()},children:n.jsxs("div",{ref:$,className:`popup-panel${B?` popup-panel--${B}`:""}${N!=null?" popup-panel--has-height":""}${k?" popup-panel--fill-body":""}`,style:N!=null?{"--popup-height":typeof N=="number"?`${N}px`:N}:void 0,tabIndex:-1,role:g?void 0:"dialog","aria-modal":g?void 0:!0,"aria-labelledby":!g&&w&&a?K:void 0,"aria-label":!g&&!(w&&a)?h??(typeof a=="string"?a:void 0):void 0,children:[!w&&(s||y)?n.jsxs("div",{className:"popup-close-float",children:[s,y&&n.jsx(me,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:W,disabled:v,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||s||y?n.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[n.jsxs("div",{className:"popup-header-main",children:[a?n.jsx("h2",{id:K,className:"popup-title popup-title--left h2",children:a}):n.jsx("span",{id:K,className:"popup-title popup-title--left h2"}),r&&n.jsx("span",{className:"popup-subtitle body-3",children:r})]}),i&&n.jsx("div",{className:"popup-header-segment",children:n.jsx(Bn,{size:40,ariaLabel:i.ariaLabel,options:i.options.map(Y=>({key:Y.key,label:Y.label,disabled:Y.disabled})),value:i.value,onChange:i.onChange})}),n.jsxs("div",{className:"popup-header-actions",children:[s,y&&n.jsx(me,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:W,disabled:v,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,n.jsx("div",{className:"popup-content",ref:L,tabIndex:j?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof l=="function"?l({animateThen:R,closeWithAnimation:W}):l})}),d||m?n.jsxs("div",{className:`popup-footer popup-footer--bar${p?` ${p}`:""}`,children:[n.jsx("div",{className:"popup-footer__start",children:typeof d=="function"?d({animateThen:R,closeWithAnimation:W}):d}),n.jsx("div",{className:"popup-footer__end",children:typeof m=="function"?m({animateThen:R,closeWithAnimation:W}):m})]}):u?.length?n.jsx("div",{className:`popup-footer popup-footer--buttons${f!=="center"?` popup-footer--${f}`:""}`,children:u.map((Y,ne)=>n.jsx(me,{htmlType:"button",size:48,variant:Y.variant??"default",label:Y.label,disabled:Y.disabled,onClick:()=>Y.onClick?.({animateThen:R,closeWithAnimation:W})},ne))}):c?n.jsx("div",{className:`popup-footer${f!=="center"?` popup-footer--${f}`:""}${p?` ${p}`:""}`,children:typeof c=="function"?c({animateThen:R,closeWithAnimation:W}):c}):null]})});return g||typeof document>"u"?J:en.createPortal(J,document.body)}function ir(e){return String(e)}const lr=["o","triangle","x"];function Cu(e,t){return e===t?null:t}const fu={o:"circle",triangle:"triangle",x:"x"},gu={o:"main",triangle:"warn",x:"danger"};function Vy(e){let t=0,a=0,r=0;for(const i of Object.values(e))i==="o"?t++:i==="triangle"?a++:i==="x"&&r++;const s=t+a+r;return{marked:s,o:t,triangle:a,x:r,rate:s===0?null:(t+a*.5)/s}}function jo(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function bu(e){const t=[];let a=0;for(const r of e)t.push(a),a+=r;return t}function Wy(e,t){return!t&&e>0}const ua={landscape:{width:1123,height:794,printSize:"A4 landscape",printW:"297mm",printH:"210mm"},portrait:{width:794,height:1123,printSize:"A4 portrait",printW:"210mm",printH:"297mm"}};function qy(e="landscape"){Gt("print-word-table-deprecated","[printWordTable] @deprecated \u2014 WordTablePopup renderButtons \uC758 print(\uB610\uB294 useWordTablePrint().print)\uB97C \uC4F0\uC138\uC694. \uC804\uC5ED \uC778\uC1C4\uB294 \uD654\uBA74\uC758 \uBAA8\uB4E0 \uB2E8\uC5B4\uD45C\uB97C \uD568\uAED8 \uCC0D\uC2B5\uB2C8\uB2E4.");const{printSize:t,printW:a,printH:r}=ua[e],s=document.createElement("style");s.textContent=`@page { size: ${t}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(s);const i=()=>{document.head.removeChild(s),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function yu(e,t){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(t)),r=[];for(let s=0;s<e.length;s+=a)r.push(e.slice(s,s+a));return r}const Uy={landscape:{1:{cols:1,rows:1},2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:3,rows:2},6:{cols:3,rows:2},7:{cols:4,rows:2},8:{cols:4,rows:2},9:{cols:5,rows:2},10:{cols:5,rows:2},11:{cols:4,rows:3},12:{cols:4,rows:3}},portrait:{1:{cols:1,rows:1},2:{cols:1,rows:2},3:{cols:1,rows:3},4:{cols:1,rows:4},5:{cols:1,rows:5},6:{cols:2,rows:3},7:{cols:2,rows:4},8:{cols:2,rows:4},9:{cols:2,rows:5},10:{cols:2,rows:5},11:{cols:3,rows:4},12:{cols:3,rows:4}}};function Gy(e,t){const a=Uy[e][t];if(a)return a;const r=Math.max(1,Math.ceil(t)),s=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,l;return e==="landscape"?(l=s,i=Math.ceil(r/l)):(i=s,l=Math.ceil(r/i)),(e==="landscape"?i<l:l<i)&&([i,l]=[l,i]),{cols:i,rows:l}}const Ky={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},vu={\uBA85:"\uBA85\uC0AC",\uB3D9:"\uB3D9\uC0AC",\uD615:"\uD615\uC6A9\uC0AC",\uBD80:"\uBD80\uC0AC",\uC218:"\uC218\uC0AC",\uAD00:"\uAD00\uD615\uC0AC",\uAC10:"\uAC10\uD0C4\uC0AC",\uC870:"\uC870\uC0AC",\uC811:"\uC811\uC0AC",\uC758:"\uC758\uC874\uBA85\uC0AC",\uB300:"\uB300\uBA85\uC0AC",\uBCF4\uB3D9:"\uBCF4\uC870\uB3D9\uC0AC",\uBCF4\uD615:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},xu={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function To(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function _u(e,t,a,r){if(r!=="\uC810\uC120")return{};const s=e%t,i=Math.floor(e/t),l=s<t-1,u=i<a-1;if(!l&&!u)return{};const c="#ddd",d=y=>`repeating-linear-gradient(to ${y}, ${c} 0, ${c} 5px, transparent 5px, transparent 10px)`,m=[],p=[],f=[];return l&&(m.push(d("bottom")),p.push("1px 100%"),f.push("right center")),u&&(m.push(d("right")),p.push("100% 1px"),f.push("center bottom")),{backgroundImage:m.join(", "),backgroundSize:p.join(", "),backgroundPosition:f.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const Yy=280,Zy=240,Xy=280,Jy=400,Qy=120,e5=280;function wu(e,t){const a=o.useRef(null),[r,s]=o.useState(1),[i,l]=o.useState(0),u=o.useCallback((c,d)=>{if(!(c>0))return;const m=c/e,p=t&&d>0?d/t:1/0,f=Math.min(1,m,p);s(f),l(Math.max(0,(c-e*f)/2))},[e,t]);return o.useEffect(()=>{const c=a.current;if(!c)return;const d=t?c.parentElement??c:c;if(u(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const m=new ResizeObserver(([p])=>u(p.contentRect.width,p.contentRect.height));return m.observe(d),()=>m.disconnect()},[u,t]),{scalerRef:a,scale:r,offset:i}}const t5={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},n5=400,Bu=8;function Au({label:e,subLabel:t,colloquialLabel:a,homonum:r,showWord:s=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:u=!0,buttonSize:c=40,wordInfo:d}){const{t:m}=_e.useTranslation(),p=o.useRef(null),f=o.useRef(null),y=o.useRef(null),[v,C]=o.useState(1),[b,_]=o.useState(!1),[h,w]=o.useState({for:"",url:""}),[g,B]=o.useState(null),x=t&&t.length>0?t:mC()?.(e,r)??"",N=Qn()?.(e,r)??"",{imgRef:k,loading:A,failed:S,onLoad:E,onError:H}=Eo(N),$=o.useCallback(()=>B(f.current?.getBoundingClientRect()??null),[]),K=o.useCallback(()=>B(null),[]),L=Qr(!!g,P=>{P?$():K()},f),j=o.useMemo(()=>{if(!d)return null;const P=[];return d.grade&&P.push(m("wordTable.info.grade",{n:d.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),d.syllables&&P.push(m("wordTable.info.syllables",{n:d.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),d.pos&&P.push(m("wordTable.info.pos",{v:To(d.pos,a5(m)),defaultValue:"\uD488\uC0AC: {{v}}"})),d.wordType&&P.push(m("wordTable.info.wordType",{v:To(d.wordType,r5(m)),defaultValue:"\uC720\uD615: {{v}}"})),P.length?P:null},[d,m]),O=x||e,U=h.for===O?h.url:"";o.useEffect(()=>{const P=$r(),M=x||e;if(!P||!M)return;let F=!1;return Promise.resolve(P(M)).then(I=>{!F&&I&&w({for:M,url:I})}),()=>{F=!0}},[x,e]);const te=o.useRef(null),z=o.useRef(null);o.useEffect(()=>()=>{y.current?.pause(),z.current?.()},[]);const q=o.useCallback(P=>{if(P.stopPropagation(),b){te.current?.();return}if(!U)return;_(!0);const M=mo(U,()=>{_(!1),z.current?.()});y.current=M.el,te.current=M.stop,z.current=er(M.stop)},[b,U]),R=i&&!!N&&!S,W=R&&s?Yy:R?Xy:Zy,D=R&&s?Jy:R?e5:Qy;return o.useEffect(()=>{const P=p.current;if(!P||typeof ResizeObserver>"u")return;const M=new ResizeObserver(([F])=>{const{width:I,height:Z}=F.contentRect;C(Math.min(I/W,Z/D))});return M.observe(P),()=>M.disconnect()},[W,D]),n.jsxs("div",{ref:p,className:Ae("word-table-cell",R?"word-table-cell--with-image":""),"data-ref-w":W,"data-ref-h":D,children:[n.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${v})`},children:[R&&n.jsxs("div",{className:"word-table-cell__image-wrap",children:[A&&n.jsx("div",{className:"word-table-cell__spinner"}),n.jsx("img",{ref:k,className:"word-table-cell__image",src:N,alt:e,draggable:!1,style:{opacity:A?0:1},onLoad:E,onError:H})]}),s&&n.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&x&&n.jsxs("span",{className:"word-table-cell__sub h3",children:["[",x,"]"]}),u&&a&&n.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),n.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":U,children:[n.jsx("span",{"data-play-state":"play",style:{display:b?"none":void 0},children:n.jsx(me,{htmlType:"button",size:c,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:m("common.play","\uC7AC\uC0DD"),ariaLabel:e?m("common.playFor",{name:e,defaultValue:`${e} \uC7AC\uC0DD`}):m("common.play","\uC7AC\uC0DD"),onClick:q})}),n.jsx("span",{"data-play-state":"pause",style:{display:b?void 0:"none"},children:n.jsx(me,{htmlType:"button",size:c,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:m("common.pause","\uBA48\uCDA4"),ariaLabel:e?m("common.pauseFor",{name:e,defaultValue:`${e} \uBA48\uCDA4`}):m("common.pause","\uBA48\uCDA4"),onClick:q})})]}),d&&n.jsxs("div",{ref:f,className:"word-table-cell__info-button",onPointerEnter:P=>{aa(P)||$()},onPointerLeave:P=>{aa(P)||K()},onFocus:()=>{ra()||$()},onBlur:K,children:[n.jsx(me,{htmlType:"button",size:c,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:m("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:P=>{P.stopPropagation(),L.touchPress()}}),g&&j&&n.jsx(Wn,{anchorRect:g,items:j,showIndex:!1})]})]})}const ku={\uBA85:"noun",\uB3D9:"verb",\uD615:"adjective",\uBD80:"adverb",\uC218:"numeral",\uAD00:"determiner",\uAC10:"interjection",\uC870:"particle",\uC811:"affix",\uC758:"dependentNoun",\uB300:"pronoun",\uBCF4\uB3D9:"auxVerb",\uBCF4\uD615:"auxAdjective"},Nu={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function a5(e){return Object.fromEntries(Object.entries(vu).map(([t,a])=>[t,ku[t]?e(`wordTable.pos.${ku[t]}`,{defaultValue:a}):a]))}function r5(e){return Object.fromEntries(Object.entries(xu).map(([t,a])=>[t,Nu[t]?e(`wordSearch.filter.type.${Nu[t]}`,{defaultValue:a}):a]))}function ca({title:e,titleIcon:t,disc:a,className:r,orientation:s="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:u=!0,showDivLine:c=!0,items:d,editCells:m,count:p,activeCell:f=null,onActivateCell:y,onRemoveCell:v,onRemoveItem:C,onReorder:b,renderCellAction:_,showFillerAdd:h=!1,contentRef:w,buttonSize:g=40,brand:B,code:x,pageNumber:N,pageNumberPosition:k="right",fitHeight:A=!1,scoring:S=!1,marks:E,onMarkClick:H,scoreIndexOffset:$=0}){const K=o.useCallback((X,le)=>{H?.($+X,le)},[H,$]),L=(X,le)=>{const we=E?.[ir($+X)]??null;return n.jsx("div",{className:Ae("word-table-cell__score",we?"word-table-cell__score--marked":""),style:He>1?{transform:`translateX(-50%) scale(${He})`,transformOrigin:"bottom center"}:void 0,children:lr.map(Ne=>n.jsx("span",{className:Ae("word-table-cell__score-slot",we===Ne?"word-table-cell__score-slot--on":""),children:n.jsx(me,{htmlType:"button",size:g,type:"dot",shape:"pill",icon:fu[Ne],variant:we===Ne?gu[Ne]:"default",selected:we===Ne,useBorder:!1,...ke?{}:{tabIndex:-1,role:"img"},showTooltipInfo:j(`wordTable.scoring.markName.${Ne}`,{defaultValue:Ne}),ariaLabel:j(`wordTable.scoring.${Ne}`,{word:le,defaultValue:`${le} ${Ne}`}),onClick:ke?Ve=>{Ve.stopPropagation(),K(X,Ne)}:void 0})},Ne))})},{t:j}=_e.useTranslation(),O=m!==void 0,U=e!=null||!!t||!!a,te=rn("(max-width: 767px)"),z=o.useRef(null),[q,R]=o.useState(null),W=d?.length??0,[D,P]=o.useState(null),[M,F]=o.useState(""),I=o.useRef(null),Z=o.useRef(null),J=o.useRef(null),Y=o.useRef(null),ne=o.useCallback(X=>{Z.current=X,typeof w=="function"?w(X):w&&(w.current=X)},[w]),ie=o.useCallback((X,le)=>{I.current=le,b?.(X,le),F(j("wordTable.reorder.moved",{n:le+1,total:W,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[b,j,W]);o.useEffect(()=>{const X=I.current;X!=null&&(I.current=null,Z.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler)")?.[X]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{Y.current?.()},[]);const ue=o.useCallback((X,le)=>{if(!b||!X.altKey||X.ctrlKey||X.metaKey)return;const we=X.key==="ArrowRight";if(!we&&X.key!=="ArrowLeft")return;X.preventDefault();const Ne=le+(we?1:-1);Ne<0||Ne>=W||ie(le,Ne)},[b,W,ie]),Se=o.useCallback((X,le)=>{if(!b||X.pointerType==="mouse")return;const we=X.target.closest?.("button");if(we&&!we.closest(".word-table-block__card-handle"))return;Y.current?.();const Ne={x:X.clientX,y:X.clientY};let Ve=!1;const et=Qe=>{Ve&&Qe.cancelable&&Qe.preventDefault()},pt=Qe=>{if(!Ve){(Math.abs(Qe.clientX-Ne.x)>Bu||Math.abs(Qe.clientY-Ne.y)>Bu)&&gt();return}const Ue=document.elementFromPoint?.(Qe.clientX,Qe.clientY)?.closest?.("[data-wordtable-cell]"),We=Ue?Number(Ue.dataset.wordtableCell):NaN,Ke=Number.isInteger(We)?We:null;J.current=Ke,R(Ke)},ut=()=>{const Qe=J.current,Ue=Ve;gt(),Ue&&Qe!=null&&Qe!==le&&ie(le,Qe)},ft=setTimeout(()=>{Ve=!0,P(le),J.current=le,R(le),window.addEventListener("touchmove",et,{passive:!1})},n5);function gt(){clearTimeout(ft),window.removeEventListener("pointermove",pt),window.removeEventListener("pointerup",ut),window.removeEventListener("pointercancel",ut),window.removeEventListener("touchmove",et),Ve=!1,J.current=null,Y.current=null,P(null),R(null)}Y.current=gt,window.addEventListener("pointermove",pt),window.addEventListener("pointerup",ut),window.addEventListener("pointercancel",ut)},[b,ie]),{width:V,height:oe}=ua[s],ge=typeof A=="number"?A:A&&typeof A=="object"?te?A.narrow:A.wide:null,{scalerRef:De,scale:fe,offset:ae}=wu(V,A?oe:void 0),de=O?m?.length??0:d?.length??0,pe=Math.max(p??de,1),{cols:he,rows:be}=Gy(s,pe),Pe={word:i.length===0||i.includes("\uB2E8\uC5B4"),image:i.length===0||i.includes("\uC774\uBBF8\uC9C0"),pron:i.length===0||i.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:i.length===0||i.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},$e=O?(m??[]).some(X=>X!==null&&X.length>1):(d??[]).some(X=>(X.words??[]).length>1),Ie=!!B?.show,Fe=!!B?.show&&B?.top!==!1,Oe=!!B?.show&&B?.bottom!==!1,dt=B?.copyright??"\xA9 IHAB, Inc. All rights reserved.",lt=Ae("word-table-block__content",Ky[l],u&&"word-table-block__content--outline",c&&$e&&"word-table-block__content--div-line",!Ie&&N&&k!=="none"&&"word-table-block__content--page-number",Fe&&"word-table-block__content--brand-top",Oe&&"word-table-block__content--brand-bottom"),ot={transform:`scale(${1/fe})`,transformOrigin:"center center"},ct=g*lr.length+4*(lr.length-1),ke=!!H,He=ke?Math.max(1,Math.min(1/fe,V/he/ct)):1,Be=n.jsxs("div",{ref:De,className:"word-table__scaler",style:{height:oe*fe},children:[n.jsx("div",{className:Ae("word-table",S&&!ke&&"word-table--score-readonly",!U&&r),style:{width:V,height:oe,transform:`scale(${fe})`,transformOrigin:"top left",marginLeft:ae},children:n.jsxs("div",{ref:ne,className:lt,style:{gridTemplateColumns:`repeat(${he}, 1fr)`,gridTemplateRows:`repeat(${be}, 1fr)`},children:[O?n.jsx(n.Fragment,{children:(m??[]).map((X,le)=>n.jsx("div",{className:Ae("word-table-block__edit-cell",X?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",f===le?"word-table-block__edit-cell--active":""),style:_u(le,he,be,l),children:X?n.jsxs(n.Fragment,{children:[X.map((we,Ne)=>n.jsxs(o.Fragment,{children:[Ne>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(Au,{label:we.word,subLabel:we.pronunciation,colloquialLabel:we.colloquialPronunciation,homonum:we.homonum,showWord:Pe.word,showImage:Pe.image,showPronunciation:Pe.pron,showColloquial:Pe.colloq,buttonSize:g})]},Ne)),S&&L(le,X.map(we=>we.word).join(" / ")),v&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(me,{htmlType:"button",size:g,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:X.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:X.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>v(le)})})]}):y&&n.jsx("div",{style:ot,children:n.jsx(me,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:j("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>y(le)})})},le))}):n.jsxs(n.Fragment,{children:[(d??[]).map((X,le)=>n.jsxs("div",{"data-wordtable-cell":b?le:void 0,className:`word-table-block__card${b?" word-table-block__card--draggable":""}${q===le?" word-table-block__card--drag-over":""}${D===le?" word-table-block__card--dragging":""}`,style:_u(le,he,be,l),draggable:!!b,onPointerDown:b?we=>Se(we,le):void 0,onKeyDown:b?we=>ue(we,le):void 0,onDragStart:b?()=>{z.current=le}:void 0,onDragOver:b?we=>{we.preventDefault(),R(le)}:void 0,onDragLeave:b?()=>R(null):void 0,onDrop:b?we=>{we.preventDefault(),z.current!==null&&z.current!==le&&b(z.current,le),z.current=null,R(null)}:void 0,onDragEnd:b?()=>{z.current=null,R(null)}:void 0,children:[(X.words??[]).map((we,Ne)=>n.jsxs(o.Fragment,{children:[Ne>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(Au,{label:we.label,subLabel:we.subLabel,colloquialLabel:we.colloquialLabel,homonum:we.homonum,showWord:Pe.word,showImage:Pe.image,showPronunciation:Pe.pron,showColloquial:Pe.colloq,buttonSize:g,wordInfo:we.grade||we.syllables!=null||we.pos||we.wordType?{grade:we.grade,syllables:we.syllables,pos:we.pos,wordType:we.wordType}:void 0})]},Ne)),S&&L(le,(X.words??[]).map(we=>we.label).join(" / ")),b&&n.jsx("div",{className:"word-table-block__card-handle",children:n.jsx(me,{htmlType:"button",size:g,type:"dot",icon:"grip-vertical",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:j("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:j("wordTable.reorder.handle",{word:(X.words??[]).map(we=>we.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})}),(_||C)&&n.jsxs("div",{className:"word-table-block__card-actions",children:[_?.(le,X),C&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(me,{htmlType:"button",size:g,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(X.words??[]).length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(X.words??[]).length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>C(X.id)})})]})]},X.id)),Array.from({length:Math.max(0,he*be-(d?.length??0))}).map((X,le)=>{const we=(d?.length??0)+le<pe;return n.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:h&&y&&we&&n.jsx("div",{style:ot,children:n.jsx(me,{htmlType:"button",size:g,type:"bar",icon:"plus",label:j("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>y((d?.length??0)+le)})})},`filler-${le}`)})]}),Fe&&n.jsx(n.Fragment,{children:n.jsxs("div",{className:"word-table__band word-table__band--top",children:[n.jsx("img",{className:"word-table__brand-logo",src:B?.topLogo?.src??Qa,alt:B?.topLogo?.alt??"\uB9D0\uADC0"}),(()=>{const X=[B?.title&&n.jsx("span",{className:"word-table__paper-title",children:B.title},"t"),B?.owner&&n.jsx("span",{className:"word-table__owner",children:B.owner},"o"),x&&n.jsx("span",{className:"word-table__code",children:x},"c")].filter(Boolean);return X.length===0?null:n.jsx("span",{className:"word-table__ident",children:X.map((le,we)=>n.jsxs(o.Fragment,{children:[we>0&&n.jsx("span",{className:"word-table__ident-dot","aria-hidden":"true",children:"\xB7"}),le]},we))})})()]})}),Oe&&n.jsx(n.Fragment,{children:n.jsxs("div",{className:"word-table__band word-table__band--bottom",children:[n.jsxs("span",{className:"word-table__brand-by",children:[B?.bottomLogo?n.jsx("img",{className:"word-table__brand-logo--ihab word-table__brand-logo--given",src:B.bottomLogo.src,alt:B.bottomLogo.alt}):n.jsx("span",{className:"word-table__brand-logo--ihab",role:"img","aria-label":"IHAB"}),n.jsx("span",{className:"word-table__copyright",children:dt})]}),n.jsxs("span",{className:"word-table__band-end",children:[B?.link&&n.jsx("span",{className:"word-table__link",children:B.link}),N&&k!=="none"&&n.jsx("span",{className:"word-table__page-count",children:j("wordTable.filter.pageIndicator",{current:N.current,total:N.total})})]})]})}),!Ie&&N&&k!=="none"&&n.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${k}`,children:j("wordTable.filter.pageIndicator",{current:N.current,total:N.total})})]})}),b&&n.jsx("span",{role:"status",style:t5,children:M})]}),Xe=ge==null?Be:n.jsx("div",{className:"word-table__frame",style:{height:ge},children:Be});return U?n.jsx(la,{type:"page",icon:t,title:e,disc:a,className:Ae("word-table-block",r),children:Xe}):Xe}function o5(e,t,a){const r=[];for(const s of e??[]){if(s.type==="note"||s.type==="input")continue;const i=s.displayLabel??s.label,l=s5(s,t?.[s.label],a);l!==null&&r.push(`${i} ${l}`)}return r.join(" \xB7 ")}function s5(e,t,a){const r=(Array.isArray(t)?t:t===void 0?[]:[t]).filter(s=>s!==cn);return r.length===0?e.allOption?e.allLabel??a:null:r.map(s=>i5(e,s)).join(", ")}function i5(e,t){const a=[...e.items??[],...(e.groups??[]).flat()];for(const r of a)if(r!=null){if(typeof r=="string"){if(r===t)return r;continue}if(r.value===t)return r.displayLabel??r.labels?.join(" ")??r.value}return t}function kn({title:e,titleLevel:t=2,headerAction:a,headerSummary:r,collapsible:s=!1,defaultCollapsed:i=!1,collapsed:l,onCollapsedChange:u,footer:c,sections:d,selected:m={},onSelect:p,align:f,sectionAlign:y,className:v}){const C=(f??(y==="vertical"?"newline":"inline"))==="inline",{t:b}=_e.useTranslation(),[_,h]=o.useState(i),w=l??_,g=()=>{const E=!w;h(E),u?.(E)},B=E=>{if(!s)return;const H=E.target;!H||typeof H.closest!="function"||H.closest(".filter-panel__collapse-toggle")||H.closest('button, a, input, select, textarea, label, [role="radiogroup"], [role="button"], [role="menu"]')||g()},x=o.useMemo(()=>r!==void 0||!w?"":o5(d,m,b("common.all","\uC804\uCCB4")),[r,w,d,m,b]),N=r??(x?n.jsx("span",{className:"filter-panel__header-summary body-3",children:x}):null),k=e||a||r||s,A=o.useId(),S=t?`h${t}`:"span";return n.jsxs("div",{className:Ae("filter-panel",s?"filter-panel--collapsible":"",w?"filter-panel--collapsed":"",v),role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?A:void 0,children:[k&&n.jsxs("div",{className:"filter-panel__header",onClick:s?B:void 0,children:[n.jsx("div",{className:"filter-panel__title-row",children:e&&n.jsx(S,{id:A,className:"filter-panel__title h4",children:e})}),n.jsxs("div",{className:"filter-panel__header-actions",children:[w?N:a,s&&n.jsx(me,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:w?"chevron-down":"chevron-up",className:"filter-panel__collapse-toggle",ariaLabel:w?b("common.expand","\uD3BC\uCE58\uAE30"):b("common.collapse","\uC811\uAE30"),showTooltipInfo:w?b("common.expand","\uD3BC\uCE58\uAE30"):b("common.collapse","\uC811\uAE30"),"aria-expanded":!w,onClick:g})]})]}),!w&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ae("filter-panel__sections",C?"filter-panel__sections--row":""),children:d.map(E=>{const H=m[E.label],$=H===void 0||(Array.isArray(H)?H.length===0:!1),K=(E.items??[]).filter(j=>j!=null);E.allOption&&K.some(j=>(typeof j=="string"?j:j.value)===cn)&&Gt(`filter-panel-all-value:${E.label}`,`[FilterPanel] '${E.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${cn}' \uC778 \uBCF4\uAE30\uAC00 \uD568\uAED8 \uC788\uB2E4 \u2014 \uB450 \uC120\uD0DD\uC774 \uAD6C\uBCC4\uB418\uC9C0 \uC54A\uB294\uB2E4. \uBCF4\uAE30 \uAC12\uC744 \uBC14\uAFD4\uB77C.`);const L=j=>{const O=typeof j=="string"?j:j.value,U=typeof j!="string"&&!!j.disabled,te=typeof j!="string"?j.labels:void 0,z=typeof j!="string"?j.displayLabel:void 0,q=typeof j!="string"?j.tooltip:void 0,R=typeof j!="string"?j.descriptionTooltip:void 0,W=typeof j!="string"?j.shape:void 0,D=Array.isArray(H)?H.includes(O):H===O;return n.jsx(me,{htmlType:"button",size:"keyboard",label:te??z??O,type:E.itemType??(te?"bar":O.length===1?"dot":void 0),selected:D,disabled:U,shape:W,showTooltipInfo:!!q,tooltipInfoText:q,tooltipDescription:R,onClick:()=>p?.(O,E.label)},O)};return n.jsxs(o.Fragment,{children:[E.groupLabel&&n.jsxs("div",{className:"filter-panel__group-label-row",children:[n.jsx("div",{className:"filter-panel__group-label body-2",children:E.groupLabel}),E.groupAction]}),n.jsxs("div",{className:Ae("filter-panel__section",E.layout==="row"?"filter-panel__section--row":"",E.block?"filter-panel__section--block":""),children:[n.jsxs("div",{className:"filter-panel__section-label-row",children:[n.jsx("span",{className:"filter-panel__section-label body-3",children:E.displayLabel??E.label}),E.labelAction??(E.labelInfo?n.jsx(ja,{...E.labelInfo}):null)]}),E.type==="note"?n.jsx("div",{className:"filter-panel__note body-3",children:E.content}):E.type==="input"?n.jsx(Gn,{className:"filter-panel__textfield",placeholder:E.placeholder,ariaLabel:E.displayLabel??E.label,value:m[E.label]??"",onChange:j=>p?.(j,E.label),error:E.error}):!E.multiple&&E.display==="segmented"?n.jsx(Bn,{ariaLabel:E.displayLabel??E.label,options:[...E.allOption?[{key:cn,label:E.allLabel??b("common.all","\uC804\uCCB4"),disabled:E.allOptionDisabled}]:[],...K.map(j=>{const O=typeof j=="string"?j:j.value,U=typeof j!="string"?j.displayLabel:void 0,te=typeof j!="string"?j.disabled:void 0;return{key:O,label:U??O,disabled:te}})],value:$&&E.allOption?cn:m[E.label]??"",onChange:j=>p?.(j,E.label),size:32}):!E.multiple&&E.display==="dropdown"?n.jsx(dn,{className:"filter-panel__dropdown",ariaLabel:typeof E.label=="string"?E.label:void 0,size:40,options:[...E.allOption?[{value:cn,label:E.allLabel??b("common.all","\uC804\uCCB4"),disabled:E.allOptionDisabled}]:[],...K.map(j=>{const O=typeof j=="string"?j:j.value,U=typeof j!="string"?j.displayLabel:void 0,te=typeof j!="string"?j.disabled:void 0;return{value:O,label:U??O,disabled:te}})],value:$&&E.allOption?cn:m[E.label],onChange:j=>p?.(j,E.label)}):n.jsxs("div",{className:E.groups?"filter-panel__item-groups":"filter-panel__items",children:[E.allOption&&!E.groups&&n.jsx(me,{htmlType:"button",size:"keyboard",label:E.allLabel??b("common.all","\uC804\uCCB4"),selected:$,disabled:E.allOptionDisabled,onClick:()=>p?.(cn,E.label)}),E.groups?E.groups.map((j,O)=>n.jsxs("div",{className:"filter-panel__item-group",children:[O===0&&E.allOption&&n.jsx(me,{htmlType:"button",size:"keyboard",label:E.allLabel??b("common.all","\uC804\uCCB4"),selected:$,disabled:E.allOptionDisabled,onClick:()=>p?.(cn,E.label)}),j.filter(U=>U!=null).map(L)]},O)):K.map(L)]})]})]},E.label)})}),c!=null&&c!==!1&&n.jsx("div",{className:"filter-panel__footer body-3",children:c})]})]})}const l5=[1,2,3,4,5,6,7,8,9,10,11,12],Du=[8,4,2,1];function Eu(e,t){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!t.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!t.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function Su(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"\uAC00\uB85C",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"\uC138\uB85C",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function ju(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Tu(e){return{label:e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Mu(e){return{label:e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Lu(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function $u(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Ru(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...Du.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function Pu(e,t){return e===t||!Du.includes(e)?Number.POSITIVE_INFINITY:e}function u5(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"\uC67C\uCABD",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"\uC911\uC559",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"\uC624\uB978\uCABD",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}const Fu={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Iu(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Ou(e,t){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:t.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:t.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:t.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:t.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:t.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",...t.showTopInfo!=null?{[e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")]:t.showTopInfo?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}:{},...t.showBottomInfo!=null?{[e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")]:t.showBottomInfo?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}:{}}}function Hu(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===cn?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(s=>s.includes(t)?s.filter(i=>i!==t):[...s,t]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(t==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(t),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")?(r.setShowTopInfo?.(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")?(r.setShowBottomInfo?.(t==="\uD45C\uC2DC"),!0):!1}function c5(e){return"sections"in e}function Mo(e){const{t}=_e.useTranslation(),{title:a,className:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c}=e,d={collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c};if(c5(e))return n.jsx(kn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,...d,align:"inline"});const{hasImage:m,hasColloquial:p,contentTypes:f,orientation:y,showOutline:v,cutLine:C,showDivLine:b,setters:_,showCutLine:h=!1,showDivLine2:w=!1,middleSections:g=[],extraSelected:B={},onExtraSelect:x,showPaperBands:N=!1,showTopInfo:k=!0,showBottomInfo:A=!0}=e,S=[Eu(t,{hasImage:m,hasColloquial:p}),Su(t),...g,ju(t),...h?[Lu(t)]:[],...w?[$u(t)]:[],...N?[Tu(t),Mu(t)]:[]],E={...Ou(t,{contentTypes:f,orientation:y,showOutline:v,cutLine:C,showDivLine:b,showTopInfo:k,showBottomInfo:A}),...B},H=($,K)=>{Hu(t,$,K,_)||x?.($,K)};return n.jsx(kn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:S,selected:E,onSelect:H,...d,sectionAlign:"horizontal"})}function zu(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Lo(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let ur=null,da=null;function d5(e,t,a,r="",s=""){if(e.length===0||da&&da.iframe.isConnected&&Date.now()-da.at<1e4)return;const i=r?Lo(r):"";ur?.();let l=null;if(i){const d=document.title;document.title=i,l=()=>{document.title=d,window.removeEventListener("afterprint",l),ur===l&&(ur=null)},ur=l,window.addEventListener("afterprint",l)}const u=document.createElement("iframe");u.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(u);const c=u.contentDocument;if(!c){u.remove();return}da={iframe:u,at:Date.now()},c.open(),c.write($o(e,t,a,!0,i,s)),c.close(),u.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{u.remove(),da?.iframe===u&&(da=null)},0)})}function $o(e,t,a,r=!1,s="",i=""){s=s?Lo(s):"";const l=Array.from(document.styleSheets).flatMap(m=>{try{return Array.from(m.cssRules).map(p=>p.cssText)}catch{return[]}}).join(`
857
+ `)}const Q4=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),ey=/^(?:const|let|var|function|return|if|else|for|while|switch|case|break|import|from|export|class|new|try|catch|finally|throw|await|async|null|true|false|this|typeof|instanceof)\b/;function ty(e,t){let a=e;const r=[],s=/^(?:sh|bash|zsh|shell|console)$/.test(t.toLowerCase()),i=(l,u)=>r.push({type:l,content:u});for(;a.length>0;){const l=a.match(/^\s+/);if(l){i("whitespace",l[0]),a=a.slice(l[0].length);continue}if(!s&&a.startsWith("//")){const x=a.indexOf(`
858
+ `),h=x===-1?a:a.slice(0,x);i("comment",h),a=a.slice(h.length);continue}if(s&&a.startsWith("#")){const x=a.indexOf(`
859
+ `),h=x===-1?a:a.slice(0,x);i("comment",h),a=a.slice(h.length);continue}const u=a.match(/^\/\*[\s\S]*?\*\//);if(u){i("comment",u[0]),a=a.slice(u[0].length);continue}const c=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(c){i("string",c[0]),a=a.slice(c[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){i("number",d[0]),a=a.slice(d[0].length);continue}const m=a.match(ey);if(m){i("keyword",m[0]),a=a.slice(m[0].length);continue}const p=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(p){const x=p[0];i(s&&Q4.has(x)?"command":"identifier",x),a=a.slice(x.length);continue}const f=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(f){i("operator",f[0]),a=a.slice(f[0].length);continue}const y=a.match(/^[()[\]{};.,]/);if(y){i("punctuation",y[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function ny({children:e,language:t="bash",title:a="",showCopy:r=!0,size:s="default",className:i=""}){const{t:l}=_e.useTranslation(),[u,c]=o.useState(!1),d=J4(ql(e)),m=o.useRef(null);o.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const p=async()=>{try{if(!await qC(d))return;c(!0),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>c(!1),2e3)}catch{}},f=ty(d,t),y=s==="small"?"caption-1":"body-3";return n.jsxs("div",{className:Ae("code-box",s==="small"?"code-box--small":"",i),children:[(a||r)&&n.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":l("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[n.jsx("div",{className:"code-box__title caption-1",children:a}),r&&n.jsx(me,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:u?"check":"copy",onClick:p,ariaLabel:u?l("common.copied","\uBCF5\uC0AC\uB428"):l("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),n.jsx("pre",{className:"code-box__inner","data-lang":t,children:n.jsx("code",{children:f.map((x,h)=>n.jsx("span",{className:`code-token ${x.type} ${y}`,children:x.content},h))})})]})}const ay={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function $a(e){const{t}=_e.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:i}=e||{},l=i||t("loader.loading","Loading");if(a==="bar"){const c=s==null||!Number.isFinite(Number(s)),d=c?0:Math.max(0,Math.min(100,Number(s)));return n.jsx("div",{className:`loader-bar${c?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c?void 0:d,"aria-label":l,children:n.jsx("div",{className:"loader-bar__inner",style:c?void 0:{width:`${d}%`}})})}const u=typeof r=="number"?`${r}px`:r;return n.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":l,children:[n.jsx("span",{style:ay,children:l}),n.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[n.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),n.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})]})}function Ul({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:s,labelPosition:i="right",className:l="",id:u}){const c=r&&n.jsx("span",{className:"toggle__label body-3",children:r});return n.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[i==="left"&&c,n.jsx("input",{id:u,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>t?.(d.target.checked),"aria-label":!r&&s?s:void 0}),n.jsx("span",{className:"toggle__slider"}),i==="right"&&c]})}function Gl({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:s,size:i="medium",className:l,title:u,ariaLabel:c}){const d=o.useRef(null),m=o.useId(),p=o.useRef(!!r);return p.current=!!r,o.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)}),n.jsxs("label",{className:Ae("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:m,title:u,children:[n.jsx("input",{ref:d,id:m,type:"checkbox",className:"checkbox__input",checked:e,onChange:f=>{t?.(f.target.checked),d.current&&(d.current.indeterminate=p.current)},disabled:a,"aria-label":!s&&c?c:void 0}),n.jsx("span",{className:"checkbox__box"}),s&&n.jsx("span",{className:"checkbox__label body-3",children:s})]})}function ry({count:e,actions:t,onClear:a,clearLabel:r,visible:s,content:i,max:l}){const{t:u}=_e.useTranslation(),c=s!==void 0?s:e>0,d=r??u("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),m=o.useRef(null),p=o.useRef(null),f=o.useRef(null),y=o.useRef(c);o.useLayoutEffect(()=>{const C=p.current,w=y.current;if(y.current=c,c&&!w){const b=typeof document<"u"?document.activeElement:null;f.current=b&&b!==document.body&&!C?.contains(b)?b:null}else!c&&w&&C&&C.contains(document.activeElement)&&Ya(C,f.current)},[c]);const[x,h]=o.useState(!1),g=o.useRef(!1),_=o.useRef(null);return o.useEffect(()=>{const C=m.current;if(!C)return;const w=N=>{g.current=N,h(N)},b=()=>{const N=C.firstElementChild??C,E=Array.from(N.children);if(E.length<2){w(!1);return}const D=E[0].offsetTop,H=E.some(I=>I.offsetTop!==D);if(!g.current){_.current=C.clientWidth,H&&w(!0);return}if(H)return;const R=E[0],G=E[E.length-1],L=G.offsetLeft+G.offsetWidth-R.offsetLeft,M=_.current;(M==null||L<=M)&&w(!1)};if(b(),typeof ResizeObserver>"u")return;const B=new ResizeObserver(b);B.observe(C);const v=C.parentElement;let k=v?.clientWidth??0;const A=new ResizeObserver(()=>{const N=v?.clientWidth??0;N!==k&&(k=N,_.current=null,b())});return v&&A.observe(v),()=>{B.disconnect(),A.disconnect()}},[i,e]),n.jsxs("div",{ref:p,className:`bulk-bar ${c?"bulk-bar--visible":""}`,inert:!c||void 0,"aria-hidden":c?void 0:!0,children:[n.jsx("span",{ref:m,className:"bulk-bar__count body-2",role:"status",children:i??n.jsx("b",{children:u("common.selectedCount",{count:e})})}),l!==void 0&&n.jsx(wt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`,"aria-label":u("common.selectedOfMax",{count:e,max:l,defaultValue:`\uCD5C\uB300 ${l}\uAC1C \uC911 ${e}\uAC1C`})}),n.jsxs("div",{className:`bulk-bar__actions${x?" bulk-bar__actions--stacked":""}`,children:[n.jsx(me,{htmlType:"button",size:40,label:d,onClick:a}),t.map((C,w)=>n.jsx(me,{htmlType:"button",size:40,variant:C.variant??"default",icon:C.icon,label:C.label,onClick:C.onClick},w))]})]})}const oy=[{\uC5F4\uC1E0:"edit",icon:"edit-2",\uB2EB\uACE0\uD560\uAE4C:!0},{\uC5F4\uC1E0:"duplicate",icon:"copy",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"publish",icon:"book-marked",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"copyLink",icon:"link",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"remove",icon:"trash-2",\uB2EB\uACE0\uD560\uAE4C:!0}];function sy(e){const{onClose:t,className:a}=e;return n.jsx("div",{className:Ae("item-actions",a),children:oy.map(({\uC5F4\uC1E0:r,icon:s,\uB2EB\uACE0\uD560\uAE4C:i})=>{const l=e[r];if(!l)return null;const u=r==="publish"?l.published?l.unpublish:l.publish:l;return n.jsx(me,{htmlType:"button",size:40,type:"dot",icon:s,ariaLabel:u.label,showTooltipInfo:u.label,onClick:()=>{i&&t(),u.onClick()}},r)})})}function Kl(e,t){const a=()=>{if(e){const[h,g]=e.split("-");return{y:+h,m:+g-1}}const[y,x]=Wr(t).split("-");return{y:+y,m:+x-1}},[r,s]=o.useState(()=>a().y),[i,l]=o.useState(()=>a().m),u=o.useRef(e);o.useEffect(()=>{if(e===u.current)return;u.current=e;const y=a();s(y.y),l(y.m)},[e]);const c=o.useRef({y:r,m:i});o.useEffect(()=>{c.current={y:r,m:i}},[r,i]);const d=o.useCallback(y=>{const x=c.current.y*12+c.current.m+y,h=Math.floor(x/12),g=x-h*12;c.current={y:h,m:g},s(h),l(g)},[]),m=o.useCallback(()=>d(-1),[d]),p=o.useCallback(()=>d(1),[d]),f=o.useCallback((y,x)=>{c.current={y,m:x},s(y),l(x)},[]);return{viewY:r,viewM:i,prevMonth:m,nextMonth:p,setViewYM:f}}function ar(e,t){return new Date(e,t+1,0).getDate()}function iy(e,t){return new Date(e,t,1).getDay()}function rr(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function ly(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function uy(e,t,a,r){const s=a?+a.split("-")[0]:e-10,i=r?+r.split("-")[0]:e+10,l=[];for(let u=s;u<=i;u++)for(let c=0;c<12;c++){const d=`${u}-${String(c+1).padStart(2,"0")}`;a&&d<a.slice(0,7)||r&&d>r.slice(0,7)||l.push({value:d,label:t(u,c+1)})}return l}function cy({value:e,onChange:t,size:a=48,min:r,max:s,disabled:i,placeholder:l,className:u,today:c}){const{t:d}=_e.useTranslation(),m=l??d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),p=o.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),f=Wr(c),{viewY:y,viewM:x,prevMonth:h,nextMonth:g,setViewYM:_}=Kl(e,c),C=o.useId(),w=o.useCallback((S,P)=>{const j=window.innerHeight,F=window.innerWidth,O=typeof document<"u"?document.getElementById(C):null,q=Math.max(O?.offsetHeight||0,O?.scrollHeight||0)||300,Q=Math.max(S.width,O?.offsetWidth||0,260),oe=j-S.bottom,se=S.top,te=oe<q&&se>oe,le=8,De=(V,ne)=>Math.min(Math.max(le,V),Math.max(le,ne));return{position:"fixed",left:De(S.left,F-Q-le),width:S.width,minWidth:260,...te?{top:"auto",bottom:De(j-S.top+6,j-q-le)}:{bottom:"auto",top:De(S.bottom+6,j-q-le)},zIndex:ka(P)}},[C]),{open:b,setOpen:B,toggle:v,style:k,triggerRef:A,menuRef:N}=Na({computeStyle:w,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!b)return;const S=N.current;return(S?.querySelector(".date-picker__day--selected:not(:disabled)")??S?.querySelector(".date-picker__day--today:not(:disabled)")??S?.querySelector(".date-picker__day:not(:disabled)")??S?.querySelector(Cn)??S)?.focus?.(),()=>{const P=document.activeElement;(!P||P===document.body)&&A.current?.focus?.()}},[b,N,A]);const[E,D]=o.useState(1),H=o.useRef(null),R=o.useRef(null);o.useEffect(()=>{if(!b)return;const S=e&&e.slice(0,7)===`${y}-${String(x+1).padStart(2,"0")}`?+e.slice(8):f.slice(0,7)===`${y}-${String(x+1).padStart(2,"0")}`?+f.slice(8):1;D(S)},[b]),o.useEffect(()=>{if(R.current==null)return;const S=R.current;R.current=null,H.current?.querySelector(`[data-day="${S}"]`)?.focus()}),o.useEffect(()=>{D(S=>Math.min(S,ar(y,x)))},[y,x]);const G=o.useCallback(S=>{let P=rr(S.getFullYear(),S.getMonth(),S.getDate());r&&P<r&&(P=r),s&&P>s&&(P=s);const[j,F,O]=P.split("-").map(Number);(j!==y||F-1!==x)&&_(j,F-1),D(O),R.current=O},[r,s,y,x,_]),L=o.useCallback(S=>{const P=new Date(y,x,E),j=O=>{P.setDate(P.getDate()+O),G(P)},F=O=>{const q=P.getFullYear()*12+P.getMonth()+O,Q=Math.floor(q/12),oe=q-Q*12;G(new Date(Q,oe,Math.min(P.getDate(),ar(Q,oe))))};switch(S.key){case"ArrowLeft":j(-1);break;case"ArrowRight":j(1);break;case"ArrowUp":j(-7);break;case"ArrowDown":j(7);break;case"Home":j(-P.getDay());break;case"End":j(6-P.getDay());break;case"PageUp":S.shiftKey?F(-12):F(-1);break;case"PageDown":S.shiftKey?F(12):F(1);break;default:return}S.preventDefault()},[y,x,E,G]),M=o.useCallback(S=>{i||(t(rr(y,x,S)),B(!1))},[y,x,t,B,i]);o.useEffect(()=>{i&&B(!1)},[i,B]);const I=S=>{const P=rr(y,x,S);return!!(r&&P<r||s&&P>s)},Y=(()=>{const S=ar(y,x);if(E>=1&&E<=S&&!I(E))return E;for(let P=1;P<=S;P++)if(!I(P))return P;return-1})(),Z=[];for(let S=0;S<iy(y,x);S++)Z.push(null);for(let S=1;S<=ar(y,x);S++)Z.push(S);const z=a===64?20:a===40?16:18,W=uy(y,(S,P)=>d("calendar.yearMonth",{year:S,month:P,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,s),$=`${y}-${String(x+1).padStart(2,"0")}`,U=b?en.createPortal(n.jsxs("div",{ref:N,id:C,className:"date-picker__dropdown",style:k,"data-tooltip-ignore":!0,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[n.jsxs("div",{className:"date-picker__nav",children:[n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:h,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(ms,{size:16,strokeWidth:2})}),n.jsx(dn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:W,value:$,onChange:S=>{const[P,j]=S.split("-");_(+P,+j-1)},block:!0,size:40}),n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:g,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(hs,{size:16,strokeWidth:2})})]}),n.jsxs("div",{className:"date-picker__grid",ref:H,onKeyDown:L,children:[p.map(S=>n.jsx("div",{className:"date-picker__dow caption-1",children:S},S)),Z.map((S,P)=>{if(S===null)return n.jsx("div",{},`e${P}`);const j=rr(y,x,S),F=j===e,O=j===f,q=I(S),Q=P%7;return n.jsx("button",{type:"button",disabled:q,"data-day":S,tabIndex:S===Y?0:-1,"aria-current":O?"date":void 0,onClick:()=>!q&&M(S),className:Ae("date-picker__day caption-1",F&&"date-picker__day--selected",O&&!F&&"date-picker__day--today",q&&"date-picker__day--disabled",Q===0&&"date-picker__day--sun",Q===6&&"date-picker__day--sat"),children:S},S)})]})]}),document.body):null;return n.jsxs("div",{className:Ae("date-picker",`date-picker--s${a}`,b&&"date-picker--open",u),children:[n.jsxs("button",{ref:A,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&v(),disabled:i,"aria-haspopup":"true","aria-expanded":b,children:[n.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?ly(e):m}),n.jsx(ws,{size:z,className:"date-picker__icon",strokeWidth:1.5})]}),U]})}function Yl({children:e,className:t}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useEffect(()=>{s(a.current?.parentElement??null)},[]),o.useEffect(()=>{const i=a.current;if(!i||!r)return;const l=()=>{const c=typeof window<"u"&&window.getComputedStyle(i).position==="absolute"?Math.ceil(i.getBoundingClientRect().width):0;c>0?r.style.setProperty("--section-head-float-w",`${c}px`):r.style.removeProperty("--section-head-float-w")};if(l(),typeof ResizeObserver>"u")return()=>{r.style.removeProperty("--section-head-float-w")};const u=new ResizeObserver(()=>l());return u.observe(i),u.observe(r),()=>{u.disconnect(),r.style.removeProperty("--section-head-float-w")}},[r,e]),n.jsx("div",{ref:a,className:Ae("section-head-float",t),children:e})}function bo({items:e,className:t}){return n.jsx("div",{className:t?`manager-bar-chart-legend ${t}`:"manager-bar-chart-legend",children:e.map((a,r)=>n.jsxs("span",{className:"manager-bar-chart-legend-item",children:[n.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function Ra({label:e,children:t}){return e?n.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[n.jsx("span",{className:"barchart-total__label body-3",children:e}),n.jsx("span",{className:"barchart-total__value",children:t})]}):n.jsx("div",{className:"barchart-total",children:t})}function yo({title:e,titleClassName:t="h3",titleLevel:a=3,icon:r,disc:s,headRight:i,headFloat:l,headSegment:u,headMenuItems:c,collapseBelow:d=420,onClick:m,ariaLabel:p,tooltip:f,totalNum:y,totalUnit:x,totalLabel:h,subRow:g,subRowAlign:_="start",className:C,inGrid:w=!1,children:b}){const{t:B}=_e.useTranslation(),v=o.useRef(null),{anchorRect:k,openAt:A,close:N}=Aa(),E=o.useCallback(()=>{f&&v.current&&A(v.current)},[f,A]),[D,H]=o.useState(!1);fo(()=>{const j=v.current;if(!j||!u)return;const F=q=>H(q>0&&q<d);if(F(j.clientWidth),typeof ResizeObserver>"u")return;const O=new ResizeObserver(q=>F(q[0].contentRect.width));return O.observe(j),()=>O.disconnect()},[u,d]);const[R,G]=o.useState(null),L=o.useCallback(()=>G(null),[]),M=o.useCallback(j=>{const F=j.currentTarget.getBoundingClientRect();G(O=>O?null:{left:F.left,right:F.right,top:F.top,bottom:F.bottom,width:F.width,height:F.height,x:F.x,y:F.y})},[]),I=!!u&&D;o.useEffect(()=>{I||G(null)},[I]);const Y=u?[...u.options.map(j=>({label:j.label,icon:j.icon,selected:j.key===u.value,disabled:j.disabled,onClick:()=>u.onChange(j.key),closeOnSelect:!0})),...(c??[]).map((j,F)=>F===0?{...j,separatorBefore:!0}:j)]:[],Z=o.useCallback(j=>{if(!m)return;const F=j.target;F&&typeof F.closest=="function"&&F.closest('button, a, input, select, textarea, [role="radiogroup"]')||m()},[m]),z=o.useCallback(j=>{m&&j.target===j.currentTarget&&(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),m())},[m]),W=typeof i=="function"?i({collapsed:I}):i,$=y!=null||h?n.jsxs(Ra,{label:h,children:[y!=null&&n.jsx("span",{className:"barchart-total__num h0",children:y}),x&&n.jsx("span",{className:"barchart-total__unit h5",children:x})]}):null,U=W||u?n.jsxs("div",{className:"manager-section__head-right",children:[u&&(I?n.jsx(me,{htmlType:"button",size:32,type:"dot",icon:"ellipsis",ariaLabel:u.ariaLabel??B("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:u.ariaLabel??B("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!R,onClick:M}):n.jsx(Bn,{size:32,ariaLabel:u.ariaLabel,options:u.options.map(j=>({key:j.key,label:j.label,disabled:j.disabled})),value:u.value,onChange:u.onChange})),W]}):null,S=o.useId(),P=a?`h${a}`:"div";return n.jsxs("section",{ref:v,className:["manager-section",w&&"manager-section--grid",m&&"manager-section--clickable",C].filter(Boolean).join(" "),onClick:m?Z:void 0,onKeyDown:m?z:void 0,onPointerEnter:f?E:void 0,onPointerLeave:f?N:void 0,onFocus:f?E:void 0,onBlur:f?N:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,"aria-label":m?p??(typeof e=="string"?e:void 0):void 0,"aria-labelledby":!m&&e!=null?S:void 0,children:[f&&k&&n.jsx(vn,{anchorRect:{left:k.left,top:k.top+21,right:k.right,bottom:k.bottom,width:k.width,height:k.height},text:f}),l&&n.jsx(Yl,{children:l}),n.jsxs("div",{className:"manager-section__head",children:[n.jsxs("div",{className:"manager-section__title-row",children:[r&&n.jsx(tt,{icon:r,label:typeof e=="string"?e:void 0,className:"manager-section__icon"}),n.jsx(P,{id:S,className:["manager-section__title",t].filter(Boolean).join(" "),children:e})]}),U,s&&n.jsx("div",{className:"manager-section__disc body-3",children:s})]}),($||g)&&n.jsxs("div",{className:["barchart-sub-row",_!=="start"&&`barchart-sub-row--${_}`].filter(Boolean).join(" "),children:[$,g]}),b,R&&n.jsx(un,{anchorRect:R,onClose:L,ariaLabel:u?.ariaLabel??B("tooltip.menu","\uBA54\uB274"),children:n.jsx(Da,{columns:[{items:Y}],onClose:L,size:"small"})})]})}function fn(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function dy(){const e=ea();let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<fn(t,a)){const l=new Date(t,a,0);t=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const s=Math.floor((r-fn(t,a))/7),i=`${t}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${s}`}}function py(e){const t=ea(),a=`${t.getFullYear()}\uB144 ${t.getMonth()+1}\uC6D4`,r=(c,d)=>`${c}\uB144 ${d+1}\uC6D4`,s=new Map;s.set(a,[]);for(const c of e){if(isNaN(c.date.getTime()))continue;const d=r(c.date.getFullYear(),c.date.getMonth());s.has(d)||s.set(d,[]),s.get(d).push(c)}for(const[c,d]of[...s.entries()]){const m=c.match(/^(\d+)년 (\d+)월$/);if(!m)continue;const p=Number(m[1]),f=Number(m[2])-1,y=fn(p,f);if(!(c===a&&t.getDate()<y)&&!d.some(g=>g.date.getDate()<y))continue;const x=new Date(p,f,0),h=r(x.getFullYear(),x.getMonth());s.has(h)||s.set(h,[])}const i=new Map;for(const[c,d]of s){const m=c.match(/^(\d+)년 (\d+)월$/);if(!m)continue;const p=Number(m[1]),f=Number(m[2])-1,y=new Date(p,f+1,0).getDate(),x=d.reduce((b,B)=>Math.max(b,B.parts?.length??0,B.partsB?.length??0),0),h=d.some(b=>b.partsB),g=new Array(y+1).fill(0),_=new Array(y+1).fill(0),C=Array.from({length:y+1},()=>new Array(x).fill(0)),w=Array.from({length:y+1},()=>new Array(x).fill(0));for(const b of d){const B=b.date.getDate();if(g[B]+=b.a,_[B]+=b.b,b.parts)for(let v=0;v<x;v++)C[B][v]+=b.parts[v]??0;if(b.partsB)for(let v=0;v<x;v++)w[B][v]+=b.partsB[v]??0}i.set(c,{year:p,month:f,daysInMonth:y,partsLen:x,hasPartsB:h,dayA:g,dayB:_,dayParts:C,dayPartsB:w})}const l=(c,d,m)=>new Date(c,d,m).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),u={};for(const[c,d]of i){const{year:m,month:p,daysInMonth:f,dayA:y,dayB:x,dayParts:h,dayPartsB:g}=d,_=m===t.getFullYear()&&p===t.getMonth(),C=t.getDate(),w=i.get(r(p===11?m+1:m,(p+1)%12)),b=d.partsLen,B=[];for(let k=1;k<=f;k++){const A=_&&k>C;B.push({label:String(k),...A&&y[k]===0&&x[k]===0?{future:!0}:{},a:A&&y[k]===0&&x[k]===0?-1:y[k],b:x[k],...b?{parts:h[k]}:{},...b&&d.hasPartsB?{partsB:g[k]}:{}})}const v=[];for(let k=fn(m,p);k<=f;k+=7){const A=Math.max(0,k+6-f),N=A&&w?Math.max(b,w.partsLen):b,E=d.hasPartsB||!!(A&&w?.hasPartsB);let D=0,H=0;const R=new Array(N).fill(0),G=new Array(N).fill(0);for(let M=k;M<=Math.min(k+6,f);M++){D+=y[M],H+=x[M];for(let I=0;I<b;I++)R[I]+=h[M][I],G[I]+=g[M][I]}if(A&&w)for(let M=1;M<=A&&!l(w.year,w.month,M);M++){D+=w.dayA[M],H+=w.dayB[M];for(let I=0;I<w.partsLen;I++)R[I]+=w.dayParts[M][I],G[I]+=w.dayPartsB[M][I]}const L=A?`${(p+1)%12+1}/${A}`:`${k+6}`;v.push({label:`${v.length+1}\uC8FC`,sublabel:`[${k}\uC77C~${L}\uC77C]`,a:D,b:H,...N?{parts:R}:{},...N&&E?{partsB:G}:{}})}u[c]={weekly:v,daily:B}}return u}function Zl(){const e=ea(),t=e.getFullYear(),a=e.getMonth()+1,r=[];for(let s=2024;s<=t;s++){const i=s===t?a:12;for(let l=1;l<=i;l++){const u=`${s}\uB144 ${l}\uC6D4`;r.push({value:u,label:u,year:s,month:l})}}return r.reverse()}Zl();function my(){return Zl()}const Xl=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function Jl(e){const{t,i18n:a}=_e.useTranslation(),[r,s]=o.useState("week"),i=o.useMemo(()=>my().filter(N=>N.value in e),[e]),l=o.useMemo(()=>{const N=[];for(const E of i){const D=new Date(E.year,E.month,0).getDate(),H=fn(E.year,E.month-1),R=Math.ceil((D-H+1)/7);for(let G=R-1;G>=0;G--)N.push({value:`${E.value}#${G}`,monthKey:E.value,year:E.year,month:E.month,week:G})}return N},[i]),u=o.useCallback(N=>{const E=t("calendar.yearMonth",{year:N.year,month:N.month});return a.language?.startsWith("ko")?`${E} ${Xl[N.week]??`${N.week+1}`}\uC8FC`:`${E} Week ${N.week+1}`},[t,a.language]),c=o.useMemo(()=>i.map(N=>({value:N.value,label:t("calendar.yearMonth",{year:N.year,month:N.month})})),[t,i]),d=o.useMemo(()=>l.map(N=>({value:N.value,label:u(N)})),[l,u]),m=o.useMemo(()=>dy(),[e]),p=o.useMemo(()=>i.find(N=>N.value===m.monthKey)?.value??i[0]?.value??"",[i,m]),f=o.useMemo(()=>l.find(N=>N.value===m.value)?.value??l[0]?.value??"",[l,m]),[y,x]=o.useState(""),[h,g]=o.useState("");o.useEffect(()=>{i.find(N=>N.value===y)||x(p)},[i,y,p]),o.useEffect(()=>{l.find(N=>N.value===h)||g(f)},[l,h,f]);const _=r==="month"?c:d,C=r==="month"?y:h,w=r==="month"?x:g,b=o.useMemo(()=>{const N=t("calendar.dow",{returnObjects:!0});return Array.isArray(N)?N:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),B=_.findIndex(N=>N.value===C),v=o.useCallback(()=>{const N=_.findIndex(E=>E.value===C);N<_.length-1&&w(_[N+1].value)},[_,C,w]),k=o.useCallback(()=>{const N=_.findIndex(E=>E.value===C);N>0&&w(_[N-1].value)},[_,C,w]),A=o.useMemo(()=>[{key:"week",label:t("manager.chart.periodWeek","\uC8FC")},{key:"month",label:t("manager.chart.periodMonth","\uC6D4")}],[t]);return{period:r,setPeriod:s,range:C,setRange:w,activeOptions:_,activeIdx:B,handlePrev:v,handleNext:k,periodOptions:A,monthRange:y,weekRange:h,weekRanges:l,DOW:b}}const yt=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function An(e,t=!0){return e.future===!0||t&&e.a===-1}function hy({data:e,colorA:t,colorB:a,labelA:r,labelB:s,barWidth:i=10,barGap:l=1,height:u=140,maxOverride:c,tightMax:d,seriesColors:m,seriesLabels:p,rateLabels:f,grouped:y=!1,baseline:x,focusableBars:h=!1}){const g=!a,_=!!(m&&m.length>0),C=x,w=o.useMemo(()=>_?Math.max(0,...e.filter(z=>!An(z,C==null)).map(z=>y?Math.max(0,...(z.parts??[]).map(yt)):(z.parts??[]).reduce((W,$)=>W+Math.max(0,yt($)),0))):Math.max(0,...e.filter(z=>!An(z,C==null)).flatMap(z=>g?[yt(z.a)]:[yt(z.a),yt(z.b)])),[e,g,_,y]),b=o.useMemo(()=>{if(C==null)return 0;const z=e.filter(W=>!An(W,C==null)).flatMap(W=>_?(W.parts??[]).map(yt):g?[yt(W.a)]:[yt(W.a),yt(W.b)]);return Math.max(0,...z.map(W=>Math.abs(W-C)))},[e,C,_,g]),B=o.useMemo(()=>{const z=C!=null?b:w;return c??(d?z>0?z:10:Math.ceil(z/10)*10||10)},[w,b,C,c,d]),v=u,k=_?y?Math.max(1,m.length):1:g?1:2,A={"--bar-width":`${o.useMemo(()=>{const z=Math.max(1,e.length);return Math.max(2,Math.min(i,Math.round(120/(z*k)+6)))},[e.length,k,i])}px`},N={"--bar-group-gap":`${Math.max(0,l)}px`},E=o.useMemo(()=>{const z=Math.round(B/2);return C!=null?[C+B,...z!==B?[C+z]:[],C,...z!==B?[C-z]:[],C-B]:z!==B?[B,z,0]:[B,0]},[B,C]),D=z=>C!=null?1-(z-(C-B))/(2*B):1-z/B,[H,R]=o.useState(null),G=o.useCallback(()=>R(null),[]),L=o.useCallback((z,W)=>{const $=[z.label,z.sublabel].filter(Boolean).join(" ");let U;if(_&&y&&z.rawPartsB)U=(p??[]).map((S,P)=>{const j=z.rawPartsB[P]??0;return{text:j>0?`${S}: ${W[P]??0}% (${z.rawParts?.[P]??0}/${j})`:`${S}: -`,color:(m??[])[P]}});else if(_&&y)U=(p??[]).map((S,P)=>({text:`${S}: ${Y(W[P]??0)}`,color:(m??[])[P]}));else if(_){const S=(p??[]).map((j,F)=>({text:`${j}: ${W[F]??0}`,color:(m??[])[F]})),P=S.filter((j,F)=>(W[F]??0)>0);U=P.length?P:S}else f&&!g?U=[{text:`${r} ${yt(z.a)}%`,color:t},{text:`${s} ${yt(z.b)}%`,color:a}]:f&&z.rawB!==void 0?U=[{text:`${f.total} ${z.rawB}`},{text:`${f.done} ${z.rawA??0}`,color:t}]:g?U=[{text:`${r}: ${yt(z.a)}`,color:t}]:U=[{text:`${r}: ${yt(z.a)}`,color:t},{text:`${s}: ${yt(z.b)}`,color:a}];return{title:$,items:U}},[_,y,p,m,f,g,r,s,t,a,C]),M=o.useCallback((z,W,$)=>{const U=z.getBoundingClientRect(),{title:S,items:P}=L(W,$);R({rect:{left:U.left,top:U.top,right:U.right,bottom:U.bottom,width:U.width,height:U.height},title:S,items:P})},[L]),I=o.useCallback((z,W)=>{const{title:$,items:U}=L(z,W);return[$,...U.map(S=>S.text)].filter(Boolean).join(", ")},[L]),Y=z=>C!=null&&z>C?`+${z}`:`${z}`,Z=H!=null;return o.useEffect(()=>{if(!Z)return;const z=()=>R(null),W=$=>{const U=$.target;U&&typeof U.closest=="function"&&U.closest(".manager-bar-chart-col")||R(null)};return window.addEventListener("scroll",z,!0),document.addEventListener("pointerdown",W,!0),()=>{window.removeEventListener("scroll",z,!0),document.removeEventListener("pointerdown",W,!0)}},[Z]),n.jsxs("div",{className:"manager-bar-chart-wrap",style:N,children:[n.jsx("div",{className:"manager-bar-chart-inner",children:n.jsx("div",{className:"manager-bar-chart-scroll",children:n.jsxs("div",{className:"manager-bar-chart-area",children:[n.jsxs("div",{className:"manager-bar-chart-plot",style:{height:v},children:[E.slice(0,-1).map((z,W)=>n.jsx("div",{className:`manager-bar-chart-gridline${C!=null&&z===C?" manager-bar-chart-gridline--baseline":""}`,style:{top:D(z)*v},children:n.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:z})},W)),e.map((z,W)=>{const $=An(z,C==null),U=v/2,S=O=>C!=null?Math.min(U,Math.abs(yt(O)-C)/B*U):Math.min(v,Math.max(0,yt(O)/B*v)),P=$?0:S(z.a),j=$?0:S(z.b),F=(z.parts??[]).map(yt);return n.jsx("div",{className:`manager-bar-chart-col${y&&_?" manager-bar-chart-col--group":""}`,style:{cursor:$?"default":"pointer"},tabIndex:h&&!$?0:void 0,role:h&&!$?"img":void 0,"aria-label":h&&!$?I(z,F):void 0,onMouseEnter:$?void 0:O=>M(O.currentTarget,z,F),onFocus:$||!h?void 0:O=>M(O.currentTarget,z,F),onBlur:h?G:void 0,onMouseLeave:G,children:!$&&(_&&y?(m??[]).map((O,q)=>{const Q=F[q]??0;if(C==null)return n.jsx("div",{className:"manager-bar-chart-bar",style:{...A,height:S(Q),background:O}},q);const oe=yt(Q)<C;return n.jsxs("div",{className:"manager-bar-chart-slot",style:A,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!oe&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:S(Q),background:O}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:oe&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:S(Q),background:O}})})]},q)}):_?n.jsx("div",{className:"manager-bar-chart-stack",style:A,children:(()=>{const O=F.reduce((Q,oe,se)=>oe>0?se:Q,-1);let q=v;return F.map((Q,oe)=>{if(Q<=0)return null;const se=Math.min(q,Q/B*v);return q-=se,n.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:se,background:(m??[])[oe],borderRadius:oe===O?"6px 6px 0 0":void 0}},oe)})})()}):C!=null?n.jsx(n.Fragment,{children:[{v:yt(z.a),c:t},...g?[]:[{v:yt(z.b),c:a}]].map(({v:O,c:q},Q)=>n.jsxs("div",{className:"manager-bar-chart-slot",style:A,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:O>=C&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:S(O),background:q}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:O<C&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:S(O),background:q}})})]},Q))}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"manager-bar-chart-bar",style:{...A,height:P,background:t}}),!g&&n.jsx("div",{className:"manager-bar-chart-bar",style:{...A,height:j,background:a}})]}))},W)})]}),n.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((z,W)=>{const $=An(z,C==null);return n.jsxs("span",{className:`manager-bar-chart-x-axis__label${$?" manager-bar-chart-x-axis__label--future":""}`,children:[n.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[z.isToday&&n.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),z.label]}),z.sublabel&&n.jsx("span",{className:"caption-1",children:z.sublabel})]},W)})})]})})}),H&&n.jsx(Wn,{anchorRect:H.rect,title:H.title,items:H.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Ql({control:e}){const{t}=_e.useTranslation(),{activeOptions:a,activeIdx:r,range:s,setRange:i,handlePrev:l,handleNext:u,periodOptions:c,period:d,setPeriod:m}=e,p=d==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),f=d==="week"?t("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):t("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return n.jsxs("div",{className:"manager-section-controls",children:[n.jsx(me,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:p,showTooltipInfo:p,disabled:r===a.length-1,onClick:l}),n.jsx(dn,{value:s,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),n.jsx(me,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:f,showTooltipInfo:f,disabled:r<=0,onClick:u}),n.jsx(Bn,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:c,value:d,onChange:y=>m(y),size:40})]})}function vo(e,t,a,r=!0){const s=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(i,l)=>{const u=new Date(t);u.setDate(t.getDate()+l);const c=(e[`${u.getFullYear()}\uB144 ${u.getMonth()+1}\uC6D4`]?.daily??[])[u.getDate()-1],d=c!=null&&An(c,r)||u>s;return{dt:u,entry:c,isFuture:d}})}function Cy(e,t,a,r,s=!0){const{period:i,monthRange:l,weekRange:u,weekRanges:c,DOW:d}=t,m=r?.startsWith("ko"),p=ea(),f=p.getFullYear(),y=p.getMonth()+1,x=p.getDate();if(i==="month"){const _=e[l]??{weekly:[],daily:[]},C=l.match(/^(\d+)년 (\d+)월$/),w=C?Number(C[1]):null,b=C?Number(C[2]):null,B=w&&b?fn(w,b-1):1;return _.weekly.map((v,k)=>{const A=k+1;let N=v.label,E=!1,D=!1;if(w&&b){const H=B+k*7,R=new Date(w,b-1,H+6),G=R.getMonth()+1,L=R.getDate(),M=G===b?`${L}`:`${G}/${L}`;N=a("manager.chart.weekRange",{start:H,end:M});const I=new Date(f,y-1,x).getTime();E=I>=new Date(w,b-1,H).getTime()&&I<=R.getTime(),D=w>f||w===f&&(b>y||b===y&&H>x)}return{...v,label:N,sublabel:m?`${Xl[A-1]??A}\uC8FC`:`Week ${A}`,isToday:E,future:v.future===!0||D||void 0,a:D?-1:v.a,b:D?0:v.b}})}const h=c.find(_=>_.value===u);if(!h)return[];const g=new Date(h.year,h.month-1,fn(h.year,h.month-1)+h.week*7);return vo(e,g,p,s).map(({dt:_,entry:C,isFuture:w})=>{const b=_.getMonth()+1,B=_.getDate(),v=_.getFullYear();return{label:b===h.month&&v===h.year?`${B}`:`${b}/${B}`,sublabel:d[_.getDay()]??"",future:w||void 0,a:w?-1:C&&C.a>0?C.a:0,b:w?0:C&&C.b>0?C.b:0,isToday:v===f&&b===y&&B===x,...C?.parts?{parts:w?C.parts.map(()=>0):C.parts}:{},...C?.partsB?{partsB:w?C.partsB.map(()=>0):C.partsB}:{}}})}const fy={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function gy({focusableBars:e,size:t="medium",barWidth:a,titleKey:r,titleLevel:s,data:i,colorA:l,colorB:u,labelAKey:c,labelBKey:d,showTotal:m=!1,totalUnitKey:p,totalLabelKey:f,control:y,hideControls:x=!1,rate:h=!1,rateAgg:g="dayMean",tightMax:_=!1,avgMode:C=!1,totalFormat:w,series:b,seriesMode:B="stack",loading:v=!1,onDetail:k,headExtra:A,headSegment:N,icon:E,disc:D,onClick:H,cardAriaLabel:R,cardTooltip:G,detailSize:L=32,barGap:M,baseline:I,className:Y,inGrid:Z=!1}){const{t:z,i18n:W}=_e.useTranslation(),$=fy[t],U=Jl(i),S=y??U,P=o.useMemo(()=>Cy(i,S,z,W.language,I==null),[i,S,z,W.language,I]),j=B==="group"&&!!b&&b.length>0;M!=null&&!j&&Gt("bar-chart-bargap-without-group","[BarChart] barGap \uC740 seriesMode='group' + series \uC5D0\uC11C\uB9CC \uC4F0\uC778\uB2E4 \u2014 \uADF8 \uBC16\uC5D0\uC11C\uB294 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4.");const F=o.useMemo(()=>{if(!h)return P;const se=S.period==="month"?S.monthRange.match(/^(\d+)년 (\d+)월$/):null,te=ea(),le=b?.length??0,De=V=>{const ne=[],fe=[],Ee=[];for(let ge=0;ge<le;ge++){let ae=0,de=0,pe=0;for(const he of V){const be=yt(he.a[ge]),Pe=yt(he.b[ge]);Pe<=0||(ae+=be,de+=Pe,pe+=be/Pe*100)}ne.push(g==="weighted"?de>0?Math.round(ae/de*100):0:V.length?Math.round(pe/V.length):0),fe.push(ae),Ee.push(de)}return{pct:ne,ra:fe,rb:Ee}};return P.map((V,ne)=>{let fe=V.a===-1?-1:V.b>0?Math.round(V.a/V.b*100):0;if(se&&!An(V)){const ge=Number(se[1]),ae=Number(se[2])-1,de=vo(i,new Date(ge,ae,fn(ge,ae)+ne*7),te).filter(pe=>!pe.isFuture);if(g==="weighted"){let pe=0,he=0;for(const{entry:be}of de)be&&be.b>0&&(pe+=be.a,he+=be.b);fe=he>0?Math.round(pe/he*100):0}else fe=de.length?Math.round(de.reduce((pe,{entry:he})=>pe+(he&&he.b>0?he.a/he.b*100:0),0)/de.length):0}let Ee=null;if(j&&!An(V)){let ge;if(se){const de=Number(se[1]),pe=Number(se[2])-1;ge=vo(i,new Date(de,pe,fn(de,pe)+ne*7),te).filter(he=>!he.isFuture).map(({entry:he})=>({a:he?.parts??[],b:he?.partsB??[]}))}else ge=[{a:V.parts??[],b:V.partsB??[]}];const ae=De(ge);Ee={parts:ae.pct,rawParts:ae.ra,rawPartsB:ae.rb}}return{...V,a:fe,b:V.a===-1?0:d&&V.parts&&V.parts[1]>0?Math.round(V.parts[0]/V.parts[1]*100):0,rawA:V.a===-1?-1:V.a,rawB:V.b,...Ee??{}}})},[P,h,g,d,S.period,S.monthRange,i,j,b?.length]),O=o.useMemo(()=>{if(h||C){const te=(S.period==="week"?P:i[S.monthRange]?.daily??[]).filter(De=>De.a!==-1);if(te.length===0)return 0;if(h&&g==="weighted"){let De=0,V=0;for(const ne of te)ne.b>0&&(De+=ne.a,V+=ne.b);return V>0?Math.round(De/V*100):0}const le=h?te.reduce((De,V)=>De+(V.b>0?V.a/V.b*100:0),0):te.reduce((De,V)=>De+(V.a>0?V.a:0),0);return Math.round(le/te.length)}const se=S.period==="month"?i[S.monthRange]?.daily??[]:F;return I!=null?se.reduce((te,le)=>te+(An(le,!1)?0:yt(le.a)+(d?yt(le.b):0)),0):se.reduce((te,le)=>te+(le.a>0?le.a:0)+(d&&le.b>0?le.b:0),0)},[F,P,h,g,C,I,d,S.period,S.monthRange,i]),q=b&&b.length>0?b.map(se=>({color:se.color,label:se.label})):[{color:l,label:z(c)},...d?[{color:u,label:z(d)}]:[]],Q=t==="small",oe=[Q?"manager-section--compact":t==="large"?"manager-section--full":void 0,Y].filter(Boolean).join(" ")||void 0;return n.jsx(yo,{className:oe,inGrid:Z,icon:E,disc:D,onClick:H,ariaLabel:R,tooltip:G,headSegment:N,headMenuItems:k?[{label:z("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),icon:"list",onClick:k,closeOnSelect:!0}]:void 0,title:z(r),titleLevel:s,titleClassName:Q?"h5 chart-section-title--small":void 0,headRight:Q?A??void 0:({collapsed:se})=>n.jsxs(n.Fragment,{children:[!x&&n.jsx(Ql,{control:S}),A,k&&!se&&n.jsx("span",{className:"manager-bar-chart-detail-btn",children:n.jsx(me,{htmlType:"button",size:L,type:"dot",icon:"list",ariaLabel:z("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),showTooltipInfo:z("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:k})})]}),subRow:n.jsxs(n.Fragment,{children:[m?h||C||f&&w?n.jsx(Ra,{label:Q?void 0:`${z(S.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${z(f??c)}`,children:w?(w(O).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((se,te)=>/\d/.test(se)?n.jsx("span",{className:"barchart-total__num h0",children:se},te):n.jsx("span",{className:"barchart-total__unit h5",children:se},te)):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"barchart-total__num h0",children:O}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:z(p)})]})}):n.jsxs(Ra,{children:[n.jsx("span",{className:"barchart-total__num h0",children:O}),n.jsx("span",{className:"barchart-total__unit h5",children:z(c)}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:z(p)})]}):n.jsx("span",{}),n.jsx(bo,{items:q,className:"caption-1"})]}),children:v?n.jsx("div",{className:"manager-bar-chart-wrap manager-bar-chart-loading","aria-busy":"true",children:n.jsx("div",{className:"manager-bar-chart-inner",children:n.jsxs("div",{className:"manager-bar-chart-area manager-bar-chart-area--loading",children:[n.jsx("div",{className:"manager-bar-chart-plot manager-bar-chart-plot--loading",style:{height:$.height},children:n.jsx($a,{size:32})}),n.jsx("div",{className:"manager-bar-chart-x-axis","aria-hidden":"true",children:n.jsxs("span",{className:"manager-bar-chart-x-axis__label",children:[n.jsx("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:"\xA0"}),F.some(se=>!!se.sublabel)&&n.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):n.jsx(hy,{focusableBars:e,data:F,colorA:l,colorB:d?u:void 0,labelA:z(c),labelB:d?z(d):void 0,barWidth:a??$.barWidth,barGap:M,baseline:I,height:$.height,maxOverride:h?100:void 0,tightMax:_,seriesColors:b?.map(se=>se.color),seriesLabels:b?.map(se=>se.label),rateLabels:h?{total:z("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:z("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:j})})}const eu=120,by={left:38,right:16,top:26,bottom:24};function yy({points:e=[],range:t,ticks:a=[],axisTitle:r,color:s,height:i=156,fallbackWidth:l=320,insets:u,overlay:c,ariaLabel:d,className:m}){const[p,f]=o.useState(null),[y,x]=o.useState(null);o.useEffect(()=>{if(!y)return;const I=Z=>f(Math.round(Z)||null);if(I(y.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const Y=new ResizeObserver(([Z])=>I(Z.contentRect.width));return Y.observe(y),()=>{Y.disconnect()}},[y]);const{payload:h,anchorRect:g,openAfterDelay:_,close:C}=wb(eu),w=o.useCallback((I,Y)=>{I&&_(I,Y.getBoundingClientRect())},[_]),b=p??l,B=i,{left:v,right:k,top:A,bottom:N}={...by,...u},[E,D]=t,H=I=>D===E?v:v+(b-v-k)*(I-E)/(D-E),R=I=>A+(B-A-N)*(100-I)/100,G={x:H,y:R,plot:{left:v,right:b-k,top:A,bottom:B-N,width:Math.max(0,b-v-k),height:Math.max(0,B-A-N)}},L=e.filter(I=>!I.hollow),M=s??"var(--color-main)";return n.jsxs(n.Fragment,{children:[n.jsxs("svg",{ref:x,className:Ae("line-chart",m),viewBox:`0 0 ${b} ${B}`,role:"img","aria-label":d??e.map(I=>I.description).filter(Boolean).join(", "),children:[r&&n.jsx("text",{className:"line-chart__axis-title",x:0,y:12,children:r}),[0,100].map(I=>n.jsxs("g",{children:[n.jsx("line",{className:"line-chart__grid",x1:v,x2:b-k,y1:R(I),y2:R(I)}),n.jsxs("text",{className:"line-chart__tick",x:v-6,y:R(I)+4,textAnchor:"end",children:[I,"%"]})]},I)),c?.(G),a.map(I=>n.jsx("text",{className:"line-chart__tick",x:H(I.x),y:B-5,textAnchor:"middle",children:I.label},I.x)),L.length>1&&n.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:M,points:L.map(I=>`${H(I.x)},${R(I.pct)}`).join(" ")}),e.map(I=>n.jsxs("g",{className:"line-chart__dot",onPointerEnter:Y=>w(I.description,Y.currentTarget),onPointerLeave:C,children:[n.jsx("circle",{className:"line-chart__dot-hit",cx:H(I.x),cy:R(I.pct),r:12}),n.jsx("circle",{className:Ae("line-chart__dot-main",I.hollow&&"is-hollow"),cx:H(I.x),cy:R(I.pct),r:4,stroke:M,fill:I.hollow?void 0:M})]},I.x))]}),h!=null&&n.jsx(un,{anchorRect:g,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:h,children:h})]})}function vy({icon:e,iconSize:t=56,title:a,titleClass:r="h2",description:s,tipGroups:i,start:l,className:u}){return n.jsxs("div",{className:Ae("game-intro",u),children:[e!=null&&n.jsx("span",{className:"game-intro__icon","aria-hidden":"true",style:{"--game-intro-icon":`${t}px`},children:e}),n.jsx("h2",{className:Ae("game-intro__title",r),children:a}),s!=null&&n.jsx("p",{className:"game-intro__description body-3",children:s}),i?.map((c,d)=>n.jsxs("div",{className:"game-intro__tips",children:[c.title!=null&&n.jsx("span",{className:"game-intro__tips-title body-3",children:c.title}),c.tips.map((m,p)=>n.jsxs("span",{className:"game-intro__tip body-3",children:[m.icon!=null&&n.jsx("span",{"aria-hidden":"true",children:m.icon}),n.jsx("span",{children:m.text})]},p))]},d)),l&&n.jsx(me,{htmlType:"button",className:l.className,variant:"main",color:l.color,size:48,width:"100%",disabled:l.disabled,onClick:l.onClick,children:l.label})]})}const tu=(e,t,a)=>{const r=new Date(Date.UTC(e,t,a));return`${r.getUTCFullYear()}-${String(r.getUTCMonth()+1).padStart(2,"0")}-${String(r.getUTCDate()).padStart(2,"0")}`},nu=(e,t,a,r)=>({from:mi(e,t,a),to:new Date(mi(e,t,a+r).getTime()-1),fromYmd:tu(e,t,a),toYmd:tu(e,t,a+r-1)});function xy(e,t=0){if(e.period==="month"){const s=e.monthRange.match(/^(\d+)년 (\d+)월$/),i=ea(),l=s?Number(s[1]):i.getFullYear(),u=(s?Number(s[2]):i.getMonth()+1)-1+t,c=new Date(Date.UTC(l,u+1,0)).getUTCDate();return nu(l,u,1,c)}const a=e.weekRanges.find(s=>s.value===e.weekRange);if(!a){const s=new Date,i=_a();return{from:s,to:s,fromYmd:i,toYmd:i}}const r=fn(a.year,a.month-1);return nu(a.year,a.month-1,r+(a.week+t)*7,7)}const xo={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function au(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function ru({done:e,total:t,segments:a,color:r="var(--color-main)",size:s="medium",strokeWidth:i,label:l="%",hideCenter:u=!1,hideLabel:c=!1}){const d=typeof s=="number"?s:xo[s].diameter,m=i??(typeof s=="number"?12:xo[s].strokeWidth),p=d/2,f=(d-m)/2,y=2*Math.PI*f;if(a&&a.length>0){const _=a.reduce((C,w)=>{const b=C.length>0?C[C.length-1].acc:0,B=Number.isFinite(w.ratio)?w.ratio:0,v=Math.max(0,Math.min(B,1-b));return C.push({color:w.color,rotate:-90+b*360,dash:y*v,acc:b+v}),C},[]);return n.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),_.map((C,w)=>C.dash>0&&n.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:C.color,strokeWidth:m,strokeDasharray:`${C.dash} ${y}`,strokeLinecap:"round",transform:`rotate(${C.rotate} ${p} ${p})`},w))]})})}const x=(t??0)>0?Math.min((e??0)/t,1):0,h=y*x,g=y-h;return n.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),x>0&&n.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:r,strokeWidth:m,strokeDasharray:`${h} ${g}`,strokeLinecap:x<.02||x>.98?"butt":"round",transform:`rotate(-90 ${p} ${p})`})]}),!u&&n.jsxs("div",{className:`ring-chart__center${c?"":` ${d<=96?"ring-chart__center--small":s==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[n.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:au(x)}),!c&&n.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||s==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function _y({titleKey:e,titleLevel:t,headRight:a,icon:r,showTotal:s,totalLabelKey:i,legend:l,loading:u,className:c,inGrid:d=!1,onClick:m,ariaLabel:p,tooltip:f,...y}){const{t:x}=_e.useTranslation();if(!e)return n.jsx(ru,{...y});const h=(y.total??0)>0?au(Math.min((y.done??0)/y.total,1)):0,g=y.size==="small",_=typeof y.size=="number"?y.size:xo[y.size??"medium"].diameter,C=y.size==="large",w=[c,g?"manager-section--compact":C?"manager-section--full":""].filter(Boolean).join(" ")||void 0,b=r&&n.jsx("span",{className:"chart-section-icon",children:n.jsx(tt,{icon:r,className:"chart-section-icon-inner"})});return n.jsx(yo,{className:w,inGrid:d,onClick:m,ariaLabel:p,tooltip:f,title:x(e),titleLevel:t,titleClassName:g?"h5 chart-section-title--small":void 0,headRight:b||(g?void 0:a),subRow:(s||l)&&n.jsxs(n.Fragment,{children:[s?n.jsxs(Ra,{label:!g&&i?x(i):void 0,children:[n.jsx("span",{className:"barchart-total__num h0",children:h}),n.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):n.jsx("span",{}),l&&n.jsx(bo,{items:l})]}),children:u?n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx("div",{className:"ring-chart ring-chart--loading",style:{width:_,height:_},"aria-busy":"true",children:n.jsx($a,{size:32})})}):n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx(ru,{...y,hideCenter:y.hideCenter??g})})})}function wy({label:e,value:t,change:a,changeType:r,icon:s,tooltip:i,onClick:l,children:u}){const c=o.useRef(null),{anchorRect:d,openAt:m,close:p}=Aa(),f=o.useCallback(()=>{i&&c.current&&m(c.current)},[i,m]),y=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),x=a===void 0?void 0:a>0?`+${a}`:`${a}`,h=o.useCallback(g=>{l&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),l())},[l]);return n.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?h:void 0,onPointerEnter:f,onPointerLeave:p,onFocus:f,onBlur:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,t,x].filter(g=>g!==void 0&&g!=="").join(" "):void 0,children:[i&&d&&n.jsx(vn,{anchorRect:{left:d.left,top:d.top+21,right:d.right,bottom:d.bottom,width:d.width,height:d.height},text:i}),n.jsxs("div",{className:"manager-stat-card__label-row",children:[n.jsx("span",{className:"manager-stat-card__label h5",children:e}),s&&n.jsx("span",{className:"manager-stat-card__icon",children:n.jsx(tt,{icon:s,className:"manager-stat-card__icon-inner"})})]}),n.jsxs("div",{className:"manager-stat-card__content",children:[n.jsxs("div",{className:"manager-stat-card__left",children:[n.jsx("div",{className:"manager-stat-card__value h2",children:t}),x&&n.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${y??"neutral"} caption-1`,children:x})]}),u&&n.jsx("div",{className:"manager-stat-card__body",children:u})]})]})}function ou({value:e,onChange:t,min:a=0,max:r=100,step:s=1,orientation:i="horizontal",size:l=24,disabled:u=!1,ariaLabel:c,length:d,className:m,label:p,formatValue:f,labelPos:y,labelAlign:x="right",showMinMax:h=!1,minLabel:g,maxLabel:_,showBgTick:C=!1,showFillTick:w=!1,tickStep:b,tickShape:B="dot"}){t&&!c&&Gt("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const v=Math.min(r,Math.max(a,e)),k=r>a?(v-a)/(r-a):0,A=i==="vertical",N=!t,E=S=>t?.(Number(S.target.value)),D=typeof d=="number"?`${d}px`:d,H={"--slider-ratio":String(k),"--slider-thumb":`${l}px`,...D?A?{height:D}:{width:D}:{}},R=b??s,G=(C||w)&&R>0&&r>a?Math.floor((r-a)/R+1e-6):0;if(G>0&&G<=100){const S=B!=="dash",P=Q=>S?`radial-gradient(circle, ${Q} 0.5px, transparent 1px)`:A?`linear-gradient(to bottom, transparent calc(50% - 2px), ${Q} calc(50% - 2px), ${Q} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${Q} calc(50% - 2px), ${Q} calc(50% + 2px), transparent calc(50% + 2px))`,j=S?"2px":"4px",F=[],O=[],q=[];for(let Q=0;Q<=G;Q++){const oe=Q*R/(r-a);if(oe>1+1e-6)break;const se=`${((A?1-oe:oe)*100).toFixed(4)}%`,te=oe<=k+1e-6;if(te?!w:!C)continue;const le=te?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";F.push(P(le)),O.push(A?`${j} var(--slider-thumb)`:`var(--slider-thumb) ${j}`),q.push(A?`center ${se}`:`${se} center`)}F.push(A?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),O.push("100% 100%"),q.push("0 0"),H.backgroundImage=F.join(", "),H.backgroundSize=O.join(", "),H.backgroundPosition=q.join(", "),H.backgroundRepeat="no-repeat"}const L=f?f(v):p==="percent"?`${Math.round(r>a?(v-a)/(r-a)*100:0)}%`:p==="count"?`${v} / ${r}`:v===a&&g?g:v===r&&_?_:void 0,M=n.jsx("input",{type:"range",className:Ae("slider",`slider--${i}`,N&&"slider--static",!p&&!h&&m),min:a,max:r,step:s,value:v,disabled:u,readOnly:N,tabIndex:N?-1:void 0,"aria-label":c,"aria-valuetext":L,"aria-orientation":i,onChange:E,style:H});if(!p&&!h)return M;const I=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:g??a}),Y=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:_??r}),Z=h?n.jsxs("div",{className:Ae("slider-track-group",`slider-track-group--${i}`,!p&&m),children:[A?Y:I,M,A?I:Y]}):M;if(!p)return Z;const z=y??(A?"bottom":"right"),W=`${Math.round(r>a?(v-a)/(r-a)*100:0)}%`,$=f?f(v):p==="percent"?W:p==="count"?`${v} / ${r}`:String(v),U=n.jsx("span",{className:"slider-wrap__value body-3b",children:$});return n.jsxs("div",{className:Ae("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${z}`,`slider-wrap--align-${x}`,m),children:[Z,U]})}const By=.86,Ay=250,_o=(e,t,a,r)=>Math.round(Math.min(r,Math.max(a,e-t))),wo=(e,t,a,r)=>{const s=_o(e,t,a,r);return`${s<0?"-":"+"}${Math.abs(s)} dB`};function Bo({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:s,labelPos:i,labelAlign:l="right",floorDb:u=-60,refDb:c=-35,displayMin:d=-5,displayMax:m=25,className:p,ariaLabel:f}){const y=o.useRef(null),x=o.useRef(null),h=o.useRef(null),g=o.useRef(null),[_,C]=o.useState(null);o.useEffect(()=>{const v=M=>{const I=wo(M,c,d,m);h.current&&(h.current.textContent=I);const Y=y.current;Y&&(Y.setAttribute("aria-valuenow",String(_o(M,c,d,m))),Y.setAttribute("aria-valuetext",I))},k=e??CC(t)??(_&&_.el===t?_.node:null),A=x.current;if(!k||!A){A?.style.setProperty("--meter-level","0"),v(u);let M=!1;return!e&&t&&za(t).then(I=>{!M&&I&&C({el:t,node:I})}),()=>{M=!0}}Fr();const N=new Float32Array(k.fftSize);let E=0,D=0,H=0,R=0,G=null;const L=M=>{const I=fC(k,N);E=I>E?I:E*By;const Y=E>1e-5?20*Math.log10(E):-1/0,Z=Math.max(u,Y),z=Z-c,W=Math.min(1,Math.max(0,(z-d)/(m-d)));if(A.style.setProperty("--meter-level",W.toFixed(3)),D+=Z,H+=1,M-R>=Ay){const $=D/H;G=G==null?$:G*.6+$*.4,v(G),D=0,H=0,R=M}g.current=requestAnimationFrame(L)};return g.current=requestAnimationFrame(L),()=>{g.current!=null&&cancelAnimationFrame(g.current),g.current=null}},[e,t,_,u,c,d,m]);const w=typeof r=="number"?`${r}px`:r,b=n.jsx("div",{className:"audio-meter__track",style:w?a==="vertical"?{height:w}:{width:w}:{},children:n.jsx("div",{ref:x,className:"audio-meter__fill"})}),B=i??(a==="vertical"?"bottom":"right");return n.jsxs("div",{ref:y,className:Ae("audio-meter",`audio-meter--${a}`,s&&`audio-meter--label-${B}`,s&&`audio-meter--align-${l}`,p),role:"meter","aria-label":f,"aria-valuemin":d,"aria-valuemax":m,"aria-valuenow":_o(u,c,d,m),"aria-valuetext":wo(u,c,d,m),children:[b,s&&n.jsx("span",{ref:h,className:"audio-meter__value caption-2",children:wo(u,c,d,m)})]})}const su=260;function iu({message:e,position:t,duration:a,onClose:r}){const[s,i]=o.useState(!1),[l,u]=o.useState(!1),c=o.useRef(l),d=o.useRef(s);o.useEffect(()=>{c.current=l},[l]),o.useEffect(()=>{d.current=s},[s]);const m=o.useRef(null),p=o.useRef(""),f=o.useRef(r);o.useEffect(()=>{f.current=r});const y=a,x=o.useRef(null),h=o.useRef(0),g=o.useRef(0),_=o.useRef(!1),C=o.useRef(null),w=o.useRef(null),b=o.useRef(null),B=o.useRef(null),v=o.useRef(()=>{});v.current=N=>{N<0||(h.current=Date.now(),g.current=N,x.current=setTimeout(()=>{x.current=null,i(!1),C.current=setTimeout(()=>{u(!1);try{f.current()}catch{}},su)},N))};const k=o.useCallback(()=>{_.current||!x.current||(_.current=!0,clearTimeout(x.current),x.current=null,g.current=Math.max(0,g.current-(Date.now()-h.current)))},[]),A=o.useCallback(()=>{_.current&&(_.current=!1,v.current(g.current))},[]);return o.useEffect(()=>{if(e!==p.current&&(x.current&&(clearTimeout(x.current),x.current=null),C.current&&(clearTimeout(C.current),C.current=null)),e){if(d.current)return y>0&&!x.current&&(_.current?g.current=y:v.current(y)),p.current=e,()=>{x.current&&(clearTimeout(x.current),x.current=null),C.current&&(clearTimeout(C.current),C.current=null)};const N=()=>{const E=m.current;if(E)try{E.classList.remove("is-visible"),E.style.transition="none",t==="top"?E.style.transform="translateX(-50%) translateY(-16px)":E.style.transform="translateX(-50%) translateY(16px)",E.style.opacity="0",E.offsetWidth,E.style.transition="",E.classList.add("is-visible"),B.current&&clearTimeout(B.current),B.current=setTimeout(()=>{B.current=null;try{E.style.opacity="",E.style.transform="",E.style.transition=""}catch{}},60)}catch{}};c.current?(N(),i(!0)):(u(!0),w.current=requestAnimationFrame(()=>{b.current=requestAnimationFrame(()=>{N(),i(!0)})})),y>0&&(_.current=!1,v.current(y))}else i(!1),C.current=setTimeout(()=>u(!1),su);return p.current=e,()=>{x.current&&clearTimeout(x.current),C.current&&clearTimeout(C.current),w.current&&cancelAnimationFrame(w.current),b.current&&cancelAnimationFrame(b.current),B.current&&clearTimeout(B.current),x.current=null,C.current=null,w.current=null,b.current=null,B.current=null}},[e,y,t]),{mounted:l,showing:s,popupRef:m,pause:k,resume:A}}function sa({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:s=2e3}){const{mounted:i,showing:l,popupRef:u,pause:c,resume:d}=iu({message:e,position:t,duration:s,onClose:r}),m=o.useRef(null),[p,f]=o.useState(!1);if(o.useEffect(()=>{l?f(!0):i||f(!1)},[l,i]),!i)return null;const y=a==="notice"||a==="warning"?a:"normal",x=n.jsx("div",{ref:u,className:`toast toast--${t} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:h=>{m.current=h.pointerType},onMouseEnter:()=>{m.current!=="touch"&&c()},onMouseLeave:d,onFocusCapture:c,onBlurCapture:d,children:n.jsx("div",{className:`toast__inner toast__inner--${y} body-2`,"aria-hidden":p||l?void 0:!0,children:n.jsx("span",{className:"toast__text",children:e})})});return typeof document<"u"?en.createPortal(x,document.body):x}const ky=24;function Ny({value:e,max:t=100,size:a=8,color:r,trackColor:s,label:i,formatValue:l,labelPos:u,labelAlign:c="right",ariaLabel:d,className:m}){const p=Number.isFinite(t)&&t>0?t:1,f=Math.max(0,Math.min(Number.isFinite(e)?e:0,p)),y=f/p*100,x=Number.isFinite(t)&&t>0?t:0,h=u??(a>=ky?"inside":"bottom"),g=h==="center"?"inside":h,_=g==="inside"&&(c==="left"?y>=15:c==="center"?y>=50:y>=85),C={};return r&&(C["--progress-bar-fill"]=r),s&&(C["--progress-bar-track"]=s),n.jsxs("div",{className:Ae("progress-bar",`progress-bar--${a}`,`progress-bar--label-${g}`,i&&`progress-bar--align-${c}`,i&&_&&"progress-bar--label-on-fill",m),style:C,children:[n.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":x,"aria-valuetext":i?l?l(f):i==="percent"?void 0:i==="raw"?String(f):`${f} / ${x}`:void 0,"aria-label":d,children:n.jsx("div",{className:"progress-bar__fill",style:{width:`${y}%`}})}),i&&n.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(f):i==="percent"?`${Math.round(y)}%`:i==="raw"?String(f):`${f} / ${x}`})]})}const lu={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Dy="rgba(255, 255, 255, 0.16)";function uu({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:s,variant:i="numbered",announce:l=!1,ariaLabel:u}){const{t:c}=_e.useTranslation(),d=rn("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const m=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,p=u??c("progress.steps",{current:m+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),f={};if(a&&(f["--pi-inactive-bg"]=a),r&&(f["--pi-inactive-color"]=r),s&&(a||(f["--pi-inactive-bg"]=Dy),r||(f["--pi-inactive-color"]="var(--color-white)")),i==="dot")return n.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:f,role:l?"status":"img","aria-label":l?void 0:p,children:[l&&n.jsx("span",{style:lu,children:p}),Array.from({length:e}).map((x,h)=>n.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${h<m?" done":h===m?" active":""}`},h))]});const y=l?n.jsx("span",{role:"status",style:lu,children:p}):null;return d?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:f,role:"list","aria-label":p,children:n.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[m+1," / ",e]})}),y]}):n.jsxs(n.Fragment,{children:[y,n.jsx("div",{className:"progress-indicator",style:f,role:"list","aria-label":p,children:Array.from({length:e}).map((x,h)=>n.jsx("span",{role:"listitem","aria-current":h===m?"step":void 0,className:`progress-indicator-dot ${h<m?" done":h===m?" active":""} body-3`,children:h+1},h))})]})}function Ey(e){if(!e)return[];const t=[];let a=0,r="";for(const s of e.trim()){if(s==="("?a++:s===")"&&a--,/\s/.test(s)&&a===0){r&&(t.push(r),r="");continue}r+=s}return r&&t.push(r),t}function Sy({children:e,className:t,style:a,rowLabel:r,onRowClick:s}){return n.jsx("div",{role:"cell",className:t?`table-cell ${t}`:"table-cell",style:a,children:r&&s?n.jsx("button",{type:"button",className:"table-cell__row-button","aria-label":r,children:e}):e})}function Ao({variant:e="default",children:t,className:a,draggable:r,onClick:s,onMouseEnter:i,onMouseLeave:l,onDragStart:u,onDragEnd:c,expandedContent:d,colSpan:m,describedBy:p,rowHasButton:f}){const y=o.useCallback(x=>{s&&x.target===x.currentTarget&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),s())},[s]);return e==="loading"?n.jsx("div",{role:"presentation",className:"table-row-wrap",children:n.jsx("div",{role:"row",className:"table-row table-row--loading",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row__full-cell",children:n.jsx($a,{size:28})})})}):e==="empty"?n.jsx("div",{role:"presentation",className:"table-row-wrap",children:n.jsx("div",{role:"row",className:"table-row table-row--empty body-3",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row__full-cell",children:t})})}):n.jsxs("div",{role:"presentation",className:"table-row-wrap",children:[n.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:s,onKeyDown:s?y:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:u,onDragEnd:c,role:"row",tabIndex:s&&!f?0:void 0,"aria-describedby":s&&!f?p:void 0,children:t}),d&&n.jsx("div",{role:"row",className:"table-row-expand",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row-expand__cell",children:d})})]})}function jy({dir:e}){return n.jsx(e==="asc"?As:Bs,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Ty({children:e,onClick:t,className:a,sortDir:r,ariaSort:s,onResizeStart:i}){const l=n.jsxs(n.Fragment,{children:[e,r&&n.jsx(jy,{dir:r})]});return n.jsxs("div",{onClick:t,role:"columnheader","aria-sort":s,className:Ae("table-field body-3",a,r?"table-field--sorted":"",i?"table-field--resizable":""),children:[t?n.jsx("button",{type:"button",className:"table-field__button",children:l}):l,i&&n.jsx("span",{className:"table-field__resizer",onPointerDown:i,onClick:u=>u.stopPropagation(),"aria-hidden":"true"})]})}function ko({fields:e=[],headerGroups:t,items:a=[],renderRow:r,onRowClick:s,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:u,onRowDragStart:c,onRowDragEnd:d,draggingId:m,gridTemplateColumns:p,mobileGridTemplateColumns:f,resizable:y=!1,resizeMode:x="grow",resizeStorageKey:h,size:g="small",title:_,icon:C,count:w,collapsed:b=!1,onToggleCollapse:B,headerActions:v,empty:k,loading:A,dragOver:N=!1,onDragOver:E,onDragLeave:D,onDrop:H,renderExpandedRow:R,expandedId:G}){const{t:L}=_e.useTranslation(),M=o.useId(),I=`table-title-${M}`,Y=`table-row-hint-${M}`,Z=rn("(max-width: 767px)"),z=f&&Z?f:null,W=y&&!Z,$=48,U=o.useRef(()=>$),S=h?`table-cols:${h}`:null,P=o.useRef(null),j=o.useRef(null),F=o.useRef(null),O=o.useRef(null),[q,Q]=o.useState(!1),oe=o.useCallback(()=>{const X=F.current;X&&Q(X.scrollWidth>X.clientWidth+1)},[]),se=o.useCallback((X,ue)=>{const we=X.current;we&&j.current&&j.current.unobserve(we),X.current=ue,ue?(!j.current&&typeof ResizeObserver<"u"&&(j.current=new ResizeObserver(()=>oe())),j.current?.observe(ue)):!F.current&&!O.current&&(j.current?.disconnect(),j.current=null),oe()},[oe]),te=o.useCallback(X=>se(F,X),[se]),le=o.useCallback(X=>se(O,X),[se]);o.useEffect(()=>{oe()}),o.useEffect(()=>{if(typeof window>"u")return;const X=typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>oe()):null;return window.addEventListener("resize",oe),()=>{X!=null&&cancelAnimationFrame(X),window.removeEventListener("resize",oe)}},[oe]);const De=o.useRef(()=>!1),V=o.useRef([]),ne=o.useRef(null),fe=X=>{if(!X||typeof window>"u")return null;try{const ue=JSON.parse(window.localStorage.getItem(X)??"null");return Array.isArray(ue)&&ue.length>0&&ue.every(we=>typeof we=="number"&&Number.isFinite(we)&&we>0)?ue:null}catch{return null}},[Ee,ge]=o.useState(()=>fe(S)),[ae,de]=o.useState(S);ae!==S&&(de(S),ge(fe(S)));const pe=o.useRef(Ee);o.useEffect(()=>{pe.current=Ee},[Ee]);const he=o.useCallback(X=>{const ue=ne.current;if(!ue)return;const we=pe.current;if(we){const Ne=[...we];if(ue.next!=null&&ue.startWNext!=null){const Ve=X.clientX-ue.startX,et=Math.max(U.current(ue.index)-ue.startW,Math.min(ue.startWNext-U.current(ue.next),Ve));Ne[ue.index]=ue.startW+et,Ne[ue.next]=ue.startWNext-et}else Ne[ue.index]=Math.max(U.current(ue.index),ue.startW+(X.clientX-ue.startX));pe.current=Ne,ge(Ne)}},[]),be=o.useCallback(()=>{if(ne.current=null,window.removeEventListener("pointermove",he),window.removeEventListener("pointerup",be),window.removeEventListener("pointercancel",be),document.body.style.cursor="",document.body.style.userSelect="",S&&pe.current)try{window.localStorage.setItem(S,JSON.stringify(pe.current))}catch{}},[he,S]),Pe=o.useCallback((X,ue)=>{ue.preventDefault(),ue.stopPropagation();const we=P.current;if(!we)return;const Ne=Array.from(we.children).map(et=>et.getBoundingClientRect().width),Ve=x==="fit"?e.findIndex((et,pt)=>pt>X&&et.resizable!==!1):-1;ne.current=Ve>=0?{index:X,startX:ue.clientX,startW:Ne[X],next:Ve,startWNext:Ne[Ve]}:{index:X,startX:ue.clientX,startW:Ne[X]},pe.current=Ne,ge(Ne),window.addEventListener("pointermove",he),window.addEventListener("pointerup",be),window.addEventListener("pointercancel",be),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[he,be,x,e]),$e=o.useCallback(()=>{const X=P.current,ue=X?.closest(".table-wrap");if(!X||!ue)return;const we=ue.style.getPropertyValue("--table-grid-cols");ue.style.setProperty("--table-grid-cols",e.map((Ue,We)=>De.current(We)?V.current[We]:"max-content").join(" "));const Ne=Array.from(ue.querySelectorAll(".table-row")).filter(Ue=>!Ue.classList.contains("table-row--loading")&&!Ue.classList.contains("table-row--empty")),Ve=e.map((Ue,We)=>{let Ke=X.children[We]?.getBoundingClientRect().width??0;for(const bt of Ne){const Ye=bt.children[We];Ye&&(Ke=Math.max(Ke,Ye.getBoundingClientRect().width))}const rt=De.current(We)?parseFloat(V.current[We]):NaN;return Number.isFinite(rt)?rt:Math.max(U.current(We),Math.ceil(Ke))}),et=window.getComputedStyle(X),pt=X.clientWidth-(parseFloat(et.paddingLeft)||0)-(parseFloat(et.paddingRight)||0);we?ue.style.setProperty("--table-grid-cols",we):ue.style.removeProperty("--table-grid-cols");let ut=Ve;const ft=Ve.reduce((Ue,We,Ke)=>Ue+(De.current(Ke)?We:0),0),gt=Ve.reduce((Ue,We,Ke)=>Ue+(De.current(Ke)?0:We),0),Qe=pt-ft;if(pt>0&&gt>0&&Qe>0){const Ue=Qe/gt;ut=Ve.map((Ke,rt)=>De.current(rt)?Ke:Math.max(U.current(rt),Math.round(Ke*Ue)));const We=Math.round(Qe-ut.reduce((Ke,rt,bt)=>Ke+(De.current(bt)?0:rt),0));if(We!==0){let Ke=-1;ut.forEach((rt,bt)=>{!De.current(bt)&&(Ke<0||rt>ut[Ke])&&(Ke=bt)}),Ke>=0&&(ut[Ke]=Math.max(U.current(Ke),ut[Ke]+We))}}if(ge(ut),S)try{window.localStorage.setItem(S,JSON.stringify(ut))}catch{}},[e,x,S]);o.useEffect(()=>()=>{ne.current&&(window.removeEventListener("pointermove",he),window.removeEventListener("pointerup",be),window.removeEventListener("pointercancel",be),document.body.style.cursor="",document.body.style.userSelect="")},[he,be]);const Ie=Ey(p),Fe=Ie.filter(X=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(X));Fe.length>0&&Gt(`table-content-track:${p}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${Fe.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${p})`);const Oe=e.findIndex(X=>!!X.sortDir);e.filter(X=>!!X.sortDir).length>1&&Gt("table-multi-sort","[ihabdevteam-core] Table \uC758 fields \uC5D0 sortDir \uC774 \uB458 \uC774\uC0C1 \uC788\uC2B5\uB2C8\uB2E4. aria-sort \uB294 \uD45C \uD558\uB098\uC5D0 \uD55C \uCE78\uB9CC \uAC00\uC9C8 \uC218 \uC788\uC5B4 \uCCAB \uCE78\uB9CC \uBC29\uD5A5\uC73C\uB85C \uC54C\uB9AC\uACE0 \uB098\uBA38\uC9C0\uB294 none \uC73C\uB85C \uB461\uB2C8\uB2E4.");const dt=X=>X===Oe?e[X].sortDir==="asc"?"ascending":"descending":e[X].onClick?"none":void 0,lt=X=>/^\d+(\.\d+)?px$/.test(Ie[X]??""),ot=X=>{const ue=Ie[X]??"",we=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(ue)??/^(\d+(?:\.\d+)?)px$/.exec(ue);return we?parseFloat(we[1]):$};De.current=lt,U.current=ot,V.current=Ie;const ct=X=>x==="fit"&&!lt(X)?"fr":"px",ke=Ee&&Ee.length===e.length&&!Z&&(x==="fit"||a.length>0),He=z??(ke?e.map((X,ue)=>X.resizable===!1&&Ie[ue]?Ie[ue]:`${Ee[ue]}${ct(ue)}`).join(" "):p),Be=He?{"--table-grid-cols":He}:void 0,Xe=_!==void 0;return n.jsxs("div",{ref:te,className:`table-wrap table-wrap--${g}${W?" table-wrap--resizable":""}${N?" table-wrap--dragover":""}${b?" table-wrap--collapsed":""}`,style:Be,onDragOver:E,onDragLeave:D,onDrop:H,tabIndex:q?0:void 0,role:q?"region":void 0,"aria-label":q?typeof _=="string"?_:L("table.scrollRegion","\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C"):void 0,children:[!!s&&n.jsx("span",{id:Y,className:"table-row-hint",children:L("table.rowActionHint","\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4")}),n.jsxs("div",{ref:le,role:"table","aria-labelledby":Xe&&typeof _=="string"?I:void 0,className:"table body-2",children:[Xe&&n.jsxs("div",{className:Ae("table-header",B&&"table-header--clickable"),onClick:B,role:"caption",children:[B&&n.jsx(me,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:b?"chevron-right":"chevron-down",ariaLabel:b?L("common.expand","\uD3BC\uCE58\uAE30"):L("common.collapse","\uC811\uAE30"),ariaExpanded:!b,className:"table-header__chevron"}),C&&n.jsx(tt,{icon:C,label:typeof _=="string"?_:void 0,className:"table-header__icon"}),n.jsx("span",{id:I,className:"table-header__title h5b",children:_}),w!==void 0&&n.jsx("span",{className:"table-header__count body-3b",children:w}),v&&n.jsx("span",{className:"table-header__actions",onClick:X=>X.stopPropagation(),children:v})]}),!b&&n.jsxs(n.Fragment,{children:[t&&t.length>0&&n.jsx("div",{role:"row",className:"table-fields table-fields--groups",children:t.map((X,ue)=>n.jsx("div",{role:"columnheader","aria-colspan":X.span,className:Ae("table-field body-3",X.className),style:{gridColumn:`span ${X.span}`},children:X.label},ue))}),n.jsxs("div",{role:"presentation",className:Ae("table-fields-strip",W&&"table-fields-strip--resizable"),children:[n.jsx("div",{role:"row",className:"table-fields",ref:P,children:e.map((X,ue)=>n.jsx(Ty,{onClick:X.onClick,className:X.className,sortDir:X.sortDir,ariaSort:dt(ue),onResizeStart:W&&ue<e.length-1&&X.resizable!==!1&&(x!=="fit"||e.some((we,Ne)=>Ne>ue&&we.resizable!==!1))?we=>Pe(ue,we):void 0,children:X.label},ue))}),W&&n.jsx(me,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:L("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:L("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:$e})]}),n.jsx("div",{role:"rowgroup",className:"table-body",children:A?n.jsx(Ao,{variant:"loading",colSpan:e.length||void 0}):a.length===0&&k?n.jsx(Ao,{variant:"empty",colSpan:e.length||void 0,children:k}):a.map((X,ue)=>{const we=m!=null&&X.id===m,Ne=!!s&&(i?i(X):!0),Ve=G!=null&&X.id!=null&&(G instanceof Set?G.has(X.id)||[...G].some(et=>String(et)===String(X.id)):String(X.id)===String(G));return n.jsx(Ao,{className:`${Ne?" table-row--clickable":""}${c?" table-row--draggable":""}${we?" table-row--dragging":""}`.trim(),draggable:!!c,onClick:Ne?()=>s(X):void 0,colSpan:e.length||void 0,rowHasButton:r(X).some(et=>!!et.rowLabel),describedBy:Y,onMouseEnter:l?et=>l(X,et):void 0,onMouseLeave:u?et=>u(X,et):void 0,onDragStart:c?et=>c(X,et):void 0,onDragEnd:d?et=>d(X,et):void 0,expandedContent:Ve&&R?R(X):void 0,children:r(X).map((et,pt)=>n.jsx(Sy,{className:et.className,style:et.style,rowLabel:Ne?et.rowLabel:void 0,onRowClick:Ne?()=>s(X):void 0,children:et.content},pt))},X.id!=null?`${typeof X.id}:${X.id}`:`__idx:${ue}`)})})]})]})]})}function cu(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const ia=e=>e==null?"":String(e).trim();function No(e,t,a){const r=[ia(e),ia(t),ia(a)];for(;r.length>0&&r[r.length-1]==="";)r.pop();return r.join(".")}function My(e,t,a){const r=ia(e);return r?`${r}-${ia(t).padStart(2,"0")}-${ia(a).padStart(2,"0")}`:""}const Ly={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function $y(e,t){const a=Ly[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}function du(e,t){return t!=="wornAt"?String(e[t]??""):My(e.wornYear,e.wornMonth,e.wornDay)}function Ry({rows:e,loading:t,onSelect:a,onDelete:r,onWear:s,onRelease:i,onAdd:l}){const{t:u}=_e.useTranslation(),c=h=>h==="\uC88C"?u("device.direction.left","\uC88C"):u("device.direction.right","\uC6B0"),{\uC815\uB82C:d,\uCE78:m}=mb(),p=o.useMemo(()=>{if(!d)return e;const{key:h,asc:g}=d;return[...e].sort((_,C)=>{if(h==="worn"){const w=Number(C.worn)-Number(_.worn);return g?w:-w}return ro(du(_,h),du(C,h),g)})},[e,d]),{pageRows:f,pageSizeProps:y,paginationProps:x}=pb(p,d);return n.jsxs("div",{className:"dlp-side-table",children:[n.jsx(go,{count:{value:e.length,unit:u("customers.device.unit","\uAC1C")},pageSize:y,pagination:x,actions:l&&n.jsx(me,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:u("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:l})}),n.jsx(ko,{loading:t,resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...m(u("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},m(u("device.direction.label","\uBC29\uD5A5"),"side"),m(u("device.deviceType","\uC885\uB958"),"device"),m(u("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),m(u("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),m(u("device.productName","\uC81C\uD488\uBA85"),"productName"),m(u("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...r?[{label:"",resizable:!1}]:[]],items:f.map((h,g)=>({id:h.id??`${h.side}-${g}`,row:h})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${r?" 80px":""}`,renderRow:({row:h})=>[{content:n.jsx("span",{className:"dlp-worn-check",onClick:g=>g.stopPropagation(),children:n.jsx(Gl,{checked:h.worn,disabled:h.worn?!i:!s,ariaLabel:h.worn?u("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):u("customers.device.wear","\uCC29\uC6A9"),onChange:g=>{g?s?.(h):i?.(h)}})})},{content:n.jsx("span",{children:c(h.side)})},{content:h.device?n.jsx(wt,{size:"small",variant:cu(h.device),fill:"soft",label:$y(h.device,u)}):n.jsx("span",{})},{content:n.jsx("span",{children:h.brand})},{content:n.jsx("span",{children:h.fitType||"-"})},{content:n.jsx("span",{children:h.productName||"-"})},{content:n.jsx("span",{className:"dlp-date",children:No(h.wornYear,h.wornMonth,h.wornDay)||"-"})},...r?[{content:n.jsx("span",{className:"dlp-row-actions",children:n.jsx(me,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:u("common.delete","\uC0AD\uC81C"),onClick:g=>{g?.stopPropagation(),r(h)}})})}]:[]],onRowClick:({row:h})=>a(h),empty:u("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function pu(e,t){return e?{role:t?.role??"button",tabIndex:0,...t?.selected===void 0?{}:{"aria-selected":t.selected},onKeyDown:a=>{a.target===a.currentTarget&&(a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a)))}}:{}}function Py(e,t){return new Date(e,t+1,0).getDate()}function Fy(e,t){return new Date(e,t,1).getDay()}function Iy({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:r,today:s}){const{t:i,i18n:l}=_e.useTranslation(),u=o.useMemo(()=>i("calendar.dow",{returnObjects:!0}),[i]),c=Wr(s),[d,m]=o.useState(()=>Number(c.slice(0,4))),[p,f]=o.useState(()=>Number(c.slice(5,7))-1),[y,x]=o.useState(null),h=o.useRef(null),g=o.useMemo(()=>{const v={};return e.forEach(k=>{v[k.date]||(v[k.date]=[]),v[k.date].push(k)}),v},[e]),_=o.useMemo(()=>{const v=Py(d,p),k=Fy(d,p),A=[];for(let N=0;N<k;N++)A.push(null);for(let N=1;N<=v;N++)A.push(N);for(;A.length<35;)A.push(null);return A},[d,p]),C=o.useCallback(()=>{p===0?(m(v=>v-1),f(11)):f(v=>v-1)},[p]),w=o.useCallback(()=>{p===11?(m(v=>v+1),f(0)):f(v=>v+1)},[p]),b=v=>`${d}-${String(p+1).padStart(2,"0")}-${String(v).padStart(2,"0")}`,B=v=>b(v)===c;return n.jsxs("div",{children:[n.jsxs("div",{className:"calendar-nav",children:[n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:C,"aria-label":i("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(tt,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),n.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:i("calendar.yearMonth",{year:d,month:p+1})}),n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:w,"aria-label":i("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(tt,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),n.jsxs("div",{className:"calendar-nav__legend",children:[n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),n.jsx("span",{className:"caption-1",children:i("calendar.legend.visited","\uBC29\uBB38")}),n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),n.jsx("span",{className:"caption-1",children:i("calendar.legend.scheduled","\uC608\uC57D")}),n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),n.jsx("span",{className:"caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),n.jsxs("div",{className:"calendar-grid",children:[u.map(v=>n.jsx("div",{className:"calendar-day-header body-3",children:v},v)),_.map((v,k)=>{if(v===null)return n.jsx("div",{className:"calendar-cell empty"},`empty-${k}`);const A=v,N=b(A),E=g[N]??[],D=YC(N,l.language),H=y===N;return n.jsxs("div",{className:`calendar-cell${B(A)?" today":""}${H?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?i("calendar.addOnDate",{date:N}):void 0,"aria-current":B(A)?"date":void 0,onClick:r?()=>r(N):void 0,onKeyDown:r?R=>{R.target===R.currentTarget&&(R.key!=="Enter"&&R.key!==" "||(R.preventDefault(),r(N)))}:void 0,onDragOver:a?R=>{R.preventDefault(),x(N)}:void 0,onDragLeave:a?R=>{R.currentTarget.contains(R.relatedTarget)||x(null)}:void 0,onDrop:a?R=>{R.preventDefault(),h.current!=null&&(a(h.current,N),h.current=null),x(null)}:void 0,children:[n.jsx("div",{className:"calendar-cell__number body-3",children:A}),E.length>0&&(()=>{const R=[{key:"visited",\uB9D0:i("calendar.legend.visited","\uBC29\uBB38"),\uC218:E.filter(L=>(L.status??"visited")==="visited").length},{key:"scheduled",\uB9D0:i("calendar.legend.scheduled","\uC608\uC57D"),\uC218:E.filter(L=>L.status==="scheduled").length},{key:"noVisit",\uB9D0:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38"),\uC218:E.filter(L=>L.status==="noVisit").length}].filter(L=>L.\uC218>0),G=R.length===1&&R[0].key==="visited"?i("calendar.visitCount",{count:E.length,defaultValue:"\uBC29\uBB38 {{count}}\uAC74"}):R.map(L=>i("calendar.statusCount",{label:L.\uB9D0,count:L.\uC218,defaultValue:"{{label}} {{count}}\uAC74"})).join(" \xB7 ");return n.jsxs("span",{className:"calendar-cell__visit-count caption-1","aria-label":`${D} ${G}`,children:[R.map(L=>n.jsx("span",{className:`calendar-cell__visit-dot calendar-cell__visit-dot--${L.key}`,"aria-hidden":"true"},L.key)),E.length]})})(),n.jsx("div",{className:"calendar-cell__badges",children:E.map((R,G)=>n.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${R.status==="noVisit"?" calendar-visit-badge--no-visit":R.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?L=>{h.current=R.id,L.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{h.current=null,x(null)}:void 0,onClick:t?L=>{L.stopPropagation(),t(R)}:void 0,...pu(t?()=>t(R):void 0),"aria-label":[D,R.time?fi(R.time,i):null,R.customer,i(R.status==="noVisit"?"calendar.legend.noVisit":R.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[R.time&&n.jsx("span",{className:"calendar-visit-badge__time body-3",children:fi(R.time,i)}),n.jsx("span",{className:"calendar-visit-badge__name body-3",children:R.customer}),R.status==="noVisit"&&n.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},R.id??G))})]},A)})]})]})}const Oy={page:"h3",pagePopup:"h4",popup:"h5"};function la({type:e="page",title:t,headingLevel:a=2,icon:r,action:s,disc:i,children:l,inGrid:u=!1,className:c,style:d}){const m=Oy[e],p=t||i||s||r,f=a?`h${a}`:"div";return n.jsxs("div",{className:Ae("section",`section--${e}`,u&&"section--in-grid",c),style:d,children:[p&&n.jsxs("div",{className:"section__header",children:[n.jsxs("div",{className:"section__title-row",children:[r&&n.jsx(tt,{icon:r,label:typeof t=="string"?t:void 0,className:"section__icon"}),n.jsxs("div",{className:"section__title-group",children:[t&&n.jsx(f,{className:`section__title ${m}`,children:t}),i&&n.jsx("div",{className:"section__disc body-3",children:i})]})]}),s&&n.jsx("div",{className:"section__action",children:s})]}),l]})}let Do=null,mu=!1;function hu(){if(mu||typeof document>"u")return;mu=!0,document.addEventListener("keydown",t=>{t.metaKey||t.ctrlKey||t.altKey||(Do="keyboard")},!0);const e=()=>{Do="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}hu();function or(){return hu(),Do==="keyboard"}const sr=20;function Hy(e){const{t}=_e.useTranslation(),{type:a,trainingDatas:r,depth:s,renderPopup:i,completedIds:l,selectedIds:u,onItemComplete:c,size:d,useDescriptionTooltip:m,onRemove:p,onMore:f,sectionType:y="page"}=e||{},[,x]=o.useState(0),h=typeof r<"u"?Array.isArray(r)?r:[]:[],g=h.length,[_,C]=o.useState(Math.min(g,sr)),w=o.useMemo(()=>Array.isArray(s)?[...s,a?.label].filter(Boolean).join(" \xB7 "):[s||"",a?.label].filter(Boolean).join(" \xB7 "),[s,a?.label]);o.useEffect(()=>{C(Math.min(g,sr))},[g]),sl("speechear.data.updated",()=>x(k=>k+1));const b=o.useRef(null),B=o.useRef(null);function v(){const k=document.activeElement;B.current=or()&&k&&k.closest?.(".training-block__more")?_:null,C(A=>Math.min(g,A+sr))}return o.useEffect(()=>{const k=B.current;if(k==null)return;B.current=null;const A=document.activeElement;A&&A!==document.body||b.current?.querySelectorAll(".training-block-button")[k]?.focus()},[_]),n.jsxs(la,{type:y,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[n.jsx("div",{className:"training-list",ref:b,children:(h||[]).slice(0,_).map((k,A)=>{const N=k;return n.jsx(ho,{index:A,type:a,trainingData:N,depth:w,renderPopup:i,completedIds:l,selectedIds:u,size:d,useDescriptionTooltip:m,onRemove:typeof p=="function"&&u!=null&&N?.id!=null&&u.has(String(N.id))?()=>p(N):void 0,onComplete:typeof c=="function"&&N?.id!=null?()=>c(String(N.id)):void 0,onMore:typeof f=="function"?E=>f(N,E):void 0},N?.id!=null?`${a?.key||"t"}-${String(N.id)}`:`${a?.key||"t"}-${A}`)})}),g>sr&&_<g&&n.jsx("div",{className:"training-block__more",children:n.jsx(me,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:v,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function zy(e){let t=0;const a=r=>{Array.isArray(r)?r.forEach(a):r!=null&&r!==!1&&r!==!0&&r!==""&&t++};return a(e),t}function Vy({gap:e=10,count:t,className:a,children:r}){const s=o.useRef(null),[i,l]=o.useState({\uD3ED:0,\uCE74\uB4DC:0}),u=t??zy(r);o.useLayoutEffect(()=>{const f=s.current;if(!f)return;const y=()=>{const h=f.style.maxWidth;f.style.maxWidth="none";const g=f.clientWidth;f.style.maxWidth=h;const _=f.firstElementChild?.offsetWidth??0;l(C=>C.\uD3ED===g&&C.\uCE74\uB4DC===_?C:{\uD3ED:g,\uCE74\uB4DC:_})};if(y(),typeof ResizeObserver>"u")return;const x=new ResizeObserver(y);return x.observe(f),()=>x.disconnect()},[u,e]);const c=i.\uCE74\uB4DC>0?i.\uCE74\uB4DC:0,d=c>0?SC(i.\uD3ED,c,e):0,m=d>0?jC(u,d):0,p={"--block-grid-gap":`${e}px`,...m>0?{"--block-grid-cols":m,"--block-grid-card":`${c}px`}:{}};return n.jsx("div",{ref:s,className:Ae("training-block-grid",m>0&&"training-block-grid--measured",a),style:p,"data-cols":m>0?m:void 0,children:r})}function Eo(e){const t=o.useRef(null),[a,r]=o.useState(!!e),[s,i]=o.useState(!1);o.useEffect(()=>{i(!1);const c=t.current;r(!!e&&!(c?.complete&&c.naturalWidth>0))},[e]);const l=o.useCallback(()=>r(!1),[]),u=o.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:t,loading:a,failed:s,hasImage:!!e&&!s,onLoad:l,onError:u}}var Wy='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2256_7437)">%0A<g opacity="0.1">%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23111111"/>%0A</g>%0A<path d="M57.1426 17.8571H35.7141C25.8533 17.8571 17.8569 25.8536 17.8569 35.7143V44.0643L10.9926 51.6179C10.5819 52.0679 10.6283 52.775 11.0998 53.1643C13.1783 54.8929 15.4641 56.2214 17.8569 57.1679C17.8676 63.925 21.6283 69.8 27.1712 72.825C25.7855 70.2893 24.9998 67.3786 24.9998 64.2821V35.7107C24.9998 29.7929 29.7962 24.9964 35.7141 24.9964H64.2855C67.3783 24.9964 70.2891 25.7857 72.8283 27.1679C69.7998 21.6179 63.9105 17.8536 57.1426 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M72.8285 27.1714C74.2142 29.7072 75 32.6179 75 35.7143V64.2857C75 70.2036 70.2035 75 64.2857 75H35.7142C32.6214 75 29.7107 74.2107 27.1714 72.8286C30.2 78.3786 36.0892 82.1429 42.8571 82.1429H58.9678C59.9321 82.1429 60.7142 82.925 60.7142 83.8893C60.7142 84.9107 61.5892 85.7215 62.6071 85.6322C73.5535 84.675 82.1428 75.4822 82.1428 64.2857V42.8572C82.1428 36.0893 78.3785 30.2 72.8285 27.1714Z" fill="%23111111"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="%23111111"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2323 35.6679 46.2859 35.8464 45.4073 36.2679C44.518 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2037 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2256_7437">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const qy=Wy,So=o.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:r=!1,selected:s=!1,onSelect:i,flipDelay:l=0,hideLabel:u=!1,hideAudio:c=!1,orderRank:d=null},m){const{t:p}=_e.useTranslation(),f=e.word||e.title||"",y=t||!f,x=e.audio??e.sound??e.audioKey,h=e.subLabel||e.pronunciation||"",g=e.colloquialLabel||"",[_,C]=o.useState({label:f,subLabel:h,colloquialLabel:g,homonum:e.homonum});f&&(_.label!==f||_.subLabel!==h||_.colloquialLabel!==g||!Object.is(_.homonum,e.homonum))&&C({label:f,subLabel:h,colloquialLabel:g,homonum:e.homonum});const w=o.useRef(null),b=rn("(max-width: 767px)"),[B,v]=o.useState(!1),k=`${typeof x=="string"?x:x?.src??""}\0${f}`,[A,N]=o.useState({for:"",url:""}),E=A.for===k?A.url:"",D=ui(),H=e.textOnly??(!e.image&&!!_.label&&!!D&&D.entries.length>0&&!D.byWord.has(_.label)),R=H?"":Qn()?.(_.label,_.homonum)??e.image??"",{imgRef:G,loading:L,hasImage:M,onLoad:I,onError:Y}=Eo(R);o.useEffect(()=>{let F=!1;return(async()=>{if(x){if(typeof x=="string"){if(x.startsWith("http")||x.includes("/")){N({for:k,url:x});return}}else if(typeof x=="object"&&!Array.isArray(x)){const q=x.src;if(q){N({for:k,url:q});return}}}const O=$r();if(O&&f)try{const q=await Promise.resolve(O(f));!F&&q&&N({for:k,url:q})}catch{}})(),()=>{F=!0}},[x,f,k]);const Z=o.useRef(!0),z=o.useRef(null);o.useEffect(()=>(Z.current=!0,()=>{Z.current=!1,z.current&&tr(z.current),z.current=null;try{w.current?.pause()}catch{}w.current=null}),[]);const W=o.useCallback(()=>new Promise(F=>{if(typeof window<"u"&&window.speechSynthesis&&f){v(!0),window.speechSynthesis.cancel();const O=new SpeechSynthesisUtterance(f);O.lang="ko-KR",O.onend=()=>{v(!1);try{a?.()}catch{}F()},O.onerror=()=>{v(!1),F()},window.speechSynthesis.speak(O)}else F()}),[f,a]),$=o.useCallback(F=>{const O=mo(F,q=>{if(v(!1),q)try{a?.()}catch{}});return w.current=O.el,O.done},[a]),U=o.useCallback(async()=>{if(t||!Z.current)return;const F=()=>{z.current===F&&(z.current=null);try{w.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}v(!1)},O=er(F);z.current=F;try{window.speechSynthesis?.cancel()}catch{}try{if(E&&(v(!0),await $(E)))return;const q=dC();if(q&&f)try{const Q=await Promise.resolve(q(f));if(!Z.current||z.current!==F||Q&&(v(!0),await $(Q)))return}catch{}if(!Z.current||z.current!==F)return;await W()}finally{O(),z.current===F&&(z.current=null)}},[t,E,f,$,W]);o.useImperativeHandle(m,()=>({play:()=>U()}),[U]);const S=F=>F.stopPropagation(),P=o.useCallback(F=>{if(F.stopPropagation(),!t){if(B){try{w.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}v(!1);return}U()}},[t,B,U]),j=Ae("training-word-card",t?"training-word-card--disabled":"",y?"training-word-card--flipped":"",r?"training-word-card--selectable":"",s?"training-word-card--selected":"");return n.jsx("div",{className:j,onClick:r&&!t?i:void 0,role:r?"button":void 0,"aria-pressed":r?s:void 0,tabIndex:r&&!t?0:void 0,"aria-disabled":r&&t?!0:void 0,onKeyDown:r&&!t?F=>{F.target===F.currentTarget&&(F.key==="Enter"||F.key===" "||F.key==="Spacebar")&&(F.preventDefault(),i?.())}:void 0,children:n.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:y?"0ms":`${l}ms`},children:[n.jsxs("div",{className:"training-word-card__front",children:[s&&n.jsx("div",{className:"training-word-card__selected-badge",onClick:S,children:n.jsx(wt,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?p("training.nthSelected",{n:d}):p("training.selected","\uC120\uD0DD\uB428")})}),n.jsx("div",{className:"training-word-card__image-wrap",children:H?n.jsx("div",{className:"training-word-card__text-face",children:_.label}):M?n.jsxs(n.Fragment,{children:[L&&n.jsx("div",{className:"training-word-card__spinner"}),n.jsx("img",{ref:G,className:"training-word-card__image",src:R,alt:_.label||p("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:L?0:1},onLoad:I,onError:Y})]}):n.jsx("div",{className:"training-word-card__placeholder"})}),!u&&n.jsxs("div",{className:"training-word-card__body",children:[!H&&n.jsx("div",{className:"training-word-card__word",children:_.label}),_.subLabel&&n.jsxs("div",{className:"training-word-card__pronunciation",children:["[",_.subLabel,"]"]}),_.colloquialLabel&&n.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",_.colloquialLabel,"]"]})]}),!c&&n.jsx("div",{className:"training-word-card__bottom",onClick:r?S:void 0,children:n.jsx(me,{htmlType:"button",size:b?40:48,type:b?"dot":"bar",icon:B?"pause":"play",label:b?void 0:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:B,onClick:P,disabled:t,ariaLabel:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),n.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:n.jsx("img",{src:qy,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),Uy=260;function $n(e){const{t}=_e.useTranslation(),{title:a,subtitle:r,headerActions:s,headerSegment:i,children:l,buttons:u,footer:c,footerStart:d,footerEnd:m,footerNote:p,footerNoteDivider:f=!1,footerClassName:y="",footerLayout:x="center",onClose:h,closeDisabled:g=!1,beforeClose:_,closeOnBackdrop:C=!0,className:w="",ariaLabel:b,useTitle:B=!0,inline:v=!1,size:k,layer:A="modal",height:N,fillBody:E=!1,resetScrollKey:D}=e||{},[H,R]=o.useState(!1),G=o.useRef(!1),L=o.useRef(null),M=o.useId(),I=o.useRef(null);o.useEffect(()=>{},[v,a,b,w]),o.useEffect(()=>{D!==void 0&&I.current&&(I.current.scrollTop=0)},[D]);const[Y,Z]=o.useState(!1);o.useEffect(()=>{const te=I.current;if(!te)return;const le=()=>Z(te.scrollHeight>te.clientHeight+1);if(le(),typeof ResizeObserver>"u")return;const De=new ResizeObserver(le);De.observe(te);const V=te.firstElementChild;return V&&De.observe(V),()=>De.disconnect()},[l,D]),o.useEffect(()=>{if(!v)return Hl()},[v]),o.useEffect(()=>{if(v)return;const te=document.activeElement,le=L.current;return Yr(le,te),le&&!le.contains(document.activeElement)&&(le.querySelector(Cn)??le).focus(),()=>{const De=document.activeElement;(!De||De===document.body||le&&le.contains(De))&&Zr(te)?.focus?.()}},[v]),Gr(L,!v);const z=o.useRef(!0),W=Xr(),$=o.useRef(null);o.useEffect(()=>(z.current=!0,()=>{z.current=!1,$.current&&(clearTimeout($.current),$.current=null)}),[]);const U=o.useCallback(()=>{!z.current||!G.current||(G.current=!1,R(!1))},[]),S=o.useCallback((te,le=!1)=>{if(le&&!z.current||G.current)return;G.current=!0,R(!0);const De=setTimeout(()=>{$.current===De&&($.current=null);let V;try{V=te?te():void 0}catch{U();return}V&&typeof V.then=="function"&&V.then(()=>{setTimeout(U,120)},U)},W?0:Uy);le&&($.current=De)},[U,W]),P=o.useCallback(()=>{g||_&&_()===!1||S(h,!0)},[S,h,g,_]),j=o.useRef(P);o.useEffect(()=>{j.current=P});const F=!v&&!!h;o.useEffect(()=>{if(F)return Vn(()=>j.current())},[F]);const O=F&&C,q=o.useRef(!1),Q=te=>{q.current=te.target===te.currentTarget},oe=te=>{const le=q.current;q.current=!1,le&&te.target===te.currentTarget&&P()},se=n.jsx("div",{className:`popup ${v?"popup--inline":""} ${A==="belowPagePopup"?"popup--below-page-popup":""} ${H?"popup--closing":""} ${w}`,onPointerDown:O?Q:void 0,onClick:O?oe:void 0,onMouseDown:v?void 0:te=>{te.target===te.currentTarget&&te.preventDefault()},children:n.jsxs("div",{ref:L,className:`popup-panel${k?` popup-panel--${k}`:""}${N!=null?" popup-panel--has-height":""}${E?" popup-panel--fill-body":""}`,style:N!=null?{"--popup-height":typeof N=="number"?`${N}px`:N}:void 0,tabIndex:-1,role:v?void 0:"dialog","aria-modal":v?void 0:!0,"aria-labelledby":!v&&B&&a?M:void 0,"aria-label":!v&&!(B&&a)?b??(typeof a=="string"?a:void 0):void 0,children:[!B&&(s||h)?n.jsxs("div",{className:"popup-close-float",children:[s,h&&n.jsx(me,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:P,disabled:g,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||s||h?n.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[n.jsxs("div",{className:"popup-header-main",children:[a?n.jsx("h2",{id:M,className:"popup-title popup-title--left h2",children:a}):n.jsx("span",{id:M,className:"popup-title popup-title--left h2"}),r&&n.jsx("span",{className:"popup-subtitle body-3",children:r})]}),i&&n.jsx("div",{className:"popup-header-segment",children:n.jsx(Bn,{size:40,ariaLabel:i.ariaLabel,options:i.options.map(te=>({key:te.key,label:te.label,disabled:te.disabled})),value:i.value,onChange:i.onChange})}),n.jsxs("div",{className:"popup-header-actions",children:[s,h&&n.jsx(me,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:P,disabled:g,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,n.jsx("div",{className:"popup-content",ref:I,tabIndex:Y?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof l=="function"?l({animateThen:S,closeWithAnimation:P}):l})}),p!=null&&p!==!1&&n.jsx("div",{className:`popup-footer-note caption-1${f?" popup-footer-note--divider":""}`,role:"note",children:p}),d||m?n.jsxs("div",{className:`popup-footer popup-footer--bar${y?` ${y}`:""}`,children:[n.jsx("div",{className:"popup-footer__start",children:typeof d=="function"?d({animateThen:S,closeWithAnimation:P}):d}),n.jsx("div",{className:"popup-footer__end",children:typeof m=="function"?m({animateThen:S,closeWithAnimation:P}):m})]}):u?.length?n.jsx("div",{className:`popup-footer popup-footer--buttons${x!=="center"?` popup-footer--${x}`:""}`,children:u.map((te,le)=>n.jsx(me,{htmlType:"button",size:48,variant:te.variant??"default",label:te.label,disabled:te.disabled,onClick:()=>te.onClick?.({animateThen:S,closeWithAnimation:P})},le))}):c?n.jsx("div",{className:`popup-footer${x!=="center"?` popup-footer--${x}`:""}${y?` ${y}`:""}`,children:typeof c=="function"?c({animateThen:S,closeWithAnimation:P}):c}):null]})});return v||typeof document>"u"?se:en.createPortal(se,document.body)}function ir(e){return String(e)}const lr=["o","triangle","x"];function Cu(e,t){return e===t?null:t}const fu={o:"circle",triangle:"triangle",x:"x"},gu={o:"main",triangle:"warn",x:"danger"};function Gy(e){let t=0,a=0,r=0;for(const i of Object.values(e))i==="o"?t++:i==="triangle"?a++:i==="x"&&r++;const s=t+a+r;return{marked:s,o:t,triangle:a,x:r,rate:s===0?null:(t+a*.5)/s}}function jo(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function bu(e){const t=[];let a=0;for(const r of e)t.push(a),a+=r;return t}function Ky(e,t){return!t&&e>0}const ua={landscape:{width:1123,height:794,printSize:"A4 landscape",printW:"297mm",printH:"210mm"},portrait:{width:794,height:1123,printSize:"A4 portrait",printW:"210mm",printH:"297mm"}};function Yy(e="landscape"){Gt("print-word-table-deprecated","[printWordTable] @deprecated \u2014 WordTablePopup renderButtons \uC758 print(\uB610\uB294 useWordTablePrint().print)\uB97C \uC4F0\uC138\uC694. \uC804\uC5ED \uC778\uC1C4\uB294 \uD654\uBA74\uC758 \uBAA8\uB4E0 \uB2E8\uC5B4\uD45C\uB97C \uD568\uAED8 \uCC0D\uC2B5\uB2C8\uB2E4.");const{printSize:t,printW:a,printH:r}=ua[e],s=document.createElement("style");s.textContent=`@page { size: ${t}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(s);const i=()=>{document.head.removeChild(s),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function yu(e,t){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(t)),r=[];for(let s=0;s<e.length;s+=a)r.push(e.slice(s,s+a));return r}const Zy={landscape:{1:{cols:1,rows:1},2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:3,rows:2},6:{cols:3,rows:2},7:{cols:4,rows:2},8:{cols:4,rows:2},9:{cols:5,rows:2},10:{cols:5,rows:2},11:{cols:4,rows:3},12:{cols:4,rows:3}},portrait:{1:{cols:1,rows:1},2:{cols:1,rows:2},3:{cols:1,rows:3},4:{cols:1,rows:4},5:{cols:1,rows:5},6:{cols:2,rows:3},7:{cols:2,rows:4},8:{cols:2,rows:4},9:{cols:2,rows:5},10:{cols:2,rows:5},11:{cols:3,rows:4},12:{cols:3,rows:4}}};function Xy(e,t){const a=Zy[e][t];if(a)return a;const r=Math.max(1,Math.ceil(t)),s=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,l;return e==="landscape"?(l=s,i=Math.ceil(r/l)):(i=s,l=Math.ceil(r/i)),(e==="landscape"?i<l:l<i)&&([i,l]=[l,i]),{cols:i,rows:l}}const Jy={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},vu={\uBA85:"\uBA85\uC0AC",\uB3D9:"\uB3D9\uC0AC",\uD615:"\uD615\uC6A9\uC0AC",\uBD80:"\uBD80\uC0AC",\uC218:"\uC218\uC0AC",\uAD00:"\uAD00\uD615\uC0AC",\uAC10:"\uAC10\uD0C4\uC0AC",\uC870:"\uC870\uC0AC",\uC811:"\uC811\uC0AC",\uC758:"\uC758\uC874\uBA85\uC0AC",\uB300:"\uB300\uBA85\uC0AC",\uBCF4\uB3D9:"\uBCF4\uC870\uB3D9\uC0AC",\uBCF4\uD615:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},xu={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function To(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function _u(e,t,a,r){if(r!=="\uC810\uC120")return{};const s=e%t,i=Math.floor(e/t),l=s<t-1,u=i<a-1;if(!l&&!u)return{};const c="#ddd",d=y=>`repeating-linear-gradient(to ${y}, ${c} 0, ${c} 5px, transparent 5px, transparent 10px)`,m=[],p=[],f=[];return l&&(m.push(d("bottom")),p.push("1px 100%"),f.push("right center")),u&&(m.push(d("right")),p.push("100% 1px"),f.push("center bottom")),{backgroundImage:m.join(", "),backgroundSize:p.join(", "),backgroundPosition:f.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const Qy=280,e5=240,t5=280,n5=400,a5=120,r5=280;function wu(e,t){const a=o.useRef(null),[r,s]=o.useState(1),[i,l]=o.useState(0),u=o.useCallback((c,d)=>{if(!(c>0))return;const m=c/e,p=t&&d>0?d/t:1/0,f=Math.min(1,m,p);s(f),l(Math.max(0,(c-e*f)/2))},[e,t]);return o.useEffect(()=>{const c=a.current;if(!c)return;const d=t?c.parentElement??c:c;if(u(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const m=new ResizeObserver(([p])=>u(p.contentRect.width,p.contentRect.height));return m.observe(d),()=>m.disconnect()},[u,t]),{scalerRef:a,scale:r,offset:i}}const o5={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},s5=400,Bu=8;function Au({label:e,subLabel:t,colloquialLabel:a,homonum:r,showWord:s=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:u=!0,buttonSize:c=40,wordInfo:d}){const{t:m}=_e.useTranslation(),p=o.useRef(null),f=o.useRef(null),y=o.useRef(null),[x,h]=o.useState(1),[g,_]=o.useState(!1),[C,w]=o.useState({for:"",url:""}),[b,B]=o.useState(null),v=t&&t.length>0?t:mC()?.(e,r)??"",k=Qn()?.(e,r)??"",{imgRef:A,loading:N,failed:E,onLoad:D,onError:H}=Eo(k),R=o.useCallback(()=>B(f.current?.getBoundingClientRect()??null),[]),G=o.useCallback(()=>B(null),[]),L=Qr(!!b,P=>{P?R():G()},f),M=o.useMemo(()=>{if(!d)return null;const P=[];return d.grade&&P.push(m("wordTable.info.grade",{n:d.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),d.syllables&&P.push(m("wordTable.info.syllables",{n:d.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),d.pos&&P.push(m("wordTable.info.pos",{v:To(d.pos,i5(m)),defaultValue:"\uD488\uC0AC: {{v}}"})),d.wordType&&P.push(m("wordTable.info.wordType",{v:To(d.wordType,l5(m)),defaultValue:"\uC720\uD615: {{v}}"})),P.length?P:null},[d,m]),I=v||e,Y=C.for===I?C.url:"";o.useEffect(()=>{const P=$r(),j=v||e;if(!P||!j)return;let F=!1;return Promise.resolve(P(j)).then(O=>{!F&&O&&w({for:j,url:O})}),()=>{F=!0}},[v,e]);const Z=o.useRef(null),z=o.useRef(null);o.useEffect(()=>()=>{y.current?.pause(),z.current?.()},[]);const W=o.useCallback(P=>{if(P.stopPropagation(),g){Z.current?.();return}if(!Y)return;_(!0);const j=mo(Y,()=>{_(!1),z.current?.()});y.current=j.el,Z.current=j.stop,z.current=er(j.stop)},[g,Y]),$=i&&!!k&&!E,U=$&&s?Qy:$?t5:e5,S=$&&s?n5:$?r5:a5;return o.useEffect(()=>{const P=p.current;if(!P||typeof ResizeObserver>"u")return;const j=new ResizeObserver(([F])=>{const{width:O,height:q}=F.contentRect;h(Math.min(O/U,q/S))});return j.observe(P),()=>j.disconnect()},[U,S]),n.jsxs("div",{ref:p,className:Ae("word-table-cell",$?"word-table-cell--with-image":""),"data-ref-w":U,"data-ref-h":S,children:[n.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${x})`},children:[$&&n.jsxs("div",{className:"word-table-cell__image-wrap",children:[N&&n.jsx("div",{className:"word-table-cell__spinner"}),n.jsx("img",{ref:A,className:"word-table-cell__image",src:k,alt:e,draggable:!1,style:{opacity:N?0:1},onLoad:D,onError:H})]}),s&&n.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&v&&n.jsxs("span",{className:"word-table-cell__sub h3",children:["[",v,"]"]}),u&&a&&n.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),n.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":Y,children:[n.jsx("span",{"data-play-state":"play",style:{display:g?"none":void 0},children:n.jsx(me,{htmlType:"button",size:c,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:m("common.play","\uC7AC\uC0DD"),ariaLabel:e?m("common.playFor",{name:e,defaultValue:`${e} \uC7AC\uC0DD`}):m("common.play","\uC7AC\uC0DD"),onClick:W})}),n.jsx("span",{"data-play-state":"pause",style:{display:g?void 0:"none"},children:n.jsx(me,{htmlType:"button",size:c,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:m("common.pause","\uBA48\uCDA4"),ariaLabel:e?m("common.pauseFor",{name:e,defaultValue:`${e} \uBA48\uCDA4`}):m("common.pause","\uBA48\uCDA4"),onClick:W})})]}),d&&n.jsxs("div",{ref:f,className:"word-table-cell__info-button",onPointerEnter:P=>{aa(P)||R()},onPointerLeave:P=>{aa(P)||G()},onFocus:()=>{ra()||R()},onBlur:G,children:[n.jsx(me,{htmlType:"button",size:c,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:m("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:P=>{P.stopPropagation(),L.touchPress()}}),b&&M&&n.jsx(Wn,{anchorRect:b,items:M,showIndex:!1})]})]})}const ku={\uBA85:"noun",\uB3D9:"verb",\uD615:"adjective",\uBD80:"adverb",\uC218:"numeral",\uAD00:"determiner",\uAC10:"interjection",\uC870:"particle",\uC811:"affix",\uC758:"dependentNoun",\uB300:"pronoun",\uBCF4\uB3D9:"auxVerb",\uBCF4\uD615:"auxAdjective"},Nu={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function i5(e){return Object.fromEntries(Object.entries(vu).map(([t,a])=>[t,ku[t]?e(`wordTable.pos.${ku[t]}`,{defaultValue:a}):a]))}function l5(e){return Object.fromEntries(Object.entries(xu).map(([t,a])=>[t,Nu[t]?e(`wordSearch.filter.type.${Nu[t]}`,{defaultValue:a}):a]))}function ca({title:e,titleIcon:t,disc:a,className:r,orientation:s="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:u=!0,showDivLine:c=!0,items:d,editCells:m,count:p,activeCell:f=null,onActivateCell:y,onRemoveCell:x,onRemoveItem:h,onReorder:g,renderCellAction:_,showFillerAdd:C=!1,contentRef:w,buttonSize:b=40,brand:B,code:v,pageNumber:k,pageNumberPosition:A="right",fitHeight:N=!1,scoring:E=!1,marks:D,onMarkClick:H,scoreIndexOffset:R=0}){const G=o.useCallback((X,ue)=>{H?.(R+X,ue)},[H,R]),L=(X,ue)=>{const we=D?.[ir(R+X)]??null;return n.jsx("div",{className:Ae("word-table-cell__score",we?"word-table-cell__score--marked":""),style:He>1?{transform:`translateX(-50%) scale(${He})`,transformOrigin:"bottom center"}:void 0,children:lr.map(Ne=>n.jsx("span",{className:Ae("word-table-cell__score-slot",we===Ne?"word-table-cell__score-slot--on":""),children:n.jsx(me,{htmlType:"button",size:b,type:"dot",shape:"pill",icon:fu[Ne],variant:we===Ne?gu[Ne]:"default",selected:we===Ne,useBorder:!1,...ke?{}:{tabIndex:-1,role:"img"},showTooltipInfo:M(`wordTable.scoring.markName.${Ne}`,{defaultValue:Ne}),ariaLabel:M(`wordTable.scoring.${Ne}`,{word:ue,defaultValue:`${ue} ${Ne}`}),onClick:ke?Ve=>{Ve.stopPropagation(),G(X,Ne)}:void 0})},Ne))})},{t:M}=_e.useTranslation(),I=m!==void 0,Y=e!=null||!!t||!!a,Z=rn("(max-width: 767px)"),z=o.useRef(null),[W,$]=o.useState(null),U=d?.length??0,[S,P]=o.useState(null),[j,F]=o.useState(""),O=o.useRef(null),q=o.useRef(null),Q=o.useRef(null),oe=o.useRef(null),se=o.useCallback(X=>{q.current=X,typeof w=="function"?w(X):w&&(w.current=X)},[w]),te=o.useCallback((X,ue)=>{O.current=ue,g?.(X,ue),F(M("wordTable.reorder.moved",{n:ue+1,total:U,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[g,M,U]);o.useEffect(()=>{const X=O.current;X!=null&&(O.current=null,q.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler)")?.[X]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{oe.current?.()},[]);const le=o.useCallback((X,ue)=>{if(!g||!X.altKey||X.ctrlKey||X.metaKey)return;const we=X.key==="ArrowRight";if(!we&&X.key!=="ArrowLeft")return;X.preventDefault();const Ne=ue+(we?1:-1);Ne<0||Ne>=U||te(ue,Ne)},[g,U,te]),De=o.useCallback((X,ue)=>{if(!g||X.pointerType==="mouse")return;const we=X.target.closest?.("button");if(we&&!we.closest(".word-table-block__card-handle"))return;oe.current?.();const Ne={x:X.clientX,y:X.clientY};let Ve=!1;const et=Qe=>{Ve&&Qe.cancelable&&Qe.preventDefault()},pt=Qe=>{if(!Ve){(Math.abs(Qe.clientX-Ne.x)>Bu||Math.abs(Qe.clientY-Ne.y)>Bu)&&gt();return}const Ue=document.elementFromPoint?.(Qe.clientX,Qe.clientY)?.closest?.("[data-wordtable-cell]"),We=Ue?Number(Ue.dataset.wordtableCell):NaN,Ke=Number.isInteger(We)?We:null;Q.current=Ke,$(Ke)},ut=()=>{const Qe=Q.current,Ue=Ve;gt(),Ue&&Qe!=null&&Qe!==ue&&te(ue,Qe)},ft=setTimeout(()=>{Ve=!0,P(ue),Q.current=ue,$(ue),window.addEventListener("touchmove",et,{passive:!1})},s5);function gt(){clearTimeout(ft),window.removeEventListener("pointermove",pt),window.removeEventListener("pointerup",ut),window.removeEventListener("pointercancel",ut),window.removeEventListener("touchmove",et),Ve=!1,Q.current=null,oe.current=null,P(null),$(null)}oe.current=gt,window.addEventListener("pointermove",pt),window.addEventListener("pointerup",ut),window.addEventListener("pointercancel",ut)},[g,te]),{width:V,height:ne}=ua[s],fe=typeof N=="number"?N:N&&typeof N=="object"?Z?N.narrow:N.wide:null,{scalerRef:Ee,scale:ge,offset:ae}=wu(V,N?ne:void 0),de=I?m?.length??0:d?.length??0,pe=Math.max(p??de,1),{cols:he,rows:be}=Xy(s,pe),Pe={word:i.length===0||i.includes("\uB2E8\uC5B4"),image:i.length===0||i.includes("\uC774\uBBF8\uC9C0"),pron:i.length===0||i.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:i.length===0||i.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},$e=I?(m??[]).some(X=>X!==null&&X.length>1):(d??[]).some(X=>(X.words??[]).length>1),Ie=!!B?.show,Fe=!!B?.show&&B?.top!==!1,Oe=!!B?.show&&B?.bottom!==!1,dt=B?.copyright??"\xA9 IHAB, Inc. All rights reserved.",lt=Ae("word-table-block__content",Jy[l],u&&"word-table-block__content--outline",c&&$e&&"word-table-block__content--div-line",!Ie&&k&&A!=="none"&&"word-table-block__content--page-number",Fe&&"word-table-block__content--brand-top",Oe&&"word-table-block__content--brand-bottom"),ot={transform:`scale(${1/ge})`,transformOrigin:"center center"},ct=b*lr.length+4*(lr.length-1),ke=!!H,He=ke?Math.max(1,Math.min(1/ge,V/he/ct)):1,Be=n.jsxs("div",{ref:Ee,className:"word-table__scaler",style:{height:ne*ge},children:[n.jsx("div",{className:Ae("word-table",E&&!ke&&"word-table--score-readonly",!Y&&r),style:{width:V,height:ne,transform:`scale(${ge})`,transformOrigin:"top left",marginLeft:ae},children:n.jsxs("div",{ref:se,className:lt,style:{gridTemplateColumns:`repeat(${he}, 1fr)`,gridTemplateRows:`repeat(${be}, 1fr)`},children:[I?n.jsx(n.Fragment,{children:(m??[]).map((X,ue)=>n.jsx("div",{className:Ae("word-table-block__edit-cell",X?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",f===ue?"word-table-block__edit-cell--active":""),style:_u(ue,he,be,l),children:X?n.jsxs(n.Fragment,{children:[X.map((we,Ne)=>n.jsxs(o.Fragment,{children:[Ne>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(Au,{label:we.word,subLabel:we.pronunciation,colloquialLabel:we.colloquialPronunciation,homonum:we.homonum,showWord:Pe.word,showImage:Pe.image,showPronunciation:Pe.pron,showColloquial:Pe.colloq,buttonSize:b})]},Ne)),E&&L(ue,X.map(we=>we.word).join(" / ")),x&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(me,{htmlType:"button",size:b,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:X.length>1?M("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):M("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:X.length>1?M("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):M("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>x(ue)})})]}):y&&n.jsx("div",{style:ot,children:n.jsx(me,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:M("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>y(ue)})})},ue))}):n.jsxs(n.Fragment,{children:[(d??[]).map((X,ue)=>n.jsxs("div",{"data-wordtable-cell":g?ue:void 0,className:`word-table-block__card${g?" word-table-block__card--draggable":""}${W===ue?" word-table-block__card--drag-over":""}${S===ue?" word-table-block__card--dragging":""}`,style:_u(ue,he,be,l),draggable:!!g,onPointerDown:g?we=>De(we,ue):void 0,onKeyDown:g?we=>le(we,ue):void 0,onDragStart:g?()=>{z.current=ue}:void 0,onDragOver:g?we=>{we.preventDefault(),$(ue)}:void 0,onDragLeave:g?()=>$(null):void 0,onDrop:g?we=>{we.preventDefault(),z.current!==null&&z.current!==ue&&g(z.current,ue),z.current=null,$(null)}:void 0,onDragEnd:g?()=>{z.current=null,$(null)}:void 0,children:[(X.words??[]).map((we,Ne)=>n.jsxs(o.Fragment,{children:[Ne>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(Au,{label:we.label,subLabel:we.subLabel,colloquialLabel:we.colloquialLabel,homonum:we.homonum,showWord:Pe.word,showImage:Pe.image,showPronunciation:Pe.pron,showColloquial:Pe.colloq,buttonSize:b,wordInfo:we.grade||we.syllables!=null||we.pos||we.wordType?{grade:we.grade,syllables:we.syllables,pos:we.pos,wordType:we.wordType}:void 0})]},Ne)),E&&L(ue,(X.words??[]).map(we=>we.label).join(" / ")),g&&n.jsx("div",{className:"word-table-block__card-handle",children:n.jsx(me,{htmlType:"button",size:b,type:"dot",icon:"grip-vertical",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:M("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:M("wordTable.reorder.handle",{word:(X.words??[]).map(we=>we.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})}),(_||h)&&n.jsxs("div",{className:"word-table-block__card-actions",children:[_?.(ue,X),h&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(me,{htmlType:"button",size:b,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(X.words??[]).length>1?M("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):M("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(X.words??[]).length>1?M("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):M("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>h(X.id)})})]})]},X.id)),Array.from({length:Math.max(0,he*be-(d?.length??0))}).map((X,ue)=>{const we=(d?.length??0)+ue<pe;return n.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:C&&y&&we&&n.jsx("div",{style:ot,children:n.jsx(me,{htmlType:"button",size:b,type:"bar",icon:"plus",label:M("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>y((d?.length??0)+ue)})})},`filler-${ue}`)})]}),Fe&&n.jsx(n.Fragment,{children:n.jsxs("div",{className:"word-table__band word-table__band--top",children:[n.jsx("img",{className:"word-table__brand-logo",src:B?.topLogo?.src??Qa,alt:B?.topLogo?.alt??"\uB9D0\uADC0"}),(()=>{const X=[B?.title&&n.jsx("span",{className:"word-table__paper-title",children:B.title},"t"),B?.owner&&n.jsx("span",{className:"word-table__owner",children:B.owner},"o"),v&&n.jsx("span",{className:"word-table__code",children:v},"c")].filter(Boolean);return X.length===0?null:n.jsx("span",{className:"word-table__ident",children:X.map((ue,we)=>n.jsxs(o.Fragment,{children:[we>0&&n.jsx("span",{className:"word-table__ident-dot","aria-hidden":"true",children:"\xB7"}),ue]},we))})})()]})}),Oe&&n.jsx(n.Fragment,{children:n.jsxs("div",{className:"word-table__band word-table__band--bottom",children:[n.jsxs("span",{className:"word-table__brand-by",children:[B?.bottomLogo?n.jsx("img",{className:"word-table__brand-logo--ihab word-table__brand-logo--given",src:B.bottomLogo.src,alt:B.bottomLogo.alt}):n.jsx("span",{className:"word-table__brand-logo--ihab",role:"img","aria-label":"IHAB"}),n.jsx("span",{className:"word-table__copyright",children:dt})]}),n.jsxs("span",{className:"word-table__band-end",children:[B?.link&&n.jsx("span",{className:"word-table__link",children:B.link}),k&&A!=="none"&&n.jsx("span",{className:"word-table__page-count",children:M("wordTable.filter.pageIndicator",{current:k.current,total:k.total})})]})]})}),!Ie&&k&&A!=="none"&&n.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${A}`,children:M("wordTable.filter.pageIndicator",{current:k.current,total:k.total})})]})}),g&&n.jsx("span",{role:"status",style:o5,children:j})]}),Xe=fe==null?Be:n.jsx("div",{className:"word-table__frame",style:{height:fe},children:Be});return Y?n.jsx(la,{type:"page",icon:t,title:e,disc:a,className:Ae("word-table-block",r),children:Xe}):Xe}function u5(e,t,a){const r=[];for(const s of e??[]){if(s.type==="note"||s.type==="input")continue;const i=s.displayLabel??s.label,l=c5(s,t?.[s.label],a);l!==null&&r.push(`${i} ${l}`)}return r.join(" \xB7 ")}function c5(e,t,a){const r=(Array.isArray(t)?t:t===void 0?[]:[t]).filter(s=>s!==cn);return r.length===0?e.allOption?e.allLabel??a:null:r.map(s=>d5(e,s)).join(", ")}function d5(e,t){const a=[...e.items??[],...(e.groups??[]).flat()];for(const r of a)if(r!=null){if(typeof r=="string"){if(r===t)return r;continue}if(r.value===t)return r.displayLabel??r.labels?.join(" ")??r.value}return t}function kn({title:e,titleLevel:t=2,headerAction:a,headerSummary:r,collapsible:s=!1,defaultCollapsed:i=!1,collapsed:l,onCollapsedChange:u,footer:c,sections:d,selected:m={},onSelect:p,align:f,sectionAlign:y,className:x}){const h=(f??(y==="vertical"?"newline":"inline"))==="inline",{t:g}=_e.useTranslation(),[_,C]=o.useState(i),w=l??_,b=()=>{const D=!w;C(D),u?.(D)},B=D=>{if(!s)return;const H=D.target;!H||typeof H.closest!="function"||H.closest(".filter-panel__collapse-toggle")||H.closest('button, a, input, select, textarea, label, [role="radiogroup"], [role="button"], [role="menu"]')||b()},v=o.useMemo(()=>r!==void 0||!w?"":u5(d,m,g("common.all","\uC804\uCCB4")),[r,w,d,m,g]),k=r??(v?n.jsx("span",{className:"filter-panel__header-summary body-3",children:v}):null),A=e||a||r||s,N=o.useId(),E=t?`h${t}`:"span";return n.jsxs("div",{className:Ae("filter-panel",s?"filter-panel--collapsible":"",w?"filter-panel--collapsed":"",x),role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?N:void 0,children:[A&&n.jsxs("div",{className:"filter-panel__header",onClick:s?B:void 0,children:[n.jsx("div",{className:"filter-panel__title-row",children:e&&n.jsx(E,{id:N,className:"filter-panel__title h4",children:e})}),n.jsxs("div",{className:"filter-panel__header-actions",children:[w?k:a,s&&n.jsx(me,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:w?"chevron-down":"chevron-up",className:"filter-panel__collapse-toggle",ariaLabel:w?g("common.expand","\uD3BC\uCE58\uAE30"):g("common.collapse","\uC811\uAE30"),showTooltipInfo:w?g("common.expand","\uD3BC\uCE58\uAE30"):g("common.collapse","\uC811\uAE30"),"aria-expanded":!w,onClick:b})]})]}),!w&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ae("filter-panel__sections",h?"filter-panel__sections--row":""),children:d.map(D=>{const H=m[D.label],R=H===void 0||(Array.isArray(H)?H.length===0:!1),G=(D.items??[]).filter(M=>M!=null);D.allOption&&G.some(M=>(typeof M=="string"?M:M.value)===cn)&&Gt(`filter-panel-all-value:${D.label}`,`[FilterPanel] '${D.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${cn}' \uC778 \uBCF4\uAE30\uAC00 \uD568\uAED8 \uC788\uB2E4 \u2014 \uB450 \uC120\uD0DD\uC774 \uAD6C\uBCC4\uB418\uC9C0 \uC54A\uB294\uB2E4. \uBCF4\uAE30 \uAC12\uC744 \uBC14\uAFD4\uB77C.`);const L=M=>{const I=typeof M=="string"?M:M.value,Y=typeof M!="string"&&!!M.disabled,Z=typeof M!="string"?M.labels:void 0,z=typeof M!="string"?M.displayLabel:void 0,W=typeof M!="string"?M.tooltip:void 0,$=typeof M!="string"?M.descriptionTooltip:void 0,U=typeof M!="string"?M.shape:void 0,S=Array.isArray(H)?H.includes(I):H===I;return n.jsx(me,{htmlType:"button",size:"keyboard",label:Z??z??I,type:D.itemType??(Z?"bar":I.length===1?"dot":void 0),selected:S,disabled:Y,shape:U,showTooltipInfo:!!W,tooltipInfoText:W,tooltipDescription:$,onClick:()=>p?.(I,D.label)},I)};return n.jsxs(o.Fragment,{children:[D.groupLabel&&n.jsxs("div",{className:"filter-panel__group-label-row",children:[n.jsx("div",{className:"filter-panel__group-label body-2",children:D.groupLabel}),D.groupAction]}),n.jsxs("div",{className:Ae("filter-panel__section",D.layout==="row"?"filter-panel__section--row":"",D.block?"filter-panel__section--block":""),children:[n.jsxs("div",{className:"filter-panel__section-label-row",children:[n.jsx("span",{className:"filter-panel__section-label body-3",children:D.displayLabel??D.label}),D.labelAction??(D.labelInfo?n.jsx(ja,{...D.labelInfo}):null)]}),D.type==="note"?n.jsx("div",{className:"filter-panel__note body-3",children:D.content}):D.type==="input"?n.jsx(Gn,{className:"filter-panel__textfield",placeholder:D.placeholder,ariaLabel:D.displayLabel??D.label,value:m[D.label]??"",onChange:M=>p?.(M,D.label),error:D.error}):!D.multiple&&D.display==="segmented"?n.jsx(Bn,{ariaLabel:D.displayLabel??D.label,options:[...D.allOption?[{key:cn,label:D.allLabel??g("common.all","\uC804\uCCB4"),disabled:D.allOptionDisabled}]:[],...G.map(M=>{const I=typeof M=="string"?M:M.value,Y=typeof M!="string"?M.displayLabel:void 0,Z=typeof M!="string"?M.disabled:void 0;return{key:I,label:Y??I,disabled:Z}})],value:R&&D.allOption?cn:m[D.label]??"",onChange:M=>p?.(M,D.label),size:32}):!D.multiple&&D.display==="dropdown"?n.jsx(dn,{className:"filter-panel__dropdown",ariaLabel:typeof D.label=="string"?D.label:void 0,size:40,options:[...D.allOption?[{value:cn,label:D.allLabel??g("common.all","\uC804\uCCB4"),disabled:D.allOptionDisabled}]:[],...G.map(M=>{const I=typeof M=="string"?M:M.value,Y=typeof M!="string"?M.displayLabel:void 0,Z=typeof M!="string"?M.disabled:void 0;return{value:I,label:Y??I,disabled:Z}})],value:R&&D.allOption?cn:m[D.label],onChange:M=>p?.(M,D.label)}):n.jsxs("div",{className:D.groups?"filter-panel__item-groups":"filter-panel__items",children:[D.allOption&&!D.groups&&n.jsx(me,{htmlType:"button",size:"keyboard",label:D.allLabel??g("common.all","\uC804\uCCB4"),selected:R,disabled:D.allOptionDisabled,onClick:()=>p?.(cn,D.label)}),D.groups?D.groups.map((M,I)=>n.jsxs("div",{className:"filter-panel__item-group",children:[I===0&&D.allOption&&n.jsx(me,{htmlType:"button",size:"keyboard",label:D.allLabel??g("common.all","\uC804\uCCB4"),selected:R,disabled:D.allOptionDisabled,onClick:()=>p?.(cn,D.label)}),M.filter(Y=>Y!=null).map(L)]},I)):G.map(L)]})]})]},D.label)})}),c!=null&&c!==!1&&n.jsx("div",{className:"filter-panel__footer body-3",children:c})]})]})}const p5=[1,2,3,4,5,6,7,8,9,10,11,12],Du=[8,4,2,1];function Eu(e,t){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!t.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!t.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function Su(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"\uAC00\uB85C",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"\uC138\uB85C",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function ju(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Tu(e){return{label:e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Mu(e){return{label:e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Lu(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function $u(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Ru(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...Du.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function Pu(e,t){return e===t||!Du.includes(e)?Number.POSITIVE_INFINITY:e}function m5(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"\uC67C\uCABD",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"\uC911\uC559",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"\uC624\uB978\uCABD",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}const Fu={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Iu(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Ou(e,t){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:t.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:t.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:t.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:t.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:t.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",...t.showTopInfo!=null?{[e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")]:t.showTopInfo?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}:{},...t.showBottomInfo!=null?{[e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")]:t.showBottomInfo?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}:{}}}function Hu(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===cn?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(s=>s.includes(t)?s.filter(i=>i!==t):[...s,t]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(t==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(t),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")?(r.setShowTopInfo?.(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")?(r.setShowBottomInfo?.(t==="\uD45C\uC2DC"),!0):!1}function h5(e){return"sections"in e}function Mo(e){const{t}=_e.useTranslation(),{title:a,className:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c}=e,d={collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c};if(h5(e))return n.jsx(kn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,...d,align:"inline"});const{hasImage:m,hasColloquial:p,contentTypes:f,orientation:y,showOutline:x,cutLine:h,showDivLine:g,setters:_,showCutLine:C=!1,showDivLine2:w=!1,middleSections:b=[],extraSelected:B={},onExtraSelect:v,showPaperBands:k=!1,showTopInfo:A=!0,showBottomInfo:N=!0}=e,E=[Eu(t,{hasImage:m,hasColloquial:p}),Su(t),...b,ju(t),...C?[Lu(t)]:[],...w?[$u(t)]:[],...k?[Tu(t),Mu(t)]:[]],D={...Ou(t,{contentTypes:f,orientation:y,showOutline:x,cutLine:h,showDivLine:g,showTopInfo:A,showBottomInfo:N}),...B},H=(R,G)=>{Hu(t,R,G,_)||v?.(R,G)};return n.jsx(kn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:E,selected:D,onSelect:H,...d,sectionAlign:"horizontal"})}function zu(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Lo(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let ur=null,da=null;function C5(e,t,a,r="",s=""){if(e.length===0||da&&da.iframe.isConnected&&Date.now()-da.at<1e4)return;const i=r?Lo(r):"";ur?.();let l=null;if(i){const d=document.title;document.title=i,l=()=>{document.title=d,window.removeEventListener("afterprint",l),ur===l&&(ur=null)},ur=l,window.addEventListener("afterprint",l)}const u=document.createElement("iframe");u.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(u);const c=u.contentDocument;if(!c){u.remove();return}da={iframe:u,at:Date.now()},c.open(),c.write($o(e,t,a,!0,i,s)),c.close(),u.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{u.remove(),da?.iframe===u&&(da=null)},0)})}function $o(e,t,a,r=!1,s="",i=""){s=s?Lo(s):"";const l=Array.from(document.styleSheets).flatMap(m=>{try{return Array.from(m.cssRules).map(p=>p.cssText)}catch{return[]}}).join(`
860
860
  `),u="light",c=i?`<div class="paper-head">${zu(i)}</div>`:"",d=e.map(m=>{const p=m.cloneNode(!0);return p.querySelectorAll('[data-play-state="play"]').forEach(f=>f.style.display=""),p.querySelectorAll('[data-play-state="pause"]').forEach(f=>f.style.display="none"),p.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(f=>f.remove()),p.querySelectorAll(".word-table-cell__spinner").forEach(f=>f.remove()),p.querySelectorAll("img").forEach(f=>{f.style.opacity==="0"&&(f.setAttribute("onload","this.style.opacity=''"),f.setAttribute("onerror","this.style.visibility='hidden'"))}),`<div class="paper-wrap">${c}${p.outerHTML}</div>`}).join(`
861
861
  `);return`<!DOCTYPE html>
862
862
  <html data-theme="${u}">
@@ -1042,17 +1042,17 @@ ${g.badge}`:g.badge:void 0;if(x&&c(g.code))return null;if(!g.badge&&!m)return p(
1042
1042
  `:""}
1043
1043
  <\/script>
1044
1044
  </body>
1045
- </html>`}const p5=1e3;function Ro({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:s,header:i=""}){const{t:l}=_e.useTranslation(),u=o.useCallback(()=>{d5(e(),t,a,r,i)},[e,t,a,r,i]),c=o.useCallback(()=>{const m=e();if(m.length===0)return;const p=window.open("","_blank");if(!p){s?.();return}p.document.write($o(m,t,a,!1,r,i)),p.document.close()},[e,t,a,r,s,i]),d=o.useCallback(()=>{const m=e();if(m.length===0)return;const p=$o(m,t,a,!1,r,i),f=new Blob([p],{type:"text/html;charset=utf-8"}),y=URL.createObjectURL(f),v=(r?Lo(r):"")||l("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),C=Object.assign(document.createElement("a"),{href:y,download:`${v}.html`});document.body.appendChild(C),C.click(),document.body.removeChild(C),setTimeout(()=>URL.revokeObjectURL(y),p5)},[e,t,a,r,i,l]);return{print:u,openNewWindow:c,downloadHtml:d}}function Vu(e,t){const{t:a}=_e.useTranslation(),r=t?.paperBands===!0,[s,i]=o.useState("landscape"),[l,u]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[c,d]=o.useState("\uD45C\uC2DC"),[m,p]=o.useState(!0),[f,y]=o.useState(!0),[v,C]=o.useState(!0),[b,_]=o.useState(!0),[h,w]=o.useState(8),[g,B]=o.useState("right"),x=e.length,N=e.some(U=>(U.words??[]).length>1),k=e.some(U=>(U.words??[]).some(te=>!!te.colloquialLabel)),A=Math.min(h,Math.max(x,1)),S=o.useMemo(()=>yu(e,A),[e,A]),E=S.length>1,H=A,[$,K]=o.useState(!1);o.useEffect(()=>{let U=!1;if(!Qn()){K(!1);return}return Promise.all(e.flatMap(te=>(te.words??[]).map(z=>ri(z.label,z.homonum)))).then(te=>{U||K(te.some(Boolean))},()=>{}),()=>{U=!0}},[e]);const L=o.useMemo(()=>[Eu(a,{hasImage:$,hasColloquial:k}),Su(a),...x>0?[Ru(a,{hasPairs:N,itemCount:x})]:[],ju(a),...H>1?[Lu(a)]:[],...N?[$u(a)]:[],...r?[Tu(a),Mu(a)]:[]],[a,$,k,x,N,E,H,r]),j={...Ou(a,{contentTypes:l,orientation:s,showOutline:m,cutLine:c,showDivLine:b,showTopInfo:f,showBottomInfo:v}),...x>0?{[a(N?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${A}\uAC1C`}:{},...E?{[a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Fu[g]}:{}},O=o.useCallback((U,te)=>{Hu(a,U,te,{setContentTypes:u,setOrientation:i,setShowOutline:p,setCutLine:d,setShowDivLine:_,setShowTopInfo:y,setShowBottomInfo:C})||(te===a("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||te===a("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?w(Pu(parseInt(U),x)):te===a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&B(Iu(U)))},[a,x]);return{settings:{orientation:s,contentTypes:l,cutLine:c,showOutline:m,showDivLine:b,count:H,showTopInfo:f,showBottomInfo:v},filterSections:L,filterSelected:j,handleSelect:O,pages:S,isPaginated:E,pageNumberPosition:g}}function m5({items:e,words:t,title:a,subtitle:r,emptyText:s,buttons:i,renderButtons:l,renderFooter:u,footerClassName:c,footerLayout:d,printFileName:m,showSettings:p,autoPrint:f,className:y,onClose:v,scoring:C=!1,onScoreChange:b,printHeader:_,brand:h,code:w,beforeClose:g}){const{t:B}=_e.useTranslation(),x=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(ue=>typeof ue=="string"&&ue.length>0).map((ue,Se)=>({id:`${ue}-${Se}`,words:[{label:ue}]})),[e,t]),{settings:N,filterSections:k,filterSelected:A,handleSelect:S,pages:E,isPaginated:H,pageNumberPosition:$}=Vu(x,{paperBands:!!h?.show}),K=o.useMemo(()=>bu(E.map(ue=>ue.length)),[E]),[L,j]=o.useState({}),O=o.useCallback((ue,Se)=>{j(V=>({...V,[ir(ue)]:Cu(V[ir(ue)]??null,Se)}))},[]),U=o.useRef(b);o.useEffect(()=>{U.current=b});const te=o.useRef(L);o.useEffect(()=>{te.current!==L&&(te.current=L,U.current?.(jo(L)))},[L]);const z=o.useMemo(()=>jo(L),[L]),q=o.useRef(null),{toastMessage:R,toastKey:W,showWarning:D,clearToast:P}=ml("warning"),M=o.useRef([]),F=o.useCallback(()=>H?M.current.filter(ue=>ue!==null):q.current?[q.current]:[],[H]),{print:I,openNewWindow:Z}=Ro({getElements:F,paperW:ua[N.orientation].width,paperH:ua[N.orientation].height,fileName:m??"",header:_??"",onPopupBlocked:()=>D(B("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}),J=o.useMemo(()=>u?void 0:l?l({print:I,openNewWindow:Z}):m?[{label:B("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>Z()},{label:B("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>I()},...i??[]]:i,[u,l,m,i,B,I,Z]),Y=o.useMemo(()=>u?u({print:I,openNewWindow:Z}):void 0,[u,I,Z]),ne=o.useRef(!1),ie=o.useRef(I);return o.useEffect(()=>{ie.current=I},[I]),o.useEffect(()=>{if(!f||ne.current)return;const ue=window.setTimeout(()=>{ne.current=!0,ie.current()},100);return()=>window.clearTimeout(ue)},[f]),n.jsxs($n,{title:a??B("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:Ae("word-table-popup",y),buttons:J,footer:Y,footerClassName:c,footerLayout:d,beforeClose:g,onClose:v,children:[x.length>0?n.jsxs("div",{className:"word-table-popup__body",children:[p&&n.jsx(Mo,{sections:k,selected:A,onSelect:S}),H?n.jsx("div",{className:"word-table-popup__pages",children:E.map((ue,Se)=>n.jsx(ca,{items:ue,orientation:N.orientation,contentTypes:N.contentTypes,cutLine:N.cutLine,showOutline:N.showOutline,showDivLine:N.showDivLine,count:N.count,contentRef:V=>{M.current[Se]=V},pageNumber:{current:Se+1,total:E.length},pageNumberPosition:$,brand:h&&{...h,top:N.showTopInfo,bottom:N.showBottomInfo},code:w,scoring:C,scoreIndexOffset:K[Se],marks:z,onMarkClick:O},Se))}):n.jsx("div",{className:"word-table-popup__table",children:n.jsx(ca,{items:x,orientation:N.orientation,contentTypes:N.contentTypes,cutLine:N.cutLine,showOutline:N.showOutline,showDivLine:N.showDivLine,count:N.count,contentRef:q,fitHeight:!0,scoring:C,marks:z,onMarkClick:O,brand:h&&{...h,top:N.showTopInfo,bottom:N.showBottomInfo},code:w})})]}):n.jsx("p",{className:"word-table-popup__empty body-3",children:s??B("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsx(sa,{message:R,position:"top",onClose:P},W)]})}const h5=new Set(["x","triangle"]);function C5(e,t){const a=[];for(let r=0;r<e.length;r++){const s=t[String(r)];s&&h5.has(s)&&a.push(e[r])}return a}const f5=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function Wu(e){const t=e.name.trim(),a=e.reviewRound;if(typeof a=="number"&&Number.isFinite(a)&&a>=0){const i=Math.floor(a);if(i===0)return{\uBC14\uD0D5:t,\uD68C\uCC28:1};const l=(i===1?/\s*복습\s*\d{2}\.\d{2}$/:new RegExp(`(?:^|\\s)${i}\uCC28\\s*\uBCF5\uC2B5\\s*\\d{2}\\.\\d{2}$`)).exec(t);return{\uBC14\uD0D5:l?t.slice(0,l.index).trim():t,\uD68C\uCC28:i+1}}let r=t,s=1;for(;;){const i=f5.exec(r);if(!i)break;s=Math.max(s,(i[1]?Number(i[1]):1)+1),r=r.slice(0,i.index).trim()}return{\uBC14\uD0D5:r,\uD68C\uCC28:s}}function g5(e,t){const[,a,r]=qr(t).split("-"),s=`${a}.${r}`,{\uBC14\uD0D5:i,\uD68C\uCC28:l}=Wu(typeof e=="string"?{name:e}:e),u=l>=2?`${l}\uCC28 `:"";return`${i||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${s}`}function b5(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:Wu(e).\uD68C\uCC28}}function y5(e,t){const a={};for(const[r,s]of Object.entries(t)){if(s!=="o"&&s!=="triangle"&&s!=="x")continue;const i=Number(r),l=e[i];l&&(a[r]=l)}return a}function v5(e){return e.map(t=>t.label).join(" / ")}function x5(e){return e.map(t=>t.homonum!=null?`${t.label}#${t.homonum}`:t.label).join(" / ")}function qu(e){return e.split(" / ").map(t=>t.replace(/#\d+$/,"")).join(" / ")}function _5(e,t,a){const r=Ci(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}function Uu(e,t,a){return a===0?0:(e+t*.5)/a}function w5(e){const t=new Map,a=[...e].sort((s,i)=>s.scoredAt.localeCompare(i.scoredAt));for(const s of a)for(const[i,l]of Object.entries(s.marks)){const u=s.labels?.[i];if(!u)continue;const c=t.get(u)??{o:0,triangle:0,x:0,latest:l,latestAt:s.scoredAt};if(l==="o")c.o++;else if(l==="triangle")c.triangle++;else if(l==="x")c.x++;else continue;c.latest=l,c.latestAt=s.scoredAt,t.set(u,c)}const r=[];for(const[s,i]of t){const l=i.o+i.triangle+i.x;r.push({label:qu(s),key:s,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:Uu(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((s,i)=>s.rate-i.rate||i.tried-s.tried||oa(s.label,i.label)||oa(s.key??s.label,i.key??i.label)),r}function B5(e){const t=new Map;for(const r of e){const s=r.tableId??`name:${r.tableName}`,i=t.get(s)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),t.set(s,i)}const a=[];for(const r of t.values()){const s=u=>Object.values(u.marks).filter(c=>c==="o"||c==="triangle"||c==="x").length,i=r.rows.filter(u=>s(u)>0).sort((u,c)=>u.scoredAt.localeCompare(c.scoredAt));if(i.length===0)continue;const l=i.map(u=>{const c=Object.values(u.marks),d=c.filter(p=>p==="o").length,m=c.filter(p=>p==="triangle").length;return Uu(d,m,s(u))});a.push({tableName:r.tableName,tableId:r.tableId,rates:l,times:i.map(u=>u.scoredAt),delta:l.length>=2?l[l.length-1]-l[0]:null})}return a.sort((r,s)=>(s.times[s.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function A5(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function k5(e,t){if(e==null||t==null||e===""||t==="")return 0;if(typeof e=="number"&&typeof t=="number")return e-t;const a=String(e),r=String(t);return+(a>r)-+(a<r)}function N5(e){const t=new Map;let a=0,r=0;const s=e.map((l,u)=>({r:l,\uC790\uB9AC:u})).sort((l,u)=>l.r.answeredAt.localeCompare(u.r.answeredAt)||k5(l.r.id,u.r.id)||l.\uC790\uB9AC-u.\uC790\uB9AC).map(l=>l.r);for(const l of s){if(l.isCorrect==null)continue;const u=l.itemTitle?.trim();if(!u){r++;continue}a++;const c=l.itemId?.trim()||u,d=`${l.trainingType}|${c}`,m=t.get(d)??{trainingType:l.trainingType,itemId:c,title:u,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(m.tried++,l.isCorrect||m.wrong++,m.title=u,m.latestCorrect=l.isCorrect,m.latestAt=l.answeredAt,m.lastSelected=l.selected,l.setId){const p=m.setIds.indexOf(l.setId);p>0&&m.setIds.splice(p,1),p!==0&&m.setIds.unshift(l.setId)}t.set(d,m)}const i=[...t.entries()].map(([l,u])=>({key:l,trainingType:u.trainingType,itemId:u.itemId,title:u.title,tried:u.tried,wrong:u.wrong,rate:u.tried===0?0:(u.tried-u.wrong)/u.tried,latestCorrect:u.latestCorrect,latestAt:u.latestAt,lastSelected:u.lastSelected,setIds:u.setIds}));return i.sort((l,u)=>l.rate-u.rate||u.tried-l.tried||oa(l.title,u.title)),{items:i,counted:a,skippedNoTitle:r}}function D5(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function E5(e){const t=new Map;for(const r of e){const s=t.get(r.trainingType)??[];s.push(r),t.set(r.trainingType,s)}const a=[...t.entries()].map(([r,s])=>({trainingType:r,items:s,pending:s.filter(i=>!i.latestCorrect).length}));return a.sort((r,s)=>s.pending-r.pending||r.trainingType.localeCompare(s.trainingType)),a}const Po=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function S5(e){const t=new Map;let a=0;for(const i of e){if(i.latestCorrect)continue;const l=i.setIds[0];if(!l){a++;continue}const u=`${i.trainingType}|${l}`,c=t.get(u)??{setId:l,trainingType:i.trainingType,pending:0};c.pending++,t.set(u,c)}const r=(i,l)=>l.pending-i.pending||i.trainingType.localeCompare(l.trainingType)||i.setId.localeCompare(l.setId),s=[...t.values()];return{sentence:s.filter(i=>Po.includes(i.trainingType)).sort(r),word:s.filter(i=>!Po.includes(i.trainingType)).sort(r),noSet:a}}function j5(e,t,a=5){const r=new Set(t);if(r.size===0)return[];const s=[];for(const i of e){const l=new Set,u=[];for(const c of i.cellLabels)r.has(c)&&!l.has(c)&&(l.add(c),u.push(c));u.length!==0&&s.push({id:i.id,name:i.name,kind:i.kind,covered:u,totalCells:i.cellLabels.length})}return s.sort((i,l)=>l.covered.length-i.covered.length||i.totalCells-l.totalCells||oa(i.name,l.name)),s.slice(0,Math.max(0,a))}function T5(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function M5(e,t){const a=new Map;for(const s of e)for(const i of s.cells){const l=s.labelOf(i);a.has(l)||a.set(l,i)}const r=[];for(const s of t){const i=a.get(s);i!==void 0&&r.push(i)}return r}function Fo(e,t,a){return typeof e=="string"&&e?e:t.replace(/\{\{(\w+)\}\}/g,(r,s)=>String(a[s]))}function L5(e,t){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),s=a%60;return t?t(r,s):r>0&&s>0?Fo(Tt.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?Fo(Tt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):Fo(Tt.t("customers.duration.sec",{s,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s})}function $5(e,t){const a=[],r=new Set;for(const s of e){const i=t(s);r.has(i)||(r.add(i),a.push({key:i,value:s,pinned:!1}))}return a}function R5(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function P5(e,t){return e.filter(a=>a.key!==t)}function F5(e,t,a){const r=e.filter(d=>d.pinned),s=new Set(r.map(d=>d.key)),i=e.length-r.length,l=[],u=new Set(s);for(const d of t){if(l.length>=i)break;const m=a(d);u.has(m)||(u.add(m),l.push({key:m,value:d,pinned:!1}))}const c=[...l];return e.map(d=>d.pinned?d:c.shift()).filter(d=>d!==void 0)}function I5(e){return e.map(t=>t.value)}function O5(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},s=t?.key?` icon-grid-menu__button--${t.key}`:"",i=o.useId();return n.jsxs("div",{className:`icon-grid-menu__button-wrapper${s}`,children:[n.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":t?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,children:n.jsx(tt,{icon:t.icon,label:t.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),n.jsx("span",{id:i,className:"icon-grid-menu__button-label button-1",children:t.label})]})}function H5(e){const{categories:t=[],selected:a,onSelect:r,size:s="medium"}=e||{},i=a!==void 0,[l,u]=o.useState(()=>i?null:(t&&t[0]?.key)??null),c=i?a:l,d=o.useRef(r);o.useEffect(()=>{d.current=r});const m=o.useRef(!1),p=(t&&t[0]?.key)??null;o.useEffect(()=>{if(i||m.current||!p)return;m.current=!0;const y=l??p;l==null&&u(y),d.current?.(y)},[i,p]);const f=o.useCallback(y=>{const v=c===y?null:y;m.current=!0,i||u(v),r?.(v)},[c,i,r]);return n.jsx("div",{className:`icon-grid-menu icon-grid-menu--${s}`,children:(t||[]).map(y=>n.jsx(O5,{category:y,isSelected:c===y.key,onClick:()=>f(y.key)},y.key))})}function z5({subs:e=[],selected:t,onSelect:a,size:r="medium"}){const s=r==="small"?32:40;return n.jsx("div",{className:`choice-chips choice-chips--${r}`,children:n.jsx("div",{className:"choice-chips__list",children:e.map(i=>n.jsx(me,{htmlType:"button",size:s,type:"bar",label:i.label,selected:t===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function V5({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",s=a?.tel??"031-380-3724",{t:i}=_e.useTranslation();return n.jsx("footer",{className:"site-footer",children:n.jsxs("div",{className:"safearea",children:[n.jsxs("div",{className:"site-footer__top",children:[n.jsx("div",{className:"site-footer__brand",children:n.jsx("div",{className:"site-footer__lead h3",children:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
1045
+ </html>`}const f5=1e3;function Ro({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:s,header:i=""}){const{t:l}=_e.useTranslation(),u=o.useCallback(()=>{C5(e(),t,a,r,i)},[e,t,a,r,i]),c=o.useCallback(()=>{const m=e();if(m.length===0)return;const p=window.open("","_blank");if(!p){s?.();return}p.document.write($o(m,t,a,!1,r,i)),p.document.close()},[e,t,a,r,s,i]),d=o.useCallback(()=>{const m=e();if(m.length===0)return;const p=$o(m,t,a,!1,r,i),f=new Blob([p],{type:"text/html;charset=utf-8"}),y=URL.createObjectURL(f),x=(r?Lo(r):"")||l("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),h=Object.assign(document.createElement("a"),{href:y,download:`${x}.html`});document.body.appendChild(h),h.click(),document.body.removeChild(h),setTimeout(()=>URL.revokeObjectURL(y),f5)},[e,t,a,r,i,l]);return{print:u,openNewWindow:c,downloadHtml:d}}function Vu(e,t){const{t:a}=_e.useTranslation(),r=t?.paperBands===!0,[s,i]=o.useState("landscape"),[l,u]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[c,d]=o.useState("\uD45C\uC2DC"),[m,p]=o.useState(!0),[f,y]=o.useState(!0),[x,h]=o.useState(!0),[g,_]=o.useState(!0),[C,w]=o.useState(8),[b,B]=o.useState("right"),v=e.length,k=e.some(Y=>(Y.words??[]).length>1),A=e.some(Y=>(Y.words??[]).some(Z=>!!Z.colloquialLabel)),N=Math.min(C,Math.max(v,1)),E=o.useMemo(()=>yu(e,N),[e,N]),D=E.length>1,H=N,[R,G]=o.useState(!1);o.useEffect(()=>{let Y=!1;if(!Qn()){G(!1);return}return Promise.all(e.flatMap(Z=>(Z.words??[]).map(z=>ri(z.label,z.homonum)))).then(Z=>{Y||G(Z.some(Boolean))},()=>{}),()=>{Y=!0}},[e]);const L=o.useMemo(()=>[Eu(a,{hasImage:R,hasColloquial:A}),Su(a),...v>0?[Ru(a,{hasPairs:k,itemCount:v})]:[],ju(a),...H>1?[Lu(a)]:[],...k?[$u(a)]:[],...r?[Tu(a),Mu(a)]:[]],[a,R,A,v,k,D,H,r]),M={...Ou(a,{contentTypes:l,orientation:s,showOutline:m,cutLine:c,showDivLine:g,showTopInfo:f,showBottomInfo:x}),...v>0?{[a(k?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${N}\uAC1C`}:{},...D?{[a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Fu[b]}:{}},I=o.useCallback((Y,Z)=>{Hu(a,Y,Z,{setContentTypes:u,setOrientation:i,setShowOutline:p,setCutLine:d,setShowDivLine:_,setShowTopInfo:y,setShowBottomInfo:h})||(Z===a("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||Z===a("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?w(Pu(parseInt(Y),v)):Z===a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&B(Iu(Y)))},[a,v]);return{settings:{orientation:s,contentTypes:l,cutLine:c,showOutline:m,showDivLine:g,count:H,showTopInfo:f,showBottomInfo:x},filterSections:L,filterSelected:M,handleSelect:I,pages:E,isPaginated:D,pageNumberPosition:b}}function g5({items:e,words:t,title:a,subtitle:r,emptyText:s,buttons:i,renderButtons:l,renderFooter:u,footerClassName:c,footerLayout:d,printFileName:m,showSettings:p,autoPrint:f,className:y,onClose:x,scoring:h=!1,onScoreChange:g,printHeader:_,brand:C,code:w,beforeClose:b}){const{t:B}=_e.useTranslation(),v=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(le=>typeof le=="string"&&le.length>0).map((le,De)=>({id:`${le}-${De}`,words:[{label:le}]})),[e,t]),{settings:k,filterSections:A,filterSelected:N,handleSelect:E,pages:D,isPaginated:H,pageNumberPosition:R}=Vu(v,{paperBands:!!C?.show}),G=o.useMemo(()=>bu(D.map(le=>le.length)),[D]),[L,M]=o.useState({}),I=o.useCallback((le,De)=>{M(V=>({...V,[ir(le)]:Cu(V[ir(le)]??null,De)}))},[]),Y=o.useRef(g);o.useEffect(()=>{Y.current=g});const Z=o.useRef(L);o.useEffect(()=>{Z.current!==L&&(Z.current=L,Y.current?.(jo(L)))},[L]);const z=o.useMemo(()=>jo(L),[L]),W=o.useRef(null),{toastMessage:$,toastKey:U,showWarning:S,clearToast:P}=ml("warning"),j=o.useRef([]),F=o.useCallback(()=>H?j.current.filter(le=>le!==null):W.current?[W.current]:[],[H]),{print:O,openNewWindow:q}=Ro({getElements:F,paperW:ua[k.orientation].width,paperH:ua[k.orientation].height,fileName:m??"",header:_??"",onPopupBlocked:()=>S(B("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}),Q=o.useMemo(()=>u?void 0:l?l({print:O,openNewWindow:q}):m?[{label:B("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>q()},{label:B("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>O()},...i??[]]:i,[u,l,m,i,B,O,q]),oe=o.useMemo(()=>u?u({print:O,openNewWindow:q}):void 0,[u,O,q]),se=o.useRef(!1),te=o.useRef(O);return o.useEffect(()=>{te.current=O},[O]),o.useEffect(()=>{if(!f||se.current)return;const le=window.setTimeout(()=>{se.current=!0,te.current()},100);return()=>window.clearTimeout(le)},[f]),n.jsxs($n,{title:a??B("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:Ae("word-table-popup",y),buttons:Q,footer:oe,footerClassName:c,footerLayout:d,beforeClose:b,onClose:x,children:[v.length>0?n.jsxs("div",{className:"word-table-popup__body",children:[p&&n.jsx(Mo,{sections:A,selected:N,onSelect:E}),H?n.jsx("div",{className:"word-table-popup__pages",children:D.map((le,De)=>n.jsx(ca,{items:le,orientation:k.orientation,contentTypes:k.contentTypes,cutLine:k.cutLine,showOutline:k.showOutline,showDivLine:k.showDivLine,count:k.count,contentRef:V=>{j.current[De]=V},pageNumber:{current:De+1,total:D.length},pageNumberPosition:R,brand:C&&{...C,top:k.showTopInfo,bottom:k.showBottomInfo},code:w,scoring:h,scoreIndexOffset:G[De],marks:z,onMarkClick:I},De))}):n.jsx("div",{className:"word-table-popup__table",children:n.jsx(ca,{items:v,orientation:k.orientation,contentTypes:k.contentTypes,cutLine:k.cutLine,showOutline:k.showOutline,showDivLine:k.showDivLine,count:k.count,contentRef:W,fitHeight:!0,scoring:h,marks:z,onMarkClick:I,brand:C&&{...C,top:k.showTopInfo,bottom:k.showBottomInfo},code:w})})]}):n.jsx("p",{className:"word-table-popup__empty body-3",children:s??B("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsx(sa,{message:$,position:"top",onClose:P},U)]})}const b5=new Set(["x","triangle"]);function y5(e,t){const a=[];for(let r=0;r<e.length;r++){const s=t[String(r)];s&&b5.has(s)&&a.push(e[r])}return a}const v5=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function Wu(e){const t=e.name.trim(),a=e.reviewRound;if(typeof a=="number"&&Number.isFinite(a)&&a>=0){const i=Math.floor(a);if(i===0)return{\uBC14\uD0D5:t,\uD68C\uCC28:1};const l=(i===1?/\s*복습\s*\d{2}\.\d{2}$/:new RegExp(`(?:^|\\s)${i}\uCC28\\s*\uBCF5\uC2B5\\s*\\d{2}\\.\\d{2}$`)).exec(t);return{\uBC14\uD0D5:l?t.slice(0,l.index).trim():t,\uD68C\uCC28:i+1}}let r=t,s=1;for(;;){const i=v5.exec(r);if(!i)break;s=Math.max(s,(i[1]?Number(i[1]):1)+1),r=r.slice(0,i.index).trim()}return{\uBC14\uD0D5:r,\uD68C\uCC28:s}}function x5(e,t){const[,a,r]=qr(t).split("-"),s=`${a}.${r}`,{\uBC14\uD0D5:i,\uD68C\uCC28:l}=Wu(typeof e=="string"?{name:e}:e),u=l>=2?`${l}\uCC28 `:"";return`${i||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${s}`}function _5(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:Wu(e).\uD68C\uCC28}}function w5(e,t){const a={};for(const[r,s]of Object.entries(t)){if(s!=="o"&&s!=="triangle"&&s!=="x")continue;const i=Number(r),l=e[i];l&&(a[r]=l)}return a}function B5(e){return e.map(t=>t.label).join(" / ")}function A5(e){return e.map(t=>t.homonum!=null?`${t.label}#${t.homonum}`:t.label).join(" / ")}function qu(e){return e.split(" / ").map(t=>t.replace(/#\d+$/,"")).join(" / ")}function k5(e,t,a){const r=Ci(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}function Uu(e,t,a){return a===0?0:(e+t*.5)/a}function N5(e){const t=new Map,a=[...e].sort((s,i)=>s.scoredAt.localeCompare(i.scoredAt));for(const s of a)for(const[i,l]of Object.entries(s.marks)){const u=s.labels?.[i];if(!u)continue;const c=t.get(u)??{o:0,triangle:0,x:0,latest:l,latestAt:s.scoredAt};if(l==="o")c.o++;else if(l==="triangle")c.triangle++;else if(l==="x")c.x++;else continue;c.latest=l,c.latestAt=s.scoredAt,t.set(u,c)}const r=[];for(const[s,i]of t){const l=i.o+i.triangle+i.x;r.push({label:qu(s),key:s,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:Uu(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((s,i)=>s.rate-i.rate||i.tried-s.tried||oa(s.label,i.label)||oa(s.key??s.label,i.key??i.label)),r}function D5(e){const t=new Map;for(const r of e){const s=r.tableId??`name:${r.tableName}`,i=t.get(s)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),t.set(s,i)}const a=[];for(const r of t.values()){const s=u=>Object.values(u.marks).filter(c=>c==="o"||c==="triangle"||c==="x").length,i=r.rows.filter(u=>s(u)>0).sort((u,c)=>u.scoredAt.localeCompare(c.scoredAt));if(i.length===0)continue;const l=i.map(u=>{const c=Object.values(u.marks),d=c.filter(p=>p==="o").length,m=c.filter(p=>p==="triangle").length;return Uu(d,m,s(u))});a.push({tableName:r.tableName,tableId:r.tableId,rates:l,times:i.map(u=>u.scoredAt),delta:l.length>=2?l[l.length-1]-l[0]:null})}return a.sort((r,s)=>(s.times[s.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function E5(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function S5(e,t){if(e==null||t==null||e===""||t==="")return 0;if(typeof e=="number"&&typeof t=="number")return e-t;const a=String(e),r=String(t);return+(a>r)-+(a<r)}function j5(e){const t=new Map;let a=0,r=0;const s=e.map((l,u)=>({r:l,\uC790\uB9AC:u})).sort((l,u)=>l.r.answeredAt.localeCompare(u.r.answeredAt)||S5(l.r.id,u.r.id)||l.\uC790\uB9AC-u.\uC790\uB9AC).map(l=>l.r);for(const l of s){if(l.isCorrect==null)continue;const u=l.itemTitle?.trim();if(!u){r++;continue}a++;const c=l.itemId?.trim()||u,d=`${l.trainingType}|${c}`,m=t.get(d)??{trainingType:l.trainingType,itemId:c,title:u,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(m.tried++,l.isCorrect||m.wrong++,m.title=u,m.latestCorrect=l.isCorrect,m.latestAt=l.answeredAt,m.lastSelected=l.selected,l.setId){const p=m.setIds.indexOf(l.setId);p>0&&m.setIds.splice(p,1),p!==0&&m.setIds.unshift(l.setId)}t.set(d,m)}const i=[...t.entries()].map(([l,u])=>({key:l,trainingType:u.trainingType,itemId:u.itemId,title:u.title,tried:u.tried,wrong:u.wrong,rate:u.tried===0?0:(u.tried-u.wrong)/u.tried,latestCorrect:u.latestCorrect,latestAt:u.latestAt,lastSelected:u.lastSelected,setIds:u.setIds}));return i.sort((l,u)=>l.rate-u.rate||u.tried-l.tried||oa(l.title,u.title)),{items:i,counted:a,skippedNoTitle:r}}function T5(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function M5(e){const t=new Map;for(const r of e){const s=t.get(r.trainingType)??[];s.push(r),t.set(r.trainingType,s)}const a=[...t.entries()].map(([r,s])=>({trainingType:r,items:s,pending:s.filter(i=>!i.latestCorrect).length}));return a.sort((r,s)=>s.pending-r.pending||r.trainingType.localeCompare(s.trainingType)),a}const Po=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function L5(e){const t=new Map;let a=0;for(const i of e){if(i.latestCorrect)continue;const l=i.setIds[0];if(!l){a++;continue}const u=`${i.trainingType}|${l}`,c=t.get(u)??{setId:l,trainingType:i.trainingType,pending:0};c.pending++,t.set(u,c)}const r=(i,l)=>l.pending-i.pending||i.trainingType.localeCompare(l.trainingType)||i.setId.localeCompare(l.setId),s=[...t.values()];return{sentence:s.filter(i=>Po.includes(i.trainingType)).sort(r),word:s.filter(i=>!Po.includes(i.trainingType)).sort(r),noSet:a}}function $5(e,t,a=5){const r=new Set(t);if(r.size===0)return[];const s=[];for(const i of e){const l=new Set,u=[];for(const c of i.cellLabels)r.has(c)&&!l.has(c)&&(l.add(c),u.push(c));u.length!==0&&s.push({id:i.id,name:i.name,kind:i.kind,covered:u,totalCells:i.cellLabels.length})}return s.sort((i,l)=>l.covered.length-i.covered.length||i.totalCells-l.totalCells||oa(i.name,l.name)),s.slice(0,Math.max(0,a))}function R5(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function P5(e,t){const a=new Map;for(const s of e)for(const i of s.cells){const l=s.labelOf(i);a.has(l)||a.set(l,i)}const r=[];for(const s of t){const i=a.get(s);i!==void 0&&r.push(i)}return r}function Fo(e,t,a){return typeof e=="string"&&e?e:t.replace(/\{\{(\w+)\}\}/g,(r,s)=>String(a[s]))}function F5(e,t){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),s=a%60;return t?t(r,s):r>0&&s>0?Fo(Tt.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?Fo(Tt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):Fo(Tt.t("customers.duration.sec",{s,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s})}function I5(e,t){const a=[],r=new Set;for(const s of e){const i=t(s);r.has(i)||(r.add(i),a.push({key:i,value:s,pinned:!1}))}return a}function O5(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function H5(e,t){return e.filter(a=>a.key!==t)}function z5(e,t,a){const r=e.filter(d=>d.pinned),s=new Set(r.map(d=>d.key)),i=e.length-r.length,l=[],u=new Set(s);for(const d of t){if(l.length>=i)break;const m=a(d);u.has(m)||(u.add(m),l.push({key:m,value:d,pinned:!1}))}const c=[...l];return e.map(d=>d.pinned?d:c.shift()).filter(d=>d!==void 0)}function V5(e){return e.map(t=>t.value)}function W5(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},s=t?.key?` icon-grid-menu__button--${t.key}`:"",i=o.useId();return n.jsxs("div",{className:`icon-grid-menu__button-wrapper${s}`,children:[n.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":t?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,children:n.jsx(tt,{icon:t.icon,label:t.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),n.jsx("span",{id:i,className:"icon-grid-menu__button-label button-1",children:t.label})]})}function q5(e){const{categories:t=[],selected:a,onSelect:r,size:s="medium"}=e||{},i=a!==void 0,[l,u]=o.useState(()=>i?null:(t&&t[0]?.key)??null),c=i?a:l,d=o.useRef(r);o.useEffect(()=>{d.current=r});const m=o.useRef(!1),p=(t&&t[0]?.key)??null;o.useEffect(()=>{if(i||m.current||!p)return;m.current=!0;const y=l??p;l==null&&u(y),d.current?.(y)},[i,p]);const f=o.useCallback(y=>{const x=c===y?null:y;m.current=!0,i||u(x),r?.(x)},[c,i,r]);return n.jsx("div",{className:`icon-grid-menu icon-grid-menu--${s}`,children:(t||[]).map(y=>n.jsx(W5,{category:y,isSelected:c===y.key,onClick:()=>f(y.key)},y.key))})}function U5({subs:e=[],selected:t,onSelect:a,size:r="medium"}){const s=r==="small"?32:40;return n.jsx("div",{className:`choice-chips choice-chips--${r}`,children:n.jsx("div",{className:"choice-chips__list",children:e.map(i=>n.jsx(me,{htmlType:"button",size:s,type:"bar",label:i.label,selected:t===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function G5({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",s=a?.tel??"031-380-3724",{t:i}=_e.useTranslation();return n.jsx("footer",{className:"site-footer",children:n.jsxs("div",{className:"safearea",children:[n.jsxs("div",{className:"site-footer__top",children:[n.jsx("div",{className:"site-footer__brand",children:n.jsx("div",{className:"site-footer__lead h3",children:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
1046
1046
  \uC2E0\uB8B0\uB97C \uC313\uACE0
1047
1047
  \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
1048
- `).map((l,u,c)=>n.jsxs(o.Fragment,{children:[l,u<c.length-1&&n.jsx("br",{})]},u))})}),n.jsxs("div",{className:"site-footer__links",children:[n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:i("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.youtube.com/@%EC%95%84%EC%9D%B4%ED%95%B4%EB%B8%8C-%EA%B3%B5%EC%8B%9D%EC%B1%84%EB%84%90",target:"_blank",rel:"noopener noreferrer",children:"Youtube"})})]})]}),n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"#",onClick:l=>{e&&(l.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"#",onClick:l=>{t&&(l.preventDefault(),t())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),n.jsx("hr",{className:"site-footer__rule"}),n.jsxs("div",{className:"site-footer__bottom",children:[n.jsx("div",{className:"site-footer__brand",children:n.jsx("img",{src:po,alt:"IHAB",className:"site-footer__logo"})}),n.jsxs("div",{className:"site-footer__meta",children:[n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),n.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),n.jsx("span",{className:"footer-meta caption-1",children:i("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),n.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",s]})]})]})]}),n.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function W5({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:s,className:i,containerClassName:l,renderLink:u,menuLabel:c}){const{t:d}=_e.useTranslation(),m=c??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[p,f]=o.useState(!1),y=o.useId(),v=o.useRef(null);o.useEffect(()=>{if(!p)return;const _=Vn(()=>{const g=document.getElementById(y);g&&g.contains(document.activeElement)&&v.current?.focus(),f(!1)}),h=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,w=g=>{g.matches&&f(!1)};return h&&(h.matches&&f(!1),h.addEventListener?.("change",w)),()=>{_(),h?.removeEventListener?.("change",w)}},[p,y]);const C=l?`${l} landing-header__inner`:"landing-header__inner",b=(_,h)=>u?u(_,{onClick:h}):n.jsx("a",{href:_.href,onClick:h,"aria-current":_.current?"page":void 0,children:_.label});return n.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[n.jsxs("div",{className:C,children:[e!=null&&(()=>{const _=typeof e=="string"?n.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?n.jsx("a",{href:a,className:"landing-header__brand",children:_}):n.jsx("div",{className:"landing-header__brand",children:_})})(),r.length>0&&n.jsx("nav",{className:"landing-header__links",children:r.map((_,h)=>n.jsx("span",{children:b(_)},`${h}:${_.href}`))}),n.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&n.jsx("button",{ref:v,type:"button",onClick:()=>f(_=>!_),"aria-expanded":p,"aria-controls":y,"aria-label":p?m.close:m.open,className:p?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:n.jsxs("span",{className:"landing-header__burger",children:[n.jsx("span",{}),n.jsx("span",{}),n.jsx("span",{})]})})]})]}),r.length>0&&n.jsx("nav",{id:y,hidden:!p,className:"landing-header__drawer",children:n.jsx("div",{className:l??void 0,children:r.map((_,h)=>n.jsx("span",{className:"landing-header__drawer-item",children:b(_,()=>f(!1))},`${h}:${_.href}`))})})]})}function q5({children:e,action:t,onClick:a,className:r}){const s=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return n.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:n.jsxs("div",{className:s,onClick:a,...pu(a),children:[n.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}function U5({mountedRef:e}){const t=o.useRef({phase:"sound",at:0}),a=o.useRef(0),r=o.useRef(null),s=o.useRef(null),i=o.useCallback(()=>{const C=t.current,b=C.phase!=="sound"&&C.at>0;s.current=b?{phase:C.phase,\uD750\uB978:Math.max(0,Date.now()-C.at)}:null},[]),l=o.useCallback(()=>{const C=s.current;return s.current=null,C},[]),u=o.useCallback(()=>{a.current+=1,t.current={phase:"sound",at:0}},[]),c=o.useCallback((C,b,_=0)=>{if(!(C>0))return Promise.resolve(!0);const h=a.current;return t.current={phase:b,at:Date.now()-Math.max(0,_)},new Promise(w=>{const g=setTimeout(()=>{r.current===g&&(r.current=null),w(!!e.current&&h===a.current)},C);r.current=g})},[e]),d=o.useCallback(()=>{t.current={phase:"sound",at:Date.now()}},[]),m=o.useCallback(()=>{t.current={phase:"sound",at:0}},[]),p=o.useCallback(()=>{const C=t.current;return C.phase!=="sound"&&C.at>0},[]),f=o.useCallback(()=>a.current,[]),y=o.useCallback(C=>C===a.current,[]),v=o.useCallback(()=>{a.current+=1},[]);return o.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null)},[]),o.useMemo(()=>({positionRef:t,isRunning:p,generation:f,isCurrent:y,abort:u,waitPad:c,enterSound:d,leave:m,pause:i,resume:l,__bumpGenerationForTest:v}),[p,f,y,u,c,d,m,i,l,v])}const pa=9,G5=e=>Math.round(Math.min(pa,Math.max(0,e))/pa*100),K5=e=>e/100*pa,Pa=2,Gu=.1,Y5=e=>Math.min(Pa,Math.max(0,e)),Z5=.1,X5=e=>Math.round(e*1e6)/1e6;function Fa(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return Y5(t);const a=Math.min(pa,Math.max(0,Number(e.level)||0))/pa,r=Number(e.mainVolume);return r>0?a>0?X5(Math.min(Pa,Math.max(Z5,a/r))):0:1}const Ku=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Yu(e){return Ku(e)}function Io(e){return Ku(e)*Fa(e)}function Oo(e,t=uC()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,Io(e)/a)}function Ia(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=Fa({level:a.level,mainVolume:a.mainVolume})),a}const Oa={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Ho=o.createContext(null);function cr(){return o.useContext(Ho)}const zo=e=>`${lC()}/${e}`,Zu=e=>Array.from({length:10},(t,a)=>zo(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),dr={get defaultNoise(){return zo("noise1.mp3")},get street(){return Zu("noise2")},get restaurant(){return Zu("noise3")},get buzz(){return zo("noise4.mp3")}};function J5(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return dr.defaultNoise;case"street":return dr.street[t];case"restaurant":return dr.restaurant[t];case"buzz":return dr.buzz;default:return null}}function Q5({noisePlayer:e,audioRef:t,playbackStateRef:a,sequencer:r}){const s=o.useRef(e?.registerAnalyser);s.current=e?.registerAnalyser;const i=o.useRef(null),[l,u]=o.useState(null),c=o.useRef(null),d=o.useRef(null),m=o.useRef(null),p=o.useRef(null),f=o.useRef(0),y=o.useRef(null),v=o.useCallback(()=>!!r?.isRunning(),[r]),C=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),y.current!==null&&(clearTimeout(y.current),y.current=null)},[]),b=o.useCallback((B,x=250)=>{const N=i.current;if(!N)return;const k=d.current;if(k){d.current=null;try{N.pause()}catch{}N.src=k,N.load()}if(!N.src)return;f.current+=1,C();try{Fr(),za(N).then(H=>{if(i.current===N)try{s.current?.("noise",H)}catch{}})}catch{}const A=N.paused?0:Va(N);N.paused&&Mn(N,0),N.play().catch(()=>{});const S=performance.now(),E=()=>{const H=Math.min(1,(performance.now()-S)/x);try{Mn(N,A+(B-A)*H)}catch{}H<1?p.current=requestAnimationFrame(E):p.current=null};p.current=requestAnimationFrame(E)},[C]),_=o.useCallback((B=250,x)=>{const N=i.current;if(!N||N.paused){x?.();return}const k=++f.current;C();const A=performance.now(),S=Va(N),E=()=>{const H=Math.min(1,(performance.now()-A)/B);try{Mn(N,S*(1-H))}catch{}if(H<1)p.current=requestAnimationFrame(E);else{p.current=null,y.current!==null&&(clearTimeout(y.current),y.current=null);try{N.pause()}catch{}x?.()}};p.current=requestAnimationFrame(E),y.current=setTimeout(()=>{if(y.current=null,f.current===k){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{N.paused||(Mn(N,0),N.pause(),x?.())}catch{}}},B+150)},[C]);o.useEffect(()=>{const B=document.createElement("audio");return B.loop=!0,B.crossOrigin="anonymous",i.current=B,()=>{C();try{B.pause(),B.src=""}catch{}i.current=null,c.current=null,d.current=null}},[C]);const h=e?Oo(e.settings):0,w=!!e?.settings.enabled&&h>0;o.useEffect(()=>{if(!w)return;let B=0;const x=setInterval(()=>{const N=i.current;if(!N||N.paused){B=0;return}const k=t.current;if(k&&!k.paused&&!k.ended||v()||a.current==="playing"){B=0;return}B+=1,B>=2&&(B=0,_())},400);return()=>clearInterval(x)},[_,w,t,a,v]),o.useEffect(()=>{const B=()=>{const x=i.current;if(document.hidden){if(x&&!x.paused){C();try{x.pause()}catch{}}return}if(!x||!x.paused)return;const N=t.current,k=!!N&&!N.paused&&!N.ended||v()||a.current==="playing",A=m.current;k&&A?.enabled&&A.volume>0&&b(A.volume)};return document.addEventListener("visibilitychange",B),()=>document.removeEventListener("visibilitychange",B)},[C,b,t,a,v]),o.useEffect(()=>{m.current=e?{enabled:e.settings.enabled,volume:h,type:e.settings.type}:null},[e,e?.settings.enabled,h,e?.settings.type]);const g=o.useRef(null);return o.useEffect(()=>()=>{g.current?.(),g.current=null},[]),o.useEffect(()=>{const B=e?.settings,x=i.current;if(!x)return;const N=B?Oo(B):0;if(!B||!B.enabled||N===0){_();return}if(c.current!==B.type){const k=J5(B.type);k&&(c.current=B.type,u(k),d.current=k,_(150,()=>{if(d.current!==k)return;d.current=null,x.src=k,x.load();const A=t.current;if(A&&!A.paused||v()){g.current?.();const S=()=>{x.removeEventListener("canplay",S),g.current===E&&(g.current=null);const H=t.current,$=m.current;(H&&!H.paused&&!H.ended||v())&&$?.enabled&&$.volume>0&&b($.volume)},E=()=>x.removeEventListener("canplay",S);g.current=E,x.addEventListener("canplay",S)}}))}else{const k=t.current,A=!!k&&!k.paused&&!k.ended||v()||a.current==="playing";if(A&&d.current)b(N);else if(A&&x.paused&&x.src)b(N);else if(!x.paused)if(!A)_();else{C();const S=Va(x),E=performance.now(),H=()=>{const $=Math.min(1,(performance.now()-E)/150);try{Mn(x,S+(N-S)*$)}catch{}$<1?p.current=requestAnimationFrame(H):p.current=null};p.current=requestAnimationFrame(H)}}},[e?.settings,e?.settings.enabled,h,e?.settings.type,C,b,_,t,a,m,v]),o.useEffect(()=>{const B=i.current;if(B)try{B.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:i,activeNoiseUrl:l,noiseSettingsRef:m,cancelNoiseFade:C,fadeInNoise:b,fadeOutNoise:_}}function e3({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:i,setPlaybackState:l,setStateLocal:u,fadeInNoise:c,fadeOutNoise:d,noiseSettingsRef:m,onDoneRef:p,handleEndRef:f}){const y=o.useRef(null),v=o.useRef(0),C=o.useRef(null),b=o.useRef(0),_=o.useRef(!1);o.useEffect(()=>()=>{b.current++;try{if(C.current&&(cancelAnimationFrame(C.current),C.current=null),_.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}_.current=!1}}catch{}},[]);const h=(B,x=1)=>{try{const N=(B||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(B||"").length);return Math.max(700,Math.round(N*300/Math.max(.25,x)))}catch{return 1200}},w=o.useCallback(B=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof p.current=="function"&&p.current(!1)}catch{}return}const x=window.speechSynthesis,N=++b.current;try{try{x.cancel()}catch{}const k=B??e,A=Array.isArray(k)?k.filter(L=>!!L):[k||""];A.length===0&&A.push("");const S=Math.max(.3,Math.min(3,t));v.current=A.reduce((L,j)=>L+h(j,S||1),0),y.current=performance.now(),i(0),l("playing"),u("playMode");const E=m.current;E?.enabled&&(E?.volume??0)>0&&c(E.volume);const H=()=>{try{const L=y.current||performance.now(),j=performance.now()-L,O=v.current||1200,U=Math.min(1,j/O);try{r.current&&(r.current.style.left=`${U*100}%`),s.current&&s.current.style.setProperty("--progress",String(U))}catch{}U<1&&(C.current=requestAnimationFrame(H))}catch{}},$=()=>{if(N===b.current)try{C.current&&(cancelAnimationFrame(C.current),C.current=null),i(1),l("stopped");try{f.current?.()}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{}},K=L=>{const j=new SpeechSynthesisUtterance(A[L]);try{j.rate=S}catch{}try{j.volume=Math.max(0,Math.min(1,a))}catch{}j.onend=()=>{if(N===b.current){if(L<A.length-1){try{K(L+1)}catch{$()}return}$()}},j.onerror=()=>{$()},j.onstart=()=>{if(!(L>0))try{C.current&&(cancelAnimationFrame(C.current),C.current=null),C.current=requestAnimationFrame(H)}catch{}},_.current=!0,x.speak(j)};try{K(0)}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}},[e,t,a,c,r,s,i,l,u,m,p,f]),g=o.useCallback(()=>{b.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}C.current&&(cancelAnimationFrame(C.current),C.current=null),d(),y.current=null}catch{}l("stopped"),u("active"),i(0)},[d,l,u,i]);return{startTTS:w,stopTTS:g}}const t3=.01,n3=.3;async function a3(e,t,a,r=!1){let s=null;try{const i=window.AudioContext||window.webkitAudioContext;s=new i;const l=await s.decodeAudioData(e.slice(0)),u=l.numberOfChannels>0?l.getChannelData(0):null;if(!u)return null;let c=0;if(r){const y=Math.floor(n3*l.sampleRate),v=Math.min(u.length,y);for(;c<v&&Math.abs(u[c])<=t3;)c++;c>=v&&(c=0)}const d=u.length-c,m=a&&a>0?Math.min(d,Math.floor(a*l.sampleRate)):d,p=Math.max(t,m),f=Math.floor(p/t)||1;return new Array(t).fill(0).map((y,v)=>{const C=c+v*f,b=Math.min(C+f,c+p,u.length);let _=0;for(let h=C;h<b;h++){const w=Math.abs(u[h]);w>_&&(_=w)}return _})}catch{return null}finally{try{s?.close?.()}catch{}}}async function Xu(e,t,a,r=!1){try{const s=await fetch(e);if(s.ok===!1)return null;const i=await s.arrayBuffer();return await a3(i,t,a,r)}catch(s){try{const i=li(s)}catch{}return null}}const Vo=45,r3=74,o3=2;function pr(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function mr(e){return pr(e)/45}const s3=e=>Math.max(0,(typeof e=="number"&&Number.isFinite(e)?e:0)*1e3),Ju=e=>Math.max(0,typeof e=="number"&&Number.isFinite(e)?e:0);function Qu({durationsSec:e,leadInMs:t=0,tailMs:a=0}){const r=Ju(t),s=Ju(a),i=[];let l=0;return e.forEach((u,c)=>{for(const[d,m]of[["lead",r],["sound",s3(u)],["tail",s]])i.push({kind:d,track:c,startMs:l,durMs:m}),l+=m}),{segments:i,totalMs:l,trackCount:e.length}}function ec(e,t){const a=(t|0)*3;if(t<0||a+2>=e.segments.length)return null;const[r,s,i]=[e.segments[a],e.segments[a+1],e.segments[a+2]];return{lead:r,sound:s,tail:i,totalMs:r.durMs+s.durMs+i.durMs}}function i3(e,t){const a=ec(e,t.track);if(!a||!(a.totalMs>0))return 0;const r=a[t.kind],s=Math.min(Math.max(0,Number.isFinite(t.elapsedMs)?t.elapsedMs:0),r.durMs);return Math.max(0,Math.min(1,(r.startMs-a.lead.startMs+s)/a.totalMs))}function l3(e,t,a){const r=Math.max(0,Math.floor(a)),s=ec(e,t);if(!s||r===0||!(s.totalMs>0)||s.lead.durMs===0&&s.tail.durMs===0||!(s.sound.durMs>0))return{lead:0,sound:r,tail:0};const i=Math.round(s.lead.durMs/s.totalMs*r),l=Math.round(s.tail.durMs/s.totalMs*r),u=Math.max(1,r-i-l),c=i+u+l-r;return{lead:Math.max(0,i-Math.ceil(c/2)),sound:u,tail:Math.max(0,l-Math.floor(c/2))}}function u3({currentTime:e,sources:t,index:a,audioDuration:r}){const s=a||0,i=Array.isArray(t)&&t.length>0?t[s]:void 0,l=i?i.duration||r||0:r||0;if(!(l>0))return 0;const u=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,u/l))}function c3({phase:e,phaseElapsedMs:t,currentTime:a,trackDurationSec:r,leadInMs:s,tailMs:i}){const l=Qu({durationsSec:[r],leadInMs:s,tailMs:i});return i3(l,{track:0,kind:e,elapsedMs:e==="sound"?(Number.isFinite(a)?a:0)*1e3:t})}function d3({bars:e,trackDurationSec:t,leadInMs:a,tailMs:r}){return l3(Qu({durationsSec:[t],leadInMs:a,tailMs:r}),0,e)}function p3(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function m3({ended:e,completedByEnd:t}){return!!e||!!t}function h3(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function C3(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function f3(e,t,a){const r=Array.isArray(e)?e:e?[e]:[],s=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const l=i;s.push({code:l.code??null,src:l.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){s.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const l=String(i),u=a(l,t);u&&s.push({code:l,resolvedPath:u})}}return s}const tc=4,g3=mr(tc/Vo);function b3(e){const{src:t,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:i,noiseRatio:l=0,noiseSpeed:u=1,totalDuration:c=0,mainVolume:d=1,onReadyChange:m,showSoundWaveForm:p=!0,leadInMs:f=0,tailMs:y=0,trackDurationSec:v=0}=e,C=o.useRef(null),b=o.useRef(null),[_,h]=o.useState(null),[w,g]=o.useState(!1),[B,x]=o.useState(null),[N,k]=o.useState(2),[A,S]=o.useState(0),[E,H]=o.useState(null),[$,K]=o.useState(!1),[L,j]=o.useState(!1),O=3,U=3,te=1,z=300,q=o.useRef(0),R=o.useCallback(()=>{const fe=C.current,ae=b&&b.current?b.current:fe?fe.closest(".audio-player__wave"):null,de=ae?ae.getBoundingClientRect():fe?fe.getBoundingClientRect():null,pe=de?de.width:0,he=de?Math.max(100,de.width):320,be=de?de.height:0,Pe=Math.max(te,Math.min(z,Math.floor((he+U)/(O+U)))),$e=Pe*O,Ie=Math.max(0,Pe-1),Fe=Math.max(0,Ie>0?(he-$e)/Ie:U);return{bars:Pe,gap:Fe,height:be,width:pe}},[]),W=o.useRef(void 0),D=o.useRef(null),P=o.useCallback(async(fe,ae,{quiet:de=!1}={})=>{const pe=++q.current,he=()=>q.current===pe;try{if(de||g(!1),W.current=fe,!fe){he()&&h(null);return}let be=ae;if(!be)try{for(let Ie=0;Ie<4&&!(C.current||b.current);Ie++)await new Promise(Fe=>requestAnimationFrame(Fe));await new Promise(Ie=>requestAnimationFrame(Ie));const $e=R();$e.height>0&&S($e.height),be=$e.bars,k($e.gap)}catch{be=120}D.current=be;const Pe=await Xu(fe,be);if(!he())return;if(!Pe){h(null),g(!1);return}h(Pe),x(be),g(!0)}catch{if(!he())return;h(null),g(!1)}},[g,h,S,k,x,R]);o.useEffect(()=>{const fe=b.current;if(!fe||typeof ResizeObserver>"u")return;let ae=null;const de=new ResizeObserver(()=>{ae!==null&&cancelAnimationFrame(ae),ae=requestAnimationFrame(()=>{ae=null;try{const pe=R();if(pe.width<=0||(pe.height>0&&S(pe.height),D.current===null||pe.bars===D.current))return;const he=W.current;k(pe.gap),he?P(he,pe.bars,{quiet:!0}).catch(()=>{}):D.current=pe.bars}catch{}})});return de.observe(fe),()=>{de.disconnect(),ae!==null&&cancelAnimationFrame(ae)}},[R,P]),o.useEffect(()=>{const fe=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;P(typeof fe=="string"?fe:void 0).catch(()=>{}),j(!1)},[t,a,P]),o.useEffect(()=>{let fe=!1;if(K(!1),!i||!B){H(null);return}const ae=c>0?c*(u||1):void 0;return Xu(i,B,ae,!0).then(de=>{fe||(H(de),de||K(!0))}).catch(()=>{fe||(H(null),K(!0))}),()=>{fe=!0}},[i,B,c,u]);const M=Math.max(0,Math.min(1,d)),F=o.useMemo(()=>_&&_.length&&Math.max(..._)||1,[_]),I=B||40,Z=o.useMemo(()=>d3({bars:I,trackDurationSec:v,leadInMs:f,tailMs:y}),[I,v,f,y]),J=o.useMemo(()=>Array.from({length:I}).map((fe,ae)=>{const de=ae>=Z.lead&&ae<Z.lead+Z.sound,pe=Z.sound>0&&de?Math.min(I-1,Math.round((ae-Z.lead)/Z.sound*I)):-1,he=de?_&&_[pe]!=null?_[pe]:null:_?0:null,be=he==null?null:Math.min(1,he/F*M),Pe=be!=null&&A>0&&pr(be)<=tc,$e=be==null?.15:Pe?0:mr(be),Ie=Pe,Fe=I>1?ae/(I-1):0;return n.jsx("div",{className:Ie?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":$e,"--i":ae,"--mix":Fe}},ae)}),[I,_,F,M,A,Z]),Y={"--progress":String(Math.max(0,Math.min(1,r)))},ne=o.useMemo(()=>E&&E.length&&Math.max(...E.map(fe=>Number.isFinite(fe)?Math.abs(fe):0))||1,[E]),ie=M*Math.max(0,l),ue=!i||!E||!E.length?1:Math.max(1,ie),Se={"--bar-gap":`${N}px`,"--wave-h":`${pr(ue)}px`,"--wave-h1":`${Vo}px`},V=w&&(i?!!E||$:!0);o.useEffect(()=>{V&&j(!0)},[V]);const oe=L?w:V;o.useEffect(()=>{m?.(oe)},[oe,m]);const ge=B||40,De=o.useMemo(()=>Array.from({length:ge}).map((fe,ae)=>{const de=E&&E[ae]!=null?E[ae]:null,pe=de==null?0:Math.abs(de)/ne*ie,he=Math.max(g3,mr(pe)),be=ge>1?ae/(ge-1):0;return n.jsx("div",{className:"audio-player__bar",style:{"--val":he,"--i":ae,"--mix":be}},ae)}),[ge,E,ne,ie,A]);return n.jsxs("div",{className:"audio-player__wave",ref:b,style:Se,children:[i&&n.jsx("div",{className:`audio-player__wave-noise ${V?"is-ready":""}`,"aria-hidden":"true",children:De}),p&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${oe?"is-ready":""}`,ref:C,children:J}),n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${oe?"is-ready":""}`,ref:s,style:Y,children:J})]})]})}const y3={idle:"\uB300\uAE30",synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"},nc={idle:!1,synthesizing:!0,resolving:!0,checking_exists:!0,getting_signed_url:!0,downloading:!0,measuring_duration:!0,ready:!1,error:!0};function Wo(e,t){return new Promise((a,r)=>{const s=document.createElement("audio");let i=!1;const l=()=>{try{s.src=""}catch{}},u=()=>{if(i)return;i=!0;const d=isFinite(s.duration)&&s.duration||0;l(),a(d)},c=d=>{i||(i=!0,l(),t.rejectOnError?r(new Error(d)):a(0))};s.addEventListener("loadedmetadata",u),s.addEventListener("error",()=>c("audio load failed")),setTimeout(()=>c("audio load timeout"),t.timeoutMs),s.src=e})}const v3=2e3;function ac(e,t=v3){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.addEventListener("canplay",s,{once:!0}),e.addEventListener("error",s,{once:!0}),setTimeout(s,t)})}function x3({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=o.useRef(!1),s=o.useRef([]),i=o.useCallback(c=>{if(r.current=c,!c||!s.current.length)return;const d=s.current;s.current=[];for(const m of d)m(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),u=o.useCallback(()=>!e&&!t||r.current?Promise.resolve(!0):new Promise(c=>{const d=p=>{clearTimeout(m),s.current=s.current.filter(f=>f!==d),c(p)},m=setTimeout(()=>d(!0),a);s.current.push(d)}),[e,t,a]);return o.useEffect(()=>()=>{const c=s.current;s.current=[];for(const d of c)d(!1)},[]),{onReadyChange:i,waitForReady:u,markNotReady:l}}function _3(){const e=o.useRef([]),t=o.useCallback(s=>(e.current.push(s),s),[]),a=o.useCallback(s=>{const i=new Set([...s].filter(Boolean));e.current=e.current.filter(l=>{if(i.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=o.useCallback(()=>{a([])},[a]);return o.useEffect(()=>()=>{for(const s of e.current)try{URL.revokeObjectURL(s)}catch{}e.current=[]},[]),{track:t,keepOnly:a,revokeAll:r}}function w3({offsetY:e=8}={}){const t=o.useRef(null),[a,r]=o.useState(null),s=o.useCallback(()=>r(null),[]),i=o.useCallback(()=>{try{const l=t.current?.getBoundingClientRect();if(!l)return;r({left:l.left,right:l.right,width:l.width,height:l.height,x:l.x,top:l.top+e,bottom:l.bottom+e,y:l.y+e,toJSON:l.toJSON.bind(l)})}catch{}},[e]);return o.useEffect(()=>{if(a)return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[a,s]),{ref:t,rect:a,show:i,hide:s}}function B3(e){if(!e)return 0;const t=e.duration;if(Number.isFinite(t)&&t>0)return t;if(t===0)return 0;try{const a=e.seekable;if(a&&a.length>0){const r=a.end(a.length-1);if(Number.isFinite(r)&&r>0)return r}}catch{}return null}const A3=400,k3=2e3,rc=5;function N3({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:s,sequencer:i,leadInMs:l=0,tailMs:u=0}){const c=o.useRef(null),d=o.useRef(0),m=o.useRef(null),p=o.useCallback(()=>{c.current!==null&&(cancelAnimationFrame(c.current),c.current=null)},[]),f=o.useCallback(()=>{if(c.current!==null)return;let v=0;const C=()=>{if(Zn){const b=typeof performance<"u"&&performance.now?performance.now():Date.now();if(v>0&&b-v>A3){const _=m.current===null||b-m.current>k3;if(m.current=b,_&&d.current<rc){d.current+=1;const h=d.current;let w=null;try{w=typeof document<"u"?document.visibilityState:null}catch{}Gt(`progress-ticker-slow-frames#${h}`,`[ihab-core] \uC9C4\uD589 \uC0AC\uC2AC\uC758 \uD2C0 \uC0AC\uC774\uAC00 ${Math.round(b-v)}ms \uC785\uB2C8\uB2E4(\uBCF4\uD1B5 16ms).`,w==="hidden"?"\uC774 \uCE78\uC774 **\uC228\uC5B4 \uC788\uC5B4** \uBE0C\uB77C\uC6B0\uC800\uAC00 \uD2C0\uC744 \uC904\uC600\uC2B5\uB2C8\uB2E4 \u2014 \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC740 \uD2C0\uB9C8\uB2E4 \uADF8\uB824\uC9C0\uBBC0\uB85C, \uC9C0\uAE08 \uC7AC\uB294 \uAC12\uC740 **\uC0AC\uB78C\uC774 \uBCF4\uB294 \uD654\uBA74\uACFC \uB2E4\uB985\uB2C8\uB2E4.** \uCE78\uC744 \uC55E\uC73C\uB85C \uAEBC\uB0B4\uACE0 \uB2E4\uC2DC \uC7AC\uC2ED\uC2DC\uC624.":"\uCE78\uC740 \uBCF4\uC774\uB294\uB370 \uD2C0\uC774 \uB290\uB9BD\uB2C8\uB2E4 \u2014 \uAC19\uC740 \uD654\uBA74\uC5D0\uC11C \uBB34\uAC70\uC6B4 \uC77C\uC774 \uB3C4\uB294\uC9C0 \uBCF4\uC2ED\uC2DC\uC624. \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC774 \uB04A\uACA8 \uBCF4\uC774\uB294 \uAC83\uC740 \uC774 \uD0D3\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.",h>=rc?`(${h}\uBC88\uC9F8 \u2014 \uB354\uB294 \uC548 \uC54C\uB9BD\uB2C8\uB2E4)`:`(${h}\uBC88\uC9F8)`)}}v=b}try{const b=e.current,_=Array.isArray(r.current)?r.current[s.current||0]:void 0,h=!!_&&Number.isFinite(_.duration)&&(_.duration??0)>0,w=h?0:B3(b),g=t.current,B=(l||0)>0||(u||0)>0,x=B&&(i?.positionRef.current?.phase??"sound")!=="sound";if(w===null&&!x)try{g&&g.style.visibility!=="hidden"&&(g.style.visibility="hidden")}catch{}else{const N=h?_.duration:w||0;Zn&&x&&!(N>0)&&Gt("progress-ticker-pad-without-duration","[ihab-core] \uB738\uC774 \uB3C4\uB294\uB370 **\uC18C\uB9AC \uAE38\uC774\uB97C \uBAA8\uB985\uB2C8\uB2E4** \u2014 \uC7AC\uC0DD\uBC14\uAC00 \uB738\uB9CC\uC73C\uB85C \uC5B4\uB9BC\uC7A1\uC544 \uC6C0\uC9C1\uC785\uB2C8\uB2E4.","\uC18C\uB9AC \uAE38\uC774 \uC7AC\uAE30(measureAudioDuration)\uAC00 0 \uC744 \uC92C\uAC70\uB098 `<audio>` \uAC00 \uC544\uC9C1 \uC548 \uC2E4\uB838\uC2B5\uB2C8\uB2E4. \uAE38\uC774\uB97C \uC54C\uAC8C \uB418\uBA74 \uB9C8\uCEE4\uAC00 \uADF8 \uC21C\uAC04 **\uB4A4\uB85C \uBB3C\uB7EC\uB0A9\uB2C8\uB2E4**(\uC5B4\uB9BC\uC740 \uB298 \uCC38\uBCF4\uB2E4 \uD07D\uB2C8\uB2E4). \uC774 \uC904\uC774 \uBCF4\uC774\uBA74 \uADF8 \uC790\uB9AC\uB97C \uC54C\uB824 \uC8FC\uC2ED\uC2DC\uC624 \u2014 \uD3C9\uC18C \uAE38\uC5D0\uC11C\uB294 \uC548 \uB098\uC640\uC57C \uD569\uB2C8\uB2E4.");const k=B?c3({phase:i?.positionRef.current?.phase??"sound",phaseElapsedMs:i?.positionRef.current?Math.max(0,Date.now()-i.positionRef.current.at):0,currentTime:b&&typeof b.currentTime=="number"?b.currentTime:0,trackDurationSec:N,leadInMs:l||0,tailMs:u||0}):u3({currentTime:b&&typeof b.currentTime=="number"?b.currentTime:0,sources:r.current,index:s.current,audioDuration:w??0});try{g&&(g.style.visibility&&(g.style.visibility=""),g.style.left=`${k*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(k))}catch{}}}catch{}c.current=requestAnimationFrame(C)};c.current=requestAnimationFrame(C)},[e,t,a,r,s,i,l,u]),y=o.useCallback(v=>{p();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${v*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(v))}catch{}},[p,t,a]);return o.useEffect(()=>p,[p]),{start:f,stop:p,settleTo:y}}function qo({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:s=!1,ttsText:i=null,className:l,showSoundWaveForm:u=!0,showNoiseWaveForm:c=!0,leadInMs:d=0,tailMs:m=0}){const{t:p}=_e.useTranslation(),f=e,y=cr(),v=o.useRef(y?.registerAnalyser);o.useEffect(()=>{v.current=y?.registerAnalyser});const C=o.useRef(null),b=o.useRef(null),_=o.useRef(null),h=_3(),w=o.useRef(null),g=o.useRef(!1),B=o.useRef(null),{ref:x,rect:N,show:k,hide:A}=w3();o.useEffect(()=>()=>{v.current?.("main",null),v.current?.("noise",null)},[]);const[S,E]=o.useState(!1),[H,$]=o.useState("idle"),[K,L]=o.useState("stopped"),j=o.useRef("stopped");o.useEffect(()=>{j.current=K},[K]);const[O,U]=o.useState(0),[te,z]=o.useState("active"),q=o.useRef(!1);o.useEffect(()=>{if(te!=="playMode"||!q.current)return;q.current=!1;const Q=typeof document<"u"?document.activeElement:null;if(Q&&Q!==document.body)return;const ye=_.current?.querySelectorAll("button")[1];try{ye?.focus()}catch{}},[te]);const[R,W]=o.useState(null),[D,P]=o.useState(null),[M,F]=o.useState(0),[I,Z]=o.useState(!1),[J,Y]=o.useState(0),ne=y?.playbackRate??1,ie=y?.mainVolume??1,ue=y?Io(y.settings):0,Se=y?Yu(y.settings):ie,[V,oe]=o.useState("idle"),[ge,De]=o.useState(""),[fe]=o.useState("top"),ae=o.useRef(null),de=o.useRef(0),pe=o.useRef(null),he=o.useRef(!0),be=U5({mountedRef:he}),Pe=o.useRef(null),$e=o.useRef(d),Ie=o.useRef(m);o.useEffect(()=>{$e.current=Math.max(0,d||0)},[d]),o.useEffect(()=>{Ie.current=Math.max(0,m||0)},[m]);const{start:Fe,stop:Oe,settleTo:dt}=N3({audioRef:C,fillRef:b,waveProgressRef:pe,sourcesRef:ae,currentIndexRef:de,sequencer:be,leadInMs:d,tailMs:m}),{onReadyChange:lt,waitForReady:ot,markNotReady:ct}=x3({showSoundWaveForm:u,showNoiseWaveForm:c}),ke=o.useRef(null),He=o.useRef(s),Be=o.useRef(r),Xe=o.useRef(null),X=o.useRef(!1),[le,we]=o.useState(!1),Ne=o.useCallback(Q=>{X.current=Q,we(Q)},[]),Ve=o.useRef(null),{activeNoiseUrl:et,noiseSettingsRef:pt,fadeInNoise:ut,fadeOutNoise:ft}=Q5({noisePlayer:y,audioRef:C,playbackStateRef:j,sequencer:be}),{startTTS:gt,stopTTS:Qe}=e3({ttsText:i,playbackRate:ne,mainVolume:Se,fillRef:b,waveProgressRef:pe,setProgress:U,setPlaybackState:L,setStateLocal:z,fadeInNoise:ut,fadeOutNoise:ft,noiseSettingsRef:pt,onDoneRef:Be,handleEndRef:Ve});o.useEffect(()=>{ht.current=Qe});const Ue=Q=>{if(typeof window>"u"||!window.speechSynthesis){try{De(p("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}gt(Q);return}nt("tts"),gt(Q)},We=Array.isArray(t)?t.filter(Boolean):t?[t]:[],Ke=(!We||We.length===0)&&!!i,rt=Array.isArray(R)&&R.length>0?R:Array.isArray(D)&&D.length>0?D:null,bt=Math.max(Array.isArray(rt)?rt.length:0,We.length);o.useEffect(()=>(he.current=!0,()=>{he.current=!1}),[]);const Ye=()=>{be.abort()},ht=o.useRef(null),Nt=o.useRef(null),Et=o.useRef(null),Me=o.useRef(null);Me.current||(Me.current=()=>{Et.current=null;const Q=C.current;if(Nt.current==="audio"&&Q&&(!Q.paused||be.isRunning())){Ye();try{Q.pause()}catch{}he.current&&(L("paused"),Oe(),ft())}else if(Nt.current==="tts")try{ht.current?.()}catch{}});const nt=Q=>{Nt.current=Q,Et.current=er(Me.current)},Lt=()=>{Et.current?.(),Et.current=null};o.useEffect(()=>()=>{Me.current&&tr(Me.current)},[]);const Xt=o.useRef(ne);o.useEffect(()=>{Xt.current=ne||1},[ne]);const at=o.useCallback(Q=>{const ye=Xt.current||1;try{Q.defaultPlaybackRate=ye}catch{}try{Q.playbackRate=ye}catch{}},[]),Bt=o.useCallback((Q,ye)=>{Q.src=ye,at(Q),Q.load(),at(Q)},[at]),At=o.useCallback(()=>{Xe.current&&(clearTimeout(Xe.current),Xe.current=null),oe("idle")},[]),vt=o.useCallback(async(Q,ye=3,re=50,ve=0)=>{At();const Te=be.generation(),ze=!!Q&&Q.currentTime>0&&!Q.ended,st=Math.max(0,$e.current-Math.max(0,ve));if(st>0&&!ze){nt("audio"),Fe(),L("playing");const mt=pt.current;if(mt?.enabled&&(mt.volume??0)>0)try{ut(mt.volume)}catch{}if(!await be.waitPad(st,"lead",ve)||!he.current||!be.isCurrent(Te))return!1}be.enterSound();for(let mt=0;mt<ye;mt++){if(!he.current||!be.isCurrent(Te))return!1;try{return nt("audio"),await Q.play(),!0}catch(Ce){if((Ce instanceof Error||typeof Ce=="object"&&Ce&&"name"in Ce?Ce.name:void 0)==="AbortError"){if(!be.isCurrent(Te))return!1;await new Promise(T=>setTimeout(T,re));continue}try{De(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{De(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[p,Fe,be,ut,pt,At]),an=o.useCallback(Q=>{const ye=be.generation(),re=Math.max(0,Ie.current-Math.max(0,Q));Fe();const ve=pt.current;if(ve?.enabled&&(ve.volume??0)>0)try{ut(ve.volume)}catch{}const Te=()=>{try{Pe.current?.()}catch{}};if(re<=0){be.leave(),Te();return}be.waitPad(re,"tail",Q).then(ze=>{be.leave(),ze&&be.isCurrent(ye)&&Te()}).catch(()=>{})},[be,Fe,ut,pt]),gn=o.useCallback(()=>{const Q=C.current;if(!Q)return;const ye=()=>{L("playing"),z("playMode"),Z(!0),Fe();try{Fr(),za(Q).then(ze=>{if(he.current)try{v.current?.("main",ze)}catch{}})}catch{}const Te=pt.current;Te?.enabled&&(Te?.volume??0)>0&&ut(Te.volume)},re=()=>{m3({ended:!!Q?.ended,completedByEnd:X.current})||(L("paused"),Oe(),ft())},ve=()=>{const Te=()=>{try{const ze=ae.current,st=p3(ze,de.current);if(st!==null){de.current=st,F(st),Z(!0);const mt=ze?.[st]&&ze[st].src;if(mt&&Q){Bt(Q,mt),vt(Q).catch(()=>{});return}}}catch{}L("stopped"),U(1);try{if(Q)try{Q.currentTime=0}catch{}}catch{}Oe(),Z(!1),ft();try{!He.current&&Ve.current&&Ve.current()}catch{}};if(Pe.current=Te,Ie.current>0){Fe(),be.waitPad(Ie.current,"tail").then(ze=>{be.leave(),ze&&Te()}).catch(()=>{});return}Te()};return Q.addEventListener("play",ye),Q.addEventListener("pause",re),Q.addEventListener("ended",ve),()=>{try{Q.removeEventListener("play",ye),Q.removeEventListener("pause",re),Q.removeEventListener("ended",ve),Oe()}catch{}}},[ut,ft,vt,pt,Fe,Oe,be]);o.useEffect(()=>gn(),[gn]),o.useEffect(()=>{He.current=s},[s]),o.useEffect(()=>{Be.current=r},[r]),o.useEffect(()=>{if(s||te!=="active")return;const Q=B.current;if(!Q)return;let ye=null;const re=requestAnimationFrame(()=>{try{const ve=Q.getTotalLength();if(!ve)return;const Te=ve*.2;Q.style.strokeDasharray=`${ve-Te} ${Te}`;const ze="triFlow_"+Math.random().toString(36).slice(2);ye=document.createElement("style"),ye.textContent=`@keyframes ${ze}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${ve}}}`,document.head.appendChild(ye),Q.style.animation=`${ze} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(re),ye?.remove()}},[te,s]),o.useEffect(()=>{ae.current=R},[R]),o.useEffect(()=>{de.current=M},[M]),o.useEffect(()=>{const Q=_.current,ye=w.current;if(!Q||!ye)return;let re=null;const ve=32,Te=60,ze=()=>{try{const mt=Array.from(Q.querySelectorAll(":scope > .button"));let Ce=0;mt.forEach(Le=>{if(Le===ye)return;const Ge=Le.getBoundingClientRect();Ce+=Ge.width});const T=Q.getBoundingClientRect().width,G=Math.max(0,Math.floor(T-Ce-8)),ce=bt;if(!ce||G<=0){Array.from(ye.children).forEach(Le=>{try{Le.style.width=""}catch{}});return}let Ee=Math.floor(G/ce);Ee>Te&&(Ee=Te),Ee<ve&&(Ee=Math.max(ve,Math.floor(G/ce))),Array.from(ye.querySelectorAll(".button")).forEach(Le=>{try{Le.style.width=`${Ee}px`}catch{}})}catch{}},st=requestAnimationFrame(ze);try{re=new ResizeObserver(()=>{requestAnimationFrame(ze)}),re.observe(Q),re.observe(ye),window.addEventListener("resize",ze)}catch{}return()=>{try{cancelAnimationFrame(st)}catch{}try{re&&(re.disconnect(),re=null)}catch{}try{window.removeEventListener("resize",ze)}catch{}}},[R,D,bt]),o.useEffect(()=>()=>{try{ke.current&&(clearTimeout(ke.current),ke.current=null),Xe.current&&(clearTimeout(Xe.current),Xe.current=null)}catch{}},[]);const pn=(Q,ye)=>{W(Q),Y(ye),ct(),P(h3(Q)),ae.current=Q},mn=()=>{z("playMode"),F(0),Z(!0)},Dn=async(Q,ye)=>{Ne(!1),g.current=!1,Bt(Q,ye),await ac(Q),await ot()!==!1&&(E(!1),mn(),await vt(Q))},Fn=async(Q,ye=!1)=>{const re=C.current;E(!0),$("measuring_duration");try{const ve=await Wo(Q,{timeoutMs:1e4,rejectOnError:!0});pn([{src:Q,objectUrl:null,duration:ve}],ve),$("ready"),ye&&re&&await Dn(re,Q)}finally{g.current=!1,E(!1)}},bn=async(Q,ye=!1)=>{const re=C.current;E(!0),$("measuring_duration");try{const ve=await Promise.all(Q.map(ze=>Wo(ze,{timeoutMs:1e4})));if(!he.current)return;const Te=Q.map((ze,st)=>({src:ze,objectUrl:null,duration:ve[st]||0}));pn(Te,C3(Te)),$("ready"),ye&&re&&Te.length>0&&await Dn(re,Te[0].src)}finally{g.current=!1,E(!1)}},zt=async(Q=!1,ye=!0)=>{const re=C.current,ve=t?Array.isArray(t)?t:[t]:[];if(!ve||ve.length===0||!ve.some(Boolean))return!1;if(g.current)return null;g.current=!0,ye&&E(!0),$("resolving");try{const Te=f3(t,a,Zs),ze=[];let st=0;for(const mt of Te){let Ce=mt.src??null,T=null;if(!Ce&&mt.resolvedPath){try{$("getting_signed_url"),Ce=await Xs(mt.resolvedPath)}catch{Ce=null}if(!he.current)return!1;if(!Ce)try{$("downloading");const ce=await Js(mt.resolvedPath);if(!he.current)return!1;if(ce){const Ee=ce instanceof Blob?ce:new Blob([ce]);T=h.track(URL.createObjectURL(Ee)),Ce=T}}catch{$("error");try{De(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),z("active")}catch{}}}if(!Ce)continue;let G=0;try{$("measuring_duration"),G=await Wo(Ce,{timeoutMs:3e3})}catch{G=0}if(!he.current){if(T)try{URL.revokeObjectURL(T)}catch{}for(const ce of ze)if(ce.objectUrl)try{URL.revokeObjectURL(ce.objectUrl)}catch{}return!1}st+=G||0,ze.push({...mt,src:Ce,objectUrl:T,duration:G})}if(pn(ze,st),ze.length>0&&Q&&re){const mt=ze[0];Ne(!1);try{h.keepOnly(ze.map(Ce=>Ce.objectUrl))}catch{}if($("ready"),g.current=!1,mt.src&&re)try{if(Bt(re,mt.src),await ac(re),await ot()===!1)return!1;ye&&E(!1),mn(),re&&await vt(re)}catch{ye&&E(!1)}else ye&&E(!1);z("playMode"),F(0),Z(!0)}return ze.length>0}finally{g.current=!1,ye&&E(!1),$(Te=>Te==="ready"?"ready":"idle")}},on=async Q=>{const ye=be.isRunning();if(Q.paused&&!ye){if(X.current){await Rt();return}const re=be.resume();if(re){if(L("playing"),re.phase==="tail"){an(re.\uD750\uB978);return}await vt(Q,3,50,re.\uD750\uB978);return}await vt(Q),L("playing")}else be.pause(),Ye(),Q.pause(),L("paused"),ye&&(Oe(),ft())},Vt=async()=>{const Q=C.current;if(!(!Q&&!Ke)){if(Ke){const ye=window.speechSynthesis;if(te==="active"){const re=$r(),ve=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(re&&ve.length>0){if(g.current)return;z("load"),E(!0),$("synthesizing"),g.current=!0;try{const Te=await Promise.all(ve.map(ze=>Promise.resolve(re(ze))));Te.length>1?await bn(Te,!0):await Fn(Te[0],!0)}catch{g.current=!1,E(!1),z("active"),Ue(ve.length>0?ve:void 0)}return}Ue(ve.length>0?ve:void 0);return}if(te==="playMode"){const re=!!ye&&(ye.speaking||ye.paused)&&!(Q&&(Q.currentSrc||Q.getAttribute("src")));if(Q&&!re){await on(Q);return}try{if(ye&&ye.paused)try{nt("tts"),ye.resume(),L("playing")}catch{}else try{ye.pause(),L("paused")}catch{}}catch{}}return}if(te==="active"){if(s&&Array.isArray(ae.current)&&ae.current.length>0){const re=ae.current[0];try{if(re.src&&Q)try{Bt(Q,re.src),mn(),Q&&await vt(Q)}catch{}mn();return}catch{}}z("load");let ye;try{ye=await zt(!0)}catch{ye=!1}if(ye===!1&&he.current){try{De(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}z("active")}return}if(te!=="load"&&(te==="playMode"||te==="active"))try{Q&&await on(Q)}catch(ye){(ye instanceof Error||typeof ye=="object"&&ye&&"name"in ye)&&ye.name}}},Rt=async()=>{const Q=C.current;if(Q)try{const ye=ae.current;if(Array.isArray(ye)&&ye.length>1){await Pt(0);return}Ne(!1);try{Q.currentTime=0}catch{}Q&&await vt(Q),L("playing"),z("playMode")}catch{}},En=()=>{Ye(),Lt(),ht.current?.();const Q=C.current;try{if(Q){try{Q.pause()}catch{}try{Q.currentTime=0}catch{}}}catch{}ft(),L("stopped"),z("active"),U(0),Z(!1)},Jt=async(Q,{sameSegment:ye=!1}={})=>{Ye();const re=be.generation(),ve=C.current,Te=ae.current?.[Q]?.src;try{if(Ne(!1),F(Q),Z(!0),de.current=Q,!Te||!ve||(ye||ct(),Bt(ve,Te),!ye&&await ot()===!1)||!be.isCurrent(re)||(await vt(ve),!be.isCurrent(re)))return;L("playing"),z("playMode")}catch{}},Sn=async()=>{const Q=ae.current,ye=de.current||0;if(!Q||ye<=0){await Rt();return}await Jt(ye-1)},In=async()=>{const Q=ae.current,ye=de.current||0;if(!Q||ye>=Q.length-1){En();return}await Jt(ye+1)},hn=()=>{if(X.current)return;const Q=200,ye=340;Ne(!0),Ye(),Lt();try{U(1)}catch{}dt(1);try{oe("hold")}catch{}try{const re=C.current,ve=Ke&&!!re?.src;if(!Ke||ve){if(re){re.pause();try{re.currentTime=0}catch{}}}else Qe();ft()}catch{}try{L("stopped")}catch{}if(Z(!1),!He.current)try{Xe.current&&(clearTimeout(Xe.current),Xe.current=null),Xe.current=setTimeout(()=>{try{oe("out")}catch{}Xe.current=setTimeout(()=>{try{typeof Be.current=="function"&&Be.current(!0)}catch{}try{oe("idle")}catch{}Xe.current=null},ye)},Q)}catch{}};o.useEffect(()=>{Ve.current=hn});const jt=o.useCallback(()=>De(""),[]),Pt=async Q=>{(ae.current||[])[Q]&&await Jt(Q,{sameSegment:Q===de.current})},Wt=K==="playing",sn=o.useMemo(()=>{if(!D||D.length<=1)return D;const Q=D[M];return Q?[Q]:D},[D,M]),Ft=s===!0;o.useEffect(()=>{try{const Q=C.current;Q&&typeof Q.playbackRate=="number"&&at(Q)}catch{}},[ne,at]);const Qt=o.useRef({raf:null,timer:null});o.useEffect(()=>{const Q=C.current;if(!Q)return;const ye=Math.max(0,Math.min(1,Se)),re=Qt.current,ve=()=>{re.raf!==null&&(cancelAnimationFrame(re.raf),re.raf=null),re.timer!==null&&(clearTimeout(re.timer),re.timer=null)};ve();const Te=Va(Q);if(Q.paused||Math.abs(Te-ye)<.001||typeof requestAnimationFrame!="function"){try{Mn(Q,ye)}catch{}return}const ze=performance.now(),st=()=>{const mt=Math.min(1,(performance.now()-ze)/150);try{Mn(Q,Te+(ye-Te)*mt)}catch{}re.raf=mt<1?requestAnimationFrame(st):null};return re.raf=requestAnimationFrame(st),re.timer=setTimeout(()=>{ve();try{Mn(Q,ye)}catch{}},200),ve},[Se]);const se=V==="hold",xe=V==="out",je=te==="playMode"&&!S&&!le||se||xe,Je=K!=="stopped"||se||xe,Re=K==="paused",qe=Math.max(0,Math.min(100,(O||0)*100)),Ze=Ae("audio-player__fill",je?"is-visible":"",Je?"is-expanded":"",Re?"is-paused":"",xe?"is-out":"");return n.jsxs("div",{className:`audio-player ${Ft?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof f=="string"?f:void 0,children:[n.jsxs("div",{className:`audio-player__panel ${Wt?"is-playing":""} ${S?"is-loading":""} ${te!=="default"?"is-revealed":""}`,children:[S?n.jsxs("div",{className:"audio-player__loading",role:nc[H]?"status":void 0,"aria-live":nc[H]?"polite":"off",children:[n.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),n.jsx("span",{className:"audio-player__loading-text",children:p(`training.audioStatus.${H}`,{defaultValue:y3[H]})})]}):null,te==="active"?n.jsx("button",{className:"audio-player__button",type:"button",disabled:Ft,onClick:()=>{q.current=or(),A(),Vt()},"aria-label":typeof f=="string"?f:p("training.listen","\uB4E3\uAE30"),onMouseEnter:k,onMouseLeave:A,onFocus:k,onBlur:A,children:n.jsx("span",{ref:x,className:"audio-player__button-triangle-wrap",children:n.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:n.jsx("path",{ref:B,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,N&&n.jsx(vn,{anchorRect:N,text:typeof f=="string"&&f?f:p("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),n.jsxs("div",{className:`audio-player__play ${te==="playMode"||Wt?"is-visible":""}`,inert:!(te==="playMode"||Wt)||void 0,children:[n.jsxs("div",{ref:_,className:"audio-player__buttons",children:[n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:Sn,ariaLabel:p("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:te!=="playMode"}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Wt?"pause":"play",onClick:Vt,ariaLabel:p("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":Wt,width:"60px",variant:"transparent-white",disabled:te!=="playMode"}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:En,ariaLabel:p("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:te!=="playMode"}),bt>1?n.jsx("div",{ref:w,className:"audio-player__source-buttons",children:Array.from({length:bt}).map((Q,ye)=>n.jsx(me,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(ye+1),onClick:()=>{try{Pt(ye)}catch{}},ariaLabel:p("training.sourcePlay",{n:ye+1}),variant:"transparent-white",selected:I&&M===ye,disabled:te!=="playMode"||!(Array.isArray(R)&&R[ye]),showTooltipInfo:!0},ye))}):null,!Array.isArray(R)||R.length<=1?n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Rt,ariaLabel:p("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:te!=="playMode"}):null,n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:In,ariaLabel:p("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:te!=="playMode"}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:hn,ariaLabel:p("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:te!=="playMode"})]}),n.jsxs("div",{className:"audio-player__slider",children:[n.jsx("div",{className:Ze,ref:b,style:{left:`${qe}%`},"aria-hidden":"true"}),(u||c)&&n.jsx(b3,{segments:sn,progress:O,totalDuration:J,waveProgressRef:pe,showSoundWaveForm:u,leadInMs:d,tailMs:m,trackDurationSec:R?.[M]?.duration??0,noiseSrc:c&&y?.settings.enabled&&ue>0?et:null,noiseRatio:y?Fa(y.settings):0,noiseSpeed:y?.settings.speed??1,mainVolume:ie,onReadyChange:lt})]})]}),n.jsx("audio",{ref:C,crossOrigin:"anonymous",preload:"auto"})]}),!u&&n.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[n.jsx(tt,{icon:"triangle-alert",size:14}),p("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),n.jsx(sa,{message:ge,position:fe,onClose:jt})]})}function hr(e){const{t}=_e.useTranslation(),{text:a,label:r,anchorRect:s=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:u=!1}=e||{},[c,d]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",c)}catch{}},[c]);const{increase:m,decrease:p,canIncrease:f,canDecrease:y,fontSize:v,lineHeight:C}=ol({storageKey:"tooltip-fontScale"}),b=o.useCallback(()=>d(B=>B==="dark"?"light":"dark"),[]),_=o.useCallback(B=>{try{B.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),h=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],w={fontSize:`${v}px`,lineHeight:`${C}px`,"--tt-line-height":`${C}px`,"--tt-marker-size":"28px"},g=n.jsxs("div",{className:`tooltip-textbox__root ${c==="dark"?"is-dark":""}`,children:[n.jsxs("div",{className:"tooltip-textbox__box",children:[r&&n.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),n.jsx("div",{className:"tooltip-textbox__text body-1",style:w,children:h.map((B,x)=>n.jsxs("div",{className:"tooltip-textbox__line",children:[h.length>1?n.jsx("div",{className:"tooltip-textbox__marker",children:n.jsx("span",{className:"tooltip-textbox__line-number button-1",children:x+1})}):null,n.jsx("span",{className:"tooltip-textbox__line-text",children:B})]},x))})]}),n.jsxs("div",{className:"tooltip-textbox__buttons",children:[n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:p,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!y}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:m,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!f}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:c==="dark"?"moon":"sun-medium",onClick:b,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:c==="dark"?"transparent-white":"transparent-gray"}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:_,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:c==="dark"?"transparent-white":"transparent-gray"})]})]});return s?n.jsx(un,{anchorRect:s,className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:u,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:g}):n.jsx("div",{className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,children:g})}function oc({state:e="disabled"}){const{t}=_e.useTranslation();return n.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[n.jsx("div",{className:"bullet__dot",children:n.jsx(tt,{icon:"chevron-right",label:t("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),n.jsx("div",{className:"ts-bullet__line"})]})}function sc(e,t,a){const r=o.useRef(t),s=o.useRef(a);o.useEffect(()=>{r.current=t,s.current=a}),o.useEffect(()=>{if(!e||typeof document>"u")return;let i=null,l=10;const u=()=>{i=null;const c=r.current(),d=c?Array.from(c.querySelectorAll(Cn)).find(m=>!m.closest('[aria-hidden="true"]')):void 0;if(d){try{d.focus()}catch{}if(document.activeElement===d)return}--l>0&&(i=requestAnimationFrame(u))};return i=requestAnimationFrame(u),()=>{i!==null&&cancelAnimationFrame(i);const c=document.activeElement;if(!c||c===document.body||!document.contains(c)||c.closest(".tooltip-content")){const d=s.current();if(d)try{d.focus()}catch{}}}},[e])}function ic({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:u,usePlayAllBtn:c=!1,onPlayAll:d,playAllActive:m=!1}){const{t:p}=_e.useTranslation(),f=rn("(max-width: 767px)"),y=`training-step__title h4 ${u&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),v=`training-step__title-row training-step__title-row--${r}`.trim(),C=o.useRef(null),[b,_]=o.useState(!1),[h,w]=o.useState(null),[g,B]=o.useState(null);sc(b&&!!h,()=>{if(typeof document>"u")return null;const S=Array.from(document.querySelectorAll(".tooltip-content"));for(let E=S.length-1;E>=0;E--)if(S[E].querySelector(".tooltip-textbox__root"))return S[E];return null},()=>C.current?.querySelector("button")??null);const x=o.useRef(i);o.useEffect(()=>{x.current=i});const N=o.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(S=>typeof S=="string"||typeof S=="number")?l.join(""):"",[l]),k=o.useCallback(()=>{_(!1),w(null),B(null)},[]);o.useEffect(()=>{if(!b)return;let S;try{typeof x.current=="function"&&(S=x.current())}catch{}if(S===!1){k();return}B(typeof S<"u"&&S!==null?S:null)},[N]);const A=o.useCallback(()=>{let S;try{typeof i=="function"&&(S=i())}catch{}if(S!==!1){if(B(typeof S<"u"&&S!==null?S:l),!C.current){_(E=>!E);return}if(b)_(!1),w(null),B(null);else{const E=C.current.getBoundingClientRect();w(E),_(!0)}}},[i,l,b]);return n.jsxs("div",{className:v,children:[n.jsx("p",{className:y,children:n.jsx("span",{className:"training-step__title-text",children:e??t})}),s||c?n.jsxs("div",{className:"title-controls",children:[n.jsxs("div",{className:"title-buttons",children:[c&&n.jsx(me,{htmlType:"button",size:32,type:f?"dot":"bar",icon:"play-circle",label:f?void 0:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:m,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||m,onDisabledClick:m&&r!=="disabled"?()=>{}:void 0}),s&&n.jsx("div",{ref:C,children:n.jsx(me,{htmlType:"button",size:32,type:f?"dot":"bar",icon:"eye",label:f?void 0:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:A,className:b?"is-selected":void 0,"aria-expanded":b,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),b&&n.jsx(hr,{text:g??l,label:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:h,onClose:k,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Uo(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Kn({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:s={},children:i,className:l="",onDone:u=void 0,useTitleFaded:c=void 0,lockedHint:d}){const{t:m}=_e.useTranslation(),[p,f]=o.useState(()=>Uo(e,t));o.useEffect(()=>{const x=Uo(e,t);if(x!==p){const N=setTimeout(()=>f(x),0);return()=>clearTimeout(N)}},[e,t,p]);const y=o.useCallback((...x)=>{Uo(e,t)==="done"||p==="done"||typeof u=="function"&&u(...x)},[e,t,p,u]),[v,C]=o.useState(!1),[b,_]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),h=o.useCallback(x=>{if(!x)return null;try{const N=x;if(typeof x=="object"&&(N.currentTarget||N.target)&&(N.nativeEvent||N.type)){const S=N.currentTarget??N.target;if(S&&typeof S.getBoundingClientRect=="function")return S.getBoundingClientRect()}if(x instanceof DOMRect)return x;const k=x;if(k&&typeof k.getBoundingClientRect=="function")return k.getBoundingClientRect();const A=x?.current;return A&&typeof A.getBoundingClientRect=="function"?A.getBoundingClientRect():null}catch{return null}},[]),w=o.useCallback((x,{text:N="",label:k="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:A=!1,alignX:S="center",alignY:E="top"}={})=>{const H=h(x);_({text:N,label:k,anchorRect:H,backdrop:A,alignX:S,alignY:E}),C(!0)},[h]),g=o.useCallback(()=>{C(!1),_(x=>({...x,anchorRect:null}))},[]),B=o.Children.map(i,x=>{if(o.isValidElement(x)){const N=x;if(typeof N.type=="string")return N;const k=N.props??{},A=typeof k.onDone=="function"?k.onDone:y,S=typeof k.disabled=="boolean";let E=p==="disabled";return S&&(E=!!k.disabled),o.cloneElement(N,{onDone:A,disabled:E,showTooltip:w,hideTooltip:g})}return x});return n.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[n.jsx(oc,{state:p}),n.jsxs("div",{className:"training-step__content",children:[n.jsx(ic,{state:p,title:r,...s,useFaded:c}),p==="disabled"&&d!==null&&typeof e=="number"&&typeof t=="number"&&e===t+1&&n.jsx("p",{className:"training-step__locked-hint caption-1",role:"status",children:d??m("training.answerLockedHint","\uB2E4 \uB4E4\uC73C\uBA74 \uACE0\uB97C \uC218 \uC788\uC5B4\uC694.")}),B]}),v?n.jsx(un,{anchorRect:b.anchorRect,backdrop:b.backdrop,onClose:g,ariaLabel:m("tooltip.textbox","\uBCF8\uBB38"),children:n.jsx(hr,{text:b.text,onClose:g})}):null]})}function lc({context:e,state:t="disabled",theme:a="light"}){const{t:r}=_e.useTranslation(),[s,i]=o.useState("disabled"),[l,u]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const c=()=>u($=>$==="dark"?"light":"dark"),{increase:d,decrease:m,canIncrease:p,canDecrease:f,fontSize:y,lineHeight:v}=ol({storageKey:"textbox_fontScale"}),[C,b]=o.useState(""),_=o.useRef(null),h=o.useRef(!1),w=o.useCallback(()=>{h.current=or()&&!!_.current&&_.current.contains(document.activeElement),i("active")},[]),g=o.useCallback(()=>b(""),[]),B=$=>{try{b($)}catch{}},x=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(t!=="disabled"){const $=setTimeout(()=>i(t),0);return()=>clearTimeout($)}},[t]);const N=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[k,A]=o.useState(N);k!==N&&(A(N),i("disabled"));const S=t==="disabled"?s:t,E=S==="disabled"?"training-text-box--disabled":S==="active"?"training-text-box--active":S==="done"?"training-text-box--done":"",H=o.useMemo(()=>({fontSize:`${y}px`,lineHeight:`${v}px`}),[y,v]);return o.useEffect(()=>{if(S==="disabled"||!h.current)return;h.current=!1;const $=document.activeElement;$&&$!==document.body||_.current?.querySelector(".training-text-box__buttons button")?.focus()},[S]),n.jsxs("div",{ref:_,className:`training-text-box ${E} ${S!=="disabled"&&l==="dark"?"is-dark":""}`,children:[S==="disabled"&&n.jsx("div",{className:"training-text-box__preview",children:n.jsx(me,{htmlType:"button",size:48,type:"bar",onClick:w,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),n.jsx("div",{className:"training-text-box__area","aria-hidden":S==="disabled",children:n.jsx("span",{className:"training-text-box__inner h3",style:H,children:N})}),S!=="disabled"&&n.jsxs("div",{className:"training-text-box__buttons","aria-hidden":S==="disabled",children:[n.jsx(me,{htmlType:"button",size:32,type:"dot",onClick:m,onDisabledClick:()=>B(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!f,useBorder:!1,showTooltipInfo:!0,...!x&&{width:"60px"}}),n.jsx(me,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>B(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!p,useBorder:!1,showTooltipInfo:!0,...!x&&{width:"60px"}}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:c,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),n.jsx(sa,{message:C,position:"top",onClose:g})]})}function Go({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:s,onDone:i,onChange:l,answer:u,wrongAnswers:c,choices:d,multiSelect:m=!1,correctCount:p=0,useDisabledCovered:f=!1,choiceIcons:y,shuffleChoices:v=!0}){const{t:C}=_e.useTranslation(),b=r??C("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),_=typeof e=="number"?e:-1,h=typeof t!="number"?"disabled":_<t?"done":_===t?"active":"disabled",w=Array.isArray(d)&&d.length?d:typeof u<"u"?[u].concat(Array.isArray(c)?c:[]):void 0,g=c?c.join("||"):"",B=d?d.join("||"):"",[x,N]=o.useState(()=>Array.isArray(w)?v?xa(w):w.slice():void 0);o.useEffect(()=>{Array.isArray(w)&&w.length?N(v?xa(w):w.slice()):N(void 0)},[u,g,B,v]);const[k,A]=o.useState(null),[S,E]=o.useState(()=>new Set);o.useEffect(()=>{A(null),E(new Set)},[B,u,g]);const H=o.useRef(void 0);o.useEffect(()=>{const j=H.current;typeof j=="number"&&typeof t=="number"&&typeof e=="number"&&j>=e&&t<e&&(A(null),E(new Set)),H.current=t},[t,e]);const $=o.useCallback(j=>{if(h!=="active")return;const O=x?.[j];if(O==null)return;const U=O,te=h==="active"||h==="done";if(m){const z=new Set(S);z.has(U)?z.delete(U):z.add(U),E(z),typeof l=="function"&&l({selectedValues:[...z],__ts:Date.now()})}else A(U),typeof l=="function"&&l({selectedIndex:j,selectedValue:U,__ts:Date.now()}),te&&typeof i=="function"&&h==="active"&&i({selectedIndex:j,selectedValue:U,__ts:Date.now()})},[x,h,m,l,S]),K=o.useCallback(()=>{h==="active"&&S.size!==0&&typeof i=="function"&&i({selectedValues:[...S],__ts:Date.now()})},[h,S,i]),L=`training-step__buttons${Array.isArray(x)&&x.length>3?" training-step__buttons--wrap-3":""}`;return n.jsxs(Kn,{index:e,stepIndex:t,isLast:a,title:b,useTitleFaded:s,children:[n.jsx("div",{className:L,children:Array.isArray(x)&&x.length>0?x.map((j,O)=>n.jsx(me,{htmlType:"button",size:56,type:"bar",onClick:()=>$(O),ariaLabel:String(j),label:j,useLabel:!0,icon:y?y[String(j)]:void 0,variant:"default",disabled:h==="disabled",selected:m?S.has(j):k===j,useDisabledCovered:f,minWidth:0},String(j))):null}),m&&n.jsx("div",{className:"training-step__buttons",children:n.jsx(me,{htmlType:"button",size:56,type:"bar",variant:"main",onClick:K,disabled:h!=="active"||S.size===0,ariaLabel:C("common.confirm","\uD655\uC778"),label:C("common.confirm","\uD655\uC778"),useLabel:!0,minWidth:0})})]})}function Ko({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l,demoSelected:u}){const{t:c}=_e.useTranslation(),d=r??c("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),m=typeof e=="number"?e:-1,p=typeof t!="number"?"disabled":m<t?"done":m===t?"active":"disabled",f=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",y=l&&typeof l=="object"?l.choices:void 0,[v,C]=o.useState(u??null),b=`${String(f)}\0${JSON.stringify(y??null)}`,[_,h]=o.useState(b);_!==b&&(h(b),u==null&&C(null));const[w,g]=o.useState(u);Object.is(w,u)||(g(u),C(u??null));const B=o.useRef(void 0);o.useEffect(()=>{const A=B.current;typeof A=="number"&&typeof t=="number"&&typeof e=="number"&&A>=e&&t<e&&u==null&&C(null),B.current=t},[t,e,u]);const x=o.useCallback(A=>{const S=typeof A=="object"&&A!==null?Object.assign({},A,{__ts:Date.now()}):{value:A,__ts:Date.now()};typeof i=="function"&&i(S),p==="active"&&typeof s=="function"&&s(S)},[i,p,s]),N=o.useCallback(()=>{p==="active"&&(C(!1),x(!1))},[x,p]),k=o.useCallback(()=>{p==="active"&&(C(!0),x(!0))},[x,p]);return n.jsxs(Kn,{index:e,stepIndex:t,isLast:a,title:d,onDone:s,useTitleFaded:!1,children:[n.jsx(lc,{context:l,state:p}),n.jsx("div",{className:"training-step__buttons",children:Array.isArray(y)&&y.length>0?y.slice(0,6).map((A,S)=>n.jsx(me,{htmlType:"button",size:56,type:"bar",onClick:()=>{p==="active"&&(C(S),x&&x(S))},disabled:p==="disabled",ariaLabel:String(A),label:A,variant:p,selected:v===S},S)):n.jsxs(n.Fragment,{children:[n.jsx(me,{htmlType:"button",size:56,type:"bar",onClick:N,disabled:p==="disabled",icon:"x",ariaLabel:c("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:c("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:v===!1}),n.jsx(me,{htmlType:"button",size:56,type:"bar",onClick:k,disabled:p==="disabled",icon:"circle",ariaLabel:c("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:c("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:v===!0})]})})]})}function Yo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,btnLabel:i,soundSrc:l,bucketPath:u,usePreviewTextBtn:c,previewText:d=null,onPreviewTextBtn:m,disabled:p,_pageIndex:f,showSoundWaveForm:y,showNoiseWaveForm:v,leadInMs:C,tailMs:b}){const{t:_}=_e.useTranslation(),h=r??_("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),w=p??(typeof t=="number"&&typeof e=="number"?e>t:!1);return n.jsx(Kn,{index:e,stepIndex:t,isLast:a,title:h,onDone:s,titleProps:{usePreviewTextBtn:c,previewText:d,onPreviewTextBtn:m},children:n.jsx(qo,{soundSrc:l,ttsText:l?null:d??h,bucketPath:u,btnLabel:i||_("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:w,className:"training-step__listen-sticky",showSoundWaveForm:y,showNoiseWaveForm:v,leadInMs:C,tailMs:b},`audio-p${f??0}-s${e}`)})}const D3=[];function Zo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=D3}){const{t:u}=_e.useTranslation(),c=r??u("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=D=>typeof D=="string"?D:D&&(D.context||D.sentence||D.question||"")||"",[m,p]=o.useState(Array.isArray(l)?l:[]),[f,y]=o.useState(()=>(m||[]).map((D,P)=>({id:P,text:d(D)}))),v=o.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]),C=v!=="disabled",b=o.useRef(void 0),_=o.useRef(void 0);o.useEffect(()=>{if(b.current===l)return;b.current=l;const D=Array.isArray(l)?l:[];p(D);const P=(M=>{const F=(M||[]).map((Y,ne)=>({id:ne,text:d(Y)}));if(F.length<=1)return F;const I=(Y,ne)=>{if(Y.length!==ne.length)return!1;for(let ie=0;ie<Y.length;ie++)if(Y[ie].text!==ne[ie].text)return!1;return!0};let Z=xa(F),J=0;for(;I(Z,F)&&J<20;)Z=xa(F),J+=1;return Z})(D);y(P);try{if(typeof i=="function"){const M=P.filter((F,I)=>F.text===d(D[I])).length;i({shuffled:P,score:M,total:(D||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&v==="active"){const M=P.filter((F,I)=>F.text===d(D[I])).length;_.current=l,s({shuffled:P,score:M,total:(D||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]),o.useEffect(()=>{if(v!=="active"||_.current===l||(_.current=l,typeof s!="function"))return;const D=Array.isArray(l)?l:[],P=f.filter((M,F)=>M.text===d(D[F])).length;s({shuffled:f,score:P,total:D.length,initial:!0,__ts:Date.now()})},[v,l]);const h=(D,P)=>{const M=[...f],F=D+P;if(F<0||F>=M.length)return;const I=M[F];M[F]=M[D],M[D]=I,O(M);try{if(typeof s=="function"&&v==="active"){const Z=M.filter((J,Y)=>J.text===d(m[Y])).length;s({shuffled:M,score:Z,total:(m||[]).length,__ts:Date.now()})}}catch{}},[w,g]=o.useState(null),B=o.useRef(null),x=o.useRef(null),N=o.useRef(null),k=o.useRef(null),A=o.useRef(null),S=o.useRef({x:0,y:0}),E=o.useRef(null),H=o.useRef({dx:0,dy:0}),$=()=>{if(E.current!==null)return;const D=()=>{if(!B.current){E.current=null;return}E.current=requestAnimationFrame(D);const P=S.current,M=H.current||{dx:0,dy:0};B.current&&(B.current.style.transform=`translate3d(${P.x-M.dx}px, ${P.y-M.dy}px, 0)`)};E.current=requestAnimationFrame(D)},K=o.useRef(new Map),L=o.useRef(new Map),j=()=>{const D=new Map;return K.current.forEach((P,M)=>{P&&P.getBoundingClientRect&&D.set(M,P.getBoundingClientRect())}),D},O=D=>{const P=j();y(D);try{if(typeof i=="function"){const M=D.filter((F,I)=>F.text===d(m[I])).length;i({shuffled:D,score:M,total:(m||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const M=j();D.forEach(F=>{const I=P.get(F.id),Z=M.get(F.id),J=K.current.get(F.id);if(!J||!I||!Z)return;const Y=I.top-Z.top;Y&&(J.style.transition="none",J.style.transform=`translateY(${Y}px)`,requestAnimationFrame(()=>{J.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",J.style.transform="";const ne=()=>{J.style.transition="",J.removeEventListener("transitionend",ne)};J.addEventListener("transitionend",ne)}))})})},U=(D,P)=>{try{try{P.dataTransfer?.setData("text/plain",String(D))}catch{}try{P.dataTransfer&&(P.dataTransfer.effectAllowed="move")}catch{}try{const M=document.createElement("div");M.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(M),P.dataTransfer?.setDragImage(M,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(M)}catch{}})}catch{}}catch{}g(D);try{const M=f[D],F=document.createElement("div");F.className="order-list__dragging-object order-list__dragging-object--visible",F.textContent=M&&M.text?M.text:"",document.body.appendChild(F),B.current=F;const I=K.current.get(M.id);let Z=P.clientX||0,J=P.clientY||0;try{if(I&&I.getBoundingClientRect){const V=I.getBoundingClientRect();Z=V.left+V.width/2,J=V.top+V.height/2}}catch{}const Y=F.getBoundingClientRect(),ne=Y.width/2,ie=Y.height/2;H.current={dx:ne,dy:ie},F.style.transition="none",S.current={x:Z,y:J},F.style.transform=`translate3d(${Z-ne}px, ${J-ie}px, 0)`,requestAnimationFrame(()=>{try{F.style.transition=""}catch{}$()});const ue=V=>{const oe=V;S.current={x:oe.clientX,y:oe.clientY},$()};N.current=ue,document.addEventListener("mousemove",ue);const Se=V=>{const oe=V;S.current={x:oe.clientX,y:oe.clientY},$()};x.current=Se,document.addEventListener("dragover",Se);try{P.dataTransfer?.setData("text/plain",String(D));try{P.dataTransfer?.setData("application/json",JSON.stringify({idx:D}))}catch{}}catch{}}catch{}},te=(D,P)=>{P.preventDefault();try{P.dataTransfer&&(P.dataTransfer.dropEffect="move")}catch{}try{A.current!==null&&(clearTimeout(A.current),A.current=null);const M=P.currentTarget&&P.currentTarget.closest?P.currentTarget.closest(".order-list__item"):null;if(M&&k.current!==M){if(k.current)try{k.current.classList.remove("drag-over")}catch{}try{M.classList.add("drag-over")}catch{}k.current=M}}catch{}},z=(D,P)=>{P.preventDefault();const M=P.dataTransfer?.getData("text/plain")||"",F=M?parseInt(M,10):w,I=D;if(typeof F!="number"||isNaN(F)||F===I){g(null),W(),q();return}const Z=$C(f,F,I);O(Z),g(null),q();try{if(typeof s=="function"&&v==="active"){const J=Z.filter((Y,ne)=>Y.text===d(m[ne])).length;s({shuffled:Z,score:J,total:(m||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const J=document.querySelectorAll(".order-list .order-list__item")[I];if(!J)return;const Y=J.querySelector(".order-list__slot")||J;try{Y.classList.add("pulse"),Y.offsetHeight,Y.classList.add("to-dark");const ne=()=>{Y.classList.remove("pulse","to-dark"),Y.removeEventListener("transitionend",ne)};Y.addEventListener("transitionend",ne)}catch{}})}catch{}W()},q=()=>{if(B.current){try{document.body.removeChild(B.current)}catch{}B.current=null}x.current&&(document.removeEventListener("dragover",x.current),x.current=null),N.current&&(document.removeEventListener("mousemove",N.current),N.current=null),E.current!==null&&(cancelAnimationFrame(E.current),E.current=null)},R=()=>{g(null),W(),q()};o.useEffect(()=>()=>q(),[]);const W=()=>{try{if(A.current!==null&&(clearTimeout(A.current),A.current=null),k.current){try{k.current.classList.remove("drag-over")}catch{}k.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(D=>D.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const D=Math.max(1,(f||[]).length);f.forEach((P,M)=>{const F=L.current.get(P.id);if(!F)return;let I=50;D>1&&(I=Math.round(M/(D-1)*100));try{F.style.setProperty("--marker-pos",I+"%")}catch{}})}catch{}},[f]),o.useEffect(()=>()=>{q(),A.current!==null&&(clearTimeout(A.current),A.current=null)},[]),n.jsx(Kn,{index:e,stepIndex:t,isLast:a,title:c,children:n.jsx("div",{className:"order-list",children:f.map((D,P)=>{const M=Math.max(1,(f||[]).length),F=M>1?Math.round(P/(M-1)*100):50;return n.jsx("div",{className:"order-list__item",children:n.jsxs("div",{className:"order-list__slot","data-disabled":v==="disabled","aria-disabled":v==="disabled",children:[v!=="disabled"?n.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":F+"%"},ref:I=>{const Z=L.current;I?Z.set(D.id,I):Z.delete(D.id)},children:n.jsx("span",{className:"order-list__slot-number button-1",children:P+1})}):null,n.jsxs("div",{ref:I=>{const Z=K.current;I?Z.set(D.id,I):Z.delete(D.id)},className:`order-list__draggable ${w===P?"dragging":""}`,"data-disabled":v==="disabled","aria-disabled":v==="disabled",tabIndex:v==="disabled"?-1:0,draggable:C,onDragStart:C?I=>U(P,I):void 0,onDragEnter:C?I=>te(P,I):void 0,onDragOver:C?I=>te(P,I):void 0,onDragLeave:C?()=>{try{A.current!==null&&clearTimeout(A.current),A.current=setTimeout(()=>{try{const I=document.querySelectorAll(".order-list .order-list__item");I&&I[P]&&(I[P].classList.remove("drag-over"),k.current===I[P]&&(k.current=null))}catch{}},80)}catch{}}:void 0,onDrop:C?I=>z(P,I):void 0,onDragEnd:C?R:void 0,children:[n.jsx("span",{className:"order-list__item-text body-2",children:D.text}),C?n.jsxs("span",{className:"order-list__item-buttons",children:[n.jsx(me,{htmlType:"button",size:32,type:"dot",onClick:()=>h(P,-1),ariaLabel:u("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:P===0,useBorder:!1,useDisabledInvisible:!0}),n.jsx(me,{htmlType:"button",size:32,type:"dot",onClick:()=>h(P,1),ariaLabel:u("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:P===f.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},D.id)})})})}const E3=8e3;function S3(e,t){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,t)})}function uc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=[],selectable:u=!1,hideLabel:c=!1,hideAudio:d=!1,maxCards:m,playAllGapMs:p=0}){const{t:f}=_e.useTranslation(),y=r??f("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),v=o.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),C=m??3,b=(v||[]).slice(0,C);(v||[]).length>C&&console.warn(`TrainingStepCard: ${v.length} items passed but only ${C} shown`);const _=typeof e=="number"?e:-1,h=typeof t!="number"?"disabled":_<t?"done":_===t?"active":"disabled",[w,g]=o.useState(null),B=o.useRef([]),[x,N]=o.useState(!1),k=o.useRef(null),A=o.useRef(!0);o.useEffect(()=>(A.current=!0,()=>{A.current=!1}),[]);const S=o.useMemo(()=>v.map(j=>j?.id??j?.word??"").join("|"),[v]);o.useEffect(()=>{g(null)},[S]);const E=o.useRef(void 0);o.useEffect(()=>{const j=E.current;typeof j=="number"&&typeof t=="number"&&typeof e=="number"&&j>=e&&t<e&&g(null),E.current=t},[t,e]);const H=o.useCallback((j,O)=>{if(u)return;const U={item:j,index:O,__ts:Date.now()};try{typeof i=="function"&&i(U)}catch{}if(h==="active"&&typeof s=="function")try{s(U)}catch{}},[u,i,h,s]),$=o.useRef(p);o.useEffect(()=>{$.current=Math.max(0,p||0)},[p]);const K=o.useCallback(async()=>{if(x||h==="disabled")return;N(!0);let j=!1;const O=new Promise(U=>{k.current=()=>{j=!0,U()}});try{for(let U=0;U<b.length&&!(!A.current||j);U++){const te=B.current[U];if(!te)continue;await Promise.race([S3(te.play(),E3),O]);const z=Math.max(0,$.current||0);z>0&&U<b.length-1&&!j&&A.current&&await Promise.race([new Promise(q=>{setTimeout(q,z)}),O])}}finally{k.current=null,N(!1)}},[x,h,b.length]),L=o.useCallback((j,O)=>{if(h!=="active")return;g(O);const U={selectedValue:j.word||j.title||"",selectedIndex:O,item:j,__ts:Date.now()};try{typeof i=="function"&&i(U)}catch{}if(h==="active"&&typeof s=="function")try{s(U)}catch{}},[i,h,s]);return n.jsx(Kn,{index:e,stepIndex:t,isLast:a,title:y,onDone:s,titleProps:{usePlayAllBtn:!d&&b.length>0,onPlayAll:K,playAllActive:x},children:n.jsx("div",{className:"training-step__cards",onClickCapture:j=>{const O=k.current;if(!O)return;const U=j.target;U&&typeof U.closest=="function"&&U.closest(".training-word-card__bottom")&&O()},children:b.length===0?n.jsx("div",{className:"training-step__empty",children:f("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):b.map((j,O)=>n.jsx(So,{ref:U=>{B.current[O]=U},item:j,disabled:h==="disabled",onPlayDone:()=>H(j,O),selectable:u,selected:u&&w===O,onSelect:u?()=>L(j,O):void 0,flipDelay:O*120,hideLabel:c,hideAudio:d},j&&j.id||O))})})}const j3=160,T3={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function M3(e,t){const a=T3[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}const cc=()=>{};function Rn(e){const t=o.useId();if(!("variant"in e)){const{label:h,sub:w,onClick:g,children:B,align:x="horizontal",icon:N,useFullWidth:k=!1}=e,A=S=>{g&&S.target===S.currentTarget&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),g())};return n.jsxs("div",{className:Ae("panel-row",x==="vertical"?"panel-row--vertical":"",k?"panel-row--label-fixed panel-row--fill":"",g?"panel-row--clickable":""),onClick:g,onKeyDown:g?A:void 0,role:g?"button":void 0,tabIndex:g?0:void 0,children:[N!=null&&n.jsx("div",{className:"panel-row__icon",children:N}),h!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:h}),w&&n.jsx("div",{className:"panel-row__sub caption-1",children:w})]}),n.jsx("div",{className:"panel-row__right",children:B})]})}if(e.variant==="description")return n.jsx("div",{className:"panel-row panel-row--block",children:n.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return n.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return n.jsx("div",{className:"panel-row panel-row--loading",children:n.jsx($a,{size:28})});if(e.variant==="custom"&&!e.label)return n.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:s,onClick:i,required:l,error:u,align:c="horizontal",useFullWidth:d=!1,icon:m}=e,p=a==="button"?void 0:i;let f=null;const y=a==="toggle"?`panel-toggle-${t}`:void 0,v=u?`panel-error-${t}`:void 0,C=`panel-helper-${t}`;if(a==="toggle"){const h=e;f=n.jsx(Ul,{checked:h.checked,onChange:h.onChange,id:y})}else if(a==="segmented"){const h=e;f=n.jsx(Bn,{options:h.options,value:h.value,onChange:h.onChange,size:h.size??40,ariaLabel:r})}else if(a==="dropdown"){const h=e,w=h.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:h.dropdowns.map((g,B)=>n.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:n.jsx(dn,{options:g.options,value:g.value,onChange:g.onChange,placeholder:g.placeholder,block:d,error:!!u,ariaDescribedBy:v,ariaLabel:g.ariaLabel??([r,g.placeholder].filter(Boolean).join(" ")||void 0)})},B))}):n.jsx(dn,{options:h.options??[],value:h.value??"",onChange:h.onChange??cc,block:d,error:!!u,ariaLabel:r,ariaDescribedBy:v});f=u?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[w,n.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:u})]}):w}else if(a==="button"){const h=e;h.buttons?.length?f=n.jsx("div",{className:"panel-row__button-group",children:h.buttons.map((w,g)=>n.jsx(me,{htmlType:"button",size:w.btnSize??40,variant:w.btnVariant??"default",disabled:w.disabled,onClick:w.onClick,children:w.label},g))}):f=n.jsx(me,{htmlType:"button",size:h.btnSize??40,variant:h.btnVariant??"default",disabled:h.disabled,onClick:h.onClick,children:h.buttonLabel})}else if(a==="text"){const h=e;f=n.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:h.valueColor?{color:h.valueColor}:void 0,children:h.value})}else if(a==="input"){const h=e;f=n.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[n.jsx(Gn,{value:h.value,onChange:h.onChange??cc,onKeyDown:h.onKeyDown,onEnter:h.onEnter,placeholder:h.placeholder,ghostText:h.ghostText,ghostHint:h.ghostHint,inputMode:h.inputMode,readOnly:h.readOnly,disabled:h.disabled,type:h.type,autoComplete:h.autoComplete,maxLength:h.maxLength,showCount:h.showCount,multiline:h.multiline,rows:h.rows,fullWidth:d,error:u,ariaLabel:r,required:l,ariaDescribedBy:h.helperText?C:void 0}),h.helperText&&n.jsx("div",{id:C,className:"panel-row__helper caption-1",children:h.helperText})]})}else a==="custom"&&(f=e.children);u&&a!=="input"&&a!=="dropdown"&&(f=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[f,n.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const b=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,_=h=>{p&&h.target===h.currentTarget&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),p())};return n.jsxs("div",{className:Ae("panel-row",c==="vertical"?"panel-row--vertical":"",b?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",p?"panel-row--clickable":""),onClick:p,onKeyDown:p?_:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,children:[m!=null&&n.jsx("div",{className:"panel-row__icon",children:m}),n.jsxs("div",{className:"panel-row__left",children:[y?n.jsxs("label",{htmlFor:y,className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}):n.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}),s&&n.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),n.jsx("div",{className:"panel-row__right",children:f})]})}function dc(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function L3({devices:e,onRelease:t,emptyLabel:a}){const{t:r}=_e.useTranslation();return n.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(s=>{const i=e[s],l=s==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return n.jsxs("div",{className:"panel-row__device-column",children:[n.jsxs("div",{className:"panel-row__device-head",children:[n.jsx("span",{className:"panel-row__device-side body-2b",children:l}),i&&t&&n.jsx(me,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${l} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(s)})]}),i?n.jsxs("div",{className:"panel-row__device-info",children:[n.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&n.jsx(wt,{size:"small",variant:cu(i.device),fill:"soft",label:M3(i.device,r)}),dc(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:dc(i)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),No(i.wornYear,i.wornMonth,i.wornDay)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:No(i.wornYear,i.wornMonth,i.wornDay)})})]}):n.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},s)})})}function Cr({title:e,titleLevel:t=2,icon:a,disc:r,actions:s,size:i="medium",minHeight:l,maxWidth:u,className:c,scrollable:d,scrollbarGutter:m="auto",compactRows:p=!1,useBorder:f=!0,useBg:y=!0,useRowBorder:v=!0,labelWidth:C,form:b=!1,loading:_,empty:h,children:w}){const g=Ae("panel",`panel--${i}`,b?"panel--form":"",l!==void 0?"panel--fill":"",f?"":"panel--no-border",y?"":"panel--no-bg",v?"":"panel--no-row-border",p?"panel--compact-rows":"",c),B={};l!==void 0&&(B.minHeight=l),u!==void 0&&(B.maxWidth=typeof u=="number"?`${u}px`:u),C!==void 0&&(B["--panel-label-width"]=typeof C=="number"?`${C}px`:C);const x=t?`h${t}`:"div";return n.jsxs("div",{className:g,style:Object.keys(B).length?B:void 0,children:[(!!e||r!=null)&&n.jsxs("div",{className:Ae("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&n.jsx(tt,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[!!e&&n.jsx(x,{className:`panel__title ${r!=null?"body-3b":"h5b"}`,children:e}),r!=null&&n.jsx("p",{className:"panel__disc caption-1",children:r})]}),s&&n.jsx("div",{className:"panel__actions",children:s})]}),_?n.jsx(Rn,{variant:"loading"}):h!=null&&o.Children.toArray(w).length===0?n.jsx(Rn,{variant:"empty",children:h}):d?n.jsx("div",{className:Ae("panel__body--scroll",m==="stable"&&"panel__body--gutter-stable"),children:w}):w]})}function $3({cols:e=2,layout:t="grid",gap:a=1,collapseAt:r,className:s,style:i,children:l}){const u=o.useRef(null),[c,d]=o.useState();o.useEffect(()=>{const p=u.current;if(r===void 0||!p||(d(p.clientWidth),typeof ResizeObserver>"u"))return;const f=new ResizeObserver(([y])=>d(y.contentRect.width));return f.observe(p),()=>f.disconnect()},[r]);const m=r!==void 0&&c!==void 0&&c<=r;return n.jsx("div",{ref:u,className:Ae("panel-grid",t==="columns"&&"panel-grid--columns",s),style:{"--panel-grid-cols":m?1:e,"--panel-grid-gap":typeof a=="number"?`${a}px`:a,...i},children:l})}function R3(e){return[{label:e("training.noise.level.none","\uC5C6\uC74C"),value:0},{label:e("training.noise.level.weak","\uC57D\uD568"),value:1},{label:e("training.noise.level.medium","\uBCF4\uD1B5"),value:2},{label:e("training.noise.level.strong","\uAC15\uD568"),value:3},{label:e("training.noise.level.veryStrong","\uB9E4\uC6B0 \uAC15\uD568"),value:4}]}function pc(e){return[{label:e("training.noise.type.default","\uAE30\uBCF8"),value:"defaultNoise",icon:"party-popper"},{label:e("training.noise.type.street","\uAE38\uAC70\uB9AC"),value:"street",icon:"car"},{label:e("training.noise.type.buzz","\uC640\uAE00\uC640\uAE00"),value:"buzz",icon:"message-square-more"},{label:e("training.noise.type.restaurant","\uC2DD\uB2F9"),value:"restaurant",icon:"coffee"}]}R3(Tt.t.bind(Tt)),pc(Tt.t.bind(Tt));const Xo="none",P3=.5,F3=1.5,I3=.25;function Jo({title:e,valueLabel:t,value:a,min:r,max:s,step:i,tickStep:l,size:u,disabled:c,onChange:d}){return n.jsxs(Rn,{variant:"custom",label:e,useFullWidth:!0,children:[n.jsx(ou,{value:a,onChange:d,min:r,max:s,step:i,size:u,showBgTick:!0,tickStep:l,ariaLabel:e,disabled:c,className:"noise-settings__slider-input"}),n.jsx("div",{className:Ae("noise-settings__value","button-1",c?"noise-settings__value--disabled":""),children:t})]})}function mc({anchorRect:e,onClose:t}){const{t:a}=_e.useTranslation(),r=rn("(max-width: 767px)")?40:24,s=cr(),i=Fa(s?.settings??Oa),l=s?.settings.type??"defaultNoise",u=s?.settings.enabled??!0,c=s?.playbackRate??1,d=s?.mainVolume??1,m=Math.round(d*100),p=o.useCallback(C=>{try{s?.setMainVolume(Math.max(0,Math.min(1,C/100)))}catch{}},[s]),f=o.useCallback(C=>{try{s?.setPlaybackRate(C)}catch{}},[s]),y=o.useCallback(C=>{const b=Math.min(Pa,Math.max(0,Math.round(C*10)/10));try{s?.setSettings({noiseRatio:b})}catch{}},[s]),v=o.useCallback(C=>{try{C===Xo?s?.setSettings({enabled:!1}):s?.setSettings({type:C,enabled:!0})}catch{}},[s]);return n.jsx(un,{anchorRect:e,offset:12,onClose:t,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:n.jsxs("div",{className:"noise-settings__header",children:[n.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),n.jsx(me,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:t})]}),children:n.jsxs(Cr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[n.jsx(Jo,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${m}%`,value:m,min:0,max:100,step:10,size:r,onChange:p}),n.jsx(Jo,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${c.toFixed(2)}x`,value:c,min:P3,max:F3,step:I3,size:r,onChange:f}),n.jsx(Rn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:n.jsx(Bn,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Xo,label:a("training.noise.type.none","\uC5C6\uC74C")},...pc(a).map(C=>({key:C.value,label:C.label}))],value:u?l:Xo,onChange:v})}),n.jsx(Jo,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:Pa,step:Gu,size:r,disabled:!u,onChange:y})]})})}function hc({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:s=0,stepCount:i=0,pageIndex:l=0,pageCount:u=1,resultOpen:c=!1}){const{t:d}=_e.useTranslation(),[m,p]=o.useState(!1),[f,y]=o.useState(null),[v,C]=o.useState(!1),b=o.useRef(null),_=o.useRef(null),h=cr(),w=u>0,g=w&&l<u-1,B=!w||l>=u-1,x=s===Math.max(0,i);o.useEffect(()=>{e||(p(!1),y(null))},[e]);const N=o.useCallback(()=>{p(!1),y(null)},[]),k=o.useCallback(()=>{if(m){p(!1),y(null);return}const O=b?.current?.getBoundingClientRect();O&&y(O),t?.(),p(!0)},[m,t]),A=o.useCallback(()=>{if(m){p(!1),y(null);return}const O=_?.current?.getBoundingClientRect();O&&y(O),t?.(),p(!0)},[m,t]),S=rn("(max-width: 767px)"),E=o.useRef(null),[H,$]=o.useState(null),K=o.useCallback(()=>{C(O=>{const U=!O;return $(U?E.current?.getBoundingClientRect()??null:null),U})},[]),L=o.useCallback(()=>{C(!1),$(null)},[]);o.useEffect(()=>{c&&(C(!1),$(null))},[c]);const j=n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.sentence","\uC7AC\uC0DD")}),n.jsx(Bo,{analyser:h?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.sentence","\uC7AC\uC0DD")})]}),n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.noise","\uC18C\uC74C")}),n.jsx(Bo,{analyser:h?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.noise","\uC18C\uC74C")})]})]});return sc(e&&m,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[b.current,_.current].map(O=>O?.querySelector("button")??null).find(O=>!!O&&O.getClientRects().length>0)??b.current?.querySelector("button")??null),n.jsxs("div",{className:"pp-bottom",children:[n.jsxs("div",{className:"pp-bottom__left",children:[e?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pp-bottom__settings--desktop",children:n.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(me,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:k,className:m?"is-selected":void 0,"aria-expanded":m,"aria-haspopup":"dialog",ariaLabel:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),n.jsx("div",{className:"pp-bottom__settings--mobile",children:n.jsx("div",{ref:_,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(me,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:A,className:m?"is-selected":void 0,"aria-expanded":m,"aria-haspopup":"dialog",ariaLabel:d("training.settings","\uC124\uC815")})})})]}):null,e&&n.jsx("div",{ref:E,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:n.jsx(me,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:K,selected:v,"aria-expanded":S?v:void 0,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&v&&!S&&n.jsx("div",{className:"pp-bottom__meters",children:j})]}),e&&v&&S&&H&&n.jsx(un,{anchorRect:H,onClose:L,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"),children:n.jsx("div",{className:"pp-bottom__meters pp-bottom__meters--floating",children:j})}),n.jsxs("div",{className:"pp-bottom__right",children:[B&&n.jsx(me,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!x}),g&&n.jsx(me,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!x})]}),e&&m&&n.jsx(mc,{anchorRect:f,onClose:N})]})}function Cc({title:e,subtitle:t,desc:a,depth:r,icon:s,wrapperStyle:i,iconTooltip:l,pageIndex:u,pageCount:c,progressMax:d,progressIndex:m,onBack:p,onClose:f}){const{t:y}=_e.useTranslation(),v=rn("(max-width: 767px)"),C=Number.isInteger(m)?m:u||0,b=Number.isInteger(d)?d:c||0,_=p||f,h=Array.isArray(r)?v?r[r.length-1]:r.join(" / "):r,w=typeof e=="string"?e.trim():e,g=typeof t=="string"?t.trim():t,B=!!(w||g),x=B?w||g:y("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),N=h||(w?t:void 0),k=v&&typeof N=="string"&&(N.includes(" \xB7 ")||N.includes(" / "))?N.split(/\s[·/]\s/).pop():N,A=o.useMemo(()=>{const S=i&&typeof i=="object"?{...i}:{};return!("width"in S)&&!("height"in S)&&(S.width="40px",S.height="40px"),S},[i]);return n.jsxs("header",{className:"pp-title training-popup-title",children:[n.jsxs("div",{className:"pp-title__left",children:[_?n.jsx(me,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:y("common.back","\uB4A4\uB85C"),onClick:_,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,n.jsx("div",{children:s?n.jsx(Pl,{icon:s,label:e,tooltip:l,wrapperStyle:A}):null}),n.jsxs("div",{className:"pp-title__text",children:[k?n.jsx("span",{className:"pp-title__depth caption-1",children:k}):null,n.jsx("span",{className:`pp-title__title h2${B?"":" pp-title__title--empty"}`,children:x}),a?n.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),n.jsx(uu,{max:Math.max(0,b??0),index:Math.max(0,C??0)})]})}function O3(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function H3(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(t=>typeof t=="string"?t.split("|").map(a=>a.trim()).filter(Boolean):t||t===0?[String(t)]:[]):typeof e=="string"?e.split("|").map(t=>t.trim()).filter(Boolean):[String(e)]}const fc=(e,t)=>{if(!t)return t;const a=typeof Tt?.t=="function"?Tt.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function gc(e,t,a){const r=e,s=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=gi().find(u=>u.key===(r?.category_0||r?.category_main_code)),l=i?.subs?.find(u=>u.key===(r?.category_1||r?.category_sub_code));return{title:s,label:r?.title||s,depth:t,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?fc(`topic.${i.key}`,i.label):void 0,l?fc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function Qo(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function bc(e,t,a){if(!e||typeof e!="object"||Array.isArray(e))return e;const r=e,s=typeof a=="number"&&a>0?a:Date.now();return{...r,...r.shownAt===void 0&&t?{shownAt:t}:{},...r.answeredAt===void 0?{answeredAt:new Date(s).toISOString()}:{}}}function z3(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function V3({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:i,buildResults:l,metaPatch:u}){const c=gc(t,a,r),d=typeof u=="function"?u(c)||{}:u||{},m=t?.id||t?.title||s.length;return{id:`${e}:${m}`,meta:{...c,...d},pages:s,emptyMessage:i,buildResults:l}}function W3(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function q3(e){if(e&&typeof e=="object"){const t=e;if(Array.isArray(t.selectedValues))return t.selectedValues;if(t.selectedValue!==void 0)return t.selectedValue;if(t.selectedIndex!==void 0)return t.selectedIndex;if(t.value!==void 0)return t.value}return e}function U3(e,t=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(t))return String(t[e]??"");if(typeof e=="string")return e}function yc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function G3(e,t,a,r){return yc(e,t*a+r)}function K3({payload:e,selected:t,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const s=e;if(Array.isArray(s.selectedValues))return r.every(i=>s.selectedValues.includes(i))&&s.selectedValues.every(i=>r.includes(i));if(typeof s.correct=="boolean")return s.correct}if(r.length){if(typeof t=="number"&&Array.isArray(a)&&a.length)return r.some(s=>String(s)===String(a[t]));if(typeof t<"u")return r.some(s=>String(s)===String(t))}}function Y3(e){return e?Array.isArray(e.items)?e.items.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const vc=o.createContext(null);function Z3(){const e=o.useContext(vc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function X3({index:e,stepIndex:t,isLast:a=!1,title:r,choices:s=[],onDone:i,onChange:l}){const{t:u}=_e.useTranslation(),c=typeof e=="number"?e:-1,d=typeof t!="number"?"disabled":c<t?"done":c===t?"active":"disabled",[m,p]=o.useState(()=>s.map(()=>null)),f=JSON.stringify(s),y=s.length;o.useEffect(()=>{p(Array.from({length:y},()=>null))},[f]);const v=o.useRef(void 0);o.useEffect(()=>{const h=v.current;typeof h=="number"&&typeof t=="number"&&typeof e=="number"&&h>=e&&t<e&&p(Array.from({length:y},()=>null)),v.current=t},[t,e,y]);const C=o.useMemo(()=>m.filter(h=>h!==null).length+1,[m]),b=o.useCallback(h=>{if(d!=="active")return;const w=m;let g;if(w[h]!=null){const x=w[h];g=w.map(N=>N!==null&&N>=x?null:N)}else g=[...w],g[h]=C;p(g);const B={selectedOrder:g,words:s,__ts:Date.now()};try{typeof l=="function"&&l(B)}catch{}if(w[h]==null&&g.length>0&&g.every(x=>x!==null))try{typeof i=="function"&&i(B)}catch{}},[d,m,C,l,i,s]),_=r??u("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return n.jsx(Kn,{index:e,stepIndex:t,isLast:a,title:_,onDone:i,children:n.jsx("div",{className:"training-step__cards",children:s.map((h,w)=>n.jsx(So,{item:{word:h},disabled:d==="disabled",selectable:!0,selected:m[w]!==null,orderRank:m[w],onSelect:()=>b(w),flipDelay:w*120,hideLabel:!1,hideAudio:!0},`${h}-${w}`))})})}function fr(e){return null}fr.__isTrainingPage=!0;function ma(e,t){const a=Z3();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof t=="number"?e===t-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function xc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l}=ma(e,t);return n.jsx(Yo,{...a,index:r,stepIndex:s,isLast:i,onDone:l})}function _c({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=ma(e,t);return n.jsx(Go,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function wc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=ma(e,t);return n.jsx(Ko,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function Bc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=ma(e,t);return n.jsx(Zo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function Ac({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=ma(e,t);return n.jsx(uc,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function J3({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=ma(e,t);return n.jsx(X3,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function es(...e){for(const t of e)if(typeof t=="string"){const a=t.trim();if(a.length)return a}else{if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)&&t.length)return t.join(", ");if(t&&typeof t=="object"){const a=t,r=[a.text,a.label,a.value];for(const s of r){if(typeof s=="string"&&s.trim().length)return s.trim();if(typeof s=="number"||typeof s=="boolean")return String(s)}}}return null}function Q3(e){return es(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function kc(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const t=es(e?.status,e?.result,e?.judge,e?.note);if(t){const a=t.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function Nc(e){const{score:t,contextsLength:a,results:r=[],subtitle:s,onReplay:i,onClose:l,inline:u=!1,pending:c=!1}=e||{},{t:d}=_e.useTranslation(),m=o.useId(),p=o.useCallback(()=>!c,[c]);o.useEffect(()=>{const h=a??0;if(t!=null&&h>0&&t/h>.5){const w=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(w)}},[t,a]);const f=o.useCallback(h=>{const w=kc(h),g=es(h?.wording,h?.label);return w===!0?{variant:"main",label:g??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:w===!1?{variant:"danger",label:g??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:g??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),y=a??0,v=t??0,C=o.useMemo(()=>Array.isArray(r)?r:[],[r]),b=o.useMemo(()=>C.map(h=>{const w=h??{},g=Q3(w)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:B,label:x}=f(w),N=Array.isArray(w.corrects)?w.corrects:[],k=N.length?N.join(", "):w.answer!=null&&w.answer!==""?String(w.answer):null,A=typeof w.selectedText=="string"?w.selectedText:null,S=kc(w)===!0;return{problem:g,variant:B,label:x,answer:k,selectedText:A,isCorrect:S}}),[C,f,d]),_=o.useMemo(()=>b.some(h=>h.answer!==null||h.selectedText!==null),[b]);return n.jsx($n,{onClose:l,closeOnBackdrop:!1,inline:u,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:p,footerClassName:"trp-result__foot",footer:({animateThen:h,closeWithAnimation:w})=>n.jsxs(n.Fragment,{children:[c&&n.jsx("p",{id:m,className:"trp-actions__reason caption-1",role:"status",children:d("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsxs("div",{className:"trp-actions",children:[n.jsx(me,{htmlType:"button",size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>h(i)}),n.jsx(me,{htmlType:"button",size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:w,disabled:c,onDisabledClick:c?()=>{}:void 0,"aria-describedby":c?m:void 0})]})]}),children:()=>n.jsxs("div",{className:"trp-result is-on",children:[n.jsxs("header",{className:"trp-result__head",children:[n.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),n.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),s&&n.jsx("p",{className:"trp-result__subtitle body-3",children:s}),n.jsx("div",{className:"trp-score",children:n.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:v,total:y}),children:[n.jsx("span",{className:"trp-score__big",children:v}),n.jsx("span",{className:"trp-score__sep",children:"/"}),n.jsx("span",{className:"trp-score__total",children:y})]})})]}),b.length>0&&n.jsx("section",{className:"trp-result__body",children:n.jsxs("div",{className:`result-table${_?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[n.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[n.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),_&&n.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),n.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),b.map((h,w)=>n.jsxs("div",{className:"result-table__row",role:"row",children:[n.jsxs("div",{className:"trp-row__problem",children:[n.jsx("span",{className:"trp-row__no caption-1",children:String(w+1).padStart(2,"0")}),n.jsx("div",{className:"trp-row__q body-2",children:h.problem})]}),_&&n.jsxs("div",{className:"trp-row__answers",children:[h.answer!==null&&n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),n.jsx("span",{className:"trp-row__answer-value body-2",children:h.answer})]}),n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${h.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),n.jsx("span",{className:`trp-row__answer-value body-2 ${h.isCorrect?"is-correct":"is-wrong"}`,children:h.selectedText??"\u2014"})]})]}),n.jsx("div",{className:"trp-row__judge",children:n.jsx(wt,{variant:h.variant,label:h.label,fill:"soft",minWidth:80})})]},w))]})})]})})}const ts=new Set;function e7(e){o.useEffect(()=>{if(!e||ts.has(e))return;ts.add(e);const t=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,s=0,i=0;const l=()=>{const m=Date.now();a==null&&(a=m),r==null&&(r=m)},u=()=>{r!=null&&(s+=Date.now()-r,r=null)};t()&&l();const c=()=>{if(u(),a==null||s-i<1e3||i===0&&s<5e3)return;const m=a+i;i=s,FC({trainingType:e,startedAt:new Date(m).toISOString(),endedAt:new Date(a+s).toISOString()})},d=()=>{t()?l():c()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",c),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",c),c(),ts.delete(e)}},[e])}function gr(e,t){return e&&e.id||`page-${t??0}`}function br(e,t){return e&&e.key||`step-${t??0}`}function yr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function t7(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const n7=300,a7=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Nn=Object.freeze({}),Dc=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function ns(e){const t=e,a=t?.results||t?.answers||[],r=Array.isArray(a)&&a.length>0?a.length:null,s=Array.isArray(a)?a.filter(i=>i?.correct===!0||i?.isCorrect===!0||i?.score===1||i?.heard===!0||i?.judgement===!0).length:null;return{results:a,correct:r!=null?s:null,total:r}}const r7=e=>n.jsx(Nc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function o7(e){const{scenario:t,title:a,subTitle:r,depth:s,icon:i,wrapperStyle:l,iconTooltip:u,pageIndex:c,pageCount:d,stepIndex:m,stepCount:p,onBack:f,onComplete:y,onRoundFinished:v,onNext:C,onSettings:b,useNoiseSetting:_=!0,children:h,ariaLabel:w,label:g,buildResults:B,onResult:x,typeKey:N,entryPoint:k,dailyTotal:A,itemRef:S,renderResultPopup:E,noiseOverride:H}=e;e7(N&&!Dc.has(N)?N:"");const $=o.useRef(0);o.useEffect(()=>{$.current=Date.now()},[]);const{t:K}=_e.useTranslation(),L=x,j=!!t,O=t?.id||null,U=t?.meta||{},te=Array.isArray(t?.pages)?t.pages:[],z=Array.isArray(h)||o.isValidElement(h)&&typeof h!="function"?o.Children.toArray(h).filter(o.isValidElement):[],q=z.length>0,R=se=>se===fr||se?.__isTrainingPage===!0,W=q&&z.some(se=>R(se.type)),D=W?z.filter(se=>R(se.type)).map((se,xe)=>{const je=se.props||{};return{id:`children-page-${xe}`,steps:o.Children.toArray(je.children).filter(o.isValidElement),pageTop:je.pageTop||je.top||null,pageBottom:je.pageBottom||je.bottom||null}}):[{id:"children-page-0",steps:z}],P=q&&!j&&typeof h!="function",M=P?Math.max(1,D.length):0;o.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),o.useEffect(()=>{if(typeof document>"u"||!document.body)return;const se=document.body;return se.dataset.ihabTrainingPopupCount=String(Number(se.dataset.ihabTrainingPopupCount||"0")+1),se.classList.add("ihab-training-popup-open"),()=>{const xe=Number(se.dataset.ihabTrainingPopupCount||"1")-1;xe>0?se.dataset.ihabTrainingPopupCount=String(xe):(delete se.dataset.ihabTrainingPopupCount,se.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return O4()},[]);const[F,I]=o.useState({...Oa,enabled:!1}),Z=o.useRef(F);o.useEffect(()=>{Z.current=F},[F]);const J=o.useRef(H),Y=o.useRef(!1),ne=o.useRef(null);o.useEffect(()=>{let se=!1;const xe=je=>{if(se)return;Y.current=!0;const Je=je?Ia({...Oa,enabled:!1},je):{...Oa},Re=ne.current;ne.current=null;const qe=Re?Ia(Je,Re):Je;Z.current=qe,I(qe),Re&&!J.current&&pi(qe),Ga(qe);const Ze=J.current;if(Ze){const Q=typeof Ze=="function"?Ze(qe):Ze,ye=Ia(qe,Q);Z.current=ye,I(ye),Ga(ye)}};return zC().then(xe),()=>{se=!0}},[]);const[ie,ue]=o.useState(null),[Se,V]=o.useState(null),oe=o.useCallback((se,xe)=>{se==="main"?ue(xe):V(xe)},[]),ge=o.useRef(null),De=o.useRef(null),fe=o.useCallback(()=>{De.current!==null&&(clearTimeout(De.current),De.current=null);const se=ge.current;ge.current=null,se&&pi(se)},[]);o.useEffect(()=>{if(typeof window>"u")return;const se=()=>{document.visibilityState==="hidden"&&fe()};return window.addEventListener("pagehide",fe),document.addEventListener("visibilitychange",se),()=>{window.removeEventListener("pagehide",fe),document.removeEventListener("visibilitychange",se),fe()}},[fe]);const ae=o.useCallback(se=>{const xe=Ia(Z.current,se);if(Z.current=xe,I(xe),!Y.current){ne.current={...ne.current??{},...se},Ga(xe);return}J.current||(ge.current=xe,De.current!==null&&clearTimeout(De.current),De.current=setTimeout(fe,n7)),Ga(xe)},[fe]),de=F.mainSpeed,pe=F.mainVolume,he=o.useCallback(se=>ae({mainSpeed:se}),[ae]),be=o.useCallback(se=>ae({mainVolume:se}),[ae]),Pe=o.useMemo(()=>({settings:F,setSettings:ae,registerAnalyser:oe,mainAnalyser:ie,noiseAnalyser:Se,playbackRate:de,setPlaybackRate:he,mainVolume:pe,setMainVolume:be}),[F,ae,oe,ie,Se,de,he,pe,be]),$e=o.useRef(null),[Ie,Fe]=o.useState(0),Oe=o.useRef([]),[dt,lt]=o.useState("center"),[ot,ct]=o.useState(!1),ke=o.useRef(!1),He=o.useRef(null),Be=o.useCallback(se=>{ke.current||(ke.current=!0,ct(!0),He.current=setTimeout(()=>{try{se()}catch{ke.current=!1,ct(!1)}},a7()?0:j3))},[]);o.useEffect(()=>()=>{He.current&&clearTimeout(He.current)},[]);const Xe=o.useRef(f);o.useEffect(()=>{Xe.current=f}),o.useEffect(()=>{const se=$e.current,xe=document.activeElement;if(Yr(se,xe),se){const je=Array.from(se.querySelectorAll(Cn)).filter(Je=>!Je.closest('[aria-hidden="true"]'))[0];if(je)try{je.focus()}catch{}}return()=>{const je=document.activeElement;if(!je||je===document.body||se&&se.contains(je))try{Zr(xe)?.focus?.()}catch{}}},[]),o.useEffect(()=>Vn(()=>Be(()=>{const se=Xe.current;typeof se=="function"&&se()})),[Be]),Gr($e,!0);const[X,le]=o.useState(!1),we=o.useRef(!1),[Ne,Ve]=o.useState(null),et=o.useRef(0),pt=o.useRef(0),ut=()=>{et.current+=1,pt.current+=1,Ve(null)},[ft,gt]=o.useState(""),[Qe,Ue]=o.useState(()=>yr()),We=o.useRef(typeof c=="number"?c:null);o.useEffect(()=>{!j&&!P||(Ue(yr()),ut())},[j,O,P]),o.useEffect(()=>{P&&Ue(se=>{const xe=Math.max(0,Math.min(se.pageIndex,Math.max(0,M-1)));return xe!==se.pageIndex?{...se,pageIndex:xe,stepIndex:0}:se})},[P,M]);const Ke=P?Math.max(0,Math.min(Qe.pageIndex,M-1)):0,rt=P?D[Ke]:null,bt=P&&rt&&Array.isArray(rt.steps)?rt.steps:[],Ye=j?Qe.pageIndex:P?Ke:typeof c=="number"?c:0,ht=j?te[Math.max(0,Math.min(Qe.pageIndex,Math.max(0,te.length-1)))]:null,Nt=j&&ht&&Array.isArray(ht.steps)?ht.steps:[],Et=j?Nt.length:P?bt.length:typeof p=="number"?p:0,Me=j||P?Math.max(0,Math.min(Qe.stepIndex,Math.max(0,Et))):typeof m=="number"?m:0,nt=j?te.length:P?M:typeof d=="number"?d:0;o.useEffect(()=>{if(!j&&!P)return;const se=j?gr(ht,Ye):rt?.id||`children-page-${Ye??0}`,xe=new Date().toISOString();for(let je=0;je<=Me;je+=1){const Je=j?br(Nt[je],je):`step-${je}`,Re=Bt(se,Je);at.current.has(Re)||at.current.set(Re,xe)}},[j,P,Ye,Me,rt?.id]),o.useLayoutEffect(()=>{const se=We.current;if(typeof Ye=="number"&&se!==null&&Ye!==se&&Ye>se)try{gt(K("training.problemNotice",{n:Ye+1}))}catch{}We.current=typeof Ye=="number"?Ye:We.current},[Ye,c,K]),o.useLayoutEffect(()=>{const se=$e.current;if(!se)return;const xe=()=>se.querySelector(".page-popup__scroll");let je=null,Je=null,Re=null;const qe=ve=>{const Te=xe();if(!Te)return;const ze=Te.scrollHeight<=Te.clientHeight;if(lt(ze?"center":"top"),ve&&!we.current){we.current=!0;try{le(!0)}catch{}try{ye.disconnect()}catch{}}},Ze=()=>{je!==null&&cancelAnimationFrame(je),je=requestAnimationFrame(()=>{Je!==null&&clearTimeout(Je),Je=setTimeout(()=>qe(!0),60)})},Q=()=>{Re!==null&&cancelAnimationFrame(Re),Re=requestAnimationFrame(()=>qe(!1))};Ze(),window.addEventListener("resize",Q);const ye=new MutationObserver(Ze);ye.observe(se,{childList:!0,subtree:!0,attributes:!0});const re=setTimeout(()=>{we.current||qe(!0)},400);return()=>{window.removeEventListener("resize",Q),je!==null&&cancelAnimationFrame(je),Je!==null&&clearTimeout(Je),Re!==null&&cancelAnimationFrame(Re),clearTimeout(re);try{ye.disconnect()}catch{}}},[$e]);const Lt=o.useCallback(se=>{$e.current&&($e.current._childOnNext=se)},[]),Xt=o.useCallback(se=>{$e.current&&($e.current._childOnResult=se)},[]),at=o.useRef(new Map),Bt=(se,xe)=>`${se}\0${xe}`,At=o.useCallback((se,xe,je)=>{Ue(Je=>{const Re=Je.answersByPage[se]||{},qe=Re[xe],Ze=Qo(je),Q=Qo(qe);if(qe&&Q>Ze)return Je;const ye=bc(je,at.current.get(Bt(se,xe)),Ze);return{...Je,answersByPage:{...Je.answersByPage,[se]:{...Re,[xe]:ye}}}})},[Ue]),vt=o.useCallback((se,xe,je)=>{const Je=gr(ht,Ye),Re=br(se,xe);At(Je,Re,je)},[ht,Ye,At]),an=o.useCallback((se,xe,je)=>{const Je=gr(ht,Ye),Re=br(se,xe);At(Je,Re,je),!je?.allowChange&&se?.autoAdvance!==!1&&Ue(qe=>({...qe,stepIndex:Math.max(qe.stepIndex,xe+1)}))},[ht,Ye,At,Ue]),gn=o.useCallback((se,xe)=>{const je=rt?.id||`children-page-${Ye??0}`,Je=typeof xe=="number"?xe:Me??0,Re=`step-${Je}`;At(je,Re,se),se?.allowChange||Ue(qe=>({...qe,stepIndex:Math.max(qe.stepIndex,Je+1)}))},[rt,Ye,Me,At,Ue]),pn=o.useCallback((se,xe)=>{const je=rt?.id||`children-page-${Ye??0}`,Je=`step-${typeof xe=="number"?xe:Me??0}`;At(je,Je,se)},[rt,Ye,Me,At]),mn=P?{currentPageIndex:Ye??0,currentStepIndex:Me??0,totalStepsInPage:bt.length,handleStepDone:gn,handleStepChange:pn}:null,Dn=async()=>{const se=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:te,flowState:Qe,answersByPage:Qe.answersByPage})):null;return typeof L=="function"&&await Promise.resolve(L(se))||se},Fn=async()=>{const se=rt?.id||`children-page-${Qe.pageIndex}`,xe=Qe.answersByPage[se]||{},je=W?(()=>{const qe={};let Ze=0;return D.forEach(Q=>{const ye=Qe.answersByPage[Q.id]||{},re=Array.isArray(Q.steps)?Q.steps.length:0;for(let ve=0;ve<re;ve+=1){const Te=ye[`step-${ve}`];typeof Te<"u"&&(qe[`step-${Ze+ve}`]=Te)}Ze+=re}),qe})():xe;if(typeof B=="function"){const qe=await Promise.resolve(B(je,{pageAnswers:xe,answersByPage:Qe.answersByPage,pages:D,currentPageId:se}));return typeof L=="function"&&await Promise.resolve(L(qe))||qe}const Je=Object.entries(xe).map(([qe,Ze],Q)=>({index:Q,key:qe,payload:Ze})),Re={results:Je,answers:Je,score:0};return typeof L=="function"&&await Promise.resolve(L(Re))||Re},bn=()=>{const se=++et.current,xe=()=>se!==et.current;try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(j){const Re=Dn();Ve(Nn);const qe=Re;Promise.resolve(qe).then(Ze=>{xe()||Ve(Ze||{isEmpty:!0})}).catch(Ze=>{!xe()&&Ve({isEmpty:!0})});return}if(P){const Re=Fn();Ve(Nn);const qe=Re;Promise.resolve(qe).then(Ze=>{xe()||Ve(Ze||{isEmpty:!0})}).catch(Ze=>{!xe()&&Ve({isEmpty:!0})});return}const je=$e.current&&$e.current._childOnResult,Je=Re=>{try{return Re?Re():void 0}catch{return}};if(typeof je=="function"){const Re=Je(je);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Re&&typeof Re.then!="function"?Ve(Re):Ve(Re&&typeof Re.then=="function"?Nn:{});const qe=()=>{xe()||Ve(Ze=>Ze===Nn?{}:Ze)};Promise.resolve(Re).then(Ze=>{Ze&&!xe()?Ve(Ze):qe()}).catch(Ze=>{qe()});return}if(typeof L=="function"){const Re=Je(L);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Re&&typeof Re.then!="function"?Ve(Re):Ve(Re&&typeof Re.then=="function"?Nn:{});const qe=()=>{xe()||Ve(Ze=>Ze===Nn?{}:Ze)};Promise.resolve(Re).then(Ze=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Ze&&!xe()?Ve(Ze):qe()}).catch(Ze=>{console.error("viewResults external handler failed",Ze),qe()});return}},zt=()=>{if(j){if(typeof Ye=="number"&&typeof nt=="number"&&Ye<nt-1){Ue(xe=>({...xe,pageIndex:xe.pageIndex+1,stepIndex:0}));return}return bn()}if(P){const xe=bt.length;if(typeof Me=="number"&&Me<xe-1){Ue(je=>({...je,stepIndex:je.stepIndex+1}));return}if(typeof Ye=="number"&&typeof nt=="number"&&Ye<nt-1){Ue(je=>({...je,pageIndex:je.pageIndex+1,stepIndex:0}));return}return bn()}if(typeof C=="function"){try{C()}catch{}return}const se=$e.current&&$e.current._childOnNext;if(typeof se=="function"){try{se()}catch{}return}},on=j?U.title||U.label||w||K("common.popup","\uD31D\uC5C5"):a||g||(Array.isArray(s)?s[s.length-1]:void 0)||w||K("common.popup","\uD31D\uC5C5"),Vt=w||on,Rt=j?U.title??U.label??on:a??g??on,En=(se,xe)=>{const je=gr(ht,Ye),Je=br(se,xe),Re=Qe.answersByPage[je]?.[Je],qe=t7(se,{page:ht,pageIndex:Ye,step:se,stepIndex:xe,storedPayload:Re,answersByPage:Qe.answersByPage,flowState:Qe}),Ze={key:Je,index:xe,stepIndex:Me,isLast:xe===Nt.length-1};switch(se?.type){case"listen":return n.jsx(Yo,{...Ze,...qe,onDone:Q=>an(se,xe,Q)});case"confirm":return n.jsx(Go,{...Ze,...qe,onDone:Q=>an(se,xe,Q),onChange:Q=>vt(se,xe,Q)});case"confirmWithText":return n.jsx(Ko,{...Ze,...qe,onDone:Q=>an(se,xe,Q),onChange:Q=>vt(se,xe,Q)});case"orderList":return n.jsx(Zo,{...Ze,...qe,onDone:Q=>an(se,xe,Q),onChange:Q=>vt(se,xe,Q)});default:return null}},Jt=o.useRef(void 0);o.useEffect(()=>{const se=Jt.current;if(Jt.current=Ye,se===void 0||se===Ye||!or())return;const xe=$e.current;if(!xe)return;const je=document.activeElement;if(!(!je||je===document.body||!xe.contains(je)||je.disabled===!0))return;const Je=xe.querySelector(`.training-steps ${Cn.split(", ").join(", .training-steps ")}`)??Array.from(xe.querySelectorAll(Cn)).find(Re=>!Re.closest('[aria-hidden="true"]'));try{Je?.focus()}catch{}},[Ye]);const Sn=j?te.length>0?n.jsx("div",{className:"training-steps",children:Nt.map((se,xe)=>En(se,xe))},`replay-${Ie}`):n.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:n.jsx("div",{className:"pp-empty",children:t?.emptyMessage||K("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,In=P?n.jsxs(vc.Provider,{value:mn,children:[rt?.pageTop?n.jsx("div",{className:"training-page-top",children:rt.pageTop}):null,n.jsx("div",{className:"training-steps",children:bt.map((se,xe)=>{const je=se;return o.cloneElement(je,{...je.props,_stepIndex:xe,_totalSteps:bt.length,_stepKey:`step-${xe}`,_pageIndex:Ye})})},`replay-${Ie}`),rt?.pageBottom?n.jsx("div",{className:"training-page-bottom",children:rt.pageBottom}):null]}):null,hn=o.useRef(-1),jt=o.useCallback(()=>{if(!N)return;const se=Ne,{results:xe,correct:je,total:Je}=ns(Ne),Re={correct:je,total:Je,attempt:Oe.current.length+1,previousAttempts:[...Oe.current]};if(hn.current===pt.current)return Re;hn.current=pt.current,IC({items:HC(xe),category:Dc.has(N)?"sentence":"word",trainingType:N,entryPoint:k??"sentence",itemRef:S??null,correct:je,total:Je,score:typeof se?.score=="number"?se.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-$.current)/1e3)),dailyTotal:A??null});try{v?.(Re)}catch{}return Re},[N,k,A,S,Ne,v]);o.useEffect(()=>{!Ne||Ne===Nn||Ne?.isEmpty||(ns(Ne).total??0)>0&&jt()},[Ne,jt]);const Pt=o.useCallback(()=>{const se=jt();ut(),Be(()=>{typeof y=="function"&&y(se),typeof f=="function"&&f()})},[y,f,jt,Ve,Be]),Wt=o.useCallback(()=>gt(""),[gt]),sn=o.useCallback(()=>{Be(()=>{typeof f=="function"&&f()})},[f,Be]),Ft=n.jsxs("div",{className:`page-popup${ot?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Vt,children:[n.jsxs("div",{ref:$e,className:`page-popup__panel ${X?"":"page-popup__panel--measuring"} ${dt==="center"?"page-popup__panel--center":dt==="top"?"page-popup__panel--top":""}`,children:[n.jsx(Cc,{title:Rt,subtitle:j?U.subtitle||U.label:Array.isArray(s)?s.join(" / "):void 0,desc:j?void 0:r,depth:j?U.depth:s,icon:j?U.icon:i,wrapperStyle:j?U.wrapperStyle:l,iconTooltip:j?U.iconTooltip:u,progressMax:nt,progressIndex:Ye,pageIndex:Ye,pageCount:nt,onBack:sn,onClose:sn}),n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content ${dt==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:P?In:j?Sn:typeof h=="function"?h({registerOnNext:Lt,registerOnResult:Xt,panelRef:$e,setResultOverlay:Ve}):h})}),n.jsx(hc,{onSettings:b,onNext:zt,onResult:bn,useNoiseSettingBtn:!!(j?U.useNoiseSetting??!0:_),stepIndex:Me,stepCount:Et,pageIndex:Ye,pageCount:nt,resultOpen:!!(Ne&&!Ne.isEmpty)})]}),Ne&&!Ne.isEmpty&&(E??r7)({score:Ne.score,results:Ne.results||Ne.answers||[],contextsLength:Ne.results?Ne.results.length:Ne.answers?Ne.answers.length:0,onReplay:()=>{if($.current=Date.now(),Ne!==Nn){const{correct:se,total:xe}=ns(Ne);Oe.current.push({correct:se,total:xe})}if(ut(),Fe(se=>se+1),j){if(Ue(yr()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(P){Ue(yr());return}try{const se=$e.current&&$e.current._childOnResult;typeof se=="function"&&se({replay:!0})}catch{}},onClose:Pt,pending:Ne===Nn}),Ne?.isEmpty&&n.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":K("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:n.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:n.jsx("div",{className:"page-popup__empty",children:K("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),n.jsx("div",{className:"page-popup__bottom",children:n.jsx(me,{htmlType:"button",variant:"main",size:48,onClick:Pt,label:K("training.result.done","\uC644\uB8CC")})})]})}),n.jsx(sa,{message:ft,position:"top",onClose:Wt})]}),Qt=n.jsx(Ho.Provider,{value:Pe,children:Ft});return typeof document<"u"&&document.body?en.createPortal(Qt,document.body):Qt}const Pn=o7;Pn.Page=fr,Pn.ListenStep=xc,Pn.ConfirmStep=_c,Pn.ConfirmWithTextStep=wc,Pn.OrderListStep=Bc,Pn.CardStep=Ac,Pn.CardOrderStep=J3;function s7({label:e,homonum:t}){const a=Qn()?.(e,t)??"",{imgRef:r,loading:s,hasImage:i,onLoad:l,onError:u}=Eo(a);return i?n.jsxs("div",{className:"tooltip-word-image__cell",children:[s&&n.jsx("div",{className:"tooltip-word-image__spinner"}),n.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:s?0:1},onLoad:l,onError:u})]}):n.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:n.jsx("span",{children:e})})}function Ec({words:e,anchorRect:t}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,u=window.innerWidth;let c=t.left+t.width/2-i/2,d=t.top-l-8;d<8&&(d=t.bottom+8),c=Math.max(8,Math.min(c,u-i-8)),s({left:c,top:d})},[t]),!t||e.length===0?null:en.createPortal(n.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:n.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>n.jsx(s7,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const i7=new Intl.Collator("ko");function l7({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:s,groups:i,selected:l=[],onSelect:u,maxSelect:c,onClearSelection:d,onPrint:m,onPrintEmpty:p,className:f,emptyHint:y,sectionType:v="page",disc:C}){const{t:b,i18n:_}=_e.useTranslation(),h=_.language?.startsWith("ko")??!1,{anchorRect:w,openAt:g,close:B}=Aa(),[x,N]=o.useState(null),k=o.useCallback(()=>{B(),N(null)},[B]);vb(k,!!x);const A=(r??"").trim(),S=/^[^,[\]\s]+$/.test(A)?A:"",E=S.length>0,H=r===void 0&&t===void 0,$=E?"match":H?"original":"ganada",[K,L]=o.useState(()=>$),[j,O]=o.useState("50"),[U,te]=o.useState(1),[z,q]=o.useState(E);z!==E&&(q(E),L($));const R=K==="match"&&!E||K==="original"&&!H?$:K,W=o.useMemo(()=>[...E?[{value:"match",label:b("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...H?[{value:"original",label:b("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:b("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:b("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:b("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:b("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:b("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:b("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[b,E,H]),D=o.useMemo(()=>["10","25","50","100"].map(ae=>({value:ae,label:b("wordSearch.pageSize",{count:Number(ae),defaultValue:`${ae}\uAC1C\uC529 \uBCF4\uAE30`})})),[b]),P=ae=>ae.words?.[0],M=o.useMemo(()=>{const ae=[...S].length,de=BC(S),pe=new Map;return he=>{let be=pe.get(he);return be===void 0&&(be=de((he.words?.[0]?.label??"").slice(0,ae))?0:1,pe.set(he,be)),be}},[S]),F=o.useCallback((ae,de)=>{const pe=Pe=>P(Pe)?.label??"",he=Pe=>P(Pe)?.syllables??[...pe(Pe)].length,be=Pe=>(Pe.words??[]).reduce(($e,Ie)=>{const Fe=parseInt(Ie.grade??"",10);return Number.isFinite(Fe)&&Fe<$e?Fe:$e},999);switch(R){case"match":return M(ae)-M(de)||i7.compare(pe(ae),pe(de));case"ganada":return pe(ae).localeCompare(pe(de),"ko");case"ganada_desc":return pe(de).localeCompare(pe(ae),"ko");case"syllable":return he(ae)-he(de)||pe(ae).localeCompare(pe(de),"ko");case"syllable_desc":return he(de)-he(ae)||pe(ae).localeCompare(pe(de),"ko");case"grade":return be(ae)-be(de)||pe(ae).localeCompare(pe(de),"ko");case"grade_desc":return be(de)-be(ae)||pe(ae).localeCompare(pe(de),"ko");default:return 0}},[R,M]),I=o.useMemo(()=>s.slice().sort(F),[s,F]),Z=Number(j)||10,J=o.useMemo(()=>(i??[]).flatMap(ae=>ae.items.slice().sort(F).map(de=>({item:de,label:ae.label}))),[i,F]),Y=i?J.length:I.length,ne=Math.max(1,Math.ceil(Y/Z)),ie=Math.min(U,ne),ue=o.useMemo(()=>I.slice((ie-1)*Z,ie*Z),[I,ie,Z]),Se=o.useMemo(()=>{if(!i)return null;const ae=J.slice((ie-1)*Z,ie*Z),de=new Map;for(const{item:pe,label:he}of ae)de.has(he)||de.set(he,[]),de.get(he).push(pe);return[...de.entries()].map(([pe,he])=>({label:pe,items:he}))},[i,J,ie,Z]);o.useEffect(()=>{te(1)},[K,j,Y,r]);const V=Y>0?n.jsxs("div",{className:"word-search-result-block__toolbar",children:[n.jsx(dn,{size:40,options:W,value:R,onChange:L,ariaLabel:b("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),n.jsx(dn,{size:40,options:D,value:j,onChange:O,ariaLabel:b("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),n.jsx(nr,{page:ie,totalPages:ne,onChange:te})]}):void 0,oe=ae=>{u&&u(ae)},ge=t!==void 0&&a?n.jsxs(n.Fragment,{children:[b("wordSearch.resultTitlePrefix","\uCD1D "),n.jsx("span",{style:{color:"var(--color-main)"},children:t}),b("wordSearch.resultTitleSuffix",{unit:h?TC(a):a})]}):void 0,De=t!==void 0&&t>0&&c!==void 0&&a?b("wordSearch.resultDisc",{unit:h?LC(a):a,max:c,selected:l.length}):void 0,fe=C??De;return n.jsxs(la,{type:v,className:Ae("word-search-result-block",f),children:[n.jsxs("div",{className:"word-search-result-block__inner",children:[(ge||V||fe)&&n.jsxs("div",{className:"word-search-result-block__head",children:[n.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&n.jsx(tt,{icon:e,className:"word-search-result-block__head-icon"}),ge&&n.jsx("span",{className:"word-search-result-block__title h3",children:ge})]}),V&&n.jsx("div",{className:"word-search-result-block__head-actions",children:V}),fe&&n.jsx("div",{className:"word-search-result-block__head-disc body-3",children:fe})]}),(i?i.length===0:s.length===0)&&n.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[n.jsx("p",{className:"word-search-result-block__empty body-3",children:b("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),y&&n.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:y})]}),i?(Se??[]).map(ae=>n.jsx("div",{className:"word-search-result-block__group",children:n.jsx("div",{className:"word-search-result-block__items",children:ae.items.map(de=>{const pe=l.includes(de.id);return n.jsx("div",{onMouseEnter:he=>{g(he.currentTarget),N(de.words??[])},onMouseLeave:k,children:n.jsx(me,{htmlType:"button",size:"word",align:"grid",label:(de.words??[]).map(he=>he.label),subLabel:(de.words??[]).some(he=>he.subLabel)?(de.words??[]).map(he=>he.subLabel):void 0,selected:pe,onClick:()=>oe(de.id),minWidth:200})},de.id)})})},ae.label)):n.jsx("div",{className:"word-search-result-block__items",children:ue.map(ae=>{const de=l.includes(ae.id);return n.jsx("div",{onMouseEnter:pe=>{g(pe.currentTarget),N(ae.words??[])},onMouseLeave:k,children:n.jsx(me,{htmlType:"button",size:"word",align:"grid",label:(ae.words??[]).map(pe=>pe.label),subLabel:(ae.words??[]).some(pe=>pe.subLabel)?(ae.words??[]).map(pe=>pe.subLabel):void 0,selected:de,onClick:()=>oe(ae.id),minWidth:200})},ae.id)})}),x&&w&&n.jsx(Ec,{words:x,anchorRect:w})]}),ne>1&&n.jsx("div",{className:"word-search-result-block__pagination-bottom",children:n.jsx(nr,{page:ie,totalPages:ne,onChange:te})}),(d||m)&&n.jsxs("div",{className:"word-search-result-block__actions",children:[d&&n.jsx(me,{htmlType:"button",size:"56",type:"bar",label:b("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),m&&n.jsx("div",{onClick:l.length===0?p:void 0,children:n.jsx(me,{htmlType:"button",size:"56",type:"bar",variant:"main",label:b("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:m})})]})]})}function u7(e,t){return t.map(a=>{const r=typeof a=="string"?a:a.label,s=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:s}})}function c7({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:s=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:u,onSelect:c,placeholder:d="-",className:m,title:p,titleIcon:f,disc:y,showInfoButton:v=!0,onClearPhoneme:C,onSearch:b,onSearchEmpty:_,searchDisabled:h=!1,searchLabel:w,searchChecking:g=!1,pairMode:B=!1,sectionType:x="page",beforeSearchContent:N,beforeContent:k,afterContent:A,hideCountControl:S=!1,ordinal:E=!1}){const{t:H}=_e.useTranslation(),$=o.useMemo(()=>H("wordPairs.infoNotes",{returnObjects:!0}),[H]),K=o.useMemo(()=>Array.from({length:s-i+1},(M,F)=>{const I=i+F;return{key:String(I),label:H("wordPairs.count",{n:I})}}),[H,s,i]),L=o.useMemo(()=>H("wordPairs.ordinals",{returnObjects:!0}),[H]),j=o.useCallback(M=>E?H("wordPairs.phonemeOrdinalLabel",{ordinal:L[M-1]??M}):a===1?H("wordPairs.phonemeSingleLabel","\uC74C\uC808"):H("wordPairs.phonemeN",{n:M}),[E,L,a,H]),O=o.useCallback(M=>E?H("wordPairs.phonemeContrastOrdinalLabel",{ordinal:L[M-1]??M}):a===1?H("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):H("wordPairs.phonemeContrast",{n:M}),[E,L,a,H]),U=o.useCallback((M,F)=>F?n.jsxs(n.Fragment,{children:[M,n.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):M,[]),{anchorRect:te,toggleAt:z,close:q}=Aa(),R=o.useCallback(M=>r(Number(M)),[r]),W=rn("(max-width: 767px)"),D=o.useCallback(M=>u7(M,e).map(({label:F,value:I,displayLabel:Z})=>{const J=!!I&&I!=="\uC5C6\uC74C";return n.jsxs("span",{className:Ae("phoneme-select-block__cell-jamo-part",I?"":"phoneme-select-block__cell-jamo-part--empty",J?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[n.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${I==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:I==="\uC5C6\uC74C"?"x":I||d}),J&&n.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:Z??F})]},F)}),[e,d]),P=n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-tooltip-ignore":!0,children:n.jsx(me,{htmlType:"button",size:40,type:W?"dot":void 0,icon:"info",label:W?void 0:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:te?"is-selected":void 0,"aria-expanded":!!te,"aria-haspopup":"dialog",onClick:M=>z(M.currentTarget)})}),te&&n.jsx(Wn,{title:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:$,anchorRect:te,onClose:q})]});return n.jsxs(la,{type:x,title:p,icon:f,disc:y,action:v?P:void 0,className:Ae("phoneme-select-block",m),children:[k,!S&&n.jsx("div",{className:"phoneme-select-block__controls",children:n.jsx(Bn,{options:K,value:String(a),onChange:R,size:40,ariaLabel:H("wordPairs.countLabel","\uC74C\uC18C \uAC1C\uC218"),className:"phoneme-select-block__count-control"})}),n.jsx("div",{className:"phoneme-select-block__cells",children:B?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((M,F)=>{const I=t[F*2]??{};return n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:D(I)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:j(F+1)})]},F)})}),n.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:H("wordPairs.phonemeSelect.vs","\uB300")}),n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((M,F)=>{const I=t[F*2+1]??{};return n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:D(I)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:O(F+1)})]},F)})})]}):t.map((M,F)=>n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:D(M)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:j(F+1)})]},F))}),(l||u)&&n.jsx("div",{className:"phoneme-select-block__panels",children:n.jsx("div",{className:"phoneme-select-block__detail",children:B?n.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((M,F)=>{const I=t[F*2]??{};return n.jsx(kn,{title:U(j(F+1),F===0),sections:u?u(I,F*2):l,selected:I,onSelect:c?.(F*2),align:"newline"},F)})}),n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((M,F)=>{const I=t[F*2+1]??{};return n.jsx(kn,{title:O(F+1),sections:u?u(I,F*2+1):l,selected:I,onSelect:c?.(F*2+1),align:"newline"},F)})})]}):t.map((M,F)=>n.jsx(kn,{title:U(j(F+1),F===0),sections:u?u(M,F):l,selected:M,onSelect:c?.(F),align:"newline"},F))})}),N&&n.jsx("div",{className:"phoneme-select-block__before-search",children:N}),(C||b||g)&&(()=>{const M=t.every(F=>Object.entries(F).every(([I,Z])=>!Z||I==="\uC885\uC131"&&Z==="\uC5C6\uC74C"));return n.jsxs("div",{className:"phoneme-select-block__search-row",onClick:M?_:void 0,children:[C&&n.jsx(me,{htmlType:"button",size:"56",type:"bar",label:H("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:M,onClick:M?void 0:C}),b?n.jsx(me,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:g?n.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:w??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:M||h||g,onDisabledClick:g?()=>{}:void 0,"aria-busy":g||void 0,onClick:b}):g?n.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[n.jsx("div",{className:"phoneme-select-block__spinner"}),n.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:w??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),A]})}function d7({title:e,sections:t,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,headerAction:d,className:m}){const{t:p}=_e.useTranslation();return n.jsx(kn,{className:m,title:e??p("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,headerAction:d,align:"inline"})}function p7({title:e,headerAction:t,sections:a,selected:r,onSelect:s,className:i}){const{t:l}=_e.useTranslation();return a.length===0?null:n.jsx(kn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:s,align:"newline"})}function m7({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:i,onPositionCountChange:l,inputMode:u,onInputModeChange:c,className:d}){const{t:m}=_e.useTranslation(),p={searchMode:m("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:m("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:m("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:m("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:m("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:m("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:m("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:m("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:m("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:m("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:m("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},f=b=>m("wordPairs.count",{n:b}),y=[{label:p.searchMode,items:[p.include,p.pick,p.explicit],display:"segmented",labelAction:n.jsx(ja,{title:m("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[m("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),m("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),m("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:p.phonemeOrder,items:[p.orderAny,p.orderMatch],display:"segmented",labelAction:n.jsx(ja,{items:m("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:p.count,items:[f(1),f(2)],display:"segmented"},{label:p.inputMode,items:[p.charInput,p.pronInput],display:"segmented",labelAction:n.jsx(ja,{title:m("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[m("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),m("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],v={[p.searchMode]:t==="explicit"?p.explicit:t==="pick"?p.pick:p.include,[p.phonemeOrder]:r==="ordered"?p.orderMatch:p.orderAny,[p.count]:f(i),[p.inputMode]:u==="phoneme"?p.pronInput:p.charInput},C=(b,_)=>{_===p.searchMode?a(b===p.explicit?"explicit":b===p.pick?"pick":"include"):_===p.phonemeOrder?s(b===p.orderMatch?"ordered":"unordered"):_===p.count?l(b===f(2)?2:1):_===p.inputMode&&c(b===p.pronInput?"phoneme":"word")};return n.jsx(kn,{className:d,title:e??m("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:y,selected:v,onSelect:C,align:"inline"})}function h7(e){const{title:t,items:a,columns:r,gridTemplateColumns:s,mobileGridTemplateColumns:i,searchPlaceholder:l,searchFn:u,defaultSortKey:c,defaultSortAsc:d=!0,selectedId:m,selectedIds:p,onSelect:f,onClose:y,pageSizeOptions:v=[10,25,50,100],initialPageSize:C,emptyText:b,noMatchText:_,countLabel:h,topContent:w,className:g=""}=e,{t:B}=_e.useTranslation(),x=l??B("common.search","\uAC80\uC0C9"),N=b??B("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),k=_??B("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"),[A,S]=o.useState(""),[E,H]=o.useState(c??r[0]?.key??""),[$,K]=o.useState(d),[L,j]=o.useState(String(C??v[0]??10)),[O,U]=o.useState(1);o.useEffect(()=>{U(1)},[A,L]);const te=u!==null,z=o.useCallback((J,Y)=>{if(!Y)return!0;const ne=Y.toLowerCase();return r.some(ie=>{const ue=J[ie.key];return ue==null?!1:String(ue).toLowerCase().includes(ne)})},[r]),q=u??z,R=o.useMemo(()=>{const J=te?a.filter(Y=>q(Y,A)):a;return E?[...J].sort((Y,ne)=>{const ie=Y[E],ue=ne[E];return ie===ue?0:ro(ie,ue,$)}):J},[a,A,E,$,te,q]),W=Math.max(1,Math.ceil(R.length/Number(L)));O>W&&U(W);const D=Math.min(O,W),P=R.slice((D-1)*Number(L),D*Number(L)),M=o.useCallback(J=>{E===J?K(Y=>!Y):(H(J),K(!0)),U(1)},[E]),F=o.useMemo(()=>{if(typeof h=="function"){const J=R.length,Y=h(J);if(typeof Y=="string"){const ne=Y.lastIndexOf(String(J));if(ne>=0)return{prefix:Y.slice(0,ne),suffix:Y.slice(ne+String(J).length)}}return{label:Y}}if(typeof h=="string"&&h.includes("{n}")){const[J,Y]=h.split("{n}");return{prefix:J,suffix:Y}}return{prefix:B("common.totalCountPrefix","\uCD1D "),suffix:B("common.totalCountSuffix","\uAC1C")}},[h,R.length,B]),I=o.useMemo(()=>r.map(J=>({label:J.label,onClick:J.sortable!==!1?()=>M(J.key):void 0,className:J.className,sortDir:J.sortable!==!1&&E===J.key?$?"asc":"desc":null})),[r,E,$,M]),Z=o.useMemo(()=>v.map(J=>({value:String(J),label:B("common.pageSizeLabel",{n:J})})),[v,B]);return n.jsxs($n,{className:`popup-list ${g}`,title:t,onClose:y,children:[w,"label"in F&&n.jsx("p",{className:"toolbar__count body-1",children:F.label}),n.jsx(go,{count:"label"in F?void 0:{value:R.length,prefix:F.prefix,suffix:F.suffix},search:te?{value:A,onChange:S,placeholder:x}:void 0,pageSize:{options:Z,value:L,onChange:j},pagination:{page:D,total:W,onChange:U}}),n.jsx(ko,{size:"medium",gridTemplateColumns:s,mobileGridTemplateColumns:i,resizable:!0,fields:I,items:P,onRowClick:f,renderRow:J=>{const Y=p!=null?J.id!=null&&p.has(J.id):m!=null&&J.id===m;return r.map(ne=>({content:ne.render?ne.render(J):J[ne.key]??"",className:Ae(ne.className,Y&&"popup-list__row--selected")}))},empty:te&&A!==""&&a.length>0?k:N})]})}function Sc(e){const{title:t,message:a,topContent:r,details:s,children:i,confirmLabel:l,cancelLabel:u,hideCancel:c=!1,extraAction:d,confirmVariant:m="main",confirmDisabled:p=!1,onConfirm:f,closeOnConfirm:y=!0,onClose:v,inline:C,size:b="small",className:_,initialFocus:h="close"}=e,{t:w}=_e.useTranslation(),g=o.useRef(null);o.useEffect(()=>{if(C||h==="close")return;const S=g.current?.closest(".popup-panel"),E=Array.from(S?.querySelectorAll(".popup-footer--buttons button")??[]),H=h==="confirm"?E[E.length-1]:c?void 0:E[d?1:0];H&&!H.disabled&&H.focus()},[]);const B=o.useRef(!1),[x,N]=o.useState(!1),k=S=>{let E=!1;return{close:()=>{E=!0,S()},\uB2EB\uC558\uB098:()=>E}},A=async S=>{if(B.current)return;B.current=!0;const E=typeof document<"u"?document.activeElement:null;N(!0);let H=!1;try{H=await S()}catch($){typeof console<"u"&&console.error($)}finally{H||(B.current=!1,N(!1),requestAnimationFrame(()=>{const $=document.activeElement;(!$||$===document.body)&&E?.isConnected&&E.focus()}))}};return n.jsxs($n,{title:t,onClose:v,closeDisabled:x,inline:C,size:b,className:Ae("confirm-popup",r!=null&&"confirm-popup--has-top",_),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||x,onClick:async({closeWithAnimation:S})=>{await A(async()=>{const E=k(S);await d.onClick(E.close);const H=d.closeOnClick??!0;return H&&S(),H||E.\uB2EB\uC558\uB098()})}}]:[],...c?[]:[{label:u??w("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:x,onClick:({closeWithAnimation:S})=>S()}],{label:l??w("common.confirm","\uD655\uC778"),variant:m,disabled:p||x,onClick:async({closeWithAnimation:S})=>{await A(async()=>{const E=k(S);return await f(E.close),y&&S(),y||E.\uB2EB\uC558\uB098()})}}],children:[r!=null&&n.jsx("div",{className:"confirm-popup__top",children:r}),s&&s.length>0&&n.jsx(Cr,{children:s.map((S,E)=>n.jsx(Rn,{label:S.label,children:n.jsx("span",{className:"panel-row__text body-2",children:S.value})},E))}),n.jsx("p",{ref:g,className:"body-2 confirm-popup__message",children:a}),i]})}function C7(e,t,a={}){const{t:r}=_e.useTranslation(),[s,i]=o.useState(!1),l=o.useRef(!1),u=o.useCallback(()=>{l.current=!0},[]),c=o.useCallback(()=>l.current?(l.current=!1,!0):e?(i(!0),!1):!0,[e]),d=s?n.jsx(Sc,{title:a.title??r("common.discardConfirm.title","\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?"),message:a.message??r("common.discardConfirm.body","\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4."),confirmLabel:a.confirmLabel??r("common.discardConfirm.confirm","\uC785\uB825 \uCDE8\uC18C"),confirmVariant:"danger",onConfirm:()=>{i(!1),t()},onClose:()=>i(!1)}):null;return{beforeClose:c,discardPopup:d,allowClose:u}}function f7({onApply:e,onCancel:t}){const{t:a}=_e.useTranslation(),[r,s]=o.useState(""),[i,l]=o.useState(!1),[u,c]=o.useState(null),d=o.useRef(null);o.useEffect(()=>{d.current?.focus()},[]);const m=o.useCallback(async y=>{const v=r.trim();if(v){l(!0),c(null);try{await e(v),y()}catch(C){c(li(C)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),p=o.useCallback((y,v)=>{y.key==="Enter"&&!y.nativeEvent.isComposing&&m(v)},[m]),f=y=>{s(y.target.value),c(null)};return n.jsx($n,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:t,closeDisabled:i,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:y})=>y()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:y})=>{m(y)}}],children:({closeWithAnimation:y})=>n.jsxs(n.Fragment,{children:[n.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:f,onKeyDown:v=>p(v,y),disabled:i,autoComplete:"off",spellCheck:!1}),u&&n.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:u})]})})}const jc=["var(--color-main)","var(--color-sub)"],g7=2e3;function b7(e,t){if(!t.startsWith("var("))return t;try{const a=t.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(a).trim()||null}catch{return null}}function as({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:s,trigger:i=0}){const l=o.useMemo(()=>{const C=Math.floor(t/2),b=t-C,_=(h,w)=>Array.from({length:h}).map((g,B)=>{const x=6+Math.random()*12,N=Math.round(Math.min(18,x*Math.min(1.5,1+r*.4))),k=jc[Math.floor(Math.random()*jc.length)],A=Math.random()*300,S=(360+Math.random()*260)*r*1.2,E=(w==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,H=Math.cos(E)*S,$=Math.sin(E)*S*1.35,K=Math.random()*720-360,L=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),j=Math.random()>.7?"50%":"3px";return{id:`${w}-${B}`,side:w,size:N,color:k,delay:A,vx:H,vy:$,angularVel:K,life:L,borderRadius:j}});return[..._(C,"left"),..._(b,"right")]},[t,r]),u=o.useRef(null),c=o.useRef({}),d=o.useRef(null),m=o.useRef(s);o.useEffect(()=>{m.current=s},[s]);const p=o.useRef(null),f=o.useRef(null),y=()=>{if(typeof document>"u")return null;let C=document.querySelector("[data-ihab-effect-root]");return C||(C=document.createElement("div"),C.className="app-effect",C.dataset.ihabEffectRoot="",C.style.position="fixed",C.style.inset="0",C.style.pointerEvents="none",C.style.zIndex="99998",document.body.appendChild(C)),C};if(typeof document<"u"&&f.current==null&&(f.current=y()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const q=setTimeout(()=>m.current?.(),0);return()=>clearTimeout(q)}const C=1200,b=performance.now(),_=f.current&&f.current!==document.body?f.current.getBoundingClientRect():null,h=Math.max(60,(window.innerHeight||800)*.05),w=q=>Math.max(40,(q||window.innerWidth)*.02),g=_?.width||window.innerWidth||375,B=_?.height||window.innerHeight||812,x=q=>{const R=[...q].sort((W,D)=>W-D);return R[Math.floor(R.length/2)]||1},N=x(l.map(q=>Math.abs(q.vy))),k=x(l.map(q=>Math.abs(q.vx))),A=Math.sqrt(2*C*(B*.72+h))/N,S=N*A/C,E=g*.5/(k*S),H=(q,R,W)=>Math.min(W,Math.max(R,q)),$=H(A,.8,2.4),K=H(E,.7,2.2),L=a>0?a/g7:1,j=l.map(q=>({...q,life:q.life*L,vx:q.vx*K,vy:q.vy*$,startTime:b+q.delay,ended:!1})),O=_?{x:_.left-w(_.width),y:_.top+_.height+h}:{x:-w(window.innerWidth),y:window.innerHeight+h},U=_?{x:_.left+_.width+w(_.width),y:_.top+_.height+h}:{x:window.innerWidth+w(window.innerWidth),y:window.innerHeight+h},te=q=>{let R=!1;for(const W of j){const D=c.current[W.id];if(!D||!D)continue;if(q<W.startTime){D.style.display="none",R=!0;continue}if(!W._inited){const ue=W.side==="left"?O.x:U.x,Se=W.side==="left"?O.y:U.y;D.style.left=`${ue}px`,D.style.top=`${Se}px`,D.style.transform="translate3d(0px, 0px, 0)",D.style.display="block",D.style.zIndex="100000",typeof W.color=="string"&&W.color.startsWith("var(")&&(D.style.background=b7(D,W.color)??"#FF0060"),W._inited=!0}const P=(q-W.startTime)/1e3;if(P<0)continue;const M=W.life/1e3;if(P>=M){D.style.opacity="0",D.style.display="none",W.ended=!0;continue}R=!0;const F=W.side==="left"?O.x:U.x,I=W.side==="left"?O.y:U.y,Z=F+W.vx*P,J=I+W.vy*P+.5*C*P*P,Y=(W.angularVel||0)*P,ne=Z-F,ie=J-I;D.style.transform=`translate3d(${ne}px, ${ie}px, 0) rotate(${Y}deg)`,D.style.opacity=`${Math.max(0,1-P/M)}`}R?d.current=requestAnimationFrame(te):m.current?.()};d.current=requestAnimationFrame(te);const z=setTimeout(()=>{try{if((f.current?f.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const q=document.createElement("div");q.className="party-container",q.style.position="fixed",q.style.inset="0",q.style.pointerEvents="none",q.style.overflow="visible",q.style.zIndex="2147483647";for(const R of l){const W=document.createElement("span");W.className=`confetti confetti--${R.side}`,W.setAttribute("aria-hidden","true"),W.style.display="none",W.style.position="fixed",W.style.left="0px",W.style.top="0px",W.style.width=`${R.size}px`,W.style.height=`${Math.max(4,R.size*.6)}px`,W.style.background=R.color,W.style.borderRadius=R.borderRadius,W.style.transform="translate3d(0,0,0)",W.style.opacity="0",q.appendChild(W),c.current[R.id]=W}(document.body||f.current).appendChild(q),p.current=q}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(z),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,a,i,l]),!e)return null;const v=n.jsx("div",{className:"party-container",ref:u,children:l.map(C=>n.jsx("span",{"aria-hidden":!0,ref:b=>{c.current[C.id]=b},className:`confetti confetti--${C.side}`,style:{width:`${C.size}px`,height:`${Math.max(4,C.size*.6)}px`,background:C.color,borderRadius:C.borderRadius}},`${C.id}-${i}`))});return typeof document<"u"?en.createPortal(v,f.current||document.body):v}const rs=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function y7({trigger:e=0,active:t=!1}){const[a,r]=o.useState(null);o.useEffect(()=>{if(typeof window>"u")return;const i=l=>{const u=l.detail??{};r(c=>({n:(c?.n??0)+1,count:rs(u.count),strength:rs(u.strength),duration:rs(u.duration)}))};return window.addEventListener("party:trigger",i),()=>window.removeEventListener("party:trigger",i)},[]);const s=o.useCallback(()=>r(null),[]);return n.jsxs(n.Fragment,{children:[n.jsx(as,{active:t,trigger:e}),a&&n.jsx(as,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function v7({title:e,sub:t,rightAction:a,titleAction:r,badge:s,badgeVariant:i="default",documentTitle:l,onBack:u,backLabel:c,wrap:d=!1}){const{t:m}=_e.useTranslation();ob(typeof e=="string"?e:l??null);const p=c??m("common.back","\uB4A4\uB85C");return n.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[n.jsxs("div",{className:"page-title__main",children:[n.jsxs("div",{className:"page-title__title-row",children:[u&&n.jsx(me,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:p,showTooltipInfo:p,onClick:u}),n.jsx("h1",{className:"page-title__title h1",children:e}),s&&n.jsx("div",{className:"page-title__badge",children:n.jsx(wt,{label:s,size:"small",variant:i,fill:"outline"})}),r?n.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&n.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?n.jsx("div",{className:"page-title__action",children:a}):null]})}function x7(e){return e??""}const Tc=o.createContext({words:[],loading:!1});function _7(){return o.useContext(Tc)}function w7({words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:c,children:d}){return n.jsx(Tc.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:c},children:d})}function B7({items:e,actions:t,columns:a,flat:r=!1,className:s,style:i}){const l=a??e.length;return n.jsx("section",{className:Ae("summary-strip",r&&"summary-strip--flat",s),style:{"--summary-strip-cols":String(l),...i},children:n.jsxs("div",{className:"summary-strip__row",children:[n.jsx("div",{className:"summary-strip__items",children:e.map((u,c)=>n.jsxs("div",{className:"summary-strip__item",children:[n.jsx("p",{className:"summary-strip__label caption-1",children:u.label}),n.jsx("p",{className:"summary-strip__value body-3b",title:typeof u.value=="string"||typeof u.value=="number"?String(u.value):void 0,children:u.value})]},c))}),t&&n.jsx("div",{className:"summary-strip__actions",children:t})]})})}const A7=(e,t)=>`${e} / ${t}`;function k7({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:s=A7,pageWidth:i,pageHeight:l,margin:u,className:c,style:d}){const{t:m}=_e.useTranslation(),p=o.useRef(null),f=o.useRef(null),y=o.useRef(null),v=o.useRef(null),[C,b]=o.useState(null),[_,h]=o.useState(!1);o.useEffect(()=>{const L=p.current;if(!L)return;const j=()=>h(L.scrollWidth>L.clientWidth+1);if(j(),typeof ResizeObserver>"u")return;const O=new ResizeObserver(j);return O.observe(L),()=>O.disconnect()},[C]);const w=e.map(L=>`${L.id}\0${L.section??""}\0${L.group??""}`).join(""),g=C&&C.shape===w?C.pages:null,[B,x]=o.useState(0);o.useEffect(()=>{const L=v.current;if(!L||typeof ResizeObserver>"u")return;const j=new ResizeObserver(()=>x(L.offsetHeight));return j.observe(L),()=>j.disconnect()},[]);const[N,k]=o.useState(0);o.useEffect(()=>{const L=f.current;if(!L||typeof ResizeObserver>"u")return;let j=null;const O=typeof requestAnimationFrame=="function"?z=>requestAnimationFrame(z):z=>setTimeout(z,16),U=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:z=>clearTimeout(z),te=new ResizeObserver(()=>{j==null&&(j=O(()=>{j=null,k(z=>z+1)}))});return Array.from(L.children).forEach(z=>te.observe(z)),()=>{te.disconnect(),j!=null&&U(j)}},[w]),o.useLayoutEffect(()=>{const L=f.current,j=v.current;if(!L||!j)return;const O=M=>M.getBoundingClientRect().height||M.offsetHeight,U=new Map;y.current?.querySelectorAll("[data-chrome-section]").forEach(M=>{U.set(M.dataset.chromeSection??"",O(M))});const te=M=>O(j)-(U.get(M??"")??0),z=Array.from(L.children).map(M=>O(M)),q=[];e.forEach((M,F)=>{const I=q[q.length-1],Z=I?e[I[0]]:void 0;Z&&M.group!=null&&Z.group===M.group&&Z.section===M.section?I.push(F):q.push([F])});const R=[];let W=[],D=0;const P=()=>{W.length&&R.push(W),W=[],D=0};q.forEach(M=>{const F=M.reduce((Z,J)=>Z+z[J],0),I=te(e[M[0]].section);W.length&&e[W[0]].section!==e[M[0]].section&&P(),F>I?M.forEach(Z=>{W.length&&D+z[Z]>I+.01&&P(),W.push(Z),D+=z[Z]}):(W.length&&D+F>I+.01&&P(),M.forEach(Z=>W.push(Z)),D+=F)}),P(),b(M=>M&&M.shape===w&&JSON.stringify(M.pages)===JSON.stringify(R)?M:{shape:w,pages:R})},[w,B,i,l,u,N]);const A=po,S=A,E=r??n.jsxs(n.Fragment,{children:[n.jsx("img",{src:S,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),H=(L,j,O)=>({header:n.jsxs("div",{className:"report-doc__header",children:[n.jsx("h2",{className:"report-doc__title h3b",children:O!=null&&t?.[O]||null}),a]}),footer:n.jsxs("div",{className:"report-doc__footer caption-1",children:[n.jsx("span",{className:"report-doc__footer-left",children:E}),n.jsx("span",{className:"report-doc__page-no",children:s(L,j)})]})}),$=Array.from(new Set(e.map(L=>L.section??""))),K={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...u?{"--report-margin":u}:null,...d};return n.jsxs("div",{ref:p,className:Ae("report-doc",c),style:K,tabIndex:_?0:void 0,role:_?"group":void 0,"aria-label":_?m("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[n.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[n.jsx("div",{ref:v,className:"report-doc__ruler"}),n.jsx("div",{ref:y,children:$.map(L=>{const j=H(1,1,L||void 0);return n.jsxs("div",{"data-chrome-section":L,children:[j.header,j.footer]},L)})}),n.jsx("div",{ref:f,className:"report-doc__measure-blocks",children:e.map(L=>n.jsx("div",{children:L.content},L.id))})]}),g&&n.jsx("div",{className:"report-doc__pages",children:g.map((L,j)=>{const{header:O,footer:U}=H(j+1,g.length,e[L[0]].section);return n.jsxs("section",{className:"report-doc__page",children:[O,L.map(te=>n.jsx("div",{children:e[te].content},e[te].id)),U]},j)})})]})}function N7({title:e,fields:t,columns:a=4,className:r,style:s}){return n.jsxs("div",{className:Ae("report-info",r),style:{"--report-info-cols":String(a),...s},children:[e&&n.jsx("p",{className:"report-info__title h5b",children:e}),n.jsx("div",{className:"report-info__grid",children:t.map((i,l)=>n.jsxs("div",{className:"report-info__field body-2",children:[n.jsx("span",{className:"report-info__label body-3",children:i.label}),n.jsx("span",{className:"report-info__value",children:i.value})]},l))})]})}const Yn=new Map;let vr=null;const D7=12;function E7(e){for(let t=e.parentElement;t&&t!==document.body;t=t.parentElement){const a=window.getComputedStyle(t);if(a.transform&&a.transform!=="none"||a.filter&&a.filter!=="none"||a.perspective&&a.perspective!=="none"||/paint|layout|strict|content/.test(a.contain||""))return t}return document}function xr(){const e=new Map;for(const t of Yn.keys()){if(!t.isConnected)continue;const a=E7(t),r=e.get(a)??[];r.push(t),e.set(a,r)}for(const t of e.values()){t.sort((r,s)=>r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let a=0;for(const r of t){a>0?r.style.setProperty("--update-alert-stack-offset",`${a}px`):r.style.removeProperty("--update-alert-stack-offset");const s=r.getBoundingClientRect().height;s>0&&(a+=s+D7)}}}function S7(e){return typeof window>"u"?()=>{}:(Yn.set(e,(Yn.get(e)??0)+1),Yn.get(e)===1&&typeof ResizeObserver<"u"&&(vr??(vr=new ResizeObserver(()=>xr())),vr.observe(e)),xr(),()=>{const t=(Yn.get(e)??1)-1;if(t>0){Yn.set(e,t),xr();return}Yn.delete(e),vr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),xr()})}function j7({title:e,message:t,actionLabel:a,onAction:r,icon:s,onClose:i,className:l=""}){const{t:u}=_e.useTranslation(),c=a??u("common.update","\uC5C5\uB370\uC774\uD2B8"),d=o.useRef(null),m=o.useRef(!1);return o.useLayoutEffect(()=>{const p=d.current,f=p?.parentElement?.closest(".update-alert-stack")??p,y=f?S7(f):null;return()=>{y?.(),m.current&&p&&p.contains(document.activeElement)&&Ya(p)}},[]),n.jsxs("div",{ref:d,className:Ae("update-alert",l),role:"alert",children:[i&&n.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{m.current=!0,i()},"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"}),n.jsxs("div",{className:"update-alert__top",children:[n.jsx("div",{className:"update-alert__icon",children:s??n.jsx(fs,{size:20,strokeWidth:2})}),n.jsxs("div",{className:"update-alert__body",children:[n.jsx("div",{className:"update-alert__title h4",children:e}),n.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&n.jsx(me,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:c})]})}function T7({title:e,titleLevel:t=3,description:a,topActions:r,children:s,footerLeft:i,footerRight:l,ariaLabel:u,onClick:c,draggable:d,onDragStart:m,onDragEnd:p,className:f}){const y=t?`h${t}`:"div",v=i!=null||l!=null,C=s!=null&&s!==!1,b=o.useCallback(_=>{c&&_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),c())},[c]);return n.jsxs("div",{className:Ae("training-card",c?"training-card--clickable":"",f),onClick:c,onKeyDown:c?b:void 0,role:c?"button":void 0,"aria-label":c?u??(typeof e=="string"?e:void 0):void 0,tabIndex:c?0:void 0,draggable:d,onDragStart:m,onDragEnd:p,children:[n.jsxs("div",{className:"training-card__header",children:[n.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?n.jsx(y,{className:"training-card__title h4",children:e}):e,r!=null&&n.jsx("div",{className:"training-card__top-actions",onClick:_=>_.stopPropagation(),children:r})]}),a!=null?typeof a=="string"?n.jsx("p",{className:"training-card__description body-3",children:a}):a:n.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),C&&n.jsx("div",{className:"training-card__body",children:s}),v&&n.jsxs("div",{className:"training-card__footer",children:[i!=null&&n.jsx("div",{className:"training-card__footer-left",children:i}),l!=null&&n.jsx("div",{className:"training-card__meta",children:l})]})]})}function M7({title:e,titleLevel:t=3,count:a,collapsed:r=!1,onToggle:s,sort:i,actions:l,empty:u=!1,emptyContent:c,dragOver:d=!1,onDragOver:m,onDragLeave:p,onDrop:f,children:y,className:v}){const{t:C}=_e.useTranslation(),b=o.useId(),_=t?`h${t}`:"span",h=s!=null,w=Ae("training-card-group",d&&"training-card-group--dragover",r&&"training-card-group--collapsed",h&&"training-card-group--collapsible",v);return n.jsxs("div",{className:w,onDragOver:m,onDragLeave:p,onDrop:f,role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?b:void 0,children:[n.jsxs("header",{className:"training-card-group__header",children:[h&&n.jsx(me,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:r?"chevron-right":"chevron-down",ariaLabel:typeof e=="string"&&e?r?C("common.expandFor",{name:e}):C("common.collapseFor",{name:e}):r?C("common.expand","\uD3BC\uCE58\uAE30"):C("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!r,onClick:s}),typeof e=="string"?n.jsx(_,{id:b,className:"training-card-group__title h5b",children:e}):e,a!==void 0&&n.jsx("span",{className:"training-card-group__count body-3b",children:a}),(i||l!=null)&&n.jsxs("span",{className:"training-card-group__actions",onClick:g=>g.stopPropagation(),children:[i&&n.jsx(dn,{size:40,options:i.options,value:i.value,placeholder:i.placeholder,onChange:i.onChange,ariaLabel:typeof e=="string"&&e?C("common.sortFor",{name:e}):void 0}),l]})]}),!r&&(u?n.jsx("div",{className:"training-card-group__empty body-3",children:c}):n.jsx("div",{className:"training-card-group__grid",children:y}))]})}const L7="speechear:saved_word_tables";function $7(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.name=="string"&&Array.isArray(t.items)}function R7(){try{const e=localStorage.getItem(L7);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter($7):[]}catch{return[]}}function Mc(e){return{label:e.word,subLabel:e.pronunciation,colloquialLabel:e.colloquialPronunciation,homonum:e.homonum,grade:e.grade,syllables:[...e.word].length,pos:e.pos,wordType:e.wordType}}function os(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function P7(e){const t=new Set;return e.map(a=>{let r=a.id;for(let s=2;t.has(r);s++)r=`${a.id}~${s}`;return t.add(r),r===a.id?a:{...a,id:r}})}function F7({title:e,titleIcon:t,disc:a,filterTitle:r,filterCollapsible:s,filterDefaultCollapsed:i,filterCollapsed:l,onFilterCollapsedChange:u,filterHeaderSummary:c,brand:d,code:m,items:p,onSaveComplete:f,onLoad:y,onRemoveItem:v,onReset:C,resetLabel:b,saveButtonLabel:_,secondarySaveButtonLabel:h,onReorder:w,showCellCount:g,onAddItem:B,className:x,renderSavePopup:N,renderWordSearch:k,hideControls:A,saveOnly:S,tableName:E,nameValue:H,onNameChange:$,descriptionValue:K,onDescriptionChange:L,namePlaceholder:j,descriptionPlaceholder:O,existingNames:U,editingName:te,onCancel:z,initialItemsPerPage:q,renderCellAction:R,actionsLeftExtra:W}){const{t:D}=_e.useTranslation(),P=b??D("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),M=p===void 0,F=!!$,[I,Z]=o.useState([]),J=(H??"").trim(),Y=J||(j??"").trim(),ne=(K??"").trim()||(O??"").trim(),ie=(U??[]).map(re=>re.trim().toLowerCase()),ue=[te?.trim().toLowerCase(),...I].filter(re=>!!re),Se=[...ie];for(const re of ue){const ve=Se.indexOf(re);ve!==-1&&Se.splice(ve,1)}const V=J!==""&&Se.includes(J.toLowerCase()),[oe,ge]=o.useState(Array(4).fill(null)),[De,fe]=o.useState(4),[ae,de]=o.useState(null),pe=oe.slice(0,De),he=!!d?.show,[be,Pe]=o.useState(!0),[$e,Ie]=o.useState(!0),Fe=d&&{...d,top:be,bottom:$e},[Oe,dt]=o.useState("landscape"),[lt,ot]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[ct,ke]=o.useState("\uD45C\uC2DC"),[He,Be]=o.useState(!0),[Xe,X]=o.useState(!0),le=o.useRef(null),we=o.useRef([]),[Ne,Ve]=o.useState(q==="all"?Number.POSITIVE_INFINITY:q??8),[et,pt]=o.useState("right"),[ut,ft]=o.useState(!1),[gt,Qe]=o.useState(!1),{toastMessage:Ue,toastType:We,showWarning:Ke,clearToast:rt}=ml("warning"),bt=o.useCallback(()=>de(null),[de]);B&&!M&&!g&&Gt("word-table-block-add-without-cell-count",'[WordTableBlock] \uD45C\uC2DC \uBAA8\uB4DC\uC5D0\uC11C onAddItem \uC740 showCellCount \uC640 \uD568\uAED8 \uC918\uC57C "\uCD94\uAC00\uD558\uAE30" \uCE78\uC774 \uC0DD\uAE34\uB2E4.');const[Ye,ht]=o.useState(()=>Math.max(p?.length??1,1)),Nt=M?De:g?Math.max(Ye,p?.length??1,1):Math.max(p?.length??0,1),{width:Et,height:Me}=ua[Oe],nt=!M&&!g,Lt=p?.length??0,Xt=Math.min(Ne,Math.max(Lt,1)),at=nt?Xt:Nt,Bt=nt?yu(p??[],at):null,At=!!Bt&&Bt.length>1,vt=M?pe.some(re=>re!==null&&re.length>1):(p??[]).some(re=>(re.words??[]).length>1),an=E?.trim()||`${Ci(_a())} ${vt?D("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):D("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,gn=o.useCallback(()=>At?we.current.filter(re=>re!==null):le.current?[le.current]:[],[At]),{print:pn,openNewWindow:mn,downloadHtml:Dn}=Ro({getElements:gn,paperW:Et,paperH:Me,fileName:an,onPopupBlocked:()=>{Ke(D("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),Fn=re=>{fe(re),ge(ve=>ve.length>=re?ve:[...ve,...Array(re-ve.length).fill(null)]),de(null)},bn=re=>{ge(ve=>{const Te=[...ve];return Te[re]=null,Te}),ae===re&&de(null)},zt=re=>{if(ae===null)return;const ve=ae;ge(ze=>{const st=[...ze];return st[ve]=re.length>0?re:null,st});const Te=pe.findIndex((ze,st)=>st>ve&&ze===null);de(Te!==-1?Te:null)},on=M?pe.some(re=>re?.some(ve=>!!ve.colloquialPronunciation)):(p??[]).some(re=>(re.words??[]).some(ve=>!!ve.colloquialLabel)),Vt=o.useMemo(()=>Qn()?M?oe.slice(0,De).flatMap(re=>(re??[]).map(ve=>[ve.word,ve.homonum])):(p??[]).flatMap(re=>(re.words??[]).map(ve=>[ve.label,ve.homonum])):[],[M,oe,De,p]),[Rt,En]=o.useState(!1);o.useEffect(()=>{if(Vt.length===0)return;let re=!1;return Promise.all(Vt.map(([ve,Te])=>ri(ve,Te))).then(ve=>{re||En(ve.some(Boolean))},()=>{}),()=>{re=!0}},[Vt]);const Jt=Vt.length>0&&Rt,Sn=o.useMemo(()=>[...M||g?[{label:D("wordTable.filter.columns","\uCE78 \uC218"),items:l5.map(re=>({value:`${re}\uCE78`,displayLabel:D("wordTable.filter.column",{count:re})})),display:"segmented"}]:[],...nt&&(p?.length??0)>0?[Ru(D,{hasPairs:vt,itemCount:Lt})]:[],...At?[u5(D)]:[]],[D,M,g,nt,p?.length,vt,Lt,At]),In={...M||g?{[D("wordTable.filter.columns","\uCE78 \uC218")]:`${Nt}\uCE78`}:{},...nt&&(p?.length??0)>0?{[D(vt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Xt}\uAC1C`}:{},...At?{[D("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Fu[et]}:{}},hn=(re,ve)=>{ve===D("wordTable.filter.columns","\uCE78 \uC218")?M?Fn(parseInt(re)):ht(parseInt(re)):ve===D(vt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Ve(Pu(parseInt(re),Lt)):ve===D("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&pt(Iu(re))},jt=M?P7(pe.filter(re=>re!==null&&re.length>0).map(re=>({id:os(re),words:re.map(Mc)}))):p??[],Pt=()=>{M&&ge(re=>re.length>De?re.slice(0,De):re)},Wt=(re=!1)=>{if(Qe(re),F&&f){const ve=Y.trim().toLowerCase();ve&&Z(Te=>Te.includes(ve)?Te:[...Te,ve]),f(Y,jt,ne||void 0,re),Pt();return}if(S&&f){f("",jt,void 0,re),Pt();return}if(f){ft(!0);return}Dn()},[sn,Ft]=o.useState(!1),[Qt,se]=o.useState(""),xe=Qt.trim(),je=xe!==""&&ie.includes(xe.toLowerCase()),Je=()=>{se(Y?D("wordTable.save.copyName",{name:Y,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),Ft(!0)},Re=()=>{!xe||je||!f||(f(xe,jt,ne||void 0,!0),Pt(),Ft(!1))},qe=jt.length===0,Ze=qe||F&&(Y===""||V),Q=()=>{if(qe){Ke(D("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(F&&Y===""){Ke(D("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}F&&V&&Ke(D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},ye=n.jsx(ca,{items:jt,orientation:Oe,contentTypes:lt,cutLine:ct,showOutline:He,showDivLine:Xe,count:Nt});return n.jsxs(n.Fragment,{children:[n.jsxs(la,{type:"page",icon:t,title:e,disc:a,className:Ae("word-table-block",x),children:[sn&&n.jsx($n,{size:"small",title:h??D("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>Ft(!1),footer:({closeWithAnimation:re})=>n.jsxs(n.Fragment,{children:[n.jsx(me,{htmlType:"button",size:48,type:"bar",label:D("common.cancel","\uCDE8\uC18C"),onClick:re}),n.jsx(me,{htmlType:"button",size:48,type:"bar",variant:"main",label:D("common.save","\uC800\uC7A5"),disabled:!xe||je,onClick:Re})]}),children:n.jsx(Gn,{label:D("wordTable.save.nameLabel","\uC774\uB984"),value:Qt,onChange:se,placeholder:D("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:Re,error:je?D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),ut&&f&&N?.({defaultName:typeof e=="string"?e:D("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:ye,previewW:Et,previewH:Me,items:jt,existingNames:R7().map(re=>re.name),saveAsNew:gt,onSave:(re,ve)=>{f(re,jt,ve,gt),Pt(),ft(!1)},onCancel:()=>ft(!1)}),(M||B)&&ae!==null&&k?.({cellIndex:ae,onConfirm:M?zt:re=>{if(B){const ve=re[0];if(ve){const Te=new Set((p??[]).map(st=>st.id));let ze=os([ve]);for(let st=2;Te.has(ze);st++)ze=`${os([ve])}~${st}`;B({id:ze,words:[Mc(ve)]})}}de(null)},onClose:bt}),!A&&n.jsx(Mo,{title:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,hasImage:Jt,hasColloquial:on,contentTypes:lt,orientation:Oe,showOutline:He,cutLine:ct,showDivLine:Xe,setters:{setContentTypes:ot,setOrientation:dt,setShowOutline:Be,setCutLine:ke,setShowDivLine:X,setShowTopInfo:Pe,setShowBottomInfo:Ie},showCutLine:(nt?at:Nt)>1,showDivLine2:vt,middleSections:Sn,extraSelected:In,onExtraSelect:hn,showPaperBands:he,showTopInfo:be,showBottomInfo:$e}),At&&Bt?n.jsx("div",{className:"word-table-block__pages",children:Bt.map((re,ve)=>n.jsx(ca,{orientation:Oe,contentTypes:lt,cutLine:ct,showOutline:He,showDivLine:Xe,count:at,items:re,onRemoveItem:v,onReorder:w&&((Te,ze)=>w(Te+ve*at,ze+ve*at)),renderCellAction:R&&((Te,ze)=>R(Te+ve*at,ze)),brand:Fe,code:m,contentRef:Te=>{we.current[ve]=Te},pageNumber:{current:ve+1,total:Bt.length},pageNumberPosition:et},ve))}):n.jsx(ca,{orientation:Oe,contentTypes:lt,cutLine:ct,showOutline:He,showDivLine:Xe,count:Nt,items:M?void 0:p??[],editCells:M?pe:void 0,activeCell:ae,onActivateCell:M||B?de:void 0,onRemoveCell:M?bn:void 0,onRemoveItem:M?void 0:v,onReorder:M?void 0:w,renderCellAction:M?void 0:R,brand:Fe,code:m,showFillerAdd:!!B,contentRef:le}),F&&!A&&n.jsxs(Cr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[n.jsx(Rn,{variant:"custom",label:D("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:n.jsx(Gn,{required:!0,value:H??"",onChange:$,placeholder:j?j+D("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):D("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:D("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:V?D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:re=>{(re.key==="Tab"&&!re.shiftKey||re.key===" ")&&!(H??"").trim()&&(j??"").trim()&&(re.preventDefault(),$?.(j??""))}})}),n.jsx(Rn,{variant:"custom",label:D("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:n.jsx(Gn,{value:K??"",onChange:L,placeholder:O?O+D("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):D("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:D("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:re=>{(re.key==="Tab"&&!re.shiftKey||re.key===" ")&&!(K??"").trim()&&(O??"").trim()&&(re.preventDefault(),L?.(O??""))}})})]})]}),!A&&n.jsxs("div",{className:"word-table-block__actions",children:[n.jsxs("div",{className:"word-table-block__actions-left",children:[!S&&C&&n.jsx(me,{htmlType:"button",size:40,type:"bar",label:P,onClick:C}),!S&&W,!S&&y&&n.jsx(me,{htmlType:"button",size:40,type:"bar",label:D("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:y}),!S&&n.jsx(me,{htmlType:"button",size:40,type:"bar",label:D("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:mn})]}),n.jsxs("div",{className:"word-table-block__actions-right",children:[z&&n.jsx(me,{htmlType:"button",size:"56",type:"bar",label:D("common.cancel","\uCDE8\uC18C"),onClick:z}),!S&&n.jsx(me,{htmlType:"button",size:"56",type:"bar",label:D("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:pn}),h&&n.jsx(me,{htmlType:"button",size:"56",type:"bar",label:h,onClick:()=>F?Je():Wt(!0),disabled:qe,onDisabledClick:()=>{Ke(D("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),n.jsx(me,{htmlType:"button",size:"56",type:"bar",variant:"main",label:_??D("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Wt(!1),disabled:Ze,onDisabledClick:Q})]})]}),n.jsx(sa,{message:Ue,type:We,onClose:rt})]})}function Lc({items:e,className:t}){const a=e.length,r=a<=3?1:2,s=Math.ceil(a/r)||1,i=r*s;return n.jsx("div",{className:Ae("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,u)=>{const c=e[u];return c?n.jsx("div",{className:"word-table-thumb__cell",children:(c.words?.length?c.words:[{label:c.id}]).map((d,m)=>n.jsxs(o.Fragment,{children:[m>0&&n.jsx("span",{className:"word-table-thumb__divider"}),n.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},m))},u):n.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},u)})})}function I7({items:e,name:t,description:a,createdAt:r,code:s,published:i,publishedLabel:l,shared:u,sharedLabel:c,isNew:d,publisherName:m,publishedAt:p,likeCount:f,downloadCount:y,onPublisherClick:v,selected:C,onClick:b,onMore:_,titleNode:h,className:w}){const{t:g}=_e.useTranslation(),B=h!=null,x=m!=null||p!=null||f!=null||y!=null,N=k=>{k.target===k.currentTarget&&!B&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),b?.())};return n.jsxs("div",{className:Ae("word-table-button",C?"word-table-button--selected":"",x?"":"word-table-button--no-footer",w),role:"button",tabIndex:0,"aria-label":s?`${t} (${s})`:t,onClick:B?void 0:b,onKeyDown:N,children:[d&&n.jsx("span",{className:"word-table-button__new-dot","aria-label":g("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),n.jsx(Lc,{items:e,className:"word-table-button__thumb"}),n.jsxs("div",{className:"word-table-button__info",children:[n.jsxs("div",{className:"word-table-button__info-text",children:[h??n.jsx("div",{className:"word-table-button__title h4",children:t}),a&&n.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),_&&!B&&n.jsx(me,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:g("common.moreFor",{name:t}),onClick:k=>{k.stopPropagation(),_(k)}})]}),(s||r||i||u)&&n.jsxs("div",{className:"word-table-button__meta-row",children:[n.jsx("span",{className:"word-table-button__meta-left",children:n.jsx("span",{className:"word-table-button__meta caption-1",children:r?hi(r,g):""})}),n.jsxs("span",{className:"word-table-button__meta-right",children:[(i||u)&&n.jsxs("span",{className:"word-table-button__badges",children:[i&&n.jsx(wt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:l??g("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),u&&n.jsx(wt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??g("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]}),s&&n.jsx("span",{className:"word-table-button__code caption-1",children:s})]})]}),x&&n.jsxs("div",{className:"word-table-button__footer",children:[n.jsxs("span",{className:"word-table-button__store-by",children:[m&&(v?n.jsx("button",{className:"training-card__publisher body-4",type:"button","aria-label":g("wordTable.publisherFilter",{name:m,defaultValue:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30"}),onClick:k=>{k.stopPropagation(),v()},children:m}):n.jsx("span",{className:"training-card__publisher training-card__publisher--static body-4",children:m})),p&&n.jsx("span",{className:"training-card__date body-4",children:hi(p,g)})]}),n.jsxs("span",{className:"word-table-button__store-stats",children:[f!=null&&n.jsx(wt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(f),"aria-label":g("common.likeCount",{count:f,defaultValue:`\uC88B\uC544\uC694 ${f}`})}),y!=null&&n.jsx(wt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(y),"aria-label":g("common.downloadCount",{count:y,defaultValue:`\uAC00\uC838\uAC04 \uC218 ${y}`})})]})]})]})}/**
1048
+ `).map((l,u,c)=>n.jsxs(o.Fragment,{children:[l,u<c.length-1&&n.jsx("br",{})]},u))})}),n.jsxs("div",{className:"site-footer__links",children:[n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:i("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.youtube.com/@%EC%95%84%EC%9D%B4%ED%95%B4%EB%B8%8C-%EA%B3%B5%EC%8B%9D%EC%B1%84%EB%84%90",target:"_blank",rel:"noopener noreferrer",children:"Youtube"})})]})]}),n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"#",onClick:l=>{e&&(l.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"#",onClick:l=>{t&&(l.preventDefault(),t())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),n.jsx("hr",{className:"site-footer__rule"}),n.jsxs("div",{className:"site-footer__bottom",children:[n.jsx("div",{className:"site-footer__brand",children:n.jsx("img",{src:po,alt:"IHAB",className:"site-footer__logo"})}),n.jsxs("div",{className:"site-footer__meta",children:[n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),n.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),n.jsx("span",{className:"footer-meta caption-1",children:i("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),n.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",s]})]})]})]}),n.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function K5({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:s,className:i,containerClassName:l,renderLink:u,menuLabel:c}){const{t:d}=_e.useTranslation(),m=c??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[p,f]=o.useState(!1),y=o.useId(),x=o.useRef(null);o.useEffect(()=>{if(!p)return;const _=Vn(()=>{const b=document.getElementById(y);b&&b.contains(document.activeElement)&&x.current?.focus(),f(!1)}),C=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,w=b=>{b.matches&&f(!1)};return C&&(C.matches&&f(!1),C.addEventListener?.("change",w)),()=>{_(),C?.removeEventListener?.("change",w)}},[p,y]);const h=l?`${l} landing-header__inner`:"landing-header__inner",g=(_,C)=>u?u(_,{onClick:C}):n.jsx("a",{href:_.href,onClick:C,"aria-current":_.current?"page":void 0,children:_.label});return n.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[n.jsxs("div",{className:h,children:[e!=null&&(()=>{const _=typeof e=="string"?n.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?n.jsx("a",{href:a,className:"landing-header__brand",children:_}):n.jsx("div",{className:"landing-header__brand",children:_})})(),r.length>0&&n.jsx("nav",{className:"landing-header__links",children:r.map((_,C)=>n.jsx("span",{children:g(_)},`${C}:${_.href}`))}),n.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&n.jsx("button",{ref:x,type:"button",onClick:()=>f(_=>!_),"aria-expanded":p,"aria-controls":y,"aria-label":p?m.close:m.open,className:p?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:n.jsxs("span",{className:"landing-header__burger",children:[n.jsx("span",{}),n.jsx("span",{}),n.jsx("span",{})]})})]})]}),r.length>0&&n.jsx("nav",{id:y,hidden:!p,className:"landing-header__drawer",children:n.jsx("div",{className:l??void 0,children:r.map((_,C)=>n.jsx("span",{className:"landing-header__drawer-item",children:g(_,()=>f(!1))},`${C}:${_.href}`))})})]})}function Y5({children:e,action:t,onClick:a,className:r}){const s=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return n.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:n.jsxs("div",{className:s,onClick:a,...pu(a),children:[n.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}function Z5({mountedRef:e}){const t=o.useRef({phase:"sound",at:0}),a=o.useRef(0),r=o.useRef(null),s=o.useRef(null),i=o.useCallback(()=>{const h=t.current,g=h.phase!=="sound"&&h.at>0;s.current=g?{phase:h.phase,\uD750\uB978:Math.max(0,Date.now()-h.at)}:null},[]),l=o.useCallback(()=>{const h=s.current;return s.current=null,h},[]),u=o.useCallback(()=>{a.current+=1,t.current={phase:"sound",at:0}},[]),c=o.useCallback((h,g,_=0)=>{if(!(h>0))return Promise.resolve(!0);const C=a.current;return t.current={phase:g,at:Date.now()-Math.max(0,_)},new Promise(w=>{const b=setTimeout(()=>{r.current===b&&(r.current=null),w(!!e.current&&C===a.current)},h);r.current=b})},[e]),d=o.useCallback(()=>{t.current={phase:"sound",at:Date.now()}},[]),m=o.useCallback(()=>{t.current={phase:"sound",at:0}},[]),p=o.useCallback(()=>{const h=t.current;return h.phase!=="sound"&&h.at>0},[]),f=o.useCallback(()=>a.current,[]),y=o.useCallback(h=>h===a.current,[]),x=o.useCallback(()=>{a.current+=1},[]);return o.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null)},[]),o.useMemo(()=>({positionRef:t,isRunning:p,generation:f,isCurrent:y,abort:u,waitPad:c,enterSound:d,leave:m,pause:i,resume:l,__bumpGenerationForTest:x}),[p,f,y,u,c,d,m,i,l,x])}const pa=9,X5=e=>Math.round(Math.min(pa,Math.max(0,e))/pa*100),J5=e=>e/100*pa,Pa=2,Gu=.1,Q5=e=>Math.min(Pa,Math.max(0,e)),e3=.1,t3=e=>Math.round(e*1e6)/1e6;function Fa(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return Q5(t);const a=Math.min(pa,Math.max(0,Number(e.level)||0))/pa,r=Number(e.mainVolume);return r>0?a>0?t3(Math.min(Pa,Math.max(e3,a/r))):0:1}const Ku=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Yu(e){return Ku(e)}function Io(e){return Ku(e)*Fa(e)}function Oo(e,t=uC()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,Io(e)/a)}function Ia(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=Fa({level:a.level,mainVolume:a.mainVolume})),a}const Oa={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Ho=o.createContext(null);function cr(){return o.useContext(Ho)}const zo=e=>`${lC()}/${e}`,Zu=e=>Array.from({length:10},(t,a)=>zo(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),dr={get defaultNoise(){return zo("noise1.mp3")},get street(){return Zu("noise2")},get restaurant(){return Zu("noise3")},get buzz(){return zo("noise4.mp3")}};function n3(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return dr.defaultNoise;case"street":return dr.street[t];case"restaurant":return dr.restaurant[t];case"buzz":return dr.buzz;default:return null}}function a3({noisePlayer:e,audioRef:t,playbackStateRef:a,sequencer:r}){const s=o.useRef(e?.registerAnalyser);s.current=e?.registerAnalyser;const i=o.useRef(null),[l,u]=o.useState(null),c=o.useRef(null),d=o.useRef(null),m=o.useRef(null),p=o.useRef(null),f=o.useRef(0),y=o.useRef(null),x=o.useCallback(()=>!!r?.isRunning(),[r]),h=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),y.current!==null&&(clearTimeout(y.current),y.current=null)},[]),g=o.useCallback((B,v=250)=>{const k=i.current;if(!k)return;const A=d.current;if(A){d.current=null;try{k.pause()}catch{}k.src=A,k.load()}if(!k.src)return;f.current+=1,h();try{Fr(),za(k).then(H=>{if(i.current===k)try{s.current?.("noise",H)}catch{}})}catch{}const N=k.paused?0:Va(k);k.paused&&Mn(k,0),k.play().catch(()=>{});const E=performance.now(),D=()=>{const H=Math.min(1,(performance.now()-E)/v);try{Mn(k,N+(B-N)*H)}catch{}H<1?p.current=requestAnimationFrame(D):p.current=null};p.current=requestAnimationFrame(D)},[h]),_=o.useCallback((B=250,v)=>{const k=i.current;if(!k||k.paused){v?.();return}const A=++f.current;h();const N=performance.now(),E=Va(k),D=()=>{const H=Math.min(1,(performance.now()-N)/B);try{Mn(k,E*(1-H))}catch{}if(H<1)p.current=requestAnimationFrame(D);else{p.current=null,y.current!==null&&(clearTimeout(y.current),y.current=null);try{k.pause()}catch{}v?.()}};p.current=requestAnimationFrame(D),y.current=setTimeout(()=>{if(y.current=null,f.current===A){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{k.paused||(Mn(k,0),k.pause(),v?.())}catch{}}},B+150)},[h]);o.useEffect(()=>{const B=document.createElement("audio");return B.loop=!0,B.crossOrigin="anonymous",i.current=B,()=>{h();try{B.pause(),B.src=""}catch{}i.current=null,c.current=null,d.current=null}},[h]);const C=e?Oo(e.settings):0,w=!!e?.settings.enabled&&C>0;o.useEffect(()=>{if(!w)return;let B=0;const v=setInterval(()=>{const k=i.current;if(!k||k.paused){B=0;return}const A=t.current;if(A&&!A.paused&&!A.ended||x()||a.current==="playing"){B=0;return}B+=1,B>=2&&(B=0,_())},400);return()=>clearInterval(v)},[_,w,t,a,x]),o.useEffect(()=>{const B=()=>{const v=i.current;if(document.hidden){if(v&&!v.paused){h();try{v.pause()}catch{}}return}if(!v||!v.paused)return;const k=t.current,A=!!k&&!k.paused&&!k.ended||x()||a.current==="playing",N=m.current;A&&N?.enabled&&N.volume>0&&g(N.volume)};return document.addEventListener("visibilitychange",B),()=>document.removeEventListener("visibilitychange",B)},[h,g,t,a,x]),o.useEffect(()=>{m.current=e?{enabled:e.settings.enabled,volume:C,type:e.settings.type}:null},[e,e?.settings.enabled,C,e?.settings.type]);const b=o.useRef(null);return o.useEffect(()=>()=>{b.current?.(),b.current=null},[]),o.useEffect(()=>{const B=e?.settings,v=i.current;if(!v)return;const k=B?Oo(B):0;if(!B||!B.enabled||k===0){_();return}if(c.current!==B.type){const A=n3(B.type);A&&(c.current=B.type,u(A),d.current=A,_(150,()=>{if(d.current!==A)return;d.current=null,v.src=A,v.load();const N=t.current;if(N&&!N.paused||x()){b.current?.();const E=()=>{v.removeEventListener("canplay",E),b.current===D&&(b.current=null);const H=t.current,R=m.current;(H&&!H.paused&&!H.ended||x())&&R?.enabled&&R.volume>0&&g(R.volume)},D=()=>v.removeEventListener("canplay",E);b.current=D,v.addEventListener("canplay",E)}}))}else{const A=t.current,N=!!A&&!A.paused&&!A.ended||x()||a.current==="playing";if(N&&d.current)g(k);else if(N&&v.paused&&v.src)g(k);else if(!v.paused)if(!N)_();else{h();const E=Va(v),D=performance.now(),H=()=>{const R=Math.min(1,(performance.now()-D)/150);try{Mn(v,E+(k-E)*R)}catch{}R<1?p.current=requestAnimationFrame(H):p.current=null};p.current=requestAnimationFrame(H)}}},[e?.settings,e?.settings.enabled,C,e?.settings.type,h,g,_,t,a,m,x]),o.useEffect(()=>{const B=i.current;if(B)try{B.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:i,activeNoiseUrl:l,noiseSettingsRef:m,cancelNoiseFade:h,fadeInNoise:g,fadeOutNoise:_}}function r3({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:i,setPlaybackState:l,setStateLocal:u,fadeInNoise:c,fadeOutNoise:d,noiseSettingsRef:m,onDoneRef:p,handleEndRef:f}){const y=o.useRef(null),x=o.useRef(0),h=o.useRef(null),g=o.useRef(0),_=o.useRef(!1);o.useEffect(()=>()=>{g.current++;try{if(h.current&&(cancelAnimationFrame(h.current),h.current=null),_.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}_.current=!1}}catch{}},[]);const C=(B,v=1)=>{try{const k=(B||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(B||"").length);return Math.max(700,Math.round(k*300/Math.max(.25,v)))}catch{return 1200}},w=o.useCallback(B=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof p.current=="function"&&p.current(!1)}catch{}return}const v=window.speechSynthesis,k=++g.current;try{try{v.cancel()}catch{}const A=B??e,N=Array.isArray(A)?A.filter(L=>!!L):[A||""];N.length===0&&N.push("");const E=Math.max(.3,Math.min(3,t));x.current=N.reduce((L,M)=>L+C(M,E||1),0),y.current=performance.now(),i(0),l("playing"),u("playMode");const D=m.current;D?.enabled&&(D?.volume??0)>0&&c(D.volume);const H=()=>{try{const L=y.current||performance.now(),M=performance.now()-L,I=x.current||1200,Y=Math.min(1,M/I);try{r.current&&(r.current.style.left=`${Y*100}%`),s.current&&s.current.style.setProperty("--progress",String(Y))}catch{}Y<1&&(h.current=requestAnimationFrame(H))}catch{}},R=()=>{if(k===g.current)try{h.current&&(cancelAnimationFrame(h.current),h.current=null),i(1),l("stopped");try{f.current?.()}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{}},G=L=>{const M=new SpeechSynthesisUtterance(N[L]);try{M.rate=E}catch{}try{M.volume=Math.max(0,Math.min(1,a))}catch{}M.onend=()=>{if(k===g.current){if(L<N.length-1){try{G(L+1)}catch{R()}return}R()}},M.onerror=()=>{R()},M.onstart=()=>{if(!(L>0))try{h.current&&(cancelAnimationFrame(h.current),h.current=null),h.current=requestAnimationFrame(H)}catch{}},_.current=!0,v.speak(M)};try{G(0)}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}},[e,t,a,c,r,s,i,l,u,m,p,f]),b=o.useCallback(()=>{g.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}h.current&&(cancelAnimationFrame(h.current),h.current=null),d(),y.current=null}catch{}l("stopped"),u("active"),i(0)},[d,l,u,i]);return{startTTS:w,stopTTS:b}}const o3=.01,s3=.3;async function i3(e,t,a,r=!1){let s=null;try{const i=window.AudioContext||window.webkitAudioContext;s=new i;const l=await s.decodeAudioData(e.slice(0)),u=l.numberOfChannels>0?l.getChannelData(0):null;if(!u)return null;let c=0;if(r){const y=Math.floor(s3*l.sampleRate),x=Math.min(u.length,y);for(;c<x&&Math.abs(u[c])<=o3;)c++;c>=x&&(c=0)}const d=u.length-c,m=a&&a>0?Math.min(d,Math.floor(a*l.sampleRate)):d,p=Math.max(t,m),f=Math.floor(p/t)||1;return new Array(t).fill(0).map((y,x)=>{const h=c+x*f,g=Math.min(h+f,c+p,u.length);let _=0;for(let C=h;C<g;C++){const w=Math.abs(u[C]);w>_&&(_=w)}return _})}catch{return null}finally{try{s?.close?.()}catch{}}}async function Xu(e,t,a,r=!1){try{const s=await fetch(e);if(s.ok===!1)return null;const i=await s.arrayBuffer();return await i3(i,t,a,r)}catch(s){try{const i=li(s)}catch{}return null}}const Vo=45,l3=74,u3=2;function pr(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function mr(e){return pr(e)/45}const c3=e=>Math.max(0,(typeof e=="number"&&Number.isFinite(e)?e:0)*1e3),Ju=e=>Math.max(0,typeof e=="number"&&Number.isFinite(e)?e:0);function Qu({durationsSec:e,leadInMs:t=0,tailMs:a=0}){const r=Ju(t),s=Ju(a),i=[];let l=0;return e.forEach((u,c)=>{for(const[d,m]of[["lead",r],["sound",c3(u)],["tail",s]])i.push({kind:d,track:c,startMs:l,durMs:m}),l+=m}),{segments:i,totalMs:l,trackCount:e.length}}function ec(e,t){const a=(t|0)*3;if(t<0||a+2>=e.segments.length)return null;const[r,s,i]=[e.segments[a],e.segments[a+1],e.segments[a+2]];return{lead:r,sound:s,tail:i,totalMs:r.durMs+s.durMs+i.durMs}}function d3(e,t){const a=ec(e,t.track);if(!a||!(a.totalMs>0))return 0;const r=a[t.kind],s=Math.min(Math.max(0,Number.isFinite(t.elapsedMs)?t.elapsedMs:0),r.durMs);return Math.max(0,Math.min(1,(r.startMs-a.lead.startMs+s)/a.totalMs))}function p3(e,t,a){const r=Math.max(0,Math.floor(a)),s=ec(e,t);if(!s||r===0||!(s.totalMs>0)||s.lead.durMs===0&&s.tail.durMs===0||!(s.sound.durMs>0))return{lead:0,sound:r,tail:0};const i=Math.round(s.lead.durMs/s.totalMs*r),l=Math.round(s.tail.durMs/s.totalMs*r),u=Math.max(1,r-i-l),c=i+u+l-r;return{lead:Math.max(0,i-Math.ceil(c/2)),sound:u,tail:Math.max(0,l-Math.floor(c/2))}}function m3({currentTime:e,sources:t,index:a,audioDuration:r}){const s=a||0,i=Array.isArray(t)&&t.length>0?t[s]:void 0,l=i?i.duration||r||0:r||0;if(!(l>0))return 0;const u=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,u/l))}function h3({phase:e,phaseElapsedMs:t,currentTime:a,trackDurationSec:r,leadInMs:s,tailMs:i}){const l=Qu({durationsSec:[r],leadInMs:s,tailMs:i});return d3(l,{track:0,kind:e,elapsedMs:e==="sound"?(Number.isFinite(a)?a:0)*1e3:t})}function C3({bars:e,trackDurationSec:t,leadInMs:a,tailMs:r}){return p3(Qu({durationsSec:[t],leadInMs:a,tailMs:r}),0,e)}function f3(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function g3({ended:e,completedByEnd:t}){return!!e||!!t}function b3(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function y3(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function v3(e,t,a){const r=Array.isArray(e)?e:e?[e]:[],s=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const l=i;s.push({code:l.code??null,src:l.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){s.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const l=String(i),u=a(l,t);u&&s.push({code:l,resolvedPath:u})}}return s}const tc=4,x3=mr(tc/Vo);function _3(e){const{src:t,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:i,noiseRatio:l=0,noiseSpeed:u=1,totalDuration:c=0,mainVolume:d=1,onReadyChange:m,showSoundWaveForm:p=!0,leadInMs:f=0,tailMs:y=0,trackDurationSec:x=0}=e,h=o.useRef(null),g=o.useRef(null),[_,C]=o.useState(null),[w,b]=o.useState(!1),[B,v]=o.useState(null),[k,A]=o.useState(2),[N,E]=o.useState(0),[D,H]=o.useState(null),[R,G]=o.useState(!1),[L,M]=o.useState(!1),I=3,Y=3,Z=1,z=300,W=o.useRef(0),$=o.useCallback(()=>{const ge=h.current,ae=g&&g.current?g.current:ge?ge.closest(".audio-player__wave"):null,de=ae?ae.getBoundingClientRect():ge?ge.getBoundingClientRect():null,pe=de?de.width:0,he=de?Math.max(100,de.width):320,be=de?de.height:0,Pe=Math.max(Z,Math.min(z,Math.floor((he+Y)/(I+Y)))),$e=Pe*I,Ie=Math.max(0,Pe-1),Fe=Math.max(0,Ie>0?(he-$e)/Ie:Y);return{bars:Pe,gap:Fe,height:be,width:pe}},[]),U=o.useRef(void 0),S=o.useRef(null),P=o.useCallback(async(ge,ae,{quiet:de=!1}={})=>{const pe=++W.current,he=()=>W.current===pe;try{if(de||b(!1),U.current=ge,!ge){he()&&C(null);return}let be=ae;if(!be)try{for(let Ie=0;Ie<4&&!(h.current||g.current);Ie++)await new Promise(Fe=>requestAnimationFrame(Fe));await new Promise(Ie=>requestAnimationFrame(Ie));const $e=$();$e.height>0&&E($e.height),be=$e.bars,A($e.gap)}catch{be=120}S.current=be;const Pe=await Xu(ge,be);if(!he())return;if(!Pe){C(null),b(!1);return}C(Pe),v(be),b(!0)}catch{if(!he())return;C(null),b(!1)}},[b,C,E,A,v,$]);o.useEffect(()=>{const ge=g.current;if(!ge||typeof ResizeObserver>"u")return;let ae=null;const de=new ResizeObserver(()=>{ae!==null&&cancelAnimationFrame(ae),ae=requestAnimationFrame(()=>{ae=null;try{const pe=$();if(pe.width<=0||(pe.height>0&&E(pe.height),S.current===null||pe.bars===S.current))return;const he=U.current;A(pe.gap),he?P(he,pe.bars,{quiet:!0}).catch(()=>{}):S.current=pe.bars}catch{}})});return de.observe(ge),()=>{de.disconnect(),ae!==null&&cancelAnimationFrame(ae)}},[$,P]),o.useEffect(()=>{const ge=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;P(typeof ge=="string"?ge:void 0).catch(()=>{}),M(!1)},[t,a,P]),o.useEffect(()=>{let ge=!1;if(G(!1),!i||!B){H(null);return}const ae=c>0?c*(u||1):void 0;return Xu(i,B,ae,!0).then(de=>{ge||(H(de),de||G(!0))}).catch(()=>{ge||(H(null),G(!0))}),()=>{ge=!0}},[i,B,c,u]);const j=Math.max(0,Math.min(1,d)),F=o.useMemo(()=>_&&_.length&&Math.max(..._)||1,[_]),O=B||40,q=o.useMemo(()=>C3({bars:O,trackDurationSec:x,leadInMs:f,tailMs:y}),[O,x,f,y]),Q=o.useMemo(()=>Array.from({length:O}).map((ge,ae)=>{const de=ae>=q.lead&&ae<q.lead+q.sound,pe=q.sound>0&&de?Math.min(O-1,Math.round((ae-q.lead)/q.sound*O)):-1,he=de?_&&_[pe]!=null?_[pe]:null:_?0:null,be=he==null?null:Math.min(1,he/F*j),Pe=be!=null&&N>0&&pr(be)<=tc,$e=be==null?.15:Pe?0:mr(be),Ie=Pe,Fe=O>1?ae/(O-1):0;return n.jsx("div",{className:Ie?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":$e,"--i":ae,"--mix":Fe}},ae)}),[O,_,F,j,N,q]),oe={"--progress":String(Math.max(0,Math.min(1,r)))},se=o.useMemo(()=>D&&D.length&&Math.max(...D.map(ge=>Number.isFinite(ge)?Math.abs(ge):0))||1,[D]),te=j*Math.max(0,l),le=!i||!D||!D.length?1:Math.max(1,te),De={"--bar-gap":`${k}px`,"--wave-h":`${pr(le)}px`,"--wave-h1":`${Vo}px`},V=w&&(i?!!D||R:!0);o.useEffect(()=>{V&&M(!0)},[V]);const ne=L?w:V;o.useEffect(()=>{m?.(ne)},[ne,m]);const fe=B||40,Ee=o.useMemo(()=>Array.from({length:fe}).map((ge,ae)=>{const de=D&&D[ae]!=null?D[ae]:null,pe=de==null?0:Math.abs(de)/se*te,he=Math.max(x3,mr(pe)),be=fe>1?ae/(fe-1):0;return n.jsx("div",{className:"audio-player__bar",style:{"--val":he,"--i":ae,"--mix":be}},ae)}),[fe,D,se,te,N]);return n.jsxs("div",{className:"audio-player__wave",ref:g,style:De,children:[i&&n.jsx("div",{className:`audio-player__wave-noise ${V?"is-ready":""}`,"aria-hidden":"true",children:Ee}),p&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${ne?"is-ready":""}`,ref:h,children:Q}),n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${ne?"is-ready":""}`,ref:s,style:oe,children:Q})]})]})}const w3={idle:"\uB300\uAE30",synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"},nc={idle:!1,synthesizing:!0,resolving:!0,checking_exists:!0,getting_signed_url:!0,downloading:!0,measuring_duration:!0,ready:!1,error:!0};function Wo(e,t){return new Promise((a,r)=>{const s=document.createElement("audio");let i=!1;const l=()=>{try{s.src=""}catch{}},u=()=>{if(i)return;i=!0;const d=isFinite(s.duration)&&s.duration||0;l(),a(d)},c=d=>{i||(i=!0,l(),t.rejectOnError?r(new Error(d)):a(0))};s.addEventListener("loadedmetadata",u),s.addEventListener("error",()=>c("audio load failed")),setTimeout(()=>c("audio load timeout"),t.timeoutMs),s.src=e})}const B3=2e3;function ac(e,t=B3){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.addEventListener("canplay",s,{once:!0}),e.addEventListener("error",s,{once:!0}),setTimeout(s,t)})}function A3({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=o.useRef(!1),s=o.useRef([]),i=o.useCallback(c=>{if(r.current=c,!c||!s.current.length)return;const d=s.current;s.current=[];for(const m of d)m(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),u=o.useCallback(()=>!e&&!t||r.current?Promise.resolve(!0):new Promise(c=>{const d=p=>{clearTimeout(m),s.current=s.current.filter(f=>f!==d),c(p)},m=setTimeout(()=>d(!0),a);s.current.push(d)}),[e,t,a]);return o.useEffect(()=>()=>{const c=s.current;s.current=[];for(const d of c)d(!1)},[]),{onReadyChange:i,waitForReady:u,markNotReady:l}}function k3(){const e=o.useRef([]),t=o.useCallback(s=>(e.current.push(s),s),[]),a=o.useCallback(s=>{const i=new Set([...s].filter(Boolean));e.current=e.current.filter(l=>{if(i.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=o.useCallback(()=>{a([])},[a]);return o.useEffect(()=>()=>{for(const s of e.current)try{URL.revokeObjectURL(s)}catch{}e.current=[]},[]),{track:t,keepOnly:a,revokeAll:r}}function N3({offsetY:e=8}={}){const t=o.useRef(null),[a,r]=o.useState(null),s=o.useCallback(()=>r(null),[]),i=o.useCallback(()=>{try{const l=t.current?.getBoundingClientRect();if(!l)return;r({left:l.left,right:l.right,width:l.width,height:l.height,x:l.x,top:l.top+e,bottom:l.bottom+e,y:l.y+e,toJSON:l.toJSON.bind(l)})}catch{}},[e]);return o.useEffect(()=>{if(a)return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[a,s]),{ref:t,rect:a,show:i,hide:s}}function D3(e){if(!e)return 0;const t=e.duration;if(Number.isFinite(t)&&t>0)return t;if(t===0)return 0;try{const a=e.seekable;if(a&&a.length>0){const r=a.end(a.length-1);if(Number.isFinite(r)&&r>0)return r}}catch{}return null}const E3=400,S3=2e3,rc=5;function j3({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:s,sequencer:i,leadInMs:l=0,tailMs:u=0}){const c=o.useRef(null),d=o.useRef(0),m=o.useRef(null),p=o.useCallback(()=>{c.current!==null&&(cancelAnimationFrame(c.current),c.current=null)},[]),f=o.useCallback(()=>{if(c.current!==null)return;let x=0;const h=()=>{if(Zn){const g=typeof performance<"u"&&performance.now?performance.now():Date.now();if(x>0&&g-x>E3){const _=m.current===null||g-m.current>S3;if(m.current=g,_&&d.current<rc){d.current+=1;const C=d.current;let w=null;try{w=typeof document<"u"?document.visibilityState:null}catch{}Gt(`progress-ticker-slow-frames#${C}`,`[ihab-core] \uC9C4\uD589 \uC0AC\uC2AC\uC758 \uD2C0 \uC0AC\uC774\uAC00 ${Math.round(g-x)}ms \uC785\uB2C8\uB2E4(\uBCF4\uD1B5 16ms).`,w==="hidden"?"\uC774 \uCE78\uC774 **\uC228\uC5B4 \uC788\uC5B4** \uBE0C\uB77C\uC6B0\uC800\uAC00 \uD2C0\uC744 \uC904\uC600\uC2B5\uB2C8\uB2E4 \u2014 \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC740 \uD2C0\uB9C8\uB2E4 \uADF8\uB824\uC9C0\uBBC0\uB85C, \uC9C0\uAE08 \uC7AC\uB294 \uAC12\uC740 **\uC0AC\uB78C\uC774 \uBCF4\uB294 \uD654\uBA74\uACFC \uB2E4\uB985\uB2C8\uB2E4.** \uCE78\uC744 \uC55E\uC73C\uB85C \uAEBC\uB0B4\uACE0 \uB2E4\uC2DC \uC7AC\uC2ED\uC2DC\uC624.":"\uCE78\uC740 \uBCF4\uC774\uB294\uB370 \uD2C0\uC774 \uB290\uB9BD\uB2C8\uB2E4 \u2014 \uAC19\uC740 \uD654\uBA74\uC5D0\uC11C \uBB34\uAC70\uC6B4 \uC77C\uC774 \uB3C4\uB294\uC9C0 \uBCF4\uC2ED\uC2DC\uC624. \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC774 \uB04A\uACA8 \uBCF4\uC774\uB294 \uAC83\uC740 \uC774 \uD0D3\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.",C>=rc?`(${C}\uBC88\uC9F8 \u2014 \uB354\uB294 \uC548 \uC54C\uB9BD\uB2C8\uB2E4)`:`(${C}\uBC88\uC9F8)`)}}x=g}try{const g=e.current,_=Array.isArray(r.current)?r.current[s.current||0]:void 0,C=!!_&&Number.isFinite(_.duration)&&(_.duration??0)>0,w=C?0:D3(g),b=t.current,B=(l||0)>0||(u||0)>0,v=B&&(i?.positionRef.current?.phase??"sound")!=="sound";if(w===null&&!v)try{b&&b.style.visibility!=="hidden"&&(b.style.visibility="hidden")}catch{}else{const k=C?_.duration:w||0;Zn&&v&&!(k>0)&&Gt("progress-ticker-pad-without-duration","[ihab-core] \uB738\uC774 \uB3C4\uB294\uB370 **\uC18C\uB9AC \uAE38\uC774\uB97C \uBAA8\uB985\uB2C8\uB2E4** \u2014 \uC7AC\uC0DD\uBC14\uAC00 \uB738\uB9CC\uC73C\uB85C \uC5B4\uB9BC\uC7A1\uC544 \uC6C0\uC9C1\uC785\uB2C8\uB2E4.","\uC18C\uB9AC \uAE38\uC774 \uC7AC\uAE30(measureAudioDuration)\uAC00 0 \uC744 \uC92C\uAC70\uB098 `<audio>` \uAC00 \uC544\uC9C1 \uC548 \uC2E4\uB838\uC2B5\uB2C8\uB2E4. \uAE38\uC774\uB97C \uC54C\uAC8C \uB418\uBA74 \uB9C8\uCEE4\uAC00 \uADF8 \uC21C\uAC04 **\uB4A4\uB85C \uBB3C\uB7EC\uB0A9\uB2C8\uB2E4**(\uC5B4\uB9BC\uC740 \uB298 \uCC38\uBCF4\uB2E4 \uD07D\uB2C8\uB2E4). \uC774 \uC904\uC774 \uBCF4\uC774\uBA74 \uADF8 \uC790\uB9AC\uB97C \uC54C\uB824 \uC8FC\uC2ED\uC2DC\uC624 \u2014 \uD3C9\uC18C \uAE38\uC5D0\uC11C\uB294 \uC548 \uB098\uC640\uC57C \uD569\uB2C8\uB2E4.");const A=B?h3({phase:i?.positionRef.current?.phase??"sound",phaseElapsedMs:i?.positionRef.current?Math.max(0,Date.now()-i.positionRef.current.at):0,currentTime:g&&typeof g.currentTime=="number"?g.currentTime:0,trackDurationSec:k,leadInMs:l||0,tailMs:u||0}):m3({currentTime:g&&typeof g.currentTime=="number"?g.currentTime:0,sources:r.current,index:s.current,audioDuration:w??0});try{b&&(b.style.visibility&&(b.style.visibility=""),b.style.left=`${A*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(A))}catch{}}}catch{}c.current=requestAnimationFrame(h)};c.current=requestAnimationFrame(h)},[e,t,a,r,s,i,l,u]),y=o.useCallback(x=>{p();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${x*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(x))}catch{}},[p,t,a]);return o.useEffect(()=>p,[p]),{start:f,stop:p,settleTo:y}}function qo({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:s=!1,ttsText:i=null,className:l,showSoundWaveForm:u=!0,showNoiseWaveForm:c=!0,leadInMs:d=0,tailMs:m=0}){const{t:p}=_e.useTranslation(),f=e,y=cr(),x=o.useRef(y?.registerAnalyser);o.useEffect(()=>{x.current=y?.registerAnalyser});const h=o.useRef(null),g=o.useRef(null),_=o.useRef(null),C=k3(),w=o.useRef(null),b=o.useRef(!1),B=o.useRef(null),{ref:v,rect:k,show:A,hide:N}=N3();o.useEffect(()=>()=>{x.current?.("main",null),x.current?.("noise",null)},[]);const[E,D]=o.useState(!1),[H,R]=o.useState("idle"),[G,L]=o.useState("stopped"),M=o.useRef("stopped");o.useEffect(()=>{M.current=G},[G]);const[I,Y]=o.useState(0),[Z,z]=o.useState("active"),W=o.useRef(!1);o.useEffect(()=>{if(Z!=="playMode"||!W.current)return;W.current=!1;const J=typeof document<"u"?document.activeElement:null;if(J&&J!==document.body)return;const ye=_.current?.querySelectorAll("button")[1];try{ye?.focus()}catch{}},[Z]);const[$,U]=o.useState(null),[S,P]=o.useState(null),[j,F]=o.useState(0),[O,q]=o.useState(!1),[Q,oe]=o.useState(0),se=y?.playbackRate??1,te=y?.mainVolume??1,le=y?Io(y.settings):0,De=y?Yu(y.settings):te,[V,ne]=o.useState("idle"),[fe,Ee]=o.useState(""),[ge]=o.useState("top"),ae=o.useRef(null),de=o.useRef(0),pe=o.useRef(null),he=o.useRef(!0),be=Z5({mountedRef:he}),Pe=o.useRef(null),$e=o.useRef(d),Ie=o.useRef(m);o.useEffect(()=>{$e.current=Math.max(0,d||0)},[d]),o.useEffect(()=>{Ie.current=Math.max(0,m||0)},[m]);const{start:Fe,stop:Oe,settleTo:dt}=j3({audioRef:h,fillRef:g,waveProgressRef:pe,sourcesRef:ae,currentIndexRef:de,sequencer:be,leadInMs:d,tailMs:m}),{onReadyChange:lt,waitForReady:ot,markNotReady:ct}=A3({showSoundWaveForm:u,showNoiseWaveForm:c}),ke=o.useRef(null),He=o.useRef(s),Be=o.useRef(r),Xe=o.useRef(null),X=o.useRef(!1),[ue,we]=o.useState(!1),Ne=o.useCallback(J=>{X.current=J,we(J)},[]),Ve=o.useRef(null),{activeNoiseUrl:et,noiseSettingsRef:pt,fadeInNoise:ut,fadeOutNoise:ft}=a3({noisePlayer:y,audioRef:h,playbackStateRef:M,sequencer:be}),{startTTS:gt,stopTTS:Qe}=r3({ttsText:i,playbackRate:se,mainVolume:De,fillRef:g,waveProgressRef:pe,setProgress:Y,setPlaybackState:L,setStateLocal:z,fadeInNoise:ut,fadeOutNoise:ft,noiseSettingsRef:pt,onDoneRef:Be,handleEndRef:Ve});o.useEffect(()=>{ht.current=Qe});const Ue=J=>{if(typeof window>"u"||!window.speechSynthesis){try{Ee(p("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}gt(J);return}nt("tts"),gt(J)},We=Array.isArray(t)?t.filter(Boolean):t?[t]:[],Ke=(!We||We.length===0)&&!!i,rt=Array.isArray($)&&$.length>0?$:Array.isArray(S)&&S.length>0?S:null,bt=Math.max(Array.isArray(rt)?rt.length:0,We.length);o.useEffect(()=>(he.current=!0,()=>{he.current=!1}),[]);const Ye=()=>{be.abort()},ht=o.useRef(null),Nt=o.useRef(null),Et=o.useRef(null),Me=o.useRef(null);Me.current||(Me.current=()=>{Et.current=null;const J=h.current;if(Nt.current==="audio"&&J&&(!J.paused||be.isRunning())){Ye();try{J.pause()}catch{}he.current&&(L("paused"),Oe(),ft())}else if(Nt.current==="tts")try{ht.current?.()}catch{}});const nt=J=>{Nt.current=J,Et.current=er(Me.current)},Lt=()=>{Et.current?.(),Et.current=null};o.useEffect(()=>()=>{Me.current&&tr(Me.current)},[]);const Xt=o.useRef(se);o.useEffect(()=>{Xt.current=se||1},[se]);const at=o.useCallback(J=>{const ye=Xt.current||1;try{J.defaultPlaybackRate=ye}catch{}try{J.playbackRate=ye}catch{}},[]),Bt=o.useCallback((J,ye)=>{J.src=ye,at(J),J.load(),at(J)},[at]),At=o.useCallback(()=>{Xe.current&&(clearTimeout(Xe.current),Xe.current=null),ne("idle")},[]),vt=o.useCallback(async(J,ye=3,re=50,ve=0)=>{At();const Te=be.generation(),ze=!!J&&J.currentTime>0&&!J.ended,st=Math.max(0,$e.current-Math.max(0,ve));if(st>0&&!ze){nt("audio"),Fe(),L("playing");const mt=pt.current;if(mt?.enabled&&(mt.volume??0)>0)try{ut(mt.volume)}catch{}if(!await be.waitPad(st,"lead",ve)||!he.current||!be.isCurrent(Te))return!1}be.enterSound();for(let mt=0;mt<ye;mt++){if(!he.current||!be.isCurrent(Te))return!1;try{return nt("audio"),await J.play(),!0}catch(Ce){if((Ce instanceof Error||typeof Ce=="object"&&Ce&&"name"in Ce?Ce.name:void 0)==="AbortError"){if(!be.isCurrent(Te))return!1;await new Promise(T=>setTimeout(T,re));continue}try{Ee(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{Ee(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[p,Fe,be,ut,pt,At]),an=o.useCallback(J=>{const ye=be.generation(),re=Math.max(0,Ie.current-Math.max(0,J));Fe();const ve=pt.current;if(ve?.enabled&&(ve.volume??0)>0)try{ut(ve.volume)}catch{}const Te=()=>{try{Pe.current?.()}catch{}};if(re<=0){be.leave(),Te();return}be.waitPad(re,"tail",J).then(ze=>{be.leave(),ze&&be.isCurrent(ye)&&Te()}).catch(()=>{})},[be,Fe,ut,pt]),gn=o.useCallback(()=>{const J=h.current;if(!J)return;const ye=()=>{L("playing"),z("playMode"),q(!0),Fe();try{Fr(),za(J).then(ze=>{if(he.current)try{x.current?.("main",ze)}catch{}})}catch{}const Te=pt.current;Te?.enabled&&(Te?.volume??0)>0&&ut(Te.volume)},re=()=>{g3({ended:!!J?.ended,completedByEnd:X.current})||(L("paused"),Oe(),ft())},ve=()=>{const Te=()=>{try{const ze=ae.current,st=f3(ze,de.current);if(st!==null){de.current=st,F(st),q(!0);const mt=ze?.[st]&&ze[st].src;if(mt&&J){Bt(J,mt),vt(J).catch(()=>{});return}}}catch{}L("stopped"),Y(1);try{if(J)try{J.currentTime=0}catch{}}catch{}Oe(),q(!1),ft();try{!He.current&&Ve.current&&Ve.current()}catch{}};if(Pe.current=Te,Ie.current>0){Fe(),be.waitPad(Ie.current,"tail").then(ze=>{be.leave(),ze&&Te()}).catch(()=>{});return}Te()};return J.addEventListener("play",ye),J.addEventListener("pause",re),J.addEventListener("ended",ve),()=>{try{J.removeEventListener("play",ye),J.removeEventListener("pause",re),J.removeEventListener("ended",ve),Oe()}catch{}}},[ut,ft,vt,pt,Fe,Oe,be]);o.useEffect(()=>gn(),[gn]),o.useEffect(()=>{He.current=s},[s]),o.useEffect(()=>{Be.current=r},[r]),o.useEffect(()=>{if(s||Z!=="active")return;const J=B.current;if(!J)return;let ye=null;const re=requestAnimationFrame(()=>{try{const ve=J.getTotalLength();if(!ve)return;const Te=ve*.2;J.style.strokeDasharray=`${ve-Te} ${Te}`;const ze="triFlow_"+Math.random().toString(36).slice(2);ye=document.createElement("style"),ye.textContent=`@keyframes ${ze}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${ve}}}`,document.head.appendChild(ye),J.style.animation=`${ze} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(re),ye?.remove()}},[Z,s]),o.useEffect(()=>{ae.current=$},[$]),o.useEffect(()=>{de.current=j},[j]),o.useEffect(()=>{const J=_.current,ye=w.current;if(!J||!ye)return;let re=null;const ve=32,Te=60,ze=()=>{try{const mt=Array.from(J.querySelectorAll(":scope > .button"));let Ce=0;mt.forEach(Le=>{if(Le===ye)return;const Ge=Le.getBoundingClientRect();Ce+=Ge.width});const T=J.getBoundingClientRect().width,K=Math.max(0,Math.floor(T-Ce-8)),ce=bt;if(!ce||K<=0){Array.from(ye.children).forEach(Le=>{try{Le.style.width=""}catch{}});return}let Se=Math.floor(K/ce);Se>Te&&(Se=Te),Se<ve&&(Se=Math.max(ve,Math.floor(K/ce))),Array.from(ye.querySelectorAll(".button")).forEach(Le=>{try{Le.style.width=`${Se}px`}catch{}})}catch{}},st=requestAnimationFrame(ze);try{re=new ResizeObserver(()=>{requestAnimationFrame(ze)}),re.observe(J),re.observe(ye),window.addEventListener("resize",ze)}catch{}return()=>{try{cancelAnimationFrame(st)}catch{}try{re&&(re.disconnect(),re=null)}catch{}try{window.removeEventListener("resize",ze)}catch{}}},[$,S,bt]),o.useEffect(()=>()=>{try{ke.current&&(clearTimeout(ke.current),ke.current=null),Xe.current&&(clearTimeout(Xe.current),Xe.current=null)}catch{}},[]);const pn=(J,ye)=>{U(J),oe(ye),ct(),P(b3(J)),ae.current=J},mn=()=>{z("playMode"),F(0),q(!0)},Dn=async(J,ye)=>{Ne(!1),b.current=!1,Bt(J,ye),await ac(J),await ot()!==!1&&(D(!1),mn(),await vt(J))},Fn=async(J,ye=!1)=>{const re=h.current;D(!0),R("measuring_duration");try{const ve=await Wo(J,{timeoutMs:1e4,rejectOnError:!0});pn([{src:J,objectUrl:null,duration:ve}],ve),R("ready"),ye&&re&&await Dn(re,J)}finally{b.current=!1,D(!1)}},bn=async(J,ye=!1)=>{const re=h.current;D(!0),R("measuring_duration");try{const ve=await Promise.all(J.map(ze=>Wo(ze,{timeoutMs:1e4})));if(!he.current)return;const Te=J.map((ze,st)=>({src:ze,objectUrl:null,duration:ve[st]||0}));pn(Te,y3(Te)),R("ready"),ye&&re&&Te.length>0&&await Dn(re,Te[0].src)}finally{b.current=!1,D(!1)}},zt=async(J=!1,ye=!0)=>{const re=h.current,ve=t?Array.isArray(t)?t:[t]:[];if(!ve||ve.length===0||!ve.some(Boolean))return!1;if(b.current)return null;b.current=!0,ye&&D(!0),R("resolving");try{const Te=v3(t,a,Zs),ze=[];let st=0;for(const mt of Te){let Ce=mt.src??null,T=null;if(!Ce&&mt.resolvedPath){try{R("getting_signed_url"),Ce=await Xs(mt.resolvedPath)}catch{Ce=null}if(!he.current)return!1;if(!Ce)try{R("downloading");const ce=await Js(mt.resolvedPath);if(!he.current)return!1;if(ce){const Se=ce instanceof Blob?ce:new Blob([ce]);T=C.track(URL.createObjectURL(Se)),Ce=T}}catch{R("error");try{Ee(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),z("active")}catch{}}}if(!Ce)continue;let K=0;try{R("measuring_duration"),K=await Wo(Ce,{timeoutMs:3e3})}catch{K=0}if(!he.current){if(T)try{URL.revokeObjectURL(T)}catch{}for(const ce of ze)if(ce.objectUrl)try{URL.revokeObjectURL(ce.objectUrl)}catch{}return!1}st+=K||0,ze.push({...mt,src:Ce,objectUrl:T,duration:K})}if(pn(ze,st),ze.length>0&&J&&re){const mt=ze[0];Ne(!1);try{C.keepOnly(ze.map(Ce=>Ce.objectUrl))}catch{}if(R("ready"),b.current=!1,mt.src&&re)try{if(Bt(re,mt.src),await ac(re),await ot()===!1)return!1;ye&&D(!1),mn(),re&&await vt(re)}catch{ye&&D(!1)}else ye&&D(!1);z("playMode"),F(0),q(!0)}return ze.length>0}finally{b.current=!1,ye&&D(!1),R(Te=>Te==="ready"?"ready":"idle")}},on=async J=>{const ye=be.isRunning();if(J.paused&&!ye){if(X.current){await Rt();return}const re=be.resume();if(re){if(L("playing"),re.phase==="tail"){an(re.\uD750\uB978);return}await vt(J,3,50,re.\uD750\uB978);return}await vt(J),L("playing")}else be.pause(),Ye(),J.pause(),L("paused"),ye&&(Oe(),ft())},Vt=async()=>{const J=h.current;if(!(!J&&!Ke)){if(Ke){const ye=window.speechSynthesis;if(Z==="active"){const re=$r(),ve=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(re&&ve.length>0){if(b.current)return;z("load"),D(!0),R("synthesizing"),b.current=!0;try{const Te=await Promise.all(ve.map(ze=>Promise.resolve(re(ze))));Te.length>1?await bn(Te,!0):await Fn(Te[0],!0)}catch{b.current=!1,D(!1),z("active"),Ue(ve.length>0?ve:void 0)}return}Ue(ve.length>0?ve:void 0);return}if(Z==="playMode"){const re=!!ye&&(ye.speaking||ye.paused)&&!(J&&(J.currentSrc||J.getAttribute("src")));if(J&&!re){await on(J);return}try{if(ye&&ye.paused)try{nt("tts"),ye.resume(),L("playing")}catch{}else try{ye.pause(),L("paused")}catch{}}catch{}}return}if(Z==="active"){if(s&&Array.isArray(ae.current)&&ae.current.length>0){const re=ae.current[0];try{if(re.src&&J)try{Bt(J,re.src),mn(),J&&await vt(J)}catch{}mn();return}catch{}}z("load");let ye;try{ye=await zt(!0)}catch{ye=!1}if(ye===!1&&he.current){try{Ee(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}z("active")}return}if(Z!=="load"&&(Z==="playMode"||Z==="active"))try{J&&await on(J)}catch(ye){(ye instanceof Error||typeof ye=="object"&&ye&&"name"in ye)&&ye.name}}},Rt=async()=>{const J=h.current;if(J)try{const ye=ae.current;if(Array.isArray(ye)&&ye.length>1){await Pt(0);return}Ne(!1);try{J.currentTime=0}catch{}J&&await vt(J),L("playing"),z("playMode")}catch{}},En=()=>{Ye(),Lt(),ht.current?.();const J=h.current;try{if(J){try{J.pause()}catch{}try{J.currentTime=0}catch{}}}catch{}ft(),L("stopped"),z("active"),Y(0),q(!1)},Jt=async(J,{sameSegment:ye=!1}={})=>{Ye();const re=be.generation(),ve=h.current,Te=ae.current?.[J]?.src;try{if(Ne(!1),F(J),q(!0),de.current=J,!Te||!ve||(ye||ct(),Bt(ve,Te),!ye&&await ot()===!1)||!be.isCurrent(re)||(await vt(ve),!be.isCurrent(re)))return;L("playing"),z("playMode")}catch{}},Sn=async()=>{const J=ae.current,ye=de.current||0;if(!J||ye<=0){await Rt();return}await Jt(ye-1)},In=async()=>{const J=ae.current,ye=de.current||0;if(!J||ye>=J.length-1){En();return}await Jt(ye+1)},hn=()=>{if(X.current)return;const J=200,ye=340;Ne(!0),Ye(),Lt();try{Y(1)}catch{}dt(1);try{ne("hold")}catch{}try{const re=h.current,ve=Ke&&!!re?.src;if(!Ke||ve){if(re){re.pause();try{re.currentTime=0}catch{}}}else Qe();ft()}catch{}try{L("stopped")}catch{}if(q(!1),!He.current)try{Xe.current&&(clearTimeout(Xe.current),Xe.current=null),Xe.current=setTimeout(()=>{try{ne("out")}catch{}Xe.current=setTimeout(()=>{try{typeof Be.current=="function"&&Be.current(!0)}catch{}try{ne("idle")}catch{}Xe.current=null},ye)},J)}catch{}};o.useEffect(()=>{Ve.current=hn});const jt=o.useCallback(()=>Ee(""),[]),Pt=async J=>{(ae.current||[])[J]&&await Jt(J,{sameSegment:J===de.current})},Wt=G==="playing",sn=o.useMemo(()=>{if(!S||S.length<=1)return S;const J=S[j];return J?[J]:S},[S,j]),Ft=s===!0;o.useEffect(()=>{try{const J=h.current;J&&typeof J.playbackRate=="number"&&at(J)}catch{}},[se,at]);const Qt=o.useRef({raf:null,timer:null});o.useEffect(()=>{const J=h.current;if(!J)return;const ye=Math.max(0,Math.min(1,De)),re=Qt.current,ve=()=>{re.raf!==null&&(cancelAnimationFrame(re.raf),re.raf=null),re.timer!==null&&(clearTimeout(re.timer),re.timer=null)};ve();const Te=Va(J);if(J.paused||Math.abs(Te-ye)<.001||typeof requestAnimationFrame!="function"){try{Mn(J,ye)}catch{}return}const ze=performance.now(),st=()=>{const mt=Math.min(1,(performance.now()-ze)/150);try{Mn(J,Te+(ye-Te)*mt)}catch{}re.raf=mt<1?requestAnimationFrame(st):null};return re.raf=requestAnimationFrame(st),re.timer=setTimeout(()=>{ve();try{Mn(J,ye)}catch{}},200),ve},[De]);const ie=V==="hold",xe=V==="out",je=Z==="playMode"&&!E&&!ue||ie||xe,Je=G!=="stopped"||ie||xe,Re=G==="paused",qe=Math.max(0,Math.min(100,(I||0)*100)),Ze=Ae("audio-player__fill",je?"is-visible":"",Je?"is-expanded":"",Re?"is-paused":"",xe?"is-out":"");return n.jsxs("div",{className:`audio-player ${Ft?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof f=="string"?f:void 0,children:[n.jsxs("div",{className:`audio-player__panel ${Wt?"is-playing":""} ${E?"is-loading":""} ${Z!=="default"?"is-revealed":""}`,children:[E?n.jsxs("div",{className:"audio-player__loading",role:nc[H]?"status":void 0,"aria-live":nc[H]?"polite":"off",children:[n.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),n.jsx("span",{className:"audio-player__loading-text",children:p(`training.audioStatus.${H}`,{defaultValue:w3[H]})})]}):null,Z==="active"?n.jsx("button",{className:"audio-player__button",type:"button",disabled:Ft,onClick:()=>{W.current=or(),N(),Vt()},"aria-label":typeof f=="string"?f:p("training.listen","\uB4E3\uAE30"),onMouseEnter:A,onMouseLeave:N,onFocus:A,onBlur:N,children:n.jsx("span",{ref:v,className:"audio-player__button-triangle-wrap",children:n.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:n.jsx("path",{ref:B,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,k&&n.jsx(vn,{anchorRect:k,text:typeof f=="string"&&f?f:p("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),n.jsxs("div",{className:`audio-player__play ${Z==="playMode"||Wt?"is-visible":""}`,inert:!(Z==="playMode"||Wt)||void 0,children:[n.jsxs("div",{ref:_,className:"audio-player__buttons",children:[n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:Sn,ariaLabel:p("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Z!=="playMode"}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Wt?"pause":"play",onClick:Vt,ariaLabel:p("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":Wt,width:"60px",variant:"transparent-white",disabled:Z!=="playMode"}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:En,ariaLabel:p("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Z!=="playMode"}),bt>1?n.jsx("div",{ref:w,className:"audio-player__source-buttons",children:Array.from({length:bt}).map((J,ye)=>n.jsx(me,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(ye+1),onClick:()=>{try{Pt(ye)}catch{}},ariaLabel:p("training.sourcePlay",{n:ye+1}),variant:"transparent-white",selected:O&&j===ye,disabled:Z!=="playMode"||!(Array.isArray($)&&$[ye]),showTooltipInfo:!0},ye))}):null,!Array.isArray($)||$.length<=1?n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Rt,ariaLabel:p("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"}):null,n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:In,ariaLabel:p("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:Z!=="playMode"}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:hn,ariaLabel:p("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"})]}),n.jsxs("div",{className:"audio-player__slider",children:[n.jsx("div",{className:Ze,ref:g,style:{left:`${qe}%`},"aria-hidden":"true"}),(u||c)&&n.jsx(_3,{segments:sn,progress:I,totalDuration:Q,waveProgressRef:pe,showSoundWaveForm:u,leadInMs:d,tailMs:m,trackDurationSec:$?.[j]?.duration??0,noiseSrc:c&&y?.settings.enabled&&le>0?et:null,noiseRatio:y?Fa(y.settings):0,noiseSpeed:y?.settings.speed??1,mainVolume:te,onReadyChange:lt})]})]}),n.jsx("audio",{ref:h,crossOrigin:"anonymous",preload:"auto"})]}),!u&&n.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[n.jsx(tt,{icon:"triangle-alert",size:14}),p("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),n.jsx(sa,{message:fe,position:ge,onClose:jt})]})}function hr(e){const{t}=_e.useTranslation(),{text:a,label:r,anchorRect:s=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:u=!1}=e||{},[c,d]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",c)}catch{}},[c]);const{increase:m,decrease:p,canIncrease:f,canDecrease:y,fontSize:x,lineHeight:h}=ol({storageKey:"tooltip-fontScale"}),g=o.useCallback(()=>d(B=>B==="dark"?"light":"dark"),[]),_=o.useCallback(B=>{try{B.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),C=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],w={fontSize:`${x}px`,lineHeight:`${h}px`,"--tt-line-height":`${h}px`,"--tt-marker-size":"28px"},b=n.jsxs("div",{className:`tooltip-textbox__root ${c==="dark"?"is-dark":""}`,children:[n.jsxs("div",{className:"tooltip-textbox__box",children:[r&&n.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),n.jsx("div",{className:"tooltip-textbox__text body-1",style:w,children:C.map((B,v)=>n.jsxs("div",{className:"tooltip-textbox__line",children:[C.length>1?n.jsx("div",{className:"tooltip-textbox__marker",children:n.jsx("span",{className:"tooltip-textbox__line-number button-1",children:v+1})}):null,n.jsx("span",{className:"tooltip-textbox__line-text",children:B})]},v))})]}),n.jsxs("div",{className:"tooltip-textbox__buttons",children:[n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:p,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!y}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:m,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!f}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:c==="dark"?"moon":"sun-medium",onClick:g,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:c==="dark"?"transparent-white":"transparent-gray"}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:_,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:c==="dark"?"transparent-white":"transparent-gray"})]})]});return s?n.jsx(un,{anchorRect:s,className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:u,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:b}):n.jsx("div",{className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,children:b})}function oc({state:e="disabled"}){const{t}=_e.useTranslation();return n.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[n.jsx("div",{className:"bullet__dot",children:n.jsx(tt,{icon:"chevron-right",label:t("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),n.jsx("div",{className:"ts-bullet__line"})]})}function sc(e,t,a){const r=o.useRef(t),s=o.useRef(a);o.useEffect(()=>{r.current=t,s.current=a}),o.useEffect(()=>{if(!e||typeof document>"u")return;let i=null,l=10;const u=()=>{i=null;const c=r.current(),d=c?Array.from(c.querySelectorAll(Cn)).find(m=>!m.closest('[aria-hidden="true"]')):void 0;if(d){try{d.focus()}catch{}if(document.activeElement===d)return}--l>0&&(i=requestAnimationFrame(u))};return i=requestAnimationFrame(u),()=>{i!==null&&cancelAnimationFrame(i);const c=document.activeElement;if(!c||c===document.body||!document.contains(c)||c.closest(".tooltip-content")){const d=s.current();if(d)try{d.focus()}catch{}}}},[e])}function ic({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:u,usePlayAllBtn:c=!1,onPlayAll:d,playAllActive:m=!1}){const{t:p}=_e.useTranslation(),f=rn("(max-width: 767px)"),y=`training-step__title h4 ${u&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),x=`training-step__title-row training-step__title-row--${r}`.trim(),h=o.useRef(null),[g,_]=o.useState(!1),[C,w]=o.useState(null),[b,B]=o.useState(null);sc(g&&!!C,()=>{if(typeof document>"u")return null;const E=Array.from(document.querySelectorAll(".tooltip-content"));for(let D=E.length-1;D>=0;D--)if(E[D].querySelector(".tooltip-textbox__root"))return E[D];return null},()=>h.current?.querySelector("button")??null);const v=o.useRef(i);o.useEffect(()=>{v.current=i});const k=o.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(E=>typeof E=="string"||typeof E=="number")?l.join(""):"",[l]),A=o.useCallback(()=>{_(!1),w(null),B(null)},[]);o.useEffect(()=>{if(!g)return;let E;try{typeof v.current=="function"&&(E=v.current())}catch{}if(E===!1){A();return}B(typeof E<"u"&&E!==null?E:null)},[k]);const N=o.useCallback(()=>{let E;try{typeof i=="function"&&(E=i())}catch{}if(E!==!1){if(B(typeof E<"u"&&E!==null?E:l),!h.current){_(D=>!D);return}if(g)_(!1),w(null),B(null);else{const D=h.current.getBoundingClientRect();w(D),_(!0)}}},[i,l,g]);return n.jsxs("div",{className:x,children:[n.jsx("p",{className:y,children:n.jsx("span",{className:"training-step__title-text",children:e??t})}),s||c?n.jsxs("div",{className:"title-controls",children:[n.jsxs("div",{className:"title-buttons",children:[c&&n.jsx(me,{htmlType:"button",size:32,type:f?"dot":"bar",icon:"play-circle",label:f?void 0:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:m,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||m,onDisabledClick:m&&r!=="disabled"?()=>{}:void 0}),s&&n.jsx("div",{ref:h,children:n.jsx(me,{htmlType:"button",size:32,type:f?"dot":"bar",icon:"eye",label:f?void 0:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:N,className:g?"is-selected":void 0,"aria-expanded":g,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),g&&n.jsx(hr,{text:b??l,label:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:C,onClose:A,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Uo(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Kn({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:s={},children:i,className:l="",onDone:u=void 0,useTitleFaded:c=void 0,lockedHint:d}){const{t:m}=_e.useTranslation(),[p,f]=o.useState(()=>Uo(e,t));o.useEffect(()=>{const v=Uo(e,t);if(v!==p){const k=setTimeout(()=>f(v),0);return()=>clearTimeout(k)}},[e,t,p]);const y=o.useCallback((...v)=>{Uo(e,t)==="done"||p==="done"||typeof u=="function"&&u(...v)},[e,t,p,u]),[x,h]=o.useState(!1),[g,_]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),C=o.useCallback(v=>{if(!v)return null;try{const k=v;if(typeof v=="object"&&(k.currentTarget||k.target)&&(k.nativeEvent||k.type)){const E=k.currentTarget??k.target;if(E&&typeof E.getBoundingClientRect=="function")return E.getBoundingClientRect()}if(v instanceof DOMRect)return v;const A=v;if(A&&typeof A.getBoundingClientRect=="function")return A.getBoundingClientRect();const N=v?.current;return N&&typeof N.getBoundingClientRect=="function"?N.getBoundingClientRect():null}catch{return null}},[]),w=o.useCallback((v,{text:k="",label:A="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:N=!1,alignX:E="center",alignY:D="top"}={})=>{const H=C(v);_({text:k,label:A,anchorRect:H,backdrop:N,alignX:E,alignY:D}),h(!0)},[C]),b=o.useCallback(()=>{h(!1),_(v=>({...v,anchorRect:null}))},[]),B=o.Children.map(i,v=>{if(o.isValidElement(v)){const k=v;if(typeof k.type=="string")return k;const A=k.props??{},N=typeof A.onDone=="function"?A.onDone:y,E=typeof A.disabled=="boolean";let D=p==="disabled";return E&&(D=!!A.disabled),o.cloneElement(k,{onDone:N,disabled:D,showTooltip:w,hideTooltip:b})}return v});return n.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[n.jsx(oc,{state:p}),n.jsxs("div",{className:"training-step__content",children:[n.jsx(ic,{state:p,title:r,...s,useFaded:c}),p==="disabled"&&d&&typeof e=="number"&&typeof t=="number"&&e===t+1&&n.jsx("p",{className:"training-step__locked-hint caption-1",role:"status",children:d}),B]}),x?n.jsx(un,{anchorRect:g.anchorRect,backdrop:g.backdrop,onClose:b,ariaLabel:m("tooltip.textbox","\uBCF8\uBB38"),children:n.jsx(hr,{text:g.text,onClose:b})}):null]})}function lc({context:e,state:t="disabled",theme:a="light"}){const{t:r}=_e.useTranslation(),[s,i]=o.useState("disabled"),[l,u]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const c=()=>u(R=>R==="dark"?"light":"dark"),{increase:d,decrease:m,canIncrease:p,canDecrease:f,fontSize:y,lineHeight:x}=ol({storageKey:"textbox_fontScale"}),[h,g]=o.useState(""),_=o.useRef(null),C=o.useRef(!1),w=o.useCallback(()=>{C.current=or()&&!!_.current&&_.current.contains(document.activeElement),i("active")},[]),b=o.useCallback(()=>g(""),[]),B=R=>{try{g(R)}catch{}},v=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(t!=="disabled"){const R=setTimeout(()=>i(t),0);return()=>clearTimeout(R)}},[t]);const k=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[A,N]=o.useState(k);A!==k&&(N(k),i("disabled"));const E=t==="disabled"?s:t,D=E==="disabled"?"training-text-box--disabled":E==="active"?"training-text-box--active":E==="done"?"training-text-box--done":"",H=o.useMemo(()=>({fontSize:`${y}px`,lineHeight:`${x}px`}),[y,x]);return o.useEffect(()=>{if(E==="disabled"||!C.current)return;C.current=!1;const R=document.activeElement;R&&R!==document.body||_.current?.querySelector(".training-text-box__buttons button")?.focus()},[E]),n.jsxs("div",{ref:_,className:`training-text-box ${D} ${E!=="disabled"&&l==="dark"?"is-dark":""}`,children:[E==="disabled"&&n.jsx("div",{className:"training-text-box__preview",children:n.jsx(me,{htmlType:"button",size:48,type:"bar",onClick:w,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),n.jsx("div",{className:"training-text-box__area","aria-hidden":E==="disabled",children:n.jsx("span",{className:"training-text-box__inner h3",style:H,children:k})}),E!=="disabled"&&n.jsxs("div",{className:"training-text-box__buttons","aria-hidden":E==="disabled",children:[n.jsx(me,{htmlType:"button",size:32,type:"dot",onClick:m,onDisabledClick:()=>B(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!f,useBorder:!1,showTooltipInfo:!0,...!v&&{width:"60px"}}),n.jsx(me,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>B(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!p,useBorder:!1,showTooltipInfo:!0,...!v&&{width:"60px"}}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:c,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),n.jsx(sa,{message:h,position:"top",onClose:b})]})}function Go({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:s,useTitleFaded:i,onDone:l,onChange:u,answer:c,wrongAnswers:d,choices:m,multiSelect:p=!1,correctCount:f=0,useDisabledCovered:y=!1,choiceIcons:x,shuffleChoices:h=!0}){const{t:g}=_e.useTranslation(),_=s??g("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),C=typeof e=="number"?e:-1,w=typeof t!="number"?"disabled":C<t?"done":C===t?"active":"disabled",b=Array.isArray(m)&&m.length?m:typeof c<"u"?[c].concat(Array.isArray(d)?d:[]):void 0,B=d?d.join("||"):"",v=m?m.join("||"):"",[k,A]=o.useState(()=>Array.isArray(b)?h?xa(b):b.slice():void 0);o.useEffect(()=>{Array.isArray(b)&&b.length?A(h?xa(b):b.slice()):A(void 0)},[c,B,v,h]);const[N,E]=o.useState(null),[D,H]=o.useState(()=>new Set);o.useEffect(()=>{E(null),H(new Set)},[v,c,B]);const R=o.useRef(void 0);o.useEffect(()=>{const I=R.current;typeof I=="number"&&typeof t=="number"&&typeof e=="number"&&I>=e&&t<e&&(E(null),H(new Set)),R.current=t},[t,e]);const G=o.useCallback(I=>{if(w!=="active")return;const Y=k?.[I];if(Y==null)return;const Z=Y,z=w==="active"||w==="done";if(p){const W=new Set(D);W.has(Z)?W.delete(Z):W.add(Z),H(W),typeof u=="function"&&u({selectedValues:[...W],__ts:Date.now()})}else E(Z),typeof u=="function"&&u({selectedIndex:I,selectedValue:Z,__ts:Date.now()}),z&&typeof l=="function"&&w==="active"&&l({selectedIndex:I,selectedValue:Z,__ts:Date.now()})},[k,w,p,u,D]),L=o.useCallback(()=>{w==="active"&&D.size!==0&&typeof l=="function"&&l({selectedValues:[...D],__ts:Date.now()})},[w,D,l]),M=`training-step__buttons${Array.isArray(k)&&k.length>3?" training-step__buttons--wrap-3":""}`;return n.jsxs(Kn,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:_,useTitleFaded:i,children:[n.jsx("div",{className:M,children:Array.isArray(k)&&k.length>0?k.map((I,Y)=>n.jsx(me,{htmlType:"button",size:56,type:"bar",onClick:()=>G(Y),ariaLabel:String(I),label:I,useLabel:!0,icon:x?x[String(I)]:void 0,variant:"default",disabled:w==="disabled",selected:p?D.has(I):N===I,useDisabledCovered:y,minWidth:0},String(I))):null}),p&&n.jsx("div",{className:"training-step__buttons",children:n.jsx(me,{htmlType:"button",size:56,type:"bar",variant:"main",onClick:L,disabled:w!=="active"||D.size===0,ariaLabel:g("common.confirm","\uD655\uC778"),label:g("common.confirm","\uD655\uC778"),useLabel:!0,minWidth:0})})]})}function Ko({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:s,onDone:i,onChange:l,context:u,demoSelected:c}){const{t:d}=_e.useTranslation(),m=s??d("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,f=typeof t!="number"?"disabled":p<t?"done":p===t?"active":"disabled",y=u&&typeof u=="object"?u.sentence||"":typeof u=="string"?u:"",x=u&&typeof u=="object"?u.choices:void 0,[h,g]=o.useState(c??null),_=`${String(y)}\0${JSON.stringify(x??null)}`,[C,w]=o.useState(_);C!==_&&(w(_),c==null&&g(null));const[b,B]=o.useState(c);Object.is(b,c)||(B(c),g(c??null));const v=o.useRef(void 0);o.useEffect(()=>{const E=v.current;typeof E=="number"&&typeof t=="number"&&typeof e=="number"&&E>=e&&t<e&&c==null&&g(null),v.current=t},[t,e,c]);const k=o.useCallback(E=>{const D=typeof E=="object"&&E!==null?Object.assign({},E,{__ts:Date.now()}):{value:E,__ts:Date.now()};typeof l=="function"&&l(D),f==="active"&&typeof i=="function"&&i(D)},[l,f,i]),A=o.useCallback(()=>{f==="active"&&(g(!1),k(!1))},[k,f]),N=o.useCallback(()=>{f==="active"&&(g(!0),k(!0))},[k,f]);return n.jsxs(Kn,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:m,onDone:i,useTitleFaded:!1,children:[n.jsx(lc,{context:u,state:f}),n.jsx("div",{className:"training-step__buttons",children:Array.isArray(x)&&x.length>0?x.slice(0,6).map((E,D)=>n.jsx(me,{htmlType:"button",size:56,type:"bar",onClick:()=>{f==="active"&&(g(D),k&&k(D))},disabled:f==="disabled",ariaLabel:String(E),label:E,variant:f,selected:h===D},D)):n.jsxs(n.Fragment,{children:[n.jsx(me,{htmlType:"button",size:56,type:"bar",onClick:A,disabled:f==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:h===!1}),n.jsx(me,{htmlType:"button",size:56,type:"bar",onClick:N,disabled:f==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:h===!0})]})})]})}function Yo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,btnLabel:i,soundSrc:l,bucketPath:u,usePreviewTextBtn:c,previewText:d=null,onPreviewTextBtn:m,disabled:p,_pageIndex:f,showSoundWaveForm:y,showNoiseWaveForm:x,leadInMs:h,tailMs:g}){const{t:_}=_e.useTranslation(),C=r??_("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),w=p??(typeof t=="number"&&typeof e=="number"?e>t:!1);return n.jsx(Kn,{index:e,stepIndex:t,isLast:a,title:C,onDone:s,titleProps:{usePreviewTextBtn:c,previewText:d,onPreviewTextBtn:m},children:n.jsx(qo,{soundSrc:l,ttsText:l?null:d??C,bucketPath:u,btnLabel:i||_("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:w,className:"training-step__listen-sticky",showSoundWaveForm:y,showNoiseWaveForm:x,leadInMs:h,tailMs:g},`audio-p${f??0}-s${e}`)})}const T3=[];function Zo({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:s,onDone:i,onChange:l,context:u=T3}){const{t:c}=_e.useTranslation(),d=s??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),m=P=>typeof P=="string"?P:P&&(P.context||P.sentence||P.question||"")||"",[p,f]=o.useState(Array.isArray(u)?u:[]),[y,x]=o.useState(()=>(p||[]).map((P,j)=>({id:j,text:m(P)}))),h=o.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]),g=h!=="disabled",_=o.useRef(void 0),C=o.useRef(void 0);o.useEffect(()=>{if(_.current===u)return;_.current=u;const P=Array.isArray(u)?u:[];f(P);const j=(F=>{const O=(F||[]).map((se,te)=>({id:te,text:m(se)}));if(O.length<=1)return O;const q=(se,te)=>{if(se.length!==te.length)return!1;for(let le=0;le<se.length;le++)if(se[le].text!==te[le].text)return!1;return!0};let Q=xa(O),oe=0;for(;q(Q,O)&&oe<20;)Q=xa(O),oe+=1;return Q})(P);x(j);try{if(typeof l=="function"){const F=j.filter((O,q)=>O.text===m(P[q])).length;l({shuffled:j,score:F,total:(P||[]).length,initial:!0,__ts:Date.now()})}if(typeof i=="function"&&h==="active"){const F=j.filter((O,q)=>O.text===m(P[q])).length;C.current=u,i({shuffled:j,score:F,total:(P||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[u]),o.useEffect(()=>{if(h!=="active"||C.current===u||(C.current=u,typeof i!="function"))return;const P=Array.isArray(u)?u:[],j=y.filter((F,O)=>F.text===m(P[O])).length;i({shuffled:y,score:j,total:P.length,initial:!0,__ts:Date.now()})},[h,u]);const w=(P,j)=>{const F=[...y],O=P+j;if(O<0||O>=F.length)return;const q=F[O];F[O]=F[P],F[P]=q,Y(F);try{if(typeof i=="function"&&h==="active"){const Q=F.filter((oe,se)=>oe.text===m(p[se])).length;i({shuffled:F,score:Q,total:(p||[]).length,__ts:Date.now()})}}catch{}},[b,B]=o.useState(null),v=o.useRef(null),k=o.useRef(null),A=o.useRef(null),N=o.useRef(null),E=o.useRef(null),D=o.useRef({x:0,y:0}),H=o.useRef(null),R=o.useRef({dx:0,dy:0}),G=()=>{if(H.current!==null)return;const P=()=>{if(!v.current){H.current=null;return}H.current=requestAnimationFrame(P);const j=D.current,F=R.current||{dx:0,dy:0};v.current&&(v.current.style.transform=`translate3d(${j.x-F.dx}px, ${j.y-F.dy}px, 0)`)};H.current=requestAnimationFrame(P)},L=o.useRef(new Map),M=o.useRef(new Map),I=()=>{const P=new Map;return L.current.forEach((j,F)=>{j&&j.getBoundingClientRect&&P.set(F,j.getBoundingClientRect())}),P},Y=P=>{const j=I();x(P);try{if(typeof l=="function"){const F=P.filter((O,q)=>O.text===m(p[q])).length;l({shuffled:P,score:F,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const F=I();P.forEach(O=>{const q=j.get(O.id),Q=F.get(O.id),oe=L.current.get(O.id);if(!oe||!q||!Q)return;const se=q.top-Q.top;se&&(oe.style.transition="none",oe.style.transform=`translateY(${se}px)`,requestAnimationFrame(()=>{oe.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",oe.style.transform="";const te=()=>{oe.style.transition="",oe.removeEventListener("transitionend",te)};oe.addEventListener("transitionend",te)}))})})},Z=(P,j)=>{try{try{j.dataTransfer?.setData("text/plain",String(P))}catch{}try{j.dataTransfer&&(j.dataTransfer.effectAllowed="move")}catch{}try{const F=document.createElement("div");F.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(F),j.dataTransfer?.setDragImage(F,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(F)}catch{}})}catch{}}catch{}B(P);try{const F=y[P],O=document.createElement("div");O.className="order-list__dragging-object order-list__dragging-object--visible",O.textContent=F&&F.text?F.text:"",document.body.appendChild(O),v.current=O;const q=L.current.get(F.id);let Q=j.clientX||0,oe=j.clientY||0;try{if(q&&q.getBoundingClientRect){const ne=q.getBoundingClientRect();Q=ne.left+ne.width/2,oe=ne.top+ne.height/2}}catch{}const se=O.getBoundingClientRect(),te=se.width/2,le=se.height/2;R.current={dx:te,dy:le},O.style.transition="none",D.current={x:Q,y:oe},O.style.transform=`translate3d(${Q-te}px, ${oe-le}px, 0)`,requestAnimationFrame(()=>{try{O.style.transition=""}catch{}G()});const De=ne=>{const fe=ne;D.current={x:fe.clientX,y:fe.clientY},G()};A.current=De,document.addEventListener("mousemove",De);const V=ne=>{const fe=ne;D.current={x:fe.clientX,y:fe.clientY},G()};k.current=V,document.addEventListener("dragover",V);try{j.dataTransfer?.setData("text/plain",String(P));try{j.dataTransfer?.setData("application/json",JSON.stringify({idx:P}))}catch{}}catch{}}catch{}},z=(P,j)=>{j.preventDefault();try{j.dataTransfer&&(j.dataTransfer.dropEffect="move")}catch{}try{E.current!==null&&(clearTimeout(E.current),E.current=null);const F=j.currentTarget&&j.currentTarget.closest?j.currentTarget.closest(".order-list__item"):null;if(F&&N.current!==F){if(N.current)try{N.current.classList.remove("drag-over")}catch{}try{F.classList.add("drag-over")}catch{}N.current=F}}catch{}},W=(P,j)=>{j.preventDefault();const F=j.dataTransfer?.getData("text/plain")||"",O=F?parseInt(F,10):b,q=P;if(typeof O!="number"||isNaN(O)||O===q){B(null),S(),$();return}const Q=PC(y,O,q);Y(Q),B(null),$();try{if(typeof i=="function"&&h==="active"){const oe=Q.filter((se,te)=>se.text===m(p[te])).length;i({shuffled:Q,score:oe,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const oe=document.querySelectorAll(".order-list .order-list__item")[q];if(!oe)return;const se=oe.querySelector(".order-list__slot")||oe;try{se.classList.add("pulse"),se.offsetHeight,se.classList.add("to-dark");const te=()=>{se.classList.remove("pulse","to-dark"),se.removeEventListener("transitionend",te)};se.addEventListener("transitionend",te)}catch{}})}catch{}S()},$=()=>{if(v.current){try{document.body.removeChild(v.current)}catch{}v.current=null}k.current&&(document.removeEventListener("dragover",k.current),k.current=null),A.current&&(document.removeEventListener("mousemove",A.current),A.current=null),H.current!==null&&(cancelAnimationFrame(H.current),H.current=null)},U=()=>{B(null),S(),$()};o.useEffect(()=>()=>$(),[]);const S=()=>{try{if(E.current!==null&&(clearTimeout(E.current),E.current=null),N.current){try{N.current.classList.remove("drag-over")}catch{}N.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(P=>P.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const P=Math.max(1,(y||[]).length);y.forEach((j,F)=>{const O=M.current.get(j.id);if(!O)return;let q=50;P>1&&(q=Math.round(F/(P-1)*100));try{O.style.setProperty("--marker-pos",q+"%")}catch{}})}catch{}},[y]),o.useEffect(()=>()=>{$(),E.current!==null&&(clearTimeout(E.current),E.current=null)},[]),n.jsx(Kn,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:d,children:n.jsx("div",{className:"order-list",children:y.map((P,j)=>{const F=Math.max(1,(y||[]).length),O=F>1?Math.round(j/(F-1)*100):50;return n.jsx("div",{className:"order-list__item",children:n.jsxs("div",{className:"order-list__slot","data-disabled":h==="disabled","aria-disabled":h==="disabled",children:[h!=="disabled"?n.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":O+"%"},ref:q=>{const Q=M.current;q?Q.set(P.id,q):Q.delete(P.id)},children:n.jsx("span",{className:"order-list__slot-number button-1",children:j+1})}):null,n.jsxs("div",{ref:q=>{const Q=L.current;q?Q.set(P.id,q):Q.delete(P.id)},className:`order-list__draggable ${b===j?"dragging":""}`,"data-disabled":h==="disabled","aria-disabled":h==="disabled",tabIndex:h==="disabled"?-1:0,draggable:g,onDragStart:g?q=>Z(j,q):void 0,onDragEnter:g?q=>z(j,q):void 0,onDragOver:g?q=>z(j,q):void 0,onDragLeave:g?()=>{try{E.current!==null&&clearTimeout(E.current),E.current=setTimeout(()=>{try{const q=document.querySelectorAll(".order-list .order-list__item");q&&q[j]&&(q[j].classList.remove("drag-over"),N.current===q[j]&&(N.current=null))}catch{}},80)}catch{}}:void 0,onDrop:g?q=>W(j,q):void 0,onDragEnd:g?U:void 0,children:[n.jsx("span",{className:"order-list__item-text body-2",children:P.text}),g?n.jsxs("span",{className:"order-list__item-buttons",children:[n.jsx(me,{htmlType:"button",size:32,type:"dot",onClick:()=>w(j,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:j===0,useBorder:!1,useDisabledInvisible:!0}),n.jsx(me,{htmlType:"button",size:32,type:"dot",onClick:()=>w(j,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:j===y.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},P.id)})})})}const M3=8e3;function L3(e,t){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,t)})}function uc({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:s,onDone:i,onChange:l,context:u=[],selectable:c=!1,hideLabel:d=!1,hideAudio:m=!1,maxCards:p,playAllGapMs:f=0}){const{t:y}=_e.useTranslation(),x=s??y("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),h=o.useMemo(()=>Array.isArray(u)?u:u&&u.items||[],[u]),g=p??3,_=(h||[]).slice(0,g);(h||[]).length>g&&console.warn(`TrainingStepCard: ${h.length} items passed but only ${g} shown`);const C=typeof e=="number"?e:-1,w=typeof t!="number"?"disabled":C<t?"done":C===t?"active":"disabled",[b,B]=o.useState(null),v=o.useRef([]),[k,A]=o.useState(!1),N=o.useRef(null),E=o.useRef(!0);o.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);const D=o.useMemo(()=>h.map(I=>I?.id??I?.word??"").join("|"),[h]);o.useEffect(()=>{B(null)},[D]);const H=o.useRef(void 0);o.useEffect(()=>{const I=H.current;typeof I=="number"&&typeof t=="number"&&typeof e=="number"&&I>=e&&t<e&&B(null),H.current=t},[t,e]);const R=o.useCallback((I,Y)=>{if(c)return;const Z={item:I,index:Y,__ts:Date.now()};try{typeof l=="function"&&l(Z)}catch{}if(w==="active"&&typeof i=="function")try{i(Z)}catch{}},[c,l,w,i]),G=o.useRef(f);o.useEffect(()=>{G.current=Math.max(0,f||0)},[f]);const L=o.useCallback(async()=>{if(k||w==="disabled")return;A(!0);let I=!1;const Y=new Promise(Z=>{N.current=()=>{I=!0,Z()}});try{for(let Z=0;Z<_.length&&!(!E.current||I);Z++){const z=v.current[Z];if(!z)continue;await Promise.race([L3(z.play(),M3),Y]);const W=Math.max(0,G.current||0);W>0&&Z<_.length-1&&!I&&E.current&&await Promise.race([new Promise($=>{setTimeout($,W)}),Y])}}finally{N.current=null,A(!1)}},[k,w,_.length]),M=o.useCallback((I,Y)=>{if(w!=="active")return;B(Y);const Z={selectedValue:I.word||I.title||"",selectedIndex:Y,item:I,__ts:Date.now()};try{typeof l=="function"&&l(Z)}catch{}if(w==="active"&&typeof i=="function")try{i(Z)}catch{}},[l,w,i]);return n.jsx(Kn,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:x,onDone:i,titleProps:{usePlayAllBtn:!m&&_.length>0,onPlayAll:L,playAllActive:k},children:n.jsx("div",{className:"training-step__cards",onClickCapture:I=>{const Y=N.current;if(!Y)return;const Z=I.target;Z&&typeof Z.closest=="function"&&Z.closest(".training-word-card__bottom")&&Y()},children:_.length===0?n.jsx("div",{className:"training-step__empty",children:y("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):_.map((I,Y)=>n.jsx(So,{ref:Z=>{v.current[Y]=Z},item:I,disabled:w==="disabled",onPlayDone:()=>R(I,Y),selectable:c,selected:c&&b===Y,onSelect:c?()=>M(I,Y):void 0,flipDelay:Y*120,hideLabel:d,hideAudio:m},I&&I.id||Y))})})}const $3=160,R3={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function P3(e,t){const a=R3[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}const cc=()=>{};function Rn(e){const t=o.useId();if(!("variant"in e)){const{label:C,sub:w,onClick:b,children:B,align:v="horizontal",icon:k,useFullWidth:A=!1}=e,N=E=>{b&&E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),b())};return n.jsxs("div",{className:Ae("panel-row",v==="vertical"?"panel-row--vertical":"",A?"panel-row--label-fixed panel-row--fill":"",b?"panel-row--clickable":""),onClick:b,onKeyDown:b?N:void 0,role:b?"button":void 0,tabIndex:b?0:void 0,children:[k!=null&&n.jsx("div",{className:"panel-row__icon",children:k}),C!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:C}),w&&n.jsx("div",{className:"panel-row__sub caption-1",children:w})]}),n.jsx("div",{className:"panel-row__right",children:B})]})}if(e.variant==="description")return n.jsx("div",{className:"panel-row panel-row--block",children:n.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return n.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return n.jsx("div",{className:"panel-row panel-row--loading",children:n.jsx($a,{size:28})});if(e.variant==="custom"&&!e.label)return n.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:s,onClick:i,required:l,error:u,align:c="horizontal",useFullWidth:d=!1,icon:m}=e,p=a==="button"?void 0:i;let f=null;const y=a==="toggle"?`panel-toggle-${t}`:void 0,x=u?`panel-error-${t}`:void 0,h=`panel-helper-${t}`;if(a==="toggle"){const C=e;f=n.jsx(Ul,{checked:C.checked,onChange:C.onChange,id:y})}else if(a==="segmented"){const C=e;f=n.jsx(Bn,{options:C.options,value:C.value,onChange:C.onChange,size:C.size??40,ariaLabel:r})}else if(a==="dropdown"){const C=e,w=C.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:C.dropdowns.map((b,B)=>n.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:n.jsx(dn,{options:b.options,value:b.value,onChange:b.onChange,placeholder:b.placeholder,block:d,error:!!u,ariaDescribedBy:x,ariaLabel:b.ariaLabel??([r,b.placeholder].filter(Boolean).join(" ")||void 0)})},B))}):n.jsx(dn,{options:C.options??[],value:C.value??"",onChange:C.onChange??cc,block:d,error:!!u,ariaLabel:r,ariaDescribedBy:x});f=u?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[w,n.jsx("span",{id:x,className:"caption-1 panel-row__error",role:"alert",children:u})]}):w}else if(a==="button"){const C=e;C.buttons?.length?f=n.jsx("div",{className:"panel-row__button-group",children:C.buttons.map((w,b)=>n.jsx(me,{htmlType:"button",size:w.btnSize??40,variant:w.btnVariant??"default",disabled:w.disabled,onClick:w.onClick,children:w.label},b))}):f=n.jsx(me,{htmlType:"button",size:C.btnSize??40,variant:C.btnVariant??"default",disabled:C.disabled,onClick:C.onClick,children:C.buttonLabel})}else if(a==="text"){const C=e;f=n.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:C.valueColor?{color:C.valueColor}:void 0,children:C.value})}else if(a==="input"){const C=e;f=n.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[n.jsx(Gn,{value:C.value,onChange:C.onChange??cc,onKeyDown:C.onKeyDown,onEnter:C.onEnter,placeholder:C.placeholder,ghostText:C.ghostText,ghostHint:C.ghostHint,inputMode:C.inputMode,readOnly:C.readOnly,disabled:C.disabled,type:C.type,autoComplete:C.autoComplete,maxLength:C.maxLength,showCount:C.showCount,multiline:C.multiline,rows:C.rows,fullWidth:d,error:u,ariaLabel:r,required:l,ariaDescribedBy:C.helperText?h:void 0}),C.helperText&&n.jsx("div",{id:h,className:"panel-row__helper caption-1",children:C.helperText})]})}else a==="custom"&&(f=e.children);u&&a!=="input"&&a!=="dropdown"&&(f=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[f,n.jsx("span",{id:x,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const g=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,_=C=>{p&&C.target===C.currentTarget&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),p())};return n.jsxs("div",{className:Ae("panel-row",c==="vertical"?"panel-row--vertical":"",g?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",p?"panel-row--clickable":""),onClick:p,onKeyDown:p?_:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,children:[m!=null&&n.jsx("div",{className:"panel-row__icon",children:m}),n.jsxs("div",{className:"panel-row__left",children:[y?n.jsxs("label",{htmlFor:y,className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}):n.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}),s&&n.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),n.jsx("div",{className:"panel-row__right",children:f})]})}function dc(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function F3({devices:e,onRelease:t,emptyLabel:a}){const{t:r}=_e.useTranslation();return n.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(s=>{const i=e[s],l=s==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return n.jsxs("div",{className:"panel-row__device-column",children:[n.jsxs("div",{className:"panel-row__device-head",children:[n.jsx("span",{className:"panel-row__device-side body-2b",children:l}),i&&t&&n.jsx(me,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${l} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(s)})]}),i?n.jsxs("div",{className:"panel-row__device-info",children:[n.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&n.jsx(wt,{size:"small",variant:cu(i.device),fill:"soft",label:P3(i.device,r)}),dc(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:dc(i)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),No(i.wornYear,i.wornMonth,i.wornDay)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:No(i.wornYear,i.wornMonth,i.wornDay)})})]}):n.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},s)})})}function Cr({title:e,titleLevel:t=2,icon:a,disc:r,actions:s,size:i="medium",minHeight:l,maxWidth:u,className:c,scrollable:d,scrollbarGutter:m="auto",compactRows:p=!1,useBorder:f=!0,useBg:y=!0,useRowBorder:x=!0,labelWidth:h,form:g=!1,loading:_,empty:C,children:w}){const b=Ae("panel",`panel--${i}`,g?"panel--form":"",l!==void 0?"panel--fill":"",f?"":"panel--no-border",y?"":"panel--no-bg",x?"":"panel--no-row-border",p?"panel--compact-rows":"",c),B={};l!==void 0&&(B.minHeight=l),u!==void 0&&(B.maxWidth=typeof u=="number"?`${u}px`:u),h!==void 0&&(B["--panel-label-width"]=typeof h=="number"?`${h}px`:h);const v=t?`h${t}`:"div";return n.jsxs("div",{className:b,style:Object.keys(B).length?B:void 0,children:[(!!e||r!=null)&&n.jsxs("div",{className:Ae("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&n.jsx(tt,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[!!e&&n.jsx(v,{className:`panel__title ${r!=null?"body-3b":"h5b"}`,children:e}),r!=null&&n.jsx("p",{className:"panel__disc caption-1",children:r})]}),s&&n.jsx("div",{className:"panel__actions",children:s})]}),_?n.jsx(Rn,{variant:"loading"}):C!=null&&o.Children.toArray(w).length===0?n.jsx(Rn,{variant:"empty",children:C}):d?n.jsx("div",{className:Ae("panel__body--scroll",m==="stable"&&"panel__body--gutter-stable"),children:w}):w]})}function I3({cols:e=2,layout:t="grid",gap:a=1,collapseAt:r,className:s,style:i,children:l}){const u=o.useRef(null),[c,d]=o.useState();o.useEffect(()=>{const p=u.current;if(r===void 0||!p||(d(p.clientWidth),typeof ResizeObserver>"u"))return;const f=new ResizeObserver(([y])=>d(y.contentRect.width));return f.observe(p),()=>f.disconnect()},[r]);const m=r!==void 0&&c!==void 0&&c<=r;return n.jsx("div",{ref:u,className:Ae("panel-grid",t==="columns"&&"panel-grid--columns",s),style:{"--panel-grid-cols":m?1:e,"--panel-grid-gap":typeof a=="number"?`${a}px`:a,...i},children:l})}function O3(e){return[{label:e("training.noise.level.none","\uC5C6\uC74C"),value:0},{label:e("training.noise.level.weak","\uC57D\uD568"),value:1},{label:e("training.noise.level.medium","\uBCF4\uD1B5"),value:2},{label:e("training.noise.level.strong","\uAC15\uD568"),value:3},{label:e("training.noise.level.veryStrong","\uB9E4\uC6B0 \uAC15\uD568"),value:4}]}function pc(e){return[{label:e("training.noise.type.default","\uAE30\uBCF8"),value:"defaultNoise",icon:"party-popper"},{label:e("training.noise.type.street","\uAE38\uAC70\uB9AC"),value:"street",icon:"car"},{label:e("training.noise.type.buzz","\uC640\uAE00\uC640\uAE00"),value:"buzz",icon:"message-square-more"},{label:e("training.noise.type.restaurant","\uC2DD\uB2F9"),value:"restaurant",icon:"coffee"}]}O3(Tt.t.bind(Tt)),pc(Tt.t.bind(Tt));const Xo="none",H3=.5,z3=1.5,V3=.25;function Jo({title:e,valueLabel:t,value:a,min:r,max:s,step:i,tickStep:l,size:u,disabled:c,onChange:d}){return n.jsxs(Rn,{variant:"custom",label:e,useFullWidth:!0,children:[n.jsx(ou,{value:a,onChange:d,min:r,max:s,step:i,size:u,showBgTick:!0,tickStep:l,ariaLabel:e,disabled:c,className:"noise-settings__slider-input"}),n.jsx("div",{className:Ae("noise-settings__value","button-1",c?"noise-settings__value--disabled":""),children:t})]})}function mc({anchorRect:e,onClose:t}){const{t:a}=_e.useTranslation(),r=rn("(max-width: 767px)")?40:24,s=cr(),i=Fa(s?.settings??Oa),l=s?.settings.type??"defaultNoise",u=s?.settings.enabled??!0,c=s?.playbackRate??1,d=s?.mainVolume??1,m=Math.round(d*100),p=o.useCallback(h=>{try{s?.setMainVolume(Math.max(0,Math.min(1,h/100)))}catch{}},[s]),f=o.useCallback(h=>{try{s?.setPlaybackRate(h)}catch{}},[s]),y=o.useCallback(h=>{const g=Math.min(Pa,Math.max(0,Math.round(h*10)/10));try{s?.setSettings({noiseRatio:g})}catch{}},[s]),x=o.useCallback(h=>{try{h===Xo?s?.setSettings({enabled:!1}):s?.setSettings({type:h,enabled:!0})}catch{}},[s]);return n.jsx(un,{anchorRect:e,offset:12,onClose:t,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:n.jsxs("div",{className:"noise-settings__header",children:[n.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),n.jsx(me,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:t})]}),children:n.jsxs(Cr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[n.jsx(Jo,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${m}%`,value:m,min:0,max:100,step:10,size:r,onChange:p}),n.jsx(Jo,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${c.toFixed(2)}x`,value:c,min:H3,max:z3,step:V3,size:r,onChange:f}),n.jsx(Rn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:n.jsx(Bn,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Xo,label:a("training.noise.type.none","\uC5C6\uC74C")},...pc(a).map(h=>({key:h.value,label:h.label}))],value:u?l:Xo,onChange:x})}),n.jsx(Jo,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:Pa,step:Gu,size:r,disabled:!u,onChange:y})]})})}function hc({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:s=0,stepCount:i=0,pageIndex:l=0,pageCount:u=1,resultOpen:c=!1}){const{t:d}=_e.useTranslation(),[m,p]=o.useState(!1),[f,y]=o.useState(null),[x,h]=o.useState(!1),g=o.useRef(null),_=o.useRef(null),C=cr(),w=u>0,b=w&&l<u-1,B=!w||l>=u-1,v=s===Math.max(0,i);o.useEffect(()=>{e||(p(!1),y(null))},[e]);const k=o.useCallback(()=>{p(!1),y(null)},[]),A=o.useCallback(()=>{if(m){p(!1),y(null);return}const I=g?.current?.getBoundingClientRect();I&&y(I),t?.(),p(!0)},[m,t]),N=o.useCallback(()=>{if(m){p(!1),y(null);return}const I=_?.current?.getBoundingClientRect();I&&y(I),t?.(),p(!0)},[m,t]),E=rn("(max-width: 767px)"),D=o.useRef(null),[H,R]=o.useState(null),G=o.useCallback(()=>{h(I=>{const Y=!I;return R(Y?D.current?.getBoundingClientRect()??null:null),Y})},[]),L=o.useCallback(()=>{h(!1),R(null)},[]);o.useEffect(()=>{c&&(h(!1),R(null))},[c]);const M=n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.sentence","\uC7AC\uC0DD")}),n.jsx(Bo,{analyser:C?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.sentence","\uC7AC\uC0DD")})]}),n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.noise","\uC18C\uC74C")}),n.jsx(Bo,{analyser:C?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.noise","\uC18C\uC74C")})]})]});return sc(e&&m,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[g.current,_.current].map(I=>I?.querySelector("button")??null).find(I=>!!I&&I.getClientRects().length>0)??g.current?.querySelector("button")??null),n.jsxs("div",{className:"pp-bottom",children:[n.jsxs("div",{className:"pp-bottom__left",children:[e?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pp-bottom__settings--desktop",children:n.jsx("div",{ref:g,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(me,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:A,className:m?"is-selected":void 0,"aria-expanded":m,"aria-haspopup":"dialog",ariaLabel:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),n.jsx("div",{className:"pp-bottom__settings--mobile",children:n.jsx("div",{ref:_,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(me,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:N,className:m?"is-selected":void 0,"aria-expanded":m,"aria-haspopup":"dialog",ariaLabel:d("training.settings","\uC124\uC815")})})})]}):null,e&&n.jsx("div",{ref:D,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:n.jsx(me,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:G,selected:x,"aria-expanded":E?x:void 0,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&x&&!E&&n.jsx("div",{className:"pp-bottom__meters",children:M})]}),e&&x&&E&&H&&n.jsx(un,{anchorRect:H,onClose:L,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"),children:n.jsx("div",{className:"pp-bottom__meters pp-bottom__meters--floating",children:M})}),n.jsxs("div",{className:"pp-bottom__right",children:[B&&n.jsx(me,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!v}),b&&n.jsx(me,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!v})]}),e&&m&&n.jsx(mc,{anchorRect:f,onClose:k})]})}function Cc({title:e,subtitle:t,desc:a,depth:r,icon:s,wrapperStyle:i,iconTooltip:l,pageIndex:u,pageCount:c,progressMax:d,progressIndex:m,onBack:p,onClose:f}){const{t:y}=_e.useTranslation(),x=rn("(max-width: 767px)"),h=Number.isInteger(m)?m:u||0,g=Number.isInteger(d)?d:c||0,_=p||f,C=Array.isArray(r)?x?r[r.length-1]:r.join(" / "):r,w=typeof e=="string"?e.trim():e,b=typeof t=="string"?t.trim():t,B=!!(w||b),v=B?w||b:y("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),k=C||(w?t:void 0),A=x&&typeof k=="string"&&(k.includes(" \xB7 ")||k.includes(" / "))?k.split(/\s[·/]\s/).pop():k,N=o.useMemo(()=>{const E=i&&typeof i=="object"?{...i}:{};return!("width"in E)&&!("height"in E)&&(E.width="40px",E.height="40px"),E},[i]);return n.jsxs("header",{className:"pp-title training-popup-title",children:[n.jsxs("div",{className:"pp-title__left",children:[_?n.jsx(me,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:y("common.back","\uB4A4\uB85C"),onClick:_,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,n.jsx("div",{children:s?n.jsx(Pl,{icon:s,label:e,tooltip:l,wrapperStyle:N}):null}),n.jsxs("div",{className:"pp-title__text",children:[A?n.jsx("span",{className:"pp-title__depth caption-1",children:A}):null,n.jsx("span",{className:`pp-title__title h2${B?"":" pp-title__title--empty"}`,children:v}),a?n.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),n.jsx(uu,{max:Math.max(0,g??0),index:Math.max(0,h??0)})]})}function W3(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function q3(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(t=>typeof t=="string"?t.split("|").map(a=>a.trim()).filter(Boolean):t||t===0?[String(t)]:[]):typeof e=="string"?e.split("|").map(t=>t.trim()).filter(Boolean):[String(e)]}const fc=(e,t)=>{if(!t)return t;const a=typeof Tt?.t=="function"?Tt.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function gc(e,t,a){const r=e,s=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=gi().find(u=>u.key===(r?.category_0||r?.category_main_code)),l=i?.subs?.find(u=>u.key===(r?.category_1||r?.category_sub_code));return{title:s,label:r?.title||s,depth:t,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?fc(`topic.${i.key}`,i.label):void 0,l?fc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function Qo(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function bc(e,t,a){if(!e||typeof e!="object"||Array.isArray(e))return e;const r=e,s=typeof a=="number"&&a>0?a:Date.now();return{...r,...r.shownAt===void 0&&t?{shownAt:t}:{},...r.answeredAt===void 0?{answeredAt:new Date(s).toISOString()}:{}}}function U3(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function G3({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:i,buildResults:l,metaPatch:u}){const c=gc(t,a,r),d=typeof u=="function"?u(c)||{}:u||{},m=t?.id||t?.title||s.length;return{id:`${e}:${m}`,meta:{...c,...d},pages:s,emptyMessage:i,buildResults:l}}function K3(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function Y3(e){if(e&&typeof e=="object"){const t=e;if(Array.isArray(t.selectedValues))return t.selectedValues;if(t.selectedValue!==void 0)return t.selectedValue;if(t.selectedIndex!==void 0)return t.selectedIndex;if(t.value!==void 0)return t.value}return e}function Z3(e,t=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(t))return String(t[e]??"");if(typeof e=="string")return e}function yc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function X3(e,t,a,r){return yc(e,t*a+r)}function J3({payload:e,selected:t,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const s=e;if(Array.isArray(s.selectedValues))return r.every(i=>s.selectedValues.includes(i))&&s.selectedValues.every(i=>r.includes(i));if(typeof s.correct=="boolean")return s.correct}if(r.length){if(typeof t=="number"&&Array.isArray(a)&&a.length)return r.some(s=>String(s)===String(a[t]));if(typeof t<"u")return r.some(s=>String(s)===String(t))}}function Q3(e){return e?Array.isArray(e.items)?e.items.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const vc=o.createContext(null);function e7(){const e=o.useContext(vc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function t7({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:s,choices:i=[],onDone:l,onChange:u}){const{t:c}=_e.useTranslation(),d=typeof e=="number"?e:-1,m=typeof t!="number"?"disabled":d<t?"done":d===t?"active":"disabled",[p,f]=o.useState(()=>i.map(()=>null)),y=JSON.stringify(i),x=i.length;o.useEffect(()=>{f(Array.from({length:x},()=>null))},[y]);const h=o.useRef(void 0);o.useEffect(()=>{const w=h.current;typeof w=="number"&&typeof t=="number"&&typeof e=="number"&&w>=e&&t<e&&f(Array.from({length:x},()=>null)),h.current=t},[t,e,x]);const g=o.useMemo(()=>p.filter(w=>w!==null).length+1,[p]),_=o.useCallback(w=>{if(m!=="active")return;const b=p;let B;if(b[w]!=null){const k=b[w];B=b.map(A=>A!==null&&A>=k?null:A)}else B=[...b],B[w]=g;f(B);const v={selectedOrder:B,words:i,__ts:Date.now()};try{typeof u=="function"&&u(v)}catch{}if(b[w]==null&&B.length>0&&B.every(k=>k!==null))try{typeof l=="function"&&l(v)}catch{}},[m,p,g,u,l,i]),C=s??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return n.jsx(Kn,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:C,onDone:l,children:n.jsx("div",{className:"training-step__cards",children:i.map((w,b)=>n.jsx(So,{item:{word:w},disabled:m==="disabled",selectable:!0,selected:p[b]!==null,orderRank:p[b],onSelect:()=>_(b),flipDelay:b*120,hideLabel:!1,hideAudio:!0},`${w}-${b}`))})})}function fr(e){return null}fr.__isTrainingPage=!0;function ma(e,t){const a=e7();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof t=="number"?e===t-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function xc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l}=ma(e,t);return n.jsx(Yo,{...a,index:r,stepIndex:s,isLast:i,onDone:l})}function _c({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=ma(e,t);return n.jsx(Go,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function wc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=ma(e,t);return n.jsx(Ko,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function Bc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=ma(e,t);return n.jsx(Zo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function Ac({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=ma(e,t);return n.jsx(uc,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function n7({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=ma(e,t);return n.jsx(t7,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function es(...e){for(const t of e)if(typeof t=="string"){const a=t.trim();if(a.length)return a}else{if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)&&t.length)return t.join(", ");if(t&&typeof t=="object"){const a=t,r=[a.text,a.label,a.value];for(const s of r){if(typeof s=="string"&&s.trim().length)return s.trim();if(typeof s=="number"||typeof s=="boolean")return String(s)}}}return null}function a7(e){return es(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function kc(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const t=es(e?.status,e?.result,e?.judge,e?.note);if(t){const a=t.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function Nc(e){const{score:t,contextsLength:a,results:r=[],subtitle:s,onReplay:i,onClose:l,inline:u=!1,pending:c=!1}=e||{},{t:d}=_e.useTranslation(),m=o.useId(),p=o.useCallback(()=>!c,[c]);o.useEffect(()=>{const C=a??0;if(t!=null&&C>0&&t/C>.5){const w=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(w)}},[t,a]);const f=o.useCallback(C=>{const w=kc(C),b=es(C?.wording,C?.label);return w===!0?{variant:"main",label:b??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:w===!1?{variant:"danger",label:b??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:b??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),y=a??0,x=t??0,h=o.useMemo(()=>Array.isArray(r)?r:[],[r]),g=o.useMemo(()=>h.map(C=>{const w=C??{},b=a7(w)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:B,label:v}=f(w),k=Array.isArray(w.corrects)?w.corrects:[],A=k.length?k.join(", "):w.answer!=null&&w.answer!==""?String(w.answer):null,N=typeof w.selectedText=="string"?w.selectedText:null,E=kc(w)===!0;return{problem:b,variant:B,label:v,answer:A,selectedText:N,isCorrect:E}}),[h,f,d]),_=o.useMemo(()=>g.some(C=>C.answer!==null||C.selectedText!==null),[g]);return n.jsx($n,{onClose:l,closeOnBackdrop:!1,inline:u,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:p,footerClassName:"trp-result__foot",footer:({animateThen:C,closeWithAnimation:w})=>n.jsxs(n.Fragment,{children:[c&&n.jsx("p",{id:m,className:"trp-actions__reason caption-1",role:"status",children:d("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsxs("div",{className:"trp-actions",children:[n.jsx(me,{htmlType:"button",size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>C(i)}),n.jsx(me,{htmlType:"button",size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:w,disabled:c,onDisabledClick:c?()=>{}:void 0,"aria-describedby":c?m:void 0})]})]}),children:()=>n.jsxs("div",{className:"trp-result is-on",children:[n.jsxs("header",{className:"trp-result__head",children:[n.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),n.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),s&&n.jsx("p",{className:"trp-result__subtitle body-3",children:s}),n.jsx("div",{className:"trp-score",children:n.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:x,total:y}),children:[n.jsx("span",{className:"trp-score__big",children:x}),n.jsx("span",{className:"trp-score__sep",children:"/"}),n.jsx("span",{className:"trp-score__total",children:y})]})})]}),g.length>0&&n.jsx("section",{className:"trp-result__body",children:n.jsxs("div",{className:`result-table${_?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[n.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[n.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),_&&n.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),n.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),g.map((C,w)=>n.jsxs("div",{className:"result-table__row",role:"row",children:[n.jsxs("div",{className:"trp-row__problem",children:[n.jsx("span",{className:"trp-row__no caption-1",children:String(w+1).padStart(2,"0")}),n.jsx("div",{className:"trp-row__q body-2",children:C.problem})]}),_&&n.jsxs("div",{className:"trp-row__answers",children:[C.answer!==null&&n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),n.jsx("span",{className:"trp-row__answer-value body-2",children:C.answer})]}),n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${C.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),n.jsx("span",{className:`trp-row__answer-value body-2 ${C.isCorrect?"is-correct":"is-wrong"}`,children:C.selectedText??"\u2014"})]})]}),n.jsx("div",{className:"trp-row__judge",children:n.jsx(wt,{variant:C.variant,label:C.label,fill:"soft",minWidth:80})})]},w))]})})]})})}const ts=new Set;function r7(e){o.useEffect(()=>{if(!e||ts.has(e))return;ts.add(e);const t=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,s=0,i=0;const l=()=>{const m=Date.now();a==null&&(a=m),r==null&&(r=m)},u=()=>{r!=null&&(s+=Date.now()-r,r=null)};t()&&l();const c=()=>{if(u(),a==null||s-i<1e3||i===0&&s<5e3)return;const m=a+i;i=s,OC({trainingType:e,startedAt:new Date(m).toISOString(),endedAt:new Date(a+s).toISOString()})},d=()=>{t()?l():c()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",c),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",c),c(),ts.delete(e)}},[e])}function gr(e,t){return e&&e.id||`page-${t??0}`}function br(e,t){return e&&e.key||`step-${t??0}`}function yr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function o7(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const s7=300,i7=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Nn=Object.freeze({}),Dc=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function ns(e){const t=e,a=t?.results||t?.answers||[],r=Array.isArray(a)&&a.length>0?a.length:null,s=Array.isArray(a)?a.filter(i=>i?.correct===!0||i?.isCorrect===!0||i?.score===1||i?.heard===!0||i?.judgement===!0).length:null;return{results:a,correct:r!=null?s:null,total:r}}const l7=e=>n.jsx(Nc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function u7(e){const{scenario:t,title:a,subTitle:r,depth:s,icon:i,wrapperStyle:l,iconTooltip:u,pageIndex:c,pageCount:d,stepIndex:m,stepCount:p,onBack:f,onComplete:y,onRoundFinished:x,onNext:h,onSettings:g,useNoiseSetting:_=!0,children:C,ariaLabel:w,label:b,buildResults:B,onResult:v,typeKey:k,entryPoint:A,dailyTotal:N,itemRef:E,renderResultPopup:D,noiseOverride:H}=e;r7(k&&!Dc.has(k)?k:"");const R=o.useRef(0);o.useEffect(()=>{R.current=Date.now()},[]);const{t:G}=_e.useTranslation(),L=v,M=!!t,I=t?.id||null,Y=t?.meta||{},Z=Array.isArray(t?.pages)?t.pages:[],z=Array.isArray(C)||o.isValidElement(C)&&typeof C!="function"?o.Children.toArray(C).filter(o.isValidElement):[],W=z.length>0,$=ie=>ie===fr||ie?.__isTrainingPage===!0,U=W&&z.some(ie=>$(ie.type)),S=U?z.filter(ie=>$(ie.type)).map((ie,xe)=>{const je=ie.props||{};return{id:`children-page-${xe}`,steps:o.Children.toArray(je.children).filter(o.isValidElement),pageTop:je.pageTop||je.top||null,pageBottom:je.pageBottom||je.bottom||null}}):[{id:"children-page-0",steps:z}],P=W&&!M&&typeof C!="function",j=P?Math.max(1,S.length):0;o.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),o.useEffect(()=>{if(typeof document>"u"||!document.body)return;const ie=document.body;return ie.dataset.ihabTrainingPopupCount=String(Number(ie.dataset.ihabTrainingPopupCount||"0")+1),ie.classList.add("ihab-training-popup-open"),()=>{const xe=Number(ie.dataset.ihabTrainingPopupCount||"1")-1;xe>0?ie.dataset.ihabTrainingPopupCount=String(xe):(delete ie.dataset.ihabTrainingPopupCount,ie.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return z4()},[]);const[F,O]=o.useState({...Oa,enabled:!1}),q=o.useRef(F);o.useEffect(()=>{q.current=F},[F]);const Q=o.useRef(H),oe=o.useRef(!1),se=o.useRef(null);o.useEffect(()=>{let ie=!1;const xe=je=>{if(ie)return;oe.current=!0;const Je=je?Ia({...Oa,enabled:!1},je):{...Oa},Re=se.current;se.current=null;const qe=Re?Ia(Je,Re):Je;q.current=qe,O(qe),Re&&!Q.current&&pi(qe),Ga(qe);const Ze=Q.current;if(Ze){const J=typeof Ze=="function"?Ze(qe):Ze,ye=Ia(qe,J);q.current=ye,O(ye),Ga(ye)}};return WC().then(xe),()=>{ie=!0}},[]);const[te,le]=o.useState(null),[De,V]=o.useState(null),ne=o.useCallback((ie,xe)=>{ie==="main"?le(xe):V(xe)},[]),fe=o.useRef(null),Ee=o.useRef(null),ge=o.useCallback(()=>{Ee.current!==null&&(clearTimeout(Ee.current),Ee.current=null);const ie=fe.current;fe.current=null,ie&&pi(ie)},[]);o.useEffect(()=>{if(typeof window>"u")return;const ie=()=>{document.visibilityState==="hidden"&&ge()};return window.addEventListener("pagehide",ge),document.addEventListener("visibilitychange",ie),()=>{window.removeEventListener("pagehide",ge),document.removeEventListener("visibilitychange",ie),ge()}},[ge]);const ae=o.useCallback(ie=>{const xe=Ia(q.current,ie);if(q.current=xe,O(xe),!oe.current){se.current={...se.current??{},...ie},Ga(xe);return}Q.current||(fe.current=xe,Ee.current!==null&&clearTimeout(Ee.current),Ee.current=setTimeout(ge,s7)),Ga(xe)},[ge]),de=F.mainSpeed,pe=F.mainVolume,he=o.useCallback(ie=>ae({mainSpeed:ie}),[ae]),be=o.useCallback(ie=>ae({mainVolume:ie}),[ae]),Pe=o.useMemo(()=>({settings:F,setSettings:ae,registerAnalyser:ne,mainAnalyser:te,noiseAnalyser:De,playbackRate:de,setPlaybackRate:he,mainVolume:pe,setMainVolume:be}),[F,ae,ne,te,De,de,he,pe,be]),$e=o.useRef(null),[Ie,Fe]=o.useState(0),Oe=o.useRef([]),[dt,lt]=o.useState("center"),[ot,ct]=o.useState(!1),ke=o.useRef(!1),He=o.useRef(null),Be=o.useCallback(ie=>{ke.current||(ke.current=!0,ct(!0),He.current=setTimeout(()=>{try{ie()}catch{ke.current=!1,ct(!1)}},i7()?0:$3))},[]);o.useEffect(()=>()=>{He.current&&clearTimeout(He.current)},[]);const Xe=o.useRef(f);o.useEffect(()=>{Xe.current=f}),o.useEffect(()=>{const ie=$e.current,xe=document.activeElement;if(Yr(ie,xe),ie){const je=Array.from(ie.querySelectorAll(Cn)).filter(Je=>!Je.closest('[aria-hidden="true"]'))[0];if(je)try{je.focus()}catch{}}return()=>{const je=document.activeElement;if(!je||je===document.body||ie&&ie.contains(je))try{Zr(xe)?.focus?.()}catch{}}},[]),o.useEffect(()=>Vn(()=>Be(()=>{const ie=Xe.current;typeof ie=="function"&&ie()})),[Be]),Gr($e,!0);const[X,ue]=o.useState(!1),we=o.useRef(!1),[Ne,Ve]=o.useState(null),et=o.useRef(0),pt=o.useRef(0),ut=()=>{et.current+=1,pt.current+=1,Ve(null)},[ft,gt]=o.useState(""),[Qe,Ue]=o.useState(()=>yr()),We=o.useRef(typeof c=="number"?c:null);o.useEffect(()=>{!M&&!P||(Ue(yr()),ut())},[M,I,P]),o.useEffect(()=>{P&&Ue(ie=>{const xe=Math.max(0,Math.min(ie.pageIndex,Math.max(0,j-1)));return xe!==ie.pageIndex?{...ie,pageIndex:xe,stepIndex:0}:ie})},[P,j]);const Ke=P?Math.max(0,Math.min(Qe.pageIndex,j-1)):0,rt=P?S[Ke]:null,bt=P&&rt&&Array.isArray(rt.steps)?rt.steps:[],Ye=M?Qe.pageIndex:P?Ke:typeof c=="number"?c:0,ht=M?Z[Math.max(0,Math.min(Qe.pageIndex,Math.max(0,Z.length-1)))]:null,Nt=M&&ht&&Array.isArray(ht.steps)?ht.steps:[],Et=M?Nt.length:P?bt.length:typeof p=="number"?p:0,Me=M||P?Math.max(0,Math.min(Qe.stepIndex,Math.max(0,Et))):typeof m=="number"?m:0,nt=M?Z.length:P?j:typeof d=="number"?d:0;o.useEffect(()=>{if(!M&&!P)return;const ie=M?gr(ht,Ye):rt?.id||`children-page-${Ye??0}`,xe=new Date().toISOString();for(let je=0;je<=Me;je+=1){const Je=M?br(Nt[je],je):`step-${je}`,Re=Bt(ie,Je);at.current.has(Re)||at.current.set(Re,xe)}},[M,P,Ye,Me,rt?.id]),o.useLayoutEffect(()=>{const ie=We.current;if(typeof Ye=="number"&&ie!==null&&Ye!==ie&&Ye>ie)try{gt(G("training.problemNotice",{n:Ye+1}))}catch{}We.current=typeof Ye=="number"?Ye:We.current},[Ye,c,G]),o.useLayoutEffect(()=>{const ie=$e.current;if(!ie)return;const xe=()=>ie.querySelector(".page-popup__scroll");let je=null,Je=null,Re=null;const qe=ve=>{const Te=xe();if(!Te)return;const ze=Te.scrollHeight<=Te.clientHeight;if(lt(ze?"center":"top"),ve&&!we.current){we.current=!0;try{ue(!0)}catch{}try{ye.disconnect()}catch{}}},Ze=()=>{je!==null&&cancelAnimationFrame(je),je=requestAnimationFrame(()=>{Je!==null&&clearTimeout(Je),Je=setTimeout(()=>qe(!0),60)})},J=()=>{Re!==null&&cancelAnimationFrame(Re),Re=requestAnimationFrame(()=>qe(!1))};Ze(),window.addEventListener("resize",J);const ye=new MutationObserver(Ze);ye.observe(ie,{childList:!0,subtree:!0,attributes:!0});const re=setTimeout(()=>{we.current||qe(!0)},400);return()=>{window.removeEventListener("resize",J),je!==null&&cancelAnimationFrame(je),Je!==null&&clearTimeout(Je),Re!==null&&cancelAnimationFrame(Re),clearTimeout(re);try{ye.disconnect()}catch{}}},[$e]);const Lt=o.useCallback(ie=>{$e.current&&($e.current._childOnNext=ie)},[]),Xt=o.useCallback(ie=>{$e.current&&($e.current._childOnResult=ie)},[]),at=o.useRef(new Map),Bt=(ie,xe)=>`${ie}\0${xe}`,At=o.useCallback((ie,xe,je)=>{Ue(Je=>{const Re=Je.answersByPage[ie]||{},qe=Re[xe],Ze=Qo(je),J=Qo(qe);if(qe&&J>Ze)return Je;const ye=bc(je,at.current.get(Bt(ie,xe)),Ze);return{...Je,answersByPage:{...Je.answersByPage,[ie]:{...Re,[xe]:ye}}}})},[Ue]),vt=o.useCallback((ie,xe,je)=>{const Je=gr(ht,Ye),Re=br(ie,xe);At(Je,Re,je)},[ht,Ye,At]),an=o.useCallback((ie,xe,je)=>{const Je=gr(ht,Ye),Re=br(ie,xe);At(Je,Re,je),!je?.allowChange&&ie?.autoAdvance!==!1&&Ue(qe=>({...qe,stepIndex:Math.max(qe.stepIndex,xe+1)}))},[ht,Ye,At,Ue]),gn=o.useCallback((ie,xe)=>{const je=rt?.id||`children-page-${Ye??0}`,Je=typeof xe=="number"?xe:Me??0,Re=`step-${Je}`;At(je,Re,ie),ie?.allowChange||Ue(qe=>({...qe,stepIndex:Math.max(qe.stepIndex,Je+1)}))},[rt,Ye,Me,At,Ue]),pn=o.useCallback((ie,xe)=>{const je=rt?.id||`children-page-${Ye??0}`,Je=`step-${typeof xe=="number"?xe:Me??0}`;At(je,Je,ie)},[rt,Ye,Me,At]),mn=P?{currentPageIndex:Ye??0,currentStepIndex:Me??0,totalStepsInPage:bt.length,handleStepDone:gn,handleStepChange:pn}:null,Dn=async()=>{const ie=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:Z,flowState:Qe,answersByPage:Qe.answersByPage})):null;return typeof L=="function"&&await Promise.resolve(L(ie))||ie},Fn=async()=>{const ie=rt?.id||`children-page-${Qe.pageIndex}`,xe=Qe.answersByPage[ie]||{},je=U?(()=>{const qe={};let Ze=0;return S.forEach(J=>{const ye=Qe.answersByPage[J.id]||{},re=Array.isArray(J.steps)?J.steps.length:0;for(let ve=0;ve<re;ve+=1){const Te=ye[`step-${ve}`];typeof Te<"u"&&(qe[`step-${Ze+ve}`]=Te)}Ze+=re}),qe})():xe;if(typeof B=="function"){const qe=await Promise.resolve(B(je,{pageAnswers:xe,answersByPage:Qe.answersByPage,pages:S,currentPageId:ie}));return typeof L=="function"&&await Promise.resolve(L(qe))||qe}const Je=Object.entries(xe).map(([qe,Ze],J)=>({index:J,key:qe,payload:Ze})),Re={results:Je,answers:Je,score:0};return typeof L=="function"&&await Promise.resolve(L(Re))||Re},bn=()=>{const ie=++et.current,xe=()=>ie!==et.current;try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(M){const Re=Dn();Ve(Nn);const qe=Re;Promise.resolve(qe).then(Ze=>{xe()||Ve(Ze||{isEmpty:!0})}).catch(Ze=>{!xe()&&Ve({isEmpty:!0})});return}if(P){const Re=Fn();Ve(Nn);const qe=Re;Promise.resolve(qe).then(Ze=>{xe()||Ve(Ze||{isEmpty:!0})}).catch(Ze=>{!xe()&&Ve({isEmpty:!0})});return}const je=$e.current&&$e.current._childOnResult,Je=Re=>{try{return Re?Re():void 0}catch{return}};if(typeof je=="function"){const Re=Je(je);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Re&&typeof Re.then!="function"?Ve(Re):Ve(Re&&typeof Re.then=="function"?Nn:{});const qe=()=>{xe()||Ve(Ze=>Ze===Nn?{}:Ze)};Promise.resolve(Re).then(Ze=>{Ze&&!xe()?Ve(Ze):qe()}).catch(Ze=>{qe()});return}if(typeof L=="function"){const Re=Je(L);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Re&&typeof Re.then!="function"?Ve(Re):Ve(Re&&typeof Re.then=="function"?Nn:{});const qe=()=>{xe()||Ve(Ze=>Ze===Nn?{}:Ze)};Promise.resolve(Re).then(Ze=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Ze&&!xe()?Ve(Ze):qe()}).catch(Ze=>{console.error("viewResults external handler failed",Ze),qe()});return}},zt=()=>{if(M){if(typeof Ye=="number"&&typeof nt=="number"&&Ye<nt-1){Ue(xe=>({...xe,pageIndex:xe.pageIndex+1,stepIndex:0}));return}return bn()}if(P){const xe=bt.length;if(typeof Me=="number"&&Me<xe-1){Ue(je=>({...je,stepIndex:je.stepIndex+1}));return}if(typeof Ye=="number"&&typeof nt=="number"&&Ye<nt-1){Ue(je=>({...je,pageIndex:je.pageIndex+1,stepIndex:0}));return}return bn()}if(typeof h=="function"){try{h()}catch{}return}const ie=$e.current&&$e.current._childOnNext;if(typeof ie=="function"){try{ie()}catch{}return}},on=M?Y.title||Y.label||w||G("common.popup","\uD31D\uC5C5"):a||b||(Array.isArray(s)?s[s.length-1]:void 0)||w||G("common.popup","\uD31D\uC5C5"),Vt=w||on,Rt=M?Y.title??Y.label??on:a??b??on,En=(ie,xe)=>{const je=gr(ht,Ye),Je=br(ie,xe),Re=Qe.answersByPage[je]?.[Je],qe=o7(ie,{page:ht,pageIndex:Ye,step:ie,stepIndex:xe,storedPayload:Re,answersByPage:Qe.answersByPage,flowState:Qe}),Ze={key:Je,index:xe,stepIndex:Me,isLast:xe===Nt.length-1};switch(ie?.type){case"listen":return n.jsx(Yo,{...Ze,...qe,onDone:J=>an(ie,xe,J)});case"confirm":return n.jsx(Go,{...Ze,...qe,onDone:J=>an(ie,xe,J),onChange:J=>vt(ie,xe,J)});case"confirmWithText":return n.jsx(Ko,{...Ze,...qe,onDone:J=>an(ie,xe,J),onChange:J=>vt(ie,xe,J)});case"orderList":return n.jsx(Zo,{...Ze,...qe,onDone:J=>an(ie,xe,J),onChange:J=>vt(ie,xe,J)});default:return null}},Jt=o.useRef(void 0);o.useEffect(()=>{const ie=Jt.current;if(Jt.current=Ye,ie===void 0||ie===Ye||!or())return;const xe=$e.current;if(!xe)return;const je=document.activeElement;if(!(!je||je===document.body||!xe.contains(je)||je.disabled===!0))return;const Je=xe.querySelector(`.training-steps ${Cn.split(", ").join(", .training-steps ")}`)??Array.from(xe.querySelectorAll(Cn)).find(Re=>!Re.closest('[aria-hidden="true"]'));try{Je?.focus()}catch{}},[Ye]);const Sn=M?Z.length>0?n.jsx("div",{className:"training-steps",children:Nt.map((ie,xe)=>En(ie,xe))},`replay-${Ie}`):n.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:n.jsx("div",{className:"pp-empty",children:t?.emptyMessage||G("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,In=P?n.jsxs(vc.Provider,{value:mn,children:[rt?.pageTop?n.jsx("div",{className:"training-page-top",children:rt.pageTop}):null,n.jsx("div",{className:"training-steps",children:bt.map((ie,xe)=>{const je=ie;return o.cloneElement(je,{...je.props,_stepIndex:xe,_totalSteps:bt.length,_stepKey:`step-${xe}`,_pageIndex:Ye})})},`replay-${Ie}`),rt?.pageBottom?n.jsx("div",{className:"training-page-bottom",children:rt.pageBottom}):null]}):null,hn=o.useRef(-1),jt=o.useCallback(()=>{if(!k)return;const ie=Ne,{results:xe,correct:je,total:Je}=ns(Ne),Re={correct:je,total:Je,attempt:Oe.current.length+1,previousAttempts:[...Oe.current]};if(hn.current===pt.current)return Re;hn.current=pt.current,HC({items:VC(xe),category:Dc.has(k)?"sentence":"word",trainingType:k,entryPoint:A??"sentence",itemRef:E??null,correct:je,total:Je,score:typeof ie?.score=="number"?ie.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-R.current)/1e3)),dailyTotal:N??null});try{x?.(Re)}catch{}return Re},[k,A,N,E,Ne,x]);o.useEffect(()=>{!Ne||Ne===Nn||Ne?.isEmpty||(ns(Ne).total??0)>0&&jt()},[Ne,jt]);const Pt=o.useCallback(()=>{const ie=jt();ut(),Be(()=>{typeof y=="function"&&y(ie),typeof f=="function"&&f()})},[y,f,jt,Ve,Be]),Wt=o.useCallback(()=>gt(""),[gt]),sn=o.useCallback(()=>{Be(()=>{typeof f=="function"&&f()})},[f,Be]),Ft=n.jsxs("div",{className:`page-popup${ot?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Vt,children:[n.jsxs("div",{ref:$e,className:`page-popup__panel ${X?"":"page-popup__panel--measuring"} ${dt==="center"?"page-popup__panel--center":dt==="top"?"page-popup__panel--top":""}`,children:[n.jsx(Cc,{title:Rt,subtitle:M?Y.subtitle||Y.label:Array.isArray(s)?s.join(" / "):void 0,desc:M?void 0:r,depth:M?Y.depth:s,icon:M?Y.icon:i,wrapperStyle:M?Y.wrapperStyle:l,iconTooltip:M?Y.iconTooltip:u,progressMax:nt,progressIndex:Ye,pageIndex:Ye,pageCount:nt,onBack:sn,onClose:sn}),n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content ${dt==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:P?In:M?Sn:typeof C=="function"?C({registerOnNext:Lt,registerOnResult:Xt,panelRef:$e,setResultOverlay:Ve}):C})}),n.jsx(hc,{onSettings:g,onNext:zt,onResult:bn,useNoiseSettingBtn:!!(M?Y.useNoiseSetting??!0:_),stepIndex:Me,stepCount:Et,pageIndex:Ye,pageCount:nt,resultOpen:!!(Ne&&!Ne.isEmpty)})]}),Ne&&!Ne.isEmpty&&(D??l7)({score:Ne.score,results:Ne.results||Ne.answers||[],contextsLength:Ne.results?Ne.results.length:Ne.answers?Ne.answers.length:0,onReplay:()=>{if(R.current=Date.now(),Ne!==Nn){const{correct:ie,total:xe}=ns(Ne);Oe.current.push({correct:ie,total:xe})}if(ut(),Fe(ie=>ie+1),M){if(Ue(yr()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(P){Ue(yr());return}try{const ie=$e.current&&$e.current._childOnResult;typeof ie=="function"&&ie({replay:!0})}catch{}},onClose:Pt,pending:Ne===Nn}),Ne?.isEmpty&&n.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":G("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:n.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:n.jsx("div",{className:"page-popup__empty",children:G("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),n.jsx("div",{className:"page-popup__bottom",children:n.jsx(me,{htmlType:"button",variant:"main",size:48,onClick:Pt,label:G("training.result.done","\uC644\uB8CC")})})]})}),n.jsx(sa,{message:ft,position:"top",onClose:Wt})]}),Qt=n.jsx(Ho.Provider,{value:Pe,children:Ft});return typeof document<"u"&&document.body?en.createPortal(Qt,document.body):Qt}const Pn=u7;Pn.Page=fr,Pn.ListenStep=xc,Pn.ConfirmStep=_c,Pn.ConfirmWithTextStep=wc,Pn.OrderListStep=Bc,Pn.CardStep=Ac,Pn.CardOrderStep=n7;function c7({label:e,homonum:t}){const a=Qn()?.(e,t)??"",{imgRef:r,loading:s,hasImage:i,onLoad:l,onError:u}=Eo(a);return i?n.jsxs("div",{className:"tooltip-word-image__cell",children:[s&&n.jsx("div",{className:"tooltip-word-image__spinner"}),n.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:s?0:1},onLoad:l,onError:u})]}):n.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:n.jsx("span",{children:e})})}function Ec({words:e,anchorRect:t}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,u=window.innerWidth;let c=t.left+t.width/2-i/2,d=t.top-l-8;d<8&&(d=t.bottom+8),c=Math.max(8,Math.min(c,u-i-8)),s({left:c,top:d})},[t]),!t||e.length===0?null:en.createPortal(n.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:n.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>n.jsx(c7,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const d7=new Intl.Collator("ko");function p7({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:s,groups:i,selected:l=[],onSelect:u,maxSelect:c,onClearSelection:d,onPrint:m,onPrintEmpty:p,className:f,emptyHint:y,sectionType:x="page",disc:h}){const{t:g,i18n:_}=_e.useTranslation(),C=_.language?.startsWith("ko")??!1,{anchorRect:w,openAt:b,close:B}=Aa(),[v,k]=o.useState(null),A=o.useCallback(()=>{B(),k(null)},[B]);_b(A,!!v);const N=(r??"").trim(),E=/^[^,[\]\s]+$/.test(N)?N:"",D=E.length>0,H=r===void 0&&t===void 0,R=D?"match":H?"original":"ganada",[G,L]=o.useState(()=>R),[M,I]=o.useState("50"),[Y,Z]=o.useState(1),[z,W]=o.useState(D);z!==D&&(W(D),L(R));const $=G==="match"&&!D||G==="original"&&!H?R:G,U=o.useMemo(()=>[...D?[{value:"match",label:g("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...H?[{value:"original",label:g("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:g("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:g("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:g("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:g("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:g("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:g("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[g,D,H]),S=o.useMemo(()=>["10","25","50","100"].map(ae=>({value:ae,label:g("wordSearch.pageSize",{count:Number(ae),defaultValue:`${ae}\uAC1C\uC529 \uBCF4\uAE30`})})),[g]),P=ae=>ae.words?.[0],j=o.useMemo(()=>{const ae=[...E].length,de=BC(E),pe=new Map;return he=>{let be=pe.get(he);return be===void 0&&(be=de((he.words?.[0]?.label??"").slice(0,ae))?0:1,pe.set(he,be)),be}},[E]),F=o.useCallback((ae,de)=>{const pe=Pe=>P(Pe)?.label??"",he=Pe=>P(Pe)?.syllables??[...pe(Pe)].length,be=Pe=>(Pe.words??[]).reduce(($e,Ie)=>{const Fe=parseInt(Ie.grade??"",10);return Number.isFinite(Fe)&&Fe<$e?Fe:$e},999);switch($){case"match":return j(ae)-j(de)||d7.compare(pe(ae),pe(de));case"ganada":return pe(ae).localeCompare(pe(de),"ko");case"ganada_desc":return pe(de).localeCompare(pe(ae),"ko");case"syllable":return he(ae)-he(de)||pe(ae).localeCompare(pe(de),"ko");case"syllable_desc":return he(de)-he(ae)||pe(ae).localeCompare(pe(de),"ko");case"grade":return be(ae)-be(de)||pe(ae).localeCompare(pe(de),"ko");case"grade_desc":return be(de)-be(ae)||pe(ae).localeCompare(pe(de),"ko");default:return 0}},[$,j]),O=o.useMemo(()=>s.slice().sort(F),[s,F]),q=Number(M)||10,Q=o.useMemo(()=>(i??[]).flatMap(ae=>ae.items.slice().sort(F).map(de=>({item:de,label:ae.label}))),[i,F]),oe=i?Q.length:O.length,se=Math.max(1,Math.ceil(oe/q)),te=Math.min(Y,se),le=o.useMemo(()=>O.slice((te-1)*q,te*q),[O,te,q]),De=o.useMemo(()=>{if(!i)return null;const ae=Q.slice((te-1)*q,te*q),de=new Map;for(const{item:pe,label:he}of ae)de.has(he)||de.set(he,[]),de.get(he).push(pe);return[...de.entries()].map(([pe,he])=>({label:pe,items:he}))},[i,Q,te,q]);o.useEffect(()=>{Z(1)},[G,M,oe,r]);const V=oe>0?n.jsxs("div",{className:"word-search-result-block__toolbar",children:[n.jsx(dn,{size:40,options:U,value:$,onChange:L,ariaLabel:g("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),n.jsx(dn,{size:40,options:S,value:M,onChange:I,ariaLabel:g("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),n.jsx(nr,{page:te,totalPages:se,onChange:Z})]}):void 0,ne=ae=>{u&&u(ae)},fe=t!==void 0&&a?n.jsxs(n.Fragment,{children:[g("wordSearch.resultTitlePrefix","\uCD1D "),n.jsx("span",{style:{color:"var(--color-main)"},children:t}),g("wordSearch.resultTitleSuffix",{unit:C?LC(a):a})]}):void 0,Ee=t!==void 0&&t>0&&c!==void 0&&a?g("wordSearch.resultDisc",{unit:C?RC(a):a,max:c,selected:l.length}):void 0,ge=h??Ee;return n.jsxs(la,{type:x,className:Ae("word-search-result-block",f),children:[n.jsxs("div",{className:"word-search-result-block__inner",children:[(fe||V||ge)&&n.jsxs("div",{className:"word-search-result-block__head",children:[n.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&n.jsx(tt,{icon:e,className:"word-search-result-block__head-icon"}),fe&&n.jsx("span",{className:"word-search-result-block__title h3",children:fe})]}),V&&n.jsx("div",{className:"word-search-result-block__head-actions",children:V}),ge&&n.jsx("div",{className:"word-search-result-block__head-disc body-3",children:ge})]}),(i?i.length===0:s.length===0)&&n.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[n.jsx("p",{className:"word-search-result-block__empty body-3",children:g("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),y&&n.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:y})]}),i?(De??[]).map(ae=>n.jsx("div",{className:"word-search-result-block__group",children:n.jsx("div",{className:"word-search-result-block__items",children:ae.items.map(de=>{const pe=l.includes(de.id);return n.jsx("div",{onMouseEnter:he=>{b(he.currentTarget),k(de.words??[])},onMouseLeave:A,children:n.jsx(me,{htmlType:"button",size:"word",align:"grid",label:(de.words??[]).map(he=>he.label),subLabel:(de.words??[]).some(he=>he.subLabel)?(de.words??[]).map(he=>he.subLabel):void 0,selected:pe,onClick:()=>ne(de.id),minWidth:200})},de.id)})})},ae.label)):n.jsx("div",{className:"word-search-result-block__items",children:le.map(ae=>{const de=l.includes(ae.id);return n.jsx("div",{onMouseEnter:pe=>{b(pe.currentTarget),k(ae.words??[])},onMouseLeave:A,children:n.jsx(me,{htmlType:"button",size:"word",align:"grid",label:(ae.words??[]).map(pe=>pe.label),subLabel:(ae.words??[]).some(pe=>pe.subLabel)?(ae.words??[]).map(pe=>pe.subLabel):void 0,selected:de,onClick:()=>ne(ae.id),minWidth:200})},ae.id)})}),v&&w&&n.jsx(Ec,{words:v,anchorRect:w})]}),se>1&&n.jsx("div",{className:"word-search-result-block__pagination-bottom",children:n.jsx(nr,{page:te,totalPages:se,onChange:Z})}),(d||m)&&n.jsxs("div",{className:"word-search-result-block__actions",children:[d&&n.jsx(me,{htmlType:"button",size:"56",type:"bar",label:g("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),m&&n.jsx("div",{onClick:l.length===0?p:void 0,children:n.jsx(me,{htmlType:"button",size:"56",type:"bar",variant:"main",label:g("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:m})})]})]})}function m7(e,t){return t.map(a=>{const r=typeof a=="string"?a:a.label,s=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:s}})}function h7({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:s=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:u,onSelect:c,placeholder:d="-",className:m,title:p,titleIcon:f,disc:y,showInfoButton:x=!0,onClearPhoneme:h,onSearch:g,onSearchEmpty:_,searchDisabled:C=!1,searchLabel:w,searchChecking:b=!1,pairMode:B=!1,sectionType:v="page",beforeSearchContent:k,beforeContent:A,afterContent:N,hideCountControl:E=!1,ordinal:D=!1}){const{t:H}=_e.useTranslation(),R=o.useMemo(()=>H("wordPairs.infoNotes",{returnObjects:!0}),[H]),G=o.useMemo(()=>Array.from({length:s-i+1},(j,F)=>{const O=i+F;return{key:String(O),label:H("wordPairs.count",{n:O})}}),[H,s,i]),L=o.useMemo(()=>H("wordPairs.ordinals",{returnObjects:!0}),[H]),M=o.useCallback(j=>D?H("wordPairs.phonemeOrdinalLabel",{ordinal:L[j-1]??j}):a===1?H("wordPairs.phonemeSingleLabel","\uC74C\uC808"):H("wordPairs.phonemeN",{n:j}),[D,L,a,H]),I=o.useCallback(j=>D?H("wordPairs.phonemeContrastOrdinalLabel",{ordinal:L[j-1]??j}):a===1?H("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):H("wordPairs.phonemeContrast",{n:j}),[D,L,a,H]),Y=o.useCallback((j,F)=>F?n.jsxs(n.Fragment,{children:[j,n.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):j,[]),{anchorRect:Z,toggleAt:z,close:W}=Aa(),$=o.useCallback(j=>r(Number(j)),[r]),U=rn("(max-width: 767px)"),S=o.useCallback(j=>m7(j,e).map(({label:F,value:O,displayLabel:q})=>{const Q=!!O&&O!=="\uC5C6\uC74C";return n.jsxs("span",{className:Ae("phoneme-select-block__cell-jamo-part",O?"":"phoneme-select-block__cell-jamo-part--empty",Q?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[n.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${O==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:O==="\uC5C6\uC74C"?"x":O||d}),Q&&n.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:q??F})]},F)}),[e,d]),P=n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-tooltip-ignore":!0,children:n.jsx(me,{htmlType:"button",size:40,type:U?"dot":void 0,icon:"info",label:U?void 0:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:Z?"is-selected":void 0,"aria-expanded":!!Z,"aria-haspopup":"dialog",onClick:j=>z(j.currentTarget)})}),Z&&n.jsx(Wn,{title:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:R,anchorRect:Z,onClose:W})]});return n.jsxs(la,{type:v,title:p,icon:f,disc:y,action:x?P:void 0,className:Ae("phoneme-select-block",m),children:[A,!E&&n.jsx("div",{className:"phoneme-select-block__controls",children:n.jsx(Bn,{options:G,value:String(a),onChange:$,size:40,ariaLabel:H("wordPairs.countLabel","\uC74C\uC18C \uAC1C\uC218"),className:"phoneme-select-block__count-control"})}),n.jsx("div",{className:"phoneme-select-block__cells",children:B?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((j,F)=>{const O=t[F*2]??{};return n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:S(O)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:M(F+1)})]},F)})}),n.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:H("wordPairs.phonemeSelect.vs","\uB300")}),n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((j,F)=>{const O=t[F*2+1]??{};return n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:S(O)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:I(F+1)})]},F)})})]}):t.map((j,F)=>n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:S(j)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:M(F+1)})]},F))}),(l||u)&&n.jsx("div",{className:"phoneme-select-block__panels",children:n.jsx("div",{className:"phoneme-select-block__detail",children:B?n.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((j,F)=>{const O=t[F*2]??{};return n.jsx(kn,{title:Y(M(F+1),F===0),sections:u?u(O,F*2):l,selected:O,onSelect:c?.(F*2),align:"newline"},F)})}),n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((j,F)=>{const O=t[F*2+1]??{};return n.jsx(kn,{title:I(F+1),sections:u?u(O,F*2+1):l,selected:O,onSelect:c?.(F*2+1),align:"newline"},F)})})]}):t.map((j,F)=>n.jsx(kn,{title:Y(M(F+1),F===0),sections:u?u(j,F):l,selected:j,onSelect:c?.(F),align:"newline"},F))})}),k&&n.jsx("div",{className:"phoneme-select-block__before-search",children:k}),(h||g||b)&&(()=>{const j=t.every(F=>Object.entries(F).every(([O,q])=>!q||O==="\uC885\uC131"&&q==="\uC5C6\uC74C"));return n.jsxs("div",{className:"phoneme-select-block__search-row",onClick:j?_:void 0,children:[h&&n.jsx(me,{htmlType:"button",size:"56",type:"bar",label:H("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:j,onClick:j?void 0:h}),g?n.jsx(me,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:b?n.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:w??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:j||C||b,onDisabledClick:b?()=>{}:void 0,"aria-busy":b||void 0,onClick:g}):b?n.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[n.jsx("div",{className:"phoneme-select-block__spinner"}),n.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:w??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),N]})}function C7({title:e,sections:t,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,headerAction:d,className:m}){const{t:p}=_e.useTranslation();return n.jsx(kn,{className:m,title:e??p("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,headerAction:d,align:"inline"})}function f7({title:e,headerAction:t,sections:a,selected:r,onSelect:s,className:i}){const{t:l}=_e.useTranslation();return a.length===0?null:n.jsx(kn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:s,align:"newline"})}function g7({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:i,onPositionCountChange:l,inputMode:u,onInputModeChange:c,className:d}){const{t:m}=_e.useTranslation(),p={searchMode:m("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:m("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:m("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:m("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:m("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:m("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:m("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:m("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:m("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:m("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:m("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},f=g=>m("wordPairs.count",{n:g}),y=[{label:p.searchMode,items:[p.include,p.pick,p.explicit],display:"segmented",labelAction:n.jsx(ja,{title:m("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[m("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),m("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),m("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:p.phonemeOrder,items:[p.orderAny,p.orderMatch],display:"segmented",labelAction:n.jsx(ja,{items:m("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:p.count,items:[f(1),f(2)],display:"segmented"},{label:p.inputMode,items:[p.charInput,p.pronInput],display:"segmented",labelAction:n.jsx(ja,{title:m("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[m("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),m("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],x={[p.searchMode]:t==="explicit"?p.explicit:t==="pick"?p.pick:p.include,[p.phonemeOrder]:r==="ordered"?p.orderMatch:p.orderAny,[p.count]:f(i),[p.inputMode]:u==="phoneme"?p.pronInput:p.charInput},h=(g,_)=>{_===p.searchMode?a(g===p.explicit?"explicit":g===p.pick?"pick":"include"):_===p.phonemeOrder?s(g===p.orderMatch?"ordered":"unordered"):_===p.count?l(g===f(2)?2:1):_===p.inputMode&&c(g===p.pronInput?"phoneme":"word")};return n.jsx(kn,{className:d,title:e??m("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:y,selected:x,onSelect:h,align:"inline"})}function b7(e){const{title:t,items:a,columns:r,gridTemplateColumns:s,mobileGridTemplateColumns:i,searchPlaceholder:l,searchFn:u,defaultSortKey:c,defaultSortAsc:d=!0,selectedId:m,selectedIds:p,onSelect:f,onClose:y,pageSizeOptions:x=[10,25,50,100],initialPageSize:h,emptyText:g,noMatchText:_,countLabel:C,topContent:w,className:b=""}=e,{t:B}=_e.useTranslation(),v=l??B("common.search","\uAC80\uC0C9"),k=g??B("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),A=_??B("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"),[N,E]=o.useState(""),[D,H]=o.useState(c??r[0]?.key??""),[R,G]=o.useState(d),[L,M]=o.useState(String(h??x[0]??10)),[I,Y]=o.useState(1);o.useEffect(()=>{Y(1)},[N,L]);const Z=u!==null,z=o.useCallback((Q,oe)=>{if(!oe)return!0;const se=oe.toLowerCase();return r.some(te=>{const le=Q[te.key];return le==null?!1:String(le).toLowerCase().includes(se)})},[r]),W=u??z,$=o.useMemo(()=>{const Q=Z?a.filter(oe=>W(oe,N)):a;return D?[...Q].sort((oe,se)=>{const te=oe[D],le=se[D];return te===le?0:ro(te,le,R)}):Q},[a,N,D,R,Z,W]),U=Math.max(1,Math.ceil($.length/Number(L)));I>U&&Y(U);const S=Math.min(I,U),P=$.slice((S-1)*Number(L),S*Number(L)),j=o.useCallback(Q=>{D===Q?G(oe=>!oe):(H(Q),G(!0)),Y(1)},[D]),F=o.useMemo(()=>{if(typeof C=="function"){const Q=$.length,oe=C(Q);if(typeof oe=="string"){const se=oe.lastIndexOf(String(Q));if(se>=0)return{prefix:oe.slice(0,se),suffix:oe.slice(se+String(Q).length)}}return{label:oe}}if(typeof C=="string"&&C.includes("{n}")){const[Q,oe]=C.split("{n}");return{prefix:Q,suffix:oe}}return{prefix:B("common.totalCountPrefix","\uCD1D "),suffix:B("common.totalCountSuffix","\uAC1C")}},[C,$.length,B]),O=o.useMemo(()=>r.map(Q=>({label:Q.label,onClick:Q.sortable!==!1?()=>j(Q.key):void 0,className:Q.className,sortDir:Q.sortable!==!1&&D===Q.key?R?"asc":"desc":null})),[r,D,R,j]),q=o.useMemo(()=>x.map(Q=>({value:String(Q),label:B("common.pageSizeLabel",{n:Q})})),[x,B]);return n.jsxs($n,{className:`popup-list ${b}`,title:t,onClose:y,children:[w,"label"in F&&n.jsx("p",{className:"toolbar__count body-1",children:F.label}),n.jsx(go,{count:"label"in F?void 0:{value:$.length,prefix:F.prefix,suffix:F.suffix},search:Z?{value:N,onChange:E,placeholder:v}:void 0,pageSize:{options:q,value:L,onChange:M},pagination:{page:S,total:U,onChange:Y}}),n.jsx(ko,{size:"medium",gridTemplateColumns:s,mobileGridTemplateColumns:i,resizable:!0,fields:O,items:P,onRowClick:f,renderRow:Q=>{const oe=p!=null?Q.id!=null&&p.has(Q.id):m!=null&&Q.id===m;return r.map(se=>({content:se.render?se.render(Q):Q[se.key]??"",className:Ae(se.className,oe&&"popup-list__row--selected")}))},empty:Z&&N!==""&&a.length>0?A:k})]})}function Sc(e){const{title:t,message:a,topContent:r,details:s,children:i,confirmLabel:l,cancelLabel:u,hideCancel:c=!1,extraAction:d,confirmVariant:m="main",confirmDisabled:p=!1,onConfirm:f,closeOnConfirm:y=!0,onClose:x,inline:h,size:g="small",className:_,initialFocus:C="close"}=e,{t:w}=_e.useTranslation(),b=o.useRef(null);o.useEffect(()=>{if(h||C==="close")return;const E=b.current?.closest(".popup-panel"),D=Array.from(E?.querySelectorAll(".popup-footer--buttons button")??[]),H=C==="confirm"?D[D.length-1]:c?void 0:D[d?1:0];H&&!H.disabled&&H.focus()},[]);const B=o.useRef(!1),[v,k]=o.useState(!1),A=E=>{let D=!1;return{close:()=>{D=!0,E()},\uB2EB\uC558\uB098:()=>D}},N=async E=>{if(B.current)return;B.current=!0;const D=typeof document<"u"?document.activeElement:null;k(!0);let H=!1;try{H=await E()}catch(R){typeof console<"u"&&console.error(R)}finally{H||(B.current=!1,k(!1),requestAnimationFrame(()=>{const R=document.activeElement;(!R||R===document.body)&&D?.isConnected&&D.focus()}))}};return n.jsxs($n,{title:t,onClose:x,closeDisabled:v,inline:h,size:g,className:Ae("confirm-popup",r!=null&&"confirm-popup--has-top",_),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||v,onClick:async({closeWithAnimation:E})=>{await N(async()=>{const D=A(E);await d.onClick(D.close);const H=d.closeOnClick??!0;return H&&E(),H||D.\uB2EB\uC558\uB098()})}}]:[],...c?[]:[{label:u??w("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:v,onClick:({closeWithAnimation:E})=>E()}],{label:l??w("common.confirm","\uD655\uC778"),variant:m,disabled:p||v,onClick:async({closeWithAnimation:E})=>{await N(async()=>{const D=A(E);return await f(D.close),y&&E(),y||D.\uB2EB\uC558\uB098()})}}],children:[r!=null&&n.jsx("div",{className:"confirm-popup__top",children:r}),s&&s.length>0&&n.jsx(Cr,{children:s.map((E,D)=>n.jsx(Rn,{label:E.label,children:n.jsx("span",{className:"panel-row__text body-2",children:E.value})},D))}),n.jsx("p",{ref:b,className:"body-2 confirm-popup__message",children:a}),i]})}function y7(e,t,a={}){const{t:r}=_e.useTranslation(),[s,i]=o.useState(!1),l=o.useRef(!1),u=o.useCallback(()=>{l.current=!0},[]),c=o.useCallback(()=>l.current?(l.current=!1,!0):e?(i(!0),!1):!0,[e]),d=s?n.jsx(Sc,{title:a.title??r("common.discardConfirm.title","\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?"),message:a.message??r("common.discardConfirm.body","\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4."),confirmLabel:a.confirmLabel??r("common.discardConfirm.confirm","\uC785\uB825 \uCDE8\uC18C"),confirmVariant:"danger",onConfirm:()=>{i(!1),t()},onClose:()=>i(!1)}):null;return{beforeClose:c,discardPopup:d,allowClose:u}}function v7({onApply:e,onCancel:t}){const{t:a}=_e.useTranslation(),[r,s]=o.useState(""),[i,l]=o.useState(!1),[u,c]=o.useState(null),d=o.useRef(null);o.useEffect(()=>{d.current?.focus()},[]);const m=o.useCallback(async y=>{const x=r.trim();if(x){l(!0),c(null);try{await e(x),y()}catch(h){c(li(h)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),p=o.useCallback((y,x)=>{y.key==="Enter"&&!y.nativeEvent.isComposing&&m(x)},[m]),f=y=>{s(y.target.value),c(null)};return n.jsx($n,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:t,closeDisabled:i,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:y})=>y()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:y})=>{m(y)}}],children:({closeWithAnimation:y})=>n.jsxs(n.Fragment,{children:[n.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:f,onKeyDown:x=>p(x,y),disabled:i,autoComplete:"off",spellCheck:!1}),u&&n.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:u})]})})}const jc=["var(--color-main)","var(--color-sub)"],x7=2e3;function _7(e,t){if(!t.startsWith("var("))return t;try{const a=t.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(a).trim()||null}catch{return null}}function as({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:s,trigger:i=0}){const l=o.useMemo(()=>{const h=Math.floor(t/2),g=t-h,_=(C,w)=>Array.from({length:C}).map((b,B)=>{const v=6+Math.random()*12,k=Math.round(Math.min(18,v*Math.min(1.5,1+r*.4))),A=jc[Math.floor(Math.random()*jc.length)],N=Math.random()*300,E=(360+Math.random()*260)*r*1.2,D=(w==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,H=Math.cos(D)*E,R=Math.sin(D)*E*1.35,G=Math.random()*720-360,L=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),M=Math.random()>.7?"50%":"3px";return{id:`${w}-${B}`,side:w,size:k,color:A,delay:N,vx:H,vy:R,angularVel:G,life:L,borderRadius:M}});return[..._(h,"left"),..._(g,"right")]},[t,r]),u=o.useRef(null),c=o.useRef({}),d=o.useRef(null),m=o.useRef(s);o.useEffect(()=>{m.current=s},[s]);const p=o.useRef(null),f=o.useRef(null),y=()=>{if(typeof document>"u")return null;let h=document.querySelector("[data-ihab-effect-root]");return h||(h=document.createElement("div"),h.className="app-effect",h.dataset.ihabEffectRoot="",h.style.position="fixed",h.style.inset="0",h.style.pointerEvents="none",h.style.zIndex="99998",document.body.appendChild(h)),h};if(typeof document<"u"&&f.current==null&&(f.current=y()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const W=setTimeout(()=>m.current?.(),0);return()=>clearTimeout(W)}const h=1200,g=performance.now(),_=f.current&&f.current!==document.body?f.current.getBoundingClientRect():null,C=Math.max(60,(window.innerHeight||800)*.05),w=W=>Math.max(40,(W||window.innerWidth)*.02),b=_?.width||window.innerWidth||375,B=_?.height||window.innerHeight||812,v=W=>{const $=[...W].sort((U,S)=>U-S);return $[Math.floor($.length/2)]||1},k=v(l.map(W=>Math.abs(W.vy))),A=v(l.map(W=>Math.abs(W.vx))),N=Math.sqrt(2*h*(B*.72+C))/k,E=k*N/h,D=b*.5/(A*E),H=(W,$,U)=>Math.min(U,Math.max($,W)),R=H(N,.8,2.4),G=H(D,.7,2.2),L=a>0?a/x7:1,M=l.map(W=>({...W,life:W.life*L,vx:W.vx*G,vy:W.vy*R,startTime:g+W.delay,ended:!1})),I=_?{x:_.left-w(_.width),y:_.top+_.height+C}:{x:-w(window.innerWidth),y:window.innerHeight+C},Y=_?{x:_.left+_.width+w(_.width),y:_.top+_.height+C}:{x:window.innerWidth+w(window.innerWidth),y:window.innerHeight+C},Z=W=>{let $=!1;for(const U of M){const S=c.current[U.id];if(!S||!S)continue;if(W<U.startTime){S.style.display="none",$=!0;continue}if(!U._inited){const le=U.side==="left"?I.x:Y.x,De=U.side==="left"?I.y:Y.y;S.style.left=`${le}px`,S.style.top=`${De}px`,S.style.transform="translate3d(0px, 0px, 0)",S.style.display="block",S.style.zIndex="100000",typeof U.color=="string"&&U.color.startsWith("var(")&&(S.style.background=_7(S,U.color)??"#FF0060"),U._inited=!0}const P=(W-U.startTime)/1e3;if(P<0)continue;const j=U.life/1e3;if(P>=j){S.style.opacity="0",S.style.display="none",U.ended=!0;continue}$=!0;const F=U.side==="left"?I.x:Y.x,O=U.side==="left"?I.y:Y.y,q=F+U.vx*P,Q=O+U.vy*P+.5*h*P*P,oe=(U.angularVel||0)*P,se=q-F,te=Q-O;S.style.transform=`translate3d(${se}px, ${te}px, 0) rotate(${oe}deg)`,S.style.opacity=`${Math.max(0,1-P/j)}`}$?d.current=requestAnimationFrame(Z):m.current?.()};d.current=requestAnimationFrame(Z);const z=setTimeout(()=>{try{if((f.current?f.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const W=document.createElement("div");W.className="party-container",W.style.position="fixed",W.style.inset="0",W.style.pointerEvents="none",W.style.overflow="visible",W.style.zIndex="2147483647";for(const $ of l){const U=document.createElement("span");U.className=`confetti confetti--${$.side}`,U.setAttribute("aria-hidden","true"),U.style.display="none",U.style.position="fixed",U.style.left="0px",U.style.top="0px",U.style.width=`${$.size}px`,U.style.height=`${Math.max(4,$.size*.6)}px`,U.style.background=$.color,U.style.borderRadius=$.borderRadius,U.style.transform="translate3d(0,0,0)",U.style.opacity="0",W.appendChild(U),c.current[$.id]=U}(document.body||f.current).appendChild(W),p.current=W}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(z),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,a,i,l]),!e)return null;const x=n.jsx("div",{className:"party-container",ref:u,children:l.map(h=>n.jsx("span",{"aria-hidden":!0,ref:g=>{c.current[h.id]=g},className:`confetti confetti--${h.side}`,style:{width:`${h.size}px`,height:`${Math.max(4,h.size*.6)}px`,background:h.color,borderRadius:h.borderRadius}},`${h.id}-${i}`))});return typeof document<"u"?en.createPortal(x,f.current||document.body):x}const rs=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function w7({trigger:e=0,active:t=!1}){const[a,r]=o.useState(null);o.useEffect(()=>{if(typeof window>"u")return;const i=l=>{const u=l.detail??{};r(c=>({n:(c?.n??0)+1,count:rs(u.count),strength:rs(u.strength),duration:rs(u.duration)}))};return window.addEventListener("party:trigger",i),()=>window.removeEventListener("party:trigger",i)},[]);const s=o.useCallback(()=>r(null),[]);return n.jsxs(n.Fragment,{children:[n.jsx(as,{active:t,trigger:e}),a&&n.jsx(as,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function B7({title:e,sub:t,rightAction:a,titleAction:r,badge:s,badgeVariant:i="default",documentTitle:l,onBack:u,backLabel:c,wrap:d=!1}){const{t:m}=_e.useTranslation();ib(typeof e=="string"?e:l??null);const p=c??m("common.back","\uB4A4\uB85C");return n.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[n.jsxs("div",{className:"page-title__main",children:[n.jsxs("div",{className:"page-title__title-row",children:[u&&n.jsx(me,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:p,showTooltipInfo:p,onClick:u}),n.jsx("h1",{className:"page-title__title h1",children:e}),s&&n.jsx("div",{className:"page-title__badge",children:n.jsx(wt,{label:s,size:"small",variant:i,fill:"outline"})}),r?n.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&n.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?n.jsx("div",{className:"page-title__action",children:a}):null]})}function A7(e){return e??""}const Tc=o.createContext({words:[],loading:!1});function k7(){return o.useContext(Tc)}function N7({words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:c,children:d}){return n.jsx(Tc.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:c},children:d})}function D7({items:e,actions:t,columns:a,flat:r=!1,className:s,style:i}){const l=a??e.length;return n.jsx("section",{className:Ae("summary-strip",r&&"summary-strip--flat",s),style:{"--summary-strip-cols":String(l),...i},children:n.jsxs("div",{className:"summary-strip__row",children:[n.jsx("div",{className:"summary-strip__items",children:e.map((u,c)=>n.jsxs("div",{className:"summary-strip__item",children:[n.jsx("p",{className:"summary-strip__label caption-1",children:u.label}),n.jsx("p",{className:"summary-strip__value body-3b",title:typeof u.value=="string"||typeof u.value=="number"?String(u.value):void 0,children:u.value})]},c))}),t&&n.jsx("div",{className:"summary-strip__actions",children:t})]})})}const E7=(e,t)=>`${e} / ${t}`;function S7({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:s=E7,pageWidth:i,pageHeight:l,margin:u,className:c,style:d}){const{t:m}=_e.useTranslation(),p=o.useRef(null),f=o.useRef(null),y=o.useRef(null),x=o.useRef(null),[h,g]=o.useState(null),[_,C]=o.useState(!1);o.useEffect(()=>{const L=p.current;if(!L)return;const M=()=>C(L.scrollWidth>L.clientWidth+1);if(M(),typeof ResizeObserver>"u")return;const I=new ResizeObserver(M);return I.observe(L),()=>I.disconnect()},[h]);const w=e.map(L=>`${L.id}\0${L.section??""}\0${L.group??""}`).join(""),b=h&&h.shape===w?h.pages:null,[B,v]=o.useState(0);o.useEffect(()=>{const L=x.current;if(!L||typeof ResizeObserver>"u")return;const M=new ResizeObserver(()=>v(L.offsetHeight));return M.observe(L),()=>M.disconnect()},[]);const[k,A]=o.useState(0);o.useEffect(()=>{const L=f.current;if(!L||typeof ResizeObserver>"u")return;let M=null;const I=typeof requestAnimationFrame=="function"?z=>requestAnimationFrame(z):z=>setTimeout(z,16),Y=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:z=>clearTimeout(z),Z=new ResizeObserver(()=>{M==null&&(M=I(()=>{M=null,A(z=>z+1)}))});return Array.from(L.children).forEach(z=>Z.observe(z)),()=>{Z.disconnect(),M!=null&&Y(M)}},[w]),o.useLayoutEffect(()=>{const L=f.current,M=x.current;if(!L||!M)return;const I=j=>j.getBoundingClientRect().height||j.offsetHeight,Y=new Map;y.current?.querySelectorAll("[data-chrome-section]").forEach(j=>{Y.set(j.dataset.chromeSection??"",I(j))});const Z=j=>I(M)-(Y.get(j??"")??0),z=Array.from(L.children).map(j=>I(j)),W=[];e.forEach((j,F)=>{const O=W[W.length-1],q=O?e[O[0]]:void 0;q&&j.group!=null&&q.group===j.group&&q.section===j.section?O.push(F):W.push([F])});const $=[];let U=[],S=0;const P=()=>{U.length&&$.push(U),U=[],S=0};W.forEach(j=>{const F=j.reduce((q,Q)=>q+z[Q],0),O=Z(e[j[0]].section);U.length&&e[U[0]].section!==e[j[0]].section&&P(),F>O?j.forEach(q=>{U.length&&S+z[q]>O+.01&&P(),U.push(q),S+=z[q]}):(U.length&&S+F>O+.01&&P(),j.forEach(q=>U.push(q)),S+=F)}),P(),g(j=>j&&j.shape===w&&JSON.stringify(j.pages)===JSON.stringify($)?j:{shape:w,pages:$})},[w,B,i,l,u,k]);const N=po,E=N,D=r??n.jsxs(n.Fragment,{children:[n.jsx("img",{src:E,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),H=(L,M,I)=>({header:n.jsxs("div",{className:"report-doc__header",children:[n.jsx("h2",{className:"report-doc__title h3b",children:I!=null&&t?.[I]||null}),a]}),footer:n.jsxs("div",{className:"report-doc__footer caption-1",children:[n.jsx("span",{className:"report-doc__footer-left",children:D}),n.jsx("span",{className:"report-doc__page-no",children:s(L,M)})]})}),R=Array.from(new Set(e.map(L=>L.section??""))),G={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...u?{"--report-margin":u}:null,...d};return n.jsxs("div",{ref:p,className:Ae("report-doc",c),style:G,tabIndex:_?0:void 0,role:_?"group":void 0,"aria-label":_?m("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[n.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[n.jsx("div",{ref:x,className:"report-doc__ruler"}),n.jsx("div",{ref:y,children:R.map(L=>{const M=H(1,1,L||void 0);return n.jsxs("div",{"data-chrome-section":L,children:[M.header,M.footer]},L)})}),n.jsx("div",{ref:f,className:"report-doc__measure-blocks",children:e.map(L=>n.jsx("div",{children:L.content},L.id))})]}),b&&n.jsx("div",{className:"report-doc__pages",children:b.map((L,M)=>{const{header:I,footer:Y}=H(M+1,b.length,e[L[0]].section);return n.jsxs("section",{className:"report-doc__page",children:[I,L.map(Z=>n.jsx("div",{children:e[Z].content},e[Z].id)),Y]},M)})})]})}function j7({title:e,fields:t,columns:a=4,className:r,style:s}){return n.jsxs("div",{className:Ae("report-info",r),style:{"--report-info-cols":String(a),...s},children:[e&&n.jsx("p",{className:"report-info__title h5b",children:e}),n.jsx("div",{className:"report-info__grid",children:t.map((i,l)=>n.jsxs("div",{className:"report-info__field body-2",children:[n.jsx("span",{className:"report-info__label body-3",children:i.label}),n.jsx("span",{className:"report-info__value",children:i.value})]},l))})]})}const Yn=new Map;let vr=null;const T7=12;function M7(e){for(let t=e.parentElement;t&&t!==document.body;t=t.parentElement){const a=window.getComputedStyle(t);if(a.transform&&a.transform!=="none"||a.filter&&a.filter!=="none"||a.perspective&&a.perspective!=="none"||/paint|layout|strict|content/.test(a.contain||""))return t}return document}function xr(){const e=new Map;for(const t of Yn.keys()){if(!t.isConnected)continue;const a=M7(t),r=e.get(a)??[];r.push(t),e.set(a,r)}for(const t of e.values()){t.sort((r,s)=>r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let a=0;for(const r of t){a>0?r.style.setProperty("--update-alert-stack-offset",`${a}px`):r.style.removeProperty("--update-alert-stack-offset");const s=r.getBoundingClientRect().height;s>0&&(a+=s+T7)}}}function L7(e){return typeof window>"u"?()=>{}:(Yn.set(e,(Yn.get(e)??0)+1),Yn.get(e)===1&&typeof ResizeObserver<"u"&&(vr??(vr=new ResizeObserver(()=>xr())),vr.observe(e)),xr(),()=>{const t=(Yn.get(e)??1)-1;if(t>0){Yn.set(e,t),xr();return}Yn.delete(e),vr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),xr()})}function $7({title:e,message:t,actionLabel:a,onAction:r,icon:s,onClose:i,className:l=""}){const{t:u}=_e.useTranslation(),c=a??u("common.update","\uC5C5\uB370\uC774\uD2B8"),d=o.useRef(null),m=o.useRef(!1);return o.useLayoutEffect(()=>{const p=d.current,f=p?.parentElement?.closest(".update-alert-stack")??p,y=f?L7(f):null;return()=>{y?.(),m.current&&p&&p.contains(document.activeElement)&&Ya(p)}},[]),n.jsxs("div",{ref:d,className:Ae("update-alert",l),role:"alert",children:[i&&n.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{m.current=!0,i()},"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"}),n.jsxs("div",{className:"update-alert__top",children:[n.jsx("div",{className:"update-alert__icon",children:s??n.jsx(fs,{size:20,strokeWidth:2})}),n.jsxs("div",{className:"update-alert__body",children:[n.jsx("div",{className:"update-alert__title h4",children:e}),n.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&n.jsx(me,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:c})]})}function R7({title:e,titleLevel:t=3,description:a,topActions:r,children:s,footerLeft:i,footerRight:l,ariaLabel:u,onClick:c,draggable:d,onDragStart:m,onDragEnd:p,className:f}){const y=t?`h${t}`:"div",x=i!=null||l!=null,h=s!=null&&s!==!1,g=o.useCallback(_=>{c&&_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),c())},[c]);return n.jsxs("div",{className:Ae("training-card",c?"training-card--clickable":"",f),onClick:c,onKeyDown:c?g:void 0,role:c?"button":void 0,"aria-label":c?u??(typeof e=="string"?e:void 0):void 0,tabIndex:c?0:void 0,draggable:d,onDragStart:m,onDragEnd:p,children:[n.jsxs("div",{className:"training-card__header",children:[n.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?n.jsx(y,{className:"training-card__title h4",children:e}):e,r!=null&&n.jsx("div",{className:"training-card__top-actions",onClick:_=>_.stopPropagation(),children:r})]}),a!=null?typeof a=="string"?n.jsx("p",{className:"training-card__description body-3",children:a}):a:n.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),h&&n.jsx("div",{className:"training-card__body",children:s}),x&&n.jsxs("div",{className:"training-card__footer",children:[i!=null&&n.jsx("div",{className:"training-card__footer-left",children:i}),l!=null&&n.jsx("div",{className:"training-card__meta",children:l})]})]})}function P7({title:e,titleLevel:t=3,count:a,collapsed:r=!1,onToggle:s,sort:i,actions:l,empty:u=!1,emptyContent:c,dragOver:d=!1,onDragOver:m,onDragLeave:p,onDrop:f,children:y,className:x}){const{t:h}=_e.useTranslation(),g=o.useId(),_=t?`h${t}`:"span",C=s!=null,w=Ae("training-card-group",d&&"training-card-group--dragover",r&&"training-card-group--collapsed",C&&"training-card-group--collapsible",x);return n.jsxs("div",{className:w,onDragOver:m,onDragLeave:p,onDrop:f,role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?g:void 0,children:[n.jsxs("header",{className:"training-card-group__header",children:[C&&n.jsx(me,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:r?"chevron-right":"chevron-down",ariaLabel:typeof e=="string"&&e?r?h("common.expandFor",{name:e}):h("common.collapseFor",{name:e}):r?h("common.expand","\uD3BC\uCE58\uAE30"):h("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!r,onClick:s}),typeof e=="string"?n.jsx(_,{id:g,className:"training-card-group__title h5b",children:e}):e,a!==void 0&&n.jsx("span",{className:"training-card-group__count body-3b",children:a}),(i||l!=null)&&n.jsxs("span",{className:"training-card-group__actions",onClick:b=>b.stopPropagation(),children:[i&&n.jsx(dn,{size:40,options:i.options,value:i.value,placeholder:i.placeholder,onChange:i.onChange,ariaLabel:typeof e=="string"&&e?h("common.sortFor",{name:e}):void 0}),l]})]}),!r&&(u?n.jsx("div",{className:"training-card-group__empty body-3",children:c}):n.jsx("div",{className:"training-card-group__grid",children:y}))]})}const F7="speechear:saved_word_tables";function I7(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.name=="string"&&Array.isArray(t.items)}function O7(){try{const e=localStorage.getItem(F7);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(I7):[]}catch{return[]}}function Mc(e){return{label:e.word,subLabel:e.pronunciation,colloquialLabel:e.colloquialPronunciation,homonum:e.homonum,grade:e.grade,syllables:[...e.word].length,pos:e.pos,wordType:e.wordType}}function os(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function H7(e){const t=new Set;return e.map(a=>{let r=a.id;for(let s=2;t.has(r);s++)r=`${a.id}~${s}`;return t.add(r),r===a.id?a:{...a,id:r}})}function z7({title:e,titleIcon:t,disc:a,filterTitle:r,filterCollapsible:s,filterDefaultCollapsed:i,filterCollapsed:l,onFilterCollapsedChange:u,filterHeaderSummary:c,brand:d,code:m,items:p,onSaveComplete:f,onLoad:y,onRemoveItem:x,onReset:h,resetLabel:g,saveButtonLabel:_,secondarySaveButtonLabel:C,onReorder:w,showCellCount:b,onAddItem:B,className:v,renderSavePopup:k,renderWordSearch:A,hideControls:N,saveOnly:E,tableName:D,nameValue:H,onNameChange:R,descriptionValue:G,onDescriptionChange:L,namePlaceholder:M,descriptionPlaceholder:I,existingNames:Y,editingName:Z,onCancel:z,initialItemsPerPage:W,renderCellAction:$,actionsLeftExtra:U}){const{t:S}=_e.useTranslation(),P=g??S("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),j=p===void 0,F=!!R,[O,q]=o.useState([]),Q=(H??"").trim(),oe=Q||(M??"").trim(),se=(G??"").trim()||(I??"").trim(),te=(Y??[]).map(re=>re.trim().toLowerCase()),le=[Z?.trim().toLowerCase(),...O].filter(re=>!!re),De=[...te];for(const re of le){const ve=De.indexOf(re);ve!==-1&&De.splice(ve,1)}const V=Q!==""&&De.includes(Q.toLowerCase()),[ne,fe]=o.useState(Array(4).fill(null)),[Ee,ge]=o.useState(4),[ae,de]=o.useState(null),pe=ne.slice(0,Ee),he=!!d?.show,[be,Pe]=o.useState(!0),[$e,Ie]=o.useState(!0),Fe=d&&{...d,top:be,bottom:$e},[Oe,dt]=o.useState("landscape"),[lt,ot]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[ct,ke]=o.useState("\uD45C\uC2DC"),[He,Be]=o.useState(!0),[Xe,X]=o.useState(!0),ue=o.useRef(null),we=o.useRef([]),[Ne,Ve]=o.useState(W==="all"?Number.POSITIVE_INFINITY:W??8),[et,pt]=o.useState("right"),[ut,ft]=o.useState(!1),[gt,Qe]=o.useState(!1),{toastMessage:Ue,toastType:We,showWarning:Ke,clearToast:rt}=ml("warning"),bt=o.useCallback(()=>de(null),[de]);B&&!j&&!b&&Gt("word-table-block-add-without-cell-count",'[WordTableBlock] \uD45C\uC2DC \uBAA8\uB4DC\uC5D0\uC11C onAddItem \uC740 showCellCount \uC640 \uD568\uAED8 \uC918\uC57C "\uCD94\uAC00\uD558\uAE30" \uCE78\uC774 \uC0DD\uAE34\uB2E4.');const[Ye,ht]=o.useState(()=>Math.max(p?.length??1,1)),Nt=j?Ee:b?Math.max(Ye,p?.length??1,1):Math.max(p?.length??0,1),{width:Et,height:Me}=ua[Oe],nt=!j&&!b,Lt=p?.length??0,Xt=Math.min(Ne,Math.max(Lt,1)),at=nt?Xt:Nt,Bt=nt?yu(p??[],at):null,At=!!Bt&&Bt.length>1,vt=j?pe.some(re=>re!==null&&re.length>1):(p??[]).some(re=>(re.words??[]).length>1),an=D?.trim()||`${Ci(_a())} ${vt?S("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):S("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,gn=o.useCallback(()=>At?we.current.filter(re=>re!==null):ue.current?[ue.current]:[],[At]),{print:pn,openNewWindow:mn,downloadHtml:Dn}=Ro({getElements:gn,paperW:Et,paperH:Me,fileName:an,onPopupBlocked:()=>{Ke(S("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),Fn=re=>{ge(re),fe(ve=>ve.length>=re?ve:[...ve,...Array(re-ve.length).fill(null)]),de(null)},bn=re=>{fe(ve=>{const Te=[...ve];return Te[re]=null,Te}),ae===re&&de(null)},zt=re=>{if(ae===null)return;const ve=ae;fe(ze=>{const st=[...ze];return st[ve]=re.length>0?re:null,st});const Te=pe.findIndex((ze,st)=>st>ve&&ze===null);de(Te!==-1?Te:null)},on=j?pe.some(re=>re?.some(ve=>!!ve.colloquialPronunciation)):(p??[]).some(re=>(re.words??[]).some(ve=>!!ve.colloquialLabel)),Vt=o.useMemo(()=>Qn()?j?ne.slice(0,Ee).flatMap(re=>(re??[]).map(ve=>[ve.word,ve.homonum])):(p??[]).flatMap(re=>(re.words??[]).map(ve=>[ve.label,ve.homonum])):[],[j,ne,Ee,p]),[Rt,En]=o.useState(!1);o.useEffect(()=>{if(Vt.length===0)return;let re=!1;return Promise.all(Vt.map(([ve,Te])=>ri(ve,Te))).then(ve=>{re||En(ve.some(Boolean))},()=>{}),()=>{re=!0}},[Vt]);const Jt=Vt.length>0&&Rt,Sn=o.useMemo(()=>[...j||b?[{label:S("wordTable.filter.columns","\uCE78 \uC218"),items:p5.map(re=>({value:`${re}\uCE78`,displayLabel:S("wordTable.filter.column",{count:re})})),display:"segmented"}]:[],...nt&&(p?.length??0)>0?[Ru(S,{hasPairs:vt,itemCount:Lt})]:[],...At?[m5(S)]:[]],[S,j,b,nt,p?.length,vt,Lt,At]),In={...j||b?{[S("wordTable.filter.columns","\uCE78 \uC218")]:`${Nt}\uCE78`}:{},...nt&&(p?.length??0)>0?{[S(vt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Xt}\uAC1C`}:{},...At?{[S("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Fu[et]}:{}},hn=(re,ve)=>{ve===S("wordTable.filter.columns","\uCE78 \uC218")?j?Fn(parseInt(re)):ht(parseInt(re)):ve===S(vt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Ve(Pu(parseInt(re),Lt)):ve===S("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&pt(Iu(re))},jt=j?H7(pe.filter(re=>re!==null&&re.length>0).map(re=>({id:os(re),words:re.map(Mc)}))):p??[],Pt=()=>{j&&fe(re=>re.length>Ee?re.slice(0,Ee):re)},Wt=(re=!1)=>{if(Qe(re),F&&f){const ve=oe.trim().toLowerCase();ve&&q(Te=>Te.includes(ve)?Te:[...Te,ve]),f(oe,jt,se||void 0,re),Pt();return}if(E&&f){f("",jt,void 0,re),Pt();return}if(f){ft(!0);return}Dn()},[sn,Ft]=o.useState(!1),[Qt,ie]=o.useState(""),xe=Qt.trim(),je=xe!==""&&te.includes(xe.toLowerCase()),Je=()=>{ie(oe?S("wordTable.save.copyName",{name:oe,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),Ft(!0)},Re=()=>{!xe||je||!f||(f(xe,jt,se||void 0,!0),Pt(),Ft(!1))},qe=jt.length===0,Ze=qe||F&&(oe===""||V),J=()=>{if(qe){Ke(S("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(F&&oe===""){Ke(S("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}F&&V&&Ke(S("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},ye=n.jsx(ca,{items:jt,orientation:Oe,contentTypes:lt,cutLine:ct,showOutline:He,showDivLine:Xe,count:Nt});return n.jsxs(n.Fragment,{children:[n.jsxs(la,{type:"page",icon:t,title:e,disc:a,className:Ae("word-table-block",v),children:[sn&&n.jsx($n,{size:"small",title:C??S("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>Ft(!1),footer:({closeWithAnimation:re})=>n.jsxs(n.Fragment,{children:[n.jsx(me,{htmlType:"button",size:48,type:"bar",label:S("common.cancel","\uCDE8\uC18C"),onClick:re}),n.jsx(me,{htmlType:"button",size:48,type:"bar",variant:"main",label:S("common.save","\uC800\uC7A5"),disabled:!xe||je,onClick:Re})]}),children:n.jsx(Gn,{label:S("wordTable.save.nameLabel","\uC774\uB984"),value:Qt,onChange:ie,placeholder:S("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:Re,error:je?S("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),ut&&f&&k?.({defaultName:typeof e=="string"?e:S("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:ye,previewW:Et,previewH:Me,items:jt,existingNames:O7().map(re=>re.name),saveAsNew:gt,onSave:(re,ve)=>{f(re,jt,ve,gt),Pt(),ft(!1)},onCancel:()=>ft(!1)}),(j||B)&&ae!==null&&A?.({cellIndex:ae,onConfirm:j?zt:re=>{if(B){const ve=re[0];if(ve){const Te=new Set((p??[]).map(st=>st.id));let ze=os([ve]);for(let st=2;Te.has(ze);st++)ze=`${os([ve])}~${st}`;B({id:ze,words:[Mc(ve)]})}}de(null)},onClose:bt}),!N&&n.jsx(Mo,{title:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,hasImage:Jt,hasColloquial:on,contentTypes:lt,orientation:Oe,showOutline:He,cutLine:ct,showDivLine:Xe,setters:{setContentTypes:ot,setOrientation:dt,setShowOutline:Be,setCutLine:ke,setShowDivLine:X,setShowTopInfo:Pe,setShowBottomInfo:Ie},showCutLine:(nt?at:Nt)>1,showDivLine2:vt,middleSections:Sn,extraSelected:In,onExtraSelect:hn,showPaperBands:he,showTopInfo:be,showBottomInfo:$e}),At&&Bt?n.jsx("div",{className:"word-table-block__pages",children:Bt.map((re,ve)=>n.jsx(ca,{orientation:Oe,contentTypes:lt,cutLine:ct,showOutline:He,showDivLine:Xe,count:at,items:re,onRemoveItem:x,onReorder:w&&((Te,ze)=>w(Te+ve*at,ze+ve*at)),renderCellAction:$&&((Te,ze)=>$(Te+ve*at,ze)),brand:Fe,code:m,contentRef:Te=>{we.current[ve]=Te},pageNumber:{current:ve+1,total:Bt.length},pageNumberPosition:et},ve))}):n.jsx(ca,{orientation:Oe,contentTypes:lt,cutLine:ct,showOutline:He,showDivLine:Xe,count:Nt,items:j?void 0:p??[],editCells:j?pe:void 0,activeCell:ae,onActivateCell:j||B?de:void 0,onRemoveCell:j?bn:void 0,onRemoveItem:j?void 0:x,onReorder:j?void 0:w,renderCellAction:j?void 0:$,brand:Fe,code:m,showFillerAdd:!!B,contentRef:ue}),F&&!N&&n.jsxs(Cr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[n.jsx(Rn,{variant:"custom",label:S("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:n.jsx(Gn,{required:!0,value:H??"",onChange:R,placeholder:M?M+S("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):S("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:S("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:V?S("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:re=>{(re.key==="Tab"&&!re.shiftKey||re.key===" ")&&!(H??"").trim()&&(M??"").trim()&&(re.preventDefault(),R?.(M??""))}})}),n.jsx(Rn,{variant:"custom",label:S("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:n.jsx(Gn,{value:G??"",onChange:L,placeholder:I?I+S("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):S("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:S("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:re=>{(re.key==="Tab"&&!re.shiftKey||re.key===" ")&&!(G??"").trim()&&(I??"").trim()&&(re.preventDefault(),L?.(I??""))}})})]})]}),!N&&n.jsxs("div",{className:"word-table-block__actions",children:[n.jsxs("div",{className:"word-table-block__actions-left",children:[!E&&h&&n.jsx(me,{htmlType:"button",size:40,type:"bar",label:P,onClick:h}),!E&&U,!E&&y&&n.jsx(me,{htmlType:"button",size:40,type:"bar",label:S("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:y}),!E&&n.jsx(me,{htmlType:"button",size:40,type:"bar",label:S("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:mn})]}),n.jsxs("div",{className:"word-table-block__actions-right",children:[z&&n.jsx(me,{htmlType:"button",size:"56",type:"bar",label:S("common.cancel","\uCDE8\uC18C"),onClick:z}),!E&&n.jsx(me,{htmlType:"button",size:"56",type:"bar",label:S("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:pn}),C&&n.jsx(me,{htmlType:"button",size:"56",type:"bar",label:C,onClick:()=>F?Je():Wt(!0),disabled:qe,onDisabledClick:()=>{Ke(S("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),n.jsx(me,{htmlType:"button",size:"56",type:"bar",variant:"main",label:_??S("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Wt(!1),disabled:Ze,onDisabledClick:J})]})]}),n.jsx(sa,{message:Ue,type:We,onClose:rt})]})}function Lc({items:e,className:t}){const a=e.length,r=a<=3?1:2,s=Math.ceil(a/r)||1,i=r*s;return n.jsx("div",{className:Ae("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,u)=>{const c=e[u];return c?n.jsx("div",{className:"word-table-thumb__cell",children:(c.words?.length?c.words:[{label:c.id}]).map((d,m)=>n.jsxs(o.Fragment,{children:[m>0&&n.jsx("span",{className:"word-table-thumb__divider"}),n.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},m))},u):n.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},u)})})}function V7({items:e,name:t,description:a,createdAt:r,code:s,published:i,publishedLabel:l,shared:u,sharedLabel:c,isNew:d,publisherName:m,publishedAt:p,likeCount:f,downloadCount:y,onPublisherClick:x,selected:h,onClick:g,onMore:_,titleNode:C,className:w}){const{t:b}=_e.useTranslation(),B=C!=null,v=m!=null||p!=null||f!=null||y!=null,k=A=>{A.target===A.currentTarget&&!B&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),g?.())};return n.jsxs("div",{className:Ae("word-table-button",h?"word-table-button--selected":"",v?"":"word-table-button--no-footer",w),role:"button",tabIndex:0,"aria-label":s?`${t} (${s})`:t,onClick:B?void 0:g,onKeyDown:k,children:[d&&n.jsx("span",{className:"word-table-button__new-dot","aria-label":b("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),n.jsx(Lc,{items:e,className:"word-table-button__thumb"}),n.jsxs("div",{className:"word-table-button__info",children:[n.jsxs("div",{className:"word-table-button__info-text",children:[C??n.jsx("div",{className:"word-table-button__title h4",children:t}),a&&n.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),_&&!B&&n.jsx(me,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:b("common.moreFor",{name:t}),onClick:A=>{A.stopPropagation(),_(A)}})]}),(s||r||i||u)&&n.jsxs("div",{className:"word-table-button__meta-row",children:[n.jsx("span",{className:"word-table-button__meta-left",children:n.jsx("span",{className:"word-table-button__meta caption-1",children:r?hi(r,b):""})}),n.jsxs("span",{className:"word-table-button__meta-right",children:[(i||u)&&n.jsxs("span",{className:"word-table-button__badges",children:[i&&n.jsx(wt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:l??b("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),u&&n.jsx(wt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??b("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]}),s&&n.jsx("span",{className:"word-table-button__code caption-1",children:s})]})]}),v&&n.jsxs("div",{className:"word-table-button__footer",children:[n.jsxs("span",{className:"word-table-button__store-by",children:[m&&(x?n.jsx("button",{className:"training-card__publisher body-4",type:"button","aria-label":b("wordTable.publisherFilter",{name:m,defaultValue:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30"}),onClick:A=>{A.stopPropagation(),x()},children:m}):n.jsx("span",{className:"training-card__publisher training-card__publisher--static body-4",children:m})),p&&n.jsx("span",{className:"training-card__date body-4",children:hi(p,b)})]}),n.jsxs("span",{className:"word-table-button__store-stats",children:[f!=null&&n.jsx(wt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(f),"aria-label":b("common.likeCount",{count:f,defaultValue:`\uC88B\uC544\uC694 ${f}`})}),y!=null&&n.jsx(wt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(y),"aria-label":b("common.downloadCount",{count:y,defaultValue:`\uAC00\uC838\uAC04 \uC218 ${y}`})})]})]})]})}/**
1049
1049
  * @license lucide-react v1.38.0 - ISC
1050
1050
  *
1051
1051
  * This source code is licensed under the ISC license.
1052
1052
  * See the LICENSE file in the root directory of this source tree.
1053
- */const O7=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],H7=ee("image",O7);/**
1053
+ */const W7=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],q7=ee("image",W7);/**
1054
1054
  * @license lucide-react v1.38.0 - ISC
1055
1055
  *
1056
1056
  * This source code is licensed under the ISC license.
1057
1057
  * See the LICENSE file in the root directory of this source tree.
1058
- */const z7=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],V7=ee("circle-x",z7);function W7(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function ss({icon:e,label:t,state:a,pct:r,subText:s}){const{t:i}=_e.useTranslation(),l=a==="done",u=a==="pending",c=a==="error",d=l?100:r??0;return n.jsxs("div",{className:"wdup-phase-card",children:[n.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":c?" wdup-phase-card__icon--error":""}`,children:l?n.jsx(vs,{size:22,color:"white",strokeWidth:2.5}):c?n.jsx(V7,{size:22,color:"white",strokeWidth:2.5}):n.jsx("span",{className:`wdup-phase-card__icon-inner${u?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),n.jsxs("div",{className:"wdup-phase-card__body",children:[n.jsxs("div",{className:"wdup-phase-card__top",children:[n.jsx("span",{className:`wdup-phase-card__label body-2${u?" wdup-phase-card__label--pending":""}`,children:t}),l?n.jsx(wt,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):c?n.jsx(wt,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(s||r!==void 0)&&n.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[s,s&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!u&&n.jsx("div",{className:"wdup-bar",children:n.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":c?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||c?`${c?100:d}%`:void 0}})})]})]})}function q7({title:e,progress:t,onDone:a,onRetry:r,onClose:s,inline:i}){const{t:l}=_e.useTranslation(),{phase:u,error:c,wordCount:d,imagePage:m,imageDone:p,imageTotal:f,pairPercent:y}=t,v=W7(u),C=u==="done",b=!!c;function _(N){return b&&v===N?"error":v>N?"done":v===N?"active":"pending"}const h=_(1),w=_(2),g=_(3),B=u==="image-match"&&f?Math.round((p??0)/f*100):void 0,x=o.useMemo(()=>{if(w!=="done"){if(u==="image-list")return l("wordData.checkingPage",{page:m??1});if(u==="image-match"&&f)return l("wordData.imageCount",{done:Ur(p),total:Ur(f)})}},[w,u,m,f,p,l]);return n.jsx($n,{inline:i,className:"popup--word-data-update",title:e,footer:b&&r?n.jsx(me,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):b?n.jsx(me,{htmlType:"button",size:56,variant:"main",onClick:s??a,children:l("common.close","\uB2EB\uAE30")}):n.jsx(me,{htmlType:"button",size:56,variant:"main",disabled:!C,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:n.jsxs("div",{className:"wdup-cards",children:[n.jsx(ss,{icon:n.jsx(Cs,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:h,subText:h==="active"?l("wordData.downloadingCount",{n:Ur(d)}):void 0}),n.jsx(ss,{icon:n.jsx(H7,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:w,pct:B,subText:x}),n.jsx(ss,{icon:n.jsx(bs,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:g,pct:g==="active"?y??0:void 0,subText:void 0})]})})}function U7({enabled:e=!1,renderResultPopup:t}={}){const{t:a}=_e.useTranslation(),[r,s]=o.useState(null),[i,l]=o.useState(null),u=y=>{let v=null;y==="noise"?v={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:y==="short"?v={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:y==="long"?v={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:y==="order"&&(v={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),l(v),s(y)},c=o.useCallback(()=>{s(null),l(null)},[]),d=o.useCallback(()=>u("noise"),[]),m=o.useCallback(()=>u("short"),[]),p=o.useCallback(()=>u("long"),[]),f=o.useCallback(()=>u("order"),[]);return e?n.jsxs("div",{className:"debug-result-launcher",children:[n.jsxs("div",{className:"debug-buttons",children:[n.jsx("button",{type:"button",className:"debug-button",onClick:d,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:f,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&i?t?.({score:i.score,contextsLength:i.contextsLength,results:i.results,onReplay:c,onClose:c}):null]}):null}exports.Accordion=kb,exports.ActionCard=hf,exports.Alert=b4,exports.AppHeader=Tb,exports.AudioMeter=Bo,exports.AudioPlayer=qo,exports.Avatar=A4,exports.Badge=wt,exports.BarChart=Cy,exports.BarChartControls=Ql,exports.Board=V4,exports.BottomNav=fl,exports.BrandIdentity=xl,exports.Breadcrumb=D4,exports.BulkBar=ny,exports.Button=me,exports.CORE_VERSION=lf,exports.Calendar=Py,exports.CardStep=Ac,exports.ChartLegend=bo,exports.ChartSection=yo,exports.ChartTotal=Ra,exports.Checkbox=Gl,exports.ChoiceChips=z5,exports.CircleBadge=h4,exports.CodeBox=ey,exports.ColorPicker=M4,exports.CompanyMeta=Y4,exports.ConfirmPopup=Sc,exports.ConfirmStep=_c,exports.ConfirmWithTextStep=wc,exports.ContrastFilterPanel=m7,exports.CoreScope=Cf,exports.CountTile=I4,exports.CouponInputPopup=f7,exports.DEFAULT_NOISE_SETTINGS=Oa,exports.DatePicker=ly,exports.DebugResultLauncher=U7,exports.DescriptionTooltip=Wn,exports.DeviceSideTable=Ly,exports.Dialog=z4,exports.Divider=C4,exports.Dropdown=dn,exports.EffectPartyPopper=as,exports.EffectPartyPopperHost=y7,exports.EmptyState=pf,exports.ErrorState=mf,exports.FILTER_ALL_VALUE=cn,exports.FileUpload=N4,exports.FilterPanel=kn,exports.FilterSectionInfo=ja,exports.Footer=V5,exports.GameIntro=by,exports.Header=_l,exports.Icon=tt,exports.IconGridMenu=H5,exports.IconRenderer=tt,exports.InfoTooltip=vn,exports.ItemActions=ry,exports.LEVEL_MAX=pa,exports.LINE_CHART_HOVER_DELAY_MS=eu,exports.LandingBottomSticky=q5,exports.LandingHeader=W5,exports.LineChart=gy,exports.ListPopup=h7,exports.ListenStep=xc,exports.Loader=$a,exports.MARKS=lr,exports.MARK_ICON=fu,exports.MARK_VARIANT=gu,exports.MediaQueryOverrideContext=Bi,exports.MenuTooltip=Da,exports.NOISE_RATIO_MAX=Pa,exports.NOISE_RATIO_STEP=Gu,exports.NoisePlayerContext=Ho,exports.NoiseSettingsTooltip=mc,exports.NoticeBox=ff,exports.OrderListStep=Bc,exports.PASS_CARD_BG_VARS=Un,exports.POS_LABEL=vu,exports.PROMO_BANNER_BG_COMPONENTS=rl,exports.PROMO_BANNER_BG_OPTIONS=ab,exports.PROMO_BANNER_BG_VARS=Ba,exports.Page=fr,exports.PageTitle=v7,exports.Pagination=nr,exports.Panel=Cr,exports.PanelGrid=$3,exports.PanelRow=Rn,exports.PanelRowDevice=L3,exports.PassCard=Tl,exports.PassCardBg=c4,exports.PassCardBgIHAB=d4,exports.PassCardBgLeftColorGrid=p4,exports.PassCardBgTwoCircle=Nl,exports.PaymentPlan=u4,exports.PersonCard=W4,exports.PhonemeFilterPanel=p7,exports.PhonemeSelectBlock=c7,exports.Popup=$n,exports.ProgressBar=Ay,exports.ProgressIndicator=uu,exports.PromoBanner=wb,exports.PromoBannerBgDark=Vi,exports.PromoBannerBgDeep=Pi,exports.PromoBannerBgDiagonal=Gi,exports.PromoBannerBgDots=Yi,exports.PromoBannerBgInstagram=al,exports.PromoBannerBgMain=ji,exports.PromoBannerBgNaver=tl,exports.PromoBannerBgOutline=Xi,exports.PromoBannerBgRadial=qi,exports.PromoBannerBgSoft=Mi,exports.PromoBannerBgSoftSub=Ii,exports.PromoBannerBgSub=$i,exports.PromoBannerBgSuccess=Qi,exports.PromoBannerBgWarm=Hi,exports.PublicationCard=U4,exports.Radio=Rl,exports.RadioGroup=f4,exports.Rating=S4,exports.ReportDocument=k7,exports.ReportInfoPanel=N7,exports.RingChart=vy,exports.SENTENCE_TRAINING_TYPES=Po,exports.SearchSummary=x4,exports.Section=la,exports.SectionHeadFloat=Yl,exports.SectionHeader=K4,exports.SegmentedControl=Bn,exports.ShortcutBadge=$l,exports.SideNav=vl,exports.Slider=ou,exports.SoundCompass=m4,exports.SplashLogo=G4,exports.StatChart=xy,exports.SummaryStrip=B7,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=Fl,exports.Table=ko,exports.TableFilterPanel=Mo,exports.Tabs=_4,exports.TextBoxTooltip=hr,exports.TextField=Gn,exports.Timeline=q4,exports.Toast=sa,exports.Toggle=Ul,exports.Toolbar=go,exports.Tooltip=un,exports.TooltipInfo=vn,exports.TooltipTextBox=hr,exports.TopBanner=Bb,exports.TrainingBlock=Iy,exports.TrainingBlockButton=ho,exports.TrainingCard=T7,exports.TrainingCardGroup=M7,exports.TrainingPagePopup=Pn,exports.TrainingPagePopupBottom=hc,exports.TrainingPagePopupTitle=Cc,exports.TrainingResultPopup=Nc,exports.TrainingStep=Kn,exports.TrainingStepAudioPlayer=qo,exports.TrainingStepBullet=oc,exports.TrainingStepCard=uc,exports.TrainingStepConfirm=Go,exports.TrainingStepConfirmWithText=Ko,exports.TrainingStepListen=Yo,exports.TrainingStepOrderList=Zo,exports.TrainingStepTextBox=lc,exports.TrainingStepTitle=ic,exports.TrainingTooltip=Il,exports.TrainingWordCard=So,exports.UpdateAlert=j7,exports.WAVE_A_MAX=o3,exports.WAVE_H1_PX=Vo,exports.WAVE_HMAX_PX=r3,exports.WORD_TABLE_PAPER=ua,exports.WORD_TYPE_LABEL=xu,exports.WordDataProvider=w7,exports.WordDataUpdatePopup=q7,exports.WordImageTooltip=Ec,exports.WordSearchFilterPanel=d7,exports.WordSearchResultBlock=l7,exports.WordTable=ca,exports.WordTableBlock=F7,exports.WordTableButton=I7,exports.WordTablePopup=m5,exports.WordTableThumbnail=Lc,exports.buildMonthChartData=cy,exports.cellKey=x5,exports.cellLabel=v5,exports.cellsForLabels=M5,exports.clearPassCardBgTheme=wn,exports.clearPromoBannerBgTheme=Ht,exports.closeTrainingPopup=O3,exports.companyTypeLabel=x7,exports.createTrainingScenario=V3,exports.cx=Ae,exports.deriveNoiseContexts=Y3,exports.derivePassCard=Bl,exports.draftValues=I5,exports.effectiveNoiseVolume=Io,exports.effectiveSpeechVolume=Yu,exports.expandSlashLabel=To,exports.formatDuration=L5,exports.getControlDateRange=yy,exports.getPayloadTimestamp=Qo,exports.getPromoBannerBgTheme=no,exports.getSelectedFromPayload=q3,exports.getSelectedText=U3,exports.getStepPayload=yc,exports.getSteppedPayload=G3,exports.injectPassCardBgTheme=_n,exports.injectPromoBannerBgTheme=Ot,exports.isSelectionCorrect=K3,exports.labelOfCellKey=qu,exports.labelsForSave=y5,exports.levelToPct=G5,exports.markAfterClick=Cu,exports.marksForSave=jo,exports.mergeNoiseSettings=Ia,exports.missesByType=E5,exports.nextFocus=A5,exports.nextMisses=D5,exports.noiseElementVolume=Oo,exports.noiseRatioOf=Fa,exports.pageStartIndexes=bu,exports.passCardBgIhabTheme=Ml,exports.passCardBgLeftColorGridTheme=Ll,exports.passCardBgTwoCircleTheme=kl,exports.pctToLevel=K5,exports.printWordTable=qy,exports.promoBannerBgDarkTheme=zi,exports.promoBannerBgDeepTheme=Ri,exports.promoBannerBgDiagonalTheme=Ui,exports.promoBannerBgDotsTheme=Ki,exports.promoBannerBgInstagramTheme=nl,exports.promoBannerBgMainTheme=Si,exports.promoBannerBgNaverTheme=el,exports.promoBannerBgOutlineTheme=Zi,exports.promoBannerBgRadialTheme=Wi,exports.promoBannerBgSoftSubTheme=Fi,exports.promoBannerBgSoftTheme=Ti,exports.promoBannerBgSubTheme=Li,exports.promoBannerBgSuccessTheme=Ji,exports.promoBannerBgWarmTheme=Oi,exports.recommendTables=j5,exports.regenerateUnpinned=F5,exports.removeItem=P5,exports.resolveTrainingItems=z3,exports.resolveTrainingPopupMeta=gc,exports.reviewCells=C5,exports.reviewMeta=b5,exports.reviewSetPlan=S5,exports.reviewTableName=g5,exports.scoreKey=ir,exports.scoreSheetHeader=_5,exports.shouldConfirmDiscard=Wy,exports.splitTrainingVariants=H3,exports.summarize=Vy,exports.summarizeMisses=N5,exports.tableTrends=B5,exports.toDraft=$5,exports.toTrainingText=W3,exports.togglePin=R5,exports.uncoveredLabels=T5,exports.useAnchoredMenu=Na,exports.useBarChartControl=Jl,exports.useCalendarMonth=Kl,exports.useComboboxSuggestions=Wl,exports.useDiscardGuard=C7,exports.useFitScale=wu,exports.useNoisePlayer=cr,exports.useSoundCompassExam=_b,exports.useToastLifecycle=iu,exports.useWordData=_7,exports.useWordTableDisplaySettings=Vu,exports.useWordTablePrint=Ro,exports.waveBarPx=pr,exports.waveBarVal=mr,exports.weakItems=w5,exports.withStepTimes=bc;
1058
+ */const U7=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],G7=ee("circle-x",U7);function K7(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function ss({icon:e,label:t,state:a,pct:r,subText:s}){const{t:i}=_e.useTranslation(),l=a==="done",u=a==="pending",c=a==="error",d=l?100:r??0;return n.jsxs("div",{className:"wdup-phase-card",children:[n.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":c?" wdup-phase-card__icon--error":""}`,children:l?n.jsx(vs,{size:22,color:"white",strokeWidth:2.5}):c?n.jsx(G7,{size:22,color:"white",strokeWidth:2.5}):n.jsx("span",{className:`wdup-phase-card__icon-inner${u?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),n.jsxs("div",{className:"wdup-phase-card__body",children:[n.jsxs("div",{className:"wdup-phase-card__top",children:[n.jsx("span",{className:`wdup-phase-card__label body-2${u?" wdup-phase-card__label--pending":""}`,children:t}),l?n.jsx(wt,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):c?n.jsx(wt,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(s||r!==void 0)&&n.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[s,s&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!u&&n.jsx("div",{className:"wdup-bar",children:n.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":c?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||c?`${c?100:d}%`:void 0}})})]})]})}function Y7({title:e,progress:t,onDone:a,onRetry:r,onClose:s,inline:i}){const{t:l}=_e.useTranslation(),{phase:u,error:c,wordCount:d,imagePage:m,imageDone:p,imageTotal:f,pairPercent:y}=t,x=K7(u),h=u==="done",g=!!c;function _(k){return g&&x===k?"error":x>k?"done":x===k?"active":"pending"}const C=_(1),w=_(2),b=_(3),B=u==="image-match"&&f?Math.round((p??0)/f*100):void 0,v=o.useMemo(()=>{if(w!=="done"){if(u==="image-list")return l("wordData.checkingPage",{page:m??1});if(u==="image-match"&&f)return l("wordData.imageCount",{done:Ur(p),total:Ur(f)})}},[w,u,m,f,p,l]);return n.jsx($n,{inline:i,className:"popup--word-data-update",title:e,footer:g&&r?n.jsx(me,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):g?n.jsx(me,{htmlType:"button",size:56,variant:"main",onClick:s??a,children:l("common.close","\uB2EB\uAE30")}):n.jsx(me,{htmlType:"button",size:56,variant:"main",disabled:!h,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:n.jsxs("div",{className:"wdup-cards",children:[n.jsx(ss,{icon:n.jsx(Cs,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:C,subText:C==="active"?l("wordData.downloadingCount",{n:Ur(d)}):void 0}),n.jsx(ss,{icon:n.jsx(q7,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:w,pct:B,subText:v}),n.jsx(ss,{icon:n.jsx(bs,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:b,pct:b==="active"?y??0:void 0,subText:void 0})]})})}function Z7({enabled:e=!1,renderResultPopup:t}={}){const{t:a}=_e.useTranslation(),[r,s]=o.useState(null),[i,l]=o.useState(null),u=y=>{let x=null;y==="noise"?x={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:y==="short"?x={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:y==="long"?x={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:y==="order"&&(x={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),l(x),s(y)},c=o.useCallback(()=>{s(null),l(null)},[]),d=o.useCallback(()=>u("noise"),[]),m=o.useCallback(()=>u("short"),[]),p=o.useCallback(()=>u("long"),[]),f=o.useCallback(()=>u("order"),[]);return e?n.jsxs("div",{className:"debug-result-launcher",children:[n.jsxs("div",{className:"debug-buttons",children:[n.jsx("button",{type:"button",className:"debug-button",onClick:d,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:f,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&i?t?.({score:i.score,contextsLength:i.contextsLength,results:i.results,onReplay:c,onClose:c}):null]}):null}exports.Accordion=Db,exports.ActionCard=ff,exports.Alert=v4,exports.AppHeader=Lb,exports.AudioMeter=Bo,exports.AudioPlayer=qo,exports.Avatar=N4,exports.Badge=wt,exports.BarChart=gy,exports.BarChartControls=Ql,exports.Board=q4,exports.BottomNav=fl,exports.BrandIdentity=xl,exports.Breadcrumb=S4,exports.BulkBar=ry,exports.Button=me,exports.CORE_VERSION=cf,exports.Calendar=Iy,exports.CardStep=Ac,exports.ChartLegend=bo,exports.ChartSection=yo,exports.ChartTotal=Ra,exports.Checkbox=Gl,exports.ChoiceChips=U5,exports.CircleBadge=f4,exports.CodeBox=ny,exports.ColorPicker=$4,exports.CompanyMeta=X4,exports.ConfirmPopup=Sc,exports.ConfirmStep=_c,exports.ConfirmWithTextStep=wc,exports.ContrastFilterPanel=g7,exports.CoreScope=gf,exports.CountTile=H4,exports.CouponInputPopup=v7,exports.DEFAULT_NOISE_SETTINGS=Oa,exports.DatePicker=cy,exports.DebugResultLauncher=Z7,exports.DescriptionTooltip=Wn,exports.DeviceSideTable=Ry,exports.Dialog=W4,exports.Divider=g4,exports.Dropdown=dn,exports.EffectPartyPopper=as,exports.EffectPartyPopperHost=w7,exports.EmptyState=hf,exports.ErrorState=Cf,exports.FILTER_ALL_VALUE=cn,exports.FileUpload=E4,exports.FilterPanel=kn,exports.FilterSectionInfo=ja,exports.Footer=G5,exports.GameIntro=vy,exports.Header=_l,exports.Icon=tt,exports.IconGridMenu=q5,exports.IconRenderer=tt,exports.InfoTooltip=vn,exports.ItemActions=sy,exports.LEVEL_MAX=pa,exports.LINE_CHART_HOVER_DELAY_MS=eu,exports.LandingBottomSticky=Y5,exports.LandingHeader=K5,exports.LineChart=yy,exports.ListPopup=b7,exports.ListenStep=xc,exports.Loader=$a,exports.MARKS=lr,exports.MARK_ICON=fu,exports.MARK_VARIANT=gu,exports.MediaQueryOverrideContext=Bi,exports.MenuTooltip=Da,exports.NOISE_RATIO_MAX=Pa,exports.NOISE_RATIO_STEP=Gu,exports.NoisePlayerContext=Ho,exports.NoiseSettingsTooltip=mc,exports.NoticeBox=bf,exports.OrderListStep=Bc,exports.PASS_CARD_BG_VARS=Un,exports.POS_LABEL=vu,exports.PROMO_BANNER_BG_COMPONENTS=rl,exports.PROMO_BANNER_BG_OPTIONS=ob,exports.PROMO_BANNER_BG_VARS=Ba,exports.Page=fr,exports.PageTitle=B7,exports.Pagination=nr,exports.Panel=Cr,exports.PanelGrid=I3,exports.PanelRow=Rn,exports.PanelRowDevice=F3,exports.PassCard=Tl,exports.PassCardBg=p4,exports.PassCardBgIHAB=m4,exports.PassCardBgLeftColorGrid=h4,exports.PassCardBgTwoCircle=Nl,exports.PaymentPlan=d4,exports.PersonCard=U4,exports.PhonemeFilterPanel=f7,exports.PhonemeSelectBlock=h7,exports.Popup=$n,exports.ProgressBar=Ny,exports.ProgressIndicator=uu,exports.PromoBanner=Ab,exports.PromoBannerBgDark=Vi,exports.PromoBannerBgDeep=Pi,exports.PromoBannerBgDiagonal=Gi,exports.PromoBannerBgDots=Yi,exports.PromoBannerBgInstagram=al,exports.PromoBannerBgMain=ji,exports.PromoBannerBgNaver=tl,exports.PromoBannerBgOutline=Xi,exports.PromoBannerBgRadial=qi,exports.PromoBannerBgSoft=Mi,exports.PromoBannerBgSoftSub=Ii,exports.PromoBannerBgSub=$i,exports.PromoBannerBgSuccess=Qi,exports.PromoBannerBgWarm=Hi,exports.PublicationCard=K4,exports.Radio=Rl,exports.RadioGroup=b4,exports.Rating=T4,exports.ReportDocument=S7,exports.ReportInfoPanel=j7,exports.RingChart=_y,exports.SENTENCE_TRAINING_TYPES=Po,exports.SearchSummary=w4,exports.Section=la,exports.SectionHeadFloat=Yl,exports.SectionHeader=Z4,exports.SegmentedControl=Bn,exports.ShortcutBadge=$l,exports.SideNav=vl,exports.Slider=ou,exports.SoundCompass=C4,exports.SplashLogo=Y4,exports.StatChart=wy,exports.SummaryStrip=D7,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=Fl,exports.Table=ko,exports.TableFilterPanel=Mo,exports.Tabs=B4,exports.TextBoxTooltip=hr,exports.TextField=Gn,exports.Timeline=G4,exports.Toast=sa,exports.Toggle=Ul,exports.Toolbar=go,exports.Tooltip=un,exports.TooltipInfo=vn,exports.TooltipTextBox=hr,exports.TopBanner=kb,exports.TrainingBlock=Hy,exports.TrainingBlockButton=ho,exports.TrainingBlockGrid=Vy,exports.TrainingCard=R7,exports.TrainingCardGroup=P7,exports.TrainingPagePopup=Pn,exports.TrainingPagePopupBottom=hc,exports.TrainingPagePopupTitle=Cc,exports.TrainingResultPopup=Nc,exports.TrainingStep=Kn,exports.TrainingStepAudioPlayer=qo,exports.TrainingStepBullet=oc,exports.TrainingStepCard=uc,exports.TrainingStepConfirm=Go,exports.TrainingStepConfirmWithText=Ko,exports.TrainingStepListen=Yo,exports.TrainingStepOrderList=Zo,exports.TrainingStepTextBox=lc,exports.TrainingStepTitle=ic,exports.TrainingTooltip=Il,exports.TrainingWordCard=So,exports.UpdateAlert=$7,exports.WAVE_A_MAX=u3,exports.WAVE_H1_PX=Vo,exports.WAVE_HMAX_PX=l3,exports.WORD_TABLE_PAPER=ua,exports.WORD_TYPE_LABEL=xu,exports.WordDataProvider=N7,exports.WordDataUpdatePopup=Y7,exports.WordImageTooltip=Ec,exports.WordSearchFilterPanel=C7,exports.WordSearchResultBlock=p7,exports.WordTable=ca,exports.WordTableBlock=z7,exports.WordTableButton=V7,exports.WordTablePopup=g5,exports.WordTableThumbnail=Lc,exports.buildMonthChartData=py,exports.cellKey=A5,exports.cellLabel=B5,exports.cellsForLabels=P5,exports.clearPassCardBgTheme=wn,exports.clearPromoBannerBgTheme=Ht,exports.closeTrainingPopup=W3,exports.companyTypeLabel=A7,exports.createTrainingScenario=G3,exports.cx=Ae,exports.deriveNoiseContexts=Q3,exports.derivePassCard=Bl,exports.draftValues=V5,exports.effectiveNoiseVolume=Io,exports.effectiveSpeechVolume=Yu,exports.expandSlashLabel=To,exports.formatDuration=F5,exports.getControlDateRange=xy,exports.getPayloadTimestamp=Qo,exports.getPromoBannerBgTheme=no,exports.getSelectedFromPayload=Y3,exports.getSelectedText=Z3,exports.getStepPayload=yc,exports.getSteppedPayload=X3,exports.injectPassCardBgTheme=_n,exports.injectPromoBannerBgTheme=Ot,exports.isSelectionCorrect=J3,exports.labelOfCellKey=qu,exports.labelsForSave=w5,exports.levelToPct=X5,exports.markAfterClick=Cu,exports.marksForSave=jo,exports.mergeNoiseSettings=Ia,exports.missesByType=M5,exports.nextFocus=E5,exports.nextMisses=T5,exports.noiseElementVolume=Oo,exports.noiseRatioOf=Fa,exports.pageStartIndexes=bu,exports.passCardBgIhabTheme=Ml,exports.passCardBgLeftColorGridTheme=Ll,exports.passCardBgTwoCircleTheme=kl,exports.pctToLevel=J5,exports.printWordTable=Yy,exports.promoBannerBgDarkTheme=zi,exports.promoBannerBgDeepTheme=Ri,exports.promoBannerBgDiagonalTheme=Ui,exports.promoBannerBgDotsTheme=Ki,exports.promoBannerBgInstagramTheme=nl,exports.promoBannerBgMainTheme=Si,exports.promoBannerBgNaverTheme=el,exports.promoBannerBgOutlineTheme=Zi,exports.promoBannerBgRadialTheme=Wi,exports.promoBannerBgSoftSubTheme=Fi,exports.promoBannerBgSoftTheme=Ti,exports.promoBannerBgSubTheme=Li,exports.promoBannerBgSuccessTheme=Ji,exports.promoBannerBgWarmTheme=Oi,exports.recommendTables=$5,exports.regenerateUnpinned=z5,exports.removeItem=H5,exports.resolveTrainingItems=U3,exports.resolveTrainingPopupMeta=gc,exports.reviewCells=y5,exports.reviewMeta=_5,exports.reviewSetPlan=L5,exports.reviewTableName=x5,exports.scoreKey=ir,exports.scoreSheetHeader=k5,exports.shouldConfirmDiscard=Ky,exports.splitTrainingVariants=q3,exports.summarize=Gy,exports.summarizeMisses=j5,exports.tableTrends=D5,exports.toDraft=I5,exports.toTrainingText=K3,exports.togglePin=O5,exports.uncoveredLabels=R5,exports.useAnchoredMenu=Na,exports.useBarChartControl=Jl,exports.useCalendarMonth=Kl,exports.useComboboxSuggestions=Wl,exports.useDiscardGuard=y7,exports.useFitScale=wu,exports.useNoisePlayer=cr,exports.useSoundCompassExam=Bb,exports.useToastLifecycle=iu,exports.useWordData=k7,exports.useWordTableDisplaySettings=Vu,exports.useWordTablePrint=Ro,exports.waveBarPx=pr,exports.waveBarVal=mr,exports.weakItems=N5,exports.withStepTimes=bc;