@ihabdevteam/core 0.189.0 → 0.190.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.
- package/CHANGELOG.md +30 -0
- package/dist/components.cjs.js +11 -11
- package/dist/components.esm.css +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/i18n.cjs.js +1 -1
- package/dist/ihabdevteam-core.cjs.js +17 -17
- package/dist/ihabdevteam-core.d.ts +25 -2
- package/dist/packages/core/src/components/LineChart.d.ts +8 -1
- package/dist/packages/core/src/components/Popup/Popup.css +38 -0
- package/dist/packages/core/src/components/Popup/Popup.d.ts +16 -0
- package/dist/packages/core/src/components/Popup/Popup.js +5 -2
- package/dist/packages/core/src/version.d.ts +1 -1
- package/dist/packages/core/src/version.js +1 -1
- package/dist/utils.cjs.js +1 -1
- package/package.json +1 -1
package/dist/components.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var n=require("react/jsx-runtime"),o=require("react"),St=require("i18next"),
|
|
1
|
+
"use strict";var n=require("react/jsx-runtime"),o=require("react"),St=require("i18next"),be=require("react-i18next"),Ut=require("react-dom"),fn=typeof document<"u"?document.currentScript:null;function wu(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(a){if(a!=="default"){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,Object.freeze(t)}var Jo=wu(o);function De(...e){return e.filter(Boolean).join(" ")}const Qo=new Set,es=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function Cn(e,...t){!es||Qo.has(e)||(Qo.add(e),console.warn(...t))}/**
|
|
2
2
|
* @license lucide-react v1.38.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* 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 r0=[["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"}]],o0=Q("thumbs-up",r0),bs={"alert-triangle":as,"align-start-vertical":Tu,anchor:ph,armchair:hh,"arrow-down":Lu,"arrow-left":Ru,"arrow-right":Iu,"arrow-right-left":Ou,"arrow-up-a-z":Ch,"audio-lines":zu,baby:Wu,ban:Uu,"bar-chart-2":bh,bell:Ku,"book-marked":Zu,"book-open":Ju,"bow-arrow":ed,braces:nd,bug:rd,calendar:fs,"calendar-check":sd,"calendar-days":ld,camera:ud,car:xh,"chart-column":pd,"chart-line":hd,"chart-pie":Cd,check:rs,"chevron-down":Cs,"chevron-left":os,"chevron-right":ss,"chevron-up":gs,circle:Xh,"clipboard-list":xd,coffee:wh,combine:wd,copy:Ad,"chevrons-left-right-ellipsis":Nd,"credit-card":Dd,database:is,diff:Td,download:ls,ear:$d,edit:Pd,"edit-2":Fd,"edit-3":Hd,ellipsis:cs,eraser:Wd,"external-link":Ud,eye:Kd,"file-text":Zd,"flip-horizontal":Jd,"folder-open":ep,"folder-plus":np,gamepad:rp,"gamepad-2":Ah,clock:Nh,target:Dh,percent:jh,gavel:sp,"git-merge":us,globe:cp,"grip-vertical":dp,headphones:mp,heart:fp,home:gp,inbox:Mh,info:yp,"key-round":xp,landmark:wp,layers:Ap,"layout-dashboard":Np,leaf:Dp,lightbulb:jp,link:Mp,"link-2":$p,"link-2-off":Pp,list:Fp,"list-checks":Hp,"list-ordered":Vp,"list-tree":$h,loader:qp,lock:Gp,"log-out":Yp,mail:Xp,"map-pin":Qp,menu:t0,"message-circle":t1,"message-circle-question-mark":a1,"message-square":o1,"message-square-more":Ph,"message-square-text":i1,minus:Fh,"minus-circle":c1,moon:a0,"more-horizontal":cs,package:d1,palette:m1,"party-popper":f1,pause:g1,pencil:y1,phone:x1,play:w1,"play-circle":A1,plus:N1,printer:D1,"refresh-cw":j1,repeat:M1,replace:$1,rocket:P1,"rotate-ccw":F1,"rotate-cw":H1,salad:V1,"scan-search":q1,search:Y1,"circle-alert":ds,"alert-circle":ds,"check-circle":ps,scissors:X1,"search-x":Q1,send:tm,settings:am,"share-2":Hh,"shield-check":om,"shopping-cart":im,shuffle:cm,"skip-back":dm,"skip-forward":mm,sparkles:Vh,square:fm,star:gm,store:ym,"sun-medium":xm,table:wm,"table-2":Am,tag:Nm,terminal:Dm,"text-cursor-input":jm,"text-initial":Mm,"thumbs-up":o0,ticket:$m,trash:Fm,triangle:Qh,"trash-2":Pm,"trending-up":Hm,"triangle-alert":as,trophy:Vm,type:qh,unlink:qm,upload:Gm,user:fr,"user-plus":Zm,"user-round":Jm,"user-round-check":eh,users:nh,"users-round":rh,volume:Gh,"volume-2":ms,wrench:ih,x:hs,zap:uh};function s0(e){return bs[e]??null}const ys=new Set;function i0(e){return es&&!(e in bs)&&!ys.has(e)&&(ys.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 l0=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 c0(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?l0(a):null}const vs=new Map;function u0(e){const t=typeof e=="string"?c0(e):null,a=t?s0(t)??vs.get(t)??null:null,[r,s]=o.useState(null);return o.useEffect(()=>{if(!t||a)return;let i=!1;return i0(t).then(l=>{vs.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 xs(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 d0(e){if(Array.isArray(e))return e}function p0(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,s,i,l,c=[],d=!0,u=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(d=(r=i.call(a)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(p){u=!0,s=p}finally{try{if(!d&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(u)throw s}}return c}}function m0(){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 h0(e,t){return d0(e)||p0(e,t)||f0(e,t)||m0()}function f0(e,t){if(e){if(typeof e=="string")return xs(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)?xs(e,t):void 0}}const _s=Object.entries,ws=Object.setPrototypeOf,C0=Object.isFrozen,g0=Object.getPrototypeOf,b0=Object.getOwnPropertyDescriptor;let wt=Object.freeze,At=Object.seal,qn=Object.create,ks=typeof Reflect<"u"&&Reflect,Cr=ks.apply,gr=ks.construct;wt||(wt=function(t){return t}),At||(At=function(t){return t}),Cr||(Cr=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)}),gr||(gr=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 $n=xt(Array.prototype.forEach),y0=xt(Array.prototype.lastIndexOf),As=xt(Array.prototype.pop),la=xt(Array.prototype.push),v0=xt(Array.prototype.splice),Un=Array.isArray,ca=xt(String.prototype.toLowerCase),br=xt(String.prototype.toString),Bs=xt(String.prototype.match),ua=xt(String.prototype.replace),Ns=xt(String.prototype.indexOf),x0=xt(String.prototype.trim),_0=xt(Number.prototype.toString),w0=xt(Boolean.prototype.toString),Ss=typeof BigInt>"u"?null:xt(BigInt.prototype.toString),Ds=typeof Symbol>"u"?null:xt(Symbol.prototype.toString),Ft=xt(Object.prototype.hasOwnProperty),da=xt(Object.prototype.toString),jt=xt(RegExp.prototype.test),Rn=k0(TypeError);function xt(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 Cr(e,t,r)}}function k0(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return gr(e,a)}}function Qe(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ca;if(ws&&ws(e,null),!Un(t))return e;let r=t.length;for(;r--;){let s=t[r];if(typeof s=="string"){const i=a(s);i!==s&&(C0(t)||(t[r]=i),s=i)}e[s]=!0}return e}function A0(e){for(let t=0;t<e.length;t++)Ft(e,t)||(e[t]=null);return e}function Gt(e){const t=qn(null);for(const r of _s(e)){var a=h0(r,2);const s=a[0],i=a[1];Ft(e,s)&&(Un(i)?t[s]=A0(i):i&&typeof i=="object"&&i.constructor===Object?t[s]=Gt(i):t[s]=i)}return t}function B0(e){switch(typeof e){case"string":return e;case"number":return _0(e);case"boolean":return w0(e);case"bigint":return Ss?Ss(e):"0";case"symbol":return Ds?Ds(e):"Symbol()";case"undefined":return da(e);case"function":case"object":{if(e===null)return da(e);const t=e,a=nn(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:da(r)}return da(e)}default:return da(e)}}function nn(e,t){for(;e!==null;){const r=b0(e,t);if(r){if(r.get)return xt(r.get);if(typeof r.value=="function")return xt(r.value)}e=g0(e)}function a(){return null}return a}function N0(e){try{return jt(e,""),!0}catch{return!1}}const Es=wt(["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"]),yr=wt(["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"]),vr=wt(["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"]),S0=wt(["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"]),xr=wt(["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"]),D0=wt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),js=wt(["#text"]),Ts=wt(["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"]),_r=wt(["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"]),Ms=wt(["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"]),Ra=wt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),E0=At(/{{[\w\W]*|^[\w\W]*}}/g),j0=At(/<%[\w\W]*|^[\w\W]*%>/g),T0=At(/\${[\w\W]*/g),M0=At(/^data-[\-\w.\u00B7-\uFFFF]+$/),L0=At(/^aria-[\-\w]+$/),Ls=At(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$0=At(/^(?:\w+script|data):/i),R0=At(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),P0=At(/^html$/i),I0=At(/^[a-z][.\w]*(-[.\w]+)+$/i),$s=At(/<[/\w!]/g),Rs=At(/<[/\w]/g),F0=At(/<\/no(script|embed|frames)/i),O0=At(/\/>/i),Kt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ps=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],H0=wt(Qe({},Ps)),z0=(function(){const e={};return $n(Ps,t=>{e[t]=At(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),wt(e)})(),V0=function(){return typeof window>"u"?null:window},W0=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}},Is=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Nn=function(t,a,r,s){return Ft(t,a)&&Un(t[a])?Qe(s.base?Gt(s.base):{},t[a],s.transform):r},wr=function(t,a,r){const s=Ft(t,a)?t[a]:void 0;return s&&typeof s=="object"?Gt(s):r()};function Fs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:V0();const t=xe=>Fs(xe);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==Kt.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,c=e.Element,d=e.NodeFilter,u=e.NamedNodeMap;u===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,m=e.trustedTypes,h=c.prototype,b=nn(h,"cloneNode"),v=nn(h,"remove"),C=nn(h,"nextSibling"),w=nn(h,"childNodes"),f=nn(h,"parentNode"),g=nn(h,"shadowRoot"),x=nn(h,"attributes"),y=l&&l.prototype?nn(l.prototype,"nodeType"):null,k=l&&l.prototype?nn(l.prototype,"nodeName"):null,_=l&&l.prototype?nn(l.prototype,"ownerDocument"):null,B=function(T){return y?y(T):T.nodeType},N=function(T){return k?k(T):T.nodeName};if(typeof i=="function"){const xe=a.createElement("template");xe.content&&xe.content.ownerDocument&&(a=xe.content.ownerDocument)}let A,S="",O,H=!1,j=0;const q=function(){if(j>0)throw Rn('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.')},E=function(T){q(),j++;try{return A.createHTML(T)}finally{j--}},M=function(T){q(),j++;try{return A.createScriptURL(T)}finally{j--}},I=function(){return H||(O=W0(m,s),H=!0),O},G=a,Z=G.implementation,Y=G.createNodeIterator,z=G.createDocumentFragment,J=G.getElementsByTagName,$=r.importNode;let D=Is();t.isSupported=typeof _s=="function"&&typeof f=="function"&&Z&&Z.createHTMLDocument!==void 0;const F=E0,P=j0,R=T0,L=M0,K=L0,U=$0,ee=R0,ae=I0;let Be=Ls,ie=null;const se=Qe({},[...Es,...yr,...vr,...xr,...js]);let W=null;const re=Qe({},[...Ts,..._r,...Ms,...Ra]);let pe=Object.seal(qn(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}})),ve=null,Ce=null;const Ae=Object.seal(qn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let he=!0,be=!0,Te=!1,Oe=!0,Pe=!1,ce=!0,ne=!1,Ne=!1,je=null,ke=null,ye=!1,Se=!1,me=!1,Ge=!1,Ue=!0,Ye=!1;const Ze="user-content-";let Xe=!0,ze=!1,$e={},Ve=null;const ot=Qe({},["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 Ct=null;const zt=Qe({},["audio","video","img","source","image","track"]);let gt=null;const nt=Qe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",et="http://www.w3.org/2000/svg",lt="http://www.w3.org/1999/xhtml";let We=lt,ft=!1,qe=null;const pt=Qe({},[Je,et,lt],br),Et=wt(["mi","mo","mn","ms","mtext"]);let kt=Qe({},Et);const _t=wt(["annotation-xml"]);let st=Qe({},_t);const Ie=Qe({},["title","style","font","a","script"]);let rt=null;const bt=["application/xhtml+xml","text/html"],Vt="text/html";let tt=null,Zt=null;const An=a.createElement("form"),Bt=function(T){return T instanceof RegExp||T instanceof Function},Wt=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Zt&&Zt===T)return;(!T||typeof T!="object")&&(T={}),T=Gt(T),rt=bt.indexOf(T.PARSER_MEDIA_TYPE)===-1?Vt:T.PARSER_MEDIA_TYPE,tt=rt==="application/xhtml+xml"?br:ca,ie=Nn(T,"ALLOWED_TAGS",se,{transform:tt}),W=Nn(T,"ALLOWED_ATTR",re,{transform:tt}),qe=Nn(T,"ALLOWED_NAMESPACES",pt,{transform:br}),gt=Nn(T,"ADD_URI_SAFE_ATTR",nt,{transform:tt,base:nt}),Ct=Nn(T,"ADD_DATA_URI_TAGS",zt,{transform:tt,base:zt}),Ve=Nn(T,"FORBID_CONTENTS",ot,{transform:tt}),ve=Nn(T,"FORBID_TAGS",Gt({}),{transform:tt}),Ce=Nn(T,"FORBID_ATTR",Gt({}),{transform:tt}),$e=Ft(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?Gt(T.USE_PROFILES):T.USE_PROFILES:!1,he=T.ALLOW_ARIA_ATTR!==!1,be=T.ALLOW_DATA_ATTR!==!1,Te=T.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Pe=T.SAFE_FOR_TEMPLATES||!1,ce=T.SAFE_FOR_XML!==!1,ne=T.WHOLE_DOCUMENT||!1,Se=T.RETURN_DOM||!1,me=T.RETURN_DOM_FRAGMENT||!1,Ge=T.RETURN_TRUSTED_TYPE||!1,ye=T.FORCE_BODY||!1,Ue=T.SANITIZE_DOM!==!1,Ye=T.SANITIZE_NAMED_PROPS||!1,Xe=T.KEEP_CONTENT!==!1,ze=T.IN_PLACE||!1,Be=N0(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:Ls,We=typeof T.NAMESPACE=="string"?T.NAMESPACE:lt,kt=wr(T,"MATHML_TEXT_INTEGRATION_POINTS",()=>Qe({},Et)),st=wr(T,"HTML_INTEGRATION_POINTS",()=>Qe({},_t));const X=wr(T,"CUSTOM_ELEMENT_HANDLING",()=>qn(null));if(pe=qn(null),Ft(X,"tagNameCheck")&&Bt(X.tagNameCheck)&&(pe.tagNameCheck=X.tagNameCheck),Ft(X,"attributeNameCheck")&&Bt(X.attributeNameCheck)&&(pe.attributeNameCheck=X.attributeNameCheck),Ft(X,"allowCustomizedBuiltInElements")&&typeof X.allowCustomizedBuiltInElements=="boolean"&&(pe.allowCustomizedBuiltInElements=X.allowCustomizedBuiltInElements),At(pe),Pe&&(be=!1),me&&(Se=!0),$e&&(ie=Qe({},js),W=qn(null),$e.html===!0&&(Qe(ie,Es),Qe(W,Ts)),$e.svg===!0&&(Qe(ie,yr),Qe(W,_r),Qe(W,Ra)),$e.svgFilters===!0&&(Qe(ie,vr),Qe(W,_r),Qe(W,Ra)),$e.mathMl===!0&&(Qe(ie,xr),Qe(W,Ms),Qe(W,Ra))),Ae.tagCheck=null,Ae.attributeCheck=null,Ft(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?Ae.tagCheck=T.ADD_TAGS:Un(T.ADD_TAGS)&&(ie===se&&(ie=Gt(ie)),Qe(ie,T.ADD_TAGS,tt))),Ft(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?Ae.attributeCheck=T.ADD_ATTR:Un(T.ADD_ATTR)&&(W===re&&(W=Gt(W)),Qe(W,T.ADD_ATTR,tt))),Ft(T,"ADD_FORBID_CONTENTS")&&Un(T.ADD_FORBID_CONTENTS)&&(Ve===ot&&(Ve=Gt(Ve)),Qe(Ve,T.ADD_FORBID_CONTENTS,tt)),Xe&&(ie["#text"]=!0),ne&&Qe(ie,["html","head","body"]),ie.table&&(Qe(ie,["tbody"]),delete ve.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw Rn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Rn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const de=A;A=T.TRUSTED_TYPES_POLICY;try{S=E("")}catch(Me){throw A=de,Me}}else T.TRUSTED_TYPES_POLICY===null?(A=void 0,S=""):(A===void 0&&(A=I()),A&&typeof S=="string"&&(S=E("")));wt&&wt(T),Zt=T},en=Qe({},[...yr,...vr,...S0]),on=Qe({},[...xr,...D0]),cn=function(T,X,de){return X.namespaceURI===lt?T==="svg":X.namespaceURI===Je?T==="svg"&&(de==="annotation-xml"||kt[de]):!!en[T]},tn=function(T,X,de){return X.namespaceURI===lt?T==="math":X.namespaceURI===et?T==="math"&&st[de]:!!on[T]},Bn=function(T,X,de){return X.namespaceURI===et&&!st[de]||X.namespaceURI===Je&&!kt[de]?!1:!on[T]&&(Ie[T]||!en[T])},Xt=function(T){let X=f(T);(!X||!X.tagName)&&(X={namespaceURI:We,tagName:"template"});const de=ca(T.tagName),Me=ca(X.tagName);return qe[T.namespaceURI]?T.namespaceURI===et?cn(de,X,Me):T.namespaceURI===Je?tn(de,X,Me):T.namespaceURI===lt?Bn(de,X,Me):!!(rt==="application/xhtml+xml"&&qe[T.namespaceURI]):!1},yt=function(T){la(t.removed,{element:T});try{f(T).removeChild(T)}catch{if(v(T),!f(T))throw Rn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},un=function(T,X,de){try{T.removeAttributeNode(X)}catch{try{T.removeAttribute(de)}catch{}}},Jt=function(T){Qt(T);const X=w(T);if(X){const Me=[];$n(X,Re=>{la(Me,Re)}),$n(Me,Re=>{try{v(Re)}catch{}})}const de=x(T);if(de)for(let Me=de.length-1;Me>=0;--Me){const Re=de[Me],He=Re&&Re.name;typeof He=="string"&&un(T,Re,He)}},Tt=function(T,X,de){if(!de)try{de=X.getAttributeNode(T)}catch{de=null}la(t.removed,{attribute:de||null,from:X});try{de?X.removeAttributeNode(de):X.removeAttribute(T)}catch{try{X.removeAttribute(T)}catch{}}if(T==="is")if(Se||me)try{yt(X)}catch{}else try{X.setAttribute(T,"")}catch{}},dn=function(T){const X=x(T);if(X)for(let de=X.length-1;de>=0;--de){const Me=X[de],Re=Me&&Me.name;typeof Re!="string"||W[tt(Re)]||un(T,Me,Re)}},Qt=function(T){const X=[T];for(;X.length>0;){const de=X.pop();B(de)===Kt.element&&dn(de);const Re=w(de);if(Re)for(let He=Re.length-1;He>=0;--He)X.push(Re[He])}},pn=function(T,X){return ce?T==="patchsrc"?!0:T==="for"&&X!=="label"&&X!=="output":!1},Ee=function(T){if(!ce)return;const X=[T];for(;X.length>0;){const de=X.pop(),Me=B(de);if(Me===Kt.processingInstruction||Me===Kt.comment&&jt(Rs,de.data)){try{v(de)}catch{}continue}if(Me===Kt.element){const He=de,it=tt(N(de));try{He.hasAttribute&&He.hasAttribute("patchsrc")&&He.removeAttribute("patchsrc"),He.hasAttribute&&He.hasAttribute("for")&&pn("for",it)&&He.removeAttribute("for")}catch{}}const Re=w(de);if(Re)for(let He=Re.length-1;He>=0;--He)X.push(Re[He])}},Fe=function(T){let X=null,de=null;if(ye)T="<remove></remove>"+T;else{const He=Bs(T,/^[\r\n\t ]+/);de=He&&He[0]}rt==="application/xhtml+xml"&&We===lt&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const Me=A?E(T):T;if(We===lt)try{X=new p().parseFromString(Me,rt)}catch{}if(!X||!X.documentElement){X=Z.createDocument(We,"template",null);try{X.documentElement.innerHTML=ft?S:Me}catch{}}const Re=X.body||X.documentElement;return T&&de&&Re.insertBefore(a.createTextNode(de),Re.childNodes[0]||null),We===lt?J.call(X,ne?"html":"body")[0]:ne?X.documentElement:Re},te=function(T){const X=_?_(T):T.ownerDocument;return Y.call(X||T,T,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},fe=function(T){return T=ua(T,F," "),T=ua(T,P," "),T=ua(T,R," "),T},V=function(T){var X;T.normalize();const de=_?_(T):T.ownerDocument,Me=Y.call(de||T,T,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null);let Re=Me.nextNode();for(;Re;)Re.data=fe(Re.data),Re=Me.nextNode();const He=(X=T.querySelectorAll)===null||X===void 0?void 0:X.call(T,"template");He&&$n(He,it=>{ue(it.content)&&V(it.content)})},oe=function(T){const X=k?k(T):null;return typeof X!="string"||tt(X)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==x(T)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function"||T.nodeType!==y(T)||T.childNodes!==w(T)},ue=function(T){if(!y||typeof T!="object"||T===null)return!1;try{return y(T)===Kt.documentFragment}catch{return!1}},_e=function(T){if(!y||typeof T!="object"||T===null)return!1;try{return typeof y(T)=="number"}catch{return!1}};function we(xe,T,X){xe.length!==0&&$n(xe,de=>{de.call(t,T,X,Zt)})}const Le=function(T,X){return!!(ce&&T.hasChildNodes()&&!_e(T.firstElementChild)&&jt($s,T.textContent)&&jt($s,T.innerHTML)||ce&&T.namespaceURI===lt&&H0[X]&&(_e(T.firstElementChild)||typeof T.textContent=="string"&&jt(z0[X],T.textContent))||T.nodeType===Kt.processingInstruction||ce&&T.nodeType===Kt.comment&&jt(Rs,T.data))},at=function(T,X){if(T instanceof RegExp)return jt(T,X);if(T instanceof Function){for(var de=arguments.length,Me=new Array(de>2?de-2:0),Re=2;Re<de;Re++)Me[Re-2]=arguments[Re];return!!T(X,...Me)}return!1},vt=function(T,X,de){if(!ve[X]&&hn(X)&&at(pe.tagNameCheck,X))return!1;if(Xe&&!Ve[X]){const Me=f(T),Re=w(T);if(Re&&Me){const He=Re.length;for(let it=He-1;it>=0;--it){const dt=T===de?b(Re[it],!0):Re[it];Me.insertBefore(dt,C(T))}}}return yt(T),!0},ut=function(T,X,de,Me){return T.length===0?X:X===de||X===Me?Gt(X):X},Nt=function(T,X){return T===X||f(T)!==null?!1:(ze&&Qt(T),!0)},qt=function(T,X){if(we(D.beforeSanitizeElements,T,null),Nt(T,X))return!0;if(oe(T))return yt(T),!0;const de=tt(N(T));if(ie=ut(D.uponSanitizeElement,ie,se,je),we(D.uponSanitizeElement,T,{tagName:de,allowedTags:ie}),Nt(T,X))return!0;if(Le(T,de))return yt(T),!0;if(ve[de]||!(Ae.tagCheck instanceof Function&&Ae.tagCheck(de))&&!ie[de]){const Re=vt(T,de,X);return Re===!1&&we(D.afterSanitizeElements,T,null),Re}if(B(T)===Kt.element&&!Xt(T)||(de==="noscript"||de==="noembed"||de==="noframes")&&jt(F0,T.innerHTML))return yt(T),!0;if(Pe&&T.nodeType===Kt.text){const Re=fe(T.textContent);T.textContent!==Re&&(la(t.removed,{element:T.cloneNode()}),T.textContent=Re)}return we(D.afterSanitizeElements,T,null),!1},Rt=function(T,X,de){if(Ce[X]||pn(X,T)||Ue&&(X==="id"||X==="name")&&(de in a||de in An))return!1;const Me=W[X]||Ae.attributeCheck instanceof Function&&Ae.attributeCheck(X,T);return be&&jt(L,X)||he&&jt(K,X)?!0:Me?gt[X]||jt(Be,ua(de,ee,""))||(X==="src"||X==="xlink:href"||X==="href")&&T!=="script"&&Ns(de,"data:")===0&&Ct[T]||Te&&!jt(U,ua(de,ee,""))?!0:!de:hn(T)&&at(pe.tagNameCheck,T)&&at(pe.attributeNameCheck,X,T)||X==="is"&&pe.allowCustomizedBuiltInElements&&at(pe.tagNameCheck,de)},mn=Qe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),hn=function(T){return!mn[ca(T)]&&jt(ae,T)},dr=function(T,X,de,Me){if(A&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!de)switch(m.getAttributeType(T,X)){case"TrustedHTML":return E(Me);case"TrustedScriptURL":return M(Me)}return Me},_u=function(T,X,de,Me){try{de?T.setAttributeNS(de,X,Me):T.setAttribute(X,Me),oe(T)?yt(T):As(t.removed)}catch{Tt(X,T)}},Xo=function(T){we(D.beforeSanitizeAttributes,T,null);const X=T.attributes;if(!X||oe(T))return;W=ut(D.uponSanitizeAttribute,W,re,ke);const de={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let Me=X.length;const Re=tt(T.nodeName);for(;Me--;){const He=X[Me],it=He.name,dt=He.namespaceURI,Pt=He.value,It=tt(it),mr=Pt;let Mt=it==="value"?mr:x0(mr);if(de.attrName=It,de.attrValue=Mt,de.keepAttr=!0,de.forceKeepAttr=void 0,we(D.uponSanitizeAttribute,T,de),Mt=de.attrValue,Ye&&(It==="id"||It==="name")&&Ns(Mt,Ze)!==0&&(Tt(it,T,He),Mt=Ze+Mt),ce&&jt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Mt)){Tt(it,T,He);continue}if(It==="attributename"&&Bs(Mt,"href")){Tt(it,T,He);continue}if(!de.forceKeepAttr){if(!de.keepAttr){Tt(it,T,He);continue}if(!Oe&&jt(O0,Mt)){Tt(it,T,He);continue}if(Pe&&(Mt=fe(Mt)),!Rt(Re,It,Mt)){Tt(it,T,He);continue}Mt=dr(Re,It,dt,Mt),Mt!==mr&&_u(T,it,dt,Mt)}}we(D.afterSanitizeAttributes,T,null)},$a=function(T){let X=null;const de=te(T);for(we(D.beforeSanitizeShadowDOM,T,null);X=de.nextNode();)if(we(D.uponSanitizeShadowNode,X,null),qt(X,T),Xo(X),ue(X.content)&&$a(X.content),B(X)===Kt.element){const Me=g(X);ue(Me)&&(pr(Me),$a(Me))}we(D.afterSanitizeShadowDOM,T,null)},pr=function(T){const X=[{node:T,shadow:null}];for(;X.length>0;){const de=X.pop();if(de.shadow){$a(de.shadow);continue}const Me=de.node,He=B(Me)===Kt.element,it=w(Me);if(it)for(let dt=it.length-1;dt>=0;--dt)X.push({node:it[dt],shadow:null});if(He){const dt=k?k(Me):null;if(typeof dt=="string"&&tt(dt)==="template"){const Pt=Me.content;ue(Pt)&&X.push({node:Pt,shadow:null})}}if(He){const dt=g(Me);ue(dt)&&X.push({node:null,shadow:dt},{node:dt,shadow:null})}}};return t.sanitize=function(xe){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,de=null,Me=null,Re=null;if(ft=!xe,ft&&(xe="<!-->"),typeof xe!="string"&&!_e(xe)&&(xe=B0(xe),typeof xe!="string"))throw Rn("dirty is not a string, aborting");if(!t.isSupported)return xe;Ne?(ie=je,W=ke):Wt(T),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(ie=Gt(ie)),D.uponSanitizeAttribute.length>0&&(W=Gt(W)),t.removed=[];const He=ze&&typeof xe!="string"&&_e(xe);if(He){Ee(xe);const Pt=N(xe);if(typeof Pt=="string"){const It=tt(Pt);if(!ie[It]||ve[It])throw Jt(xe),Rn("root node is forbidden and cannot be sanitized in-place")}if(oe(xe))throw Jt(xe),Rn("root node is clobbered and cannot be sanitized in-place");try{pr(xe)}catch(It){throw Jt(xe),It}}else if(_e(xe))X=Fe("<!---->"),de=X.ownerDocument.importNode(xe,!0),de.nodeType===Kt.element&&de.nodeName==="BODY"||de.nodeName==="HTML"?X=de:X.appendChild(de),pr(de);else{if(!Se&&!Pe&&!ne&&xe.indexOf("<")===-1)return A&&Ge?E(xe):xe;if(X=Fe(xe),!X)return Se?null:Ge?S:""}X&&ye&&yt(X.firstChild);const it=He?xe:X;try{const Pt=te(it);for(;Me=Pt.nextNode();)qt(Me,it),Xo(Me),ue(Me.content)&&$a(Me.content)}catch(Pt){throw He&&(Jt(xe),$n(t.removed,It=>{It.element&&Qt(It.element)})),Pt}if(He)return $n(t.removed,Pt=>{Pt.element&&Qt(Pt.element)}),Pe&&V(xe),xe;if(Se){if(Pe&&V(X),me)for(Re=z.call(X.ownerDocument);X.firstChild;)Re.appendChild(X.firstChild);else Re=X;return(W.shadowroot||W.shadowrootmode)&&(Re=$.call(r,Re,!0)),Re}let dt=ne?X.outerHTML:X.innerHTML;return ne&&ie["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&jt(P0,X.ownerDocument.doctype.name)&&(dt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
|
|
828
|
-
`+dt),Pe&&(dt=fe(dt)),A&&Ge?E(dt):dt},t.setConfig=function(){let
|
|
827
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h0(e,t){return d0(e)||p0(e,t)||f0(e,t)||m0()}function f0(e,t){if(e){if(typeof e=="string")return xs(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)?xs(e,t):void 0}}const _s=Object.entries,ws=Object.setPrototypeOf,C0=Object.isFrozen,g0=Object.getPrototypeOf,b0=Object.getOwnPropertyDescriptor;let wt=Object.freeze,At=Object.seal,qn=Object.create,ks=typeof Reflect<"u"&&Reflect,Cr=ks.apply,gr=ks.construct;wt||(wt=function(t){return t}),At||(At=function(t){return t}),Cr||(Cr=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)}),gr||(gr=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 $n=xt(Array.prototype.forEach),y0=xt(Array.prototype.lastIndexOf),As=xt(Array.prototype.pop),la=xt(Array.prototype.push),v0=xt(Array.prototype.splice),Un=Array.isArray,ca=xt(String.prototype.toLowerCase),br=xt(String.prototype.toString),Bs=xt(String.prototype.match),ua=xt(String.prototype.replace),Ns=xt(String.prototype.indexOf),x0=xt(String.prototype.trim),_0=xt(Number.prototype.toString),w0=xt(Boolean.prototype.toString),Ss=typeof BigInt>"u"?null:xt(BigInt.prototype.toString),Ds=typeof Symbol>"u"?null:xt(Symbol.prototype.toString),Ft=xt(Object.prototype.hasOwnProperty),da=xt(Object.prototype.toString),jt=xt(RegExp.prototype.test),Rn=k0(TypeError);function xt(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 Cr(e,t,r)}}function k0(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return gr(e,a)}}function Qe(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ca;if(ws&&ws(e,null),!Un(t))return e;let r=t.length;for(;r--;){let s=t[r];if(typeof s=="string"){const i=a(s);i!==s&&(C0(t)||(t[r]=i),s=i)}e[s]=!0}return e}function A0(e){for(let t=0;t<e.length;t++)Ft(e,t)||(e[t]=null);return e}function Gt(e){const t=qn(null);for(const r of _s(e)){var a=h0(r,2);const s=a[0],i=a[1];Ft(e,s)&&(Un(i)?t[s]=A0(i):i&&typeof i=="object"&&i.constructor===Object?t[s]=Gt(i):t[s]=i)}return t}function B0(e){switch(typeof e){case"string":return e;case"number":return _0(e);case"boolean":return w0(e);case"bigint":return Ss?Ss(e):"0";case"symbol":return Ds?Ds(e):"Symbol()";case"undefined":return da(e);case"function":case"object":{if(e===null)return da(e);const t=e,a=nn(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:da(r)}return da(e)}default:return da(e)}}function nn(e,t){for(;e!==null;){const r=b0(e,t);if(r){if(r.get)return xt(r.get);if(typeof r.value=="function")return xt(r.value)}e=g0(e)}function a(){return null}return a}function N0(e){try{return jt(e,""),!0}catch{return!1}}const Es=wt(["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"]),yr=wt(["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"]),vr=wt(["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"]),S0=wt(["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"]),xr=wt(["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"]),D0=wt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),js=wt(["#text"]),Ts=wt(["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"]),_r=wt(["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"]),Ms=wt(["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"]),Ra=wt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),E0=At(/{{[\w\W]*|^[\w\W]*}}/g),j0=At(/<%[\w\W]*|^[\w\W]*%>/g),T0=At(/\${[\w\W]*/g),M0=At(/^data-[\-\w.\u00B7-\uFFFF]+$/),L0=At(/^aria-[\-\w]+$/),Ls=At(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$0=At(/^(?:\w+script|data):/i),R0=At(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),P0=At(/^html$/i),I0=At(/^[a-z][.\w]*(-[.\w]+)+$/i),$s=At(/<[/\w!]/g),Rs=At(/<[/\w]/g),F0=At(/<\/no(script|embed|frames)/i),O0=At(/\/>/i),Kt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ps=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],H0=wt(Qe({},Ps)),z0=(function(){const e={};return $n(Ps,t=>{e[t]=At(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),wt(e)})(),V0=function(){return typeof window>"u"?null:window},W0=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}},Is=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Nn=function(t,a,r,s){return Ft(t,a)&&Un(t[a])?Qe(s.base?Gt(s.base):{},t[a],s.transform):r},wr=function(t,a,r){const s=Ft(t,a)?t[a]:void 0;return s&&typeof s=="object"?Gt(s):r()};function Fs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:V0();const t=_e=>Fs(_e);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==Kt.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,c=e.Element,d=e.NodeFilter,u=e.NamedNodeMap;u===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,m=e.trustedTypes,h=c.prototype,b=nn(h,"cloneNode"),v=nn(h,"remove"),C=nn(h,"nextSibling"),w=nn(h,"childNodes"),f=nn(h,"parentNode"),y=nn(h,"shadowRoot"),x=nn(h,"attributes"),g=l&&l.prototype?nn(l.prototype,"nodeType"):null,k=l&&l.prototype?nn(l.prototype,"nodeName"):null,_=l&&l.prototype?nn(l.prototype,"ownerDocument"):null,B=function(T){return g?g(T):T.nodeType},N=function(T){return k?k(T):T.nodeName};if(typeof i=="function"){const _e=a.createElement("template");_e.content&&_e.content.ownerDocument&&(a=_e.content.ownerDocument)}let A,S="",O,H=!1,j=0;const q=function(){if(j>0)throw Rn('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.')},E=function(T){q(),j++;try{return A.createHTML(T)}finally{j--}},M=function(T){q(),j++;try{return A.createScriptURL(T)}finally{j--}},I=function(){return H||(O=W0(m,s),H=!0),O},G=a,Z=G.implementation,U=G.createNodeIterator,z=G.createDocumentFragment,K=G.getElementsByTagName,L=r.importNode;let D=Is();t.isSupported=typeof _s=="function"&&typeof f=="function"&&Z&&Z.createHTMLDocument!==void 0;const F=E0,P=j0,R=T0,$=M0,ee=L0,J=$0,Y=R0,ne=I0;let Ce=Ls,re=null;const ie=Qe({},[...Es,...yr,...vr,...xr,...js]);let W=null;const oe=Qe({},[...Ts,..._r,...Ms,...Ra]);let pe=Object.seal(qn(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}})),xe=null,ge=null;const Be=Object.seal(qn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let he=!0,ye=!0,Te=!1,Oe=!0,Pe=!1,ce=!0,ae=!1,Ne=!1,je=null,Ae=null,ve=!1,Se=!1,me=!1,Ge=!1,Ue=!0,Ye=!1;const Ze="user-content-";let Xe=!0,ze=!1,$e={},Ve=null;const ot=Qe({},["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 Ct=null;const zt=Qe({},["audio","video","img","source","image","track"]);let gt=null;const nt=Qe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",et="http://www.w3.org/2000/svg",lt="http://www.w3.org/1999/xhtml";let We=lt,ft=!1,qe=null;const pt=Qe({},[Je,et,lt],br),Et=wt(["mi","mo","mn","ms","mtext"]);let kt=Qe({},Et);const _t=wt(["annotation-xml"]);let st=Qe({},_t);const Ie=Qe({},["title","style","font","a","script"]);let rt=null;const bt=["application/xhtml+xml","text/html"],Vt="text/html";let tt=null,Zt=null;const An=a.createElement("form"),Bt=function(T){return T instanceof RegExp||T instanceof Function},Wt=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Zt&&Zt===T)return;(!T||typeof T!="object")&&(T={}),T=Gt(T),rt=bt.indexOf(T.PARSER_MEDIA_TYPE)===-1?Vt:T.PARSER_MEDIA_TYPE,tt=rt==="application/xhtml+xml"?br:ca,re=Nn(T,"ALLOWED_TAGS",ie,{transform:tt}),W=Nn(T,"ALLOWED_ATTR",oe,{transform:tt}),qe=Nn(T,"ALLOWED_NAMESPACES",pt,{transform:br}),gt=Nn(T,"ADD_URI_SAFE_ATTR",nt,{transform:tt,base:nt}),Ct=Nn(T,"ADD_DATA_URI_TAGS",zt,{transform:tt,base:zt}),Ve=Nn(T,"FORBID_CONTENTS",ot,{transform:tt}),xe=Nn(T,"FORBID_TAGS",Gt({}),{transform:tt}),ge=Nn(T,"FORBID_ATTR",Gt({}),{transform:tt}),$e=Ft(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?Gt(T.USE_PROFILES):T.USE_PROFILES:!1,he=T.ALLOW_ARIA_ATTR!==!1,ye=T.ALLOW_DATA_ATTR!==!1,Te=T.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Pe=T.SAFE_FOR_TEMPLATES||!1,ce=T.SAFE_FOR_XML!==!1,ae=T.WHOLE_DOCUMENT||!1,Se=T.RETURN_DOM||!1,me=T.RETURN_DOM_FRAGMENT||!1,Ge=T.RETURN_TRUSTED_TYPE||!1,ve=T.FORCE_BODY||!1,Ue=T.SANITIZE_DOM!==!1,Ye=T.SANITIZE_NAMED_PROPS||!1,Xe=T.KEEP_CONTENT!==!1,ze=T.IN_PLACE||!1,Ce=N0(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:Ls,We=typeof T.NAMESPACE=="string"?T.NAMESPACE:lt,kt=wr(T,"MATHML_TEXT_INTEGRATION_POINTS",()=>Qe({},Et)),st=wr(T,"HTML_INTEGRATION_POINTS",()=>Qe({},_t));const X=wr(T,"CUSTOM_ELEMENT_HANDLING",()=>qn(null));if(pe=qn(null),Ft(X,"tagNameCheck")&&Bt(X.tagNameCheck)&&(pe.tagNameCheck=X.tagNameCheck),Ft(X,"attributeNameCheck")&&Bt(X.attributeNameCheck)&&(pe.attributeNameCheck=X.attributeNameCheck),Ft(X,"allowCustomizedBuiltInElements")&&typeof X.allowCustomizedBuiltInElements=="boolean"&&(pe.allowCustomizedBuiltInElements=X.allowCustomizedBuiltInElements),At(pe),Pe&&(ye=!1),me&&(Se=!0),$e&&(re=Qe({},js),W=qn(null),$e.html===!0&&(Qe(re,Es),Qe(W,Ts)),$e.svg===!0&&(Qe(re,yr),Qe(W,_r),Qe(W,Ra)),$e.svgFilters===!0&&(Qe(re,vr),Qe(W,_r),Qe(W,Ra)),$e.mathMl===!0&&(Qe(re,xr),Qe(W,Ms),Qe(W,Ra))),Be.tagCheck=null,Be.attributeCheck=null,Ft(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?Be.tagCheck=T.ADD_TAGS:Un(T.ADD_TAGS)&&(re===ie&&(re=Gt(re)),Qe(re,T.ADD_TAGS,tt))),Ft(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?Be.attributeCheck=T.ADD_ATTR:Un(T.ADD_ATTR)&&(W===oe&&(W=Gt(W)),Qe(W,T.ADD_ATTR,tt))),Ft(T,"ADD_FORBID_CONTENTS")&&Un(T.ADD_FORBID_CONTENTS)&&(Ve===ot&&(Ve=Gt(Ve)),Qe(Ve,T.ADD_FORBID_CONTENTS,tt)),Xe&&(re["#text"]=!0),ae&&Qe(re,["html","head","body"]),re.table&&(Qe(re,["tbody"]),delete xe.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw Rn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Rn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const de=A;A=T.TRUSTED_TYPES_POLICY;try{S=E("")}catch(Me){throw A=de,Me}}else T.TRUSTED_TYPES_POLICY===null?(A=void 0,S=""):(A===void 0&&(A=I()),A&&typeof S=="string"&&(S=E("")));wt&&wt(T),Zt=T},en=Qe({},[...yr,...vr,...S0]),on=Qe({},[...xr,...D0]),cn=function(T,X,de){return X.namespaceURI===lt?T==="svg":X.namespaceURI===Je?T==="svg"&&(de==="annotation-xml"||kt[de]):!!en[T]},tn=function(T,X,de){return X.namespaceURI===lt?T==="math":X.namespaceURI===et?T==="math"&&st[de]:!!on[T]},Bn=function(T,X,de){return X.namespaceURI===et&&!st[de]||X.namespaceURI===Je&&!kt[de]?!1:!on[T]&&(Ie[T]||!en[T])},Xt=function(T){let X=f(T);(!X||!X.tagName)&&(X={namespaceURI:We,tagName:"template"});const de=ca(T.tagName),Me=ca(X.tagName);return qe[T.namespaceURI]?T.namespaceURI===et?cn(de,X,Me):T.namespaceURI===Je?tn(de,X,Me):T.namespaceURI===lt?Bn(de,X,Me):!!(rt==="application/xhtml+xml"&&qe[T.namespaceURI]):!1},yt=function(T){la(t.removed,{element:T});try{f(T).removeChild(T)}catch{if(v(T),!f(T))throw Rn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},un=function(T,X,de){try{T.removeAttributeNode(X)}catch{try{T.removeAttribute(de)}catch{}}},Jt=function(T){Qt(T);const X=w(T);if(X){const Me=[];$n(X,Re=>{la(Me,Re)}),$n(Me,Re=>{try{v(Re)}catch{}})}const de=x(T);if(de)for(let Me=de.length-1;Me>=0;--Me){const Re=de[Me],He=Re&&Re.name;typeof He=="string"&&un(T,Re,He)}},Tt=function(T,X,de){if(!de)try{de=X.getAttributeNode(T)}catch{de=null}la(t.removed,{attribute:de||null,from:X});try{de?X.removeAttributeNode(de):X.removeAttribute(T)}catch{try{X.removeAttribute(T)}catch{}}if(T==="is")if(Se||me)try{yt(X)}catch{}else try{X.setAttribute(T,"")}catch{}},dn=function(T){const X=x(T);if(X)for(let de=X.length-1;de>=0;--de){const Me=X[de],Re=Me&&Me.name;typeof Re!="string"||W[tt(Re)]||un(T,Me,Re)}},Qt=function(T){const X=[T];for(;X.length>0;){const de=X.pop();B(de)===Kt.element&&dn(de);const Re=w(de);if(Re)for(let He=Re.length-1;He>=0;--He)X.push(Re[He])}},pn=function(T,X){return ce?T==="patchsrc"?!0:T==="for"&&X!=="label"&&X!=="output":!1},Ee=function(T){if(!ce)return;const X=[T];for(;X.length>0;){const de=X.pop(),Me=B(de);if(Me===Kt.processingInstruction||Me===Kt.comment&&jt(Rs,de.data)){try{v(de)}catch{}continue}if(Me===Kt.element){const He=de,it=tt(N(de));try{He.hasAttribute&&He.hasAttribute("patchsrc")&&He.removeAttribute("patchsrc"),He.hasAttribute&&He.hasAttribute("for")&&pn("for",it)&&He.removeAttribute("for")}catch{}}const Re=w(de);if(Re)for(let He=Re.length-1;He>=0;--He)X.push(Re[He])}},Fe=function(T){let X=null,de=null;if(ve)T="<remove></remove>"+T;else{const He=Bs(T,/^[\r\n\t ]+/);de=He&&He[0]}rt==="application/xhtml+xml"&&We===lt&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const Me=A?E(T):T;if(We===lt)try{X=new p().parseFromString(Me,rt)}catch{}if(!X||!X.documentElement){X=Z.createDocument(We,"template",null);try{X.documentElement.innerHTML=ft?S:Me}catch{}}const Re=X.body||X.documentElement;return T&&de&&Re.insertBefore(a.createTextNode(de),Re.childNodes[0]||null),We===lt?K.call(X,ae?"html":"body")[0]:ae?X.documentElement:Re},te=function(T){const X=_?_(T):T.ownerDocument;return U.call(X||T,T,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},fe=function(T){return T=ua(T,F," "),T=ua(T,P," "),T=ua(T,R," "),T},V=function(T){var X;T.normalize();const de=_?_(T):T.ownerDocument,Me=U.call(de||T,T,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null);let Re=Me.nextNode();for(;Re;)Re.data=fe(Re.data),Re=Me.nextNode();const He=(X=T.querySelectorAll)===null||X===void 0?void 0:X.call(T,"template");He&&$n(He,it=>{ue(it.content)&&V(it.content)})},se=function(T){const X=k?k(T):null;return typeof X!="string"||tt(X)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==x(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!==w(T)},ue=function(T){if(!g||typeof T!="object"||T===null)return!1;try{return g(T)===Kt.documentFragment}catch{return!1}},we=function(T){if(!g||typeof T!="object"||T===null)return!1;try{return typeof g(T)=="number"}catch{return!1}};function ke(_e,T,X){_e.length!==0&&$n(_e,de=>{de.call(t,T,X,Zt)})}const Le=function(T,X){return!!(ce&&T.hasChildNodes()&&!we(T.firstElementChild)&&jt($s,T.textContent)&&jt($s,T.innerHTML)||ce&&T.namespaceURI===lt&&H0[X]&&(we(T.firstElementChild)||typeof T.textContent=="string"&&jt(z0[X],T.textContent))||T.nodeType===Kt.processingInstruction||ce&&T.nodeType===Kt.comment&&jt(Rs,T.data))},at=function(T,X){if(T instanceof RegExp)return jt(T,X);if(T instanceof Function){for(var de=arguments.length,Me=new Array(de>2?de-2:0),Re=2;Re<de;Re++)Me[Re-2]=arguments[Re];return!!T(X,...Me)}return!1},vt=function(T,X,de){if(!xe[X]&&hn(X)&&at(pe.tagNameCheck,X))return!1;if(Xe&&!Ve[X]){const Me=f(T),Re=w(T);if(Re&&Me){const He=Re.length;for(let it=He-1;it>=0;--it){const dt=T===de?b(Re[it],!0):Re[it];Me.insertBefore(dt,C(T))}}}return yt(T),!0},ut=function(T,X,de,Me){return T.length===0?X:X===de||X===Me?Gt(X):X},Nt=function(T,X){return T===X||f(T)!==null?!1:(ze&&Qt(T),!0)},qt=function(T,X){if(ke(D.beforeSanitizeElements,T,null),Nt(T,X))return!0;if(se(T))return yt(T),!0;const de=tt(N(T));if(re=ut(D.uponSanitizeElement,re,ie,je),ke(D.uponSanitizeElement,T,{tagName:de,allowedTags:re}),Nt(T,X))return!0;if(Le(T,de))return yt(T),!0;if(xe[de]||!(Be.tagCheck instanceof Function&&Be.tagCheck(de))&&!re[de]){const Re=vt(T,de,X);return Re===!1&&ke(D.afterSanitizeElements,T,null),Re}if(B(T)===Kt.element&&!Xt(T)||(de==="noscript"||de==="noembed"||de==="noframes")&&jt(F0,T.innerHTML))return yt(T),!0;if(Pe&&T.nodeType===Kt.text){const Re=fe(T.textContent);T.textContent!==Re&&(la(t.removed,{element:T.cloneNode()}),T.textContent=Re)}return ke(D.afterSanitizeElements,T,null),!1},Rt=function(T,X,de){if(ge[X]||pn(X,T)||Ue&&(X==="id"||X==="name")&&(de in a||de in An))return!1;const Me=W[X]||Be.attributeCheck instanceof Function&&Be.attributeCheck(X,T);return ye&&jt($,X)||he&&jt(ee,X)?!0:Me?gt[X]||jt(Ce,ua(de,Y,""))||(X==="src"||X==="xlink:href"||X==="href")&&T!=="script"&&Ns(de,"data:")===0&&Ct[T]||Te&&!jt(J,ua(de,Y,""))?!0:!de:hn(T)&&at(pe.tagNameCheck,T)&&at(pe.attributeNameCheck,X,T)||X==="is"&&pe.allowCustomizedBuiltInElements&&at(pe.tagNameCheck,de)},mn=Qe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),hn=function(T){return!mn[ca(T)]&&jt(ne,T)},dr=function(T,X,de,Me){if(A&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!de)switch(m.getAttributeType(T,X)){case"TrustedHTML":return E(Me);case"TrustedScriptURL":return M(Me)}return Me},_u=function(T,X,de,Me){try{de?T.setAttributeNS(de,X,Me):T.setAttribute(X,Me),se(T)?yt(T):As(t.removed)}catch{Tt(X,T)}},Xo=function(T){ke(D.beforeSanitizeAttributes,T,null);const X=T.attributes;if(!X||se(T))return;W=ut(D.uponSanitizeAttribute,W,oe,Ae);const de={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let Me=X.length;const Re=tt(T.nodeName);for(;Me--;){const He=X[Me],it=He.name,dt=He.namespaceURI,Pt=He.value,It=tt(it),mr=Pt;let Mt=it==="value"?mr:x0(mr);if(de.attrName=It,de.attrValue=Mt,de.keepAttr=!0,de.forceKeepAttr=void 0,ke(D.uponSanitizeAttribute,T,de),Mt=de.attrValue,Ye&&(It==="id"||It==="name")&&Ns(Mt,Ze)!==0&&(Tt(it,T,He),Mt=Ze+Mt),ce&&jt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Mt)){Tt(it,T,He);continue}if(It==="attributename"&&Bs(Mt,"href")){Tt(it,T,He);continue}if(!de.forceKeepAttr){if(!de.keepAttr){Tt(it,T,He);continue}if(!Oe&&jt(O0,Mt)){Tt(it,T,He);continue}if(Pe&&(Mt=fe(Mt)),!Rt(Re,It,Mt)){Tt(it,T,He);continue}Mt=dr(Re,It,dt,Mt),Mt!==mr&&_u(T,it,dt,Mt)}}ke(D.afterSanitizeAttributes,T,null)},$a=function(T){let X=null;const de=te(T);for(ke(D.beforeSanitizeShadowDOM,T,null);X=de.nextNode();)if(ke(D.uponSanitizeShadowNode,X,null),qt(X,T),Xo(X),ue(X.content)&&$a(X.content),B(X)===Kt.element){const Me=y(X);ue(Me)&&(pr(Me),$a(Me))}ke(D.afterSanitizeShadowDOM,T,null)},pr=function(T){const X=[{node:T,shadow:null}];for(;X.length>0;){const de=X.pop();if(de.shadow){$a(de.shadow);continue}const Me=de.node,He=B(Me)===Kt.element,it=w(Me);if(it)for(let dt=it.length-1;dt>=0;--dt)X.push({node:it[dt],shadow:null});if(He){const dt=k?k(Me):null;if(typeof dt=="string"&&tt(dt)==="template"){const Pt=Me.content;ue(Pt)&&X.push({node:Pt,shadow:null})}}if(He){const dt=y(Me);ue(dt)&&X.push({node:null,shadow:dt},{node:dt,shadow:null})}}};return t.sanitize=function(_e){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,de=null,Me=null,Re=null;if(ft=!_e,ft&&(_e="<!-->"),typeof _e!="string"&&!we(_e)&&(_e=B0(_e),typeof _e!="string"))throw Rn("dirty is not a string, aborting");if(!t.isSupported)return _e;Ne?(re=je,W=Ae):Wt(T),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(re=Gt(re)),D.uponSanitizeAttribute.length>0&&(W=Gt(W)),t.removed=[];const He=ze&&typeof _e!="string"&&we(_e);if(He){Ee(_e);const Pt=N(_e);if(typeof Pt=="string"){const It=tt(Pt);if(!re[It]||xe[It])throw Jt(_e),Rn("root node is forbidden and cannot be sanitized in-place")}if(se(_e))throw Jt(_e),Rn("root node is clobbered and cannot be sanitized in-place");try{pr(_e)}catch(It){throw Jt(_e),It}}else if(we(_e))X=Fe("<!---->"),de=X.ownerDocument.importNode(_e,!0),de.nodeType===Kt.element&&de.nodeName==="BODY"||de.nodeName==="HTML"?X=de:X.appendChild(de),pr(de);else{if(!Se&&!Pe&&!ae&&_e.indexOf("<")===-1)return A&&Ge?E(_e):_e;if(X=Fe(_e),!X)return Se?null:Ge?S:""}X&&ve&&yt(X.firstChild);const it=He?_e:X;try{const Pt=te(it);for(;Me=Pt.nextNode();)qt(Me,it),Xo(Me),ue(Me.content)&&$a(Me.content)}catch(Pt){throw He&&(Jt(_e),$n(t.removed,It=>{It.element&&Qt(It.element)})),Pt}if(He)return $n(t.removed,Pt=>{Pt.element&&Qt(Pt.element)}),Pe&&V(_e),_e;if(Se){if(Pe&&V(X),me)for(Re=z.call(X.ownerDocument);X.firstChild;)Re.appendChild(X.firstChild);else Re=X;return(W.shadowroot||W.shadowrootmode)&&(Re=L.call(r,Re,!0)),Re}let dt=ae?X.outerHTML:X.innerHTML;return ae&&re["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&jt(P0,X.ownerDocument.doctype.name)&&(dt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
|
|
828
|
+
`+dt),Pe&&(dt=fe(dt)),A&&Ge?E(dt):dt},t.setConfig=function(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Wt(_e),Ne=!0,je=re,Ae=W},t.clearConfig=function(){Zt=null,Ne=!1,je=null,Ae=null,A=O,S=""},t.isValidAttribute=function(_e,T,X){Zt||Wt({});const de=tt(_e),Me=tt(T);return Rt(de,Me,X)},t.addHook=function(_e,T){typeof T=="function"&&Ft(D,_e)&&la(D[_e],T)},t.removeHook=function(_e,T){if(Ft(D,_e)){if(T!==void 0){const X=y0(D[_e],T);return X===-1?void 0:v0(D[_e],X,1)[0]}return As(D[_e])}},t.removeHooks=function(_e){Ft(D,_e)&&(D[_e]=[])},t.removeAllHooks=function(){D=Is()},t}var kr=Fs();const q0=/^(?:[a-z]+:)?\/\//i,U0="__ihab_core_asset_base_url__";function G0(){return globalThis[U0]??""}function Ar(e){const t=String(e||"").trim();if(!t)return"";if(q0.test(t)||t.startsWith("data:")||t.startsWith("blob:"))return t;const a=t.startsWith("/")?t:`/${t}`,r=G0();return r?`${r}${a}`:a}const Os="__ihab_core_storage_resolvers__";function pa(){return globalThis[Os]??null}function K0(e){globalThis[Os]=e}let Hs=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 Y0(e){K0(e)}function zs(e,t){if(!e)return null;const a=pa();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function Vs(e){if(!e)return null;const t=pa();if(!t)throw new Hs("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Ws(e){const t=pa();if(!t)throw new Hs("downloadSound");return t.download(e)}function Z0(){return pa()?.noiseBaseUrl??"/sounds/noise"}function qs(){const e=Number(pa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function X0(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 Us="__ihab_core_tts_config__";function Br(){return globalThis[Us]?.urlResolver??null}function J0(){return globalThis[Us]?.fallbackUrlResolver??null}const Q0="__ihab_core_pronunciation_resolver__";function e2(){return globalThis[Q0]??null}let Sn=null;const ma=new WeakMap,Nr=new WeakMap,Sr=new WeakMap;let Gs=!1;const Ks=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function t2(){if(Gs||typeof document>"u")return;Gs=!0;const e=()=>{try{Sn&&Sn.state!=="running"&&Sn.resume()}catch{}};for(const t of["pointerdown","touchend","keydown"])document.addEventListener(t,e,{capture:!0,passive:!0})}function Ys(){if(Sn)return Sn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(Sn=new e,t2(),Sn):null}catch{return null}}function Dr(){try{Sn?.resume()}catch{}}function Er(e,t){const a=ma.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=Ks(Nr.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 ma.set(t,l),l}catch{return null}}function Pa(e){if(!e)return Promise.resolve(null);const t=ma.get(e);if(t)return Promise.resolve(t.analyser);const a=Ys();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Er(a,e)?.analyser??null);const r=Sr.get(e);if(r)return r;const s=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Er(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Sr.delete(e)});return Sr.set(e,s),s}function n2(e){if(!e)return null;const t=ma.get(e);if(t)return t.analyser;const a=Ys();return a?a.state==="running"?Er(a,e)?.analyser??null:(Pa(e),null):null}function Dn(e,t){const a=Ks(t);Nr.set(e,a);const r=ma.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 Ia(e){return Nr.get(e)??e.volume}function a2(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 r2="__ihab_core_image_config__";function Gn(){return globalThis[r2]??null}const Zs="word_image_existence_map_v1";let Pn=null;const Fa=new Map;function o2(){if(Pn)return Pn;try{const e=typeof localStorage<"u"?localStorage.getItem(Zs):null,t=e?JSON.parse(e):null;Pn=t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{Pn={}}return Pn}let jr=null;function s2(){jr||(jr=setTimeout(()=>{jr=null;try{typeof localStorage<"u"&&Pn&&localStorage.setItem(Zs,JSON.stringify(Pn))}catch{}},200))}function i2(e,t){return`${e}_${t??1}`}async function Xs(e,t){const a=o2(),r=i2(e,t);if(r in a)return a[r];if(Fa.has(r))return Fa.get(r);const s=Gn();if(!s)return!1;const i=s(e,t);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:X0(8e3)}).then(c=>c.status>=500?null:c.ok,()=>null).then(c=>(Fa.delete(r),c===null?!1:(a[r]=c,s2(),c)));return Fa.set(r,l),l}const l2={\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"}},Js=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],Qs=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],c2=["","\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 ha(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 u2(e){const t=ha(e[0]||"");return t?Js[t.cho]:""}function d2(e){if(!e)return()=>!0;e=e.normalize("NFC");const t=[...e],a=l=>Js.includes(l),r=l=>Qs.includes(l),s=t.map(l=>a(l)?"cho":r(l)?"jung":ha(l)?"syl":"other"),i=t.map(l=>ha(l));if(s.includes("other")){const l=e.toLowerCase();return c=>c.normalize("NFC").toLowerCase().includes(l)}return l=>{const c=[...l.normalize("NFC")];for(let d=0;d+t.length<=c.length;d++){let u=!0;for(let p=0;p<t.length;p++){const m=c[d+p],h=s[p];if(h==="cho"){if(u2(m)!==t[p]){u=!1;break}}else if(h==="jung"){const b=ha(m);if(!b||Qs[b.jung]!==t[p]){u=!1;break}}else{const b=i[p];if(b&&b.jong===0){const v=ha(m);if(!v||v.cho!==b.cho||v.jung!==b.jung){u=!1;break}}else if(m!==t[p]){u=!1;break}}}if(u)return!0}return!1}}const p2={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(p2).map(([e,t])=>[t.join(""),c2[Number(e)]]));const m2="word_pair_index_v2",h2="word_pair_index_sig_v2";let Oa=null;function f2(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(m2),t=localStorage.getItem(h2);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function C2(){if(Oa)return Oa;const e=f2();return e?(Oa=e.index,e.sig,Oa):null}const Tr=/[ㄱ-ㅎ]/,g2=/[ㅏ-ㅣ]/;function ei(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||Tr.test(a)||g2.test(a))return a}return null}function b2(e){const t=ei(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":Tr.test(t)?"\uC774":"\uAC00"}function y2(e){return`${e}${b2(e)}`}function v2(e){const t=ei(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":Tr.test(t)?"\uC744":"\uB97C"}function x2(e){return`${e}${v2(e)}`}function _2(e,t,a){const r=e.slice(),[s]=r.splice(t,1);return r.splice(a,0,s),r}function fa(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 w2=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof St?.t=="function"?St.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function ti(e,t){if(t===void 0&&(t=w2()),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 k2="__ihab_core_word_pool__";function ni(){return globalThis[k2]??null}const ai=globalThis;function ri(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function A2(e){ri("time",()=>ai.__ihabTrainingTimeLogger?.(e))}function B2(e){ri("completion",()=>ai.__ihabTrainingCompletionLogger?.(e))}function Ot(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function N2(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 S2(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Ot(r.contextCode)??Ot(r.itemId)??Ot(r.itemCode)??Ot(r.id),question:Ot(r.question)??Ot(r.q)??Ot(r.sentence)??Ot(r.text)??Ot(r.prompt)??Ot(r.word)??Ot(r.targetSyllable),answer:Ot(r.answer),selected:Ot(r.selectedText)??Ot(r.selected),correct:N2(r)}}):[]}const Mr=globalThis;async function D2(){try{return await Mr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function oi(e){const t=a=>{};try{const a=Mr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function Ha(e){try{Mr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function E2(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 j2=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function si(e){let t;if(e instanceof Date)t=e;else if(typeof e=="string"){const a=e.trim(),r=j2.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}function Ca(){return $r(new Date)}function Lr(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:Ca()}function Kn(){return M2(Ca())}const T2=540*60*1e3;function ii(e,t,a){return new Date(Date.UTC(e,t,a)-T2)}function M2(e){const[t,a,r]=e.split("-").map(Number);return new Date(t,(a||1)-1,r||1)}function $r(e){if(e==null||e==="")return"";const t=si(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function li(e,t){if(!e)return"";const a=si(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),c=Math.floor(l/24),d=Math.floor(c/7),u=Math.floor(c/30),p=Math.floor(c/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}):c<7?t("store.time.daysAgo",{n:c}):d<5?t("store.time.weeksAgo",{n:d}):c<365?t("store.time.monthsAgo",{n:Math.min(u,11)}):t("store.time.yearsAgo",{n:p})}function ci(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:s=!1,fallback:i="\u2014"}=t;if(!e)return i;const l=$r(e instanceof Date?e:String(e));if(!l)return i;const[c,d,u]=l.split("-"),p=r?d:String(Number(d)),m=r?u:String(Number(u));return`${c}${a}${p}${a}${m}${s?".":""}`}function Yn(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function ui(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 Rr(e){return(e??0).toLocaleString("ko-KR")}const L2=[{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"}]}],$2=[{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 di(){return L2}function R2(){return $2}const P2=[],I2=[],F2=[],O2=[];function H2(){return{LISTEN_IN_NOISE:P2,SHORT_STORY:I2,LONG_STORY:F2,ORDERING_SENTENCE:O2}}const z2=[{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."}],pi={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function V2(e){return z2.map(t=>{const a=pi[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let za=null,mi=null,hi=null;function W2(){const e=ni();if(e&&e.entries.length>0){const t=C2();if(za&&mi===e&&hi===t)return za;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 za=r,mi=e,hi=t,za}return[]}new Proxy([],{get(e,t){const a=W2(),r=a[t];return typeof r=="function"?r.bind(a):r}});const q2="0.189.0";function U2(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 G2(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&U2(r.attrValue)&&(r.keepAttr=!1)};kr.addHook("uponSanitizeAttribute",t);try{return kr.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{kr.removeHook("uponSanitizeAttribute",t)}}function K2(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),[i,l]=o.useState(null),[c,d]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),l(null);return}const u=e.split("/").pop();let p=e;u&&(e.startsWith("/")?p=Ar(e):/^(Logo|Symbol)/i.test(u)?p=Ar(`logo/${u}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),s(null),l(null),a(p)},[e]),o.useEffect(()=>{if(!t)return;let u=!1;async function p(){try{let m=await fetch(t);m.ok||(m=await fetch(t));const h=m.headers.get("content-type")||"";if(u)return;if(h.includes("svg")){s("mask");return}if(h.startsWith("image/")){s("img");return}const b=await fetch(t);if(!b.ok)throw new Error("not ok");const v=await b.text();if(u)return;if(/^\s*<svg[\s>]/i.test(v)){const C=G2(v);if(!C){s("none");return}l(C),s("inline");return}s("none")}catch{u||s("none")}}return p(),()=>{u=!0}},[t]),o.useEffect(()=>{let u=!1,p=null;return r==="mask"&&t&&fetch(t).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{u||(p=URL.createObjectURL(m),d(p))}).catch(()=>{u||s("img")}),()=>{u=!0,p&&URL.revokeObjectURL(p),d(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:c}}function Ke(e){const{icon:t,label:a,className:r,imgClassName:s,maskClassName:i,svgClassName:l,wrapperStyle:c,size:d}=e||{},u=r??"iconRenderer-icon",p=s??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",h=l??"iconRenderer-icon-svg",b=typeof t=="string"?t:null,v=u0(b),{iconToUse:C,mode:w,svgText:f,blobUrl:g}=K2(b),x=(N,A={})=>n.jsx("span",{className:u,style:c,...A,children:N}),y=typeof d=="number"?{width:d,height:d,objectFit:"contain"}:null,k=(N,A={})=>n.jsx("img",{src:N,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...A,style:y?{...A.style,...y}:A.style});if(!t)return null;if(typeof t!="string")return x(t);if(t==="none")return x(n.jsx("span",{className:h,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 x(o.createElement(v,{className:h,size:typeof d=="number"?d:20}),{"aria-hidden":"true"})}catch{}if(C&&C.endsWith(".svg")){if(w==="mask"){const N={"--icon-url":g?`url(${g})`:`url(${C})`,...typeof d=="number"?{"--icon-size":`${d}px`}:null};return x(n.jsx("span",{className:m,style:N}),{"aria-hidden":"true"})}return w==="img"?x(k(C,{onError:N=>{N.currentTarget.onerror=null,N.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):w==="inline"?x(n.jsx("span",{className:h,dangerouslySetInnerHTML:f?{__html:f}:void 0}),{"aria-hidden":"true"}):x(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return k(Ar(t),{style:c,onError:N=>{N.currentTarget.onerror=null,N.currentTarget.style.display="none"}});const _=typeof d=="number"?d:20,B=`<svg width="${_}" height="${_}" 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 x(n.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:B}}),{"aria-hidden":"true"})}function fi(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 c=()=>{r.current=!1,s.current&&a(!1)};l.then(c,c)}},[e]);return{pending:t,press:i}}function Y2({icon:e,title:t,message:a,action:r,className:s}){const{pending:i,press:l}=fi(r?.onClick);return n.jsxs("div",{className:De("empty-state",s),children:[e&&n.jsx(Ke,{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(Ke,{icon:r.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function Z2({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:i}){const{t:l}=ge.useTranslation(),{pending:c,press:d}=fi(r);return n.jsxs("div",{className:De("empty-state","error-state",i),role:"alert",children:[n.jsx(Ke,{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:d,disabled:c,"aria-busy":c||void 0,children:[n.jsx(Ke,{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 X2({icon:e,title:t,description:a,cta:r,tone:s="main",disabled:i=!1,onClick:l,className:c=""}){const d=o.useId(),u=`${d}-title`,p=`${d}-desc`,m=`${d}-cta`,h=()=>{i||l?.()};return n.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":u,"aria-describedby":`${p} ${m}`,onClick:h,onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),h())},className:De("action-card",`action-card--${s}`,i&&"action-card--disabled",c),children:n.jsxs("div",{className:"action-card__body",children:[n.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:n.jsx(Ke,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:u,className:"action-card__title",children:t}),n.jsx("p",{id:p,className:"action-card__desc",children:a})]}),n.jsxs("div",{className:"action-card__cta",children:[n.jsx("span",{id:m,children:r}),n.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:n.jsx(Ke,{icon:"arrow-right",size:18})})]})]})})}function J2({as:e="div",className:t="",children:a,storage:r,...s}){r&&Y0({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=De("ihabdevteam-core-scope",t);return n.jsx(e,{className:i,...s,children:a})}function Pr(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(gn)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){s.preventDefault();return}const l=i[0],c=i[i.length-1],d=document.activeElement,u=d===a;s.shiftKey&&(d===l||u)?(s.preventDefault(),c.focus()):!s.shiftKey&&d===c&&(s.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const gn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Ir=new WeakMap;function Fr(e,t){e&&Ir.set(e,t)}function Or(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!Ir.has(r);)r=r.parentElement;if(!r)return t;t=Ir.get(r)??null}return t}function Ci(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 Va(e,t,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(Ci(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const s=Array.from(document.querySelectorAll(gn)).filter(d=>!(e&&e.contains(d))&&Ci(d));let i=null,l=null;for(const d of s)r.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_PRECEDING?i=d:l||(l=d);const c=i??l;return c?.focus(),c}function Q2({title:e="",lines:t=[],notices:a=null,children:r,variant:s="default",dismissible:i=!1,className:l=""}){const{t:c}=ge.useTranslation(),[d,u]=o.useState(!1),p=o.useRef(null),m=o.useCallback(()=>{const C=p.current;C&&C.contains(document.activeElement)&&Va(C),u(!0)},[]);if(d)return null;const h=`notice-box notice-box--${s} body-2 ${l}`.trim(),b=i&&n.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return n.jsxs("div",{className:h,role:"note",children:[a.map((C,w)=>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((f,g)=>n.jsx("span",{className:"notice-box__line body-3",children:f},g))}):C.children??null})]},w)),b]});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,w)=>n.jsx("li",{className:"notice-box__line",children:C},w))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:p,className:h,role:"note",children:[v,b]})}const Zn=[];let Wa=!1;function gi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=Zn[Zn.length-1];t&&(e.stopPropagation(),t())}function In(e){return Zn.push(e),!Wa&&typeof document<"u"&&(document.addEventListener("keydown",gi),Wa=!0),()=>{const t=Zn.lastIndexOf(e);t>=0&&Zn.splice(t,1),Zn.length===0&&Wa&&typeof document<"u"&&(document.removeEventListener("keydown",gi),Wa=!1)}}const bi=o.createContext(null);function ef(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const yi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function tf(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 Jo.useSyncExternalStore(t,()=>yi(e),()=>!1)}function nf(e){const[t,a]=o.useState(yi(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 af=typeof Jo.useSyncExternalStore=="function"?tf:nf;function Yt(e){const t=o.useContext(bi),a=af(e);return t&&typeof t.mobile=="boolean"&&ef(e)?t.mobile:a}const rf="(prefers-reduced-motion: reduce)";function Hr(){return Yt(rf)}function an(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:i,closeOnOutsideClick:l=!0,className:c="",role:d="dialog",ariaLabel:u="",children:p,backdrop:m=!1,isMobilePopup:h=!1,useBorder:b=!0,header:v}=e||{},C=o.useRef(null),[w,f]=o.useState({position:"fixed",left:0,top:-9999}),[g,x]=o.useState(!1),[y,k]=o.useState("bottom"),[_,B]=o.useState(!1),[N,A]=o.useState(!1),S=!t&&!a,O=o.useCallback((Z=!1)=>{if(N&&h)return;const Y=a?a.getBoundingClientRect():t;if(!Y||!C.current)return;const z=C.current,{offsetWidth:J,offsetHeight:$}=z,D=window.innerWidth,F=window.innerHeight,P=D-Y.right,R=Y.left,L=Y.top,K=F-Y.bottom;let U=0,ee=0,ae="top";if(L>=$+r)ae="top",ee=Y.top-r-$,U=Y.left+Y.width/2-J/2;else if(K>=$+r)ae="bottom",ee=Y.bottom+r,U=Y.left+Y.width/2-J/2;else if(P>=J+r)ae="right",U=Y.right+r,ee=Y.top+Y.height/2-$/2;else if(R>=J+r)ae="left",U=Y.left-r-J,ee=Y.top+Y.height/2-$/2;else{const W=Math.max(L,K,P,R);W===L?(ae="top",ee=Y.top-r-$,U=Y.left+Y.width/2-J/2):W===K?(ae="bottom",ee=Y.bottom+r,U=Y.left+Y.width/2-J/2):W===P?(ae="right",U=Y.right+r,ee=Y.top+Y.height/2-$/2):(ae="left",U=Y.left-r-J,ee=Y.top+Y.height/2-$/2)}const Be=Number.isFinite(Number(s))?Number(s):8;U=Math.min(Math.max(U,Be),D-J-Be),ee=Math.min(Math.max(ee,Be),F-$-Be);const ie=Math.round(U),se=Math.round(ee);Z&&C.current?(C.current.style.left=`${ie}px`,C.current.style.top=`${se}px`,C.current.dataset.placement=ae):(k(ae||y),f({position:"fixed",left:ie,top:se}),B(!0))},[N,h,a,t,r,s,y]);o.useLayoutEffect(()=>{if(S)return;if(N&&h){f({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),B(!0);return}O();const Z=requestAnimationFrame(()=>O());return()=>cancelAnimationFrame(Z)},[t,a,r,p,s,S,N,h,O]),o.useEffect(()=>{if(S||N&&h||!C.current||typeof ResizeObserver>"u")return;const Z=new ResizeObserver(()=>{t&&O()});return Z.observe(C.current),()=>Z.disconnect()},[t,p,s,S,N,h,O]),o.useEffect(()=>{if(S||N&&h)return;const Z=()=>O(!0),Y=z=>{if(!a&&i){const J=z.target;if(J&&C.current&&C.current.contains(J))return;try{if(J&&J.closest&&J.closest("[data-tooltip-ignore]"))return}catch{}M.current(!0);return}Z()};return window.addEventListener("resize",Z),document.addEventListener("scroll",Y,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",Z),document.removeEventListener("scroll",Y,{capture:!0})}},[t,a,i,r,p,s,S,N,h,O]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const Z=window.matchMedia("(max-width: 768px)"),Y=()=>A(!!Z.matches);Y();try{Z.addEventListener?Z.addEventListener("change",Y):Z.addListener(Y)}catch{try{Z.addListener(Y)}catch{}}return()=>{try{Z.removeEventListener?Z.removeEventListener("change",Y):Z.removeListener(Y)}catch{}}},[]);const H=o.useRef(!1),j=o.useRef(null),q=Hr(),E=o.useCallback((Z=!1)=>{if(i&&!(g||H.current)){if(H.current=!0,Z){x(!0);try{i&&i()}catch{H.current=!1,x(!1)}return}x(!0),j.current=setTimeout(()=>{j.current=null;try{i&&i()}catch{H.current=!1,x(!1)}},q?0:200)}},[g,i,x,q]);o.useEffect(()=>()=>{j.current&&clearTimeout(j.current)},[]),o.useEffect(()=>{if(S)return;const Z=J=>{const $=C.current;if(!$)return;const D=J.target;if(D&&!$.contains(D)){try{if(D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}l&&E(!0)}},Y=J=>{const $=C.current;if(!$)return;const D=J.target;if(D&&!$.contains(D)){try{if(D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}l&&E(!0)}},z=J=>{if(J.key==="Tab"){const $=C.current;if(!$)return;const D=$.querySelectorAll(gn);if(!D||D.length===0)return;const F=D[0],P=D[D.length-1],R=document.activeElement;J.shiftKey?R===F&&(J.preventDefault(),P.focus()):R===P&&(J.preventDefault(),F.focus())}};return document.addEventListener("pointerdown",Z,!0),document.addEventListener("click",Y,!0),document.addEventListener("keydown",z),()=>{document.removeEventListener("pointerdown",Z,!0),document.removeEventListener("click",Y,!0),document.removeEventListener("keydown",z)}},[i,l,E,S]);const M=o.useRef(E);o.useEffect(()=>{M.current=E});const I=!!i;o.useEffect(()=>{if(!(S||!I))return In(()=>M.current())},[S,I]),o.useEffect(()=>{const Z=()=>{E(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",Z),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",Z)}},[E]);const G=n.jsxs("div",{ref:C,className:`tooltip-content ${S?"tooltip-content--inline":""} ${b?"tooltip-content--bordered":""} ${g?"is-closing":""} ${c} ${N&&h?"is-mobile":""}`,role:d,"aria-label":u||void 0,style:S?{}:{...w,visibility:_?"visible":"hidden"},tabIndex:-1,"data-placement":y,"data-left":S?"":w.left,"data-top":S?"":w.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}),p]});if(S||typeof document>"u")return G;if(m||N&&h){const Z=n.jsxs("div",{className:"tooltip-portal",children:[n.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&E(!0)}}),G]});return Ut.createPortal(Z,document.body)}return Ut.createPortal(G,document.body)}function bn(e){const{anchorRect:t,text:a,offset:r=8,onClose:s,className:i="",ariaLabel:l}=e||{};return a?n.jsx(an,{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 Fn(e){const{t}=ge.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:i=-1,showIndex:l=!0,onClose:c,offset:d=12,closeOnOutsideClick:u=!0}=e||{},p=(Array.isArray(s)?s:s?[s]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:n.jsx(an,{anchorRect:a,offset:d,onClose:c,closeOnOutsideClick:u,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:p.map((m,h)=>n.jsxs("li",{className:`tooltip-description__item body-3${h===i?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&n.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),m.color&&n.jsx("span",{className:"tooltip-description__dot",style:{background:m.color},"aria-hidden":"true"}),n.jsx("span",{children:m.text})]},h))})]})})}function ga(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let zr=0,vi=!1;function xi(){vi||typeof document>"u"||(vi=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(zr=Date.now())},!0),document.addEventListener("touchstart",()=>{zr=Date.now()},{capture:!0,passive:!0}))}xi();function Xn(e){return!!e&&e.pointerType==="touch"}function Jn(e=1e3){return xi(),Date.now()-zr<e}function Vr(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const i=ga(e),l=ga(t),c=o.useRef(null),d=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const p=m=>{const h=m,b=m.target,v=a.current,C=!!(b&&v&&v.contains(b));if(h.pointerType!=="touch"){C&&(c.current=null);return}if(C){c.current=i.current;return}c.current=null,i.current&&!(b&&b.closest?.(".tooltip-content"))&&l.current(!1,v)};return document.addEventListener("pointerdown",p,!0),()=>document.removeEventListener("pointerdown",p,!0)},[r,a,i,l]);const u=o.useCallback(p=>{const m=c.current;return m===null?!1:(c.current=null,d.current=Date.now(),l.current(!m,p??a.current),!0)},[a,l]);return o.useEffect(()=>{if(!r||!s)return;const p=a.current,m=p?.parentElement;if(!p||!m)return;let h=null;const b=w=>{const f=w.changedTouches?.[0];if(!f)return!1;const g=p.getBoundingClientRect();return f.clientX>=g.left&&f.clientX<=g.right&&f.clientY>=g.top&&f.clientY<=g.bottom},v=w=>{h=b(w)?i.current:null},C=w=>{const f=h;h=null,!(f===null||Date.now()-d.current<700||!b(w))&&(c.current=null,d.current=Date.now(),l.current(!f,p))};return m.addEventListener("touchstart",v,{passive:!0}),m.addEventListener("touchend",C),()=>{m.removeEventListener("touchstart",v),m.removeEventListener("touchend",C)}},[r,s,a,i,l]),{touchPress:u}}function of(e,t){const{size:a=48,type:r,htmlType:s,href:i,target:l,rel:c,icon:d,rightIcon:u,label:p,count:m,subLabel:h,children:b,ariaLabel:v,variant:C="default",align:w="center",nowrap:f=!1,selected:g,toggleable:x=!1,ariaExpanded:y,ariaControls:k,disabled:_=!1,useLabel:B=!0,useBorder:N=!0,useBG:A=!0,useDisabledCovered:S=!1,useDisabledInvisible:O=!1,width:H,minWidth:j,onClick:q,onDisabledClick:E,showTooltipInfo:M=!1,tooltipInfoText:I=null,tooltipDescription:G=null,tooltipOnly:Z=!1,iconSize:Y="medium",iconColor:z,shape:J="rounded",color:$,className:D,...F}=e,P=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),R=P.match(/^\d+$/)?`button${P}`:`button-${P}`,L=Number(a),K=!isNaN(L)&&L<40?"button-2":"button-1",U=p??b,ee=_||!!F.disabled,ae=ee?S?"disabled-covered":O?"disabled-invisibled":"disabled":C,Be=ae?`button--variant-${ae}`:"",ie=w?`button--align-${w}`:"",se=f?"button--nowrap":"",W=J?`button--shape-${J}`:"",re=typeof z=="string"&&z.startsWith("--")?`var(${z})`:z,pe={...H?{width:typeof H=="number"?`${H}px`:H}:{},...j?{minWidth:typeof j=="number"?`${j}px`:j}:{},...N?{}:{"--button-border":ee?"0":"1px solid transparent"},...re?{"--button-icon-color":re}:{},...$?{"--color-main":$}:{}},ve=B===!1?"":U,Ce=Array.isArray(ve)?ve.length>0:!!ve,Ae=!!u,he=r??(Ce||d||Ae?"bar":"dot"),be=`${R}--${he}`,Te=o.useRef(null),Oe=o.useRef(t);Oe.current=t;const Pe=o.useCallback(Ie=>{Te.current=Ie;const rt=Oe.current;typeof rt=="function"?rt(Ie):rt&&(rt.current=Ie)},[]),ce=o.useRef(ee),[ne,Ne]=o.useState(!!g),[je,ke]=o.useState(!1),[ye,Se]=o.useState(null),me=o.useCallback(()=>ke(!1),[]),[Ge,Ue]=o.useState(!1),Ye=o.useId();o.useEffect(()=>{typeof g=="boolean"&&Ne(g)},[g]),o.useEffect(()=>{if(ce.current&&!ee&&Te.current){const Ie=Te.current;let rt=!1;try{rt=Ie.matches(":focus:not(:focus-visible)")}catch{rt=!1}rt&&Ie.blur(),Ie.style.pointerEvents="none";const bt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Te.current&&(Te.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(bt)}ce.current=ee},[ee]);const Ze=typeof g=="boolean"?!!g:ne,Xe=typeof y=="boolean"?void 0:x||typeof g=="boolean"?Ze?"true":"false":F["aria-pressed"],ze=De("button",R,be,Be,ie,se,W,Ze?"is-selected":null,A?null:"button--no-bg",Z?"button--tooltip-only":null,D),$e=`button__icon button__icon--${Y}`,Ve=Array.isArray(h)?h:h!==void 0?[h]:[],ot=()=>{if(Array.isArray(ve))return ve.map((rt,bt)=>{const Vt=Ve[bt];return n.jsxs("span",{className:`button__label-text${Vt!==void 0?" button__label-text--has-sub":""}`,children:[rt,Vt!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:Vt})]},bt)});const Ie=h!==void 0;return n.jsxs("span",{className:`button__label-text${Ie?" button__label-text--has-sub":""}`,children:[ve,m!=null&&n.jsx("span",{className:"button__count",children:m}),Ie&&n.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},Ct=Ie=>{typeof g!="boolean"&&!x&&Ne(!1),Ie.currentTarget.blur()},zt=Ie=>{ee||(typeof F.onMouseLeave=="function"&&F.onMouseLeave(Ie),Ct(Ie))},gt=Ie=>{if(Z&&et&<.touchPress(Ie.currentTarget),ee){et&<.touchPress(Ie.currentTarget),Ie.preventDefault(),E?.(Ie);return}typeof g!="boolean"&&x&&Ne(rt=>!rt),q?.(Ie)},nt=o.useCallback(()=>{(M||G)&&(ke(!0),Se(Te.current?.getBoundingClientRect()??null))},[M,G]),Je=o.useCallback(()=>{(M||G)&&(ke(!1),Se(null))},[M,G]),et=!!(M||G),lt=Vr(je,Ie=>{Ie?nt():Je()},Te,{enabled:et&&(ee||Z),fallbackOnParent:et&&ee}),We={...F};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,ee&&(Object.keys(We).forEach(Ie=>{/^on[A-Z]/.test(Ie)&&typeof We[Ie]=="function"&&delete We[Ie]}),We["aria-disabled"]="true");const ft=(typeof M=="string"?M:null)??(typeof I=="string"?I:null)??(typeof v=="string"?v:null)??(typeof U=="string"?U:null)??void 0,qe=typeof v=="string"?v:typeof U=="string"?U:ft,pt=G?[G.title,...G.items??[]].filter(Boolean).join(". "):M&&ft&&ft!==qe?ft:"",Et=[typeof F["aria-describedby"]=="string"?F["aria-describedby"]:void 0,pt?Ye:null].filter(Boolean).join(" ")||void 0,kt=(Ie,rt)=>n.jsx(Ke,{icon:Ie,label:rt??qe,className:$e,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),_t=()=>he==="dot"?n.jsxs(n.Fragment,{children:[kt(d),Ce&&n.jsx("span",{className:`button__label ${K}`,children:ot()})]}):w==="center"&&d?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:kt(d)}),Ce&&n.jsx("span",{className:`button__label ${K}`,children:ot()})]}),Ae&&n.jsx("span",{className:"button__right",children:kt(u)})]}):n.jsxs(n.Fragment,{children:[d&&n.jsx("span",{className:"button__left",children:kt(d,v??U)}),Ce&&n.jsx("span",{className:`button__label ${K}`,children:ot()}),Ae&&n.jsx("span",{className:"button__right",children:kt(u)})]}),st=!!i&&!ee;return n.jsxs(n.Fragment,{children:[n.jsxs(st?"a":"button",{...We,ref:Pe,...st?{href:i,target:l,rel:c??(l==="_blank"?"noreferrer":void 0)}:{type:s,disabled:ee&&!E&&!Ge},className:ze,"aria-pressed":Xe,"aria-expanded":typeof y=="boolean"?y:F["aria-expanded"],"aria-controls":k??F["aria-controls"],"aria-label":qe,"aria-disabled":ee&&(st||E||Ge)?!0:void 0,"aria-describedby":Et,style:pe,onClick:gt,onMouseLeave:zt,onPointerEnter:Ie=>{Xn(Ie)||nt(),!ee&&typeof F.onPointerEnter=="function"&&F.onPointerEnter(Ie)},onPointerLeave:Ie=>{Xn(Ie)||Je(),!ee&&typeof F.onPointerLeave=="function"&&F.onPointerLeave(Ie)},onPointerUp:Ie=>{ee&&et&<.touchPress(Ie.currentTarget),!ee&&typeof F.onPointerUp=="function"&&F.onPointerUp(Ie)},onFocus:Ie=>{Ue(!0),Jn()||nt(),!ee&&typeof F.onFocus=="function"&&F.onFocus(Ie)},onBlur:Ie=>{Ue(!1),ee||Ct(Ie),Je(),!ee&&typeof F.onBlur=="function"&&F.onBlur(Ie)},children:[_t(),pt?n.jsx("span",{id:Ye,hidden:!0,"aria-label":pt}):null]}),je&&G?n.jsx(Fn,{anchorRect:ye,title:G.title,items:G.items,onClose:me}):je&&ft?n.jsx(bn,{anchorRect:ye,text:ft,onClose:me}):null]})}const le=o.forwardRef(of);le.displayName="Button";var sf={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",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",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",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",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",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.",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."},lf={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"},cf={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",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},uf={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},df={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},pf={selected:"\uC120\uD0DD\uB428"},mf={placeholder:"\uC120\uD0DD"},hf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},ff={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"},Cf={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"},gf={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."}}},bf={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."}},yf={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"}}},vf={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},xf={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",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"}},_f={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"},wf={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"}},kf={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"}}}},Af={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"}},Bf={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},Nf={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"}},Sf={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."}},Df={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},Ef={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"},jf={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},Tf={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",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",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"}},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",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 \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"}},Mf={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"}},Lf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},$f={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"}},Rf={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"}},Pf={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},If={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},Ff={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"}},Of={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"}},Hf={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",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."]},zf={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"}},Vf={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
847
|
+
`),this.name="StorageNotConfiguredError"}};function Y0(e){K0(e)}function zs(e,t){if(!e)return null;const a=pa();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function Vs(e){if(!e)return null;const t=pa();if(!t)throw new Hs("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Ws(e){const t=pa();if(!t)throw new Hs("downloadSound");return t.download(e)}function Z0(){return pa()?.noiseBaseUrl??"/sounds/noise"}function qs(){const e=Number(pa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function X0(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 Us="__ihab_core_tts_config__";function Br(){return globalThis[Us]?.urlResolver??null}function J0(){return globalThis[Us]?.fallbackUrlResolver??null}const Q0="__ihab_core_pronunciation_resolver__";function e2(){return globalThis[Q0]??null}let Sn=null;const ma=new WeakMap,Nr=new WeakMap,Sr=new WeakMap;let Gs=!1;const Ks=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function t2(){if(Gs||typeof document>"u")return;Gs=!0;const e=()=>{try{Sn&&Sn.state!=="running"&&Sn.resume()}catch{}};for(const t of["pointerdown","touchend","keydown"])document.addEventListener(t,e,{capture:!0,passive:!0})}function Ys(){if(Sn)return Sn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(Sn=new e,t2(),Sn):null}catch{return null}}function Dr(){try{Sn?.resume()}catch{}}function Er(e,t){const a=ma.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=Ks(Nr.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 ma.set(t,l),l}catch{return null}}function Pa(e){if(!e)return Promise.resolve(null);const t=ma.get(e);if(t)return Promise.resolve(t.analyser);const a=Ys();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Er(a,e)?.analyser??null);const r=Sr.get(e);if(r)return r;const s=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Er(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Sr.delete(e)});return Sr.set(e,s),s}function n2(e){if(!e)return null;const t=ma.get(e);if(t)return t.analyser;const a=Ys();return a?a.state==="running"?Er(a,e)?.analyser??null:(Pa(e),null):null}function Dn(e,t){const a=Ks(t);Nr.set(e,a);const r=ma.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 Ia(e){return Nr.get(e)??e.volume}function a2(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 r2="__ihab_core_image_config__";function Gn(){return globalThis[r2]??null}const Zs="word_image_existence_map_v1";let Pn=null;const Fa=new Map;function o2(){if(Pn)return Pn;try{const e=typeof localStorage<"u"?localStorage.getItem(Zs):null,t=e?JSON.parse(e):null;Pn=t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{Pn={}}return Pn}let jr=null;function s2(){jr||(jr=setTimeout(()=>{jr=null;try{typeof localStorage<"u"&&Pn&&localStorage.setItem(Zs,JSON.stringify(Pn))}catch{}},200))}function i2(e,t){return`${e}_${t??1}`}async function Xs(e,t){const a=o2(),r=i2(e,t);if(r in a)return a[r];if(Fa.has(r))return Fa.get(r);const s=Gn();if(!s)return!1;const i=s(e,t);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:X0(8e3)}).then(c=>c.status>=500?null:c.ok,()=>null).then(c=>(Fa.delete(r),c===null?!1:(a[r]=c,s2(),c)));return Fa.set(r,l),l}const l2={\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"}},Js=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],Qs=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],c2=["","\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 ha(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 u2(e){const t=ha(e[0]||"");return t?Js[t.cho]:""}function d2(e){if(!e)return()=>!0;e=e.normalize("NFC");const t=[...e],a=l=>Js.includes(l),r=l=>Qs.includes(l),s=t.map(l=>a(l)?"cho":r(l)?"jung":ha(l)?"syl":"other"),i=t.map(l=>ha(l));if(s.includes("other")){const l=e.toLowerCase();return c=>c.normalize("NFC").toLowerCase().includes(l)}return l=>{const c=[...l.normalize("NFC")];for(let d=0;d+t.length<=c.length;d++){let u=!0;for(let p=0;p<t.length;p++){const m=c[d+p],h=s[p];if(h==="cho"){if(u2(m)!==t[p]){u=!1;break}}else if(h==="jung"){const b=ha(m);if(!b||Qs[b.jung]!==t[p]){u=!1;break}}else{const b=i[p];if(b&&b.jong===0){const v=ha(m);if(!v||v.cho!==b.cho||v.jung!==b.jung){u=!1;break}}else if(m!==t[p]){u=!1;break}}}if(u)return!0}return!1}}const p2={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(p2).map(([e,t])=>[t.join(""),c2[Number(e)]]));const m2="word_pair_index_v2",h2="word_pair_index_sig_v2";let Oa=null;function f2(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(m2),t=localStorage.getItem(h2);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function C2(){if(Oa)return Oa;const e=f2();return e?(Oa=e.index,e.sig,Oa):null}const Tr=/[ㄱ-ㅎ]/,g2=/[ㅏ-ㅣ]/;function ei(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||Tr.test(a)||g2.test(a))return a}return null}function b2(e){const t=ei(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":Tr.test(t)?"\uC774":"\uAC00"}function y2(e){return`${e}${b2(e)}`}function v2(e){const t=ei(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":Tr.test(t)?"\uC744":"\uB97C"}function x2(e){return`${e}${v2(e)}`}function _2(e,t,a){const r=e.slice(),[s]=r.splice(t,1);return r.splice(a,0,s),r}function fa(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 w2=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof St?.t=="function"?St.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function ti(e,t){if(t===void 0&&(t=w2()),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 k2="__ihab_core_word_pool__";function ni(){return globalThis[k2]??null}const ai=globalThis;function ri(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function A2(e){ri("time",()=>ai.__ihabTrainingTimeLogger?.(e))}function B2(e){ri("completion",()=>ai.__ihabTrainingCompletionLogger?.(e))}function Ot(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function N2(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 S2(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Ot(r.contextCode)??Ot(r.itemId)??Ot(r.itemCode)??Ot(r.id),question:Ot(r.question)??Ot(r.q)??Ot(r.sentence)??Ot(r.text)??Ot(r.prompt)??Ot(r.word)??Ot(r.targetSyllable),answer:Ot(r.answer),selected:Ot(r.selectedText)??Ot(r.selected),correct:N2(r)}}):[]}const Mr=globalThis;async function D2(){try{return await Mr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function oi(e){const t=a=>{};try{const a=Mr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function Ha(e){try{Mr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function E2(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 j2=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function si(e){let t;if(e instanceof Date)t=e;else if(typeof e=="string"){const a=e.trim(),r=j2.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}function Ca(){return $r(new Date)}function Lr(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:Ca()}function Kn(){return M2(Ca())}const T2=540*60*1e3;function ii(e,t,a){return new Date(Date.UTC(e,t,a)-T2)}function M2(e){const[t,a,r]=e.split("-").map(Number);return new Date(t,(a||1)-1,r||1)}function $r(e){if(e==null||e==="")return"";const t=si(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function li(e,t){if(!e)return"";const a=si(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),c=Math.floor(l/24),d=Math.floor(c/7),u=Math.floor(c/30),p=Math.floor(c/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}):c<7?t("store.time.daysAgo",{n:c}):d<5?t("store.time.weeksAgo",{n:d}):c<365?t("store.time.monthsAgo",{n:Math.min(u,11)}):t("store.time.yearsAgo",{n:p})}function ci(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:s=!1,fallback:i="\u2014"}=t;if(!e)return i;const l=$r(e instanceof Date?e:String(e));if(!l)return i;const[c,d,u]=l.split("-"),p=r?d:String(Number(d)),m=r?u:String(Number(u));return`${c}${a}${p}${a}${m}${s?".":""}`}function Yn(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function ui(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 Rr(e){return(e??0).toLocaleString("ko-KR")}const L2=[{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"}]}],$2=[{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 di(){return L2}function R2(){return $2}const P2=[],I2=[],F2=[],O2=[];function H2(){return{LISTEN_IN_NOISE:P2,SHORT_STORY:I2,LONG_STORY:F2,ORDERING_SENTENCE:O2}}const z2=[{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."}],pi={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function V2(e){return z2.map(t=>{const a=pi[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let za=null,mi=null,hi=null;function W2(){const e=ni();if(e&&e.entries.length>0){const t=C2();if(za&&mi===e&&hi===t)return za;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 za=r,mi=e,hi=t,za}return[]}new Proxy([],{get(e,t){const a=W2(),r=a[t];return typeof r=="function"?r.bind(a):r}});const q2="0.190.0";function U2(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 G2(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&U2(r.attrValue)&&(r.keepAttr=!1)};kr.addHook("uponSanitizeAttribute",t);try{return kr.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{kr.removeHook("uponSanitizeAttribute",t)}}function K2(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),[i,l]=o.useState(null),[c,d]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),l(null);return}const u=e.split("/").pop();let p=e;u&&(e.startsWith("/")?p=Ar(e):/^(Logo|Symbol)/i.test(u)?p=Ar(`logo/${u}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),s(null),l(null),a(p)},[e]),o.useEffect(()=>{if(!t)return;let u=!1;async function p(){try{let m=await fetch(t);m.ok||(m=await fetch(t));const h=m.headers.get("content-type")||"";if(u)return;if(h.includes("svg")){s("mask");return}if(h.startsWith("image/")){s("img");return}const b=await fetch(t);if(!b.ok)throw new Error("not ok");const v=await b.text();if(u)return;if(/^\s*<svg[\s>]/i.test(v)){const C=G2(v);if(!C){s("none");return}l(C),s("inline");return}s("none")}catch{u||s("none")}}return p(),()=>{u=!0}},[t]),o.useEffect(()=>{let u=!1,p=null;return r==="mask"&&t&&fetch(t).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{u||(p=URL.createObjectURL(m),d(p))}).catch(()=>{u||s("img")}),()=>{u=!0,p&&URL.revokeObjectURL(p),d(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:c}}function Ke(e){const{icon:t,label:a,className:r,imgClassName:s,maskClassName:i,svgClassName:l,wrapperStyle:c,size:d}=e||{},u=r??"iconRenderer-icon",p=s??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",h=l??"iconRenderer-icon-svg",b=typeof t=="string"?t:null,v=u0(b),{iconToUse:C,mode:w,svgText:f,blobUrl:y}=K2(b),x=(N,A={})=>n.jsx("span",{className:u,style:c,...A,children:N}),g=typeof d=="number"?{width:d,height:d,objectFit:"contain"}:null,k=(N,A={})=>n.jsx("img",{src:N,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...A,style:g?{...A.style,...g}:A.style});if(!t)return null;if(typeof t!="string")return x(t);if(t==="none")return x(n.jsx("span",{className:h,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 x(o.createElement(v,{className:h,size:typeof d=="number"?d:20}),{"aria-hidden":"true"})}catch{}if(C&&C.endsWith(".svg")){if(w==="mask"){const N={"--icon-url":y?`url(${y})`:`url(${C})`,...typeof d=="number"?{"--icon-size":`${d}px`}:null};return x(n.jsx("span",{className:m,style:N}),{"aria-hidden":"true"})}return w==="img"?x(k(C,{onError:N=>{N.currentTarget.onerror=null,N.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):w==="inline"?x(n.jsx("span",{className:h,dangerouslySetInnerHTML:f?{__html:f}:void 0}),{"aria-hidden":"true"}):x(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return k(Ar(t),{style:c,onError:N=>{N.currentTarget.onerror=null,N.currentTarget.style.display="none"}});const _=typeof d=="number"?d:20,B=`<svg width="${_}" height="${_}" 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 x(n.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:B}}),{"aria-hidden":"true"})}function fi(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 c=()=>{r.current=!1,s.current&&a(!1)};l.then(c,c)}},[e]);return{pending:t,press:i}}function Y2({icon:e,title:t,message:a,action:r,className:s}){const{pending:i,press:l}=fi(r?.onClick);return n.jsxs("div",{className:De("empty-state",s),children:[e&&n.jsx(Ke,{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(Ke,{icon:r.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function Z2({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:i}){const{t:l}=be.useTranslation(),{pending:c,press:d}=fi(r);return n.jsxs("div",{className:De("empty-state","error-state",i),role:"alert",children:[n.jsx(Ke,{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:d,disabled:c,"aria-busy":c||void 0,children:[n.jsx(Ke,{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 X2({icon:e,title:t,description:a,cta:r,tone:s="main",disabled:i=!1,onClick:l,className:c=""}){const d=o.useId(),u=`${d}-title`,p=`${d}-desc`,m=`${d}-cta`,h=()=>{i||l?.()};return n.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":u,"aria-describedby":`${p} ${m}`,onClick:h,onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),h())},className:De("action-card",`action-card--${s}`,i&&"action-card--disabled",c),children:n.jsxs("div",{className:"action-card__body",children:[n.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:n.jsx(Ke,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:u,className:"action-card__title",children:t}),n.jsx("p",{id:p,className:"action-card__desc",children:a})]}),n.jsxs("div",{className:"action-card__cta",children:[n.jsx("span",{id:m,children:r}),n.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:n.jsx(Ke,{icon:"arrow-right",size:18})})]})]})})}function J2({as:e="div",className:t="",children:a,storage:r,...s}){r&&Y0({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=De("ihabdevteam-core-scope",t);return n.jsx(e,{className:i,...s,children:a})}function Pr(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(gn)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){s.preventDefault();return}const l=i[0],c=i[i.length-1],d=document.activeElement,u=d===a;s.shiftKey&&(d===l||u)?(s.preventDefault(),c.focus()):!s.shiftKey&&d===c&&(s.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const gn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Ir=new WeakMap;function Fr(e,t){e&&Ir.set(e,t)}function Or(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!Ir.has(r);)r=r.parentElement;if(!r)return t;t=Ir.get(r)??null}return t}function Ci(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 Va(e,t,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(Ci(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const s=Array.from(document.querySelectorAll(gn)).filter(d=>!(e&&e.contains(d))&&Ci(d));let i=null,l=null;for(const d of s)r.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_PRECEDING?i=d:l||(l=d);const c=i??l;return c?.focus(),c}function Q2({title:e="",lines:t=[],notices:a=null,children:r,variant:s="default",dismissible:i=!1,className:l=""}){const{t:c}=be.useTranslation(),[d,u]=o.useState(!1),p=o.useRef(null),m=o.useCallback(()=>{const C=p.current;C&&C.contains(document.activeElement)&&Va(C),u(!0)},[]);if(d)return null;const h=`notice-box notice-box--${s} body-2 ${l}`.trim(),b=i&&n.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return n.jsxs("div",{className:h,role:"note",children:[a.map((C,w)=>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((f,y)=>n.jsx("span",{className:"notice-box__line body-3",children:f},y))}):C.children??null})]},w)),b]});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,w)=>n.jsx("li",{className:"notice-box__line",children:C},w))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:p,className:h,role:"note",children:[v,b]})}const Zn=[];let Wa=!1;function gi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=Zn[Zn.length-1];t&&(e.stopPropagation(),t())}function In(e){return Zn.push(e),!Wa&&typeof document<"u"&&(document.addEventListener("keydown",gi),Wa=!0),()=>{const t=Zn.lastIndexOf(e);t>=0&&Zn.splice(t,1),Zn.length===0&&Wa&&typeof document<"u"&&(document.removeEventListener("keydown",gi),Wa=!1)}}const bi=o.createContext(null);function ef(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const yi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function tf(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 Jo.useSyncExternalStore(t,()=>yi(e),()=>!1)}function nf(e){const[t,a]=o.useState(yi(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 af=typeof Jo.useSyncExternalStore=="function"?tf:nf;function Yt(e){const t=o.useContext(bi),a=af(e);return t&&typeof t.mobile=="boolean"&&ef(e)?t.mobile:a}const rf="(prefers-reduced-motion: reduce)";function Hr(){return Yt(rf)}function an(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:i,closeOnOutsideClick:l=!0,className:c="",role:d="dialog",ariaLabel:u="",children:p,backdrop:m=!1,isMobilePopup:h=!1,useBorder:b=!0,header:v}=e||{},C=o.useRef(null),[w,f]=o.useState({position:"fixed",left:0,top:-9999}),[y,x]=o.useState(!1),[g,k]=o.useState("bottom"),[_,B]=o.useState(!1),[N,A]=o.useState(!1),S=!t&&!a,O=o.useCallback((Z=!1)=>{if(N&&h)return;const U=a?a.getBoundingClientRect():t;if(!U||!C.current)return;const z=C.current,{offsetWidth:K,offsetHeight:L}=z,D=window.innerWidth,F=window.innerHeight,P=D-U.right,R=U.left,$=U.top,ee=F-U.bottom;let J=0,Y=0,ne="top";if($>=L+r)ne="top",Y=U.top-r-L,J=U.left+U.width/2-K/2;else if(ee>=L+r)ne="bottom",Y=U.bottom+r,J=U.left+U.width/2-K/2;else if(P>=K+r)ne="right",J=U.right+r,Y=U.top+U.height/2-L/2;else if(R>=K+r)ne="left",J=U.left-r-K,Y=U.top+U.height/2-L/2;else{const W=Math.max($,ee,P,R);W===$?(ne="top",Y=U.top-r-L,J=U.left+U.width/2-K/2):W===ee?(ne="bottom",Y=U.bottom+r,J=U.left+U.width/2-K/2):W===P?(ne="right",J=U.right+r,Y=U.top+U.height/2-L/2):(ne="left",J=U.left-r-K,Y=U.top+U.height/2-L/2)}const Ce=Number.isFinite(Number(s))?Number(s):8;J=Math.min(Math.max(J,Ce),D-K-Ce),Y=Math.min(Math.max(Y,Ce),F-L-Ce);const re=Math.round(J),ie=Math.round(Y);Z&&C.current?(C.current.style.left=`${re}px`,C.current.style.top=`${ie}px`,C.current.dataset.placement=ne):(k(ne||g),f({position:"fixed",left:re,top:ie}),B(!0))},[N,h,a,t,r,s,g]);o.useLayoutEffect(()=>{if(S)return;if(N&&h){f({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),B(!0);return}O();const Z=requestAnimationFrame(()=>O());return()=>cancelAnimationFrame(Z)},[t,a,r,p,s,S,N,h,O]),o.useEffect(()=>{if(S||N&&h||!C.current||typeof ResizeObserver>"u")return;const Z=new ResizeObserver(()=>{t&&O()});return Z.observe(C.current),()=>Z.disconnect()},[t,p,s,S,N,h,O]),o.useEffect(()=>{if(S||N&&h)return;const Z=()=>O(!0),U=z=>{if(!a&&i){const K=z.target;if(K&&C.current&&C.current.contains(K))return;try{if(K&&K.closest&&K.closest("[data-tooltip-ignore]"))return}catch{}M.current(!0);return}Z()};return window.addEventListener("resize",Z),document.addEventListener("scroll",U,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",Z),document.removeEventListener("scroll",U,{capture:!0})}},[t,a,i,r,p,s,S,N,h,O]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const Z=window.matchMedia("(max-width: 768px)"),U=()=>A(!!Z.matches);U();try{Z.addEventListener?Z.addEventListener("change",U):Z.addListener(U)}catch{try{Z.addListener(U)}catch{}}return()=>{try{Z.removeEventListener?Z.removeEventListener("change",U):Z.removeListener(U)}catch{}}},[]);const H=o.useRef(!1),j=o.useRef(null),q=Hr(),E=o.useCallback((Z=!1)=>{if(i&&!(y||H.current)){if(H.current=!0,Z){x(!0);try{i&&i()}catch{H.current=!1,x(!1)}return}x(!0),j.current=setTimeout(()=>{j.current=null;try{i&&i()}catch{H.current=!1,x(!1)}},q?0:200)}},[y,i,x,q]);o.useEffect(()=>()=>{j.current&&clearTimeout(j.current)},[]),o.useEffect(()=>{if(S)return;const Z=K=>{const L=C.current;if(!L)return;const D=K.target;if(D&&!L.contains(D)){try{if(D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}l&&E(!0)}},U=K=>{const L=C.current;if(!L)return;const D=K.target;if(D&&!L.contains(D)){try{if(D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}l&&E(!0)}},z=K=>{if(K.key==="Tab"){const L=C.current;if(!L)return;const D=L.querySelectorAll(gn);if(!D||D.length===0)return;const F=D[0],P=D[D.length-1],R=document.activeElement;K.shiftKey?R===F&&(K.preventDefault(),P.focus()):R===P&&(K.preventDefault(),F.focus())}};return document.addEventListener("pointerdown",Z,!0),document.addEventListener("click",U,!0),document.addEventListener("keydown",z),()=>{document.removeEventListener("pointerdown",Z,!0),document.removeEventListener("click",U,!0),document.removeEventListener("keydown",z)}},[i,l,E,S]);const M=o.useRef(E);o.useEffect(()=>{M.current=E});const I=!!i;o.useEffect(()=>{if(!(S||!I))return In(()=>M.current())},[S,I]),o.useEffect(()=>{const Z=()=>{E(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",Z),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",Z)}},[E]);const G=n.jsxs("div",{ref:C,className:`tooltip-content ${S?"tooltip-content--inline":""} ${b?"tooltip-content--bordered":""} ${y?"is-closing":""} ${c} ${N&&h?"is-mobile":""}`,role:d,"aria-label":u||void 0,style:S?{}:{...w,visibility:_?"visible":"hidden"},tabIndex:-1,"data-placement":g,"data-left":S?"":w.left,"data-top":S?"":w.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}),p]});if(S||typeof document>"u")return G;if(m||N&&h){const Z=n.jsxs("div",{className:"tooltip-portal",children:[n.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&E(!0)}}),G]});return Ut.createPortal(Z,document.body)}return Ut.createPortal(G,document.body)}function bn(e){const{anchorRect:t,text:a,offset:r=8,onClose:s,className:i="",ariaLabel:l}=e||{};return a?n.jsx(an,{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 Fn(e){const{t}=be.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:i=-1,showIndex:l=!0,onClose:c,offset:d=12,closeOnOutsideClick:u=!0}=e||{},p=(Array.isArray(s)?s:s?[s]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:n.jsx(an,{anchorRect:a,offset:d,onClose:c,closeOnOutsideClick:u,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:p.map((m,h)=>n.jsxs("li",{className:`tooltip-description__item body-3${h===i?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&n.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),m.color&&n.jsx("span",{className:"tooltip-description__dot",style:{background:m.color},"aria-hidden":"true"}),n.jsx("span",{children:m.text})]},h))})]})})}function ga(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let zr=0,vi=!1;function xi(){vi||typeof document>"u"||(vi=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(zr=Date.now())},!0),document.addEventListener("touchstart",()=>{zr=Date.now()},{capture:!0,passive:!0}))}xi();function Xn(e){return!!e&&e.pointerType==="touch"}function Jn(e=1e3){return xi(),Date.now()-zr<e}function Vr(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const i=ga(e),l=ga(t),c=o.useRef(null),d=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const p=m=>{const h=m,b=m.target,v=a.current,C=!!(b&&v&&v.contains(b));if(h.pointerType!=="touch"){C&&(c.current=null);return}if(C){c.current=i.current;return}c.current=null,i.current&&!(b&&b.closest?.(".tooltip-content"))&&l.current(!1,v)};return document.addEventListener("pointerdown",p,!0),()=>document.removeEventListener("pointerdown",p,!0)},[r,a,i,l]);const u=o.useCallback(p=>{const m=c.current;return m===null?!1:(c.current=null,d.current=Date.now(),l.current(!m,p??a.current),!0)},[a,l]);return o.useEffect(()=>{if(!r||!s)return;const p=a.current,m=p?.parentElement;if(!p||!m)return;let h=null;const b=w=>{const f=w.changedTouches?.[0];if(!f)return!1;const y=p.getBoundingClientRect();return f.clientX>=y.left&&f.clientX<=y.right&&f.clientY>=y.top&&f.clientY<=y.bottom},v=w=>{h=b(w)?i.current:null},C=w=>{const f=h;h=null,!(f===null||Date.now()-d.current<700||!b(w))&&(c.current=null,d.current=Date.now(),l.current(!f,p))};return m.addEventListener("touchstart",v,{passive:!0}),m.addEventListener("touchend",C),()=>{m.removeEventListener("touchstart",v),m.removeEventListener("touchend",C)}},[r,s,a,i,l]),{touchPress:u}}function of(e,t){const{size:a=48,type:r,htmlType:s,href:i,target:l,rel:c,icon:d,rightIcon:u,label:p,count:m,subLabel:h,children:b,ariaLabel:v,variant:C="default",align:w="center",nowrap:f=!1,selected:y,toggleable:x=!1,ariaExpanded:g,ariaControls:k,disabled:_=!1,useLabel:B=!0,useBorder:N=!0,useBG:A=!0,useDisabledCovered:S=!1,useDisabledInvisible:O=!1,width:H,minWidth:j,onClick:q,onDisabledClick:E,showTooltipInfo:M=!1,tooltipInfoText:I=null,tooltipDescription:G=null,tooltipOnly:Z=!1,iconSize:U="medium",iconColor:z,shape:K="rounded",color:L,className:D,...F}=e,P=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),R=P.match(/^\d+$/)?`button${P}`:`button-${P}`,$=Number(a),ee=!isNaN($)&&$<40?"button-2":"button-1",J=p??b,Y=_||!!F.disabled,ne=Y?S?"disabled-covered":O?"disabled-invisibled":"disabled":C,Ce=ne?`button--variant-${ne}`:"",re=w?`button--align-${w}`:"",ie=f?"button--nowrap":"",W=K?`button--shape-${K}`:"",oe=typeof z=="string"&&z.startsWith("--")?`var(${z})`:z,pe={...H?{width:typeof H=="number"?`${H}px`:H}:{},...j?{minWidth:typeof j=="number"?`${j}px`:j}:{},...N?{}:{"--button-border":Y?"0":"1px solid transparent"},...oe?{"--button-icon-color":oe}:{},...L?{"--color-main":L}:{}},xe=B===!1?"":J,ge=Array.isArray(xe)?xe.length>0:!!xe,Be=!!u,he=r??(ge||d||Be?"bar":"dot"),ye=`${R}--${he}`,Te=o.useRef(null),Oe=o.useRef(t);Oe.current=t;const Pe=o.useCallback(Ie=>{Te.current=Ie;const rt=Oe.current;typeof rt=="function"?rt(Ie):rt&&(rt.current=Ie)},[]),ce=o.useRef(Y),[ae,Ne]=o.useState(!!y),[je,Ae]=o.useState(!1),[ve,Se]=o.useState(null),me=o.useCallback(()=>Ae(!1),[]),[Ge,Ue]=o.useState(!1),Ye=o.useId();o.useEffect(()=>{typeof y=="boolean"&&Ne(y)},[y]),o.useEffect(()=>{if(ce.current&&!Y&&Te.current){const Ie=Te.current;let rt=!1;try{rt=Ie.matches(":focus:not(:focus-visible)")}catch{rt=!1}rt&&Ie.blur(),Ie.style.pointerEvents="none";const bt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Te.current&&(Te.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(bt)}ce.current=Y},[Y]);const Ze=typeof y=="boolean"?!!y:ae,Xe=typeof g=="boolean"?void 0:x||typeof y=="boolean"?Ze?"true":"false":F["aria-pressed"],ze=De("button",R,ye,Ce,re,ie,W,Ze?"is-selected":null,A?null:"button--no-bg",Z?"button--tooltip-only":null,D),$e=`button__icon button__icon--${U}`,Ve=Array.isArray(h)?h:h!==void 0?[h]:[],ot=()=>{if(Array.isArray(xe))return xe.map((rt,bt)=>{const Vt=Ve[bt];return n.jsxs("span",{className:`button__label-text${Vt!==void 0?" button__label-text--has-sub":""}`,children:[rt,Vt!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:Vt})]},bt)});const Ie=h!==void 0;return n.jsxs("span",{className:`button__label-text${Ie?" button__label-text--has-sub":""}`,children:[xe,m!=null&&n.jsx("span",{className:"button__count",children:m}),Ie&&n.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},Ct=Ie=>{typeof y!="boolean"&&!x&&Ne(!1),Ie.currentTarget.blur()},zt=Ie=>{Y||(typeof F.onMouseLeave=="function"&&F.onMouseLeave(Ie),Ct(Ie))},gt=Ie=>{if(Z&&et&<.touchPress(Ie.currentTarget),Y){et&<.touchPress(Ie.currentTarget),Ie.preventDefault(),E?.(Ie);return}typeof y!="boolean"&&x&&Ne(rt=>!rt),q?.(Ie)},nt=o.useCallback(()=>{(M||G)&&(Ae(!0),Se(Te.current?.getBoundingClientRect()??null))},[M,G]),Je=o.useCallback(()=>{(M||G)&&(Ae(!1),Se(null))},[M,G]),et=!!(M||G),lt=Vr(je,Ie=>{Ie?nt():Je()},Te,{enabled:et&&(Y||Z),fallbackOnParent:et&&Y}),We={...F};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(Ie=>{/^on[A-Z]/.test(Ie)&&typeof We[Ie]=="function"&&delete We[Ie]}),We["aria-disabled"]="true");const ft=(typeof M=="string"?M:null)??(typeof I=="string"?I:null)??(typeof v=="string"?v:null)??(typeof J=="string"?J:null)??void 0,qe=typeof v=="string"?v:typeof J=="string"?J:ft,pt=G?[G.title,...G.items??[]].filter(Boolean).join(". "):M&&ft&&ft!==qe?ft:"",Et=[typeof F["aria-describedby"]=="string"?F["aria-describedby"]:void 0,pt?Ye:null].filter(Boolean).join(" ")||void 0,kt=(Ie,rt)=>n.jsx(Ke,{icon:Ie,label:rt??qe,className:$e,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),_t=()=>he==="dot"?n.jsxs(n.Fragment,{children:[kt(d),ge&&n.jsx("span",{className:`button__label ${ee}`,children:ot()})]}):w==="center"&&d?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:kt(d)}),ge&&n.jsx("span",{className:`button__label ${ee}`,children:ot()})]}),Be&&n.jsx("span",{className:"button__right",children:kt(u)})]}):n.jsxs(n.Fragment,{children:[d&&n.jsx("span",{className:"button__left",children:kt(d,v??J)}),ge&&n.jsx("span",{className:`button__label ${ee}`,children:ot()}),Be&&n.jsx("span",{className:"button__right",children:kt(u)})]}),st=!!i&&!Y;return n.jsxs(n.Fragment,{children:[n.jsxs(st?"a":"button",{...We,ref:Pe,...st?{href:i,target:l,rel:c??(l==="_blank"?"noreferrer":void 0)}:{type:s,disabled:Y&&!E&&!Ge},className:ze,"aria-pressed":Xe,"aria-expanded":typeof g=="boolean"?g:F["aria-expanded"],"aria-controls":k??F["aria-controls"],"aria-label":qe,"aria-disabled":Y&&(st||E||Ge)?!0:void 0,"aria-describedby":Et,style:pe,onClick:gt,onMouseLeave:zt,onPointerEnter:Ie=>{Xn(Ie)||nt(),!Y&&typeof F.onPointerEnter=="function"&&F.onPointerEnter(Ie)},onPointerLeave:Ie=>{Xn(Ie)||Je(),!Y&&typeof F.onPointerLeave=="function"&&F.onPointerLeave(Ie)},onPointerUp:Ie=>{Y&&et&<.touchPress(Ie.currentTarget),!Y&&typeof F.onPointerUp=="function"&&F.onPointerUp(Ie)},onFocus:Ie=>{Ue(!0),Jn()||nt(),!Y&&typeof F.onFocus=="function"&&F.onFocus(Ie)},onBlur:Ie=>{Ue(!1),Y||Ct(Ie),Je(),!Y&&typeof F.onBlur=="function"&&F.onBlur(Ie)},children:[_t(),pt?n.jsx("span",{id:Ye,hidden:!0,"aria-label":pt}):null]}),je&&G?n.jsx(Fn,{anchorRect:ve,title:G.title,items:G.items,onClose:me}):je&&ft?n.jsx(bn,{anchorRect:ve,text:ft,onClose:me}):null]})}const le=o.forwardRef(of);le.displayName="Button";var sf={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",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",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",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",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",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.",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."},lf={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"},cf={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",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},uf={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},df={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},pf={selected:"\uC120\uD0DD\uB428"},mf={placeholder:"\uC120\uD0DD"},hf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},ff={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"},Cf={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"},gf={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."}}},bf={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."}},yf={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"}}},vf={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},xf={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",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"}},_f={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"},wf={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"}},kf={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"}}}},Af={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"}},Bf={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},Nf={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"}},Sf={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."}},Df={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},Ef={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"},jf={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},Tf={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",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",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"}},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",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 \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"}},Mf={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"}},Lf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},$f={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"}},Rf={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"}},Pf={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},If={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},Ff={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"}},Of={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"}},Hf={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",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."]},zf={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"}},Vf={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
848
848
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
849
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"},Wf={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"}}},qf={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},Uf={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"}},Gf={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},Kf={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"},Yf={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},Zf={ariaLabel:"\uC120\uD0DD \uD0ED"},Xf={ariaLabel:"\uD0ED"},Jf={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},Qf={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},eC={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"}},tC={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"}},nC={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"}},aC={manage:{unit:"\uAC74"}},rC={cancelLabel:"\uCDE8\uC18C"},oC={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},sC={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"},iC={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},lC={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"},cC={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},uC={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},dC={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},pC={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},mC={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"}},hC={clearSelection:"\uC120\uD0DD \uD574\uC81C"},fC={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},CC={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},gC={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},bC={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},yC={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},vC={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},xC={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"},_C={common:sf,calendar:lf,passCard:cf,searchField:uf,rating:df,colorPicker:pf,dropdown:mf,accordion:hf,header:ff,nav:Cf,settings:gf,usage:bf,account:yf,help:vf,training:xf,trainingSettings:_f,customers:wf,payment:kf,coupons:Af,visits:Bf,company:Nf,trainingType:Sf,myWordTraining:Df,myWordTable:Ef,keyWords:jf,wordTable:Tf,wordSearch:Mf,wordPrint:Lf,topic:$f,accessLinkManager:Rf,login:Pf,trainingPlanRun:If,device:Ff,manager:Of,wordPairs:Hf,game:zf,footer:Vf,landing:Wf,date:qf,trainingSetPage:Uf,wordTrainingPreview:Gf,wordData:Kf,textField:Yf,segmentedControl:Zf,tabs:Xf,fileUpload:Jf,avatar:Qf,myHomework:eC,trainingStatus:tC,store:nC,homework:aC,inquiry:rC,progress:oC,trainingMiss:sC,table:iC,wordScore:lC,topBanner:cC,datePicker:uC,report:dC,tooltip:pC,phonemeProfile:mC,bulkBar:hC,debug:fC,badge:CC,loader:gC,soundCompass:bC,breadcrumb:yC,board:vC,promoBannerBg:xC},wC={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",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",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No 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."},kC={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)"},AC={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",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},BC={clearAriaLabel:"Clear search"},NC={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},SC={selected:"selected"},DC={placeholder:"Select"},EC={collapse:"Collapse",expand:"Expand"},jC={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},TC={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}}"},MC={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."}}},LC={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"}},$C={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"}}},RC={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},PC={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",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"}},IC={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"},FC={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"}},OC={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},HC={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"}},zC={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},VC={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},WC={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."}},qC={comingSoon:"Word training is coming soon."},UC={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"},GC={title:"Key Words",empty:"No key words available."},KC={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",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}}",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},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",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, hover the cell to reveal them.",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"}},YC={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}}"}},ZC={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},XC={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"}},JC={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"}},QC={passwordPlaceholder:"Enter password"},eg={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"}},tg={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"}},ng={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}}",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."]},ag={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"}},rg={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"},og={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"}}},sg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},ig={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},lg={answer:"Answer",distractor:"Distractor"},cg={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},ug={clearAriaLabel:"Clear input"},dg={ariaLabel:"Select tab"},pg={ariaLabel:"Tabs"},mg={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},hg={ariaLabel:"User avatar"},fg={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"}},Cg={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"}},gg={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)"}},bg={manage:{unit:"item(s)"}},yg={cancelLabel:"Cancel"},vg={subtitle:"Select a topic to start listening practice."},xg={steps:"Step {{current}} of {{total}}"},_g={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"},wg={resetColumns:"Reset column widths"},kg={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}}"},Ag={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Bg={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},Ng={previewRegion:"Report preview \u2014 scrollable sideways"},Sg={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},Dg={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Eg={clearSelection:"Clear selection"},jg={showResult:"Show {{type}} result"},Tg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Mg={loading:"Loading"},Lg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},$g={ariaLabel:"Breadcrumb"},Rg={empty:"No items yet."},Pg={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"},Ig={common:wC,calendar:kC,passCard:AC,searchField:BC,rating:NC,colorPicker:SC,dropdown:DC,accordion:EC,header:jC,nav:TC,settings:MC,usage:LC,account:$C,help:RC,training:PC,trainingSettings:IC,customers:FC,payment:OC,coupons:HC,visits:zC,company:VC,trainingType:WC,myWordTraining:qC,myWordTable:UC,keyWords:GC,wordTable:KC,wordSearch:YC,wordPrint:ZC,topic:XC,accessLinkManager:JC,login:QC,device:eg,manager:tg,wordPairs:ng,game:ag,footer:rg,landing:og,date:sg,trainingSetPage:ig,wordTrainingPreview:lg,wordData:cg,textField:ug,segmentedControl:dg,tabs:pg,fileUpload:mg,avatar:hg,myHomework:fg,trainingStatus:Cg,store:gg,homework:bg,inquiry:yg,trainingPlanRun:vg,progress:xg,trainingMiss:_g,table:wg,wordScore:kg,topBanner:Ag,datePicker:Bg,report:Ng,tooltip:Sg,phonemeProfile:Dg,bulkBar:Eg,debug:jg,badge:Tg,loader:Mg,soundCompass:Lg,breadcrumb:$g,board:Rg,promoBannerBg:Pg};const Fg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Wr="ko",Og="ihab_display_language";function _i(){if(typeof window>"u")return Wr;try{const e=localStorage.getItem(Og);if(e&&Fg.some(t=>t.code===e))return e}catch{}return Wr}function wi(e){try{document.documentElement.lang=e}catch{}}St.on("languageChanged",wi),wi(_i()),St.use(ge.initReactI18next).init({resources:{ko:{translation:_C},en:{translation:Ig}},lng:_i(),fallbackLng:Wr,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function mt(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"},qr=new WeakMap;function Ur(e){if(e)return qr.get(e)}function Lt(e,t){e&&(e.style.setProperty(ba.title,t.title),e.style.setProperty(ba.description,t.description),qr.set(e,t))}function $t(e){e&&(e.style.removeProperty(ba.title),e.style.removeProperty(ba.description),qr.delete(e))}const ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Ai(){const e=mt(ki,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Bi={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Ni(){const e=mt(Bi,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Si={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Di(){const e=mt(Si,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const Ei={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ji(){const e=mt(Ei,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Ti={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Mi(){const e=mt(Ti,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Li={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function $i(){const e=mt(Li,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Ri={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Pi(){const e=mt(Ri,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Ii={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Fi(){const e=mt(Ii,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Oi={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Hi(){const e=mt(Oi,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const zi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Vi(){const e=mt(zi,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Wi={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function qi(){const e=mt(Wi,Lt,$t);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 Ui={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Gi(){const e=mt(Ui,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Yi(){const e=mt(Ki,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Zi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Xi(){const e=mt(Zi,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Ht=(e,t,a)=>({key:e,get label(){return St.t(`promoBannerBg.${e}`,t)},textTone:a}),Hg=[Ht("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Ht("soft","\uC18C\uD504\uD2B8","dark"),Ht("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),Ht("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Ht("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),Ht("warm","\uC6DC(\uAC15\uC870)","dark"),Ht("dark","\uB2E4\uD06C","light"),Ht("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Ht("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),Ht("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),Ht("outline","\uC544\uC6C3\uB77C\uC778","dark"),Ht("success","\uC131\uACF5/\uC644\uB8CC","light"),Ht("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),Ht("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],Ji={main:Ai,soft:Ni,sub:Di,deep:ji,softSub:Mi,warm:$i,dark:Pi,radial:Fi,diagonal:Hi,dots:Vi,outline:qi,success:Gi,naver:Yi,instagram:Xi};function Qi({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:i=1.4}={}){const l=x=>Math.max(a,Math.min(r,Number(x))),c=x=>{try{const y=localStorage.getItem(x),k=y?Number(y):1;return Number.isFinite(k)?l(k):l(1)}catch{return l(1)}},[d,u]=o.useState(()=>c(e)),[p,m]=o.useState(e);p!==e&&(m(e),u(c(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(d))}catch{}},[e,d]);const h=x=>{u(typeof x=="function"?y=>l(x(y)):l(x))},b=()=>h(x=>+(x+s).toFixed(6)),v=()=>h(x=>+(x-s).toFixed(6)),C=d<r-Number.EPSILON,w=d>a+Number.EPSILON,f=Math.round(t*d),g=Math.round(f*i);return{scale:d,setScale:h,increase:b,decrease:v,canIncrease:C,canDecrease:w,fontSize:f,lineHeight:g}}function el(e,t){const a=ga(t);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const Gr=" \xB7 ",tl=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Gr)?e.split(Gr).pop()??e:e})(),zg=o.createContext(!1),On=[];let nl=null;function Vg(e){const t=o.useContext(zg);o.useEffect(()=>{if(t||typeof e!="string"||!e)return;On.length===0&&(nl=document.title);const a={text:tl?`${e}${Gr}${tl}`:e};return On.push(a),document.title=a.text,()=>{const r=On.lastIndexOf(a);r>=0&&On.splice(r,1),document.title=On.length?On[On.length-1].text:nl??document.title}},[e,t])}const al=[{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"}],Wg=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function Qn(e,t){return Wg().compare(e,t)}const qa=new Map;function qg(e){const t=qa.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,c=i[0];c[0]==="-"&&l>0&&!/\s/.test(e[l-1])&&(l+=1,c=c.slice(1)),l>s&&a.push(e.slice(s,l)),a.push(Number(c)),s=i.index+i[0].length}return s<e.length&&a.push(e.slice(s)),qa.size>5e3&&qa.clear(),qa.set(e,a),a}function Ug(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 Gg(e,t){const a=u=>u==null||typeof u=="number"&&Number.isNaN(u)?"":String(u).trim(),r=a(e),s=a(t);if(r===s)return 0;const i=(u,p)=>{if(typeof u=="number"&&!Number.isNaN(u))return[u];const m=Ug(p);return m!==null?[m]:qg(p)},l=i(e,r),c=i(t,s),d=Math.min(l.length,c.length);for(let u=0;u<d;u++){const p=l[u],m=c[u];if(typeof p=="number"&&typeof m=="number"){if(p!==m)return p-m;continue}if(typeof p=="number")return-1;if(typeof m=="number")return 1;const h=Qn(p,m);if(h!==0)return h}return l.length!==c.length?l.length-c.length:Qn(r,s)}const rl=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function Kr(e,t,a){const r=rl(e),s=rl(t);if(r||s)return r===s?0:r?1:-1;const i=Gg(e,t);return a?i:-i}function Kg(e,t,a){const{t:r}=ge.useTranslation(),[s,i]=o.useState(()=>{const v=a?.initialPageSize;return v&&al.some(C=>C.value===v)?v:"25"}),[l,c]=o.useState(1),[d,u]=o.useState(t);Object.is(d,t)||(u(t),l!==1&&c(1));const p=o.useMemo(()=>al.map(v=>({...v,label:r("visits.showN",{n:v.value})})),[r]),m=o.useCallback(v=>{i(v),c(1)},[]),h=Math.max(1,Math.ceil(e.length/Number(s)));(l>h||l<1||!Number.isFinite(l))&&c(Math.min(Math.max(1,Number.isFinite(l)?l:1),h));const b=Math.min(Math.max(1,Number.isFinite(l)?l:1),h);return{pageRows:o.useMemo(()=>e.slice((b-1)*Number(s),b*Number(s)),[e,b,s]),pageSizeProps:{options:p,value:s,onChange:m},paginationProps:{page:b,total:h,onChange:c},setPage:c}}function Yg(e){const[t,a]=o.useState(null),r=o.useRef(t),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const i=o.useCallback(d=>{const u=r.current,p=u?.key===d?{key:d,asc:!u.asc}:{key:d,asc:!0};r.current=p,a(p),s.current?.(p)},[]),l=o.useCallback((d,u)=>({label:d,sortDir:t?.key===u?t.asc?"asc":"desc":null,onClick:()=>i(u)}),[t,i]),c=o.useCallback((d,u)=>{if(!t)return d;const{key:p,asc:m}=t;return[...d].sort((h,b)=>Kr(u(h,p),u(b,p),m))},[t]);return{\uC815\uB82C:t,\uCE78:l,sortRows:c}}const sn="\uC804\uCCB4",Zg=new Map;try{St.store?.on?.("added",()=>Zg.clear())}catch{}Object.fromEntries(Object.entries(l2).map(([e,{nucleus:t}])=>[e,t]));const Xg={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"})},Jg={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"})},Qg={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 eb(e,t){if("place"in t)return Xg[t.place](e);const a=Jg[t.vowel](e);return t.glide?`${a} \xB7 ${Qg[t.glide](e)}`:a}const tb=(e,{defaultValue:t})=>t,ol=(e,t)=>({jamos:e,phonetic:t,tooltip:eb(tb,t)}),yn=(e,t)=>t.map(a=>ol([a],{place:e})),Dt=(e,t,a)=>ol([...e],a?{vowel:t,glide:a}:{vowel:t}),Yr={cho:[yn("labial",["\u3142","\u3143","\u314D","\u3141"]),yn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),yn("alveolar",["\u3145","\u3146"]),yn("palatal",["\u3148","\u3149","\u314A"]),yn("velar",["\u3131","\u3132","\u314B"]),yn("glottal",["\u314E"])],jung:[[Dt("\u3163","frontHigh"),Dt("\u315F","frontHigh","w"),Dt("\u3162","frontHigh","velar")],[Dt("\u3161","backHighUnrounded")],[Dt("\u315C","backHighRounded"),Dt("\u3160","backHighRounded","j")],[Dt("\u3154\u3150","frontMid"),Dt("\u3156\u3152","frontMid","j"),Dt("\u3159\u315A\u315E","frontMid","w")],[Dt("\u3153","backMidUnrounded"),Dt("\u3155","backMidUnrounded","j"),Dt("\u315D","backMidUnrounded","w")],[Dt("\u3157","backMidRounded"),Dt("\u315B","backMidRounded","j")],[Dt("\u314F","low"),Dt("\u3151","low","j"),Dt("\u3158","low","w")]],jong:[yn("labial",["\u3142","\u3141"]),yn("alveolar",["\u3137","\u3134","\u3139"]),yn("velar",["\u3131","\u3147"])]},nb=e=>e===ab?[]:Array.from(e),ab="__NO_CODA__",Zr=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),sl={cho:Zr(Yr.cho),jung:Zr(Yr.jung),jong:Zr(Yr.jong)};sl.jung.flat().forEach(({v:e})=>{for(const t of nb(e));}),new Set(sl.cho.flat().map(e=>e.v));function rb(e,t=!0){const a=ga(e);o.useEffect(()=>{if(t)return In(()=>{a.current?.()})},[t,a])}function ya(){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(c=>c?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function ob(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((d,u)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(d),s(u)},e)},[e]),c=o.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),s(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:l,close:c}}function il(e="warning"){const[t,a]=o.useState(""),[r,s]=o.useState(e),[i,l]=o.useState(0),c=o.useCallback((m,h)=>{s(h),a(m),l(b=>b+1)},[]),d=o.useCallback(m=>c(m,"warning"),[c]),u=o.useCallback(m=>c(m,"normal"),[c]),p=o.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:c,showWarning:d,showNormal:u,clearToast:p}}function va(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 xa({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,i]=o.useState(!1),[l,c]=o.useState({}),d=o.useRef(null),u=o.useRef(null),p=o.useCallback(()=>{d.current&&c(e(d.current.getBoundingClientRect(),d.current))},[e]);o.useEffect(()=>{if(!s)return;p();const b=g=>{const x=g.target;r&&x.closest?.(r)||d.current?.contains(x)||u.current?.contains(x)||i(!1)};document.addEventListener("mousedown",b),document.addEventListener("pointerdown",b);const v=g=>{u.current?.contains(g.target)||(t==="reposition"?p():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",v,!0);const C=()=>{a==="reposition"?p():a==="close"&&i(!1)};let w=null;const f=()=>{C(),w&&clearTimeout(w),w=setTimeout(()=>{w=null,a==="reposition"&&p()},250)};return a!=="ignore"&&(window.addEventListener("resize",C),window.addEventListener("orientationchange",f)),()=>{document.removeEventListener("mousedown",b),document.removeEventListener("pointerdown",b),t!=="ignore"&&window.removeEventListener("scroll",v,!0),a!=="ignore"&&(window.removeEventListener("resize",C),window.removeEventListener("orientationchange",f)),w&&clearTimeout(w)}},[s,p,t,a,r]),o.useEffect(()=>{if(s)return In(()=>i(!1))},[s]);const m=o.useCallback(()=>i(b=>!b),[]),h=o.useCallback(()=>i(!1),[]);return{open:s,setOpen:i,toggle:m,close:h,style:l,triggerRef:d,menuRef:u}}function sb(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:i=1100,feedbackMs:l=1500}={}){const[c,d]=o.useState([]),[u,p]=o.useState(0),[m,h]=o.useState("idle"),[b,v]=o.useState(null),[C,w]=o.useState([]),[f,g]=o.useState(null),[x,y]=o.useState(0),k=o.useRef(0),_=o.useCallback(J=>{k.current=typeof J=="function"?J(k.current):J,y(k.current)},[]),B=o.useRef(r),N=o.useRef(s);o.useEffect(()=>{B.current=r,N.current=s},[r,s]);const A=o.useRef([]),S=()=>{A.current.forEach(clearTimeout),A.current=[]},O=(J,$)=>{A.current.push(setTimeout($,J))};o.useEffect(()=>()=>S(),[]);const H=c[u]?.id??null,j=o.useRef(null),q=o.useCallback(()=>{S(),h("playing"),w([]),g(null),_(0);let J=0;e.forEach(($,D)=>{O(J,()=>{p(D),v($.id),B.current?.($)}),O(J+1e3,()=>{v(null),w(F=>[...F,$.id])}),J+=1300}),O(J,()=>{h("done"),N.current?.({score:0,total:e.length})})},[e,_]),E=o.useCallback((J,$)=>{if($>=J.length){h("done"),N.current?.({score:k.current,total:J.length});return}j.current=null,p($),g(null),h("playing"),v(J[$].id),B.current?.(J[$]),O(i,()=>{v(null),h("waiting")})},[i]),M=o.useCallback(()=>{S();const J=fa(e);d(J),_(0),w([]),E(J,0)},[e,E,_]),I=o.useCallback(()=>{t==="playback"?(d(e),q()):M()},[t,e,q,M]),G=o.useCallback(()=>{S(),h("idle"),v(null),w([]),g(null),p(0),_(0),d([])},[_]),Z=e.map(J=>J.id).join("|");o.useEffect(()=>(a?I():G(),()=>S()),[t,Z,a]);const Y=o.useCallback(J=>{m!=="waiting"||t==="playback"||j.current===u||(j.current=u,g(J),J===c[u]?.id&&_($=>$+1),t==="exam"?(h("playing"),O(400,()=>E(c,u+1))):(h("feedback"),O(l,()=>E(c,u+1))))},[m,t,c,u,E,l,_]),z=t==="playback"?e.length:c.length;return{bind:{activeSpeakerId:b,playedIds:C,selectedId:f,answerId:H,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:Y},index:u,total:z,score:x,phase:m,done:m==="done",start:I,reset:G}}function ib({title:e,description:t,actionLabel:a,onAction:r,bg:s,color:i,size:l="medium",actionVariant:c,titleColor:d,descriptionColor:u,className:p=""}){const m=s??i??"main",h=o.useRef(null),[b,v]=o.useState("main"),C=Yt("(max-width: 767px)"),w=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const x=h.current;if(!x)return;const y=Ur(x),k=(_,B,N)=>{if(N!==void 0)x.style.setProperty(B,N),w.current[_]=!0;else if(w.current[_]){const A=y?.[_];A?x.style.setProperty(B,A):x.style.removeProperty(B),w.current[_]=!1}};k("title","--promo-banner-bg-title",d),k("description","--promo-banner-bg-description",u)},[d,u,m]),o.useLayoutEffect(()=>{const x=h.current;if(!x)return;const y=Ur(x);v(y?.actionVariant??"main")},[m]);const f=De("promo-banner",`promo-banner--${l}`,p),g=Ji[m];return n.jsxs("div",{ref:h,className:f,role:"note",children:[n.jsx(g,{}),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(le,{htmlType:"button",size:40,variant:c??b,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...C?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function lb({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":s}){const{t:i}=ge.useTranslation(),l=s??i("topBanner.ariaLabel","\uBC30\uB108"),c=o.Children.toArray(e),d=c.length,[u,p]=o.useState(0),[m,h]=o.useState(!1),[b,v]=o.useState(!1),[C,w]=o.useState(!1),f=o.useRef(null),g=o.useRef(null),x=o.useRef(null),y=Hr(),k=m||b||C,_=d>0?Math.min(u,d-1):0;o.useEffect(()=>{if(d<2||t<=0||k||y)return;const N=window.setInterval(()=>p(A=>(Math.min(A,d-1)+1)%d),t);return()=>window.clearInterval(N)},[d,t,k,y]);const B=N=>{g.current!=null&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{g.current=null,w(!1)},N)};return o.useEffect(()=>()=>{g.current!=null&&window.clearTimeout(g.current)},[]),o.useEffect(()=>{if(!C)return;const N=A=>{A.pointerType==="touch"&&(x.current&&x.current.contains(A.target)||(g.current!=null&&(window.clearTimeout(g.current),g.current=null),w(!1)))};return document.addEventListener("pointerdown",N,!0),()=>document.removeEventListener("pointerdown",N,!0)},[C]),d===0?null:n.jsxs("section",{ref:x,className:De("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onPointerEnter:N=>{f.current=N.pointerType},onPointerDown:N=>{f.current=N.pointerType,N.pointerType==="touch"&&(g.current!=null&&(window.clearTimeout(g.current),g.current=null),w(!0))},onPointerUp:N=>{N.pointerType==="touch"&&B(5e3)},onPointerCancel:N=>{N.pointerType==="touch"&&B(5e3)},onMouseEnter:()=>{f.current!=="touch"&&h(!0)},onMouseLeave:()=>h(!1),onFocus:N=>{let A=!0;try{A=N.target.matches(":focus-visible")}catch{A=!0}v(A)},onBlur:N=>{N.currentTarget.contains(N.relatedTarget)||v(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${_*100}%)`},children:c.map((N,A)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":A!==_,...A!==_?{inert:!0}:{},children:N},A))})}),d>1&&n.jsx("div",{className:`top-banner__dots${(a?.[_]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((N,A)=>n.jsx("button",{type:"button",className:`top-banner__dot${A===_?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:d,index:A+1,defaultValue:`${d}\uAC1C \uC911 ${A+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":A===_,onClick:()=>p(A)},A))})]})}function cb({title:e,body:t,open:a=!1,onToggle:r,avatar:s,titleClassName:i="body-2",bodyClassName:l="body-2",className:c=""}){const{t:d}=ge.useTranslation();return n.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.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:u=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),r?.();else if(u.key==="ArrowDown"||u.key==="ArrowUp"){u.preventDefault();const p=u.currentTarget.closest('[role="list"]');if(!p)return;const m=Array.from(p.querySelectorAll("[data-accordion-header]")),h=m.indexOf(u.currentTarget);(u.key==="ArrowDown"?m[h+1]:m[h-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(Ke,{icon:a?"chevron-up":"chevron-down",label:a?d("accordion.collapse","\uC811\uAE30"):d("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 ub({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:s}){const[i,l]=o.useState({index:t}),c=(d,u)=>i.id!=null&&d.id!=null?d.id===i.id:i.id==null&&u===i.index;return n.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((d,u)=>n.jsx(cb,{title:d.title,body:d.body,avatar:d.avatar,open:c(d,u),onToggle:()=>l(c(d,u)?{index:-1}:{index:u,id:d.id}),bodyClassName:s},d.id??u))})}function db(){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 pb(){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 mb(){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 ht(e){const{t}=ge.useTranslation(),{type:a="bar",size:r,className:s="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:k,number:_,position:B="top-right",onClick:N,animate:A=!1}=e,S=k??"check",O=_!==void 0?"number":S,H=typeof r=="number"?r:32,j=De("circle-badge",`circle-badge--${O}`,`circle-badge--${B}`,`circle-badge--${H}`,A?"circle-badge--animate":"",N?"circle-badge--clickable":"",s),q=_!==void 0?t("badge.nthSelected",{n:_,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:j,onClick:N,onKeyDown:N?E=>{E.key!=="Enter"&&E.key!==" "||(E.preventDefault(),E.currentTarget.click())}:void 0,"aria-label":l?void 0:i??q,"aria-hidden":l||void 0,role:N?"button":l?void 0:"img",tabIndex:N?0:void 0,children:[_!==void 0&&_,_===void 0&&S==="check"&&n.jsx(db,{}),_===void 0&&S==="remove"&&n.jsx(pb,{}),_===void 0&&S==="minus"&&n.jsx(mb,{})]})}const{label:c,children:d,variant:u="default",fill:p="filled",minWidth:m,iconLeft:h,iconRight:b,color:v}=e,C=typeof r=="number"?"medium":r??"medium",w={small:"caption-2b",medium:"body-3b",large:"body-2b"}[C]??"body-2b",f={small:12,medium:14,large:16}[C]??14,g=De("badge",`badge--${u}`,`badge--${C}`,p!=="filled"?`badge--${p}`:"",w,s),x=v?.startsWith("--")?`var(${v})`:v,y=m!==void 0||x?{...m!==void 0?{minWidth:typeof m=="number"?`${m}px`:m}:{},...x?{"--badge-color":x}:{}}:void 0;return n.jsxs("span",{className:g,style:y,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[h&&n.jsx(Ke,{icon:h,size:f,className:"badge__icon"}),c??d,b&&n.jsx(Ke,{icon:b,size:f,className:"badge__icon"})]})}function _a({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:s}=ge.useTranslation(),i=r==="small"?40:48,[l,c]=o.useState([]),d=o.useMemo(()=>{const w=[{title:null,columns:e}];let f=e;for(const g of l){const x=f?.[g.ci]?.items?.[g.ii];if(!x||!Array.isArray(x.children)||!x.children.length)break;f=[{title:null,items:x.children}],w.push({title:x.label||null,columns:f})}return w},[e,l]),u=d[d.length-1],p=d.length-1,m=o.useCallback(()=>c(w=>w.slice(0,Math.max(0,Math.min(w.length,p)-1))),[p]),h=o.useRef(null),b=o.useRef(null),v=d.length;o.useEffect(()=>{b.current||(b.current=document.activeElement);let w=0,f=0;const g=()=>{const x=h.current?.querySelector("button:not([disabled])");if(x&&x.offsetParent){x.focus({preventScroll:!0});return}f++<20&&(w=requestAnimationFrame(g))};return w=requestAnimationFrame(g),()=>cancelAnimationFrame(w)},[v]),o.useEffect(()=>()=>{b.current?.focus?.({preventScroll:!0})},[]);const C=o.useCallback((w,f,g)=>{if(w){if(Array.isArray(w.children)&&w.children.length){c(x=>[...x.slice(0,p),{ci:f,ii:g}]);return}try{typeof w.onClick=="function"&&w.onClick()}catch{}try{w&&w.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t,p]);return n.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(d.length>1||u.title)&&n.jsxs("div",{className:"tooltip-menu__header",children:[d.length>1?n.jsx(le,{htmlType:"button",size:i,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:m,variant:"transparent-gray",useBorder:!1}):null,n.jsx("div",{className:"tooltip-menu__title button-1",children:u.title})]}),n.jsx("div",{className:"tooltip-menu__columns",ref:h,children:u.columns&&u.columns.map((w,f)=>n.jsxs("div",{className:"tooltip-menu__column",children:[w.title?n.jsx("div",{className:"tooltip-menu__column-title body-3",children:w.title}):null,n.jsx("div",{className:"tooltip-menu__items",children:(w.items||[]).map((g,x)=>n.jsxs(o.Fragment,{children:[g.separatorBefore&&x>0&&n.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),n.jsx(le,{htmlType:"button",className:"tooltip-menu__item",size:i,type:g.label?"bar":"dot",icon:g.selected?"check":g.icon||"none",rightIcon:Array.isArray(g.children)&&g.children.length?"chevron-right":g.badgeCount?n.jsx(ht,{type:"dot",position:"inline",number:Math.min(g.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:g.label,ariaLabel:g.label&&g.badgeCount&&g.badgeCount>0?s("nav.badgeLabel",{label:g.label,count:g.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):g.label,onClick:()=>C(g,f,x),selected:g.selected,disabled:g.disabled,showTooltipInfo:g.tooltip||!1,useBorder:!1,align:"left"})]},x))})]},f))})]})}const ll=".content-area";function Xr(e,t="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(ll);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&Cn("nav-scroll-container",`[${t}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${ll}) \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 Jr=52,Ua=10,cl=e=>e&&e>0?e:0;function ul({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:s,moreItems:i=[],scrollContainer:l}){const{t:c}=ge.useTranslation(),d=r==="manager"?"malgwi":"manager",u=r==="manager"?"arrow-left":"arrow-right",p=r==="manager"?c("nav.modeLabelMalgwi","\uB9D0\uADC0"):c("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),m=o.useRef(null),[h,b]=o.useState(0),v=e.length;o.useEffect(()=>{const z=m.current;if(!z)return;const J=()=>{const D=typeof getComputedStyle=="function"?getComputedStyle(z):null,F=z.clientWidth-(parseFloat(D?.paddingLeft??"")||0)-(parseFloat(D?.paddingRight??"")||0),P=z.querySelector(".bottom-nav__left"),R=P?.nextElementSibling,L=(P?.offsetWidth??0)+(P&&R?.classList.contains("bottom-nav__divider")?R.offsetWidth:0);b(Math.max(0,F-L))};if(J(),typeof ResizeObserver>"u")return;const $=new ResizeObserver(J);return $.observe(z),()=>$.disconnect()},[]);const C=Jr+1,w=z=>Math.max(0,Math.floor((z+Ua)/(Jr+Ua))),f=v*(Jr+Ua)-Ua<=h,g=h<=0||i.length===0&&f?v:Math.min(v,w(h-C)),x=h>0&&g<v,y=x?g:v,k=e.slice(0,y),_=e.slice(y),B=x||i.length>0,N=o.useCallback((z,J)=>({position:"fixed",bottom:window.innerHeight-z.top+8,right:window.innerWidth-z.right,zIndex:va(J)}),[]),A=o.useId(),{open:S,toggle:O,close:H,style:j,triggerRef:q,menuRef:E}=xa({computeStyle:N,onScroll:"ignore",onResize:"reposition"}),M=o.useCallback((z,J)=>J>0?c("nav.badgeLabel",{label:z,count:J,defaultValue:"{{label}}, {{count}}\uAC1C"}):z,[c]),I=o.useCallback(()=>s?.(d),[s,d]),G=o.useMemo(()=>_.find(z=>!!z.key&&z.key===t)??i.find(z=>z.selected||z.key&&z.key===t),[_,t,i]),Z=o.useMemo(()=>[{items:[..._.map(z=>({label:z.label,icon:z.icon,badgeCount:z.badgeCount,selected:!!z.key&&z.key===t,closeOnSelect:!0,disabled:z.state==="disabled",onClick:()=>{z.state!=="disabled"&&(z.key&&a&&(a(z.key),Xr(l,"BottomNav")),H())}})),...i.map(z=>({label:z.label,icon:z.icon,badgeCount:z.badgeCount,selected:z.selected??(!!z.key&&z.key===t),closeOnSelect:!0,onClick:()=>{z.onClick?.(),H()}}))]}],[_,i,t,a,H]),Y=[..._,...i].reduce((z,J)=>z+cl(J.badgeCount),0);return n.jsxs("nav",{className:"bottom-nav",ref:m,"aria-label":c("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(le,{htmlType:"button",size:52,type:"dot",icon:u,ariaLabel:p,className:"bottom-nav-item",onClick:I})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",children:k.map((z,J)=>{const $=cl(z.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(le,{htmlType:"button",size:52,type:"dot",icon:z.icon,ariaLabel:M(z.label,$),selected:!!z.key&&z.key===t,disabled:z.state==="disabled",className:"bottom-nav-item",onClick:()=>{z.key&&(a?.(z.key),Xr(l,"BottomNav"))}}),$>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(ht,{type:"dot",position:"top-right",number:Math.min($,99),size:24})})]},z.key??`__slot-${J}`)})}),B&&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:q,className:"bottom-nav__slot",children:[n.jsx(le,{htmlType:"button",size:52,type:"dot",icon:G?.icon??"ellipsis",ariaLabel:M(G?.label??c("nav.more","\uB354\uBCF4\uAE30"),Y),selected:!!G,className:"bottom-nav-item",onClick:O,"aria-expanded":S,"aria-controls":S?A:void 0}),Y>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(ht,{type:"dot",position:"top-right",number:Math.min(Y,99),size:24})}),S&&Ut.createPortal(n.jsx("div",{id:A,role:"group","aria-label":c("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:j,ref:E,children:n.jsx(_a,{columns:Z,onClose:H})}),document.body)]})})]})]})}function dl(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 pl(e,t,a){return a&&a>0?e("nav.badgeLabel",{label:t,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):t}function hb(e){const{t}=ge.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:i,onSetting:l,onHelp:c,onFeedback:d,onAccount:u}=e||{},p="default";return s||i||l||c||d||u?n.jsxs("div",{className:"side-nav__footer",children:[s&&n.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,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(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"bell",ariaLabel:pl(t,t("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&n.jsx(ht,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&n.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),c&&n.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),d&&n.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"bug",ariaLabel:t("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:d,selected:a==="feedback"}),u&&n.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:u,selected:a==="account"})]}):null}function ml(e){const{t}=ge.useTranslation(),{item:a,itemKey:r,label:s,icon:i,active:l,onClick:c,style:d,state:u,labelStyle:p}=e||{},m=a?.key??r??"",h=a?.label??s??"",b=a?.icon??i??"",v=a?.badge??0,C=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(Ke,{icon:b,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),w=u==="disabled",f=`side-nav__item ${l?"active":""} ${u||""} ${w?"disabled":""} ${a?.child?"side-nav__item--child":""}`,g=o.useCallback(x=>{if(w)return;const y=x.detail>0;if(y)try{x.currentTarget.blur()}catch{}c?.(m,x.currentTarget,y)},[w,m,c]);return n.jsxs("button",{type:"button",className:f,onClick:g,"aria-label":typeof h=="string"?pl(t,h,v):void 0,"aria-current":l?"page":void 0,style:d,"aria-disabled":w,children:[C,n.jsx("span",{className:"side-nav__label button-1 f",style:p,children:h}),v>0&&n.jsx(ht,{type:"dot",position:"inline",number:Math.min(v,99),size:24,"aria-hidden":!0}),u==="loading"&&n.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":t("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function hl(e){const{t}=ge.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:i,onDebug:l,onNotification:c,onAccount:d,onSetting:u,onHelp:p,onFeedback:m,appMode:h,onAppModeChange:b,scrollContainer:v}=e||{},C=h==="manager",w=o.useCallback(()=>b?.(C?"malgwi":"manager"),[b,C]);return n.jsxs("nav",{"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[n.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(f=>!f.section&&(f.key||f.label)).map((f,g)=>n.jsxs(o.Fragment,{children:[f.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(ml,{item:f,active:!!f.key&&f.key===r,state:f.disabled?"disabled":void 0,onClick:(x,y,k)=>{if(f.disabled)return;if(f.href){if(dl(f.href)&&window.open(f.href,"_blank","noopener,noreferrer"),k)try{y?.blur()}catch{}return}if(s?.(f.key),Xr(v,"SideNav"),!k)return;try{y?.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 B=typeof _.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&B&&_.matches(":hover"))){_.classList.add("header--force-collapsed");const N=()=>{_.classList.remove("header--force-collapsed"),_.removeEventListener("mouseenter",N)};_.addEventListener("mouseenter",N)}}}})]},f.key??`side-nav__item-${g}`)),b&&n.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),b&&n.jsx(ml,{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:w})]}),n.jsx(hb,{activeKey:r,unreadCount:i,onDebug:l,onNotification:c,onAccount:d,onSetting:u,onHelp:p,onFeedback:m})]})}var Qr='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',eo='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',fb='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 fl({appMode:e}){const{t}=ge.useTranslation(),a=e==="manager",r=a?eo:Qr,s=fb,i=Yt("(min-width: 768px) and (max-width: 1023px)");return n.jsx("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:i?n.jsx("img",{src:s,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):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"})})}function Cl({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:s,unreadCount:i,onDebug:l,onNotification:c,onAccount:d,onSetting:u,onHelp:p,onFeedback:m,appMode:h,onAppModeChange:b,scrollContainer:v}){const{t:C}=ge.useTranslation(),w=Yt("(max-width: 767px)"),f=o.useMemo(()=>(a??[]).filter(j=>!j.section&&(j.key||j.label)).map(j=>({key:j.key,label:typeof j.label=="string"?j.label:void 0,icon:j.icon,state:j.disabled?"disabled":void 0,badgeCount:j.badge})),[a]),g=o.useCallback(j=>{const q=a?.find(E=>E.key===j);if(!q?.disabled){if(q?.href){dl(q.href)&&window.open(q.href,"_blank","noopener,noreferrer");return}t?.(j)}},[a,t]),x=o.useMemo(()=>{const j=[];return l&&j.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&j.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),u&&j.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:u}),p&&j.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),m&&j.push({key:"feedback",icon:"bug",label:C("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:m}),d&&j.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:d}),j},[C,l,c,u,p,m,d,i]),y=o.useCallback((j,q)=>({position:"fixed",top:j.bottom+8,right:Math.max(8,window.innerWidth-j.right),zIndex:va(q)}),[]),k=o.useId(),{open:_,toggle:B,close:N,style:A,triggerRef:S,menuRef:O}=xa({computeStyle:y,onScroll:"ignore",onResize:"reposition"}),H=o.useMemo(()=>[{items:x.map(j=>({label:j.label,icon:j.icon,badgeCount:j.badgeCount,selected:j.selected??(!!j.key&&j.key===e),closeOnSelect:!0,onClick:()=>{j.onClick?.(),N()}}))}],[x,e,N]);return n.jsxs("aside",{className:`header${h==="manager"?" header--manager":""}`,children:[n.jsxs("div",{className:"header__bi",children:[n.jsx(fl,{appMode:h}),n.jsxs("div",{className:"header__menu-button",ref:S,children:[n.jsx(le,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:c&&i&&i>0?C("nav.badgeLabel",{label:C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:i,defaultValue:"{{label}}, {{count}}\uAC1C"}):C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:B,"aria-expanded":_,"aria-controls":_?k:void 0}),!!c&&!!i&&i>0&&n.jsx(ht,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),_&&Ut.createPortal(n.jsx("div",{id:k,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:A,ref:O,children:n.jsx(_a,{columns:H,onClose:N})}),document.body)]})]}),n.jsx(hl,{scrollContainer:v,items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:l,onNotification:c,onAccount:d,onSetting:u,onHelp:p,onFeedback:m,appMode:h,onAppModeChange:b}),w&&n.jsx(ul,{items:f,activeKey:e??void 0,onChange:g,scrollContainer:v,appMode:h,onAppModeChange:b})]})}const Cb=Cl,gb=()=>St.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function gl(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 Yn(`${t.toLocaleString("ko-KR")}\uC6D0`)}return Yn(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function bb(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function yb(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||gb()}function vb(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??bb(e),plan:yb(e),label:e.label,price:gl(e.price),originalPrice:gl(e.originalPrice),discountLabel:e.discountLabel}}var xb='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',_b='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>',wb='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',kb='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',Ab='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>',Bb='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',yl='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 Hn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},to=new WeakMap;function Nb(e){if(e)return to.get(e)}function vn(e,t){e&&(e.style.setProperty(Hn.text,t.text),e.style.setProperty(Hn.sub,t.sub),t.copyrightColor&&e.style.setProperty(Hn.copyright,t.copyrightColor),to.set(e,t))}function xn(e){e&&(e.style.removeProperty(Hn.text),e.style.removeProperty(Hn.sub),e.style.removeProperty(Hn.copyright),to.delete(e))}const vl={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function xl(e={}){const t=mt(vl,vn,xn);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("${yl}")`}})]})}const _l="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 wa='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 Sb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},Db=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function wl(e={}){const t=mt(Sb,vn,xn),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:Db.map(({scale:i,opacity:l},c)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:n.jsx("path",{d:_l,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${wa}")`}})]})}const Eb={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},jb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Tb(e={}){const t=mt(Eb,vn,xn),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:jb.map(({scale:i,opacity:l},c)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:n.jsx("path",{d:_l,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${yl}")`}})]})}const Mb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Lb(e={}){const t=mt(Mb,vn,xn);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("${wa}")`}})]})}const $b={Logo_speechear_kr:{"":Qr,_white:xb,_textWhite:_b,_black:wb},Logo_speechearManager_kr:{"":eo,_white:kb,_textWhite:Ab,_black:Bb}};function Rb(e,t){if(e)return $b[e]?.[t??""]??void 0}const Pb={speechear:Qr,manager:eo},Ib={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},kl=10;function Al(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 Fb(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===St.t("passCard.specialLabel");return r?n.jsx(Lb,{}):s?n.jsx(Tb,{}):n.jsx(wl,{})}return n.jsx(xl,{})}function Bl({product:e,showPrice:t=!1,plan:a,type:r,endDate:s,remainingSeconds:i,endInclusive:l=!1,state:c="active",bg:d,bgOnly:u=!1,textColor:p,subColor:m,copyrightColor:h,logoSrc:b,label:v,price:C,originalPrice:w,discountLabel:f,onUse:g,onRefund:x,onDelete:y}){const{t:k}=ge.useTranslation(),_=e?bl(e):void 0,B=r??_?.type??"speechear",N=a??_?.plan??k("passCard.planSuffix","\uC774\uC6A9\uAD8C"),A=v??_?.label,S=C??(t?_?.price:void 0),O=w??(t?_?.originalPrice:void 0),H=f??_?.discountLabel,j=o.useMemo(()=>{if(S)return null;const se=e?.durationDays??vb(e?.code);if(!se||se<=0)return i!=null?{percent:null,remainingLabel:Al(i,k)}:null;const W=se*86400;let re;if(i!=null)re=i;else if((c==="active"||c==="expired")&&s){const ve=new Date(s).getTime();if(Number.isNaN(ve))return null;const Ce=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(s)),Ae=/^(\d{4})-(\d{2})-(\d{2})/.exec(Ca()),he=Math.round(Ce&&Ae?(Date.UTC(+Ce[1],+Ce[2]-1,+Ce[3])-Date.UTC(+Ae[1],+Ae[2]-1,+Ae[3]))/864e5:(ve-Date.now())/864e5);re=Math.max(0,l?he+1:he)*86400}else c==="expired"?re=0:re=W;const pe=Math.max(0,Math.min(100,Math.floor(Math.min(re,W)/W*100)));return c==="pending"&&pe>=100?null:{percent:pe,remainingLabel:Al(re,k)}},[S,c,s,i,l,e?.durationDays,e?.code,k]),q=o.useRef(null),[E,M]=o.useState({}),[I,G]=o.useState(null),Z=!!(g||x||y),Y=o.useRef(!1),z=o.useRef(void 0),[J,$]=o.useState(b);o.useLayoutEffect(()=>{$(b)},[b]),o.useLayoutEffect(()=>{const se=q.current;se&&(p!==void 0&&se.style.setProperty("--pass-card-text",p),m!==void 0&&se.style.setProperty("--pass-card-sub",m),h!==void 0&&se.style.setProperty("--pass-card-copyright",h))},[p,m,h]),o.useLayoutEffect(()=>{const se=q.current;if(!se)return;const W=Nb(se);if(!b){const re=Ib[B],pe=c==="expired"?"_black":W?.logoColor??"",ve=Rb(re,pe);$(ve)}},[d,b,B,c]);const D=se=>{const W=q.current;if(!W)return null;const{left:re,top:pe,width:ve,height:Ce}=W.getBoundingClientRect(),Ae=(se.clientX-re)/ve-.5;return{rotateX:-((se.clientY-pe)/Ce-.5)*kl,rotateY:Ae*kl}},F=(se,W)=>{const re=W*-.7,pe=se*.7+10,ve=20+(Math.abs(se)+Math.abs(W))*.4;return`${re}px ${pe}px ${ve}px rgba(0, 0, 0, 0.18)`},P=o.useCallback(se=>{if(Jn())return;Y.current=!0,clearTimeout(z.current),z.current=setTimeout(()=>{Y.current=!1},200);const W=D(se);W&&M({transform:`perspective(800px) rotateX(${W.rotateX}deg) rotateY(${W.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:F(W.rotateX,W.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)"})},[]),R=o.useCallback(se=>{if(Jn())return;const W=D(se);if(!W)return;const re=Y.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";M({transform:`perspective(800px) rotateX(${W.rotateX}deg) rotateY(${W.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:F(W.rotateX,W.rotateY),transition:re})},[]),L=o.useCallback(()=>{clearTimeout(z.current),Y.current=!1,M({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)"})},[]),K=o.useCallback(()=>G(null),[]),U=o.useMemo(()=>{const se=k("passCard.planSuffix","\uC774\uC6A9\uAD8C"),W=N.replace("\uC774\uC6A9\uAD8C","").replace(se==="\uC774\uC6A9\uAD8C"?"":se,"").trim(),re=W.match(/^(.*?)(일|년)$/);return re?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"h0 pass-card__plan-number",children:re[1]}),n.jsx("span",{className:"h5b pass-card__plan-unit",children:re[2]==="\uB144"?k("passCard.unitYear","\uB144"):k("passCard.unitDay","\uC77C")})]}):n.jsx("span",{className:"h0",children:W})},[N,k]),ee=o.useMemo(()=>{const se=Yn(S);if(!se)return null;const W=se.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!W)return n.jsx("span",{className:"h1",children:se});const[,re,pe,ve]=W;return n.jsxs(n.Fragment,{children:[re&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:re}),n.jsx("span",{className:"h1 pass-card__price-amount",children:pe}),ve.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:ve.trim()})]})},[S]),ae=o.useCallback(()=>{Z&&G(se=>{if(se)return null;const W=q.current?.getBoundingClientRect();if(!W)return null;const re=50;return{left:W.left,right:W.right,width:W.width,height:W.height,x:W.x,y:W.y+re,top:W.top+re,bottom:W.bottom+re}})},[Z]),Be=o.useCallback(se=>{Z&&(se.key==="Enter"||se.key===" ")&&(se.preventDefault(),ae())},[Z,ae]),ie=[{items:[...g?[{label:k("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{g(),G(null)},closeOnSelect:!0}]:[],...x?[{label:k("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{x(),G(null)},closeOnSelect:!0}]:[],...y?[{label:k("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{y(),G(null)},closeOnSelect:!0}]:[]]}];return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card-frame",children:n.jsxs("div",{ref:q,className:`pass-card pass-card--${c}${Z?" pass-card--clickable":""}`,style:E,onMouseEnter:P,onMouseMove:R,onMouseLeave:L,onPointerUp:se=>{se.pointerType==="touch"&&L()},onPointerCancel:se=>{se.pointerType==="touch"&&L()},onClick:ae,onKeyDown:Z?Be:void 0,role:Z?"button":void 0,tabIndex:Z?0:void 0,"aria-haspopup":Z?"menu":void 0,"aria-expanded":Z?!!I:void 0,children:[d??Fb(B,N,A),!u&&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:J??Pb[B],className:"pass-card__logo",alt:B==="manager"?k("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):k("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),n.jsxs("div",{className:"pass-card__plan",children:[n.jsx("div",{children:U}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:A?k("passCard.labeledPlan",{label:A}):k("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),S?n.jsxs("div",{className:"pass-card__price-area",children:[H&&n.jsx("span",{className:"pass-card__discount body-3",children:H}),n.jsxs("div",{className:"pass-card__price",children:[O&&n.jsx("span",{className:"pass-card__price-original body-3",children:Yn(O)}),ee]})]}):j?n.jsxs("div",{className:"pass-card__usage",children:[n.jsx("span",{className:"h5b pass-card__usage-remaining",children:j.remainingLabel}),j.percent!=null&&n.jsxs("span",{className:"pass-card__usage-percent",children:[n.jsx("span",{className:"h1 pass-card__usage-value",children:j.percent}),n.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):n.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),I&&n.jsx(an,{anchorRect:I,onClose:K,ariaLabel:k("tooltip.menu","\uBA54\uB274"),children:n.jsx(_a,{columns:ie,onClose:K,size:"small"})})]})}const Ob={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Hb(e={}){const t=`passcard-sound-line-grad-${o.useId()}`,a=mt(Ob,vn,xn);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("${wa}")`}})]})}const zb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Vb(e={}){const t=mt(zb,vn,xn);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("${wa}")`}})]})}function Wb(e,t){if(e){if(t==="manager_pro")return n.jsx(Vb,{});if(t==="manager_standard")return n.jsx(Hb,{});if(t==="manager_lite")return n.jsx(wl,{})}}function qb(e){const t=Yn(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 Ub(e){const{t}=ge.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:c}=e||{},d=y=>!!y&&!!c?.includes(y),u=y=>y.onceOnly??/오픈\s*특가/.test(y.label??""),p=(s.tiers||[]).some(y=>u(y)&&d(y.code)),m=y=>{const k=y.prices?y.prices[l]:y.price;return k?(s.tiers||[]).some(_=>!!_.badge&&_.originals?.[l]===k):!1},h=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",b=t("payment.plan.freePrice","\uBB34\uB8CC"),v=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),C=y=>y.prices?y.prices[l]:y.price,w=(s.tiers||[]).length>0&&(s.tiers||[]).every(y=>{const k=C(y);return k==="\uBB34\uB8CC"||k===b||k==="0\uC6D0"||typeof k=="string"&&/\d/.test(k)&&!/[1-9]/.test(k)}),f=(s.tiers||[]).length>0&&(s.tiers||[]).every(y=>{const k=C(y);return k==="\uBB38\uC758"||k===v}),g=s.group==="org",x=g?"manager":"speechear";return n.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[s.cardBadge&&n.jsx("div",{className:"payment-plan__card-badge",children:n.jsx(ht,{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:h},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((y,k)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(Ke,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),y]},k))})]}),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((y,k)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(Ke,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),y]},k))})]}),n.jsx("div",{className:"payment-plan__card-pricing",children:w?null:f?n.jsx(le,{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(y=>{const k=y.label||a,_=u(y),B=_||y.openPromo===!0,N=k.replace(/^오픈\s*특가\s*/,"")||a,A=y.prices?y.prices[l]:y.price,S=y.badge?B?`${r}
|
|
852
|
-
${y.badge}`:y.badge:void 0;if(_&&d(y.code))return null;if(!y.badge&&!p)return m(y)?null:n.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${y.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:y.label})}),n.jsx("div",{className:"payment-plan__pricing-row-price",children:n.jsx("span",{className:"payment-plan__pricing-current h1",children:qb(A)})})]},y.id);const O=s.tier??(g?s.title:void 0),H=n.jsx(Bl,{showPrice:!0,product:{type:x,code:y.code,name:N,label:O,price:A,originalPrice:y.originals?.[l]??void 0,discountLabel:S},bg:Wb(g,s.id)}),j=()=>i?.({...y,productId:s.id,productTitle:s.title,preview:H});return n.jsx("div",{className:"payment-plan__pricing-card",onClick:j,onKeyDown:i?q=>{q.target===q.currentTarget&&(q.key==="Enter"||q.key===" ")&&(q.preventDefault(),j())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:H},y.id)})})})})]})}function Gb({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 no='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 Nl={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Kb(){const e=mt(Nl,vn,xn);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("${no}")`}})})}const Sl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Yb(e={}){const t=mt(Sl,vn,xn);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("${wa}")`}})]})}function Dl({keys:e,anchor:t="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return n.jsx("span",{className:De("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 ka=(e,t,a)=>e+(t-e)*a;function Zb({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:i=null,answerId:l=null,showFeedback:c=!1,pulseSelected:d=!1,pulseSelectedDuration:u,pulseScale:p,clickable:m=!1,onSelectSpeaker:h,buttonSize:b=40,showIcon:v=!0,onCenterClick:C,centerLabel:w,centerDisabled:f=!1,centerAttention:g=!1,shortcutAnchor:x="top-right",shortcutScale:y,scaleShortcut:k=!1}){const{t:_}=ge.useTranslation(),B=Math.max(0,Math.min(1,a)),N=t/2,A=110/300,S=.18,O=W=>t*(A+(W-1)*S),H=W=>{const re=O(W.row??1),pe=W.angleDeg*Math.PI/180;return{x:N+re*Math.cos(pe),y:N+re*Math.sin(pe)}},j=Math.max(...e.map(W=>W.row??1),1),q=t*.08,E=t*.1,M=t*.24,I=t-2*q,G=t-E-M,Z=t-M/2,Y=o.useMemo(()=>[...new Set(e.map(W=>W.deg))].sort((W,re)=>W-re),[e]),z=Y.length,J=Math.max(68,z>1?I/(z-1):0),$=o.useMemo(()=>new Map(Y.map((W,re)=>[W,re])),[Y]),D=W=>{const re=$.get(W.deg)??0,pe=N+(re-(z-1)/2)*J,ve=j>1?Math.min(68,G/(j-1)):0,Ce=ve*(j-1),Ae=E+(G-Ce)/2,he=j===1?E+G*.4:Ae+(j-(W.row??1))*ve;return{x:pe,y:he}},F=W=>{const re=H(W),pe=D(W);return{x:ka(re.x,pe.x,B),y:ka(re.y,pe.y,B)}},P={x:N,y:ka(N,Z,B)},R=Math.round(b*1.2),L=Math.round(Math.max(16,Math.min(80,b*.7))),K=[],U=new Map;for(const W of e){const re=W.row??1;U.has(re)||U.set(re,[]),U.get(re).push(W)}for(const[W,re]of U.entries()){if(re.length<2)continue;const pe=[...re].sort((je,ke)=>je.deg-ke.deg),ve=pe.map(je=>F(je)),Ce=pe.map(je=>je.deg),Ae=Ce[Ce.length-1]-Ce[0],he=Ae/(Ce.length-1),be=360-Ae,Te=pe.length>=3&&he>0&&be<=he*1.5,Oe=Math.round(O(W)*1e3)/1e3,Pe=(je,ke,ye,Se)=>{const me=(ke.angleDeg-je.angleDeg+540)%360-180;if(me===0)return`L ${Se.x} ${Se.y}`;if(B===0)return`A ${Oe} ${Oe} 0 0 ${me>0?1:0} ${Se.x} ${Se.y}`;const Ge=(je.angleDeg+me/2)*Math.PI/180,Ue={x:N+Oe*Math.cos(Ge),y:N+Oe*Math.sin(Ge)},Ye={x:(ye.x+Se.x)/2,y:(ye.y+Se.y)/2},Ze={x:ka(Ue.x,Ye.x,B),y:ka(Ue.y,Ye.y,B)},Xe={x:2*Ze.x-Ye.x,y:2*Ze.y-Ye.y};return`Q ${Xe.x} ${Xe.y} ${Se.x} ${Se.y}`},ce=Te?[...pe,pe[0]]:pe,ne=Te?[...ve,ve[0]]:ve;let Ne=`M ${ne[0].x} ${ne[0].y}`;for(let je=1;je<ne.length;je++)Ne+=" "+Pe(ce[je-1],ce[je],ne[je-1],ne[je]);K.push({key:`arc-${W}`,d:Ne})}const ee=o.useMemo(()=>new Set(s??[]),[s]),ae=W=>({idle:"",active:_("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:_("soundCompass.state.played","\uB4E4\uC74C"),correct:_("soundCompass.state.correct","\uC815\uB2F5"),wrong:_("soundCompass.state.wrong","\uC624\uB2F5")})[W],Be=W=>{if(r===W.id)return"active";if(c){if(W.id===l)return"correct";if(W.id===i&&i!==l)return"wrong"}return ee.has(W.id)?"played":"idle"},ie=W=>r===W.id?"loop":c?W.id===l?"loop":null:d&&W.id===i?"once":null,se=(W,re)=>{switch(W){case"played":case"correct":return n.jsx(rs,{size:re});case"wrong":return n.jsx(hs,{size:re});default:return n.jsx(ms,{size:re})}};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:[B===0&&e.map(W=>{const{x:re,y:pe}=F(W);return n.jsx("line",{x1:P.x,y1:P.y,x2:re,y2:pe,stroke:"#dde3ec",strokeWidth:"1"},W.id)}),K.map(W=>n.jsx("path",{d:W.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},W.key))]}),g&&!f&&n.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:R,height:R,left:P.x-R/2,top:P.y-R/2}}),C?n.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${f?" sound-compass__center--disabled":""}`,style:{width:R,height:R,left:P.x,top:P.y},"aria-label":w,"aria-disabled":f||void 0,tabIndex:f?-1:0,onClick:f?void 0:C,children:n.jsx(fr,{size:L,color:"currentColor",strokeWidth:1.5})}):n.jsx("div",{className:"sound-compass__center",style:{width:R,height:R,left:P.x,top:P.y},children:n.jsx(fr,{size:L,color:"currentColor",strokeWidth:1.5})}),e.map((W,re)=>{const{x:pe,y:ve}=F(W),Ce=Be(W),Ae=ie(W),he={...y!==void 0||k?{"--shortcut-badge-scale":String(y??Math.max(.75,Math.min(3,b/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:Ce!=="idle"?10:1},be=b,Te=Math.round(Math.max(10,Math.min(56,be*.38))),Oe=Math.round(Math.max(7,Math.min(18,be*.2))),Pe=Math.round(Math.max(10,Math.min(56,be*.4))),ce=v==="answered"&&(Ce==="played"||Ce==="correct"||Ce==="wrong"),ne=v===!0||ce,Ne=!ce;return n.jsxs("div",{className:"sound-compass__speaker-pos",style:{...he,left:pe-be/2,top:ve-be/2},children:[Ae&&n.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${Ce}`+(Ae==="once"?" sound-compass__pulse--once":""),style:{width:be,height:be,...Ae==="once"&&u!==void 0?{"--sc-pulse-duration-once":`${u}ms`}:null,...p!==void 0?{"--sc-pulse-scale":String(p)}:null}}),n.jsxs("button",{type:"button",tabIndex:m?0:-1,"aria-disabled":m?void 0:!0,onClick:m?()=>h?.(W.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${Ce}`,style:{width:be,height:be},"aria-label":ae(Ce)?`${W.label}, ${ae(Ce)}`:W.label,"aria-pressed":i!=null?W.id===i:void 0,children:[ne&&se(Ce,Te),Ne&&n.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:v===!0?Oe:Pe},children:re+1})]}),W.shortcut&&n.jsx(Dl,{keys:W.shortcut,anchor:x,className:"sound-compass__speaker-shortcut"})]},W.id)})]})})}function Xb({children:e,position:t="top-left",size:a=24,className:r=""}){return n.jsx("span",{className:De("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}function Jb({orientation:e="horizontal",label:t,className:a=""}){const r=De("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 El({checked:e,onChange:t,name:a,value:r,disabled:s=!1,label:i,className:l=""}){const c=o.useId();return n.jsxs("label",{className:`radio${s?" radio--disabled":""} ${l}`.trim(),htmlFor:c,children:[n.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:d=>t?.(d.target.checked)}),n.jsx("span",{className:"radio__dot"}),i&&n.jsx("span",{className:"radio__label body-2",children:i})]})}function Qb({options:e,value:t,onChange:a,name:r,disabled:s=!1,direction:i="vertical",className:l="",ariaLabel:c}){const d=o.useId(),u=r??`radio-group-${d}`;return n.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":c,children:e.map(p=>n.jsx(El,{name:u,value:p.value,checked:t===p.value,disabled:s||p.disabled,label:p.label,onChange:m=>{m&&a?.(p.value)}},p.value))})}const e4={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function t4({tone:e="info",title:t,message:a,children:r,dismissible:s=!1,onDismiss:i,live:l,className:c=""}){const{t:d}=ge.useTranslation(),[u,p]=o.useState(!1),m=o.useRef(null),h=o.useCallback(()=>{const g=m.current;g&&g.contains(document.activeElement)&&Va(g),p(!0),i?.()},[i]);if(u)return null;const b=De("alert",`alert--${e}`,c),v=l??(e==="danger"||e==="warning"?"assertive":"polite"),C=v==="assertive"?"alert":v==="polite"?"status":void 0,w=!!t,f=!!(a||r);return n.jsxs("div",{ref:m,className:b,role:C,children:[n.jsxs("div",{className:"alert__body",children:[n.jsxs("div",{className:"alert__header",children:[n.jsx(Ke,{icon:e4[e],size:20,className:"alert__icon"}),w&&n.jsx("span",{className:"alert__title body-2",children:t}),!w&&f&&n.jsx("div",{className:"alert__message body-3",children:a||r})]}),w&&f&&n.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&n.jsx("button",{type:"button",className:"alert__dismiss",onClick:h,"aria-label":d("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const n4={ready:"search",guide:"info",error:"circle-alert"};function a4(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 c=e.indexOf(l,s);c<0||(c>s&&r.push(e.slice(s,c)),r.push(n.jsx("strong",{className:"search-summary__em body-2",children:l},i++)),s=c+l.length)}return s<e.length&&r.push(e.slice(s)),r}function r4({status:e="guide",label:t,children:a,emphasis:r,icon:s,className:i=""}){const l=s===!1?null:s??n4[e],c=De("search-summary",`search-summary--${e}`,i),d=t??a,u=typeof d=="string"&&r&&r.length>0?a4(d,r):d;return n.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&n.jsx(Ke,{icon:l,size:18,className:"search-summary__icon"}),n.jsx("span",{className:"search-summary__text body-2",children:u})]})}function Aa({title:e,items:t}){const{t:a}=ge.useTranslation(),{anchorRect:r,openAt:s,close:i}=ya(),l=o.useRef(null),c=Vr(!!r,(d,u)=>{d&&u?s(l.current?.querySelector("button")??u):i()},l);return n.jsxs("span",{ref:l,style:{display:"contents"},children:[n.jsx(le,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:d=>{Xn(d)||s(d.currentTarget)},onPointerLeave:d=>{Xn(d)||i()},onClick:d=>{c.touchPress(d.currentTarget)},onFocus:d=>{Jn()||s(d.currentTarget)},onBlur:i}),r&&n.jsx(Fn,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:i})]})}function o4({items:e=[],value:t,onChange:a,className:r="",size:s=40}){const i=o.useId(),{t:l}=ge.useTranslation(),c=o.useRef(null),d=e.find(C=>!C.disabled)?.key,u=e.some(C=>C.key===t)?t:d??e[0]?.key,p=e.find(C=>C.key===u&&!C.disabled)?.key??d,m=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),h=(C,w=m())=>{if(w.length===0)return;const f=(C%w.length+w.length)%w.length;w[f]?.focus(),w[f]?.click()},b=C=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(C.key))return;C.preventDefault();const w=m(),f=w.indexOf(C.currentTarget);C.key==="ArrowRight"||C.key==="ArrowDown"?h(f+1,w):C.key==="ArrowLeft"||C.key==="ArrowUp"?h(f-1,w):C.key==="Home"?h(0,w):h(w.length-1,w)},v=e.find(C=>C.key===u);return n.jsxs("div",{className:`tabs ${r}`.trim(),children:[n.jsx("div",{ref:c,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===u,"aria-controls":`tabs__panel-${i}-${C.key}`,disabled:C.disabled,tabIndex:C.key===p?0:-1,className:`tabs__tab body-2${C.key===u?" tabs__tab--active":""}`,onClick:()=>{C.key!==t&&a?.(C.key)},onKeyDown:b,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 s4={xs:12,sm:16,md:20,lg:28,xl:36};function i4(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 l4({src:e,name:t,size:a="md",shape:r="circle",className:s=""}){const{t:i}=ge.useTranslation(),[l,c]=o.useState(null),d=!!e&&l===e,u=t?i4(t):"",p=!!e&&!d,m=!p&&!!u,h=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":h,children:[p&&n.jsx("img",{className:"avatar__image",src:e,alt:h,onError:()=>c(e??null)}),!p&&m&&n.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:u}),!p&&!m&&n.jsx(Ke,{icon:"user-round",size:s4[a],className:"avatar__icon"})]})}function c4(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 u4({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:i,onRemove:l,className:c=""}){const{t:d}=ge.useTranslation(),u=o.useRef(null),[p,m]=o.useState(!1),[h,b]=o.useState([]),v=i??h,C=_=>{if(!_||_.length===0)return;const B=Array.from(_).filter(A=>c4(A,t));if(B.length===0)return;const N=a?B:B.slice(0,1);if(i===void 0){const A=a?[...v,...N]:N;b(A),e?.(A)}else e?.(N)},w=_=>{_.preventDefault(),!r&&m(!0)},f=_=>{_.preventDefault(),m(!1)},g=_=>{_.preventDefault(),m(!1),!r&&C(_.dataTransfer.files)},x=_=>{const B=_.target;try{C(B.files)}finally{B.value=""}},y=()=>{r||u.current?.click()},k=_=>{if(!r&&(l?.(_),i===void 0)){const B=v.filter((N,A)=>A!==_);b(B),l||e?.(B)}};return n.jsxs("div",{className:`file-upload ${c}`.trim(),children:[n.jsxs("div",{className:De("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:y,onKeyDown:_=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),y())},onDragOver:w,onDragLeave:f,onDrop:g,children:[n.jsx(Ke,{icon:"upload",size:24,className:"file-upload__icon"}),n.jsx("span",{className:"file-upload__prompt body-2",children:d("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:_=>{_.stopPropagation(),y()},children:d("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),n.jsx("input",{ref:u,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:x,tabIndex:-1})]}),s&&v.length>0&&n.jsx("ul",{className:"file-upload__list",children:v.map((_,B)=>n.jsxs("li",{className:"file-upload__list-item body-3",children:[n.jsx("span",{className:"file-upload__file-name body-3",children:_.name}),n.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":d("fileUpload.removeAriaLabel",{name:_.name}),disabled:r,onClick:()=>k(B),children:n.jsx(Ke,{icon:"x",size:14})})]},`${_.name}-${B}`))})]})}function d4({items:e,className:t=""}){const{t:a}=ge.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(Ke,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const p4={small:14,medium:20,large:28};function m4({value:e,onChange:t,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:i,className:l=""}){const{t:c}=ge.useTranslation(),d=r||!t,[u,p]=o.useState(null),m=d?e:Number.isFinite(e)?Math.round(e):0,h=u??m,b=p4[s],v=_=>{_!==e&&t?.(_)},C=_=>{d||v(_)},w=_=>{d||Jn()||p(_)},f=o.useRef(null),g=_=>{const B=Math.min(a,Math.max(1,_));v(B),Array.from(f.current?.querySelectorAll("[data-star]")??[]).find(N=>N.dataset.star===String(B))?.focus()},x=_=>{if(!d){switch(_.key){case"ArrowRight":case"ArrowUp":g((m||0)+1);break;case"ArrowLeft":case"ArrowDown":g((m||1)-1);break;case"Home":g(1);break;case"End":g(a);break;default:return}_.preventDefault()}},y=m>=1&&m<=a?Math.round(m):1,k=()=>{d||p(null)};return n.jsx("div",{className:`rating rating--${s}${d?" rating--readOnly":""} ${l}`.trim(),ref:f,onKeyDown:x,role:d?"img":"radiogroup","aria-label":d?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:k,onPointerUp:_=>{_.pointerType==="touch"&&k()},onPointerCancel:_=>{_.pointerType==="touch"&&k()},children:Array.from({length:a},(_,B)=>{const N=B+1,A=Math.max(0,Math.min(1,h-B)),S=A>0&&A<1,O=n.jsxs("span",{className:"rating__star-wrap",children:[n.jsx(Ke,{icon:"star",size:b,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(Ke,{icon:"star",size:b,className:"rating__star rating__star--filled"})})]});return d?n.jsx("span",{className:"rating__item","aria-hidden":"true",children:O},N):n.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":m===N,"aria-label":c("rating.starLabel",{n:N}),"data-star":N,tabIndex:N===y?0:-1,onClick:()=>C(N),onMouseEnter:()=>w(N),children:O},N)})})}const h4=20,f4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function C4({value:e,onChange:t,palette:a=f4,size:r=40,className:s="",ariaLabel:i}){const{t:l}=ge.useTranslation();return n.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":i,children:a.map(c=>{const d=e?.toLowerCase()===c.toLowerCase();return n.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:c},onClick:()=>t(c),"aria-pressed":d,"aria-label":d?`${c} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:c,children:d&&n.jsx(Ke,{icon:"check",size:h4,className:"color-picker__check"})},c)})})}function jl({icon:e,label:t,tooltip:a,wrapperStyle:r,color:s,bgColor:i,useHover:l=!0,iconSize:c="medium"}){const d=c==="small",u=De("category-icon",d?"category-icon--small":""),p=d?16:20,m=o.useRef(null),[h,b]=o.useState(!1),v=o.useMemo(()=>{const _=r&&typeof r=="object"?{...r}:{};return!s&&!i?_:{..._,...s?{color:s,"--t-item-fg":s}:{},...i?{"--t-item-bg":i}:{}}},[r,s,i]),C=a||t,[w,f]=o.useState(null);o.useLayoutEffect(()=>{h&&f(m.current?.getBoundingClientRect()??null)},[h]),o.useEffect(()=>{if(!l&&h)try{b(!1)}catch{}},[l,h]),o.useEffect(()=>{if(!h)return;const _=B=>{const N=m.current;if(!N)return;const A=B.target;A&&!N.contains(A)&&b(!1)};return document.addEventListener("pointerdown",_,!0),()=>document.removeEventListener("pointerdown",_,!0)},[h]);const g=o.useCallback(()=>{l&&b(!0)},[l]),x=o.useCallback(()=>{l&&b(!1)},[l]),y=o.useCallback(()=>b(!1),[]),k=o.useCallback(_=>{if(_.key==="Escape"){b(!1);return}(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),b(B=>!B))},[]);return n.jsxs("span",{ref:m,className:"category-icon__wrap",onPointerEnter:g,onPointerLeave:x,onFocus:g,onBlur:x,onKeyDown:k,role:"button",tabIndex:0,"aria-label":typeof C=="string"?C:void 0,"aria-haspopup":!!C,"aria-expanded":h,"data-tooltip-ignore":!0,children:[n.jsx(Ke,{icon:e,label:t,className:u,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:v,size:p}),h&&C&&n.jsx(bn,{anchorRect:w,text:typeof C=="string"?C:void 0,offset:8,onClose:y,className:"category-icon__tooltip",ariaLabel:typeof C=="string"?C:void 0})]})}let En=null;function Ga(e){if(En&&En!==e)try{En()}catch{}return En=e,()=>{En===e&&(En=null)}}function Ka(e){if(En===e){En=null;try{e()}catch{}}}function g4(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(t==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(t==="SHORT_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(t==="LONG_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(t==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,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 b4(e,t){const[a,r]=o.useState(!1),[s,i]=o.useState(-1),[l,c]=o.useState({key:"",urls:[]}),d=o.useRef(null),u=o.useRef(!1),p=o.useRef(null),m=o.useRef(null),[h,b]=o.useState(!1),v=o.useRef([]),{previewCodes:C,previewBucket:w}=g4(e,t),f=`${C.join(",")}|${w??""}`,g=o.useMemo(()=>l.key===f?l.urls:[],[l,f]);o.useEffect(()=>{if(!C.length)return;let y=!1;return(async()=>{const k=[],_=[];for(const B of C)try{const N=zs(B,w);if(!N){k.push("");continue}let A=null;try{A=await Vs(N)}catch{}if(!A)try{const S=await Ws(N);S&&(A=URL.createObjectURL(S),_.push(A))}catch{}k.push(A??"")}catch{k.push("")}y?_.forEach(B=>{try{URL.revokeObjectURL(B)}catch{}}):(v.current.forEach(B=>{try{URL.revokeObjectURL(B)}catch{}}),v.current=_,c({key:f,urls:k}))})(),()=>{y=!0}},[C.join(","),w]),o.useEffect(()=>()=>{v.current.forEach(y=>{try{URL.revokeObjectURL(y)}catch{}}),v.current=[]},[]);const x=o.useCallback(async y=>{if(y.stopPropagation(),y.preventDefault(),u.current){p.current&&Ka(p.current),u.current=!1;try{d.current?.pause()}catch{}r(!1),i(-1);return}if(!g.filter(Boolean).length)return;let k=null;const _=()=>{u.current=!1;try{d.current?.pause()}catch{}k?.()};p.current=_;const B=Ga(_);u.current=!0,r(!0);for(let N=0;N<g.length&&u.current;N++){const A=g[N];if(A){i(N);try{await new Promise((S,O)=>{k=S;const H=new Audio(A);d.current=H,H.onended=()=>S(),H.onerror=()=>O(),H.play().catch(O)})}catch{break}}}B(),p.current===_&&(p.current=null,u.current=!1,r(!1),i(-1))},[g]);return o.useEffect(()=>()=>{p.current&&Ka(p.current),u.current=!1;try{d.current?.pause()}catch{}d.current=null},[]),{playing:a,playingIndex:s,previewUrls:g,previewHover:h,setPreviewHover:b,previewBtnRef:m,handlePreview:x}}const y4=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 ao(e){const{index:t,type:a,trainingData:r,ariaLabel:s,depth:i,renderPopup:l,completed:c,completedIds:d,selectedIds:u,tooltipText:p,useDescriptionTooltip:m=!1,onRemove:h,hideCheckBadge:b=!1,showTypeLabel:v=!1,onComplete:C,onSelect:w,onMore:f,countLabelOverride:g,size:x="square"}=e||{},{t:y}=ge.useTranslation(),[k,_]=o.useState(!1),B=o.useRef(null),[N,A]=o.useState(!1);o.useEffect(()=>{B.current?.matches(":hover")&&A(!0)},[]);const{playing:S,playingIndex:O,previewUrls:H,previewHover:j,setPreviewHover:q,previewBtnRef:E,handlePreview:M}=b4(r,a?.key),I=o.useCallback(()=>{w?w():_(!0)},[w]),G=o.useCallback(()=>_(!1),[]),Z=o.useCallback(()=>A(!0),[]),Y=o.useCallback(()=>A(!1),[]),z=o.useCallback(()=>q(!0),[q]),J=o.useCallback(()=>q(!1),[q]),[$,D]=o.useState(null);o.useLayoutEffect(()=>{j&&D(E.current?.getBoundingClientRect()??null)},[j,E]);const[F,P]=o.useState(null);o.useLayoutEffect(()=>{N&&!k&&m&&P(B.current?.getBoundingClientRect()??null)},[N,k,m]);const R=o.useCallback(me=>{me.target===me.currentTarget&&(me.key==="Enter"||me.key===" ")&&(me.preventDefault(),I())},[I]),L=r||null,K=o.useMemo(()=>{if(!m)return null;const me=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,Ge=me&&me.length>0?me:y4(L);return Ge&&Ge.length>0?Ge:null},[m,p,L]),U=o.useCallback(me=>{me.stopPropagation(),h?.()},[h]),ee=o.useCallback(me=>me.stopPropagation(),[]),ae=o.useCallback(me=>{typeof C=="function"&&C(me)},[C]),Be=c||(d&&r?.id!=null?d.has(String(r.id)):!1),ie=!Be&&(u!=null&&r?.id!=null?u.has(String(r.id)):!1);el("speechear.popup.close",G);const se=di(),W=`${a?.label||""} ${t+1}`,re=L?.title||L?.name||W;let pe=a?.icon,ve,Ce="",Ae="";try{const me=L?.category_0||L?.category_main_code||L?.category_main,Ge=L?.category_1||L?.category_sub_code||L?.category_sub,Ue=se.find(Ye=>Ye.key===me);Ue?.icon&&(pe=Ue.icon),!ve&&Ue?.color&&(ve={"--t-item-fg":Ue.color}),!ve&&L?.iconColor&&(ve={"--t-item-fg":L.iconColor}),Ce=Ue?y(`topic.${Ue.key}`,{defaultValue:Ue.label||""}):"";try{const Ye=Ue?.subs?.find(Ze=>Ze.key===Ge);Ae=Ye?y(`topic.sub.${Ye.key}`,{defaultValue:Ye.label||""}):""}catch{}}catch{}const he=Ae?`${Ce} / ${Ae}`:Ce||a?.label||re,be=me=>y("training.countQuestions",{n:me}),Te=me=>y("training.countSentences",{n:me});let Oe="";try{if(L)if(a?.key==="LISTEN_IN_NOISE"){let me=0;Array.isArray(L.items)&&L.items.length>0?me=L.items.length:Array.isArray(L.sentences)&&L.sentences.length>0?me=L.sentences.length:L.sentences&&(me=1),Oe=Te(me)}else if(a?.key==="SHORT_STORY"){let me=1;Array.isArray(r?.items)?me=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?me=r.raw.items.length:Array.isArray(L?.questions)?me=L.questions.length:Array.isArray(L?.sentences)&&(me=L.sentences.length),Oe=be(me)}else if(a?.key==="LONG_STORY"){let me=1;if(Array.isArray(L.items)&&L.items.length>0){const Ge=L.items.reduce((Ue,Ye)=>{const Ze=Ye.questionItems;return Array.isArray(Ze)?Ue+Ze.length:Array.isArray(Ye.questions)?Ue+Ye.questions.length:Ue},0);me=Ge>0?Ge:L.items.length}else Array.isArray(L.questions)&&L.questions.length>0?me=L.questions.length:Array.isArray(L.sentences)&&L.sentences.length>0&&(me=L.sentences.length);Oe=be(me)}else if(a?.key==="ORDERING_SENTENCE"){let me=1;Array.isArray(L.items)&&L.items.length>0?me=L.items.length:Array.isArray(L.sentences)&&L.sentences.length>0&&(me=L.sentences.length),Oe=Te(me)}else Array.isArray(L.items)&&(Oe=L.items.length>0?be(L.items.length):"")}catch{}const Pe=x==="row",ce=x==="list"||Pe,ne=x==="compact",Ne=x==="small",je=Ne&&a?.key?R2().find(me=>me.key===a.key):void 0,ke=je?pi[je.key]:void 0,ye=je?ke?y(`trainingType.${ke}.title`,{defaultValue:je.label}):je.label??"":"",Se=!!v&&!!a?.label&&a.label!==String(re)||Ne&&!!ye&&ye!==String(re);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:B,className:`training-block-button${ce?" training-block-button--list":""}${Pe?" training-block-button--row":""}${ne?" training-block-button--compact":""}${Ne?" training-block-button--small":""}${Be?" training-block-button--completed":""}${ie?" training-block-button--selected":""}${Se&&!Ne?" training-block-button--withType":""}${Ne&&!Se?" training-block-button--no-type-label":""}`,onClick:I,onPointerEnter:Z,onPointerLeave:Y,role:"button",tabIndex:0,onKeyDown:R,"aria-label":typeof s=="string"?s:typeof re=="string"?re:void 0,title:!m&&p&&(Array.isArray(p)?p.filter(Boolean).join(`
|
|
853
|
-
`):p)||void 0,children:[n.jsxs("div",{className:"training-block-button__left",children:[v&&a?.label&&a.label!==String(re)&&n.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ne&&ye&&ye!==String(re)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:ye}),n.jsx(jl,{icon:pe,label:re,tooltip:he,wrapperStyle:ve,iconSize:Ne||ne?"small":"medium"}),!b&&(Be||ie)&&!(h&&N)&&n.jsx(ht,{className:h?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":Be?y("training.completed","\uD6C8\uB828 \uC644\uB8CC"):y("training.selected","\uC120\uD0DD\uB428")}),h&&n.jsx(ht,{className:`training-block-button__remove${N?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":y("common.remove","\uC81C\uAC70"),onClick:U}),n.jsx("div",{className:`training-block-button__title ${ne?"body-3":Ne?"body-3b":"h3"}`,children:String(re)}),n.jsxs("div",{className:"training-block-button__description",children:[(()=>{const me=g!==void 0?g:Oe;return me?n.jsx("div",{className:`training-block-button__count ${Ne?"caption-2":"caption-1"}`,children:me}):null})(),n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(Ke,{icon:"chevron-right",label:y("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:Ne?12:20})})]}),(ce&&!Pe||Ne)&&H.length>0&&n.jsx("div",{ref:E,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:ee,onPointerEnter:z,onPointerLeave:J,children:n.jsx(le,{htmlType:"button",size:Ne?28:32,type:"dot",icon:S?"pause":"play",variant:Ne?"transparent-lightGray":"default",useBorder:!1,selected:S,ariaLabel:S?y("training.stop","\uC815\uC9C0"):y("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:M})})]}),f&&n.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:me=>{me.stopPropagation(),f(me)},children:n.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:y("common.more","\uB354\uBCF4\uAE30")})})]}),j&&n.jsx(bn,{anchorRect:$,text:S?y("training.stop","\uC815\uC9C0"):y("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:J}),N&&!k&&m&&(K?n.jsx(Fn,{anchorRect:F,items:K,activeIndex:O,onClose:Y}):L?.subTitle?n.jsx(bn,{anchorRect:F,text:L.subTitle,offset:8,onClose:Y}):null),k&&l&&l({trainingData:L,typeKey:a?.key??"",onClose:G,onComplete:ae,popupTitle:String(re),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:pe,popupIconTooltip:String(he),popupWrapperStyle:ve})]})}const Tl=200;function v4(e){return e.itemId?(H2()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function Ml({plan:e,anchorRect:t,offset:a=12,onClose:r}){const{t:s}=ge.useTranslation(),i=o.useMemo(()=>V2(s).map(c=>({type:c,items:(e.items??[]).filter(d=>d.trainingType===c.key)})).filter(c=>c.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:c,items:d},u)=>[u>0?n.jsx("div",{className:"tooltip-training__divider"},`div-${c.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:c.label})}),n.jsx("div",{className:"tooltip-training__items",children:d.map((p,m)=>{const h=v4(p);return h?n.jsx(ao,{index:m,type:c,trainingData:h,size:"compact",hideCheckBadge:!0},p.itemId??m):null})})]},c.key)])})});return t?n.jsx(an,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:s("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const x4=200;function _4({icon:e,count:t,title:a,plan:r,tooltip:s=!0,className:i="",onClick:l,onMouseEnter:c,onMouseLeave:d}){const u=De("count-tile",l&&"count-tile--clickable",i),p=o.useRef(null),[m,h]=o.useState(null),b=o.useRef(null),v=o.useRef(null),C=!!(m&&r&&s),w=o.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null),v.current&&(clearTimeout(v.current),v.current=null)},[]),f=o.useCallback(()=>{w(),h(null)},[w]),g=o.useCallback(()=>{!s||!r||(w(),b.current=setTimeout(()=>{b.current=null,h(p.current?.getBoundingClientRect()??null)},Tl))},[s,r,w]),x=o.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null),!v.current&&(v.current=setTimeout(()=>{v.current=null,h(null)},x4))},[]);return o.useEffect(()=>()=>{w()},[w]),o.useEffect(()=>{(!s||!r)&&f()},[s,r,f]),o.useEffect(()=>{if(!C)return;const y=_=>_ instanceof Element&&(p.current?.contains(_)||!!_.closest(".tooltip-training")),k=_=>{y(_.target)?w():x()};return document.addEventListener("pointerover",k,!0),()=>document.removeEventListener("pointerover",k,!0)},[C,w,x]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:p,className:u,onClick:l?y=>{f(),l(y)}:void 0,onKeyDown:l?y=>{y.key!=="Enter"&&y.key!==" "||(y.preventDefault(),y.currentTarget.click())}:void 0,onPointerEnter:y=>{y.pointerType==="touch"||y.pointerType==="pen"?f():g()},onMouseEnter:c,onMouseLeave:y=>{x(),d?.(y)},role:l?"button":"img",tabIndex:l?0:void 0,"aria-label":`${a} ${t}`,children:[n.jsx(Ke,{icon:e,size:20,className:"count-tile__icon"}),n.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]}),m&&r&&n.jsx(Ml,{plan:r,anchorRect:m,onClose:f})]})}let Ba=0,Ll="",ro="",Na=0;function $l(){return Rl(!1)}function w4(){return Rl(!0)}function Rl(e){const t=typeof document<"u";Ba===0&&t&&(Ll=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Na===0&&(ro=document.body.style.paddingRight),Na++,document.body.style.paddingRight="0px"),Ba++;let a=!1;return()=>{a||(a=!0,Ba=Math.max(0,Ba-1),e&&t&&(Na=Math.max(0,Na-1),Na===0&&(ro?document.body.style.paddingRight=ro:document.body.style.removeProperty("padding-right"))),Ba===0&&t&&(document.body.style.overflow=Ll))}}function k4(){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 A4({open:e,onClose:t,ariaLabel:a,title:r,children:s,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:c=!0,showClose:d=!0,className:u,contentClassName:p}){const{t:m}=ge.useTranslation(),h=o.useId(),b=o.useRef(null),v=o.useCallback(()=>t(),[t]);o.useEffect(()=>{if(!e)return;const g=document.activeElement,x=$l(),y=b.current;return Fr(y,g),y?.focus(),()=>{x();const k=document.activeElement;(!k||k===document.body||y&&y.contains(k))&&Or(g)?.focus?.()}},[e]);const C=o.useRef(v),w=o.useRef(c);o.useEffect(()=>{C.current=v,w.current=c}),o.useEffect(()=>{if(e)return In(()=>{w.current&&C.current()})},[e]);const f=o.useRef(!1);return Pr(b,e),!e||typeof document>"u"?null:Ut.createPortal(n.jsx("div",{className:De("dialog",u),onPointerDown:l?g=>{f.current=g.target===g.currentTarget}:void 0,onMouseDown:g=>{g.target===g.currentTarget&&g.preventDefault()},onClick:l?g=>{const x=f.current;f.current=!1,x&&g.target===g.currentTarget&&v()}:void 0,children:n.jsxs("div",{ref:b,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?h:void 0,tabIndex:-1,className:De("dialog__surface",`dialog__surface--${i}`,p),onClick:g=>g.stopPropagation(),children:[r?n.jsx("div",{className:"dialog__header",children:n.jsx("h2",{id:h,className:"dialog__title h4b",children:r})}):null,d?n.jsx("button",{type:"button",className:"dialog__close","aria-label":m("common.close","\uB2EB\uAE30"),onClick:v,children:n.jsx(k4,{})}):null,n.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function B4({columns:e,rows:t,rowKey:a,title:r,toolbar:s,empty:i,loading:l,caption:c,className:d=""}){const{t:u}=ge.useTranslation(),p=!l&&t.length===0;return n.jsxs("div",{className:De("board",d),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:[c?n.jsx("caption",{className:"board__caption",children:c}):null,n.jsx("thead",{children:n.jsx("tr",{children:e.map(m=>n.jsx("th",{scope:"col",className:De("board__th",`board__cell--${m.headerAlign??m.align??"left"}`),style:m.width?{width:m.width}:void 0,children:m.header},m.key))})}),n.jsx("tbody",{children:l?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):p?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:i??u("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):t.map((m,h)=>n.jsx("tr",{className:"board__row",children:e.map(b=>n.jsx("td",{className:De("board__td",`board__cell--${b.align??"left"}`),children:b.render(m,h)},b.key))},a(m,h)))})]})]})}function N4({name:e,role:t,photo:a,media:r,credentials:s,size:i=190,className:l=""}){return n.jsxs("div",{className:De("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(c=>n.jsx("li",{children:c},c))}):null]})}function S4({groups:e,className:t=""}){return n.jsx("div",{className:De("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 D4({title:e,kind:t,body:a,badge:r,badgeSrc:s,footer:i,width:l,className:c=""}){const d=r??(s?n.jsx("img",{src:s,alt:""}):null);return n.jsxs("div",{className:De("publication-card",c),style:l?{width:l,flexShrink:0}:void 0,children:[d?n.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:d}):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 E4({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const s=ga(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 j4({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:s=2,tone:i="dark",className:l=""}){const c=s===1?"h1":"h2";return n.jsxs("div",{className:De("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(c,{className:"section-header__title",children:a}):null,r?n.jsx("div",{className:"section-header__description",children:r}):null]})}function T4({items:e,className:t=""}){return n.jsx("ul",{className:De("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 Pl({value:e,onChange:t,suggestions:a,openOnFocus:r=!1}){const s=o.useId(),[i,l]=o.useState(!1),[c,d]=o.useState(-1),u=o.useRef(null),p=o.useMemo(()=>{if(!a.length)return[];const B=e??"";return B?a.filter(N=>N.toLowerCase().includes(B.toLowerCase())):r?a:[]},[a,e,r]),[m,h]=o.useState(!1),b=o.useRef([]),v=m&&p.length===0?b.current:p;o.useEffect(()=>{v.length&&(b.current=v)},[v]);const C=o.useCallback(()=>h(!0),[]),w=o.useCallback(()=>h(!1),[]);o.useEffect(()=>{i||d(-1)},[i]),o.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const f=c<v.length?c:-1,g=o.useCallback(B=>{t?.(B),l(!1)},[t]),x=o.useCallback(()=>l(!0),[]),y=o.useCallback(()=>{l(!0),d(-1)},[]),k=o.useCallback(()=>{u.current=setTimeout(()=>l(!1),120)},[]),_=o.useCallback(B=>{B.nativeEvent.isComposing||B.keyCode===229||(B.key==="ArrowDown"?(B.preventDefault(),l(!0),d(N=>Math.min(v.length-1,(N<v.length?N:-1)+1))):B.key==="ArrowUp"?(B.preventDefault(),d(N=>Math.max(-1,(N<v.length?N:v.length)-1))):B.key==="Enter"?f>=0&&g(v[f]):B.key==="Escape"&&i&&(B.preventDefault(),l(!1)))},[v,f,i,g]);return{listId:s,open:i,activeIdx:f,filtered:v,handleFocus:x,handleBlur:k,handleInput:y,handleKeyDown:_,handleSelect:g,handleCompositionStart:C,handleCompositionEnd:w}}const oo=typeof window<"u"?o.useLayoutEffect:o.useEffect;function zn(e){const{value:t,defaultValue:a,name:r,inputRef:s,onChange:i,label:l,ariaLabel:c,required:d,placeholder:u,type:p="text",disabled:m=!1,readOnly:h=!1,error:b,helperText:v,maxLength:C,size:w=48,variant:f="input",fullWidth:g=!1,newline:x=!1,multiline:y=!1,rows:k=3,leftIcon:_,rightIcon:B,clearable:N=!1,list:A,showCount:S=!0,className:O="",onFocus:H,onBlur:j,onKeyDown:q,onEnter:E,inputMode:M,autoComplete:I,autoFocus:G,suggestions:Z,openOnFocus:Y=!1}=e,z=h||m?void 0:Z,{t:J}=ge.useTranslation(),$=o.useId();!l&&!c&&Cn(`TextField:unnamed:${$}`,"[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 D=`tf-${$}`,F=`tf-helper-${$}`,P=o.useRef(null),R=Pl({value:t??"",onChange:i,suggestions:z??[],openOnFocus:Y}),L=!!z&&R.open&&R.filtered.length>0,K=o.useRef(null),[U,ee]=o.useState(null),ae=o.useCallback(()=>{const ne=K.current;if(!ne||typeof window>"u")return;const Ne=ne.getBoundingClientRect(),je=230,ke=window.innerHeight-Ne.bottom<je+8&&Ne.top>je+8;ee({position:"fixed",left:Ne.left,width:Ne.width,...ke?{bottom:window.innerHeight-Ne.top+8}:{top:Ne.bottom+8},zIndex:va(ne)})},[]);oo(()=>{if(!L)return;ae();const ne=Ne=>{const je=Ne.target;je&&je.nodeType===1&&je.closest?.(".text-field__suggestions")||ae()};return window.addEventListener("scroll",ne,!0),window.addEventListener("resize",ae),()=>{window.removeEventListener("scroll",ne,!0),window.removeEventListener("resize",ae)}},[L,ae]);const Be=o.useCallback(ne=>{P.current=ne,typeof s=="function"?s(ne):s&&(s.current=ne)},[s]),ie=t!==void 0,se=ie&&p==="password",[W,re]=o.useState((a??"").length),pe=ie?(t??"").length:W,ve=o.useRef(t);oo(()=>{ve.current=t}),o.useEffect(()=>{const ne=P.current;if(!se||!ne)return;const Ne=t??"";ne.value!==Ne&&(ne.value=Ne)},[se,t]),o.useEffect(()=>{if(!x||!P.current)return;const ne=P.current;ne.style.height="",ne.scrollHeight>ne.clientHeight&&(ne.style.height=`${ne.scrollHeight}px`)},[t,W,x]);const Ce=C!=null&&pe>C,Ae=w===32?16:20,he=De("text-field",`text-field--s${w}`,f==="display"?"text-field--display":"",g?"text-field--full-width":"",m?"text-field--disabled":"",h?"text-field--readonly":"",b?"text-field--error":"",_?"text-field--has-left-icon":"",B||N?"text-field--has-right-icon":"",O),be={id:D,...se?{}:ie?{value:t}:{defaultValue:a},ref:Be,placeholder:u,name:r,disabled:m,readOnly:h,autoFocus:G,maxLength:C,list:A,inputMode:M,autoComplete:I,"aria-label":!l&&c?c:void 0,"aria-required":d,"aria-invalid":!!b,"aria-describedby":v||b?F:void 0,role:z?"combobox":void 0,"aria-autocomplete":z?"list":void 0,"aria-haspopup":z?"listbox":void 0,"aria-expanded":z?R.open:void 0,"aria-controls":L?R.listId:void 0,"aria-activedescendant":L&&R.activeIdx>=0?`${R.listId}-option-${R.activeIdx}`:void 0,onChange:ne=>{const Ne=ne.target;ie||re(Ne.value.length),i?.(Ne.value),z&&R.handleInput(),se&&queueMicrotask(()=>{const je=ve.current??"";Ne.value!==je&&(Ne.value=je)})},onCompositionStart:z?R.handleCompositionStart:void 0,onCompositionEnd:z?R.handleCompositionEnd:void 0,onFocus:(ne=>{H?.(ne),z&&R.handleFocus()}),onBlur:(ne=>{j?.(ne),z&&R.handleBlur()}),onKeyDown:(ne=>{z&&ne.key==="Enter"&&!ne.nativeEvent.isComposing&&R.activeIdx>=0?ne.preventDefault():E&&ne.key==="Enter"&&!ne.nativeEvent.isComposing&&(ne.preventDefault(),E()),q?.(ne),z&&R.handleKeyDown(ne)})},Te=N&&!m&&!h&&pe>0,Oe=()=>x?n.jsx("textarea",{...be,className:"text-field__input text-field__input--auto body-2",rows:1}):y?n.jsx("textarea",{...be,className:"text-field__input text-field__input--textarea body-2",rows:k}):n.jsx("input",{...be,type:p,className:"text-field__input body-2"}),Pe=f==="display"&&!x&&!y&&!!u,ce=()=>n.jsxs(n.Fragment,{children:[Oe(),Pe&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:u})]});return n.jsxs("div",{ref:K,className:he,children:[l&&n.jsxs("label",{htmlFor:D,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.jsx("span",{className:"text-field__icon text-field__icon--left",children:n.jsx(Ke,{icon:_,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ae})}),ce(),C!=null&&S&&n.jsxs("span",{className:`text-field__count caption-2${Ce?" text-field__count--over":""}`,children:[pe,"/",C]}),Te&&n.jsx(le,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:J("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:ne=>{ne.preventDefault()},onClick:()=>{!ie&&P.current&&(P.current.value="",re(0)),i?.("")},tabIndex:-1}),B&&!Te&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(Ke,{icon:B,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ae})})]}),L&&(typeof document>"u"?null:Ut.createPortal(n.jsx("ul",{id:R.listId,className:"text-field__suggestions",role:"listbox",style:U??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:R.filtered.map((ne,Ne)=>n.jsx("li",{id:`${R.listId}-option-${Ne}`,role:"option","aria-selected":Ne===R.activeIdx,className:`text-field__suggestion body-2${Ne===R.activeIdx?" is-active":""}`,onMouseDown:je=>je.preventDefault(),onClick:()=>{R.handleSelect(ne),P.current?.focus()},children:ne},`${ne}-${Ne}`))}),document.body)),(v||b)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:F,className:"text-field__helper caption-1",role:b?"alert":void 0,children:b||v})})]})}function rn({options:e,value:t,onChange:a,placeholder:r,disabled:s=!1,block:i=!1,size:l=48,error:c=!1,className:d="",ariaLabel:u,ariaDescribedBy:p}){const{t:m}=ge.useTranslation(),h=r??m("dropdown.placeholder","\uC120\uD0DD"),b=o.useId(),v=o.useId(),C=o.useRef(null),w=o.useCallback((E,M)=>{const I=window.innerHeight-E.bottom<260&&E.top>260;return{position:"fixed",left:E.left,minWidth:E.width,...I?{bottom:window.innerHeight-E.top+6}:{top:E.bottom+6},zIndex:va(M)}},[]),{open:f,setOpen:g,toggle:x,style:y,triggerRef:k,menuRef:_}=xa({computeStyle:w}),[B,N]=o.useState(-1),A=o.useCallback(()=>N(-1),[]),S=e.find(E=>E.value===t);o.useEffect(()=>{if(f){const E=e.findIndex(M=>M.value===t);N(E>=0?E:e.length?0:-1),requestAnimationFrame(()=>{const M=_.current;if(!M)return;const I=M.querySelectorAll(".dropdown__option")[E];I&&(M.scrollTop=Math.max(0,I.offsetTop-M.clientHeight/2+I.clientHeight/2))})}},[f]),o.useEffect(()=>{f&&N(E=>{if(E>=0&&E<e.length)return E;const M=e.findIndex(I=>I.value===t);return M>=0?M:e.length?0:-1})},[f,e.length]);const O=o.useCallback(()=>{s||x()},[s,x]),H=o.useCallback(E=>{E.disabled||s||(E.value!==t&&a?.(E.value),g(!1))},[a,g,s,t]);o.useEffect(()=>{s&&g(!1)},[s,g]);const j=o.useCallback(E=>{if(!s){if(!f){(E.key==="Enter"||E.key===" "||E.key==="ArrowDown")&&(E.preventDefault(),g(!0));return}if(E.key==="Escape"){E.preventDefault(),g(!1);return}E.key==="ArrowDown"?(E.preventDefault(),N(M=>{let I=M+1;for(;I<e.length&&e[I].disabled;)I++;return I<e.length?I:M})):E.key==="ArrowUp"?(E.preventDefault(),N(M=>{let I=M-1;for(;I>=0&&e[I].disabled;)I--;return I>=0?I:M})):(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),e[B]?H(e[B]):g(!1))}},[s,f,e,B,H,g]),q=f?n.jsx("div",{ref:_,id:b,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:y,onMouseLeave:A,onMouseDown:E=>E.preventDefault(),children:e.map((E,M)=>n.jsxs("button",{id:`${b}-option-${M}`,type:"button",role:"option","aria-selected":E.value===t,className:De("dropdown__option body-2",E.value===t?"dropdown__option--active":"",M===B?"dropdown__option--active":"",E.disabled?"dropdown__option--disabled":""),onMouseDown:I=>I.preventDefault(),onClick:()=>H(E),onMouseEnter:()=>N(M),disabled:E.disabled,children:[n.jsx("span",{className:"dropdown__option-check",children:E.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"})})}),E.label]},E.value))}):null;return n.jsxs("div",{ref:C,className:De("dropdown",`dropdown--s${l}`,f?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",d),onKeyDown:j,children:[n.jsxs("button",{ref:k,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":f,"aria-controls":f?b:void 0,"aria-activedescendant":f&&B>=0?`${b}-option-${B}`:void 0,"aria-label":u,"aria-describedby":[u&&S?v:"",p??""].filter(Boolean).join(" ")||void 0,"aria-invalid":c||void 0,disabled:s,onClick:O,onBlur:E=>{f&&!_.current?.contains(E.relatedTarget)&&g(!1)},children:[n.jsx("span",{id:v,className:`dropdown__trigger-label body-2${S?"":" dropdown__trigger-label--placeholder"}`,children:S?S.label:h}),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"&&Ut.createPortal(q,C.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function Ya({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:s,className:i=""}){const{t:l}=ge.useTranslation(),c=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),d=s??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),u=Math.max(1,t),p=()=>a(Math.max(1,Math.min(u,e-1))),m=()=>a(Math.min(u,e+1));return n.jsxs("div",{className:De("pagination",i),children:[n.jsx(le,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:p}),n.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),u)," / ",u]}),n.jsx(le,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:d,disabled:e>=t,onClick:m})]})}function _n(e){const{t}=ge.useTranslation(),{options:a=[],value:r=a.find(g=>!g.disabled)?.key??a[0]?.key,onChange:s=g=>{},className:i="",size:l=40,shape:c="pill",useBG:d=!0,fullWidth:u=!1,minButtonWidth:p,ariaLabel:m}=e||{},h=o.useRef(null),b=a.filter(g=>!g.disabled),v=g=>{if(!b.length)return;const x=Math.max(0,b.findIndex(k=>k.key===r)),y=g==="first"?b[0]:g==="last"?b[b.length-1]:b[(x+g+b.length)%b.length];y&&(s(y.key),Array.from(h.current?.querySelectorAll("[data-segkey]")??[]).find(k=>k.dataset.segkey===y.key)?.focus())},C=g=>{switch(g.key){case"ArrowRight":case"ArrowDown":v(1);break;case"ArrowLeft":case"ArrowUp":v(-1);break;case"Home":v("first");break;case"End":v("last");break;default:return}g.preventDefault()},w=g=>{const x=y=>typeof y=="string"||typeof y=="number";if(!(!x(g.label)||g.count==null||g.count===!1||!x(g.count)))return`${g.label}, ${g.count}`},f=b.some(g=>g.key===r)?r:b[0]?.key;return n.jsx("div",{ref:h,onKeyDown:C,className:De("segmented-control",`segmented-control--${c}`,`segmented-control--${l}`,u&&"segmented-control--full",!d&&"segmented-control--no-bg",p!=null&&"segmented-control--min",i),style:p!=null?{"--segmented-min-button-w":`${p}px`}:void 0,role:"radiogroup","aria-label":m??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(g=>n.jsx(le,{htmlType:"button",role:"radio","aria-checked":g.key===r,"data-segkey":g.key,tabIndex:g.key===f?0:-1,label:g.label,count:g.count,ariaLabel:w(g),disabled:g.disabled,className:g.key===r?"is-selected":"",onClick:()=>{g.disabled||s(g.key)},size:l,shape:c,useBorder:!1,useBG:!1},g.key))})}function so({count:e,search:t,segment:a,filters:r,pageSize:s,pagination:i,actions:l,className:c}){const{t:d}=ge.useTranslation(),u=e!=null&&n.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??d("common.totalPrefix","\uCD1D "),n.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(t||r?.length||s||i||l);return n.jsxs("div",{className:De("toolbar",c),children:[n.jsxs("div",{className:"toolbar__row",children:[u,a&&(Array.isArray(a)?a:[a]).map((m,h)=>n.jsx(_n,{size:40,...m},m.ariaLabel??h))]}),p&&n.jsx("div",{className:"toolbar__row",children:n.jsxs("div",{className:"toolbar__row-end",children:[t&&n.jsx(zn,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??d("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??d("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((m,h)=>n.jsx(rn,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},h)),(s||i)&&n.jsxs("div",{className:"toolbar__pager",children:[s&&n.jsx(rn,{size:40,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??d("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&n.jsx(Ya,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel})]}),l]})})]})}function Il(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(Il).join(""):""}function M4(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"},og={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"}}},sg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},ig={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},lg={answer:"Answer",distractor:"Distractor"},cg={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},ug={clearAriaLabel:"Clear input"},dg={ariaLabel:"Select tab"},pg={ariaLabel:"Tabs"},mg={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},hg={ariaLabel:"User avatar"},fg={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"}},Cg={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"}},gg={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)"}},bg={manage:{unit:"item(s)"}},yg={cancelLabel:"Cancel"},vg={subtitle:"Select a topic to start listening practice."},xg={steps:"Step {{current}} of {{total}}"},_g={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"},wg={resetColumns:"Reset column widths"},kg={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}}"},Ag={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Bg={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},Ng={previewRegion:"Report preview \u2014 scrollable sideways"},Sg={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},Dg={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Eg={clearSelection:"Clear selection"},jg={showResult:"Show {{type}} result"},Tg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Mg={loading:"Loading"},Lg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},$g={ariaLabel:"Breadcrumb"},Rg={empty:"No items yet."},Pg={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"},Ig={common:wC,calendar:kC,passCard:AC,searchField:BC,rating:NC,colorPicker:SC,dropdown:DC,accordion:EC,header:jC,nav:TC,settings:MC,usage:LC,account:$C,help:RC,training:PC,trainingSettings:IC,customers:FC,payment:OC,coupons:HC,visits:zC,company:VC,trainingType:WC,myWordTraining:qC,myWordTable:UC,keyWords:GC,wordTable:KC,wordSearch:YC,wordPrint:ZC,topic:XC,accessLinkManager:JC,login:QC,device:eg,manager:tg,wordPairs:ng,game:ag,footer:rg,landing:og,date:sg,trainingSetPage:ig,wordTrainingPreview:lg,wordData:cg,textField:ug,segmentedControl:dg,tabs:pg,fileUpload:mg,avatar:hg,myHomework:fg,trainingStatus:Cg,store:gg,homework:bg,inquiry:yg,trainingPlanRun:vg,progress:xg,trainingMiss:_g,table:wg,wordScore:kg,topBanner:Ag,datePicker:Bg,report:Ng,tooltip:Sg,phonemeProfile:Dg,bulkBar:Eg,debug:jg,badge:Tg,loader:Mg,soundCompass:Lg,breadcrumb:$g,board:Rg,promoBannerBg:Pg};const Fg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Wr="ko",Og="ihab_display_language";function _i(){if(typeof window>"u")return Wr;try{const e=localStorage.getItem(Og);if(e&&Fg.some(t=>t.code===e))return e}catch{}return Wr}function wi(e){try{document.documentElement.lang=e}catch{}}St.on("languageChanged",wi),wi(_i()),St.use(be.initReactI18next).init({resources:{ko:{translation:_C},en:{translation:Ig}},lng:_i(),fallbackLng:Wr,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function mt(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"},qr=new WeakMap;function Ur(e){if(e)return qr.get(e)}function Lt(e,t){e&&(e.style.setProperty(ba.title,t.title),e.style.setProperty(ba.description,t.description),qr.set(e,t))}function $t(e){e&&(e.style.removeProperty(ba.title),e.style.removeProperty(ba.description),qr.delete(e))}const ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Ai(){const e=mt(ki,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Bi={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Ni(){const e=mt(Bi,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Si={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Di(){const e=mt(Si,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const Ei={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ji(){const e=mt(Ei,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Ti={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Mi(){const e=mt(Ti,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Li={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function $i(){const e=mt(Li,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Ri={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Pi(){const e=mt(Ri,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Ii={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Fi(){const e=mt(Ii,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Oi={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Hi(){const e=mt(Oi,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const zi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Vi(){const e=mt(zi,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Wi={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function qi(){const e=mt(Wi,Lt,$t);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 Ui={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Gi(){const e=mt(Ui,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Yi(){const e=mt(Ki,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Zi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Xi(){const e=mt(Zi,Lt,$t);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Ht=(e,t,a)=>({key:e,get label(){return St.t(`promoBannerBg.${e}`,t)},textTone:a}),Hg=[Ht("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Ht("soft","\uC18C\uD504\uD2B8","dark"),Ht("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),Ht("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Ht("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),Ht("warm","\uC6DC(\uAC15\uC870)","dark"),Ht("dark","\uB2E4\uD06C","light"),Ht("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Ht("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),Ht("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),Ht("outline","\uC544\uC6C3\uB77C\uC778","dark"),Ht("success","\uC131\uACF5/\uC644\uB8CC","light"),Ht("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),Ht("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],Ji={main:Ai,soft:Ni,sub:Di,deep:ji,softSub:Mi,warm:$i,dark:Pi,radial:Fi,diagonal:Hi,dots:Vi,outline:qi,success:Gi,naver:Yi,instagram:Xi};function Qi({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:i=1.4}={}){const l=x=>Math.max(a,Math.min(r,Number(x))),c=x=>{try{const g=localStorage.getItem(x),k=g?Number(g):1;return Number.isFinite(k)?l(k):l(1)}catch{return l(1)}},[d,u]=o.useState(()=>c(e)),[p,m]=o.useState(e);p!==e&&(m(e),u(c(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(d))}catch{}},[e,d]);const h=x=>{u(typeof x=="function"?g=>l(x(g)):l(x))},b=()=>h(x=>+(x+s).toFixed(6)),v=()=>h(x=>+(x-s).toFixed(6)),C=d<r-Number.EPSILON,w=d>a+Number.EPSILON,f=Math.round(t*d),y=Math.round(f*i);return{scale:d,setScale:h,increase:b,decrease:v,canIncrease:C,canDecrease:w,fontSize:f,lineHeight:y}}function el(e,t){const a=ga(t);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const Gr=" \xB7 ",tl=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Gr)?e.split(Gr).pop()??e:e})(),zg=o.createContext(!1),On=[];let nl=null;function Vg(e){const t=o.useContext(zg);o.useEffect(()=>{if(t||typeof e!="string"||!e)return;On.length===0&&(nl=document.title);const a={text:tl?`${e}${Gr}${tl}`:e};return On.push(a),document.title=a.text,()=>{const r=On.lastIndexOf(a);r>=0&&On.splice(r,1),document.title=On.length?On[On.length-1].text:nl??document.title}},[e,t])}const al=[{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"}],Wg=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function Qn(e,t){return Wg().compare(e,t)}const qa=new Map;function qg(e){const t=qa.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,c=i[0];c[0]==="-"&&l>0&&!/\s/.test(e[l-1])&&(l+=1,c=c.slice(1)),l>s&&a.push(e.slice(s,l)),a.push(Number(c)),s=i.index+i[0].length}return s<e.length&&a.push(e.slice(s)),qa.size>5e3&&qa.clear(),qa.set(e,a),a}function Ug(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 Gg(e,t){const a=u=>u==null||typeof u=="number"&&Number.isNaN(u)?"":String(u).trim(),r=a(e),s=a(t);if(r===s)return 0;const i=(u,p)=>{if(typeof u=="number"&&!Number.isNaN(u))return[u];const m=Ug(p);return m!==null?[m]:qg(p)},l=i(e,r),c=i(t,s),d=Math.min(l.length,c.length);for(let u=0;u<d;u++){const p=l[u],m=c[u];if(typeof p=="number"&&typeof m=="number"){if(p!==m)return p-m;continue}if(typeof p=="number")return-1;if(typeof m=="number")return 1;const h=Qn(p,m);if(h!==0)return h}return l.length!==c.length?l.length-c.length:Qn(r,s)}const rl=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function Kr(e,t,a){const r=rl(e),s=rl(t);if(r||s)return r===s?0:r?1:-1;const i=Gg(e,t);return a?i:-i}function Kg(e,t,a){const{t:r}=be.useTranslation(),[s,i]=o.useState(()=>{const v=a?.initialPageSize;return v&&al.some(C=>C.value===v)?v:"25"}),[l,c]=o.useState(1),[d,u]=o.useState(t);Object.is(d,t)||(u(t),l!==1&&c(1));const p=o.useMemo(()=>al.map(v=>({...v,label:r("visits.showN",{n:v.value})})),[r]),m=o.useCallback(v=>{i(v),c(1)},[]),h=Math.max(1,Math.ceil(e.length/Number(s)));(l>h||l<1||!Number.isFinite(l))&&c(Math.min(Math.max(1,Number.isFinite(l)?l:1),h));const b=Math.min(Math.max(1,Number.isFinite(l)?l:1),h);return{pageRows:o.useMemo(()=>e.slice((b-1)*Number(s),b*Number(s)),[e,b,s]),pageSizeProps:{options:p,value:s,onChange:m},paginationProps:{page:b,total:h,onChange:c},setPage:c}}function Yg(e){const[t,a]=o.useState(null),r=o.useRef(t),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const i=o.useCallback(d=>{const u=r.current,p=u?.key===d?{key:d,asc:!u.asc}:{key:d,asc:!0};r.current=p,a(p),s.current?.(p)},[]),l=o.useCallback((d,u)=>({label:d,sortDir:t?.key===u?t.asc?"asc":"desc":null,onClick:()=>i(u)}),[t,i]),c=o.useCallback((d,u)=>{if(!t)return d;const{key:p,asc:m}=t;return[...d].sort((h,b)=>Kr(u(h,p),u(b,p),m))},[t]);return{\uC815\uB82C:t,\uCE78:l,sortRows:c}}const sn="\uC804\uCCB4",Zg=new Map;try{St.store?.on?.("added",()=>Zg.clear())}catch{}Object.fromEntries(Object.entries(l2).map(([e,{nucleus:t}])=>[e,t]));const Xg={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"})},Jg={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"})},Qg={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 eb(e,t){if("place"in t)return Xg[t.place](e);const a=Jg[t.vowel](e);return t.glide?`${a} \xB7 ${Qg[t.glide](e)}`:a}const tb=(e,{defaultValue:t})=>t,ol=(e,t)=>({jamos:e,phonetic:t,tooltip:eb(tb,t)}),yn=(e,t)=>t.map(a=>ol([a],{place:e})),Dt=(e,t,a)=>ol([...e],a?{vowel:t,glide:a}:{vowel:t}),Yr={cho:[yn("labial",["\u3142","\u3143","\u314D","\u3141"]),yn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),yn("alveolar",["\u3145","\u3146"]),yn("palatal",["\u3148","\u3149","\u314A"]),yn("velar",["\u3131","\u3132","\u314B"]),yn("glottal",["\u314E"])],jung:[[Dt("\u3163","frontHigh"),Dt("\u315F","frontHigh","w"),Dt("\u3162","frontHigh","velar")],[Dt("\u3161","backHighUnrounded")],[Dt("\u315C","backHighRounded"),Dt("\u3160","backHighRounded","j")],[Dt("\u3154\u3150","frontMid"),Dt("\u3156\u3152","frontMid","j"),Dt("\u3159\u315A\u315E","frontMid","w")],[Dt("\u3153","backMidUnrounded"),Dt("\u3155","backMidUnrounded","j"),Dt("\u315D","backMidUnrounded","w")],[Dt("\u3157","backMidRounded"),Dt("\u315B","backMidRounded","j")],[Dt("\u314F","low"),Dt("\u3151","low","j"),Dt("\u3158","low","w")]],jong:[yn("labial",["\u3142","\u3141"]),yn("alveolar",["\u3137","\u3134","\u3139"]),yn("velar",["\u3131","\u3147"])]},nb=e=>e===ab?[]:Array.from(e),ab="__NO_CODA__",Zr=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),sl={cho:Zr(Yr.cho),jung:Zr(Yr.jung),jong:Zr(Yr.jong)};sl.jung.flat().forEach(({v:e})=>{for(const t of nb(e));}),new Set(sl.cho.flat().map(e=>e.v));function rb(e,t=!0){const a=ga(e);o.useEffect(()=>{if(t)return In(()=>{a.current?.()})},[t,a])}function ya(){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(c=>c?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function ob(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((d,u)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(d),s(u)},e)},[e]),c=o.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),s(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:l,close:c}}function il(e="warning"){const[t,a]=o.useState(""),[r,s]=o.useState(e),[i,l]=o.useState(0),c=o.useCallback((m,h)=>{s(h),a(m),l(b=>b+1)},[]),d=o.useCallback(m=>c(m,"warning"),[c]),u=o.useCallback(m=>c(m,"normal"),[c]),p=o.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:c,showWarning:d,showNormal:u,clearToast:p}}function va(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 xa({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,i]=o.useState(!1),[l,c]=o.useState({}),d=o.useRef(null),u=o.useRef(null),p=o.useCallback(()=>{d.current&&c(e(d.current.getBoundingClientRect(),d.current))},[e]);o.useEffect(()=>{if(!s)return;p();const b=y=>{const x=y.target;r&&x.closest?.(r)||d.current?.contains(x)||u.current?.contains(x)||i(!1)};document.addEventListener("mousedown",b),document.addEventListener("pointerdown",b);const v=y=>{u.current?.contains(y.target)||(t==="reposition"?p():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",v,!0);const C=()=>{a==="reposition"?p():a==="close"&&i(!1)};let w=null;const f=()=>{C(),w&&clearTimeout(w),w=setTimeout(()=>{w=null,a==="reposition"&&p()},250)};return a!=="ignore"&&(window.addEventListener("resize",C),window.addEventListener("orientationchange",f)),()=>{document.removeEventListener("mousedown",b),document.removeEventListener("pointerdown",b),t!=="ignore"&&window.removeEventListener("scroll",v,!0),a!=="ignore"&&(window.removeEventListener("resize",C),window.removeEventListener("orientationchange",f)),w&&clearTimeout(w)}},[s,p,t,a,r]),o.useEffect(()=>{if(s)return In(()=>i(!1))},[s]);const m=o.useCallback(()=>i(b=>!b),[]),h=o.useCallback(()=>i(!1),[]);return{open:s,setOpen:i,toggle:m,close:h,style:l,triggerRef:d,menuRef:u}}function sb(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:i=1100,feedbackMs:l=1500}={}){const[c,d]=o.useState([]),[u,p]=o.useState(0),[m,h]=o.useState("idle"),[b,v]=o.useState(null),[C,w]=o.useState([]),[f,y]=o.useState(null),[x,g]=o.useState(0),k=o.useRef(0),_=o.useCallback(K=>{k.current=typeof K=="function"?K(k.current):K,g(k.current)},[]),B=o.useRef(r),N=o.useRef(s);o.useEffect(()=>{B.current=r,N.current=s},[r,s]);const A=o.useRef([]),S=()=>{A.current.forEach(clearTimeout),A.current=[]},O=(K,L)=>{A.current.push(setTimeout(L,K))};o.useEffect(()=>()=>S(),[]);const H=c[u]?.id??null,j=o.useRef(null),q=o.useCallback(()=>{S(),h("playing"),w([]),y(null),_(0);let K=0;e.forEach((L,D)=>{O(K,()=>{p(D),v(L.id),B.current?.(L)}),O(K+1e3,()=>{v(null),w(F=>[...F,L.id])}),K+=1300}),O(K,()=>{h("done"),N.current?.({score:0,total:e.length})})},[e,_]),E=o.useCallback((K,L)=>{if(L>=K.length){h("done"),N.current?.({score:k.current,total:K.length});return}j.current=null,p(L),y(null),h("playing"),v(K[L].id),B.current?.(K[L]),O(i,()=>{v(null),h("waiting")})},[i]),M=o.useCallback(()=>{S();const K=fa(e);d(K),_(0),w([]),E(K,0)},[e,E,_]),I=o.useCallback(()=>{t==="playback"?(d(e),q()):M()},[t,e,q,M]),G=o.useCallback(()=>{S(),h("idle"),v(null),w([]),y(null),p(0),_(0),d([])},[_]),Z=e.map(K=>K.id).join("|");o.useEffect(()=>(a?I():G(),()=>S()),[t,Z,a]);const U=o.useCallback(K=>{m!=="waiting"||t==="playback"||j.current===u||(j.current=u,y(K),K===c[u]?.id&&_(L=>L+1),t==="exam"?(h("playing"),O(400,()=>E(c,u+1))):(h("feedback"),O(l,()=>E(c,u+1))))},[m,t,c,u,E,l,_]),z=t==="playback"?e.length:c.length;return{bind:{activeSpeakerId:b,playedIds:C,selectedId:f,answerId:H,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:U},index:u,total:z,score:x,phase:m,done:m==="done",start:I,reset:G}}function ib({title:e,description:t,actionLabel:a,onAction:r,bg:s,color:i,size:l="medium",actionVariant:c,titleColor:d,descriptionColor:u,className:p=""}){const m=s??i??"main",h=o.useRef(null),[b,v]=o.useState("main"),C=Yt("(max-width: 767px)"),w=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const x=h.current;if(!x)return;const g=Ur(x),k=(_,B,N)=>{if(N!==void 0)x.style.setProperty(B,N),w.current[_]=!0;else if(w.current[_]){const A=g?.[_];A?x.style.setProperty(B,A):x.style.removeProperty(B),w.current[_]=!1}};k("title","--promo-banner-bg-title",d),k("description","--promo-banner-bg-description",u)},[d,u,m]),o.useLayoutEffect(()=>{const x=h.current;if(!x)return;const g=Ur(x);v(g?.actionVariant??"main")},[m]);const f=De("promo-banner",`promo-banner--${l}`,p),y=Ji[m];return n.jsxs("div",{ref:h,className:f,role:"note",children:[n.jsx(y,{}),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(le,{htmlType:"button",size:40,variant:c??b,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...C?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function lb({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":s}){const{t:i}=be.useTranslation(),l=s??i("topBanner.ariaLabel","\uBC30\uB108"),c=o.Children.toArray(e),d=c.length,[u,p]=o.useState(0),[m,h]=o.useState(!1),[b,v]=o.useState(!1),[C,w]=o.useState(!1),f=o.useRef(null),y=o.useRef(null),x=o.useRef(null),g=Hr(),k=m||b||C,_=d>0?Math.min(u,d-1):0;o.useEffect(()=>{if(d<2||t<=0||k||g)return;const N=window.setInterval(()=>p(A=>(Math.min(A,d-1)+1)%d),t);return()=>window.clearInterval(N)},[d,t,k,g]);const B=N=>{y.current!=null&&window.clearTimeout(y.current),y.current=window.setTimeout(()=>{y.current=null,w(!1)},N)};return o.useEffect(()=>()=>{y.current!=null&&window.clearTimeout(y.current)},[]),o.useEffect(()=>{if(!C)return;const N=A=>{A.pointerType==="touch"&&(x.current&&x.current.contains(A.target)||(y.current!=null&&(window.clearTimeout(y.current),y.current=null),w(!1)))};return document.addEventListener("pointerdown",N,!0),()=>document.removeEventListener("pointerdown",N,!0)},[C]),d===0?null:n.jsxs("section",{ref:x,className:De("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onPointerEnter:N=>{f.current=N.pointerType},onPointerDown:N=>{f.current=N.pointerType,N.pointerType==="touch"&&(y.current!=null&&(window.clearTimeout(y.current),y.current=null),w(!0))},onPointerUp:N=>{N.pointerType==="touch"&&B(5e3)},onPointerCancel:N=>{N.pointerType==="touch"&&B(5e3)},onMouseEnter:()=>{f.current!=="touch"&&h(!0)},onMouseLeave:()=>h(!1),onFocus:N=>{let A=!0;try{A=N.target.matches(":focus-visible")}catch{A=!0}v(A)},onBlur:N=>{N.currentTarget.contains(N.relatedTarget)||v(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${_*100}%)`},children:c.map((N,A)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":A!==_,...A!==_?{inert:!0}:{},children:N},A))})}),d>1&&n.jsx("div",{className:`top-banner__dots${(a?.[_]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((N,A)=>n.jsx("button",{type:"button",className:`top-banner__dot${A===_?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:d,index:A+1,defaultValue:`${d}\uAC1C \uC911 ${A+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":A===_,onClick:()=>p(A)},A))})]})}function cb({title:e,body:t,open:a=!1,onToggle:r,avatar:s,titleClassName:i="body-2",bodyClassName:l="body-2",className:c=""}){const{t:d}=be.useTranslation();return n.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.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:u=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),r?.();else if(u.key==="ArrowDown"||u.key==="ArrowUp"){u.preventDefault();const p=u.currentTarget.closest('[role="list"]');if(!p)return;const m=Array.from(p.querySelectorAll("[data-accordion-header]")),h=m.indexOf(u.currentTarget);(u.key==="ArrowDown"?m[h+1]:m[h-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(Ke,{icon:a?"chevron-up":"chevron-down",label:a?d("accordion.collapse","\uC811\uAE30"):d("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 ub({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:s}){const[i,l]=o.useState({index:t}),c=(d,u)=>i.id!=null&&d.id!=null?d.id===i.id:i.id==null&&u===i.index;return n.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((d,u)=>n.jsx(cb,{title:d.title,body:d.body,avatar:d.avatar,open:c(d,u),onToggle:()=>l(c(d,u)?{index:-1}:{index:u,id:d.id}),bodyClassName:s},d.id??u))})}function db(){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 pb(){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 mb(){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 ht(e){const{t}=be.useTranslation(),{type:a="bar",size:r,className:s="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:k,number:_,position:B="top-right",onClick:N,animate:A=!1}=e,S=k??"check",O=_!==void 0?"number":S,H=typeof r=="number"?r:32,j=De("circle-badge",`circle-badge--${O}`,`circle-badge--${B}`,`circle-badge--${H}`,A?"circle-badge--animate":"",N?"circle-badge--clickable":"",s),q=_!==void 0?t("badge.nthSelected",{n:_,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:j,onClick:N,onKeyDown:N?E=>{E.key!=="Enter"&&E.key!==" "||(E.preventDefault(),E.currentTarget.click())}:void 0,"aria-label":l?void 0:i??q,"aria-hidden":l||void 0,role:N?"button":l?void 0:"img",tabIndex:N?0:void 0,children:[_!==void 0&&_,_===void 0&&S==="check"&&n.jsx(db,{}),_===void 0&&S==="remove"&&n.jsx(pb,{}),_===void 0&&S==="minus"&&n.jsx(mb,{})]})}const{label:c,children:d,variant:u="default",fill:p="filled",minWidth:m,iconLeft:h,iconRight:b,color:v}=e,C=typeof r=="number"?"medium":r??"medium",w={small:"caption-2b",medium:"body-3b",large:"body-2b"}[C]??"body-2b",f={small:12,medium:14,large:16}[C]??14,y=De("badge",`badge--${u}`,`badge--${C}`,p!=="filled"?`badge--${p}`:"",w,s),x=v?.startsWith("--")?`var(${v})`:v,g=m!==void 0||x?{...m!==void 0?{minWidth:typeof m=="number"?`${m}px`:m}:{},...x?{"--badge-color":x}:{}}:void 0;return n.jsxs("span",{className:y,style:g,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[h&&n.jsx(Ke,{icon:h,size:f,className:"badge__icon"}),c??d,b&&n.jsx(Ke,{icon:b,size:f,className:"badge__icon"})]})}function _a({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:s}=be.useTranslation(),i=r==="small"?40:48,[l,c]=o.useState([]),d=o.useMemo(()=>{const w=[{title:null,columns:e}];let f=e;for(const y of l){const x=f?.[y.ci]?.items?.[y.ii];if(!x||!Array.isArray(x.children)||!x.children.length)break;f=[{title:null,items:x.children}],w.push({title:x.label||null,columns:f})}return w},[e,l]),u=d[d.length-1],p=d.length-1,m=o.useCallback(()=>c(w=>w.slice(0,Math.max(0,Math.min(w.length,p)-1))),[p]),h=o.useRef(null),b=o.useRef(null),v=d.length;o.useEffect(()=>{b.current||(b.current=document.activeElement);let w=0,f=0;const y=()=>{const x=h.current?.querySelector("button:not([disabled])");if(x&&x.offsetParent){x.focus({preventScroll:!0});return}f++<20&&(w=requestAnimationFrame(y))};return w=requestAnimationFrame(y),()=>cancelAnimationFrame(w)},[v]),o.useEffect(()=>()=>{b.current?.focus?.({preventScroll:!0})},[]);const C=o.useCallback((w,f,y)=>{if(w){if(Array.isArray(w.children)&&w.children.length){c(x=>[...x.slice(0,p),{ci:f,ii:y}]);return}try{typeof w.onClick=="function"&&w.onClick()}catch{}try{w&&w.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t,p]);return n.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(d.length>1||u.title)&&n.jsxs("div",{className:"tooltip-menu__header",children:[d.length>1?n.jsx(le,{htmlType:"button",size:i,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:m,variant:"transparent-gray",useBorder:!1}):null,n.jsx("div",{className:"tooltip-menu__title button-1",children:u.title})]}),n.jsx("div",{className:"tooltip-menu__columns",ref:h,children:u.columns&&u.columns.map((w,f)=>n.jsxs("div",{className:"tooltip-menu__column",children:[w.title?n.jsx("div",{className:"tooltip-menu__column-title body-3",children:w.title}):null,n.jsx("div",{className:"tooltip-menu__items",children:(w.items||[]).map((y,x)=>n.jsxs(o.Fragment,{children:[y.separatorBefore&&x>0&&n.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),n.jsx(le,{htmlType:"button",className:"tooltip-menu__item",size:i,type:y.label?"bar":"dot",icon:y.selected?"check":y.icon||"none",rightIcon:Array.isArray(y.children)&&y.children.length?"chevron-right":y.badgeCount?n.jsx(ht,{type:"dot",position:"inline",number:Math.min(y.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:y.label,ariaLabel:y.label&&y.badgeCount&&y.badgeCount>0?s("nav.badgeLabel",{label:y.label,count:y.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):y.label,onClick:()=>C(y,f,x),selected:y.selected,disabled:y.disabled,showTooltipInfo:y.tooltip||!1,useBorder:!1,align:"left"})]},x))})]},f))})]})}const ll=".content-area";function Xr(e,t="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(ll);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&Cn("nav-scroll-container",`[${t}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${ll}) \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 Jr=52,Ua=10,cl=e=>e&&e>0?e:0;function ul({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:s,moreItems:i=[],scrollContainer:l}){const{t:c}=be.useTranslation(),d=r==="manager"?"malgwi":"manager",u=r==="manager"?"arrow-left":"arrow-right",p=r==="manager"?c("nav.modeLabelMalgwi","\uB9D0\uADC0"):c("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),m=o.useRef(null),[h,b]=o.useState(0),v=e.length;o.useEffect(()=>{const z=m.current;if(!z)return;const K=()=>{const D=typeof getComputedStyle=="function"?getComputedStyle(z):null,F=z.clientWidth-(parseFloat(D?.paddingLeft??"")||0)-(parseFloat(D?.paddingRight??"")||0),P=z.querySelector(".bottom-nav__left"),R=P?.nextElementSibling,$=(P?.offsetWidth??0)+(P&&R?.classList.contains("bottom-nav__divider")?R.offsetWidth:0);b(Math.max(0,F-$))};if(K(),typeof ResizeObserver>"u")return;const L=new ResizeObserver(K);return L.observe(z),()=>L.disconnect()},[]);const C=Jr+1,w=z=>Math.max(0,Math.floor((z+Ua)/(Jr+Ua))),f=v*(Jr+Ua)-Ua<=h,y=h<=0||i.length===0&&f?v:Math.min(v,w(h-C)),x=h>0&&y<v,g=x?y:v,k=e.slice(0,g),_=e.slice(g),B=x||i.length>0,N=o.useCallback((z,K)=>({position:"fixed",bottom:window.innerHeight-z.top+8,right:window.innerWidth-z.right,zIndex:va(K)}),[]),A=o.useId(),{open:S,toggle:O,close:H,style:j,triggerRef:q,menuRef:E}=xa({computeStyle:N,onScroll:"ignore",onResize:"reposition"}),M=o.useCallback((z,K)=>K>0?c("nav.badgeLabel",{label:z,count:K,defaultValue:"{{label}}, {{count}}\uAC1C"}):z,[c]),I=o.useCallback(()=>s?.(d),[s,d]),G=o.useMemo(()=>_.find(z=>!!z.key&&z.key===t)??i.find(z=>z.selected||z.key&&z.key===t),[_,t,i]),Z=o.useMemo(()=>[{items:[..._.map(z=>({label:z.label,icon:z.icon,badgeCount:z.badgeCount,selected:!!z.key&&z.key===t,closeOnSelect:!0,disabled:z.state==="disabled",onClick:()=>{z.state!=="disabled"&&(z.key&&a&&(a(z.key),Xr(l,"BottomNav")),H())}})),...i.map(z=>({label:z.label,icon:z.icon,badgeCount:z.badgeCount,selected:z.selected??(!!z.key&&z.key===t),closeOnSelect:!0,onClick:()=>{z.onClick?.(),H()}}))]}],[_,i,t,a,H]),U=[..._,...i].reduce((z,K)=>z+cl(K.badgeCount),0);return n.jsxs("nav",{className:"bottom-nav",ref:m,"aria-label":c("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(le,{htmlType:"button",size:52,type:"dot",icon:u,ariaLabel:p,className:"bottom-nav-item",onClick:I})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",children:k.map((z,K)=>{const L=cl(z.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(le,{htmlType:"button",size:52,type:"dot",icon:z.icon,ariaLabel:M(z.label,L),selected:!!z.key&&z.key===t,disabled:z.state==="disabled",className:"bottom-nav-item",onClick:()=>{z.key&&(a?.(z.key),Xr(l,"BottomNav"))}}),L>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(ht,{type:"dot",position:"top-right",number:Math.min(L,99),size:24})})]},z.key??`__slot-${K}`)})}),B&&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:q,className:"bottom-nav__slot",children:[n.jsx(le,{htmlType:"button",size:52,type:"dot",icon:G?.icon??"ellipsis",ariaLabel:M(G?.label??c("nav.more","\uB354\uBCF4\uAE30"),U),selected:!!G,className:"bottom-nav-item",onClick:O,"aria-expanded":S,"aria-controls":S?A:void 0}),U>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(ht,{type:"dot",position:"top-right",number:Math.min(U,99),size:24})}),S&&Ut.createPortal(n.jsx("div",{id:A,role:"group","aria-label":c("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:j,ref:E,children:n.jsx(_a,{columns:Z,onClose:H})}),document.body)]})})]})]})}function dl(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 pl(e,t,a){return a&&a>0?e("nav.badgeLabel",{label:t,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):t}function hb(e){const{t}=be.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:i,onSetting:l,onHelp:c,onFeedback:d,onAccount:u}=e||{},p="default";return s||i||l||c||d||u?n.jsxs("div",{className:"side-nav__footer",children:[s&&n.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,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(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"bell",ariaLabel:pl(t,t("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&n.jsx(ht,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&n.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),c&&n.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),d&&n.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"bug",ariaLabel:t("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:d,selected:a==="feedback"}),u&&n.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:u,selected:a==="account"})]}):null}function ml(e){const{t}=be.useTranslation(),{item:a,itemKey:r,label:s,icon:i,active:l,onClick:c,style:d,state:u,labelStyle:p}=e||{},m=a?.key??r??"",h=a?.label??s??"",b=a?.icon??i??"",v=a?.badge??0,C=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(Ke,{icon:b,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),w=u==="disabled",f=`side-nav__item ${l?"active":""} ${u||""} ${w?"disabled":""} ${a?.child?"side-nav__item--child":""}`,y=o.useCallback(x=>{if(w)return;const g=x.detail>0;if(g)try{x.currentTarget.blur()}catch{}c?.(m,x.currentTarget,g)},[w,m,c]);return n.jsxs("button",{type:"button",className:f,onClick:y,"aria-label":typeof h=="string"?pl(t,h,v):void 0,"aria-current":l?"page":void 0,style:d,"aria-disabled":w,children:[C,n.jsx("span",{className:"side-nav__label button-1 f",style:p,children:h}),v>0&&n.jsx(ht,{type:"dot",position:"inline",number:Math.min(v,99),size:24,"aria-hidden":!0}),u==="loading"&&n.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":t("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function hl(e){const{t}=be.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:i,onDebug:l,onNotification:c,onAccount:d,onSetting:u,onHelp:p,onFeedback:m,appMode:h,onAppModeChange:b,scrollContainer:v}=e||{},C=h==="manager",w=o.useCallback(()=>b?.(C?"malgwi":"manager"),[b,C]);return n.jsxs("nav",{"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[n.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(f=>!f.section&&(f.key||f.label)).map((f,y)=>n.jsxs(o.Fragment,{children:[f.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(ml,{item:f,active:!!f.key&&f.key===r,state:f.disabled?"disabled":void 0,onClick:(x,g,k)=>{if(f.disabled)return;if(f.href){if(dl(f.href)&&window.open(f.href,"_blank","noopener,noreferrer"),k)try{g?.blur()}catch{}return}if(s?.(f.key),Xr(v,"SideNav"),!k)return;try{g?.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 B=typeof _.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&B&&_.matches(":hover"))){_.classList.add("header--force-collapsed");const N=()=>{_.classList.remove("header--force-collapsed"),_.removeEventListener("mouseenter",N)};_.addEventListener("mouseenter",N)}}}})]},f.key??`side-nav__item-${y}`)),b&&n.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),b&&n.jsx(ml,{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:w})]}),n.jsx(hb,{activeKey:r,unreadCount:i,onDebug:l,onNotification:c,onAccount:d,onSetting:u,onHelp:p,onFeedback:m})]})}var Qr='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',eo='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',fb='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 fl({appMode:e}){const{t}=be.useTranslation(),a=e==="manager",r=a?eo:Qr,s=fb,i=Yt("(min-width: 768px) and (max-width: 1023px)");return n.jsx("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:i?n.jsx("img",{src:s,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):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"})})}function Cl({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:s,unreadCount:i,onDebug:l,onNotification:c,onAccount:d,onSetting:u,onHelp:p,onFeedback:m,appMode:h,onAppModeChange:b,scrollContainer:v}){const{t:C}=be.useTranslation(),w=Yt("(max-width: 767px)"),f=o.useMemo(()=>(a??[]).filter(j=>!j.section&&(j.key||j.label)).map(j=>({key:j.key,label:typeof j.label=="string"?j.label:void 0,icon:j.icon,state:j.disabled?"disabled":void 0,badgeCount:j.badge})),[a]),y=o.useCallback(j=>{const q=a?.find(E=>E.key===j);if(!q?.disabled){if(q?.href){dl(q.href)&&window.open(q.href,"_blank","noopener,noreferrer");return}t?.(j)}},[a,t]),x=o.useMemo(()=>{const j=[];return l&&j.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&j.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),u&&j.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:u}),p&&j.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),m&&j.push({key:"feedback",icon:"bug",label:C("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:m}),d&&j.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:d}),j},[C,l,c,u,p,m,d,i]),g=o.useCallback((j,q)=>({position:"fixed",top:j.bottom+8,right:Math.max(8,window.innerWidth-j.right),zIndex:va(q)}),[]),k=o.useId(),{open:_,toggle:B,close:N,style:A,triggerRef:S,menuRef:O}=xa({computeStyle:g,onScroll:"ignore",onResize:"reposition"}),H=o.useMemo(()=>[{items:x.map(j=>({label:j.label,icon:j.icon,badgeCount:j.badgeCount,selected:j.selected??(!!j.key&&j.key===e),closeOnSelect:!0,onClick:()=>{j.onClick?.(),N()}}))}],[x,e,N]);return n.jsxs("aside",{className:`header${h==="manager"?" header--manager":""}`,children:[n.jsxs("div",{className:"header__bi",children:[n.jsx(fl,{appMode:h}),n.jsxs("div",{className:"header__menu-button",ref:S,children:[n.jsx(le,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:c&&i&&i>0?C("nav.badgeLabel",{label:C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:i,defaultValue:"{{label}}, {{count}}\uAC1C"}):C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:B,"aria-expanded":_,"aria-controls":_?k:void 0}),!!c&&!!i&&i>0&&n.jsx(ht,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),_&&Ut.createPortal(n.jsx("div",{id:k,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:A,ref:O,children:n.jsx(_a,{columns:H,onClose:N})}),document.body)]})]}),n.jsx(hl,{scrollContainer:v,items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:l,onNotification:c,onAccount:d,onSetting:u,onHelp:p,onFeedback:m,appMode:h,onAppModeChange:b}),w&&n.jsx(ul,{items:f,activeKey:e??void 0,onChange:y,scrollContainer:v,appMode:h,onAppModeChange:b})]})}const Cb=Cl,gb=()=>St.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function gl(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 Yn(`${t.toLocaleString("ko-KR")}\uC6D0`)}return Yn(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function bb(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function yb(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||gb()}function vb(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??bb(e),plan:yb(e),label:e.label,price:gl(e.price),originalPrice:gl(e.originalPrice),discountLabel:e.discountLabel}}var xb='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',_b='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>',wb='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',kb='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',Ab='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>',Bb='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',yl='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 Hn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},to=new WeakMap;function Nb(e){if(e)return to.get(e)}function vn(e,t){e&&(e.style.setProperty(Hn.text,t.text),e.style.setProperty(Hn.sub,t.sub),t.copyrightColor&&e.style.setProperty(Hn.copyright,t.copyrightColor),to.set(e,t))}function xn(e){e&&(e.style.removeProperty(Hn.text),e.style.removeProperty(Hn.sub),e.style.removeProperty(Hn.copyright),to.delete(e))}const vl={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function xl(e={}){const t=mt(vl,vn,xn);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("${yl}")`}})]})}const _l="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 wa='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 Sb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},Db=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function wl(e={}){const t=mt(Sb,vn,xn),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:Db.map(({scale:i,opacity:l},c)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:n.jsx("path",{d:_l,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${wa}")`}})]})}const Eb={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},jb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Tb(e={}){const t=mt(Eb,vn,xn),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:jb.map(({scale:i,opacity:l},c)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:n.jsx("path",{d:_l,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${yl}")`}})]})}const Mb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Lb(e={}){const t=mt(Mb,vn,xn);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("${wa}")`}})]})}const $b={Logo_speechear_kr:{"":Qr,_white:xb,_textWhite:_b,_black:wb},Logo_speechearManager_kr:{"":eo,_white:kb,_textWhite:Ab,_black:Bb}};function Rb(e,t){if(e)return $b[e]?.[t??""]??void 0}const Pb={speechear:Qr,manager:eo},Ib={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},kl=10;function Al(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 Fb(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===St.t("passCard.specialLabel");return r?n.jsx(Lb,{}):s?n.jsx(Tb,{}):n.jsx(wl,{})}return n.jsx(xl,{})}function Bl({product:e,showPrice:t=!1,plan:a,type:r,endDate:s,remainingSeconds:i,endInclusive:l=!1,state:c="active",bg:d,bgOnly:u=!1,textColor:p,subColor:m,copyrightColor:h,logoSrc:b,label:v,price:C,originalPrice:w,discountLabel:f,onUse:y,onRefund:x,onDelete:g}){const{t:k}=be.useTranslation(),_=e?bl(e):void 0,B=r??_?.type??"speechear",N=a??_?.plan??k("passCard.planSuffix","\uC774\uC6A9\uAD8C"),A=v??_?.label,S=C??(t?_?.price:void 0),O=w??(t?_?.originalPrice:void 0),H=f??_?.discountLabel,j=o.useMemo(()=>{if(S)return null;const ie=e?.durationDays??vb(e?.code);if(!ie||ie<=0)return i!=null?{percent:null,remainingLabel:Al(i,k)}:null;const W=ie*86400;let oe;if(i!=null)oe=i;else if((c==="active"||c==="expired")&&s){const xe=new Date(s).getTime();if(Number.isNaN(xe))return null;const ge=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(s)),Be=/^(\d{4})-(\d{2})-(\d{2})/.exec(Ca()),he=Math.round(ge&&Be?(Date.UTC(+ge[1],+ge[2]-1,+ge[3])-Date.UTC(+Be[1],+Be[2]-1,+Be[3]))/864e5:(xe-Date.now())/864e5);oe=Math.max(0,l?he+1:he)*86400}else c==="expired"?oe=0:oe=W;const pe=Math.max(0,Math.min(100,Math.floor(Math.min(oe,W)/W*100)));return c==="pending"&&pe>=100?null:{percent:pe,remainingLabel:Al(oe,k)}},[S,c,s,i,l,e?.durationDays,e?.code,k]),q=o.useRef(null),[E,M]=o.useState({}),[I,G]=o.useState(null),Z=!!(y||x||g),U=o.useRef(!1),z=o.useRef(void 0),[K,L]=o.useState(b);o.useLayoutEffect(()=>{L(b)},[b]),o.useLayoutEffect(()=>{const ie=q.current;ie&&(p!==void 0&&ie.style.setProperty("--pass-card-text",p),m!==void 0&&ie.style.setProperty("--pass-card-sub",m),h!==void 0&&ie.style.setProperty("--pass-card-copyright",h))},[p,m,h]),o.useLayoutEffect(()=>{const ie=q.current;if(!ie)return;const W=Nb(ie);if(!b){const oe=Ib[B],pe=c==="expired"?"_black":W?.logoColor??"",xe=Rb(oe,pe);L(xe)}},[d,b,B,c]);const D=ie=>{const W=q.current;if(!W)return null;const{left:oe,top:pe,width:xe,height:ge}=W.getBoundingClientRect(),Be=(ie.clientX-oe)/xe-.5;return{rotateX:-((ie.clientY-pe)/ge-.5)*kl,rotateY:Be*kl}},F=(ie,W)=>{const oe=W*-.7,pe=ie*.7+10,xe=20+(Math.abs(ie)+Math.abs(W))*.4;return`${oe}px ${pe}px ${xe}px rgba(0, 0, 0, 0.18)`},P=o.useCallback(ie=>{if(Jn())return;U.current=!0,clearTimeout(z.current),z.current=setTimeout(()=>{U.current=!1},200);const W=D(ie);W&&M({transform:`perspective(800px) rotateX(${W.rotateX}deg) rotateY(${W.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:F(W.rotateX,W.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)"})},[]),R=o.useCallback(ie=>{if(Jn())return;const W=D(ie);if(!W)return;const oe=U.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";M({transform:`perspective(800px) rotateX(${W.rotateX}deg) rotateY(${W.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:F(W.rotateX,W.rotateY),transition:oe})},[]),$=o.useCallback(()=>{clearTimeout(z.current),U.current=!1,M({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)"})},[]),ee=o.useCallback(()=>G(null),[]),J=o.useMemo(()=>{const ie=k("passCard.planSuffix","\uC774\uC6A9\uAD8C"),W=N.replace("\uC774\uC6A9\uAD8C","").replace(ie==="\uC774\uC6A9\uAD8C"?"":ie,"").trim(),oe=W.match(/^(.*?)(일|년)$/);return oe?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"h0 pass-card__plan-number",children:oe[1]}),n.jsx("span",{className:"h5b pass-card__plan-unit",children:oe[2]==="\uB144"?k("passCard.unitYear","\uB144"):k("passCard.unitDay","\uC77C")})]}):n.jsx("span",{className:"h0",children:W})},[N,k]),Y=o.useMemo(()=>{const ie=Yn(S);if(!ie)return null;const W=ie.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!W)return n.jsx("span",{className:"h1",children:ie});const[,oe,pe,xe]=W;return n.jsxs(n.Fragment,{children:[oe&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:oe}),n.jsx("span",{className:"h1 pass-card__price-amount",children:pe}),xe.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:xe.trim()})]})},[S]),ne=o.useCallback(()=>{Z&&G(ie=>{if(ie)return null;const W=q.current?.getBoundingClientRect();if(!W)return null;const oe=50;return{left:W.left,right:W.right,width:W.width,height:W.height,x:W.x,y:W.y+oe,top:W.top+oe,bottom:W.bottom+oe}})},[Z]),Ce=o.useCallback(ie=>{Z&&(ie.key==="Enter"||ie.key===" ")&&(ie.preventDefault(),ne())},[Z,ne]),re=[{items:[...y?[{label:k("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{y(),G(null)},closeOnSelect:!0}]:[],...x?[{label:k("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{x(),G(null)},closeOnSelect:!0}]:[],...g?[{label:k("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{g(),G(null)},closeOnSelect:!0}]:[]]}];return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card-frame",children:n.jsxs("div",{ref:q,className:`pass-card pass-card--${c}${Z?" pass-card--clickable":""}`,style:E,onMouseEnter:P,onMouseMove:R,onMouseLeave:$,onPointerUp:ie=>{ie.pointerType==="touch"&&$()},onPointerCancel:ie=>{ie.pointerType==="touch"&&$()},onClick:ne,onKeyDown:Z?Ce:void 0,role:Z?"button":void 0,tabIndex:Z?0:void 0,"aria-haspopup":Z?"menu":void 0,"aria-expanded":Z?!!I:void 0,children:[d??Fb(B,N,A),!u&&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:K??Pb[B],className:"pass-card__logo",alt:B==="manager"?k("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):k("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),n.jsxs("div",{className:"pass-card__plan",children:[n.jsx("div",{children:J}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:A?k("passCard.labeledPlan",{label:A}):k("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),S?n.jsxs("div",{className:"pass-card__price-area",children:[H&&n.jsx("span",{className:"pass-card__discount body-3",children:H}),n.jsxs("div",{className:"pass-card__price",children:[O&&n.jsx("span",{className:"pass-card__price-original body-3",children:Yn(O)}),Y]})]}):j?n.jsxs("div",{className:"pass-card__usage",children:[n.jsx("span",{className:"h5b pass-card__usage-remaining",children:j.remainingLabel}),j.percent!=null&&n.jsxs("span",{className:"pass-card__usage-percent",children:[n.jsx("span",{className:"h1 pass-card__usage-value",children:j.percent}),n.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):n.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),I&&n.jsx(an,{anchorRect:I,onClose:ee,ariaLabel:k("tooltip.menu","\uBA54\uB274"),children:n.jsx(_a,{columns:re,onClose:ee,size:"small"})})]})}const Ob={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Hb(e={}){const t=`passcard-sound-line-grad-${o.useId()}`,a=mt(Ob,vn,xn);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("${wa}")`}})]})}const zb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Vb(e={}){const t=mt(zb,vn,xn);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("${wa}")`}})]})}function Wb(e,t){if(e){if(t==="manager_pro")return n.jsx(Vb,{});if(t==="manager_standard")return n.jsx(Hb,{});if(t==="manager_lite")return n.jsx(wl,{})}}function qb(e){const t=Yn(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 Ub(e){const{t}=be.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:c}=e||{},d=g=>!!g&&!!c?.includes(g),u=g=>g.onceOnly??/오픈\s*특가/.test(g.label??""),p=(s.tiers||[]).some(g=>u(g)&&d(g.code)),m=g=>{const k=g.prices?g.prices[l]:g.price;return k?(s.tiers||[]).some(_=>!!_.badge&&_.originals?.[l]===k):!1},h=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",b=t("payment.plan.freePrice","\uBB34\uB8CC"),v=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),C=g=>g.prices?g.prices[l]:g.price,w=(s.tiers||[]).length>0&&(s.tiers||[]).every(g=>{const k=C(g);return k==="\uBB34\uB8CC"||k===b||k==="0\uC6D0"||typeof k=="string"&&/\d/.test(k)&&!/[1-9]/.test(k)}),f=(s.tiers||[]).length>0&&(s.tiers||[]).every(g=>{const k=C(g);return k==="\uBB38\uC758"||k===v}),y=s.group==="org",x=y?"manager":"speechear";return n.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[s.cardBadge&&n.jsx("div",{className:"payment-plan__card-badge",children:n.jsx(ht,{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:h},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,k)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(Ke,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),g]},k))})]}),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,k)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(Ke,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),g]},k))})]}),n.jsx("div",{className:"payment-plan__card-pricing",children:w?null:f?n.jsx(le,{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 k=g.label||a,_=u(g),B=_||g.openPromo===!0,N=k.replace(/^오픈\s*특가\s*/,"")||a,A=g.prices?g.prices[l]:g.price,S=g.badge?B?`${r}
|
|
852
|
+
${g.badge}`:g.badge:void 0;if(_&&d(g.code))return null;if(!g.badge&&!p)return m(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:qb(A)})})]},g.id);const O=s.tier??(y?s.title:void 0),H=n.jsx(Bl,{showPrice:!0,product:{type:x,code:g.code,name:N,label:O,price:A,originalPrice:g.originals?.[l]??void 0,discountLabel:S},bg:Wb(y,s.id)}),j=()=>i?.({...g,productId:s.id,productTitle:s.title,preview:H});return n.jsx("div",{className:"payment-plan__pricing-card",onClick:j,onKeyDown:i?q=>{q.target===q.currentTarget&&(q.key==="Enter"||q.key===" ")&&(q.preventDefault(),j())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:H},g.id)})})})})]})}function Gb({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 no='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 Nl={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Kb(){const e=mt(Nl,vn,xn);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("${no}")`}})})}const Sl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Yb(e={}){const t=mt(Sl,vn,xn);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("${wa}")`}})]})}function Dl({keys:e,anchor:t="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return n.jsx("span",{className:De("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 ka=(e,t,a)=>e+(t-e)*a;function Zb({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:i=null,answerId:l=null,showFeedback:c=!1,pulseSelected:d=!1,pulseSelectedDuration:u,pulseScale:p,clickable:m=!1,onSelectSpeaker:h,buttonSize:b=40,showIcon:v=!0,onCenterClick:C,centerLabel:w,centerDisabled:f=!1,centerAttention:y=!1,shortcutAnchor:x="top-right",shortcutScale:g,scaleShortcut:k=!1}){const{t:_}=be.useTranslation(),B=Math.max(0,Math.min(1,a)),N=t/2,A=110/300,S=.18,O=W=>t*(A+(W-1)*S),H=W=>{const oe=O(W.row??1),pe=W.angleDeg*Math.PI/180;return{x:N+oe*Math.cos(pe),y:N+oe*Math.sin(pe)}},j=Math.max(...e.map(W=>W.row??1),1),q=t*.08,E=t*.1,M=t*.24,I=t-2*q,G=t-E-M,Z=t-M/2,U=o.useMemo(()=>[...new Set(e.map(W=>W.deg))].sort((W,oe)=>W-oe),[e]),z=U.length,K=Math.max(68,z>1?I/(z-1):0),L=o.useMemo(()=>new Map(U.map((W,oe)=>[W,oe])),[U]),D=W=>{const oe=L.get(W.deg)??0,pe=N+(oe-(z-1)/2)*K,xe=j>1?Math.min(68,G/(j-1)):0,ge=xe*(j-1),Be=E+(G-ge)/2,he=j===1?E+G*.4:Be+(j-(W.row??1))*xe;return{x:pe,y:he}},F=W=>{const oe=H(W),pe=D(W);return{x:ka(oe.x,pe.x,B),y:ka(oe.y,pe.y,B)}},P={x:N,y:ka(N,Z,B)},R=Math.round(b*1.2),$=Math.round(Math.max(16,Math.min(80,b*.7))),ee=[],J=new Map;for(const W of e){const oe=W.row??1;J.has(oe)||J.set(oe,[]),J.get(oe).push(W)}for(const[W,oe]of J.entries()){if(oe.length<2)continue;const pe=[...oe].sort((je,Ae)=>je.deg-Ae.deg),xe=pe.map(je=>F(je)),ge=pe.map(je=>je.deg),Be=ge[ge.length-1]-ge[0],he=Be/(ge.length-1),ye=360-Be,Te=pe.length>=3&&he>0&&ye<=he*1.5,Oe=Math.round(O(W)*1e3)/1e3,Pe=(je,Ae,ve,Se)=>{const me=(Ae.angleDeg-je.angleDeg+540)%360-180;if(me===0)return`L ${Se.x} ${Se.y}`;if(B===0)return`A ${Oe} ${Oe} 0 0 ${me>0?1:0} ${Se.x} ${Se.y}`;const Ge=(je.angleDeg+me/2)*Math.PI/180,Ue={x:N+Oe*Math.cos(Ge),y:N+Oe*Math.sin(Ge)},Ye={x:(ve.x+Se.x)/2,y:(ve.y+Se.y)/2},Ze={x:ka(Ue.x,Ye.x,B),y:ka(Ue.y,Ye.y,B)},Xe={x:2*Ze.x-Ye.x,y:2*Ze.y-Ye.y};return`Q ${Xe.x} ${Xe.y} ${Se.x} ${Se.y}`},ce=Te?[...pe,pe[0]]:pe,ae=Te?[...xe,xe[0]]:xe;let Ne=`M ${ae[0].x} ${ae[0].y}`;for(let je=1;je<ae.length;je++)Ne+=" "+Pe(ce[je-1],ce[je],ae[je-1],ae[je]);ee.push({key:`arc-${W}`,d:Ne})}const Y=o.useMemo(()=>new Set(s??[]),[s]),ne=W=>({idle:"",active:_("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:_("soundCompass.state.played","\uB4E4\uC74C"),correct:_("soundCompass.state.correct","\uC815\uB2F5"),wrong:_("soundCompass.state.wrong","\uC624\uB2F5")})[W],Ce=W=>{if(r===W.id)return"active";if(c){if(W.id===l)return"correct";if(W.id===i&&i!==l)return"wrong"}return Y.has(W.id)?"played":"idle"},re=W=>r===W.id?"loop":c?W.id===l?"loop":null:d&&W.id===i?"once":null,ie=(W,oe)=>{switch(W){case"played":case"correct":return n.jsx(rs,{size:oe});case"wrong":return n.jsx(hs,{size:oe});default:return n.jsx(ms,{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:[B===0&&e.map(W=>{const{x:oe,y:pe}=F(W);return n.jsx("line",{x1:P.x,y1:P.y,x2:oe,y2:pe,stroke:"#dde3ec",strokeWidth:"1"},W.id)}),ee.map(W=>n.jsx("path",{d:W.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},W.key))]}),y&&!f&&n.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:R,height:R,left:P.x-R/2,top:P.y-R/2}}),C?n.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${f?" sound-compass__center--disabled":""}`,style:{width:R,height:R,left:P.x,top:P.y},"aria-label":w,"aria-disabled":f||void 0,tabIndex:f?-1:0,onClick:f?void 0:C,children:n.jsx(fr,{size:$,color:"currentColor",strokeWidth:1.5})}):n.jsx("div",{className:"sound-compass__center",style:{width:R,height:R,left:P.x,top:P.y},children:n.jsx(fr,{size:$,color:"currentColor",strokeWidth:1.5})}),e.map((W,oe)=>{const{x:pe,y:xe}=F(W),ge=Ce(W),Be=re(W),he={...g!==void 0||k?{"--shortcut-badge-scale":String(g??Math.max(.75,Math.min(3,b/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:ge!=="idle"?10:1},ye=b,Te=Math.round(Math.max(10,Math.min(56,ye*.38))),Oe=Math.round(Math.max(7,Math.min(18,ye*.2))),Pe=Math.round(Math.max(10,Math.min(56,ye*.4))),ce=v==="answered"&&(ge==="played"||ge==="correct"||ge==="wrong"),ae=v===!0||ce,Ne=!ce;return n.jsxs("div",{className:"sound-compass__speaker-pos",style:{...he,left:pe-ye/2,top:xe-ye/2},children:[Be&&n.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ge}`+(Be==="once"?" sound-compass__pulse--once":""),style:{width:ye,height:ye,...Be==="once"&&u!==void 0?{"--sc-pulse-duration-once":`${u}ms`}:null,...p!==void 0?{"--sc-pulse-scale":String(p)}:null}}),n.jsxs("button",{type:"button",tabIndex:m?0:-1,"aria-disabled":m?void 0:!0,onClick:m?()=>h?.(W.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ge}`,style:{width:ye,height:ye},"aria-label":ne(ge)?`${W.label}, ${ne(ge)}`:W.label,"aria-pressed":i!=null?W.id===i:void 0,children:[ae&&ie(ge,Te),Ne&&n.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:v===!0?Oe:Pe},children:oe+1})]}),W.shortcut&&n.jsx(Dl,{keys:W.shortcut,anchor:x,className:"sound-compass__speaker-shortcut"})]},W.id)})]})})}function Xb({children:e,position:t="top-left",size:a=24,className:r=""}){return n.jsx("span",{className:De("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}function Jb({orientation:e="horizontal",label:t,className:a=""}){const r=De("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 El({checked:e,onChange:t,name:a,value:r,disabled:s=!1,label:i,className:l=""}){const c=o.useId();return n.jsxs("label",{className:`radio${s?" radio--disabled":""} ${l}`.trim(),htmlFor:c,children:[n.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:d=>t?.(d.target.checked)}),n.jsx("span",{className:"radio__dot"}),i&&n.jsx("span",{className:"radio__label body-2",children:i})]})}function Qb({options:e,value:t,onChange:a,name:r,disabled:s=!1,direction:i="vertical",className:l="",ariaLabel:c}){const d=o.useId(),u=r??`radio-group-${d}`;return n.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":c,children:e.map(p=>n.jsx(El,{name:u,value:p.value,checked:t===p.value,disabled:s||p.disabled,label:p.label,onChange:m=>{m&&a?.(p.value)}},p.value))})}const e4={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function t4({tone:e="info",title:t,message:a,children:r,dismissible:s=!1,onDismiss:i,live:l,className:c=""}){const{t:d}=be.useTranslation(),[u,p]=o.useState(!1),m=o.useRef(null),h=o.useCallback(()=>{const y=m.current;y&&y.contains(document.activeElement)&&Va(y),p(!0),i?.()},[i]);if(u)return null;const b=De("alert",`alert--${e}`,c),v=l??(e==="danger"||e==="warning"?"assertive":"polite"),C=v==="assertive"?"alert":v==="polite"?"status":void 0,w=!!t,f=!!(a||r);return n.jsxs("div",{ref:m,className:b,role:C,children:[n.jsxs("div",{className:"alert__body",children:[n.jsxs("div",{className:"alert__header",children:[n.jsx(Ke,{icon:e4[e],size:20,className:"alert__icon"}),w&&n.jsx("span",{className:"alert__title body-2",children:t}),!w&&f&&n.jsx("div",{className:"alert__message body-3",children:a||r})]}),w&&f&&n.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&n.jsx("button",{type:"button",className:"alert__dismiss",onClick:h,"aria-label":d("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const n4={ready:"search",guide:"info",error:"circle-alert"};function a4(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 c=e.indexOf(l,s);c<0||(c>s&&r.push(e.slice(s,c)),r.push(n.jsx("strong",{className:"search-summary__em body-2",children:l},i++)),s=c+l.length)}return s<e.length&&r.push(e.slice(s)),r}function r4({status:e="guide",label:t,children:a,emphasis:r,icon:s,className:i=""}){const l=s===!1?null:s??n4[e],c=De("search-summary",`search-summary--${e}`,i),d=t??a,u=typeof d=="string"&&r&&r.length>0?a4(d,r):d;return n.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&n.jsx(Ke,{icon:l,size:18,className:"search-summary__icon"}),n.jsx("span",{className:"search-summary__text body-2",children:u})]})}function Aa({title:e,items:t}){const{t:a}=be.useTranslation(),{anchorRect:r,openAt:s,close:i}=ya(),l=o.useRef(null),c=Vr(!!r,(d,u)=>{d&&u?s(l.current?.querySelector("button")??u):i()},l);return n.jsxs("span",{ref:l,style:{display:"contents"},children:[n.jsx(le,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:d=>{Xn(d)||s(d.currentTarget)},onPointerLeave:d=>{Xn(d)||i()},onClick:d=>{c.touchPress(d.currentTarget)},onFocus:d=>{Jn()||s(d.currentTarget)},onBlur:i}),r&&n.jsx(Fn,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:i})]})}function o4({items:e=[],value:t,onChange:a,className:r="",size:s=40}){const i=o.useId(),{t:l}=be.useTranslation(),c=o.useRef(null),d=e.find(C=>!C.disabled)?.key,u=e.some(C=>C.key===t)?t:d??e[0]?.key,p=e.find(C=>C.key===u&&!C.disabled)?.key??d,m=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),h=(C,w=m())=>{if(w.length===0)return;const f=(C%w.length+w.length)%w.length;w[f]?.focus(),w[f]?.click()},b=C=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(C.key))return;C.preventDefault();const w=m(),f=w.indexOf(C.currentTarget);C.key==="ArrowRight"||C.key==="ArrowDown"?h(f+1,w):C.key==="ArrowLeft"||C.key==="ArrowUp"?h(f-1,w):C.key==="Home"?h(0,w):h(w.length-1,w)},v=e.find(C=>C.key===u);return n.jsxs("div",{className:`tabs ${r}`.trim(),children:[n.jsx("div",{ref:c,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===u,"aria-controls":`tabs__panel-${i}-${C.key}`,disabled:C.disabled,tabIndex:C.key===p?0:-1,className:`tabs__tab body-2${C.key===u?" tabs__tab--active":""}`,onClick:()=>{C.key!==t&&a?.(C.key)},onKeyDown:b,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 s4={xs:12,sm:16,md:20,lg:28,xl:36};function i4(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 l4({src:e,name:t,size:a="md",shape:r="circle",className:s=""}){const{t:i}=be.useTranslation(),[l,c]=o.useState(null),d=!!e&&l===e,u=t?i4(t):"",p=!!e&&!d,m=!p&&!!u,h=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":h,children:[p&&n.jsx("img",{className:"avatar__image",src:e,alt:h,onError:()=>c(e??null)}),!p&&m&&n.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:u}),!p&&!m&&n.jsx(Ke,{icon:"user-round",size:s4[a],className:"avatar__icon"})]})}function c4(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 u4({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:i,onRemove:l,className:c=""}){const{t:d}=be.useTranslation(),u=o.useRef(null),[p,m]=o.useState(!1),[h,b]=o.useState([]),v=i??h,C=_=>{if(!_||_.length===0)return;const B=Array.from(_).filter(A=>c4(A,t));if(B.length===0)return;const N=a?B:B.slice(0,1);if(i===void 0){const A=a?[...v,...N]:N;b(A),e?.(A)}else e?.(N)},w=_=>{_.preventDefault(),!r&&m(!0)},f=_=>{_.preventDefault(),m(!1)},y=_=>{_.preventDefault(),m(!1),!r&&C(_.dataTransfer.files)},x=_=>{const B=_.target;try{C(B.files)}finally{B.value=""}},g=()=>{r||u.current?.click()},k=_=>{if(!r&&(l?.(_),i===void 0)){const B=v.filter((N,A)=>A!==_);b(B),l||e?.(B)}};return n.jsxs("div",{className:`file-upload ${c}`.trim(),children:[n.jsxs("div",{className:De("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:g,onKeyDown:_=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),g())},onDragOver:w,onDragLeave:f,onDrop:y,children:[n.jsx(Ke,{icon:"upload",size:24,className:"file-upload__icon"}),n.jsx("span",{className:"file-upload__prompt body-2",children:d("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:_=>{_.stopPropagation(),g()},children:d("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),n.jsx("input",{ref:u,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:x,tabIndex:-1})]}),s&&v.length>0&&n.jsx("ul",{className:"file-upload__list",children:v.map((_,B)=>n.jsxs("li",{className:"file-upload__list-item body-3",children:[n.jsx("span",{className:"file-upload__file-name body-3",children:_.name}),n.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":d("fileUpload.removeAriaLabel",{name:_.name}),disabled:r,onClick:()=>k(B),children:n.jsx(Ke,{icon:"x",size:14})})]},`${_.name}-${B}`))})]})}function d4({items:e,className:t=""}){const{t:a}=be.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(Ke,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const p4={small:14,medium:20,large:28};function m4({value:e,onChange:t,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:i,className:l=""}){const{t:c}=be.useTranslation(),d=r||!t,[u,p]=o.useState(null),m=d?e:Number.isFinite(e)?Math.round(e):0,h=u??m,b=p4[s],v=_=>{_!==e&&t?.(_)},C=_=>{d||v(_)},w=_=>{d||Jn()||p(_)},f=o.useRef(null),y=_=>{const B=Math.min(a,Math.max(1,_));v(B),Array.from(f.current?.querySelectorAll("[data-star]")??[]).find(N=>N.dataset.star===String(B))?.focus()},x=_=>{if(!d){switch(_.key){case"ArrowRight":case"ArrowUp":y((m||0)+1);break;case"ArrowLeft":case"ArrowDown":y((m||1)-1);break;case"Home":y(1);break;case"End":y(a);break;default:return}_.preventDefault()}},g=m>=1&&m<=a?Math.round(m):1,k=()=>{d||p(null)};return n.jsx("div",{className:`rating rating--${s}${d?" rating--readOnly":""} ${l}`.trim(),ref:f,onKeyDown:x,role:d?"img":"radiogroup","aria-label":d?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:k,onPointerUp:_=>{_.pointerType==="touch"&&k()},onPointerCancel:_=>{_.pointerType==="touch"&&k()},children:Array.from({length:a},(_,B)=>{const N=B+1,A=Math.max(0,Math.min(1,h-B)),S=A>0&&A<1,O=n.jsxs("span",{className:"rating__star-wrap",children:[n.jsx(Ke,{icon:"star",size:b,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(Ke,{icon:"star",size:b,className:"rating__star rating__star--filled"})})]});return d?n.jsx("span",{className:"rating__item","aria-hidden":"true",children:O},N):n.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":m===N,"aria-label":c("rating.starLabel",{n:N}),"data-star":N,tabIndex:N===g?0:-1,onClick:()=>C(N),onMouseEnter:()=>w(N),children:O},N)})})}const h4=20,f4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function C4({value:e,onChange:t,palette:a=f4,size:r=40,className:s="",ariaLabel:i}){const{t:l}=be.useTranslation();return n.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":i,children:a.map(c=>{const d=e?.toLowerCase()===c.toLowerCase();return n.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:c},onClick:()=>t(c),"aria-pressed":d,"aria-label":d?`${c} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:c,children:d&&n.jsx(Ke,{icon:"check",size:h4,className:"color-picker__check"})},c)})})}function jl({icon:e,label:t,tooltip:a,wrapperStyle:r,color:s,bgColor:i,useHover:l=!0,iconSize:c="medium"}){const d=c==="small",u=De("category-icon",d?"category-icon--small":""),p=d?16:20,m=o.useRef(null),[h,b]=o.useState(!1),v=o.useMemo(()=>{const _=r&&typeof r=="object"?{...r}:{};return!s&&!i?_:{..._,...s?{color:s,"--t-item-fg":s}:{},...i?{"--t-item-bg":i}:{}}},[r,s,i]),C=a||t,[w,f]=o.useState(null);o.useLayoutEffect(()=>{h&&f(m.current?.getBoundingClientRect()??null)},[h]),o.useEffect(()=>{if(!l&&h)try{b(!1)}catch{}},[l,h]),o.useEffect(()=>{if(!h)return;const _=B=>{const N=m.current;if(!N)return;const A=B.target;A&&!N.contains(A)&&b(!1)};return document.addEventListener("pointerdown",_,!0),()=>document.removeEventListener("pointerdown",_,!0)},[h]);const y=o.useCallback(()=>{l&&b(!0)},[l]),x=o.useCallback(()=>{l&&b(!1)},[l]),g=o.useCallback(()=>b(!1),[]),k=o.useCallback(_=>{if(_.key==="Escape"){b(!1);return}(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),b(B=>!B))},[]);return n.jsxs("span",{ref:m,className:"category-icon__wrap",onPointerEnter:y,onPointerLeave:x,onFocus:y,onBlur:x,onKeyDown:k,role:"button",tabIndex:0,"aria-label":typeof C=="string"?C:void 0,"aria-haspopup":!!C,"aria-expanded":h,"data-tooltip-ignore":!0,children:[n.jsx(Ke,{icon:e,label:t,className:u,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:v,size:p}),h&&C&&n.jsx(bn,{anchorRect:w,text:typeof C=="string"?C:void 0,offset:8,onClose:g,className:"category-icon__tooltip",ariaLabel:typeof C=="string"?C:void 0})]})}let En=null;function Ga(e){if(En&&En!==e)try{En()}catch{}return En=e,()=>{En===e&&(En=null)}}function Ka(e){if(En===e){En=null;try{e()}catch{}}}function g4(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(t==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(t==="SHORT_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(t==="LONG_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(t==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,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 b4(e,t){const[a,r]=o.useState(!1),[s,i]=o.useState(-1),[l,c]=o.useState({key:"",urls:[]}),d=o.useRef(null),u=o.useRef(!1),p=o.useRef(null),m=o.useRef(null),[h,b]=o.useState(!1),v=o.useRef([]),{previewCodes:C,previewBucket:w}=g4(e,t),f=`${C.join(",")}|${w??""}`,y=o.useMemo(()=>l.key===f?l.urls:[],[l,f]);o.useEffect(()=>{if(!C.length)return;let g=!1;return(async()=>{const k=[],_=[];for(const B of C)try{const N=zs(B,w);if(!N){k.push("");continue}let A=null;try{A=await Vs(N)}catch{}if(!A)try{const S=await Ws(N);S&&(A=URL.createObjectURL(S),_.push(A))}catch{}k.push(A??"")}catch{k.push("")}g?_.forEach(B=>{try{URL.revokeObjectURL(B)}catch{}}):(v.current.forEach(B=>{try{URL.revokeObjectURL(B)}catch{}}),v.current=_,c({key:f,urls:k}))})(),()=>{g=!0}},[C.join(","),w]),o.useEffect(()=>()=>{v.current.forEach(g=>{try{URL.revokeObjectURL(g)}catch{}}),v.current=[]},[]);const x=o.useCallback(async g=>{if(g.stopPropagation(),g.preventDefault(),u.current){p.current&&Ka(p.current),u.current=!1;try{d.current?.pause()}catch{}r(!1),i(-1);return}if(!y.filter(Boolean).length)return;let k=null;const _=()=>{u.current=!1;try{d.current?.pause()}catch{}k?.()};p.current=_;const B=Ga(_);u.current=!0,r(!0);for(let N=0;N<y.length&&u.current;N++){const A=y[N];if(A){i(N);try{await new Promise((S,O)=>{k=S;const H=new Audio(A);d.current=H,H.onended=()=>S(),H.onerror=()=>O(),H.play().catch(O)})}catch{break}}}B(),p.current===_&&(p.current=null,u.current=!1,r(!1),i(-1))},[y]);return o.useEffect(()=>()=>{p.current&&Ka(p.current),u.current=!1;try{d.current?.pause()}catch{}d.current=null},[]),{playing:a,playingIndex:s,previewUrls:y,previewHover:h,setPreviewHover:b,previewBtnRef:m,handlePreview:x}}const y4=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 ao(e){const{index:t,type:a,trainingData:r,ariaLabel:s,depth:i,renderPopup:l,completed:c,completedIds:d,selectedIds:u,tooltipText:p,useDescriptionTooltip:m=!1,onRemove:h,hideCheckBadge:b=!1,showTypeLabel:v=!1,onComplete:C,onSelect:w,onMore:f,countLabelOverride:y,size:x="square"}=e||{},{t:g}=be.useTranslation(),[k,_]=o.useState(!1),B=o.useRef(null),[N,A]=o.useState(!1);o.useEffect(()=>{B.current?.matches(":hover")&&A(!0)},[]);const{playing:S,playingIndex:O,previewUrls:H,previewHover:j,setPreviewHover:q,previewBtnRef:E,handlePreview:M}=b4(r,a?.key),I=o.useCallback(()=>{w?w():_(!0)},[w]),G=o.useCallback(()=>_(!1),[]),Z=o.useCallback(()=>A(!0),[]),U=o.useCallback(()=>A(!1),[]),z=o.useCallback(()=>q(!0),[q]),K=o.useCallback(()=>q(!1),[q]),[L,D]=o.useState(null);o.useLayoutEffect(()=>{j&&D(E.current?.getBoundingClientRect()??null)},[j,E]);const[F,P]=o.useState(null);o.useLayoutEffect(()=>{N&&!k&&m&&P(B.current?.getBoundingClientRect()??null)},[N,k,m]);const R=o.useCallback(me=>{me.target===me.currentTarget&&(me.key==="Enter"||me.key===" ")&&(me.preventDefault(),I())},[I]),$=r||null,ee=o.useMemo(()=>{if(!m)return null;const me=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,Ge=me&&me.length>0?me:y4($);return Ge&&Ge.length>0?Ge:null},[m,p,$]),J=o.useCallback(me=>{me.stopPropagation(),h?.()},[h]),Y=o.useCallback(me=>me.stopPropagation(),[]),ne=o.useCallback(me=>{typeof C=="function"&&C(me)},[C]),Ce=c||(d&&r?.id!=null?d.has(String(r.id)):!1),re=!Ce&&(u!=null&&r?.id!=null?u.has(String(r.id)):!1);el("speechear.popup.close",G);const ie=di(),W=`${a?.label||""} ${t+1}`,oe=$?.title||$?.name||W;let pe=a?.icon,xe,ge="",Be="";try{const me=$?.category_0||$?.category_main_code||$?.category_main,Ge=$?.category_1||$?.category_sub_code||$?.category_sub,Ue=ie.find(Ye=>Ye.key===me);Ue?.icon&&(pe=Ue.icon),!xe&&Ue?.color&&(xe={"--t-item-fg":Ue.color}),!xe&&$?.iconColor&&(xe={"--t-item-fg":$.iconColor}),ge=Ue?g(`topic.${Ue.key}`,{defaultValue:Ue.label||""}):"";try{const Ye=Ue?.subs?.find(Ze=>Ze.key===Ge);Be=Ye?g(`topic.sub.${Ye.key}`,{defaultValue:Ye.label||""}):""}catch{}}catch{}const he=Be?`${ge} / ${Be}`:ge||a?.label||oe,ye=me=>g("training.countQuestions",{n:me}),Te=me=>g("training.countSentences",{n:me});let Oe="";try{if($)if(a?.key==="LISTEN_IN_NOISE"){let me=0;Array.isArray($.items)&&$.items.length>0?me=$.items.length:Array.isArray($.sentences)&&$.sentences.length>0?me=$.sentences.length:$.sentences&&(me=1),Oe=Te(me)}else if(a?.key==="SHORT_STORY"){let me=1;Array.isArray(r?.items)?me=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?me=r.raw.items.length:Array.isArray($?.questions)?me=$.questions.length:Array.isArray($?.sentences)&&(me=$.sentences.length),Oe=ye(me)}else if(a?.key==="LONG_STORY"){let me=1;if(Array.isArray($.items)&&$.items.length>0){const Ge=$.items.reduce((Ue,Ye)=>{const Ze=Ye.questionItems;return Array.isArray(Ze)?Ue+Ze.length:Array.isArray(Ye.questions)?Ue+Ye.questions.length:Ue},0);me=Ge>0?Ge:$.items.length}else Array.isArray($.questions)&&$.questions.length>0?me=$.questions.length:Array.isArray($.sentences)&&$.sentences.length>0&&(me=$.sentences.length);Oe=ye(me)}else if(a?.key==="ORDERING_SENTENCE"){let me=1;Array.isArray($.items)&&$.items.length>0?me=$.items.length:Array.isArray($.sentences)&&$.sentences.length>0&&(me=$.sentences.length),Oe=Te(me)}else Array.isArray($.items)&&(Oe=$.items.length>0?ye($.items.length):"")}catch{}const Pe=x==="row",ce=x==="list"||Pe,ae=x==="compact",Ne=x==="small",je=Ne&&a?.key?R2().find(me=>me.key===a.key):void 0,Ae=je?pi[je.key]:void 0,ve=je?Ae?g(`trainingType.${Ae}.title`,{defaultValue:je.label}):je.label??"":"",Se=!!v&&!!a?.label&&a.label!==String(oe)||Ne&&!!ve&&ve!==String(oe);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:B,className:`training-block-button${ce?" training-block-button--list":""}${Pe?" training-block-button--row":""}${ae?" training-block-button--compact":""}${Ne?" training-block-button--small":""}${Ce?" training-block-button--completed":""}${re?" training-block-button--selected":""}${Se&&!Ne?" training-block-button--withType":""}${Ne&&!Se?" training-block-button--no-type-label":""}`,onClick:I,onPointerEnter:Z,onPointerLeave:U,role:"button",tabIndex:0,onKeyDown:R,"aria-label":typeof s=="string"?s:typeof oe=="string"?oe:void 0,title:!m&&p&&(Array.isArray(p)?p.filter(Boolean).join(`
|
|
853
|
+
`):p)||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}),Ne&&ve&&ve!==String(oe)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:ve}),n.jsx(jl,{icon:pe,label:oe,tooltip:he,wrapperStyle:xe,iconSize:Ne||ae?"small":"medium"}),!b&&(Ce||re)&&!(h&&N)&&n.jsx(ht,{className:h?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":Ce?g("training.completed","\uD6C8\uB828 \uC644\uB8CC"):g("training.selected","\uC120\uD0DD\uB428")}),h&&n.jsx(ht,{className:`training-block-button__remove${N?" 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 ${ae?"body-3":Ne?"body-3b":"h3"}`,children:String(oe)}),n.jsxs("div",{className:"training-block-button__description",children:[(()=>{const me=y!==void 0?y:Oe;return me?n.jsx("div",{className:`training-block-button__count ${Ne?"caption-2":"caption-1"}`,children:me}):null})(),n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(Ke,{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:Ne?12:20})})]}),(ce&&!Pe||Ne)&&H.length>0&&n.jsx("div",{ref:E,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:Y,onPointerEnter:z,onPointerLeave:K,children:n.jsx(le,{htmlType:"button",size:Ne?28:32,type:"dot",icon:S?"pause":"play",variant:Ne?"transparent-lightGray":"default",useBorder:!1,selected:S,ariaLabel:S?g("training.stop","\uC815\uC9C0"):g("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:M})})]}),f&&n.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:me=>{me.stopPropagation(),f(me)},children:n.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:g("common.more","\uB354\uBCF4\uAE30")})})]}),j&&n.jsx(bn,{anchorRect:L,text:S?g("training.stop","\uC815\uC9C0"):g("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:K}),N&&!k&&m&&(ee?n.jsx(Fn,{anchorRect:F,items:ee,activeIndex:O,onClose:U}):$?.subTitle?n.jsx(bn,{anchorRect:F,text:$.subTitle,offset:8,onClose:U}):null),k&&l&&l({trainingData:$,typeKey:a?.key??"",onClose:G,onComplete:ne,popupTitle:String(oe),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:pe,popupIconTooltip:String(he),popupWrapperStyle:xe})]})}const Tl=200;function v4(e){return e.itemId?(H2()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function Ml({plan:e,anchorRect:t,offset:a=12,onClose:r}){const{t:s}=be.useTranslation(),i=o.useMemo(()=>V2(s).map(c=>({type:c,items:(e.items??[]).filter(d=>d.trainingType===c.key)})).filter(c=>c.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:c,items:d},u)=>[u>0?n.jsx("div",{className:"tooltip-training__divider"},`div-${c.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:c.label})}),n.jsx("div",{className:"tooltip-training__items",children:d.map((p,m)=>{const h=v4(p);return h?n.jsx(ao,{index:m,type:c,trainingData:h,size:"compact",hideCheckBadge:!0},p.itemId??m):null})})]},c.key)])})});return t?n.jsx(an,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:s("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const x4=200;function _4({icon:e,count:t,title:a,plan:r,tooltip:s=!0,className:i="",onClick:l,onMouseEnter:c,onMouseLeave:d}){const u=De("count-tile",l&&"count-tile--clickable",i),p=o.useRef(null),[m,h]=o.useState(null),b=o.useRef(null),v=o.useRef(null),C=!!(m&&r&&s),w=o.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null),v.current&&(clearTimeout(v.current),v.current=null)},[]),f=o.useCallback(()=>{w(),h(null)},[w]),y=o.useCallback(()=>{!s||!r||(w(),b.current=setTimeout(()=>{b.current=null,h(p.current?.getBoundingClientRect()??null)},Tl))},[s,r,w]),x=o.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null),!v.current&&(v.current=setTimeout(()=>{v.current=null,h(null)},x4))},[]);return o.useEffect(()=>()=>{w()},[w]),o.useEffect(()=>{(!s||!r)&&f()},[s,r,f]),o.useEffect(()=>{if(!C)return;const g=_=>_ instanceof Element&&(p.current?.contains(_)||!!_.closest(".tooltip-training")),k=_=>{g(_.target)?w():x()};return document.addEventListener("pointerover",k,!0),()=>document.removeEventListener("pointerover",k,!0)},[C,w,x]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:p,className:u,onClick:l?g=>{f(),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"?f():y()},onMouseEnter:c,onMouseLeave:g=>{x(),d?.(g)},role:l?"button":"img",tabIndex:l?0:void 0,"aria-label":`${a} ${t}`,children:[n.jsx(Ke,{icon:e,size:20,className:"count-tile__icon"}),n.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]}),m&&r&&n.jsx(Ml,{plan:r,anchorRect:m,onClose:f})]})}let Ba=0,Ll="",ro="",Na=0;function $l(){return Rl(!1)}function w4(){return Rl(!0)}function Rl(e){const t=typeof document<"u";Ba===0&&t&&(Ll=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Na===0&&(ro=document.body.style.paddingRight),Na++,document.body.style.paddingRight="0px"),Ba++;let a=!1;return()=>{a||(a=!0,Ba=Math.max(0,Ba-1),e&&t&&(Na=Math.max(0,Na-1),Na===0&&(ro?document.body.style.paddingRight=ro:document.body.style.removeProperty("padding-right"))),Ba===0&&t&&(document.body.style.overflow=Ll))}}function k4(){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 A4({open:e,onClose:t,ariaLabel:a,title:r,children:s,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:c=!0,showClose:d=!0,className:u,contentClassName:p}){const{t:m}=be.useTranslation(),h=o.useId(),b=o.useRef(null),v=o.useCallback(()=>t(),[t]);o.useEffect(()=>{if(!e)return;const y=document.activeElement,x=$l(),g=b.current;return Fr(g,y),g?.focus(),()=>{x();const k=document.activeElement;(!k||k===document.body||g&&g.contains(k))&&Or(y)?.focus?.()}},[e]);const C=o.useRef(v),w=o.useRef(c);o.useEffect(()=>{C.current=v,w.current=c}),o.useEffect(()=>{if(e)return In(()=>{w.current&&C.current()})},[e]);const f=o.useRef(!1);return Pr(b,e),!e||typeof document>"u"?null:Ut.createPortal(n.jsx("div",{className:De("dialog",u),onPointerDown:l?y=>{f.current=y.target===y.currentTarget}:void 0,onMouseDown:y=>{y.target===y.currentTarget&&y.preventDefault()},onClick:l?y=>{const x=f.current;f.current=!1,x&&y.target===y.currentTarget&&v()}:void 0,children:n.jsxs("div",{ref:b,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?h:void 0,tabIndex:-1,className:De("dialog__surface",`dialog__surface--${i}`,p),onClick:y=>y.stopPropagation(),children:[r?n.jsx("div",{className:"dialog__header",children:n.jsx("h2",{id:h,className:"dialog__title h4b",children:r})}):null,d?n.jsx("button",{type:"button",className:"dialog__close","aria-label":m("common.close","\uB2EB\uAE30"),onClick:v,children:n.jsx(k4,{})}):null,n.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function B4({columns:e,rows:t,rowKey:a,title:r,toolbar:s,empty:i,loading:l,caption:c,className:d=""}){const{t:u}=be.useTranslation(),p=!l&&t.length===0;return n.jsxs("div",{className:De("board",d),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:[c?n.jsx("caption",{className:"board__caption",children:c}):null,n.jsx("thead",{children:n.jsx("tr",{children:e.map(m=>n.jsx("th",{scope:"col",className:De("board__th",`board__cell--${m.headerAlign??m.align??"left"}`),style:m.width?{width:m.width}:void 0,children:m.header},m.key))})}),n.jsx("tbody",{children:l?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):p?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:i??u("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):t.map((m,h)=>n.jsx("tr",{className:"board__row",children:e.map(b=>n.jsx("td",{className:De("board__td",`board__cell--${b.align??"left"}`),children:b.render(m,h)},b.key))},a(m,h)))})]})]})}function N4({name:e,role:t,photo:a,media:r,credentials:s,size:i=190,className:l=""}){return n.jsxs("div",{className:De("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(c=>n.jsx("li",{children:c},c))}):null]})}function S4({groups:e,className:t=""}){return n.jsx("div",{className:De("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 D4({title:e,kind:t,body:a,badge:r,badgeSrc:s,footer:i,width:l,className:c=""}){const d=r??(s?n.jsx("img",{src:s,alt:""}):null);return n.jsxs("div",{className:De("publication-card",c),style:l?{width:l,flexShrink:0}:void 0,children:[d?n.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:d}):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 E4({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const s=ga(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 j4({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:s=2,tone:i="dark",className:l=""}){const c=s===1?"h1":"h2";return n.jsxs("div",{className:De("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(c,{className:"section-header__title",children:a}):null,r?n.jsx("div",{className:"section-header__description",children:r}):null]})}function T4({items:e,className:t=""}){return n.jsx("ul",{className:De("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 Pl({value:e,onChange:t,suggestions:a,openOnFocus:r=!1}){const s=o.useId(),[i,l]=o.useState(!1),[c,d]=o.useState(-1),u=o.useRef(null),p=o.useMemo(()=>{if(!a.length)return[];const B=e??"";return B?a.filter(N=>N.toLowerCase().includes(B.toLowerCase())):r?a:[]},[a,e,r]),[m,h]=o.useState(!1),b=o.useRef([]),v=m&&p.length===0?b.current:p;o.useEffect(()=>{v.length&&(b.current=v)},[v]);const C=o.useCallback(()=>h(!0),[]),w=o.useCallback(()=>h(!1),[]);o.useEffect(()=>{i||d(-1)},[i]),o.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const f=c<v.length?c:-1,y=o.useCallback(B=>{t?.(B),l(!1)},[t]),x=o.useCallback(()=>l(!0),[]),g=o.useCallback(()=>{l(!0),d(-1)},[]),k=o.useCallback(()=>{u.current=setTimeout(()=>l(!1),120)},[]),_=o.useCallback(B=>{B.nativeEvent.isComposing||B.keyCode===229||(B.key==="ArrowDown"?(B.preventDefault(),l(!0),d(N=>Math.min(v.length-1,(N<v.length?N:-1)+1))):B.key==="ArrowUp"?(B.preventDefault(),d(N=>Math.max(-1,(N<v.length?N:v.length)-1))):B.key==="Enter"?f>=0&&y(v[f]):B.key==="Escape"&&i&&(B.preventDefault(),l(!1)))},[v,f,i,y]);return{listId:s,open:i,activeIdx:f,filtered:v,handleFocus:x,handleBlur:k,handleInput:g,handleKeyDown:_,handleSelect:y,handleCompositionStart:C,handleCompositionEnd:w}}const oo=typeof window<"u"?o.useLayoutEffect:o.useEffect;function zn(e){const{value:t,defaultValue:a,name:r,inputRef:s,onChange:i,label:l,ariaLabel:c,required:d,placeholder:u,type:p="text",disabled:m=!1,readOnly:h=!1,error:b,helperText:v,maxLength:C,size:w=48,variant:f="input",fullWidth:y=!1,newline:x=!1,multiline:g=!1,rows:k=3,leftIcon:_,rightIcon:B,clearable:N=!1,list:A,showCount:S=!0,className:O="",onFocus:H,onBlur:j,onKeyDown:q,onEnter:E,inputMode:M,autoComplete:I,autoFocus:G,suggestions:Z,openOnFocus:U=!1}=e,z=h||m?void 0:Z,{t:K}=be.useTranslation(),L=o.useId();!l&&!c&&Cn(`TextField:unnamed:${L}`,"[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 D=`tf-${L}`,F=`tf-helper-${L}`,P=o.useRef(null),R=Pl({value:t??"",onChange:i,suggestions:z??[],openOnFocus:U}),$=!!z&&R.open&&R.filtered.length>0,ee=o.useRef(null),[J,Y]=o.useState(null),ne=o.useCallback(()=>{const ae=ee.current;if(!ae||typeof window>"u")return;const Ne=ae.getBoundingClientRect(),je=230,Ae=window.innerHeight-Ne.bottom<je+8&&Ne.top>je+8;Y({position:"fixed",left:Ne.left,width:Ne.width,...Ae?{bottom:window.innerHeight-Ne.top+8}:{top:Ne.bottom+8},zIndex:va(ae)})},[]);oo(()=>{if(!$)return;ne();const ae=Ne=>{const je=Ne.target;je&&je.nodeType===1&&je.closest?.(".text-field__suggestions")||ne()};return window.addEventListener("scroll",ae,!0),window.addEventListener("resize",ne),()=>{window.removeEventListener("scroll",ae,!0),window.removeEventListener("resize",ne)}},[$,ne]);const Ce=o.useCallback(ae=>{P.current=ae,typeof s=="function"?s(ae):s&&(s.current=ae)},[s]),re=t!==void 0,ie=re&&p==="password",[W,oe]=o.useState((a??"").length),pe=re?(t??"").length:W,xe=o.useRef(t);oo(()=>{xe.current=t}),o.useEffect(()=>{const ae=P.current;if(!ie||!ae)return;const Ne=t??"";ae.value!==Ne&&(ae.value=Ne)},[ie,t]),o.useEffect(()=>{if(!x||!P.current)return;const ae=P.current;ae.style.height="",ae.scrollHeight>ae.clientHeight&&(ae.style.height=`${ae.scrollHeight}px`)},[t,W,x]);const ge=C!=null&&pe>C,Be=w===32?16:20,he=De("text-field",`text-field--s${w}`,f==="display"?"text-field--display":"",y?"text-field--full-width":"",m?"text-field--disabled":"",h?"text-field--readonly":"",b?"text-field--error":"",_?"text-field--has-left-icon":"",B||N?"text-field--has-right-icon":"",O),ye={id:D,...ie?{}:re?{value:t}:{defaultValue:a},ref:Ce,placeholder:u,name:r,disabled:m,readOnly:h,autoFocus:G,maxLength:C,list:A,inputMode:M,autoComplete:I,"aria-label":!l&&c?c:void 0,"aria-required":d,"aria-invalid":!!b,"aria-describedby":v||b?F:void 0,role:z?"combobox":void 0,"aria-autocomplete":z?"list":void 0,"aria-haspopup":z?"listbox":void 0,"aria-expanded":z?R.open:void 0,"aria-controls":$?R.listId:void 0,"aria-activedescendant":$&&R.activeIdx>=0?`${R.listId}-option-${R.activeIdx}`:void 0,onChange:ae=>{const Ne=ae.target;re||oe(Ne.value.length),i?.(Ne.value),z&&R.handleInput(),ie&&queueMicrotask(()=>{const je=xe.current??"";Ne.value!==je&&(Ne.value=je)})},onCompositionStart:z?R.handleCompositionStart:void 0,onCompositionEnd:z?R.handleCompositionEnd:void 0,onFocus:(ae=>{H?.(ae),z&&R.handleFocus()}),onBlur:(ae=>{j?.(ae),z&&R.handleBlur()}),onKeyDown:(ae=>{z&&ae.key==="Enter"&&!ae.nativeEvent.isComposing&&R.activeIdx>=0?ae.preventDefault():E&&ae.key==="Enter"&&!ae.nativeEvent.isComposing&&(ae.preventDefault(),E()),q?.(ae),z&&R.handleKeyDown(ae)})},Te=N&&!m&&!h&&pe>0,Oe=()=>x?n.jsx("textarea",{...ye,className:"text-field__input text-field__input--auto body-2",rows:1}):g?n.jsx("textarea",{...ye,className:"text-field__input text-field__input--textarea body-2",rows:k}):n.jsx("input",{...ye,type:p,className:"text-field__input body-2"}),Pe=f==="display"&&!x&&!g&&!!u,ce=()=>n.jsxs(n.Fragment,{children:[Oe(),Pe&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:u})]});return n.jsxs("div",{ref:ee,className:he,children:[l&&n.jsxs("label",{htmlFor:D,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.jsx("span",{className:"text-field__icon text-field__icon--left",children:n.jsx(Ke,{icon:_,label:"",className:"",svgClassName:"text-field__icon-svg",size:Be})}),ce(),C!=null&&S&&n.jsxs("span",{className:`text-field__count caption-2${ge?" text-field__count--over":""}`,children:[pe,"/",C]}),Te&&n.jsx(le,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:K("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:ae=>{ae.preventDefault()},onClick:()=>{!re&&P.current&&(P.current.value="",oe(0)),i?.("")},tabIndex:-1}),B&&!Te&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(Ke,{icon:B,label:"",className:"",svgClassName:"text-field__icon-svg",size:Be})})]}),$&&(typeof document>"u"?null:Ut.createPortal(n.jsx("ul",{id:R.listId,className:"text-field__suggestions",role:"listbox",style:J??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:R.filtered.map((ae,Ne)=>n.jsx("li",{id:`${R.listId}-option-${Ne}`,role:"option","aria-selected":Ne===R.activeIdx,className:`text-field__suggestion body-2${Ne===R.activeIdx?" is-active":""}`,onMouseDown:je=>je.preventDefault(),onClick:()=>{R.handleSelect(ae),P.current?.focus()},children:ae},`${ae}-${Ne}`))}),document.body)),(v||b)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:F,className:"text-field__helper caption-1",role:b?"alert":void 0,children:b||v})})]})}function rn({options:e,value:t,onChange:a,placeholder:r,disabled:s=!1,block:i=!1,size:l=48,error:c=!1,className:d="",ariaLabel:u,ariaDescribedBy:p}){const{t:m}=be.useTranslation(),h=r??m("dropdown.placeholder","\uC120\uD0DD"),b=o.useId(),v=o.useId(),C=o.useRef(null),w=o.useCallback((E,M)=>{const I=window.innerHeight-E.bottom<260&&E.top>260;return{position:"fixed",left:E.left,minWidth:E.width,...I?{bottom:window.innerHeight-E.top+6}:{top:E.bottom+6},zIndex:va(M)}},[]),{open:f,setOpen:y,toggle:x,style:g,triggerRef:k,menuRef:_}=xa({computeStyle:w}),[B,N]=o.useState(-1),A=o.useCallback(()=>N(-1),[]),S=e.find(E=>E.value===t);o.useEffect(()=>{if(f){const E=e.findIndex(M=>M.value===t);N(E>=0?E:e.length?0:-1),requestAnimationFrame(()=>{const M=_.current;if(!M)return;const I=M.querySelectorAll(".dropdown__option")[E];I&&(M.scrollTop=Math.max(0,I.offsetTop-M.clientHeight/2+I.clientHeight/2))})}},[f]),o.useEffect(()=>{f&&N(E=>{if(E>=0&&E<e.length)return E;const M=e.findIndex(I=>I.value===t);return M>=0?M:e.length?0:-1})},[f,e.length]);const O=o.useCallback(()=>{s||x()},[s,x]),H=o.useCallback(E=>{E.disabled||s||(E.value!==t&&a?.(E.value),y(!1))},[a,y,s,t]);o.useEffect(()=>{s&&y(!1)},[s,y]);const j=o.useCallback(E=>{if(!s){if(!f){(E.key==="Enter"||E.key===" "||E.key==="ArrowDown")&&(E.preventDefault(),y(!0));return}if(E.key==="Escape"){E.preventDefault(),y(!1);return}E.key==="ArrowDown"?(E.preventDefault(),N(M=>{let I=M+1;for(;I<e.length&&e[I].disabled;)I++;return I<e.length?I:M})):E.key==="ArrowUp"?(E.preventDefault(),N(M=>{let I=M-1;for(;I>=0&&e[I].disabled;)I--;return I>=0?I:M})):(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),e[B]?H(e[B]):y(!1))}},[s,f,e,B,H,y]),q=f?n.jsx("div",{ref:_,id:b,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:g,onMouseLeave:A,onMouseDown:E=>E.preventDefault(),children:e.map((E,M)=>n.jsxs("button",{id:`${b}-option-${M}`,type:"button",role:"option","aria-selected":E.value===t,className:De("dropdown__option body-2",E.value===t?"dropdown__option--active":"",M===B?"dropdown__option--active":"",E.disabled?"dropdown__option--disabled":""),onMouseDown:I=>I.preventDefault(),onClick:()=>H(E),onMouseEnter:()=>N(M),disabled:E.disabled,children:[n.jsx("span",{className:"dropdown__option-check",children:E.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"})})}),E.label]},E.value))}):null;return n.jsxs("div",{ref:C,className:De("dropdown",`dropdown--s${l}`,f?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",d),onKeyDown:j,children:[n.jsxs("button",{ref:k,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":f,"aria-controls":f?b:void 0,"aria-activedescendant":f&&B>=0?`${b}-option-${B}`:void 0,"aria-label":u,"aria-describedby":[u&&S?v:"",p??""].filter(Boolean).join(" ")||void 0,"aria-invalid":c||void 0,disabled:s,onClick:O,onBlur:E=>{f&&!_.current?.contains(E.relatedTarget)&&y(!1)},children:[n.jsx("span",{id:v,className:`dropdown__trigger-label body-2${S?"":" dropdown__trigger-label--placeholder"}`,children:S?S.label:h}),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"&&Ut.createPortal(q,C.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function Ya({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:s,className:i=""}){const{t:l}=be.useTranslation(),c=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),d=s??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),u=Math.max(1,t),p=()=>a(Math.max(1,Math.min(u,e-1))),m=()=>a(Math.min(u,e+1));return n.jsxs("div",{className:De("pagination",i),children:[n.jsx(le,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:p}),n.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),u)," / ",u]}),n.jsx(le,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:d,disabled:e>=t,onClick:m})]})}function _n(e){const{t}=be.useTranslation(),{options:a=[],value:r=a.find(y=>!y.disabled)?.key??a[0]?.key,onChange:s=y=>{},className:i="",size:l=40,shape:c="pill",useBG:d=!0,fullWidth:u=!1,minButtonWidth:p,ariaLabel:m}=e||{},h=o.useRef(null),b=a.filter(y=>!y.disabled),v=y=>{if(!b.length)return;const x=Math.max(0,b.findIndex(k=>k.key===r)),g=y==="first"?b[0]:y==="last"?b[b.length-1]:b[(x+y+b.length)%b.length];g&&(s(g.key),Array.from(h.current?.querySelectorAll("[data-segkey]")??[]).find(k=>k.dataset.segkey===g.key)?.focus())},C=y=>{switch(y.key){case"ArrowRight":case"ArrowDown":v(1);break;case"ArrowLeft":case"ArrowUp":v(-1);break;case"Home":v("first");break;case"End":v("last");break;default:return}y.preventDefault()},w=y=>{const x=g=>typeof g=="string"||typeof g=="number";if(!(!x(y.label)||y.count==null||y.count===!1||!x(y.count)))return`${y.label}, ${y.count}`},f=b.some(y=>y.key===r)?r:b[0]?.key;return n.jsx("div",{ref:h,onKeyDown:C,className:De("segmented-control",`segmented-control--${c}`,`segmented-control--${l}`,u&&"segmented-control--full",!d&&"segmented-control--no-bg",p!=null&&"segmented-control--min",i),style:p!=null?{"--segmented-min-button-w":`${p}px`}:void 0,role:"radiogroup","aria-label":m??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(y=>n.jsx(le,{htmlType:"button",role:"radio","aria-checked":y.key===r,"data-segkey":y.key,tabIndex:y.key===f?0:-1,label:y.label,count:y.count,ariaLabel:w(y),disabled:y.disabled,className:y.key===r?"is-selected":"",onClick:()=>{y.disabled||s(y.key)},size:l,shape:c,useBorder:!1,useBG:!1},y.key))})}function so({count:e,search:t,segment:a,filters:r,pageSize:s,pagination:i,actions:l,className:c}){const{t:d}=be.useTranslation(),u=e!=null&&n.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??d("common.totalPrefix","\uCD1D "),n.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(t||r?.length||s||i||l);return n.jsxs("div",{className:De("toolbar",c),children:[n.jsxs("div",{className:"toolbar__row",children:[u,a&&(Array.isArray(a)?a:[a]).map((m,h)=>n.jsx(_n,{size:40,...m},m.ariaLabel??h))]}),p&&n.jsx("div",{className:"toolbar__row",children:n.jsxs("div",{className:"toolbar__row-end",children:[t&&n.jsx(zn,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??d("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??d("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((m,h)=>n.jsx(rn,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},h)),(s||i)&&n.jsxs("div",{className:"toolbar__pager",children:[s&&n.jsx(rn,{size:40,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??d("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&n.jsx(Ya,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel})]}),l]})})]})}function Il(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(Il).join(""):""}function M4(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
857
|
`)}const L4=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),$4=/^(?: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 R4(e,t){let a=e;const r=[],s=/^(?:sh|bash|zsh|shell|console)$/.test(t.toLowerCase()),i=(l,c)=>r.push({type:l,content:c});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
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 c=a.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),a=a.slice(c[0].length);continue}const d=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(d){i("string",d[0]),a=a.slice(d[0].length);continue}const u=a.match(/^\d+(?:\.\d+)?/);if(u){i("number",u[0]),a=a.slice(u[0].length);continue}const p=a.match($4);if(p){i("keyword",p[0]),a=a.slice(p[0].length);continue}const m=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(m){const v=m[0];i(s&&L4.has(v)?"command":"identifier",v),a=a.slice(v.length);continue}const h=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(h){i("operator",h[0]),a=a.slice(h[0].length);continue}const b=a.match(/^[()[\]{};.,]/);if(b){i("punctuation",b[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function P4({children:e,language:t="bash",title:a="",showCopy:r=!0,size:s="default",className:i=""}){const{t:l}=ge.useTranslation(),[c,d]=o.useState(!1),u=M4(Il(e)),p=o.useRef(null);o.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=async()=>{try{if(!await E2(u))return;d(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>d(!1),2e3)}catch{}},h=R4(u,t),b=s==="small"?"caption-1":"body-3";return n.jsxs("div",{className:De("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(le,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:m,ariaLabel:c?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:h.map((v,C)=>n.jsx("span",{className:`code-token ${v.type} ${b}`,children:v.content},C))})})]})}const I4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function Sa(e){const{t}=ge.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:i}=e||{},l=i||t("loader.loading","Loading");if(a==="bar"){const d=s==null||!Number.isFinite(Number(s)),u=d?0:Math.max(0,Math.min(100,Number(s)));return n.jsx("div",{className:`loader-bar${d?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d?void 0:u,"aria-label":l,children:n.jsx("div",{className:"loader-bar__inner",style:d?void 0:{width:`${u}%`}})})}const c=typeof r=="number"?`${r}px`:r;return n.jsxs("div",{className:"loader-spinner",style:{width:c,height:c},role:"status","aria-label":l,children:[n.jsx("span",{style:I4,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 Fl({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:s,labelPosition:i="right",className:l="",id:c}){const d=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"&&d,n.jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:u=>t?.(u.target.checked),"aria-label":!r&&s?s:void 0}),n.jsx("span",{className:"toggle__slider"}),i==="right"&&d]})}function Ol({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:s,size:i="medium",className:l,title:c,ariaLabel:d}){const u=o.useRef(null),p=o.useId(),m=o.useRef(!!r);return m.current=!!r,o.useEffect(()=>{u.current&&(u.current.indeterminate=!!r)}),n.jsxs("label",{className:De("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:p,title:c,children:[n.jsx("input",{ref:u,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:h=>{t?.(h.target.checked),u.current&&(u.current.indeterminate=m.current)},disabled:a,"aria-label":!s&&d?d:void 0}),n.jsx("span",{className:"checkbox__box"}),s&&n.jsx("span",{className:"checkbox__label body-3",children:s})]})}function F4({count:e,actions:t,onClear:a,clearLabel:r,visible:s,content:i,max:l}){const{t:c}=ge.useTranslation(),d=s!==void 0?s:e>0,u=r??c("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=o.useRef(null),m=o.useRef(null),h=o.useRef(null),b=o.useRef(d);o.useLayoutEffect(()=>{const g=m.current,x=b.current;if(b.current=d,d&&!x){const y=typeof document<"u"?document.activeElement:null;h.current=y&&y!==document.body&&!g?.contains(y)?y:null}else!d&&x&&g&&g.contains(document.activeElement)&&Va(g,h.current)},[d]);const[v,C]=o.useState(!1),w=o.useRef(!1),f=o.useRef(null);return o.useEffect(()=>{const g=p.current;if(!g)return;const x=A=>{w.current=A,C(A)},y=()=>{const A=g.firstElementChild??g,S=Array.from(A.children);if(S.length<2){x(!1);return}const O=S[0].offsetTop,H=S.some(I=>I.offsetTop!==O);if(!w.current){f.current=g.clientWidth,H&&x(!0);return}if(H)return;const j=S[0],q=S[S.length-1],E=q.offsetLeft+q.offsetWidth-j.offsetLeft,M=f.current;(M==null||E<=M)&&x(!1)};if(y(),typeof ResizeObserver>"u")return;const k=new ResizeObserver(y);k.observe(g);const _=g.parentElement;let B=_?.clientWidth??0;const N=new ResizeObserver(()=>{const A=_?.clientWidth??0;A!==B&&(B=A,f.current=null,y())});return _&&N.observe(_),()=>{k.disconnect(),N.disconnect()}},[i,e]),n.jsxs("div",{ref:m,className:`bulk-bar ${d?"bulk-bar--visible":""}`,inert:!d||void 0,"aria-hidden":d?void 0:!0,children:[n.jsx("span",{ref:p,className:"bulk-bar__count body-2",role:"status",children:i??n.jsx("b",{children:c("common.selectedCount",{count:e})})}),l!==void 0&&n.jsx(ht,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),n.jsxs("div",{className:`bulk-bar__actions${v?" bulk-bar__actions--stacked":""}`,children:[n.jsx(le,{htmlType:"button",size:40,label:u,onClick:a}),t.map((g,x)=>n.jsx(le,{htmlType:"button",size:40,variant:g.variant??"default",icon:g.icon,label:g.label,onClick:g.onClick},x))]})]})}function Hl(e,t){const a=()=>{if(e){const[C,w]=e.split("-");return{y:+C,m:+w-1}}const[b,v]=Lr(t).split("-");return{y:+b,m:+v-1}},[r,s]=o.useState(()=>a().y),[i,l]=o.useState(()=>a().m),c=o.useRef(e);o.useEffect(()=>{if(e===c.current)return;c.current=e;const b=a();s(b.y),l(b.m)},[e]);const d=o.useRef({y:r,m:i});o.useEffect(()=>{d.current={y:r,m:i}},[r,i]);const u=o.useCallback(b=>{const v=d.current.y*12+d.current.m+b,C=Math.floor(v/12),w=v-C*12;d.current={y:C,m:w},s(C),l(w)},[]),p=o.useCallback(()=>u(-1),[u]),m=o.useCallback(()=>u(1),[u]),h=o.useCallback((b,v)=>{d.current={y:b,m:v},s(b),l(v)},[]);return{viewY:r,viewM:i,prevMonth:p,nextMonth:m,setViewYM:h}}function Za(e,t){return new Date(e,t+1,0).getDate()}function O4(e,t){return new Date(e,t,1).getDay()}function Xa(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function H4(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function z4(e,t,a,r){const s=a?+a.split("-")[0]:e-10,i=r?+r.split("-")[0]:e+10,l=[];for(let c=s;c<=i;c++)for(let d=0;d<12;d++){const u=`${c}-${String(d+1).padStart(2,"0")}`;a&&u<a.slice(0,7)||r&&u>r.slice(0,7)||l.push({value:u,label:t(c,d+1)})}return l}function V4({value:e,onChange:t,size:a=48,min:r,max:s,disabled:i,placeholder:l,className:c,today:d}){const{t:u}=ge.useTranslation(),p=l??u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),m=o.useMemo(()=>u("calendar.dow",{returnObjects:!0}),[u]),h=Lr(d),{viewY:b,viewM:v,prevMonth:C,nextMonth:w,setViewYM:f}=Hl(e,d),g=o.useId(),x=o.useCallback((D,F)=>{const P=window.innerHeight,R=window.innerWidth,L=typeof document<"u"?document.getElementById(g):null,K=L?.offsetHeight||300,U=Math.max(D.width,L?.offsetWidth||0,260),ee=P-D.bottom<K&&D.top>K,ae=8,Be=(ie,se)=>Math.min(Math.max(ae,ie),Math.max(ae,se));return{position:"fixed",left:Be(D.left,R-U-ae),width:D.width,minWidth:260,...ee?{bottom:Be(P-D.top+6,P-K-ae)}:{top:Be(D.bottom+6,P-K-ae)},zIndex:va(F)}},[g]),{open:y,setOpen:k,toggle:_,style:B,triggerRef:N,menuRef:A}=xa({computeStyle:x,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!y)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(gn)??D)?.focus?.(),()=>{const F=document.activeElement;(!F||F===document.body)&&N.current?.focus?.()}},[y,A,N]);const[S,O]=o.useState(1),H=o.useRef(null),j=o.useRef(null);o.useEffect(()=>{if(!y)return;const D=e&&e.slice(0,7)===`${b}-${String(v+1).padStart(2,"0")}`?+e.slice(8):h.slice(0,7)===`${b}-${String(v+1).padStart(2,"0")}`?+h.slice(8):1;O(D)},[y]),o.useEffect(()=>{if(j.current==null)return;const D=j.current;j.current=null,H.current?.querySelector(`[data-day="${D}"]`)?.focus()}),o.useEffect(()=>{O(D=>Math.min(D,Za(b,v)))},[b,v]);const q=o.useCallback(D=>{let F=Xa(D.getFullYear(),D.getMonth(),D.getDate());r&&F<r&&(F=r),s&&F>s&&(F=s);const[P,R,L]=F.split("-").map(Number);(P!==b||R-1!==v)&&f(P,R-1),O(L),j.current=L},[r,s,b,v,f]),E=o.useCallback(D=>{const F=new Date(b,v,S),P=L=>{F.setDate(F.getDate()+L),q(F)},R=L=>{const K=F.getFullYear()*12+F.getMonth()+L,U=Math.floor(K/12),ee=K-U*12;q(new Date(U,ee,Math.min(F.getDate(),Za(U,ee))))};switch(D.key){case"ArrowLeft":P(-1);break;case"ArrowRight":P(1);break;case"ArrowUp":P(-7);break;case"ArrowDown":P(7);break;case"Home":P(-F.getDay());break;case"End":P(6-F.getDay());break;case"PageUp":D.shiftKey?R(-12):R(-1);break;case"PageDown":D.shiftKey?R(12):R(1);break;default:return}D.preventDefault()},[b,v,S,q]),M=o.useCallback(D=>{i||(t(Xa(b,v,D)),k(!1))},[b,v,t,k,i]);o.useEffect(()=>{i&&k(!1)},[i,k]);const I=D=>{const F=Xa(b,v,D);return!!(r&&F<r||s&&F>s)},G=(()=>{const D=Za(b,v);if(S>=1&&S<=D&&!I(S))return S;for(let F=1;F<=D;F++)if(!I(F))return F;return-1})(),Z=[];for(let D=0;D<O4(b,v);D++)Z.push(null);for(let D=1;D<=Za(b,v);D++)Z.push(D);const Y=a===64?20:a===40?16:18,z=z4(b,(D,F)=>u("calendar.yearMonth",{year:D,month:F,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,s),J=`${b}-${String(v+1).padStart(2,"0")}`,$=y?Ut.createPortal(n.jsxs("div",{ref:A,id:g,className:"date-picker__dropdown",style:B,"data-tooltip-ignore":!0,role:"dialog","aria-label":u("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":u("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(os,{size:16,strokeWidth:2})}),n.jsx(rn,{className:"date-picker__nav-dropdown",ariaLabel:u("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:z,value:J,onChange:D=>{const[F,P]=D.split("-");f(+F,+P-1)},block:!0,size:40}),n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:w,"aria-label":u("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(ss,{size:16,strokeWidth:2})})]}),n.jsxs("div",{className:"date-picker__grid",ref:H,onKeyDown:E,children:[m.map(D=>n.jsx("div",{className:"date-picker__dow caption-1",children:D},D)),Z.map((D,F)=>{if(D===null)return n.jsx("div",{},`e${F}`);const P=Xa(b,v,D),R=P===e,L=P===h,K=I(D),U=F%7;return n.jsx("button",{type:"button",disabled:K,"data-day":D,tabIndex:D===G?0:-1,"aria-current":L?"date":void 0,onClick:()=>!K&&M(D),className:De("date-picker__day caption-1",R&&"date-picker__day--selected",L&&!R&&"date-picker__day--today",K&&"date-picker__day--disabled",U===0&&"date-picker__day--sun",U===6&&"date-picker__day--sat"),children:D},D)})]})]}),document.body):null;return n.jsxs("div",{className:De("date-picker",`date-picker--s${a}`,y&&"date-picker--open",c),children:[n.jsxs("button",{ref:N,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&_(),disabled:i,"aria-haspopup":"true","aria-expanded":y,children:[n.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?H4(e):p}),n.jsx(fs,{size:Y,className:"date-picker__icon",strokeWidth:1.5})]}),$]})}function zl({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 d=typeof window<"u"&&window.getComputedStyle(i).position==="absolute"?Math.ceil(i.getBoundingClientRect().width):0;d>0?r.style.setProperty("--section-head-float-w",`${d}px`):r.style.removeProperty("--section-head-float-w")};if(l(),typeof ResizeObserver>"u")return()=>{r.style.removeProperty("--section-head-float-w")};const c=new ResizeObserver(()=>l());return c.observe(i),c.observe(r),()=>{c.disconnect(),r.style.removeProperty("--section-head-float-w")}},[r,e]),n.jsx("div",{ref:a,className:De("section-head-float",t),children:e})}function io({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 Da({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 lo({title:e,titleClassName:t="h3",icon:a,disc:r,headRight:s,headFloat:i,headSegment:l,headMenuItems:c,collapseBelow:d=420,onClick:u,ariaLabel:p,tooltip:m,totalNum:h,totalUnit:b,totalLabel:v,subRow:C,subRowAlign:w="start",className:f,inGrid:g=!1,children:x}){const{t:y}=ge.useTranslation(),k=o.useRef(null),{anchorRect:_,openAt:B,close:N}=ya(),A=o.useCallback(()=>{m&&k.current&&B(k.current)},[m,B]),[S,O]=o.useState(!1);oo(()=>{const $=k.current;if(!$||!l)return;const D=P=>O(P>0&&P<d);if(D($.clientWidth),typeof ResizeObserver>"u")return;const F=new ResizeObserver(P=>D(P[0].contentRect.width));return F.observe($),()=>F.disconnect()},[l,d]);const[H,j]=o.useState(null),q=o.useCallback(()=>j(null),[]),E=o.useCallback($=>{const D=$.currentTarget.getBoundingClientRect();j(F=>F?null:{left:D.left,right:D.right,top:D.top,bottom:D.bottom,width:D.width,height:D.height,x:D.x,y:D.y})},[]),M=!!l&&S;o.useEffect(()=>{M||j(null)},[M]);const I=l?[...l.options.map($=>({label:$.label,icon:$.icon,selected:$.key===l.value,disabled:$.disabled,onClick:()=>l.onChange($.key),closeOnSelect:!0})),...(c??[]).map(($,D)=>D===0?{...$,separatorBefore:!0}:$)]:[],G=o.useCallback($=>{if(!u)return;const D=$.target;D&&typeof D.closest=="function"&&D.closest('button, a, input, select, textarea, [role="radiogroup"]')||u()},[u]),Z=o.useCallback($=>{u&&$.target===$.currentTarget&&($.key==="Enter"||$.key===" ")&&($.preventDefault(),u())},[u]),Y=typeof s=="function"?s({collapsed:M}):s,z=h!=null||v?n.jsxs(Da,{label:v,children:[h!=null&&n.jsx("span",{className:"barchart-total__num h0",children:h}),b&&n.jsx("span",{className:"barchart-total__unit h5",children:b})]}):null,J=Y||l?n.jsxs("div",{className:"manager-section__head-right",children:[l&&(M?n.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"ellipsis",ariaLabel:l.ariaLabel??y("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:l.ariaLabel??y("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!H,onClick:E}):n.jsx(_n,{size:32,ariaLabel:l.ariaLabel,options:l.options.map($=>({key:$.key,label:$.label,disabled:$.disabled})),value:l.value,onChange:l.onChange})),Y]}):null;return n.jsxs("section",{ref:k,className:["manager-section",g&&"manager-section--grid",u&&"manager-section--clickable",f].filter(Boolean).join(" "),onClick:u?G:void 0,onKeyDown:u?Z:void 0,onPointerEnter:m?A:void 0,onPointerLeave:m?N:void 0,onFocus:m?A:void 0,onBlur:m?N:void 0,role:u?"button":void 0,tabIndex:u?0:void 0,"aria-label":u?p??(typeof e=="string"?e:void 0):void 0,children:[m&&_&&n.jsx(bn,{anchorRect:{left:_.left,top:_.top+21,right:_.right,bottom:_.bottom,width:_.width,height:_.height},text:m}),i&&n.jsx(zl,{children:i}),n.jsxs("div",{className:"manager-section__head",children:[n.jsxs("div",{className:"manager-section__title-row",children:[a&&n.jsx(Ke,{icon:a,label:typeof e=="string"?e:void 0,className:"manager-section__icon"}),n.jsx("div",{className:["manager-section__title",t].filter(Boolean).join(" "),children:e})]}),J,r&&n.jsx("div",{className:"manager-section__disc body-3",children:r})]}),(z||C)&&n.jsxs("div",{className:["barchart-sub-row",w!=="start"&&`barchart-sub-row--${w}`].filter(Boolean).join(" "),children:[z,C]}),x,H&&n.jsx(an,{anchorRect:H,onClose:q,ariaLabel:l?.ariaLabel??y("tooltip.menu","\uBA54\uB274"),children:n.jsx(_a,{columns:[{items:I}],onClose:q,size:"small"})})]})}function ln(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function W4(){const e=Kn();let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<ln(t,a)){const l=new Date(t,a,0);t=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const s=Math.floor((r-ln(t,a))/7),i=`${t}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${s}`}}function q4(e){const t=Kn(),a=`${t.getFullYear()}\uB144 ${t.getMonth()+1}\uC6D4`,r=(d,u)=>`${d}\uB144 ${u+1}\uC6D4`,s=new Map;s.set(a,[]);for(const d of e){if(isNaN(d.date.getTime()))continue;const u=r(d.date.getFullYear(),d.date.getMonth());s.has(u)||s.set(u,[]),s.get(u).push(d)}for(const[d,u]of[...s.entries()]){const p=d.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),h=Number(p[2])-1,b=ln(m,h);if(!(d===a&&t.getDate()<b)&&!u.some(w=>w.date.getDate()<b))continue;const v=new Date(m,h,0),C=r(v.getFullYear(),v.getMonth());s.has(C)||s.set(C,[])}const i=new Map;for(const[d,u]of s){const p=d.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),h=Number(p[2])-1,b=new Date(m,h+1,0).getDate(),v=u.reduce((y,k)=>Math.max(y,k.parts?.length??0,k.partsB?.length??0),0),C=u.some(y=>y.partsB),w=new Array(b+1).fill(0),f=new Array(b+1).fill(0),g=Array.from({length:b+1},()=>new Array(v).fill(0)),x=Array.from({length:b+1},()=>new Array(v).fill(0));for(const y of u){const k=y.date.getDate();if(w[k]+=y.a,f[k]+=y.b,y.parts)for(let _=0;_<v;_++)g[k][_]+=y.parts[_]??0;if(y.partsB)for(let _=0;_<v;_++)x[k][_]+=y.partsB[_]??0}i.set(d,{year:m,month:h,daysInMonth:b,partsLen:v,hasPartsB:C,dayA:w,dayB:f,dayParts:g,dayPartsB:x})}const l=(d,u,p)=>new Date(d,u,p).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),c={};for(const[d,u]of i){const{year:p,month:m,daysInMonth:h,dayA:b,dayB:v,dayParts:C,dayPartsB:w}=u,f=p===t.getFullYear()&&m===t.getMonth(),g=t.getDate(),x=i.get(r(m===11?p+1:p,(m+1)%12)),y=u.partsLen,k=[];for(let B=1;B<=h;B++){const N=f&&B>g;k.push({label:String(B),...N&&b[B]===0&&v[B]===0?{future:!0}:{},a:N&&b[B]===0&&v[B]===0?-1:b[B],b:v[B],...y?{parts:C[B]}:{},...y&&u.hasPartsB?{partsB:w[B]}:{}})}const _=[];for(let B=ln(p,m);B<=h;B+=7){const N=Math.max(0,B+6-h),A=N&&x?Math.max(y,x.partsLen):y,S=u.hasPartsB||!!(N&&x?.hasPartsB);let O=0,H=0;const j=new Array(A).fill(0),q=new Array(A).fill(0);for(let M=B;M<=Math.min(B+6,h);M++){O+=b[M],H+=v[M];for(let I=0;I<y;I++)j[I]+=C[M][I],q[I]+=w[M][I]}if(N&&x)for(let M=1;M<=N&&!l(x.year,x.month,M);M++){O+=x.dayA[M],H+=x.dayB[M];for(let I=0;I<x.partsLen;I++)j[I]+=x.dayParts[M][I],q[I]+=x.dayPartsB[M][I]}const E=N?`${(m+1)%12+1}/${N}`:`${B+6}`;_.push({label:`${_.length+1}\uC8FC`,sublabel:`[${B}\uC77C~${E}\uC77C]`,a:O,b:H,...A?{parts:j}:{},...A&&S?{partsB:q}:{}})}c[d]={weekly:_,daily:k}}return c}function Vl(){const e=Kn(),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 c=`${s}\uB144 ${l}\uC6D4`;r.push({value:c,label:c,year:s,month:l})}}return r.reverse()}Vl();function U4(){return Vl()}const Wl=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function ql(e){const{t,i18n:a}=ge.useTranslation(),[r,s]=o.useState("week"),i=o.useMemo(()=>U4().filter(A=>A.value in e),[e]),l=o.useMemo(()=>{const A=[];for(const S of i){const O=new Date(S.year,S.month,0).getDate(),H=ln(S.year,S.month-1),j=Math.ceil((O-H+1)/7);for(let q=j-1;q>=0;q--)A.push({value:`${S.value}#${q}`,monthKey:S.value,year:S.year,month:S.month,week:q})}return A},[i]),c=o.useCallback(A=>{const S=t("calendar.yearMonth",{year:A.year,month:A.month});return a.language?.startsWith("ko")?`${S} ${Wl[A.week]??`${A.week+1}`}\uC8FC`:`${S} Week ${A.week+1}`},[t,a.language]),d=o.useMemo(()=>i.map(A=>({value:A.value,label:t("calendar.yearMonth",{year:A.year,month:A.month})})),[t,i]),u=o.useMemo(()=>l.map(A=>({value:A.value,label:c(A)})),[l,c]),p=o.useMemo(()=>W4(),[e]),m=o.useMemo(()=>i.find(A=>A.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),h=o.useMemo(()=>l.find(A=>A.value===p.value)?.value??l[0]?.value??"",[l,p]),[b,v]=o.useState(""),[C,w]=o.useState("");o.useEffect(()=>{i.find(A=>A.value===b)||v(m)},[i,b,m]),o.useEffect(()=>{l.find(A=>A.value===C)||w(h)},[l,C,h]);const f=r==="month"?d:u,g=r==="month"?b:C,x=r==="month"?v:w,y=o.useMemo(()=>{const A=t("calendar.dow",{returnObjects:!0});return Array.isArray(A)?A:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),k=f.findIndex(A=>A.value===g),_=o.useCallback(()=>{const A=f.findIndex(S=>S.value===g);A<f.length-1&&x(f[A+1].value)},[f,g,x]),B=o.useCallback(()=>{const A=f.findIndex(S=>S.value===g);A>0&&x(f[A-1].value)},[f,g,x]),N=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:g,setRange:x,activeOptions:f,activeIdx:k,handlePrev:_,handleNext:B,periodOptions:N,monthRange:b,weekRange:C,weekRanges:l,DOW:y}}const ct=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function wn(e,t=!0){return e.future===!0||t&&e.a===-1}function G4({data:e,colorA:t,colorB:a,labelA:r,labelB:s,barWidth:i=10,barGap:l=1,height:c=140,maxOverride:d,tightMax:u,seriesColors:p,seriesLabels:m,rateLabels:h,grouped:b=!1,baseline:v}){const C=!a,w=!!(p&&p.length>0),f=v,g=o.useMemo(()=>w?Math.max(0,...e.filter(M=>!wn(M,f==null)).map(M=>b?Math.max(0,...(M.parts??[]).map(ct)):(M.parts??[]).reduce((I,G)=>I+Math.max(0,ct(G)),0))):Math.max(0,...e.filter(M=>!wn(M,f==null)).flatMap(M=>C?[ct(M.a)]:[ct(M.a),ct(M.b)])),[e,C,w,b]),x=o.useMemo(()=>{if(f==null)return 0;const M=e.filter(I=>!wn(I,f==null)).flatMap(I=>w?(I.parts??[]).map(ct):C?[ct(I.a)]:[ct(I.a),ct(I.b)]);return Math.max(0,...M.map(I=>Math.abs(I-f)))},[e,f,w,C]),y=o.useMemo(()=>{const M=f!=null?x:g;return d??(u?M>0?M:10:Math.ceil(M/10)*10||10)},[g,x,f,d,u]),k=c,_=w?b?Math.max(1,p.length):1:C?1:2,B={"--bar-width":`${o.useMemo(()=>{const M=Math.max(1,e.length);return Math.max(2,Math.min(i,Math.round(120/(M*_)+6)))},[e.length,_,i])}px`},N={"--bar-group-gap":`${Math.max(0,l)}px`},A=o.useMemo(()=>{const M=Math.round(y/2);return f!=null?[f+y,...M!==y?[f+M]:[],f,...M!==y?[f-M]:[],f-y]:M!==y?[y,M,0]:[y,0]},[y,f]),S=M=>f!=null?1-(M-(f-y))/(2*y):1-M/y,[O,H]=o.useState(null),j=o.useCallback(()=>H(null),[]),q=M=>f!=null&&M>f?`+${M}`:`${M}`,E=O!=null;return o.useEffect(()=>{if(!E)return;const M=()=>H(null),I=G=>{const Z=G.target;Z&&typeof Z.closest=="function"&&Z.closest(".manager-bar-chart-col")||H(null)};return window.addEventListener("scroll",M,!0),document.addEventListener("pointerdown",I,!0),()=>{window.removeEventListener("scroll",M,!0),document.removeEventListener("pointerdown",I,!0)}},[E]),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:k},children:[A.slice(0,-1).map((M,I)=>n.jsx("div",{className:`manager-bar-chart-gridline${f!=null&&M===f?" manager-bar-chart-gridline--baseline":""}`,style:{top:S(M)*k},children:n.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:M})},I)),e.map((M,I)=>{const G=wn(M,f==null),Z=k/2,Y=D=>f!=null?Math.min(Z,Math.abs(ct(D)-f)/y*Z):Math.min(k,Math.max(0,ct(D)/y*k)),z=G?0:Y(M.a),J=G?0:Y(M.b),$=(M.parts??[]).map(ct);return n.jsx("div",{className:`manager-bar-chart-col${b&&w?" manager-bar-chart-col--group":""}`,style:{cursor:G?"default":"pointer"},onMouseEnter:G?void 0:D=>{const F=D.currentTarget.getBoundingClientRect(),P=[M.label,M.sublabel].filter(Boolean).join(" ");let R;if(w&&b&&M.rawPartsB)R=(m??[]).map((L,K)=>{const U=M.rawPartsB[K]??0;return{text:U>0?`${L}: ${$[K]??0}% (${M.rawParts?.[K]??0}/${U})`:`${L}: -`,color:(p??[])[K]}});else if(w&&b)R=(m??[]).map((L,K)=>({text:`${L}: ${q($[K]??0)}`,color:(p??[])[K]}));else if(w){const L=(m??[]).map((U,ee)=>({text:`${U}: ${$[ee]??0}`,color:(p??[])[ee]})),K=L.filter((U,ee)=>($[ee]??0)>0);R=K.length?K:L}else h&&!C?R=[{text:`${r} ${ct(M.a)}%`,color:t},{text:`${s} ${ct(M.b)}%`,color:a}]:h&&M.rawB!==void 0?R=[{text:`${h.total} ${M.rawB}`},{text:`${h.done} ${M.rawA??0}`,color:t}]:C?R=[{text:`${r}: ${ct(M.a)}`,color:t}]:R=[{text:`${r}: ${ct(M.a)}`,color:t},{text:`${s}: ${ct(M.b)}`,color:a}];H({rect:{left:F.left,top:F.top,right:F.right,bottom:F.bottom,width:F.width,height:F.height},title:P,items:R})},onMouseLeave:j,children:!G&&(w&&b?(p??[]).map((D,F)=>{const P=$[F]??0;if(f==null)return n.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:Y(P),background:D}},F);const R=ct(P)<f;return n.jsxs("div",{className:"manager-bar-chart-slot",style:B,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!R&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:Y(P),background:D}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:R&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:Y(P),background:D}})})]},F)}):w?n.jsx("div",{className:"manager-bar-chart-stack",style:B,children:(()=>{const D=$.reduce((P,R,L)=>R>0?L:P,-1);let F=k;return $.map((P,R)=>{if(P<=0)return null;const L=Math.min(F,P/y*k);return F-=L,n.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:L,background:(p??[])[R],borderRadius:R===D?"6px 6px 0 0":void 0}},R)})})()}):f!=null?n.jsx(n.Fragment,{children:[{v:ct(M.a),c:t},...C?[]:[{v:ct(M.b),c:a}]].map(({v:D,c:F},P)=>n.jsxs("div",{className:"manager-bar-chart-slot",style:B,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:D>=f&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:Y(D),background:F}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:D<f&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:Y(D),background:F}})})]},P))}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:z,background:t}}),!C&&n.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:J,background:a}})]}))},I)})]}),n.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((M,I)=>{const G=wn(M,f==null);return n.jsxs("span",{className:`manager-bar-chart-x-axis__label${G?" manager-bar-chart-x-axis__label--future":""}`,children:[n.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[M.isToday&&n.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),M.label]}),M.sublabel&&n.jsx("span",{className:"caption-1",children:M.sublabel})]},I)})})]})})}),O&&n.jsx(Fn,{anchorRect:O.rect,title:O.title,items:O.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Ul({control:e}){const{t}=ge.useTranslation(),{activeOptions:a,activeIdx:r,range:s,setRange:i,handlePrev:l,handleNext:c,periodOptions:d,period:u,setPeriod:p}=e,m=u==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),h=u==="week"?t("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):t("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return n.jsxs("div",{className:"manager-section-controls",children:[n.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:m,showTooltipInfo:m,disabled:r===a.length-1,onClick:l}),n.jsx(rn,{value:s,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),n.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:h,showTooltipInfo:h,disabled:r<=0,onClick:c}),n.jsx(_n,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:d,value:u,onChange:b=>p(b),size:40})]})}function co(e,t,a,r=!0){const s=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(i,l)=>{const c=new Date(t);c.setDate(t.getDate()+l);const d=(e[`${c.getFullYear()}\uB144 ${c.getMonth()+1}\uC6D4`]?.daily??[])[c.getDate()-1],u=d!=null&&wn(d,r)||c>s;return{dt:c,entry:d,isFuture:u}})}function K4(e,t,a,r,s=!0){const{period:i,monthRange:l,weekRange:c,weekRanges:d,DOW:u}=t,p=r?.startsWith("ko"),m=Kn(),h=m.getFullYear(),b=m.getMonth()+1,v=m.getDate();if(i==="month"){const f=e[l]??{weekly:[],daily:[]},g=l.match(/^(\d+)년 (\d+)월$/),x=g?Number(g[1]):null,y=g?Number(g[2]):null,k=x&&y?ln(x,y-1):1;return f.weekly.map((_,B)=>{const N=B+1;let A=_.label,S=!1,O=!1;if(x&&y){const H=k+B*7,j=new Date(x,y-1,H+6),q=j.getMonth()+1,E=j.getDate(),M=q===y?`${E}`:`${q}/${E}`;A=a("manager.chart.weekRange",{start:H,end:M});const I=new Date(h,b-1,v).getTime();S=I>=new Date(x,y-1,H).getTime()&&I<=j.getTime(),O=x>h||x===h&&(y>b||y===b&&H>v)}return{..._,label:A,sublabel:p?`${Wl[N-1]??N}\uC8FC`:`Week ${N}`,isToday:S,future:_.future===!0||O||void 0,a:O?-1:_.a,b:O?0:_.b}})}const C=d.find(f=>f.value===c);if(!C)return[];const w=new Date(C.year,C.month-1,ln(C.year,C.month-1)+C.week*7);return co(e,w,m,s).map(({dt:f,entry:g,isFuture:x})=>{const y=f.getMonth()+1,k=f.getDate(),_=f.getFullYear();return{label:y===C.month&&_===C.year?`${k}`:`${y}/${k}`,sublabel:u[f.getDay()]??"",future:x||void 0,a:x?-1:g&&g.a>0?g.a:0,b:x?0:g&&g.b>0?g.b:0,isToday:_===h&&y===b&&k===v,...g?.parts?{parts:x?g.parts.map(()=>0):g.parts}:{},...g?.partsB?{partsB:x?g.partsB.map(()=>0):g.partsB}:{}}})}const Y4={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function Z4({size:e="medium",barWidth:t,titleKey:a,data:r,colorA:s,colorB:i,labelAKey:l,labelBKey:c,showTotal:d=!1,totalUnitKey:u,totalLabelKey:p,control:m,hideControls:h=!1,rate:b=!1,rateAgg:v="dayMean",tightMax:C=!1,avgMode:w=!1,totalFormat:f,series:g,seriesMode:x="stack",loading:y=!1,onDetail:k,headExtra:_,headSegment:B,icon:N,disc:A,onClick:S,cardAriaLabel:O,cardTooltip:H,detailSize:j=32,barGap:q,baseline:E,className:M,inGrid:I=!1}){const{t:G,i18n:Z}=ge.useTranslation(),Y=Y4[e],z=ql(r),J=m??z,$=o.useMemo(()=>K4(r,J,G,Z.language,E==null),[r,J,G,Z.language,E]),D=x==="group"&&!!g&&g.length>0;q!=null&&!D&&Cn("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(!b)return $;const U=J.period==="month"?J.monthRange.match(/^(\d+)년 (\d+)월$/):null,ee=Kn(),ae=g?.length??0,Be=ie=>{const se=[],W=[],re=[];for(let pe=0;pe<ae;pe++){let ve=0,Ce=0,Ae=0;for(const he of ie){const be=ct(he.a[pe]),Te=ct(he.b[pe]);Te<=0||(ve+=be,Ce+=Te,Ae+=be/Te*100)}se.push(v==="weighted"?Ce>0?Math.round(ve/Ce*100):0:ie.length?Math.round(Ae/ie.length):0),W.push(ve),re.push(Ce)}return{pct:se,ra:W,rb:re}};return $.map((ie,se)=>{let W=ie.a===-1?-1:ie.b>0?Math.round(ie.a/ie.b*100):0;if(U&&!wn(ie)){const pe=Number(U[1]),ve=Number(U[2])-1,Ce=co(r,new Date(pe,ve,ln(pe,ve)+se*7),ee).filter(Ae=>!Ae.isFuture);if(v==="weighted"){let Ae=0,he=0;for(const{entry:be}of Ce)be&&be.b>0&&(Ae+=be.a,he+=be.b);W=he>0?Math.round(Ae/he*100):0}else W=Ce.length?Math.round(Ce.reduce((Ae,{entry:he})=>Ae+(he&&he.b>0?he.a/he.b*100:0),0)/Ce.length):0}let re=null;if(D&&!wn(ie)){let pe;if(U){const Ce=Number(U[1]),Ae=Number(U[2])-1;pe=co(r,new Date(Ce,Ae,ln(Ce,Ae)+se*7),ee).filter(he=>!he.isFuture).map(({entry:he})=>({a:he?.parts??[],b:he?.partsB??[]}))}else pe=[{a:ie.parts??[],b:ie.partsB??[]}];const ve=Be(pe);re={parts:ve.pct,rawParts:ve.ra,rawPartsB:ve.rb}}return{...ie,a:W,b:ie.a===-1?0:c&&ie.parts&&ie.parts[1]>0?Math.round(ie.parts[0]/ie.parts[1]*100):0,rawA:ie.a===-1?-1:ie.a,rawB:ie.b,...re??{}}})},[$,b,v,c,J.period,J.monthRange,r,D,g?.length]),P=o.useMemo(()=>{if(b||w){const ee=(J.period==="week"?$:r[J.monthRange]?.daily??[]).filter(Be=>Be.a!==-1);if(ee.length===0)return 0;if(b&&v==="weighted"){let Be=0,ie=0;for(const se of ee)se.b>0&&(Be+=se.a,ie+=se.b);return ie>0?Math.round(Be/ie*100):0}const ae=b?ee.reduce((Be,ie)=>Be+(ie.b>0?ie.a/ie.b*100:0),0):ee.reduce((Be,ie)=>Be+(ie.a>0?ie.a:0),0);return Math.round(ae/ee.length)}const U=J.period==="month"?r[J.monthRange]?.daily??[]:F;return E!=null?U.reduce((ee,ae)=>ee+(wn(ae,!1)?0:ct(ae.a)+(c?ct(ae.b):0)),0):U.reduce((ee,ae)=>ee+(ae.a>0?ae.a:0)+(c&&ae.b>0?ae.b:0),0)},[F,$,b,v,w,E,c,J.period,J.monthRange,r]),R=g&&g.length>0?g.map(U=>({color:U.color,label:U.label})):[{color:s,label:G(l)},...c?[{color:i,label:G(c)}]:[]],L=e==="small",K=[L?"manager-section--compact":e==="large"?"manager-section--full":void 0,M].filter(Boolean).join(" ")||void 0;return n.jsx(lo,{className:K,inGrid:I,icon:N,disc:A,onClick:S,ariaLabel:O,tooltip:H,headSegment:B,headMenuItems:k?[{label:G("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),icon:"list",onClick:k,closeOnSelect:!0}]:void 0,title:G(a),titleClassName:L?"h5 chart-section-title--small":void 0,headRight:L?_??void 0:({collapsed:U})=>n.jsxs(n.Fragment,{children:[!h&&n.jsx(Ul,{control:J}),_,k&&!U&&n.jsx("span",{className:"manager-bar-chart-detail-btn",children:n.jsx(le,{htmlType:"button",size:j,type:"dot",icon:"list",ariaLabel:G("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),showTooltipInfo:G("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:k})})]}),subRow:n.jsxs(n.Fragment,{children:[d?b||w||p&&f?n.jsx(Da,{label:L?void 0:`${G(J.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${G(p??l)}`,children:f?(f(P).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((U,ee)=>/\d/.test(U)?n.jsx("span",{className:"barchart-total__num h0",children:U},ee):n.jsx("span",{className:"barchart-total__unit h5",children:U},ee)):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"barchart-total__num h0",children:P}),u&&n.jsx("span",{className:"barchart-total__unit h5",children:G(u)})]})}):n.jsxs(Da,{children:[n.jsx("span",{className:"barchart-total__num h0",children:P}),n.jsx("span",{className:"barchart-total__unit h5",children:G(l)}),u&&n.jsx("span",{className:"barchart-total__unit h5",children:G(u)})]}):n.jsx("span",{}),n.jsx(io,{items:R,className:"caption-1"})]}),children:y?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:Y.height},children:n.jsx(Sa,{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(U=>!!U.sublabel)&&n.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):n.jsx(G4,{data:F,colorA:s,colorB:c?i:void 0,labelA:G(l),labelB:c?G(c):void 0,barWidth:t??Y.barWidth,barGap:q,baseline:E,height:Y.height,maxOverride:b?100:void 0,tightMax:C,seriesColors:g?.map(U=>U.color),seriesLabels:g?.map(U=>U.label),rateLabels:b?{total:G("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:G("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:D})})}const Gl=120,X4={left:38,right:16,top:26,bottom:24};function J4({points:e=[],range:t,ticks:a=[],axisTitle:r,color:s,height:i=156,fallbackWidth:l=320,insets:c,overlay:d,ariaLabel:u,className:p}){const[m,h]=o.useState(null),[b,v]=o.useState(null);o.useEffect(()=>{if(!b)return;const I=Z=>h(Math.round(Z)||null);if(I(b.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const G=new ResizeObserver(([Z])=>I(Z.contentRect.width));return G.observe(b),()=>{G.disconnect()}},[b]);const{payload:C,anchorRect:w,openAfterDelay:f,close:g}=ob(Gl),x=o.useCallback((I,G)=>{I&&f(I,G.getBoundingClientRect())},[f]),y=m??l,k=i,{left:_,right:B,top:N,bottom:A}={...X4,...c},[S,O]=t,H=I=>O===S?_:_+(y-_-B)*(I-S)/(O-S),j=I=>N+(k-N-A)*(100-I)/100,q={x:H,y:j,plot:{left:_,right:y-B,top:N,bottom:k-A,width:Math.max(0,y-_-B),height:Math.max(0,k-N-A)}},E=e.filter(I=>!I.hollow),M=s??"var(--color-main)";return n.jsxs(n.Fragment,{children:[n.jsxs("svg",{ref:v,className:De("line-chart",p),viewBox:`0 0 ${y} ${k}`,role:"img","aria-label":u??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:_,x2:y-B,y1:j(I),y2:j(I)}),n.jsxs("text",{className:"line-chart__tick",x:_-6,y:j(I)+4,textAnchor:"end",children:[I,"%"]})]},I)),d?.(q),a.map(I=>n.jsx("text",{className:"line-chart__tick",x:H(I.x),y:k-5,textAnchor:"middle",children:I.label},I.x)),E.length>1&&n.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:M,points:E.map(I=>`${H(I.x)},${j(I.pct)}`).join(" ")}),e.map(I=>n.jsxs("g",{className:"line-chart__dot",onPointerEnter:G=>x(I.description,G.currentTarget),onPointerLeave:g,children:[n.jsx("circle",{className:"line-chart__dot-hit",cx:H(I.x),cy:j(I.pct),r:12}),n.jsx("circle",{className:De("line-chart__dot-main",I.hollow&&"is-hollow"),cx:H(I.x),cy:j(I.pct),r:4,stroke:M,fill:I.hollow?void 0:M})]},I.x))]}),C!=null&&n.jsx(an,{anchorRect:w,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:C,children:C})]})}const Kl=(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")}`},Yl=(e,t,a,r)=>({from:ii(e,t,a),to:new Date(ii(e,t,a+r).getTime()-1),fromYmd:Kl(e,t,a),toYmd:Kl(e,t,a+r-1)});function Q4(e,t=0){if(e.period==="month"){const s=e.monthRange.match(/^(\d+)년 (\d+)월$/),i=Kn(),l=s?Number(s[1]):i.getFullYear(),c=(s?Number(s[2]):i.getMonth()+1)-1+t,d=new Date(Date.UTC(l,c+1,0)).getUTCDate();return Yl(l,c,1,d)}const a=e.weekRanges.find(s=>s.value===e.weekRange);if(!a){const s=new Date,i=Ca();return{from:s,to:s,fromYmd:i,toYmd:i}}const r=ln(a.year,a.month-1);return Yl(a.year,a.month-1,r+(a.week+t)*7,7)}const uo={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Zl(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function Xl({done:e,total:t,segments:a,color:r="var(--color-main)",size:s="medium",strokeWidth:i,label:l="%",hideCenter:c=!1,hideLabel:d=!1}){const u=typeof s=="number"?s:uo[s].diameter,p=i??(typeof s=="number"?12:uo[s].strokeWidth),m=u/2,h=(u-p)/2,b=2*Math.PI*h;if(a&&a.length>0){const f=a.reduce((g,x)=>{const y=g.length>0?g[g.length-1].acc:0,k=Number.isFinite(x.ratio)?x.ratio:0,_=Math.max(0,Math.min(k,1-y));return g.push({color:x.color,rotate:-90+y*360,dash:b*_,acc:y+_}),g},[]);return n.jsx("div",{className:"ring-chart",style:{width:u,height:u},children:n.jsxs("svg",{width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),f.map((g,x)=>g.dash>0&&n.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:g.color,strokeWidth:p,strokeDasharray:`${g.dash} ${b}`,strokeLinecap:"round",transform:`rotate(${g.rotate} ${m} ${m})`},x))]})})}const v=(t??0)>0?Math.min((e??0)/t,1):0,C=b*v,w=b-C;return n.jsxs("div",{className:"ring-chart",style:{width:u,height:u},children:[n.jsxs("svg",{width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),v>0&&n.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:r,strokeWidth:p,strokeDasharray:`${C} ${w}`,strokeLinecap:v<.02||v>.98?"butt":"round",transform:`rotate(-90 ${m} ${m})`})]}),!c&&n.jsxs("div",{className:`ring-chart__center${d?"":` ${u<=96?"ring-chart__center--small":s==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[n.jsx("span",{className:`ring-chart__pct ${u<=96?"h2":"h1"}`,children:Zl(v)}),!d&&n.jsx("span",{className:`ring-chart__label ${u<=96?"caption-2":"caption-1"}${u<=96||s==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function ey({titleKey:e,headRight:t,icon:a,showTotal:r,totalLabelKey:s,legend:i,loading:l,className:c,inGrid:d=!1,onClick:u,ariaLabel:p,tooltip:m,...h}){const{t:b}=ge.useTranslation();if(!e)return n.jsx(Xl,{...h});const v=(h.total??0)>0?Zl(Math.min((h.done??0)/h.total,1)):0,C=h.size==="small",w=typeof h.size=="number"?h.size:uo[h.size??"medium"].diameter,f=h.size==="large",g=[c,C?"manager-section--compact":f?"manager-section--full":""].filter(Boolean).join(" ")||void 0,x=a&&n.jsx("span",{className:"chart-section-icon",children:n.jsx(Ke,{icon:a,className:"chart-section-icon-inner"})});return n.jsx(lo,{className:g,inGrid:d,onClick:u,ariaLabel:p,tooltip:m,title:b(e),titleClassName:C?"h5 chart-section-title--small":void 0,headRight:x||(C?void 0:t),subRow:(r||i)&&n.jsxs(n.Fragment,{children:[r?n.jsxs(Da,{label:!C&&s?b(s):void 0,children:[n.jsx("span",{className:"barchart-total__num h0",children:v}),n.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):n.jsx("span",{}),i&&n.jsx(io,{items:i})]}),children:l?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:w,height:w},"aria-busy":"true",children:n.jsx(Sa,{size:32})})}):n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx(Xl,{...h,hideCenter:h.hideCenter??C})})})}function ty({label:e,value:t,change:a,changeType:r,icon:s,tooltip:i,onClick:l,children:c}){const d=o.useRef(null),{anchorRect:u,openAt:p,close:m}=ya(),h=o.useCallback(()=>{i&&d.current&&p(d.current)},[i,p]),b=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(w=>{l&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),l())},[l]);return n.jsxs("div",{ref:d,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?C:void 0,onPointerEnter:h,onPointerLeave:m,onFocus:h,onBlur:m,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,t,v].filter(w=>w!==void 0&&w!=="").join(" "):void 0,children:[i&&u&&n.jsx(bn,{anchorRect:{left:u.left,top:u.top+21,right:u.right,bottom:u.bottom,width:u.width,height:u.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(Ke,{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--${b??"neutral"} caption-1`,children:v})]}),c&&n.jsx("div",{className:"manager-stat-card__body",children:c})]})]})}function Jl({value:e,onChange:t,min:a=0,max:r=100,step:s=1,orientation:i="horizontal",size:l=24,disabled:c=!1,ariaLabel:d,length:u,className:p,label:m,formatValue:h,labelPos:b,labelAlign:v="right",showMinMax:C=!1,minLabel:w,maxLabel:f,showBgTick:g=!1,showFillTick:x=!1,tickStep:y,tickShape:k="dot"}){t&&!d&&Cn("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 _=Math.min(r,Math.max(a,e)),B=r>a?(_-a)/(r-a):0,N=i==="vertical",A=!t,S=D=>t?.(Number(D.target.value)),O=typeof u=="number"?`${u}px`:u,H={"--slider-ratio":String(B),"--slider-thumb":`${l}px`,...O?N?{height:O}:{width:O}:{}},j=y??s,q=(g||x)&&j>0&&r>a?Math.floor((r-a)/j+1e-6):0;if(q>0&&q<=100){const D=k!=="dash",F=U=>D?`radial-gradient(circle, ${U} 0.5px, transparent 1px)`:N?`linear-gradient(to bottom, transparent calc(50% - 2px), ${U} calc(50% - 2px), ${U} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${U} calc(50% - 2px), ${U} calc(50% + 2px), transparent calc(50% + 2px))`,P=D?"2px":"4px",R=[],L=[],K=[];for(let U=0;U<=q;U++){const ee=U*j/(r-a);if(ee>1+1e-6)break;const ae=`${((N?1-ee:ee)*100).toFixed(4)}%`,Be=ee<=B+1e-6;if(Be?!x:!g)continue;const ie=Be?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";R.push(F(ie)),L.push(N?`${P} var(--slider-thumb)`:`var(--slider-thumb) ${P}`),K.push(N?`center ${ae}`:`${ae} center`)}R.push(N?"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))"),L.push("100% 100%"),K.push("0 0"),H.backgroundImage=R.join(", "),H.backgroundSize=L.join(", "),H.backgroundPosition=K.join(", "),H.backgroundRepeat="no-repeat"}const E=h?h(_):m==="percent"?`${Math.round(r>a?(_-a)/(r-a)*100:0)}%`:m==="count"?`${_} / ${r}`:_===a&&w?w:_===r&&f?f:void 0,M=n.jsx("input",{type:"range",className:De("slider",`slider--${i}`,A&&"slider--static",!m&&!C&&p),min:a,max:r,step:s,value:_,disabled:c,readOnly:A,tabIndex:A?-1:void 0,"aria-label":d,"aria-valuetext":E,"aria-orientation":i,onChange:S,style:H});if(!m&&!C)return M;const I=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:w??a}),G=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:f??r}),Z=C?n.jsxs("div",{className:De("slider-track-group",`slider-track-group--${i}`,!m&&p),children:[N?G:I,M,N?I:G]}):M;if(!m)return Z;const Y=b??(N?"bottom":"right"),z=`${Math.round(r>a?(_-a)/(r-a)*100:0)}%`,J=h?h(_):m==="percent"?z:m==="count"?`${_} / ${r}`:String(_),$=n.jsx("span",{className:"slider-wrap__value body-3b",children:J});return n.jsxs("div",{className:De("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${Y}`,`slider-wrap--align-${v}`,p),children:[Z,$]})}const ny=.86,ay=250,po=(e,t,a,r)=>Math.round(Math.min(r,Math.max(a,e-t))),mo=(e,t,a,r)=>{const s=po(e,t,a,r);return`${s<0?"-":"+"}${Math.abs(s)} dB`};function ho({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:s,labelPos:i,labelAlign:l="right",floorDb:c=-60,refDb:d=-35,displayMin:u=-5,displayMax:p=25,className:m,ariaLabel:h}){const b=o.useRef(null),v=o.useRef(null),C=o.useRef(null),w=o.useRef(null),[f,g]=o.useState(null);o.useEffect(()=>{const _=M=>{const I=mo(M,d,u,p);C.current&&(C.current.textContent=I);const G=b.current;G&&(G.setAttribute("aria-valuenow",String(po(M,d,u,p))),G.setAttribute("aria-valuetext",I))},B=e??n2(t)??(f&&f.el===t?f.node:null),N=v.current;if(!B||!N){N?.style.setProperty("--meter-level","0"),_(c);let M=!1;return!e&&t&&Pa(t).then(I=>{!M&&I&&g({el:t,node:I})}),()=>{M=!0}}Dr();const A=new Float32Array(B.fftSize);let S=0,O=0,H=0,j=0,q=null;const E=M=>{const I=a2(B,A);S=I>S?I:S*ny;const G=S>1e-5?20*Math.log10(S):-1/0,Z=Math.max(c,G),Y=Z-d,z=Math.min(1,Math.max(0,(Y-u)/(p-u)));if(N.style.setProperty("--meter-level",z.toFixed(3)),O+=Z,H+=1,M-j>=ay){const J=O/H;q=q==null?J:q*.6+J*.4,_(q),O=0,H=0,j=M}w.current=requestAnimationFrame(E)};return w.current=requestAnimationFrame(E),()=>{w.current!=null&&cancelAnimationFrame(w.current),w.current=null}},[e,t,f,c,d,u,p]);const x=typeof r=="number"?`${r}px`:r,y=n.jsx("div",{className:"audio-meter__track",style:x?a==="vertical"?{height:x}:{width:x}:{},children:n.jsx("div",{ref:v,className:"audio-meter__fill"})}),k=i??(a==="vertical"?"bottom":"right");return n.jsxs("div",{ref:b,className:De("audio-meter",`audio-meter--${a}`,s&&`audio-meter--label-${k}`,s&&`audio-meter--align-${l}`,m),role:"meter","aria-label":h,"aria-valuemin":u,"aria-valuemax":p,"aria-valuenow":po(c,d,u,p),"aria-valuetext":mo(c,d,u,p),children:[y,s&&n.jsx("span",{ref:C,className:"audio-meter__value caption-2",children:mo(c,d,u,p)})]})}const Ql=260;function ec({message:e,position:t,duration:a,onClose:r}){const[s,i]=o.useState(!1),[l,c]=o.useState(!1),d=o.useRef(l),u=o.useRef(s);o.useEffect(()=>{d.current=l},[l]),o.useEffect(()=>{u.current=s},[s]);const p=o.useRef(null),m=o.useRef(""),h=o.useRef(r);o.useEffect(()=>{h.current=r});const b=a,v=o.useRef(null),C=o.useRef(0),w=o.useRef(0),f=o.useRef(!1),g=o.useRef(null),x=o.useRef(null),y=o.useRef(null),k=o.useRef(null),_=o.useRef(()=>{});_.current=A=>{A<0||(C.current=Date.now(),w.current=A,v.current=setTimeout(()=>{v.current=null,i(!1),g.current=setTimeout(()=>{c(!1);try{h.current()}catch{}},Ql)},A))};const B=o.useCallback(()=>{f.current||!v.current||(f.current=!0,clearTimeout(v.current),v.current=null,w.current=Math.max(0,w.current-(Date.now()-C.current)))},[]),N=o.useCallback(()=>{f.current&&(f.current=!1,_.current(w.current))},[]);return o.useEffect(()=>{if(e!==m.current&&(v.current&&(clearTimeout(v.current),v.current=null),g.current&&(clearTimeout(g.current),g.current=null)),e){if(u.current)return b>0&&!v.current&&(f.current?w.current=b:_.current(b)),m.current=e,()=>{v.current&&(clearTimeout(v.current),v.current=null),g.current&&(clearTimeout(g.current),g.current=null)};const A=()=>{const S=p.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"),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{k.current=null;try{S.style.opacity="",S.style.transform="",S.style.transition=""}catch{}},60)}catch{}};d.current?(A(),i(!0)):(c(!0),x.current=requestAnimationFrame(()=>{y.current=requestAnimationFrame(()=>{A(),i(!0)})})),b>0&&(f.current=!1,_.current(b))}else i(!1),g.current=setTimeout(()=>c(!1),Ql);return m.current=e,()=>{v.current&&clearTimeout(v.current),g.current&&clearTimeout(g.current),x.current&&cancelAnimationFrame(x.current),y.current&&cancelAnimationFrame(y.current),k.current&&clearTimeout(k.current),v.current=null,g.current=null,x.current=null,y.current=null,k.current=null}},[e,b,t]),{mounted:l,showing:s,popupRef:p,pause:B,resume:N}}function ea({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:s=2e3}){const{mounted:i,showing:l,popupRef:c,pause:d,resume:u}=ec({message:e,position:t,duration:s,onClose:r}),p=o.useRef(null),[m,h]=o.useState(!1);if(o.useEffect(()=>{l?h(!0):i||h(!1)},[l,i]),!i)return null;const b=a==="notice"||a==="warning"?a:"normal",v=n.jsx("div",{ref:c,className:`toast toast--${t} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:C=>{p.current=C.pointerType},onMouseEnter:()=>{p.current!=="touch"&&d()},onMouseLeave:u,onFocusCapture:d,onBlurCapture:u,children:n.jsx("div",{className:`toast__inner toast__inner--${b} body-2`,"aria-hidden":m||l?void 0:!0,children:e})});return typeof document<"u"?Ut.createPortal(v,document.body):v}const ry=24;function oy({value:e,max:t=100,size:a=8,color:r,trackColor:s,label:i,formatValue:l,labelPos:c,labelAlign:d="right",ariaLabel:u,className:p}){const m=Number.isFinite(t)&&t>0?t:1,h=Math.max(0,Math.min(Number.isFinite(e)?e:0,m)),b=h/m*100,v=Number.isFinite(t)&&t>0?t:0,C=c??(a>=ry?"inside":"bottom"),w=C==="center"?"inside":C,f=w==="inside"&&(d==="left"?b>=15:d==="center"?b>=50:b>=85),g={};return r&&(g["--progress-bar-fill"]=r),s&&(g["--progress-bar-track"]=s),n.jsxs("div",{className:De("progress-bar",`progress-bar--${a}`,`progress-bar--label-${w}`,i&&`progress-bar--align-${d}`,i&&f&&"progress-bar--label-on-fill",p),style:g,children:[n.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":v,"aria-valuetext":i?l?l(h):i==="percent"?void 0:i==="raw"?String(h):`${h} / ${v}`:void 0,"aria-label":u,children:n.jsx("div",{className:"progress-bar__fill",style:{width:`${b}%`}})}),i&&n.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(h):i==="percent"?`${Math.round(b)}%`:i==="raw"?String(h):`${h} / ${v}`})]})}const tc={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},sy="rgba(255, 255, 255, 0.16)";function nc({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:s,variant:i="numbered",announce:l=!1,ariaLabel:c}){const{t:d}=ge.useTranslation(),u=Yt("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const p=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,m=c??d("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),h={};if(a&&(h["--pi-inactive-bg"]=a),r&&(h["--pi-inactive-color"]=r),s&&(a||(h["--pi-inactive-bg"]=sy),r||(h["--pi-inactive-color"]="var(--color-white)")),i==="dot")return n.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:h,role:l?"status":"img","aria-label":l?void 0:m,children:[l&&n.jsx("span",{style:tc,children:m}),Array.from({length:e}).map((v,C)=>n.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${C<p?" done":C===p?" active":""}`},C))]});const b=l?n.jsx("span",{role:"status",style:tc,children:m}):null;return u?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:h,role:"list","aria-label":m,children:n.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[p+1," / ",e]})}),b]}):n.jsxs(n.Fragment,{children:[b,n.jsx("div",{className:"progress-indicator",style:h,role:"list","aria-label":m,children:Array.from({length:e}).map((v,C)=>n.jsx("span",{role:"listitem","aria-current":C===p?"step":void 0,className:`progress-indicator-dot ${C<p?" done":C===p?" active":""} body-3`,children:C+1},C))})]})}function iy(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 ly({children:e,className:t,style:a}){return n.jsx("div",{className:t?`table-cell ${t}`:"table-cell",style:a,children:e})}function fo({variant:e="default",children:t,className:a,draggable:r,onClick:s,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:d,expandedContent:u}){const p=o.useCallback(m=>{s&&m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),s())},[s]);return e==="loading"?n.jsx("div",{className:"table-row-wrap",children:n.jsx("div",{className:"table-row table-row--loading",children:n.jsx(Sa,{size:28})})}):e==="empty"?n.jsx("div",{className:"table-row-wrap",children:n.jsx("div",{className:"table-row table-row--empty body-3",children:t})}):n.jsxs("div",{className:"table-row-wrap",children:[n.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:s,onKeyDown:s?p:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:d,role:s?"button":void 0,tabIndex:s?0:void 0,children:t}),u&&n.jsx("div",{className:"table-row-expand",children:u})]})}function cy({dir:e}){return n.jsx(e==="asc"?gs:Cs,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function uy({children:e,onClick:t,className:a,sortDir:r,ariaSort:s,onResizeStart:i}){const l=n.jsxs(n.Fragment,{children:[e,r&&n.jsx(cy,{dir:r})]});return n.jsxs("div",{onClick:t,role:"columnheader","aria-sort":s,className:De("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:c=>c.stopPropagation(),"aria-hidden":"true"})]})}function Co({fields:e=[],headerGroups:t,items:a=[],renderRow:r,onRowClick:s,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:c,onRowDragStart:d,onRowDragEnd:u,draggingId:p,gridTemplateColumns:m,mobileGridTemplateColumns:h,resizable:b=!1,resizeMode:v="grow",resizeStorageKey:C,size:w="small",title:f,icon:g,count:x,collapsed:y=!1,onToggleCollapse:k,headerActions:_,empty:B,loading:N,dragOver:A=!1,onDragOver:S,onDragLeave:O,onDrop:H,renderExpandedRow:j,expandedId:q}){const{t:E}=ge.useTranslation(),M=Yt("(max-width: 767px)"),I=h&&M?h:null,G=b&&!M,Z=48,Y=o.useRef(()=>Z),z=C?`table-cols:${C}`:null,J=o.useRef(null),$=o.useRef(()=>!1),D=o.useRef([]),F=o.useRef(null),P=ce=>{if(!ce||typeof window>"u")return null;try{const ne=JSON.parse(window.localStorage.getItem(ce)??"null");return Array.isArray(ne)&&ne.length>0&&ne.every(Ne=>typeof Ne=="number"&&Number.isFinite(Ne)&&Ne>0)?ne:null}catch{return null}},[R,L]=o.useState(()=>P(z)),[K,U]=o.useState(z);K!==z&&(U(z),L(P(z)));const ee=o.useRef(R);o.useEffect(()=>{ee.current=R},[R]);const ae=o.useCallback(ce=>{const ne=F.current;if(!ne)return;const Ne=ee.current;if(Ne){const je=[...Ne];if(ne.next!=null&&ne.startWNext!=null){const ke=ce.clientX-ne.startX,ye=Math.max(Y.current(ne.index)-ne.startW,Math.min(ne.startWNext-Y.current(ne.next),ke));je[ne.index]=ne.startW+ye,je[ne.next]=ne.startWNext-ye}else je[ne.index]=Math.max(Y.current(ne.index),ne.startW+(ce.clientX-ne.startX));ee.current=je,L(je)}},[]),Be=o.useCallback(()=>{if(F.current=null,window.removeEventListener("pointermove",ae),window.removeEventListener("pointerup",Be),window.removeEventListener("pointercancel",Be),document.body.style.cursor="",document.body.style.userSelect="",z&&ee.current)try{window.localStorage.setItem(z,JSON.stringify(ee.current))}catch{}},[ae,z]),ie=o.useCallback((ce,ne)=>{ne.preventDefault(),ne.stopPropagation();const Ne=J.current;if(!Ne)return;const je=Array.from(Ne.children).map(ye=>ye.getBoundingClientRect().width),ke=v==="fit"?e.findIndex((ye,Se)=>Se>ce&&ye.resizable!==!1):-1;F.current=ke>=0?{index:ce,startX:ne.clientX,startW:je[ce],next:ke,startWNext:je[ke]}:{index:ce,startX:ne.clientX,startW:je[ce]},ee.current=je,L(je),window.addEventListener("pointermove",ae),window.addEventListener("pointerup",Be),window.addEventListener("pointercancel",Be),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[ae,Be,v,e]),se=o.useCallback(()=>{const ce=J.current,ne=ce?.closest(".table-wrap");if(!ce||!ne)return;const Ne=ne.style.getPropertyValue("--table-grid-cols");ne.style.setProperty("--table-grid-cols",e.map((Ze,Xe)=>$.current(Xe)?D.current[Xe]:"max-content").join(" "));const je=Array.from(ne.querySelectorAll(".table-row")).filter(Ze=>!Ze.classList.contains("table-row--loading")&&!Ze.classList.contains("table-row--empty")),ke=e.map((Ze,Xe)=>{let ze=ce.children[Xe]?.getBoundingClientRect().width??0;for(const Ve of je){const ot=Ve.children[Xe];ot&&(ze=Math.max(ze,ot.getBoundingClientRect().width))}const $e=$.current(Xe)?parseFloat(D.current[Xe]):NaN;return Number.isFinite($e)?$e:Math.max(Y.current(Xe),Math.ceil(ze))}),ye=window.getComputedStyle(ce),Se=ce.clientWidth-(parseFloat(ye.paddingLeft)||0)-(parseFloat(ye.paddingRight)||0);Ne?ne.style.setProperty("--table-grid-cols",Ne):ne.style.removeProperty("--table-grid-cols");let me=ke;const Ge=ke.reduce((Ze,Xe,ze)=>Ze+($.current(ze)?Xe:0),0),Ue=ke.reduce((Ze,Xe,ze)=>Ze+($.current(ze)?0:Xe),0),Ye=Se-Ge;if(Se>0&&Ue>0&&Ye>0){const Ze=Ye/Ue;me=ke.map((ze,$e)=>$.current($e)?ze:Math.max(Y.current($e),Math.round(ze*Ze)));const Xe=Math.round(Ye-me.reduce((ze,$e,Ve)=>ze+($.current(Ve)?0:$e),0));if(Xe!==0){let ze=-1;me.forEach(($e,Ve)=>{!$.current(Ve)&&(ze<0||$e>me[ze])&&(ze=Ve)}),ze>=0&&(me[ze]=Math.max(Y.current(ze),me[ze]+Xe))}}if(L(me),z)try{window.localStorage.setItem(z,JSON.stringify(me))}catch{}},[e,v,z]);o.useEffect(()=>()=>{F.current&&(window.removeEventListener("pointermove",ae),window.removeEventListener("pointerup",Be),window.removeEventListener("pointercancel",Be),document.body.style.cursor="",document.body.style.userSelect="")},[ae,Be]);const W=iy(m),re=W.filter(ce=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(ce));re.length>0&&Cn(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${re.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: ${m})`);const pe=e.findIndex(ce=>!!ce.sortDir);e.filter(ce=>!!ce.sortDir).length>1&&Cn("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 ve=ce=>ce===pe?e[ce].sortDir==="asc"?"ascending":"descending":e[ce].onClick?"none":void 0,Ce=ce=>/^\d+(\.\d+)?px$/.test(W[ce]??""),Ae=ce=>{const ne=W[ce]??"",Ne=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(ne)??/^(\d+(?:\.\d+)?)px$/.exec(ne);return Ne?parseFloat(Ne[1]):Z};$.current=Ce,Y.current=Ae,D.current=W;const he=ce=>v==="fit"&&!Ce(ce)?"fr":"px",be=R&&R.length===e.length&&!M&&(v==="fit"||a.length>0),Te=I??(be?e.map((ce,ne)=>ce.resizable===!1&&W[ne]?W[ne]:`${R[ne]}${he(ne)}`).join(" "):m),Oe=Te?{"--table-grid-cols":Te}:void 0,Pe=f!==void 0;return n.jsx("div",{className:`table-wrap table-wrap--${w}${G?" table-wrap--resizable":""}${A?" table-wrap--dragover":""}${y?" table-wrap--collapsed":""}`,style:Oe,onDragOver:S,onDragLeave:O,onDrop:H,children:n.jsxs("div",{className:"table body-2",children:[Pe&&n.jsxs("div",{className:"table-header",onClick:k,role:k?"button":void 0,tabIndex:k?0:void 0,"aria-expanded":k?!y:void 0,onKeyDown:k?ce=>{ce.target===ce.currentTarget&&(ce.key==="Enter"||ce.key===" ")&&(ce.preventDefault(),k())}:void 0,children:[k&&n.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:y?"chevron-right":"chevron-down",ariaLabel:y?E("common.expand","\uD3BC\uCE58\uAE30"):E("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),g&&n.jsx(Ke,{icon:g,label:typeof f=="string"?f:void 0,className:"table-header__icon"}),n.jsx("span",{className:"table-header__title h5b",children:f}),x!==void 0&&n.jsx("span",{className:"table-header__count body-3b",children:x}),_&&n.jsx("span",{className:"table-header__actions",onClick:ce=>ce.stopPropagation(),children:_})]}),!y&&n.jsxs(n.Fragment,{children:[t&&t.length>0&&n.jsx("div",{className:"table-fields table-fields--groups",children:t.map((ce,ne)=>n.jsx("div",{className:De("table-field body-3",ce.className),style:{gridColumn:`span ${ce.span}`},children:ce.label},ne))}),n.jsxs("div",{className:De("table-fields-strip",G&&"table-fields-strip--resizable"),children:[n.jsx("div",{className:"table-fields",ref:J,children:e.map((ce,ne)=>n.jsx(uy,{onClick:ce.onClick,className:ce.className,sortDir:ce.sortDir,ariaSort:ve(ne),onResizeStart:G&&ne<e.length-1&&ce.resizable!==!1&&(v!=="fit"||e.some((Ne,je)=>je>ne&&Ne.resizable!==!1))?Ne=>ie(ne,Ne):void 0,children:ce.label},ne))}),G&&n.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:se})]}),n.jsx("div",{className:"table-body",children:N?n.jsx(fo,{variant:"loading"}):a.length===0&&B?n.jsx(fo,{variant:"empty",children:B}):a.map((ce,ne)=>{const Ne=p!=null&&ce.id===p,je=!!s&&(i?i(ce):!0),ke=q!=null&&ce.id!=null&&(q instanceof Set?q.has(ce.id)||[...q].some(ye=>String(ye)===String(ce.id)):String(ce.id)===String(q));return n.jsx(fo,{className:`${je?" table-row--clickable":""}${d?" table-row--draggable":""}${Ne?" table-row--dragging":""}`.trim(),draggable:!!d,onClick:je?()=>s(ce):void 0,onMouseEnter:l?ye=>l(ce,ye):void 0,onMouseLeave:c?ye=>c(ce,ye):void 0,onDragStart:d?ye=>d(ce,ye):void 0,onDragEnd:u?ye=>u(ce,ye):void 0,expandedContent:ke&&j?j(ce):void 0,children:r(ce).map((ye,Se)=>n.jsx(ly,{className:ye.className,style:ye.style,children:ye.content},Se))},ce.id!=null?`${typeof ce.id}:${ce.id}`:`__idx:${ne}`)})})]})]})})}function ac(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const ta=e=>e==null?"":String(e).trim();function go(e,t,a){const r=[ta(e),ta(t),ta(a)];for(;r.length>0&&r[r.length-1]==="";)r.pop();return r.join(".")}function dy(e,t,a){const r=ta(e);return r?`${r}-${ta(t).padStart(2,"0")}-${ta(a).padStart(2,"0")}`:""}const py={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function my(e,t){const a=py[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}function rc(e,t){return t!=="wornAt"?String(e[t]??""):dy(e.wornYear,e.wornMonth,e.wornDay)}function hy({rows:e,loading:t,onSelect:a,onDelete:r,onWear:s,onRelease:i,onAdd:l}){const{t:c}=ge.useTranslation(),d=C=>C==="\uC88C"?c("device.direction.left","\uC88C"):c("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:p}=Yg(),m=o.useMemo(()=>{if(!u)return e;const{key:C,asc:w}=u;return[...e].sort((f,g)=>{if(C==="worn"){const x=Number(g.worn)-Number(f.worn);return w?x:-x}return Kr(rc(f,C),rc(g,C),w)})},[e,u]),{pageRows:h,pageSizeProps:b,paginationProps:v}=Kg(m,u);return n.jsxs("div",{className:"dlp-side-table",children:[n.jsx(so,{count:{value:e.length,unit:c("customers.device.unit","\uAC1C")},pageSize:b,pagination:v,actions:l&&n.jsx(le,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:c("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:l})}),n.jsx(Co,{loading:t,resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...p(c("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},p(c("device.direction.label","\uBC29\uD5A5"),"side"),p(c("device.deviceType","\uC885\uB958"),"device"),p(c("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),p(c("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),p(c("device.productName","\uC81C\uD488\uBA85"),"productName"),p(c("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...r?[{label:"",resizable:!1}]:[]],items:h.map((C,w)=>({id:C.id??`${C.side}-${w}`,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:w=>w.stopPropagation(),children:n.jsx(Ol,{checked:C.worn,disabled:C.worn?!i:!s,ariaLabel:C.worn?c("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):c("customers.device.wear","\uCC29\uC6A9"),onChange:w=>{w?s?.(C):i?.(C)}})})},{content:n.jsx("span",{children:d(C.side)})},{content:C.device?n.jsx(ht,{size:"small",variant:ac(C.device),fill:"soft",label:my(C.device,c)}):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:go(C.wornYear,C.wornMonth,C.wornDay)||"-"})},...r?[{content:n.jsx("span",{className:"dlp-row-actions",children:n.jsx(le,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:c("common.delete","\uC0AD\uC81C"),onClick:w=>{w?.stopPropagation(),r(C)}})})}]:[]],onRowClick:({row:C})=>a(C),empty:c("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function oc(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 fy(e,t){return new Date(e,t+1,0).getDate()}function Cy(e,t){return new Date(e,t,1).getDay()}function gy({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:r,today:s}){const{t:i}=ge.useTranslation(),l=o.useMemo(()=>i("calendar.dow",{returnObjects:!0}),[i]),c=Lr(s),[d,u]=o.useState(()=>Number(c.slice(0,4))),[p,m]=o.useState(()=>Number(c.slice(5,7))-1),[h,b]=o.useState(null),v=o.useRef(null),C=o.useMemo(()=>{const k={};return e.forEach(_=>{k[_.date]||(k[_.date]=[]),k[_.date].push(_)}),k},[e]),w=o.useMemo(()=>{const k=fy(d,p),_=Cy(d,p),B=[];for(let N=0;N<_;N++)B.push(null);for(let N=1;N<=k;N++)B.push(N);for(;B.length<35;)B.push(null);return B},[d,p]),f=o.useCallback(()=>{p===0?(u(k=>k-1),m(11)):m(k=>k-1)},[p]),g=o.useCallback(()=>{p===11?(u(k=>k+1),m(0)):m(k=>k+1)},[p]),x=k=>`${d}-${String(p+1).padStart(2,"0")}-${String(k).padStart(2,"0")}`,y=k=>x(k)===c;return n.jsxs("div",{children:[n.jsxs("div",{className:"calendar-nav",children:[n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:f,"aria-label":i("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(Ke,{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:g,"aria-label":i("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(Ke,{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:[l.map(k=>n.jsx("div",{className:"calendar-day-header body-3",children:k},k)),w.map((k,_)=>{if(k===null)return n.jsx("div",{className:"calendar-cell empty"},`empty-${_}`);const B=k,N=x(B),A=C[N]??[],S=h===N;return n.jsxs("div",{className:`calendar-cell${y(B)?" today":""}${S?" 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":y(B)?"date":void 0,onClick:r?()=>r(N):void 0,onKeyDown:r?O=>{O.target===O.currentTarget&&(O.key!=="Enter"&&O.key!==" "||(O.preventDefault(),r(N)))}:void 0,onDragOver:a?O=>{O.preventDefault(),b(N)}:void 0,onDragLeave:a?O=>{O.currentTarget.contains(O.relatedTarget)||b(null)}:void 0,onDrop:a?O=>{O.preventDefault(),v.current!=null&&(a(v.current,N),v.current=null),b(null)}:void 0,children:[n.jsx("div",{className:"calendar-cell__number body-3",children:B}),A.length>0&&n.jsxs("span",{className:"calendar-cell__visit-count caption-1","aria-label":i("calendar.visitCount",{count:A.length,defaultValue:"\uBC29\uBB38 {{count}}\uAC74"}),children:[n.jsx("span",{className:"calendar-cell__visit-dot","aria-hidden":"true"}),A.length]}),n.jsx("div",{className:"calendar-cell__badges",children:A.map((O,H)=>n.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${O.status==="noVisit"?" calendar-visit-badge--no-visit":O.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?j=>{v.current=O.id,j.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{v.current=null,b(null)}:void 0,onClick:t?j=>{j.stopPropagation(),t(O)}:void 0,...oc(t?()=>t(O):void 0),"aria-label":[O.time?ui(O.time,i):null,O.customer,i(O.status==="noVisit"?"calendar.legend.noVisit":O.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[O.time&&n.jsx("span",{className:"calendar-visit-badge__time body-3",children:ui(O.time,i)}),n.jsx("span",{className:"calendar-visit-badge__name body-3",children:O.customer}),O.status==="noVisit"&&n.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},O.id??H))})]},B)})]})]})}const by={page:"h3",pagePopup:"h4",popup:"h5"};function na({type:e="page",title:t,headingLevel:a,icon:r,action:s,disc:i,children:l,inGrid:c=!1,className:d,style:u}){const p=by[e],m=t||i||s||r,h=a?`h${a}`:"div";return n.jsxs("div",{className:De("section",`section--${e}`,c&&"section--in-grid",d),style:u,children:[m&&n.jsxs("div",{className:"section__header",children:[n.jsxs("div",{className:"section__title-row",children:[r&&n.jsx(Ke,{icon:r,label:typeof t=="string"?t:void 0,className:"section__icon"}),n.jsxs("div",{className:"section__title-group",children:[t&&n.jsx(h,{className:`section__title ${p}`,children:t}),i&&n.jsx("div",{className:"section__disc body-3",children:i})]})]}),s&&n.jsx("div",{className:"section__action",children:s})]}),l]})}let bo=null,sc=!1;function ic(){if(sc||typeof document>"u")return;sc=!0,document.addEventListener("keydown",t=>{t.metaKey||t.ctrlKey||t.altKey||(bo="keyboard")},!0);const e=()=>{bo="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}ic();function Ja(){return ic(),bo==="keyboard"}const Qa=20;function yy(e){const{t}=ge.useTranslation(),{type:a,trainingDatas:r,depth:s,renderPopup:i,completedIds:l,selectedIds:c,onItemComplete:d,size:u,useDescriptionTooltip:p,onRemove:m,onMore:h,sectionType:b="page"}=e||{},[,v]=o.useState(0),C=typeof r<"u"?Array.isArray(r)?r:[]:[],w=C.length,[f,g]=o.useState(Math.min(w,Qa)),x=o.useMemo(()=>Array.isArray(s)?[...s,a?.label].filter(Boolean).join(" \xB7 "):[s||"",a?.label].filter(Boolean).join(" \xB7 "),[s,a?.label]);o.useEffect(()=>{g(Math.min(w,Qa))},[w]),el("speechear.data.updated",()=>v(B=>B+1));const y=o.useRef(null),k=o.useRef(null);function _(){const B=document.activeElement;k.current=Ja()&&B&&B.closest?.(".training-block__more")?f:null,g(N=>Math.min(w,N+Qa))}return o.useEffect(()=>{const B=k.current;if(B==null)return;k.current=null;const N=document.activeElement;N&&N!==document.body||y.current?.querySelectorAll(".training-block-button")[B]?.focus()},[f]),n.jsxs(na,{type:b,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[n.jsx("div",{className:"training-list",ref:y,children:(C||[]).slice(0,f).map((B,N)=>{const A=B;return n.jsx(ao,{index:N,type:a,trainingData:A,depth:x,renderPopup:i,completedIds:l,selectedIds:c,size:u,useDescriptionTooltip:p,onRemove:typeof m=="function"&&c!=null&&A?.id!=null&&c.has(String(A.id))?()=>m(A):void 0,onComplete:typeof d=="function"&&A?.id!=null?()=>d(String(A.id)):void 0,onMore:typeof h=="function"?S=>h(A,S):void 0},A?.id!=null?`${a?.key||"t"}-${String(A.id)}`:`${a?.key||"t"}-${N}`)})}),w>Qa&&f<w&&n.jsx("div",{className:"training-block__more",children:n.jsx(le,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:_,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function yo(e){const t=o.useRef(null),[a,r]=o.useState(!!e),[s,i]=o.useState(!1);o.useEffect(()=>{i(!1);const d=t.current;r(!!e&&!(d?.complete&&d.naturalWidth>0))},[e]);const l=o.useCallback(()=>r(!1),[]),c=o.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:t,loading:a,failed:s,hasImage:!!e&&!s,onLoad:l,onError:c}}var vy='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 xy=vy,vo=o.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:r=!1,selected:s=!1,onSelect:i,flipDelay:l=0,hideLabel:c=!1,hideAudio:d=!1,orderRank:u=null},p){const{t:m}=ge.useTranslation(),h=e.word||e.title||"",b=t||!h,v=e.audio??e.sound??e.audioKey,C=e.subLabel||e.pronunciation||"",w=e.colloquialLabel||"",[f,g]=o.useState({label:h,subLabel:C,colloquialLabel:w,homonum:e.homonum});h&&(f.label!==h||f.subLabel!==C||f.colloquialLabel!==w||!Object.is(f.homonum,e.homonum))&&g({label:h,subLabel:C,colloquialLabel:w,homonum:e.homonum});const x=o.useRef(null),y=Yt("(max-width: 767px)"),[k,_]=o.useState(!1),B=`${typeof v=="string"?v:v?.src??""}\0${h}`,[N,A]=o.useState({for:"",url:""}),S=N.for===B?N.url:"",O=ni(),H=e.textOnly??(!e.image&&!!f.label&&!!O&&O.entries.length>0&&!O.byWord.has(f.label)),j=H?"":Gn()?.(f.label,f.homonum)??e.image??"",{imgRef:q,loading:E,hasImage:M,onLoad:I,onError:G}=yo(j);o.useEffect(()=>{let R=!1;return(async()=>{if(v){if(typeof v=="string"){if(v.startsWith("http")||v.includes("/")){A({for:B,url:v});return}}else if(typeof v=="object"&&!Array.isArray(v)){const K=v.src;if(K){A({for:B,url:K});return}}}const L=Br();if(L&&h)try{const K=await Promise.resolve(L(h));!R&&K&&A({for:B,url:K})}catch{}})(),()=>{R=!0}},[v,h,B]);const Z=o.useRef(!0),Y=o.useRef(null);o.useEffect(()=>(Z.current=!0,()=>{Z.current=!1,Y.current&&Ka(Y.current),Y.current=null;try{x.current?.pause()}catch{}x.current=null}),[]);const z=o.useCallback(()=>new Promise(R=>{if(typeof window<"u"&&window.speechSynthesis&&h){_(!0),window.speechSynthesis.cancel();const L=new SpeechSynthesisUtterance(h);L.lang="ko-KR",L.onend=()=>{_(!1);try{a?.()}catch{}R()},L.onerror=()=>{_(!1),R()},window.speechSynthesis.speak(L)}else R()}),[h,a]),J=o.useCallback(R=>new Promise(L=>{let K=!1;const U=()=>{K||(K=!0,_(!1),L(!1))};try{const ee=new Audio(R);x.current=ee,ee.onended=()=>{if(!K){K=!0,_(!1);try{a?.()}catch{}L(!0)}},ee.onerror=U,ee.play().catch(U)}catch{U()}}),[a]),$=o.useCallback(async()=>{if(t||!Z.current)return;const R=()=>{Y.current===R&&(Y.current=null);try{x.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}_(!1)},L=Ga(R);Y.current=R;try{window.speechSynthesis?.cancel()}catch{}try{if(S&&(_(!0),await J(S)))return;const K=J0();if(K&&h)try{const U=await Promise.resolve(K(h));if(!Z.current||Y.current!==R||U&&(_(!0),await J(U)))return}catch{}if(!Z.current||Y.current!==R)return;await z()}finally{L(),Y.current===R&&(Y.current=null)}},[t,S,h,J,z]);o.useImperativeHandle(p,()=>({play:()=>$()}),[$]);const D=R=>R.stopPropagation(),F=o.useCallback(R=>{if(R.stopPropagation(),!t){if(k){try{x.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}_(!1);return}$()}},[t,k,$]),P=De("training-word-card",t?"training-word-card--disabled":"",b?"training-word-card--flipped":"",r?"training-word-card--selectable":"",s?"training-word-card--selected":"");return n.jsx("div",{className:P,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?R=>{R.target===R.currentTarget&&(R.key==="Enter"||R.key===" "||R.key==="Spacebar")&&(R.preventDefault(),i?.())}:void 0,children:n.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:b?"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(ht,{type:"dot",size:40,position:"inline",animate:!0,icon:u!=null?void 0:"check",number:u??void 0,"aria-label":u!=null?m("training.nthSelected",{n:u}):m("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:f.label}):M?n.jsxs(n.Fragment,{children:[E&&n.jsx("div",{className:"training-word-card__spinner"}),n.jsx("img",{ref:q,className:"training-word-card__image",src:j,alt:f.label||m("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:E?0:1},onLoad:I,onError:G})]}):n.jsx("div",{className:"training-word-card__placeholder"})}),!c&&n.jsxs("div",{className:"training-word-card__body",children:[!H&&n.jsx("div",{className:"training-word-card__word",children:f.label}),f.subLabel&&n.jsxs("div",{className:"training-word-card__pronunciation",children:["[",f.subLabel,"]"]}),f.colloquialLabel&&n.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",f.colloquialLabel,"]"]})]}),!d&&n.jsx("div",{className:"training-word-card__bottom",onClick:r?D:void 0,children:n.jsx(le,{htmlType:"button",size:y?40:48,type:y?"dot":"bar",icon:k?"pause":"play",label:y?void 0:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:k,onClick:F,disabled:t,ariaLabel:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),n.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:n.jsx("img",{src:xy,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),_y=260;function jn(e){const{t}=ge.useTranslation(),{title:a,subtitle:r,headerActions:s,headerSegment:i,children:l,buttons:c,footer:d,footerClassName:u="",footerLayout:p="center",onClose:m,closeDisabled:h=!1,beforeClose:b,closeOnBackdrop:v=!0,className:C="",ariaLabel:w,useTitle:f=!0,inline:g=!1,size:x,layer:y="modal",height:k,fillBody:_=!1,resetScrollKey:B}=e||{},[N,A]=o.useState(!1),S=o.useRef(!1),O=o.useRef(null),H=o.useId(),j=o.useRef(null);o.useEffect(()=>{},[g,a,w,C]),o.useEffect(()=>{B!==void 0&&j.current&&(j.current.scrollTop=0)},[B]);const[q,E]=o.useState(!1);o.useEffect(()=>{const K=j.current;if(!K)return;const U=()=>E(K.scrollHeight>K.clientHeight+1);if(U(),typeof ResizeObserver>"u")return;const ee=new ResizeObserver(U);ee.observe(K);const ae=K.firstElementChild;return ae&&ee.observe(ae),()=>ee.disconnect()},[l,B]),o.useEffect(()=>{if(!g)return $l()},[g]),o.useEffect(()=>{if(g)return;const K=document.activeElement,U=O.current;return Fr(U,K),U&&!U.contains(document.activeElement)&&(U.querySelector(gn)??U).focus(),()=>{const ee=document.activeElement;(!ee||ee===document.body||U&&U.contains(ee))&&Or(K)?.focus?.()}},[g]),Pr(O,!g);const M=o.useRef(!0),I=Hr(),G=o.useRef(null);o.useEffect(()=>(M.current=!0,()=>{M.current=!1,G.current&&(clearTimeout(G.current),G.current=null)}),[]);const Z=o.useCallback(()=>{!M.current||!S.current||(S.current=!1,A(!1))},[]),Y=o.useCallback((K,U=!1)=>{if(U&&!M.current||S.current)return;S.current=!0,A(!0);const ee=setTimeout(()=>{G.current===ee&&(G.current=null);let ae;try{ae=K?K():void 0}catch{Z();return}ae&&typeof ae.then=="function"&&ae.then(()=>{setTimeout(Z,120)},Z)},I?0:_y);U&&(G.current=ee)},[Z,I]),z=o.useCallback(()=>{h||b&&b()===!1||Y(m,!0)},[Y,m,h,b]),J=o.useRef(z);o.useEffect(()=>{J.current=z});const $=!g&&!!m;o.useEffect(()=>{if($)return In(()=>J.current())},[$]);const D=$&&v,F=o.useRef(!1),P=K=>{F.current=K.target===K.currentTarget},R=K=>{const U=F.current;F.current=!1,U&&K.target===K.currentTarget&&z()},L=n.jsx("div",{className:`popup ${g?"popup--inline":""} ${y==="belowPagePopup"?"popup--below-page-popup":""} ${N?"popup--closing":""} ${C}`,onPointerDown:D?P:void 0,onClick:D?R:void 0,onMouseDown:g?void 0:K=>{K.target===K.currentTarget&&K.preventDefault()},children:n.jsxs("div",{ref:O,className:`popup-panel${x?` popup-panel--${x}`:""}${k!=null?" popup-panel--has-height":""}${_?" popup-panel--fill-body":""}`,style:k!=null?{"--popup-height":typeof k=="number"?`${k}px`:k}:void 0,tabIndex:-1,role:g?void 0:"dialog","aria-modal":g?void 0:!0,"aria-labelledby":!g&&f&&a?H:void 0,"aria-label":!g&&!(f&&a)?w??(typeof a=="string"?a:void 0):void 0,children:[!f&&(s||m)?n.jsxs("div",{className:"popup-close-float",children:[s,m&&n.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:z,disabled:h,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||s||m?n.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[n.jsxs("div",{className:"popup-header-main",children:[n.jsx("span",{id:H,className:"popup-title popup-title--left h2",children:a}),r&&n.jsx("span",{className:"popup-subtitle body-3",children:r})]}),i&&n.jsx("div",{className:"popup-header-segment",children:n.jsx(_n,{size:40,ariaLabel:i.ariaLabel,options:i.options.map(K=>({key:K.key,label:K.label,disabled:K.disabled})),value:i.value,onChange:i.onChange})}),n.jsxs("div",{className:"popup-header-actions",children:[s,m&&n.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:z,disabled:h,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,n.jsx("div",{className:"popup-content",ref:j,tabIndex:q?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof l=="function"?l({animateThen:Y,closeWithAnimation:z}):l})}),c?.length?n.jsx("div",{className:`popup-footer popup-footer--buttons${p!=="center"?` popup-footer--${p}`:""}`,children:c.map((K,U)=>n.jsx(le,{htmlType:"button",size:48,variant:K.variant??"default",label:K.label,disabled:K.disabled,onClick:()=>K.onClick?.({animateThen:Y,closeWithAnimation:z})},U))}):d?n.jsx("div",{className:`popup-footer${p!=="center"?` popup-footer--${p}`:""}${u?` ${u}`:""}`,children:typeof d=="function"?d({animateThen:Y,closeWithAnimation:z}):d}):null]})});return g||typeof document>"u"?L:Ut.createPortal(L,document.body)}function er(e){return String(e)}const tr=["o","triangle","x"];function lc(e,t){return e===t?null:t}const cc={o:"circle",triangle:"triangle",x:"x"},uc={o:"main",triangle:"warn",x:"danger"};function wy(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 xo(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function dc(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 aa={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 Ay(e="landscape"){Cn("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}=aa[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 pc(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 By={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 Ny(e,t){const a=By[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 Sy={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},mc={\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"},hc={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function _o(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function fc(e,t,a,r){if(r!=="\uC810\uC120")return{};const s=e%t,i=Math.floor(e/t),l=s<t-1,c=i<a-1;if(!l&&!c)return{};const d="#ddd",u=b=>`repeating-linear-gradient(to ${b}, ${d} 0, ${d} 5px, transparent 5px, transparent 10px)`,p=[],m=[],h=[];return l&&(p.push(u("bottom")),m.push("1px 100%"),h.push("right center")),c&&(p.push(u("right")),m.push("100% 1px"),h.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:m.join(", "),backgroundPosition:h.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const Dy=280,Ey=240,jy=280,Ty=400,My=120,Ly=280;function Cc(e,t){const a=o.useRef(null),[r,s]=o.useState(1),[i,l]=o.useState(0),c=o.useCallback((d,u)=>{if(!(d>0))return;const p=d/e,m=t&&u>0?u/t:1/0,h=Math.min(1,p,m);s(h),l(Math.max(0,(d-e*h)/2))},[e,t]);return o.useEffect(()=>{const d=a.current;if(!d)return;const u=t?d.parentElement??d:d;if(c(u.clientWidth,u.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([m])=>c(m.contentRect.width,m.contentRect.height));return p.observe(u),()=>p.disconnect()},[c,t]),{scalerRef:a,scale:r,offset:i}}const $y={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Ry=400,gc=8;function bc({label:e,subLabel:t,colloquialLabel:a,homonum:r,showWord:s=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:c=!0,buttonSize:d=40,wordInfo:u}){const{t:p}=ge.useTranslation(),m=o.useRef(null),h=o.useRef(null),b=o.useRef(null),[v,C]=o.useState(1),[w,f]=o.useState(!1),[g,x]=o.useState({for:"",url:""}),[y,k]=o.useState(null),_=t&&t.length>0?t:e2()?.(e,r)??"",B=Gn()?.(e,r)??"",{imgRef:N,loading:A,failed:S,onLoad:O,onError:H}=yo(B),j=o.useCallback(()=>k(h.current?.getBoundingClientRect()??null),[]),q=o.useCallback(()=>k(null),[]),E=Vr(!!y,F=>{F?j():q()},h),M=o.useMemo(()=>{if(!u)return null;const F=[];return u.grade&&F.push(p("wordTable.info.grade",{n:u.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),u.syllables&&F.push(p("wordTable.info.syllables",{n:u.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),u.pos&&F.push(p("wordTable.info.pos",{v:_o(u.pos,Py(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),u.wordType&&F.push(p("wordTable.info.wordType",{v:_o(u.wordType,Iy(p)),defaultValue:"\uC720\uD615: {{v}}"})),F.length?F:null},[u,p]),I=_||e,G=g.for===I?g.url:"";o.useEffect(()=>{const F=Br(),P=_||e;if(!F||!P)return;let R=!1;return Promise.resolve(F(P)).then(L=>{!R&&L&&x({for:P,url:L})}),()=>{R=!0}},[_,e]);const Z=o.useRef(null),Y=o.useRef(null);o.useEffect(()=>()=>{b.current?.pause(),Y.current?.()},[]);const z=o.useCallback(async F=>{if(F.stopPropagation(),w){Z.current?.();return}if(G){f(!0);try{const P=new Audio(G);b.current=P;const R=()=>{f(!1),Y.current?.()},L=()=>{P.pause(),R()};Z.current=L;const K=Ga(L);Y.current=K,P.onended=R,P.onerror=R,await P.play()}catch{f(!1),Y.current?.()}}},[w,G]),J=i&&!!B&&!S,$=J&&s?Dy:J?jy:Ey,D=J&&s?Ty:J?Ly:My;return o.useEffect(()=>{const F=m.current;if(!F||typeof ResizeObserver>"u")return;const P=new ResizeObserver(([R])=>{const{width:L,height:K}=R.contentRect;C(Math.min(L/$,K/D))});return P.observe(F),()=>P.disconnect()},[$,D]),n.jsxs("div",{ref:m,className:De("word-table-cell",J?"word-table-cell--with-image":""),children:[n.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${v})`},children:[J&&n.jsxs("div",{className:"word-table-cell__image-wrap",children:[A&&n.jsx("div",{className:"word-table-cell__spinner"}),n.jsx("img",{ref:N,className:"word-table-cell__image",src:B,alt:e,draggable:!1,style:{opacity:A?0:1},onLoad:O,onError:H})]}),s&&n.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&_&&n.jsxs("span",{className:"word-table-cell__sub h3",children:["[",_,"]"]}),c&&a&&n.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),n.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":G,children:[n.jsx("span",{"data-play-state":"play",style:{display:w?"none":void 0},children:n.jsx(le,{htmlType:"button",size:d,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:z})}),n.jsx("span",{"data-play-state":"pause",style:{display:w?void 0:"none"},children:n.jsx(le,{htmlType:"button",size:d,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:z})})]}),u&&n.jsxs("div",{ref:h,className:"word-table-cell__info-button",onPointerEnter:F=>{Xn(F)||j()},onPointerLeave:F=>{Xn(F)||q()},onFocus:()=>{Jn()||j()},onBlur:q,children:[n.jsx(le,{htmlType:"button",size:d,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:F=>{F.stopPropagation(),E.touchPress()}}),y&&M&&n.jsx(Fn,{anchorRect:y,items:M,showIndex:!1})]})]})}const yc={\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"},vc={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function Py(e){return Object.fromEntries(Object.entries(mc).map(([t,a])=>[t,yc[t]?e(`wordTable.pos.${yc[t]}`,{defaultValue:a}):a]))}function Iy(e){return Object.fromEntries(Object.entries(hc).map(([t,a])=>[t,vc[t]?e(`wordSearch.filter.type.${vc[t]}`,{defaultValue:a}):a]))}function ra({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:c=!0,showDivLine:d=!0,items:u,editCells:p,count:m,activeCell:h=null,onActivateCell:b,onRemoveCell:v,onRemoveItem:C,onReorder:w,showFillerAdd:f=!1,contentRef:g,buttonSize:x=40,pageNumber:y,pageNumberPosition:k="right",fitHeight:_=!1,scoring:B=!1,marks:N,onMarkClick:A,scoreIndexOffset:S=0}){const O=o.useCallback((ke,ye)=>{A?.(S+ke,ye)},[A,S]),H=(ke,ye)=>{const Se=N?.[er(S+ke)]??null;return n.jsx("div",{className:De("word-table-cell__score",Se?"word-table-cell__score--marked":""),style:ne>1?{transform:`translateX(-50%) scale(${ne})`,transformOrigin:"bottom center"}:void 0,children:tr.map(me=>n.jsx("span",{className:De("word-table-cell__score-slot",Se===me?"word-table-cell__score-slot--on":""),children:n.jsx(le,{htmlType:"button",size:x,type:"dot",icon:cc[me],variant:Se===me?uc[me]:"default",selected:Se===me,useBorder:!1,showTooltipInfo:!1,ariaLabel:j(`wordTable.scoring.${me}`,{word:ye,defaultValue:`${ye} ${me}`}),onClick:Ge=>{Ge.stopPropagation(),O(ke,me)}})},me))})},{t:j}=ge.useTranslation(),q=p!==void 0,E=e!=null||!!t||!!a,M=Yt("(max-width: 767px)"),I=o.useRef(null),[G,Z]=o.useState(null),Y=u?.length??0,[z,J]=o.useState(null),[$,D]=o.useState(""),F=o.useRef(null),P=o.useRef(null),R=o.useRef(null),L=o.useRef(null),K=o.useCallback(ke=>{P.current=ke,typeof g=="function"?g(ke):g&&(g.current=ke)},[g]),U=o.useCallback((ke,ye)=>{F.current=ye,w?.(ke,ye),D(j("wordTable.reorder.moved",{n:ye+1,total:Y,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[w,j,Y]);o.useEffect(()=>{const ke=F.current;ke!=null&&(F.current=null,P.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler)")?.[ke]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{L.current?.()},[]);const ee=o.useCallback((ke,ye)=>{if(!w||!ke.altKey||ke.ctrlKey||ke.metaKey)return;const Se=ke.key==="ArrowRight";if(!Se&&ke.key!=="ArrowLeft")return;ke.preventDefault();const me=ye+(Se?1:-1);me<0||me>=Y||U(ye,me)},[w,Y,U]),ae=o.useCallback((ke,ye)=>{if(!w||ke.pointerType==="mouse")return;const Se=ke.target.closest?.("button");if(Se&&!Se.closest(".word-table-block__card-handle"))return;L.current?.();const me={x:ke.clientX,y:ke.clientY};let Ge=!1;const Ue=$e=>{Ge&&$e.cancelable&&$e.preventDefault()},Ye=$e=>{if(!Ge){(Math.abs($e.clientX-me.x)>gc||Math.abs($e.clientY-me.y)>gc)&&ze();return}const Ve=document.elementFromPoint?.($e.clientX,$e.clientY)?.closest?.("[data-wordtable-cell]"),ot=Ve?Number(Ve.dataset.wordtableCell):NaN,Ct=Number.isInteger(ot)?ot:null;R.current=Ct,Z(Ct)},Ze=()=>{const $e=R.current,Ve=Ge;ze(),Ve&&$e!=null&&$e!==ye&&U(ye,$e)},Xe=setTimeout(()=>{Ge=!0,J(ye),R.current=ye,Z(ye),window.addEventListener("touchmove",Ue,{passive:!1})},Ry);function ze(){clearTimeout(Xe),window.removeEventListener("pointermove",Ye),window.removeEventListener("pointerup",Ze),window.removeEventListener("pointercancel",Ze),window.removeEventListener("touchmove",Ue),Ge=!1,R.current=null,L.current=null,J(null),Z(null)}L.current=ze,window.addEventListener("pointermove",Ye),window.addEventListener("pointerup",Ze),window.addEventListener("pointercancel",Ze)},[w,U]),{width:Be,height:ie}=aa[s],se=typeof _=="number"?_:_&&typeof _=="object"?M?_.narrow:_.wide:null,{scalerRef:W,scale:re,offset:pe}=Cc(Be,_?ie:void 0),ve=q?p?.length??0:u?.length??0,Ce=Math.max(m??ve,1),{cols:Ae,rows:he}=Ny(s,Ce),be={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")},Te=q?(p??[]).some(ke=>ke!==null&&ke.length>1):(u??[]).some(ke=>(ke.words??[]).length>1),Oe=De("word-table-block__content",Sy[l],c&&"word-table-block__content--outline",d&&Te&&"word-table-block__content--div-line"),Pe={transform:`scale(${1/re})`,transformOrigin:"center center"},ce=x*tr.length+4*(tr.length-1),ne=Math.max(1,Math.min(1/re,Be/Ae/ce)),Ne=n.jsxs("div",{ref:W,className:"word-table__scaler",style:{height:ie*re},children:[n.jsx("div",{className:De("word-table",!E&&r),style:{width:Be,height:ie,transform:`scale(${re})`,transformOrigin:"top left",marginLeft:pe},children:n.jsxs("div",{ref:K,className:Oe,style:{gridTemplateColumns:`repeat(${Ae}, 1fr)`,gridTemplateRows:`repeat(${he}, 1fr)`},children:[q?n.jsx(n.Fragment,{children:(p??[]).map((ke,ye)=>n.jsx("div",{className:De("word-table-block__edit-cell",ke?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",h===ye?"word-table-block__edit-cell--active":""),style:fc(ye,Ae,he,l),children:ke?n.jsxs(n.Fragment,{children:[ke.map((Se,me)=>n.jsxs(o.Fragment,{children:[me>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(bc,{label:Se.word,subLabel:Se.pronunciation,colloquialLabel:Se.colloquialPronunciation,homonum:Se.homonum,showWord:be.word,showImage:be.image,showPronunciation:be.pron,showColloquial:be.colloq,buttonSize:x})]},me)),B&&H(ye,ke.map(Se=>Se.word).join(" / ")),v&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(le,{htmlType:"button",size:x,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ke.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ke.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>v(ye)})})]}):b&&n.jsx("div",{style:Pe,children:n.jsx(le,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:j("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>b(ye)})})},ye))}):n.jsxs(n.Fragment,{children:[(u??[]).map((ke,ye)=>n.jsxs("div",{"data-wordtable-cell":w?ye:void 0,className:`word-table-block__card${w?" word-table-block__card--draggable":""}${G===ye?" word-table-block__card--drag-over":""}${z===ye?" word-table-block__card--dragging":""}`,style:fc(ye,Ae,he,l),draggable:!!w,onPointerDown:w?Se=>ae(Se,ye):void 0,onKeyDown:w?Se=>ee(Se,ye):void 0,onDragStart:w?()=>{I.current=ye}:void 0,onDragOver:w?Se=>{Se.preventDefault(),Z(ye)}:void 0,onDragLeave:w?()=>Z(null):void 0,onDrop:w?Se=>{Se.preventDefault(),I.current!==null&&I.current!==ye&&w(I.current,ye),I.current=null,Z(null)}:void 0,onDragEnd:w?()=>{I.current=null,Z(null)}:void 0,children:[(ke.words??[]).map((Se,me)=>n.jsxs(o.Fragment,{children:[me>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(bc,{label:Se.label,subLabel:Se.subLabel,colloquialLabel:Se.colloquialLabel,homonum:Se.homonum,showWord:be.word,showImage:be.image,showPronunciation:be.pron,showColloquial:be.colloq,buttonSize:x,wordInfo:Se.grade||Se.syllables!=null||Se.pos||Se.wordType?{grade:Se.grade,syllables:Se.syllables,pos:Se.pos,wordType:Se.wordType}:void 0})]},me)),B&&H(ye,(ke.words??[]).map(Se=>Se.label).join(" / ")),w&&n.jsx("div",{className:"word-table-block__card-handle",children:n.jsx(le,{htmlType:"button",size:x,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:(ke.words??[]).map(Se=>Se.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})}),C&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(le,{htmlType:"button",size:x,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(ke.words??[]).length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(ke.words??[]).length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>C(ke.id)})})]},ke.id)),Array.from({length:Math.max(0,Ae*he-(u?.length??0))}).map((ke,ye)=>{const Se=(u?.length??0)+ye<Ce;return n.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:f&&b&&Se&&n.jsx("div",{style:Pe,children:n.jsx(le,{htmlType:"button",size:x,type:"bar",icon:"plus",label:j("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>b((u?.length??0)+ye)})})},`filler-${ye}`)})]}),y&&k!=="none"&&n.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${k}`,children:j("wordTable.filter.pageIndicator",{current:y.current,total:y.total})})]})}),w&&n.jsx("span",{role:"status",style:$y,children:$})]}),je=se==null?Ne:n.jsx("div",{className:"word-table__frame",style:{height:se},children:Ne});return E?n.jsx(na,{type:"page",icon:t,title:e,disc:a,className:De("word-table-block",r),children:je}):je}function kn({title:e,headerAction:t,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:s,onCollapsedChange:i,footer:l,sections:c,selected:d={},onSelect:u,align:p,sectionAlign:m,className:h}){const b=(p??(m==="vertical"?"newline":"inline"))==="inline",{t:v}=ge.useTranslation(),[C,w]=o.useState(r),f=s??C,g=()=>{const y=!f;w(y),i?.(y)},x=e||t||a;return n.jsxs("div",{className:De("filter-panel",a?"filter-panel--collapsible":"",f?"filter-panel--collapsed":"",h),children:[x&&n.jsxs("div",{className:"filter-panel__header",children:[n.jsxs("div",{className:"filter-panel__title-row",children:[a&&n.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:f?"chevron-down":"chevron-up",ariaLabel:f?v("common.expand","\uD3BC\uCE58\uAE30"):v("common.collapse","\uC811\uAE30"),"aria-expanded":!f,onClick:g}),e&&n.jsx("span",{className:"filter-panel__title h4",children:e})]}),n.jsx("div",{className:"filter-panel__header-actions",children:!f&&t})]}),!f&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:De("filter-panel__sections",b?"filter-panel__sections--row":""),children:c.map(y=>{const k=d[y.label],_=k===void 0||(Array.isArray(k)?k.length===0:!1),B=(y.items??[]).filter(A=>A!=null);y.allOption&&B.some(A=>(typeof A=="string"?A:A.value)===sn)&&Cn(`filter-panel-all-value:${y.label}`,`[FilterPanel] '${y.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${sn}' \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 N=A=>{const S=typeof A=="string"?A:A.value,O=typeof A!="string"&&!!A.disabled,H=typeof A!="string"?A.labels:void 0,j=typeof A!="string"?A.displayLabel:void 0,q=typeof A!="string"?A.tooltip:void 0,E=typeof A!="string"?A.descriptionTooltip:void 0,M=typeof A!="string"?A.shape:void 0,I=Array.isArray(k)?k.includes(S):k===S;return n.jsx(le,{htmlType:"button",size:"keyboard",label:H??j??S,type:y.itemType??(H?"bar":S.length===1?"dot":void 0),selected:I,disabled:O,shape:M,showTooltipInfo:!!q,tooltipInfoText:q,tooltipDescription:E,onClick:()=>u?.(S,y.label)},S)};return n.jsxs(o.Fragment,{children:[y.groupLabel&&n.jsxs("div",{className:"filter-panel__group-label-row",children:[n.jsx("div",{className:"filter-panel__group-label body-2",children:y.groupLabel}),y.groupAction]}),n.jsxs("div",{className:De("filter-panel__section",y.layout==="row"?"filter-panel__section--row":"",y.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:y.displayLabel??y.label}),y.labelAction??(y.labelInfo?n.jsx(Aa,{...y.labelInfo}):null)]}),y.type==="note"?n.jsx("div",{className:"filter-panel__note body-3",children:y.content}):y.type==="input"?n.jsx(zn,{className:"filter-panel__textfield",placeholder:y.placeholder,ariaLabel:y.displayLabel??y.label,value:d[y.label]??"",onChange:A=>u?.(A,y.label),error:y.error}):!y.multiple&&y.display==="segmented"?n.jsx(_n,{ariaLabel:y.displayLabel??y.label,options:[...y.allOption?[{key:sn,label:y.allLabel??v("common.all","\uC804\uCCB4"),disabled:y.allOptionDisabled}]:[],...B.map(A=>{const S=typeof A=="string"?A:A.value,O=typeof A!="string"?A.displayLabel:void 0,H=typeof A!="string"?A.disabled:void 0;return{key:S,label:O??S,disabled:H}})],value:_&&y.allOption?sn:d[y.label]??"",onChange:A=>u?.(A,y.label),size:32}):!y.multiple&&y.display==="dropdown"?n.jsx(rn,{className:"filter-panel__dropdown",size:40,options:[...y.allOption?[{value:sn,label:y.allLabel??v("common.all","\uC804\uCCB4"),disabled:y.allOptionDisabled}]:[],...B.map(A=>{const S=typeof A=="string"?A:A.value,O=typeof A!="string"?A.displayLabel:void 0,H=typeof A!="string"?A.disabled:void 0;return{value:S,label:O??S,disabled:H}})],value:_&&y.allOption?sn:d[y.label],onChange:A=>u?.(A,y.label)}):n.jsxs("div",{className:y.groups?"filter-panel__item-groups":"filter-panel__items",children:[y.allOption&&!y.groups&&n.jsx(le,{htmlType:"button",size:"keyboard",label:y.allLabel??v("common.all","\uC804\uCCB4"),selected:_,disabled:y.allOptionDisabled,onClick:()=>u?.(sn,y.label)}),y.groups?y.groups.map((A,S)=>n.jsxs("div",{className:"filter-panel__item-group",children:[S===0&&y.allOption&&n.jsx(le,{htmlType:"button",size:"keyboard",label:y.allLabel??v("common.all","\uC804\uCCB4"),selected:_,disabled:y.allOptionDisabled,onClick:()=>u?.(sn,y.label)}),A.filter(O=>O!=null).map(N)]},S)):B.map(N)]})]})]},y.label)})}),l!=null&&l!==!1&&n.jsx("div",{className:"filter-panel__footer body-3",children:l})]})]})}const Fy=[1,2,3,4,5,6,7,8,9,10,11,12],xc=[8,4,2,1];function _c(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 wc(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 kc(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 Ac(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 Bc(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 Nc(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...xc.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function Sc(e,t){return e===t||!xc.includes(e)?Number.POSITIVE_INFINITY:e}function Dc(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 Ec={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function jc(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Tc(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"}}function Mc(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===sn?(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):!1}function Oy(e){return"sections"in e}function wo(e){const{t}=ge.useTranslation(),{title:a,className:r}=e;if(Oy(e))return n.jsx(kn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:s,hasColloquial:i,contentTypes:l,orientation:c,showOutline:d,cutLine:u,showDivLine:p,setters:m,showCutLine:h=!1,showDivLine2:b=!1,middleSections:v=[],extraSelected:C={},onExtraSelect:w}=e,f=[_c(t,{hasImage:s,hasColloquial:i}),wc(t),...v,kc(t),...h?[Ac(t)]:[],...b?[Bc(t)]:[]],g={...Tc(t,{contentTypes:l,orientation:c,showOutline:d,cutLine:u,showDivLine:p}),...C},x=(y,k)=>{Mc(t,y,k,m)||w?.(y,k)};return n.jsx(kn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:f,selected:g,onSelect:x,sectionAlign:"horizontal"})}function Lc(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function ko(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let nr=null,oa=null;function Hy(e,t,a,r="",s=""){if(e.length===0||oa&&oa.iframe.isConnected&&Date.now()-oa.at<1e4)return;const i=r?ko(r):"";nr?.();let l=null;if(i){const u=document.title;document.title=i,l=()=>{document.title=u,window.removeEventListener("afterprint",l),nr===l&&(nr=null)},nr=l,window.addEventListener("afterprint",l)}const c=document.createElement("iframe");c.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(c);const d=c.contentDocument;if(!d){c.remove();return}oa={iframe:c,at:Date.now()},d.open(),d.write(Ao(e,t,a,!0,i,s)),d.close(),c.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{c.remove(),oa?.iframe===c&&(oa=null)},0)})}function Ao(e,t,a,r=!1,s="",i=""){s=s?ko(s):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(m=>m.cssText)}catch{return[]}}).join(`
|
|
859
|
+
`),C=v===-1?a:a.slice(0,v);i("comment",C),a=a.slice(C.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),a=a.slice(c[0].length);continue}const d=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(d){i("string",d[0]),a=a.slice(d[0].length);continue}const u=a.match(/^\d+(?:\.\d+)?/);if(u){i("number",u[0]),a=a.slice(u[0].length);continue}const p=a.match($4);if(p){i("keyword",p[0]),a=a.slice(p[0].length);continue}const m=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(m){const v=m[0];i(s&&L4.has(v)?"command":"identifier",v),a=a.slice(v.length);continue}const h=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(h){i("operator",h[0]),a=a.slice(h[0].length);continue}const b=a.match(/^[()[\]{};.,]/);if(b){i("punctuation",b[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function P4({children:e,language:t="bash",title:a="",showCopy:r=!0,size:s="default",className:i=""}){const{t:l}=be.useTranslation(),[c,d]=o.useState(!1),u=M4(Il(e)),p=o.useRef(null);o.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=async()=>{try{if(!await E2(u))return;d(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>d(!1),2e3)}catch{}},h=R4(u,t),b=s==="small"?"caption-1":"body-3";return n.jsxs("div",{className:De("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(le,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:m,ariaLabel:c?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:h.map((v,C)=>n.jsx("span",{className:`code-token ${v.type} ${b}`,children:v.content},C))})})]})}const I4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function Sa(e){const{t}=be.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:i}=e||{},l=i||t("loader.loading","Loading");if(a==="bar"){const d=s==null||!Number.isFinite(Number(s)),u=d?0:Math.max(0,Math.min(100,Number(s)));return n.jsx("div",{className:`loader-bar${d?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d?void 0:u,"aria-label":l,children:n.jsx("div",{className:"loader-bar__inner",style:d?void 0:{width:`${u}%`}})})}const c=typeof r=="number"?`${r}px`:r;return n.jsxs("div",{className:"loader-spinner",style:{width:c,height:c},role:"status","aria-label":l,children:[n.jsx("span",{style:I4,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 Fl({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:s,labelPosition:i="right",className:l="",id:c}){const d=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"&&d,n.jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:u=>t?.(u.target.checked),"aria-label":!r&&s?s:void 0}),n.jsx("span",{className:"toggle__slider"}),i==="right"&&d]})}function Ol({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:s,size:i="medium",className:l,title:c,ariaLabel:d}){const u=o.useRef(null),p=o.useId(),m=o.useRef(!!r);return m.current=!!r,o.useEffect(()=>{u.current&&(u.current.indeterminate=!!r)}),n.jsxs("label",{className:De("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:p,title:c,children:[n.jsx("input",{ref:u,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:h=>{t?.(h.target.checked),u.current&&(u.current.indeterminate=m.current)},disabled:a,"aria-label":!s&&d?d:void 0}),n.jsx("span",{className:"checkbox__box"}),s&&n.jsx("span",{className:"checkbox__label body-3",children:s})]})}function F4({count:e,actions:t,onClear:a,clearLabel:r,visible:s,content:i,max:l}){const{t:c}=be.useTranslation(),d=s!==void 0?s:e>0,u=r??c("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=o.useRef(null),m=o.useRef(null),h=o.useRef(null),b=o.useRef(d);o.useLayoutEffect(()=>{const y=m.current,x=b.current;if(b.current=d,d&&!x){const g=typeof document<"u"?document.activeElement:null;h.current=g&&g!==document.body&&!y?.contains(g)?g:null}else!d&&x&&y&&y.contains(document.activeElement)&&Va(y,h.current)},[d]);const[v,C]=o.useState(!1),w=o.useRef(!1),f=o.useRef(null);return o.useEffect(()=>{const y=p.current;if(!y)return;const x=A=>{w.current=A,C(A)},g=()=>{const A=y.firstElementChild??y,S=Array.from(A.children);if(S.length<2){x(!1);return}const O=S[0].offsetTop,H=S.some(I=>I.offsetTop!==O);if(!w.current){f.current=y.clientWidth,H&&x(!0);return}if(H)return;const j=S[0],q=S[S.length-1],E=q.offsetLeft+q.offsetWidth-j.offsetLeft,M=f.current;(M==null||E<=M)&&x(!1)};if(g(),typeof ResizeObserver>"u")return;const k=new ResizeObserver(g);k.observe(y);const _=y.parentElement;let B=_?.clientWidth??0;const N=new ResizeObserver(()=>{const A=_?.clientWidth??0;A!==B&&(B=A,f.current=null,g())});return _&&N.observe(_),()=>{k.disconnect(),N.disconnect()}},[i,e]),n.jsxs("div",{ref:m,className:`bulk-bar ${d?"bulk-bar--visible":""}`,inert:!d||void 0,"aria-hidden":d?void 0:!0,children:[n.jsx("span",{ref:p,className:"bulk-bar__count body-2",role:"status",children:i??n.jsx("b",{children:c("common.selectedCount",{count:e})})}),l!==void 0&&n.jsx(ht,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),n.jsxs("div",{className:`bulk-bar__actions${v?" bulk-bar__actions--stacked":""}`,children:[n.jsx(le,{htmlType:"button",size:40,label:u,onClick:a}),t.map((y,x)=>n.jsx(le,{htmlType:"button",size:40,variant:y.variant??"default",icon:y.icon,label:y.label,onClick:y.onClick},x))]})]})}function Hl(e,t){const a=()=>{if(e){const[C,w]=e.split("-");return{y:+C,m:+w-1}}const[b,v]=Lr(t).split("-");return{y:+b,m:+v-1}},[r,s]=o.useState(()=>a().y),[i,l]=o.useState(()=>a().m),c=o.useRef(e);o.useEffect(()=>{if(e===c.current)return;c.current=e;const b=a();s(b.y),l(b.m)},[e]);const d=o.useRef({y:r,m:i});o.useEffect(()=>{d.current={y:r,m:i}},[r,i]);const u=o.useCallback(b=>{const v=d.current.y*12+d.current.m+b,C=Math.floor(v/12),w=v-C*12;d.current={y:C,m:w},s(C),l(w)},[]),p=o.useCallback(()=>u(-1),[u]),m=o.useCallback(()=>u(1),[u]),h=o.useCallback((b,v)=>{d.current={y:b,m:v},s(b),l(v)},[]);return{viewY:r,viewM:i,prevMonth:p,nextMonth:m,setViewYM:h}}function Za(e,t){return new Date(e,t+1,0).getDate()}function O4(e,t){return new Date(e,t,1).getDay()}function Xa(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function H4(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function z4(e,t,a,r){const s=a?+a.split("-")[0]:e-10,i=r?+r.split("-")[0]:e+10,l=[];for(let c=s;c<=i;c++)for(let d=0;d<12;d++){const u=`${c}-${String(d+1).padStart(2,"0")}`;a&&u<a.slice(0,7)||r&&u>r.slice(0,7)||l.push({value:u,label:t(c,d+1)})}return l}function V4({value:e,onChange:t,size:a=48,min:r,max:s,disabled:i,placeholder:l,className:c,today:d}){const{t:u}=be.useTranslation(),p=l??u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),m=o.useMemo(()=>u("calendar.dow",{returnObjects:!0}),[u]),h=Lr(d),{viewY:b,viewM:v,prevMonth:C,nextMonth:w,setViewYM:f}=Hl(e,d),y=o.useId(),x=o.useCallback((D,F)=>{const P=window.innerHeight,R=window.innerWidth,$=typeof document<"u"?document.getElementById(y):null,ee=$?.offsetHeight||300,J=Math.max(D.width,$?.offsetWidth||0,260),Y=P-D.bottom<ee&&D.top>ee,ne=8,Ce=(re,ie)=>Math.min(Math.max(ne,re),Math.max(ne,ie));return{position:"fixed",left:Ce(D.left,R-J-ne),width:D.width,minWidth:260,...Y?{bottom:Ce(P-D.top+6,P-ee-ne)}:{top:Ce(D.bottom+6,P-ee-ne)},zIndex:va(F)}},[y]),{open:g,setOpen:k,toggle:_,style:B,triggerRef:N,menuRef:A}=xa({computeStyle:x,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(gn)??D)?.focus?.(),()=>{const F=document.activeElement;(!F||F===document.body)&&N.current?.focus?.()}},[g,A,N]);const[S,O]=o.useState(1),H=o.useRef(null),j=o.useRef(null);o.useEffect(()=>{if(!g)return;const D=e&&e.slice(0,7)===`${b}-${String(v+1).padStart(2,"0")}`?+e.slice(8):h.slice(0,7)===`${b}-${String(v+1).padStart(2,"0")}`?+h.slice(8):1;O(D)},[g]),o.useEffect(()=>{if(j.current==null)return;const D=j.current;j.current=null,H.current?.querySelector(`[data-day="${D}"]`)?.focus()}),o.useEffect(()=>{O(D=>Math.min(D,Za(b,v)))},[b,v]);const q=o.useCallback(D=>{let F=Xa(D.getFullYear(),D.getMonth(),D.getDate());r&&F<r&&(F=r),s&&F>s&&(F=s);const[P,R,$]=F.split("-").map(Number);(P!==b||R-1!==v)&&f(P,R-1),O($),j.current=$},[r,s,b,v,f]),E=o.useCallback(D=>{const F=new Date(b,v,S),P=$=>{F.setDate(F.getDate()+$),q(F)},R=$=>{const ee=F.getFullYear()*12+F.getMonth()+$,J=Math.floor(ee/12),Y=ee-J*12;q(new Date(J,Y,Math.min(F.getDate(),Za(J,Y))))};switch(D.key){case"ArrowLeft":P(-1);break;case"ArrowRight":P(1);break;case"ArrowUp":P(-7);break;case"ArrowDown":P(7);break;case"Home":P(-F.getDay());break;case"End":P(6-F.getDay());break;case"PageUp":D.shiftKey?R(-12):R(-1);break;case"PageDown":D.shiftKey?R(12):R(1);break;default:return}D.preventDefault()},[b,v,S,q]),M=o.useCallback(D=>{i||(t(Xa(b,v,D)),k(!1))},[b,v,t,k,i]);o.useEffect(()=>{i&&k(!1)},[i,k]);const I=D=>{const F=Xa(b,v,D);return!!(r&&F<r||s&&F>s)},G=(()=>{const D=Za(b,v);if(S>=1&&S<=D&&!I(S))return S;for(let F=1;F<=D;F++)if(!I(F))return F;return-1})(),Z=[];for(let D=0;D<O4(b,v);D++)Z.push(null);for(let D=1;D<=Za(b,v);D++)Z.push(D);const U=a===64?20:a===40?16:18,z=z4(b,(D,F)=>u("calendar.yearMonth",{year:D,month:F,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,s),K=`${b}-${String(v+1).padStart(2,"0")}`,L=g?Ut.createPortal(n.jsxs("div",{ref:A,id:y,className:"date-picker__dropdown",style:B,"data-tooltip-ignore":!0,role:"dialog","aria-label":u("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":u("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(os,{size:16,strokeWidth:2})}),n.jsx(rn,{className:"date-picker__nav-dropdown",ariaLabel:u("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:z,value:K,onChange:D=>{const[F,P]=D.split("-");f(+F,+P-1)},block:!0,size:40}),n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:w,"aria-label":u("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(ss,{size:16,strokeWidth:2})})]}),n.jsxs("div",{className:"date-picker__grid",ref:H,onKeyDown:E,children:[m.map(D=>n.jsx("div",{className:"date-picker__dow caption-1",children:D},D)),Z.map((D,F)=>{if(D===null)return n.jsx("div",{},`e${F}`);const P=Xa(b,v,D),R=P===e,$=P===h,ee=I(D),J=F%7;return n.jsx("button",{type:"button",disabled:ee,"data-day":D,tabIndex:D===G?0:-1,"aria-current":$?"date":void 0,onClick:()=>!ee&&M(D),className:De("date-picker__day caption-1",R&&"date-picker__day--selected",$&&!R&&"date-picker__day--today",ee&&"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:De("date-picker",`date-picker--s${a}`,g&&"date-picker--open",c),children:[n.jsxs("button",{ref:N,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&_(),disabled:i,"aria-haspopup":"true","aria-expanded":g,children:[n.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?H4(e):p}),n.jsx(fs,{size:U,className:"date-picker__icon",strokeWidth:1.5})]}),L]})}function zl({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 d=typeof window<"u"&&window.getComputedStyle(i).position==="absolute"?Math.ceil(i.getBoundingClientRect().width):0;d>0?r.style.setProperty("--section-head-float-w",`${d}px`):r.style.removeProperty("--section-head-float-w")};if(l(),typeof ResizeObserver>"u")return()=>{r.style.removeProperty("--section-head-float-w")};const c=new ResizeObserver(()=>l());return c.observe(i),c.observe(r),()=>{c.disconnect(),r.style.removeProperty("--section-head-float-w")}},[r,e]),n.jsx("div",{ref:a,className:De("section-head-float",t),children:e})}function io({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 Da({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 lo({title:e,titleClassName:t="h3",icon:a,disc:r,headRight:s,headFloat:i,headSegment:l,headMenuItems:c,collapseBelow:d=420,onClick:u,ariaLabel:p,tooltip:m,totalNum:h,totalUnit:b,totalLabel:v,subRow:C,subRowAlign:w="start",className:f,inGrid:y=!1,children:x}){const{t:g}=be.useTranslation(),k=o.useRef(null),{anchorRect:_,openAt:B,close:N}=ya(),A=o.useCallback(()=>{m&&k.current&&B(k.current)},[m,B]),[S,O]=o.useState(!1);oo(()=>{const L=k.current;if(!L||!l)return;const D=P=>O(P>0&&P<d);if(D(L.clientWidth),typeof ResizeObserver>"u")return;const F=new ResizeObserver(P=>D(P[0].contentRect.width));return F.observe(L),()=>F.disconnect()},[l,d]);const[H,j]=o.useState(null),q=o.useCallback(()=>j(null),[]),E=o.useCallback(L=>{const D=L.currentTarget.getBoundingClientRect();j(F=>F?null:{left:D.left,right:D.right,top:D.top,bottom:D.bottom,width:D.width,height:D.height,x:D.x,y:D.y})},[]),M=!!l&&S;o.useEffect(()=>{M||j(null)},[M]);const I=l?[...l.options.map(L=>({label:L.label,icon:L.icon,selected:L.key===l.value,disabled:L.disabled,onClick:()=>l.onChange(L.key),closeOnSelect:!0})),...(c??[]).map((L,D)=>D===0?{...L,separatorBefore:!0}:L)]:[],G=o.useCallback(L=>{if(!u)return;const D=L.target;D&&typeof D.closest=="function"&&D.closest('button, a, input, select, textarea, [role="radiogroup"]')||u()},[u]),Z=o.useCallback(L=>{u&&L.target===L.currentTarget&&(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),u())},[u]),U=typeof s=="function"?s({collapsed:M}):s,z=h!=null||v?n.jsxs(Da,{label:v,children:[h!=null&&n.jsx("span",{className:"barchart-total__num h0",children:h}),b&&n.jsx("span",{className:"barchart-total__unit h5",children:b})]}):null,K=U||l?n.jsxs("div",{className:"manager-section__head-right",children:[l&&(M?n.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"ellipsis",ariaLabel:l.ariaLabel??g("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:l.ariaLabel??g("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!H,onClick:E}):n.jsx(_n,{size:32,ariaLabel:l.ariaLabel,options:l.options.map(L=>({key:L.key,label:L.label,disabled:L.disabled})),value:l.value,onChange:l.onChange})),U]}):null;return n.jsxs("section",{ref:k,className:["manager-section",y&&"manager-section--grid",u&&"manager-section--clickable",f].filter(Boolean).join(" "),onClick:u?G:void 0,onKeyDown:u?Z:void 0,onPointerEnter:m?A:void 0,onPointerLeave:m?N:void 0,onFocus:m?A:void 0,onBlur:m?N:void 0,role:u?"button":void 0,tabIndex:u?0:void 0,"aria-label":u?p??(typeof e=="string"?e:void 0):void 0,children:[m&&_&&n.jsx(bn,{anchorRect:{left:_.left,top:_.top+21,right:_.right,bottom:_.bottom,width:_.width,height:_.height},text:m}),i&&n.jsx(zl,{children:i}),n.jsxs("div",{className:"manager-section__head",children:[n.jsxs("div",{className:"manager-section__title-row",children:[a&&n.jsx(Ke,{icon:a,label:typeof e=="string"?e:void 0,className:"manager-section__icon"}),n.jsx("div",{className:["manager-section__title",t].filter(Boolean).join(" "),children:e})]}),K,r&&n.jsx("div",{className:"manager-section__disc body-3",children:r})]}),(z||C)&&n.jsxs("div",{className:["barchart-sub-row",w!=="start"&&`barchart-sub-row--${w}`].filter(Boolean).join(" "),children:[z,C]}),x,H&&n.jsx(an,{anchorRect:H,onClose:q,ariaLabel:l?.ariaLabel??g("tooltip.menu","\uBA54\uB274"),children:n.jsx(_a,{columns:[{items:I}],onClose:q,size:"small"})})]})}function ln(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function W4(){const e=Kn();let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<ln(t,a)){const l=new Date(t,a,0);t=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const s=Math.floor((r-ln(t,a))/7),i=`${t}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${s}`}}function q4(e){const t=Kn(),a=`${t.getFullYear()}\uB144 ${t.getMonth()+1}\uC6D4`,r=(d,u)=>`${d}\uB144 ${u+1}\uC6D4`,s=new Map;s.set(a,[]);for(const d of e){if(isNaN(d.date.getTime()))continue;const u=r(d.date.getFullYear(),d.date.getMonth());s.has(u)||s.set(u,[]),s.get(u).push(d)}for(const[d,u]of[...s.entries()]){const p=d.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),h=Number(p[2])-1,b=ln(m,h);if(!(d===a&&t.getDate()<b)&&!u.some(w=>w.date.getDate()<b))continue;const v=new Date(m,h,0),C=r(v.getFullYear(),v.getMonth());s.has(C)||s.set(C,[])}const i=new Map;for(const[d,u]of s){const p=d.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),h=Number(p[2])-1,b=new Date(m,h+1,0).getDate(),v=u.reduce((g,k)=>Math.max(g,k.parts?.length??0,k.partsB?.length??0),0),C=u.some(g=>g.partsB),w=new Array(b+1).fill(0),f=new Array(b+1).fill(0),y=Array.from({length:b+1},()=>new Array(v).fill(0)),x=Array.from({length:b+1},()=>new Array(v).fill(0));for(const g of u){const k=g.date.getDate();if(w[k]+=g.a,f[k]+=g.b,g.parts)for(let _=0;_<v;_++)y[k][_]+=g.parts[_]??0;if(g.partsB)for(let _=0;_<v;_++)x[k][_]+=g.partsB[_]??0}i.set(d,{year:m,month:h,daysInMonth:b,partsLen:v,hasPartsB:C,dayA:w,dayB:f,dayParts:y,dayPartsB:x})}const l=(d,u,p)=>new Date(d,u,p).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),c={};for(const[d,u]of i){const{year:p,month:m,daysInMonth:h,dayA:b,dayB:v,dayParts:C,dayPartsB:w}=u,f=p===t.getFullYear()&&m===t.getMonth(),y=t.getDate(),x=i.get(r(m===11?p+1:p,(m+1)%12)),g=u.partsLen,k=[];for(let B=1;B<=h;B++){const N=f&&B>y;k.push({label:String(B),...N&&b[B]===0&&v[B]===0?{future:!0}:{},a:N&&b[B]===0&&v[B]===0?-1:b[B],b:v[B],...g?{parts:C[B]}:{},...g&&u.hasPartsB?{partsB:w[B]}:{}})}const _=[];for(let B=ln(p,m);B<=h;B+=7){const N=Math.max(0,B+6-h),A=N&&x?Math.max(g,x.partsLen):g,S=u.hasPartsB||!!(N&&x?.hasPartsB);let O=0,H=0;const j=new Array(A).fill(0),q=new Array(A).fill(0);for(let M=B;M<=Math.min(B+6,h);M++){O+=b[M],H+=v[M];for(let I=0;I<g;I++)j[I]+=C[M][I],q[I]+=w[M][I]}if(N&&x)for(let M=1;M<=N&&!l(x.year,x.month,M);M++){O+=x.dayA[M],H+=x.dayB[M];for(let I=0;I<x.partsLen;I++)j[I]+=x.dayParts[M][I],q[I]+=x.dayPartsB[M][I]}const E=N?`${(m+1)%12+1}/${N}`:`${B+6}`;_.push({label:`${_.length+1}\uC8FC`,sublabel:`[${B}\uC77C~${E}\uC77C]`,a:O,b:H,...A?{parts:j}:{},...A&&S?{partsB:q}:{}})}c[d]={weekly:_,daily:k}}return c}function Vl(){const e=Kn(),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 c=`${s}\uB144 ${l}\uC6D4`;r.push({value:c,label:c,year:s,month:l})}}return r.reverse()}Vl();function U4(){return Vl()}const Wl=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function ql(e){const{t,i18n:a}=be.useTranslation(),[r,s]=o.useState("week"),i=o.useMemo(()=>U4().filter(A=>A.value in e),[e]),l=o.useMemo(()=>{const A=[];for(const S of i){const O=new Date(S.year,S.month,0).getDate(),H=ln(S.year,S.month-1),j=Math.ceil((O-H+1)/7);for(let q=j-1;q>=0;q--)A.push({value:`${S.value}#${q}`,monthKey:S.value,year:S.year,month:S.month,week:q})}return A},[i]),c=o.useCallback(A=>{const S=t("calendar.yearMonth",{year:A.year,month:A.month});return a.language?.startsWith("ko")?`${S} ${Wl[A.week]??`${A.week+1}`}\uC8FC`:`${S} Week ${A.week+1}`},[t,a.language]),d=o.useMemo(()=>i.map(A=>({value:A.value,label:t("calendar.yearMonth",{year:A.year,month:A.month})})),[t,i]),u=o.useMemo(()=>l.map(A=>({value:A.value,label:c(A)})),[l,c]),p=o.useMemo(()=>W4(),[e]),m=o.useMemo(()=>i.find(A=>A.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),h=o.useMemo(()=>l.find(A=>A.value===p.value)?.value??l[0]?.value??"",[l,p]),[b,v]=o.useState(""),[C,w]=o.useState("");o.useEffect(()=>{i.find(A=>A.value===b)||v(m)},[i,b,m]),o.useEffect(()=>{l.find(A=>A.value===C)||w(h)},[l,C,h]);const f=r==="month"?d:u,y=r==="month"?b:C,x=r==="month"?v:w,g=o.useMemo(()=>{const A=t("calendar.dow",{returnObjects:!0});return Array.isArray(A)?A:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),k=f.findIndex(A=>A.value===y),_=o.useCallback(()=>{const A=f.findIndex(S=>S.value===y);A<f.length-1&&x(f[A+1].value)},[f,y,x]),B=o.useCallback(()=>{const A=f.findIndex(S=>S.value===y);A>0&&x(f[A-1].value)},[f,y,x]),N=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:y,setRange:x,activeOptions:f,activeIdx:k,handlePrev:_,handleNext:B,periodOptions:N,monthRange:b,weekRange:C,weekRanges:l,DOW:g}}const ct=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function wn(e,t=!0){return e.future===!0||t&&e.a===-1}function G4({data:e,colorA:t,colorB:a,labelA:r,labelB:s,barWidth:i=10,barGap:l=1,height:c=140,maxOverride:d,tightMax:u,seriesColors:p,seriesLabels:m,rateLabels:h,grouped:b=!1,baseline:v}){const C=!a,w=!!(p&&p.length>0),f=v,y=o.useMemo(()=>w?Math.max(0,...e.filter(M=>!wn(M,f==null)).map(M=>b?Math.max(0,...(M.parts??[]).map(ct)):(M.parts??[]).reduce((I,G)=>I+Math.max(0,ct(G)),0))):Math.max(0,...e.filter(M=>!wn(M,f==null)).flatMap(M=>C?[ct(M.a)]:[ct(M.a),ct(M.b)])),[e,C,w,b]),x=o.useMemo(()=>{if(f==null)return 0;const M=e.filter(I=>!wn(I,f==null)).flatMap(I=>w?(I.parts??[]).map(ct):C?[ct(I.a)]:[ct(I.a),ct(I.b)]);return Math.max(0,...M.map(I=>Math.abs(I-f)))},[e,f,w,C]),g=o.useMemo(()=>{const M=f!=null?x:y;return d??(u?M>0?M:10:Math.ceil(M/10)*10||10)},[y,x,f,d,u]),k=c,_=w?b?Math.max(1,p.length):1:C?1:2,B={"--bar-width":`${o.useMemo(()=>{const M=Math.max(1,e.length);return Math.max(2,Math.min(i,Math.round(120/(M*_)+6)))},[e.length,_,i])}px`},N={"--bar-group-gap":`${Math.max(0,l)}px`},A=o.useMemo(()=>{const M=Math.round(g/2);return f!=null?[f+g,...M!==g?[f+M]:[],f,...M!==g?[f-M]:[],f-g]:M!==g?[g,M,0]:[g,0]},[g,f]),S=M=>f!=null?1-(M-(f-g))/(2*g):1-M/g,[O,H]=o.useState(null),j=o.useCallback(()=>H(null),[]),q=M=>f!=null&&M>f?`+${M}`:`${M}`,E=O!=null;return o.useEffect(()=>{if(!E)return;const M=()=>H(null),I=G=>{const Z=G.target;Z&&typeof Z.closest=="function"&&Z.closest(".manager-bar-chart-col")||H(null)};return window.addEventListener("scroll",M,!0),document.addEventListener("pointerdown",I,!0),()=>{window.removeEventListener("scroll",M,!0),document.removeEventListener("pointerdown",I,!0)}},[E]),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:k},children:[A.slice(0,-1).map((M,I)=>n.jsx("div",{className:`manager-bar-chart-gridline${f!=null&&M===f?" manager-bar-chart-gridline--baseline":""}`,style:{top:S(M)*k},children:n.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:M})},I)),e.map((M,I)=>{const G=wn(M,f==null),Z=k/2,U=D=>f!=null?Math.min(Z,Math.abs(ct(D)-f)/g*Z):Math.min(k,Math.max(0,ct(D)/g*k)),z=G?0:U(M.a),K=G?0:U(M.b),L=(M.parts??[]).map(ct);return n.jsx("div",{className:`manager-bar-chart-col${b&&w?" manager-bar-chart-col--group":""}`,style:{cursor:G?"default":"pointer"},onMouseEnter:G?void 0:D=>{const F=D.currentTarget.getBoundingClientRect(),P=[M.label,M.sublabel].filter(Boolean).join(" ");let R;if(w&&b&&M.rawPartsB)R=(m??[]).map(($,ee)=>{const J=M.rawPartsB[ee]??0;return{text:J>0?`${$}: ${L[ee]??0}% (${M.rawParts?.[ee]??0}/${J})`:`${$}: -`,color:(p??[])[ee]}});else if(w&&b)R=(m??[]).map(($,ee)=>({text:`${$}: ${q(L[ee]??0)}`,color:(p??[])[ee]}));else if(w){const $=(m??[]).map((J,Y)=>({text:`${J}: ${L[Y]??0}`,color:(p??[])[Y]})),ee=$.filter((J,Y)=>(L[Y]??0)>0);R=ee.length?ee:$}else h&&!C?R=[{text:`${r} ${ct(M.a)}%`,color:t},{text:`${s} ${ct(M.b)}%`,color:a}]:h&&M.rawB!==void 0?R=[{text:`${h.total} ${M.rawB}`},{text:`${h.done} ${M.rawA??0}`,color:t}]:C?R=[{text:`${r}: ${ct(M.a)}`,color:t}]:R=[{text:`${r}: ${ct(M.a)}`,color:t},{text:`${s}: ${ct(M.b)}`,color:a}];H({rect:{left:F.left,top:F.top,right:F.right,bottom:F.bottom,width:F.width,height:F.height},title:P,items:R})},onMouseLeave:j,children:!G&&(w&&b?(p??[]).map((D,F)=>{const P=L[F]??0;if(f==null)return n.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:U(P),background:D}},F);const R=ct(P)<f;return n.jsxs("div",{className:"manager-bar-chart-slot",style:B,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!R&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:U(P),background:D}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:R&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:U(P),background:D}})})]},F)}):w?n.jsx("div",{className:"manager-bar-chart-stack",style:B,children:(()=>{const D=L.reduce((P,R,$)=>R>0?$:P,-1);let F=k;return L.map((P,R)=>{if(P<=0)return null;const $=Math.min(F,P/g*k);return F-=$,n.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:$,background:(p??[])[R],borderRadius:R===D?"6px 6px 0 0":void 0}},R)})})()}):f!=null?n.jsx(n.Fragment,{children:[{v:ct(M.a),c:t},...C?[]:[{v:ct(M.b),c:a}]].map(({v:D,c:F},P)=>n.jsxs("div",{className:"manager-bar-chart-slot",style:B,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:D>=f&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:U(D),background:F}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:D<f&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:U(D),background:F}})})]},P))}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:z,background:t}}),!C&&n.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:K,background:a}})]}))},I)})]}),n.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((M,I)=>{const G=wn(M,f==null);return n.jsxs("span",{className:`manager-bar-chart-x-axis__label${G?" manager-bar-chart-x-axis__label--future":""}`,children:[n.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[M.isToday&&n.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),M.label]}),M.sublabel&&n.jsx("span",{className:"caption-1",children:M.sublabel})]},I)})})]})})}),O&&n.jsx(Fn,{anchorRect:O.rect,title:O.title,items:O.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Ul({control:e}){const{t}=be.useTranslation(),{activeOptions:a,activeIdx:r,range:s,setRange:i,handlePrev:l,handleNext:c,periodOptions:d,period:u,setPeriod:p}=e,m=u==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),h=u==="week"?t("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):t("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return n.jsxs("div",{className:"manager-section-controls",children:[n.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:m,showTooltipInfo:m,disabled:r===a.length-1,onClick:l}),n.jsx(rn,{value:s,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),n.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:h,showTooltipInfo:h,disabled:r<=0,onClick:c}),n.jsx(_n,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:d,value:u,onChange:b=>p(b),size:40})]})}function co(e,t,a,r=!0){const s=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(i,l)=>{const c=new Date(t);c.setDate(t.getDate()+l);const d=(e[`${c.getFullYear()}\uB144 ${c.getMonth()+1}\uC6D4`]?.daily??[])[c.getDate()-1],u=d!=null&&wn(d,r)||c>s;return{dt:c,entry:d,isFuture:u}})}function K4(e,t,a,r,s=!0){const{period:i,monthRange:l,weekRange:c,weekRanges:d,DOW:u}=t,p=r?.startsWith("ko"),m=Kn(),h=m.getFullYear(),b=m.getMonth()+1,v=m.getDate();if(i==="month"){const f=e[l]??{weekly:[],daily:[]},y=l.match(/^(\d+)년 (\d+)월$/),x=y?Number(y[1]):null,g=y?Number(y[2]):null,k=x&&g?ln(x,g-1):1;return f.weekly.map((_,B)=>{const N=B+1;let A=_.label,S=!1,O=!1;if(x&&g){const H=k+B*7,j=new Date(x,g-1,H+6),q=j.getMonth()+1,E=j.getDate(),M=q===g?`${E}`:`${q}/${E}`;A=a("manager.chart.weekRange",{start:H,end:M});const I=new Date(h,b-1,v).getTime();S=I>=new Date(x,g-1,H).getTime()&&I<=j.getTime(),O=x>h||x===h&&(g>b||g===b&&H>v)}return{..._,label:A,sublabel:p?`${Wl[N-1]??N}\uC8FC`:`Week ${N}`,isToday:S,future:_.future===!0||O||void 0,a:O?-1:_.a,b:O?0:_.b}})}const C=d.find(f=>f.value===c);if(!C)return[];const w=new Date(C.year,C.month-1,ln(C.year,C.month-1)+C.week*7);return co(e,w,m,s).map(({dt:f,entry:y,isFuture:x})=>{const g=f.getMonth()+1,k=f.getDate(),_=f.getFullYear();return{label:g===C.month&&_===C.year?`${k}`:`${g}/${k}`,sublabel:u[f.getDay()]??"",future:x||void 0,a:x?-1:y&&y.a>0?y.a:0,b:x?0:y&&y.b>0?y.b:0,isToday:_===h&&g===b&&k===v,...y?.parts?{parts:x?y.parts.map(()=>0):y.parts}:{},...y?.partsB?{partsB:x?y.partsB.map(()=>0):y.partsB}:{}}})}const Y4={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function Z4({size:e="medium",barWidth:t,titleKey:a,data:r,colorA:s,colorB:i,labelAKey:l,labelBKey:c,showTotal:d=!1,totalUnitKey:u,totalLabelKey:p,control:m,hideControls:h=!1,rate:b=!1,rateAgg:v="dayMean",tightMax:C=!1,avgMode:w=!1,totalFormat:f,series:y,seriesMode:x="stack",loading:g=!1,onDetail:k,headExtra:_,headSegment:B,icon:N,disc:A,onClick:S,cardAriaLabel:O,cardTooltip:H,detailSize:j=32,barGap:q,baseline:E,className:M,inGrid:I=!1}){const{t:G,i18n:Z}=be.useTranslation(),U=Y4[e],z=ql(r),K=m??z,L=o.useMemo(()=>K4(r,K,G,Z.language,E==null),[r,K,G,Z.language,E]),D=x==="group"&&!!y&&y.length>0;q!=null&&!D&&Cn("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(!b)return L;const J=K.period==="month"?K.monthRange.match(/^(\d+)년 (\d+)월$/):null,Y=Kn(),ne=y?.length??0,Ce=re=>{const ie=[],W=[],oe=[];for(let pe=0;pe<ne;pe++){let xe=0,ge=0,Be=0;for(const he of re){const ye=ct(he.a[pe]),Te=ct(he.b[pe]);Te<=0||(xe+=ye,ge+=Te,Be+=ye/Te*100)}ie.push(v==="weighted"?ge>0?Math.round(xe/ge*100):0:re.length?Math.round(Be/re.length):0),W.push(xe),oe.push(ge)}return{pct:ie,ra:W,rb:oe}};return L.map((re,ie)=>{let W=re.a===-1?-1:re.b>0?Math.round(re.a/re.b*100):0;if(J&&!wn(re)){const pe=Number(J[1]),xe=Number(J[2])-1,ge=co(r,new Date(pe,xe,ln(pe,xe)+ie*7),Y).filter(Be=>!Be.isFuture);if(v==="weighted"){let Be=0,he=0;for(const{entry:ye}of ge)ye&&ye.b>0&&(Be+=ye.a,he+=ye.b);W=he>0?Math.round(Be/he*100):0}else W=ge.length?Math.round(ge.reduce((Be,{entry:he})=>Be+(he&&he.b>0?he.a/he.b*100:0),0)/ge.length):0}let oe=null;if(D&&!wn(re)){let pe;if(J){const ge=Number(J[1]),Be=Number(J[2])-1;pe=co(r,new Date(ge,Be,ln(ge,Be)+ie*7),Y).filter(he=>!he.isFuture).map(({entry:he})=>({a:he?.parts??[],b:he?.partsB??[]}))}else pe=[{a:re.parts??[],b:re.partsB??[]}];const xe=Ce(pe);oe={parts:xe.pct,rawParts:xe.ra,rawPartsB:xe.rb}}return{...re,a:W,b:re.a===-1?0:c&&re.parts&&re.parts[1]>0?Math.round(re.parts[0]/re.parts[1]*100):0,rawA:re.a===-1?-1:re.a,rawB:re.b,...oe??{}}})},[L,b,v,c,K.period,K.monthRange,r,D,y?.length]),P=o.useMemo(()=>{if(b||w){const Y=(K.period==="week"?L:r[K.monthRange]?.daily??[]).filter(Ce=>Ce.a!==-1);if(Y.length===0)return 0;if(b&&v==="weighted"){let Ce=0,re=0;for(const ie of Y)ie.b>0&&(Ce+=ie.a,re+=ie.b);return re>0?Math.round(Ce/re*100):0}const ne=b?Y.reduce((Ce,re)=>Ce+(re.b>0?re.a/re.b*100:0),0):Y.reduce((Ce,re)=>Ce+(re.a>0?re.a:0),0);return Math.round(ne/Y.length)}const J=K.period==="month"?r[K.monthRange]?.daily??[]:F;return E!=null?J.reduce((Y,ne)=>Y+(wn(ne,!1)?0:ct(ne.a)+(c?ct(ne.b):0)),0):J.reduce((Y,ne)=>Y+(ne.a>0?ne.a:0)+(c&&ne.b>0?ne.b:0),0)},[F,L,b,v,w,E,c,K.period,K.monthRange,r]),R=y&&y.length>0?y.map(J=>({color:J.color,label:J.label})):[{color:s,label:G(l)},...c?[{color:i,label:G(c)}]:[]],$=e==="small",ee=[$?"manager-section--compact":e==="large"?"manager-section--full":void 0,M].filter(Boolean).join(" ")||void 0;return n.jsx(lo,{className:ee,inGrid:I,icon:N,disc:A,onClick:S,ariaLabel:O,tooltip:H,headSegment:B,headMenuItems:k?[{label:G("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),icon:"list",onClick:k,closeOnSelect:!0}]:void 0,title:G(a),titleClassName:$?"h5 chart-section-title--small":void 0,headRight:$?_??void 0:({collapsed:J})=>n.jsxs(n.Fragment,{children:[!h&&n.jsx(Ul,{control:K}),_,k&&!J&&n.jsx("span",{className:"manager-bar-chart-detail-btn",children:n.jsx(le,{htmlType:"button",size:j,type:"dot",icon:"list",ariaLabel:G("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),showTooltipInfo:G("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:k})})]}),subRow:n.jsxs(n.Fragment,{children:[d?b||w||p&&f?n.jsx(Da,{label:$?void 0:`${G(K.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${G(p??l)}`,children:f?(f(P).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((J,Y)=>/\d/.test(J)?n.jsx("span",{className:"barchart-total__num h0",children:J},Y):n.jsx("span",{className:"barchart-total__unit h5",children:J},Y)):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"barchart-total__num h0",children:P}),u&&n.jsx("span",{className:"barchart-total__unit h5",children:G(u)})]})}):n.jsxs(Da,{children:[n.jsx("span",{className:"barchart-total__num h0",children:P}),n.jsx("span",{className:"barchart-total__unit h5",children:G(l)}),u&&n.jsx("span",{className:"barchart-total__unit h5",children:G(u)})]}):n.jsx("span",{}),n.jsx(io,{items:R,className:"caption-1"})]}),children:g?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:U.height},children:n.jsx(Sa,{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(J=>!!J.sublabel)&&n.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):n.jsx(G4,{data:F,colorA:s,colorB:c?i:void 0,labelA:G(l),labelB:c?G(c):void 0,barWidth:t??U.barWidth,barGap:q,baseline:E,height:U.height,maxOverride:b?100:void 0,tightMax:C,seriesColors:y?.map(J=>J.color),seriesLabels:y?.map(J=>J.label),rateLabels:b?{total:G("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:G("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:D})})}const Gl=120,X4={left:38,right:16,top:26,bottom:24};function J4({points:e=[],range:t,ticks:a=[],axisTitle:r,color:s,height:i=156,fallbackWidth:l=320,insets:c,overlay:d,ariaLabel:u,className:p}){const[m,h]=o.useState(null),[b,v]=o.useState(null);o.useEffect(()=>{if(!b)return;const I=Z=>h(Math.round(Z)||null);if(I(b.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const G=new ResizeObserver(([Z])=>I(Z.contentRect.width));return G.observe(b),()=>{G.disconnect()}},[b]);const{payload:C,anchorRect:w,openAfterDelay:f,close:y}=ob(Gl),x=o.useCallback((I,G)=>{I&&f(I,G.getBoundingClientRect())},[f]),g=m??l,k=i,{left:_,right:B,top:N,bottom:A}={...X4,...c},[S,O]=t,H=I=>O===S?_:_+(g-_-B)*(I-S)/(O-S),j=I=>N+(k-N-A)*(100-I)/100,q={x:H,y:j,plot:{left:_,right:g-B,top:N,bottom:k-A,width:Math.max(0,g-_-B),height:Math.max(0,k-N-A)}},E=e.filter(I=>!I.hollow),M=s??"var(--color-main)";return n.jsxs(n.Fragment,{children:[n.jsxs("svg",{ref:v,className:De("line-chart",p),viewBox:`0 0 ${g} ${k}`,role:"img","aria-label":u??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:_,x2:g-B,y1:j(I),y2:j(I)}),n.jsxs("text",{className:"line-chart__tick",x:_-6,y:j(I)+4,textAnchor:"end",children:[I,"%"]})]},I)),d?.(q),a.map(I=>n.jsx("text",{className:"line-chart__tick",x:H(I.x),y:k-5,textAnchor:"middle",children:I.label},I.x)),E.length>1&&n.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:M,points:E.map(I=>`${H(I.x)},${j(I.pct)}`).join(" ")}),e.map(I=>n.jsxs("g",{className:"line-chart__dot",onPointerEnter:G=>x(I.description,G.currentTarget),onPointerLeave:y,children:[n.jsx("circle",{className:"line-chart__dot-hit",cx:H(I.x),cy:j(I.pct),r:12}),n.jsx("circle",{className:De("line-chart__dot-main",I.hollow&&"is-hollow"),cx:H(I.x),cy:j(I.pct),r:4,stroke:M,fill:I.hollow?void 0:M})]},I.x))]}),C!=null&&n.jsx(an,{anchorRect:w,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:C,children:C})]})}const Kl=(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")}`},Yl=(e,t,a,r)=>({from:ii(e,t,a),to:new Date(ii(e,t,a+r).getTime()-1),fromYmd:Kl(e,t,a),toYmd:Kl(e,t,a+r-1)});function Q4(e,t=0){if(e.period==="month"){const s=e.monthRange.match(/^(\d+)년 (\d+)월$/),i=Kn(),l=s?Number(s[1]):i.getFullYear(),c=(s?Number(s[2]):i.getMonth()+1)-1+t,d=new Date(Date.UTC(l,c+1,0)).getUTCDate();return Yl(l,c,1,d)}const a=e.weekRanges.find(s=>s.value===e.weekRange);if(!a){const s=new Date,i=Ca();return{from:s,to:s,fromYmd:i,toYmd:i}}const r=ln(a.year,a.month-1);return Yl(a.year,a.month-1,r+(a.week+t)*7,7)}const uo={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Zl(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function Xl({done:e,total:t,segments:a,color:r="var(--color-main)",size:s="medium",strokeWidth:i,label:l="%",hideCenter:c=!1,hideLabel:d=!1}){const u=typeof s=="number"?s:uo[s].diameter,p=i??(typeof s=="number"?12:uo[s].strokeWidth),m=u/2,h=(u-p)/2,b=2*Math.PI*h;if(a&&a.length>0){const f=a.reduce((y,x)=>{const g=y.length>0?y[y.length-1].acc:0,k=Number.isFinite(x.ratio)?x.ratio:0,_=Math.max(0,Math.min(k,1-g));return y.push({color:x.color,rotate:-90+g*360,dash:b*_,acc:g+_}),y},[]);return n.jsx("div",{className:"ring-chart",style:{width:u,height:u},children:n.jsxs("svg",{width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),f.map((y,x)=>y.dash>0&&n.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:y.color,strokeWidth:p,strokeDasharray:`${y.dash} ${b}`,strokeLinecap:"round",transform:`rotate(${y.rotate} ${m} ${m})`},x))]})})}const v=(t??0)>0?Math.min((e??0)/t,1):0,C=b*v,w=b-C;return n.jsxs("div",{className:"ring-chart",style:{width:u,height:u},children:[n.jsxs("svg",{width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),v>0&&n.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:r,strokeWidth:p,strokeDasharray:`${C} ${w}`,strokeLinecap:v<.02||v>.98?"butt":"round",transform:`rotate(-90 ${m} ${m})`})]}),!c&&n.jsxs("div",{className:`ring-chart__center${d?"":` ${u<=96?"ring-chart__center--small":s==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[n.jsx("span",{className:`ring-chart__pct ${u<=96?"h2":"h1"}`,children:Zl(v)}),!d&&n.jsx("span",{className:`ring-chart__label ${u<=96?"caption-2":"caption-1"}${u<=96||s==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function ey({titleKey:e,headRight:t,icon:a,showTotal:r,totalLabelKey:s,legend:i,loading:l,className:c,inGrid:d=!1,onClick:u,ariaLabel:p,tooltip:m,...h}){const{t:b}=be.useTranslation();if(!e)return n.jsx(Xl,{...h});const v=(h.total??0)>0?Zl(Math.min((h.done??0)/h.total,1)):0,C=h.size==="small",w=typeof h.size=="number"?h.size:uo[h.size??"medium"].diameter,f=h.size==="large",y=[c,C?"manager-section--compact":f?"manager-section--full":""].filter(Boolean).join(" ")||void 0,x=a&&n.jsx("span",{className:"chart-section-icon",children:n.jsx(Ke,{icon:a,className:"chart-section-icon-inner"})});return n.jsx(lo,{className:y,inGrid:d,onClick:u,ariaLabel:p,tooltip:m,title:b(e),titleClassName:C?"h5 chart-section-title--small":void 0,headRight:x||(C?void 0:t),subRow:(r||i)&&n.jsxs(n.Fragment,{children:[r?n.jsxs(Da,{label:!C&&s?b(s):void 0,children:[n.jsx("span",{className:"barchart-total__num h0",children:v}),n.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):n.jsx("span",{}),i&&n.jsx(io,{items:i})]}),children:l?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:w,height:w},"aria-busy":"true",children:n.jsx(Sa,{size:32})})}):n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx(Xl,{...h,hideCenter:h.hideCenter??C})})})}function ty({label:e,value:t,change:a,changeType:r,icon:s,tooltip:i,onClick:l,children:c}){const d=o.useRef(null),{anchorRect:u,openAt:p,close:m}=ya(),h=o.useCallback(()=>{i&&d.current&&p(d.current)},[i,p]),b=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(w=>{l&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),l())},[l]);return n.jsxs("div",{ref:d,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?C:void 0,onPointerEnter:h,onPointerLeave:m,onFocus:h,onBlur:m,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,t,v].filter(w=>w!==void 0&&w!=="").join(" "):void 0,children:[i&&u&&n.jsx(bn,{anchorRect:{left:u.left,top:u.top+21,right:u.right,bottom:u.bottom,width:u.width,height:u.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(Ke,{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--${b??"neutral"} caption-1`,children:v})]}),c&&n.jsx("div",{className:"manager-stat-card__body",children:c})]})]})}function Jl({value:e,onChange:t,min:a=0,max:r=100,step:s=1,orientation:i="horizontal",size:l=24,disabled:c=!1,ariaLabel:d,length:u,className:p,label:m,formatValue:h,labelPos:b,labelAlign:v="right",showMinMax:C=!1,minLabel:w,maxLabel:f,showBgTick:y=!1,showFillTick:x=!1,tickStep:g,tickShape:k="dot"}){t&&!d&&Cn("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 _=Math.min(r,Math.max(a,e)),B=r>a?(_-a)/(r-a):0,N=i==="vertical",A=!t,S=D=>t?.(Number(D.target.value)),O=typeof u=="number"?`${u}px`:u,H={"--slider-ratio":String(B),"--slider-thumb":`${l}px`,...O?N?{height:O}:{width:O}:{}},j=g??s,q=(y||x)&&j>0&&r>a?Math.floor((r-a)/j+1e-6):0;if(q>0&&q<=100){const D=k!=="dash",F=J=>D?`radial-gradient(circle, ${J} 0.5px, transparent 1px)`:N?`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))`,P=D?"2px":"4px",R=[],$=[],ee=[];for(let J=0;J<=q;J++){const Y=J*j/(r-a);if(Y>1+1e-6)break;const ne=`${((N?1-Y:Y)*100).toFixed(4)}%`,Ce=Y<=B+1e-6;if(Ce?!x:!y)continue;const re=Ce?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";R.push(F(re)),$.push(N?`${P} var(--slider-thumb)`:`var(--slider-thumb) ${P}`),ee.push(N?`center ${ne}`:`${ne} center`)}R.push(N?"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))"),$.push("100% 100%"),ee.push("0 0"),H.backgroundImage=R.join(", "),H.backgroundSize=$.join(", "),H.backgroundPosition=ee.join(", "),H.backgroundRepeat="no-repeat"}const E=h?h(_):m==="percent"?`${Math.round(r>a?(_-a)/(r-a)*100:0)}%`:m==="count"?`${_} / ${r}`:_===a&&w?w:_===r&&f?f:void 0,M=n.jsx("input",{type:"range",className:De("slider",`slider--${i}`,A&&"slider--static",!m&&!C&&p),min:a,max:r,step:s,value:_,disabled:c,readOnly:A,tabIndex:A?-1:void 0,"aria-label":d,"aria-valuetext":E,"aria-orientation":i,onChange:S,style:H});if(!m&&!C)return M;const I=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:w??a}),G=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:f??r}),Z=C?n.jsxs("div",{className:De("slider-track-group",`slider-track-group--${i}`,!m&&p),children:[N?G:I,M,N?I:G]}):M;if(!m)return Z;const U=b??(N?"bottom":"right"),z=`${Math.round(r>a?(_-a)/(r-a)*100:0)}%`,K=h?h(_):m==="percent"?z:m==="count"?`${_} / ${r}`:String(_),L=n.jsx("span",{className:"slider-wrap__value body-3b",children:K});return n.jsxs("div",{className:De("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${U}`,`slider-wrap--align-${v}`,p),children:[Z,L]})}const ny=.86,ay=250,po=(e,t,a,r)=>Math.round(Math.min(r,Math.max(a,e-t))),mo=(e,t,a,r)=>{const s=po(e,t,a,r);return`${s<0?"-":"+"}${Math.abs(s)} dB`};function ho({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:s,labelPos:i,labelAlign:l="right",floorDb:c=-60,refDb:d=-35,displayMin:u=-5,displayMax:p=25,className:m,ariaLabel:h}){const b=o.useRef(null),v=o.useRef(null),C=o.useRef(null),w=o.useRef(null),[f,y]=o.useState(null);o.useEffect(()=>{const _=M=>{const I=mo(M,d,u,p);C.current&&(C.current.textContent=I);const G=b.current;G&&(G.setAttribute("aria-valuenow",String(po(M,d,u,p))),G.setAttribute("aria-valuetext",I))},B=e??n2(t)??(f&&f.el===t?f.node:null),N=v.current;if(!B||!N){N?.style.setProperty("--meter-level","0"),_(c);let M=!1;return!e&&t&&Pa(t).then(I=>{!M&&I&&y({el:t,node:I})}),()=>{M=!0}}Dr();const A=new Float32Array(B.fftSize);let S=0,O=0,H=0,j=0,q=null;const E=M=>{const I=a2(B,A);S=I>S?I:S*ny;const G=S>1e-5?20*Math.log10(S):-1/0,Z=Math.max(c,G),U=Z-d,z=Math.min(1,Math.max(0,(U-u)/(p-u)));if(N.style.setProperty("--meter-level",z.toFixed(3)),O+=Z,H+=1,M-j>=ay){const K=O/H;q=q==null?K:q*.6+K*.4,_(q),O=0,H=0,j=M}w.current=requestAnimationFrame(E)};return w.current=requestAnimationFrame(E),()=>{w.current!=null&&cancelAnimationFrame(w.current),w.current=null}},[e,t,f,c,d,u,p]);const x=typeof r=="number"?`${r}px`:r,g=n.jsx("div",{className:"audio-meter__track",style:x?a==="vertical"?{height:x}:{width:x}:{},children:n.jsx("div",{ref:v,className:"audio-meter__fill"})}),k=i??(a==="vertical"?"bottom":"right");return n.jsxs("div",{ref:b,className:De("audio-meter",`audio-meter--${a}`,s&&`audio-meter--label-${k}`,s&&`audio-meter--align-${l}`,m),role:"meter","aria-label":h,"aria-valuemin":u,"aria-valuemax":p,"aria-valuenow":po(c,d,u,p),"aria-valuetext":mo(c,d,u,p),children:[g,s&&n.jsx("span",{ref:C,className:"audio-meter__value caption-2",children:mo(c,d,u,p)})]})}const Ql=260;function ec({message:e,position:t,duration:a,onClose:r}){const[s,i]=o.useState(!1),[l,c]=o.useState(!1),d=o.useRef(l),u=o.useRef(s);o.useEffect(()=>{d.current=l},[l]),o.useEffect(()=>{u.current=s},[s]);const p=o.useRef(null),m=o.useRef(""),h=o.useRef(r);o.useEffect(()=>{h.current=r});const b=a,v=o.useRef(null),C=o.useRef(0),w=o.useRef(0),f=o.useRef(!1),y=o.useRef(null),x=o.useRef(null),g=o.useRef(null),k=o.useRef(null),_=o.useRef(()=>{});_.current=A=>{A<0||(C.current=Date.now(),w.current=A,v.current=setTimeout(()=>{v.current=null,i(!1),y.current=setTimeout(()=>{c(!1);try{h.current()}catch{}},Ql)},A))};const B=o.useCallback(()=>{f.current||!v.current||(f.current=!0,clearTimeout(v.current),v.current=null,w.current=Math.max(0,w.current-(Date.now()-C.current)))},[]),N=o.useCallback(()=>{f.current&&(f.current=!1,_.current(w.current))},[]);return o.useEffect(()=>{if(e!==m.current&&(v.current&&(clearTimeout(v.current),v.current=null),y.current&&(clearTimeout(y.current),y.current=null)),e){if(u.current)return b>0&&!v.current&&(f.current?w.current=b:_.current(b)),m.current=e,()=>{v.current&&(clearTimeout(v.current),v.current=null),y.current&&(clearTimeout(y.current),y.current=null)};const A=()=>{const S=p.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"),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{k.current=null;try{S.style.opacity="",S.style.transform="",S.style.transition=""}catch{}},60)}catch{}};d.current?(A(),i(!0)):(c(!0),x.current=requestAnimationFrame(()=>{g.current=requestAnimationFrame(()=>{A(),i(!0)})})),b>0&&(f.current=!1,_.current(b))}else i(!1),y.current=setTimeout(()=>c(!1),Ql);return m.current=e,()=>{v.current&&clearTimeout(v.current),y.current&&clearTimeout(y.current),x.current&&cancelAnimationFrame(x.current),g.current&&cancelAnimationFrame(g.current),k.current&&clearTimeout(k.current),v.current=null,y.current=null,x.current=null,g.current=null,k.current=null}},[e,b,t]),{mounted:l,showing:s,popupRef:p,pause:B,resume:N}}function ea({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:s=2e3}){const{mounted:i,showing:l,popupRef:c,pause:d,resume:u}=ec({message:e,position:t,duration:s,onClose:r}),p=o.useRef(null),[m,h]=o.useState(!1);if(o.useEffect(()=>{l?h(!0):i||h(!1)},[l,i]),!i)return null;const b=a==="notice"||a==="warning"?a:"normal",v=n.jsx("div",{ref:c,className:`toast toast--${t} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:C=>{p.current=C.pointerType},onMouseEnter:()=>{p.current!=="touch"&&d()},onMouseLeave:u,onFocusCapture:d,onBlurCapture:u,children:n.jsx("div",{className:`toast__inner toast__inner--${b} body-2`,"aria-hidden":m||l?void 0:!0,children:e})});return typeof document<"u"?Ut.createPortal(v,document.body):v}const ry=24;function oy({value:e,max:t=100,size:a=8,color:r,trackColor:s,label:i,formatValue:l,labelPos:c,labelAlign:d="right",ariaLabel:u,className:p}){const m=Number.isFinite(t)&&t>0?t:1,h=Math.max(0,Math.min(Number.isFinite(e)?e:0,m)),b=h/m*100,v=Number.isFinite(t)&&t>0?t:0,C=c??(a>=ry?"inside":"bottom"),w=C==="center"?"inside":C,f=w==="inside"&&(d==="left"?b>=15:d==="center"?b>=50:b>=85),y={};return r&&(y["--progress-bar-fill"]=r),s&&(y["--progress-bar-track"]=s),n.jsxs("div",{className:De("progress-bar",`progress-bar--${a}`,`progress-bar--label-${w}`,i&&`progress-bar--align-${d}`,i&&f&&"progress-bar--label-on-fill",p),style:y,children:[n.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":v,"aria-valuetext":i?l?l(h):i==="percent"?void 0:i==="raw"?String(h):`${h} / ${v}`:void 0,"aria-label":u,children:n.jsx("div",{className:"progress-bar__fill",style:{width:`${b}%`}})}),i&&n.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(h):i==="percent"?`${Math.round(b)}%`:i==="raw"?String(h):`${h} / ${v}`})]})}const tc={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},sy="rgba(255, 255, 255, 0.16)";function nc({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:s,variant:i="numbered",announce:l=!1,ariaLabel:c}){const{t:d}=be.useTranslation(),u=Yt("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const p=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,m=c??d("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),h={};if(a&&(h["--pi-inactive-bg"]=a),r&&(h["--pi-inactive-color"]=r),s&&(a||(h["--pi-inactive-bg"]=sy),r||(h["--pi-inactive-color"]="var(--color-white)")),i==="dot")return n.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:h,role:l?"status":"img","aria-label":l?void 0:m,children:[l&&n.jsx("span",{style:tc,children:m}),Array.from({length:e}).map((v,C)=>n.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${C<p?" done":C===p?" active":""}`},C))]});const b=l?n.jsx("span",{role:"status",style:tc,children:m}):null;return u?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:h,role:"list","aria-label":m,children:n.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[p+1," / ",e]})}),b]}):n.jsxs(n.Fragment,{children:[b,n.jsx("div",{className:"progress-indicator",style:h,role:"list","aria-label":m,children:Array.from({length:e}).map((v,C)=>n.jsx("span",{role:"listitem","aria-current":C===p?"step":void 0,className:`progress-indicator-dot ${C<p?" done":C===p?" active":""} body-3`,children:C+1},C))})]})}function iy(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 ly({children:e,className:t,style:a}){return n.jsx("div",{className:t?`table-cell ${t}`:"table-cell",style:a,children:e})}function fo({variant:e="default",children:t,className:a,draggable:r,onClick:s,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:d,expandedContent:u}){const p=o.useCallback(m=>{s&&m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),s())},[s]);return e==="loading"?n.jsx("div",{className:"table-row-wrap",children:n.jsx("div",{className:"table-row table-row--loading",children:n.jsx(Sa,{size:28})})}):e==="empty"?n.jsx("div",{className:"table-row-wrap",children:n.jsx("div",{className:"table-row table-row--empty body-3",children:t})}):n.jsxs("div",{className:"table-row-wrap",children:[n.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:s,onKeyDown:s?p:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:d,role:s?"button":void 0,tabIndex:s?0:void 0,children:t}),u&&n.jsx("div",{className:"table-row-expand",children:u})]})}function cy({dir:e}){return n.jsx(e==="asc"?gs:Cs,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function uy({children:e,onClick:t,className:a,sortDir:r,ariaSort:s,onResizeStart:i}){const l=n.jsxs(n.Fragment,{children:[e,r&&n.jsx(cy,{dir:r})]});return n.jsxs("div",{onClick:t,role:"columnheader","aria-sort":s,className:De("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:c=>c.stopPropagation(),"aria-hidden":"true"})]})}function Co({fields:e=[],headerGroups:t,items:a=[],renderRow:r,onRowClick:s,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:c,onRowDragStart:d,onRowDragEnd:u,draggingId:p,gridTemplateColumns:m,mobileGridTemplateColumns:h,resizable:b=!1,resizeMode:v="grow",resizeStorageKey:C,size:w="small",title:f,icon:y,count:x,collapsed:g=!1,onToggleCollapse:k,headerActions:_,empty:B,loading:N,dragOver:A=!1,onDragOver:S,onDragLeave:O,onDrop:H,renderExpandedRow:j,expandedId:q}){const{t:E}=be.useTranslation(),M=Yt("(max-width: 767px)"),I=h&&M?h:null,G=b&&!M,Z=48,U=o.useRef(()=>Z),z=C?`table-cols:${C}`:null,K=o.useRef(null),L=o.useRef(()=>!1),D=o.useRef([]),F=o.useRef(null),P=ce=>{if(!ce||typeof window>"u")return null;try{const ae=JSON.parse(window.localStorage.getItem(ce)??"null");return Array.isArray(ae)&&ae.length>0&&ae.every(Ne=>typeof Ne=="number"&&Number.isFinite(Ne)&&Ne>0)?ae:null}catch{return null}},[R,$]=o.useState(()=>P(z)),[ee,J]=o.useState(z);ee!==z&&(J(z),$(P(z)));const Y=o.useRef(R);o.useEffect(()=>{Y.current=R},[R]);const ne=o.useCallback(ce=>{const ae=F.current;if(!ae)return;const Ne=Y.current;if(Ne){const je=[...Ne];if(ae.next!=null&&ae.startWNext!=null){const Ae=ce.clientX-ae.startX,ve=Math.max(U.current(ae.index)-ae.startW,Math.min(ae.startWNext-U.current(ae.next),Ae));je[ae.index]=ae.startW+ve,je[ae.next]=ae.startWNext-ve}else je[ae.index]=Math.max(U.current(ae.index),ae.startW+(ce.clientX-ae.startX));Y.current=je,$(je)}},[]),Ce=o.useCallback(()=>{if(F.current=null,window.removeEventListener("pointermove",ne),window.removeEventListener("pointerup",Ce),window.removeEventListener("pointercancel",Ce),document.body.style.cursor="",document.body.style.userSelect="",z&&Y.current)try{window.localStorage.setItem(z,JSON.stringify(Y.current))}catch{}},[ne,z]),re=o.useCallback((ce,ae)=>{ae.preventDefault(),ae.stopPropagation();const Ne=K.current;if(!Ne)return;const je=Array.from(Ne.children).map(ve=>ve.getBoundingClientRect().width),Ae=v==="fit"?e.findIndex((ve,Se)=>Se>ce&&ve.resizable!==!1):-1;F.current=Ae>=0?{index:ce,startX:ae.clientX,startW:je[ce],next:Ae,startWNext:je[Ae]}:{index:ce,startX:ae.clientX,startW:je[ce]},Y.current=je,$(je),window.addEventListener("pointermove",ne),window.addEventListener("pointerup",Ce),window.addEventListener("pointercancel",Ce),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[ne,Ce,v,e]),ie=o.useCallback(()=>{const ce=K.current,ae=ce?.closest(".table-wrap");if(!ce||!ae)return;const Ne=ae.style.getPropertyValue("--table-grid-cols");ae.style.setProperty("--table-grid-cols",e.map((Ze,Xe)=>L.current(Xe)?D.current[Xe]:"max-content").join(" "));const je=Array.from(ae.querySelectorAll(".table-row")).filter(Ze=>!Ze.classList.contains("table-row--loading")&&!Ze.classList.contains("table-row--empty")),Ae=e.map((Ze,Xe)=>{let ze=ce.children[Xe]?.getBoundingClientRect().width??0;for(const Ve of je){const ot=Ve.children[Xe];ot&&(ze=Math.max(ze,ot.getBoundingClientRect().width))}const $e=L.current(Xe)?parseFloat(D.current[Xe]):NaN;return Number.isFinite($e)?$e:Math.max(U.current(Xe),Math.ceil(ze))}),ve=window.getComputedStyle(ce),Se=ce.clientWidth-(parseFloat(ve.paddingLeft)||0)-(parseFloat(ve.paddingRight)||0);Ne?ae.style.setProperty("--table-grid-cols",Ne):ae.style.removeProperty("--table-grid-cols");let me=Ae;const Ge=Ae.reduce((Ze,Xe,ze)=>Ze+(L.current(ze)?Xe:0),0),Ue=Ae.reduce((Ze,Xe,ze)=>Ze+(L.current(ze)?0:Xe),0),Ye=Se-Ge;if(Se>0&&Ue>0&&Ye>0){const Ze=Ye/Ue;me=Ae.map((ze,$e)=>L.current($e)?ze:Math.max(U.current($e),Math.round(ze*Ze)));const Xe=Math.round(Ye-me.reduce((ze,$e,Ve)=>ze+(L.current(Ve)?0:$e),0));if(Xe!==0){let ze=-1;me.forEach(($e,Ve)=>{!L.current(Ve)&&(ze<0||$e>me[ze])&&(ze=Ve)}),ze>=0&&(me[ze]=Math.max(U.current(ze),me[ze]+Xe))}}if($(me),z)try{window.localStorage.setItem(z,JSON.stringify(me))}catch{}},[e,v,z]);o.useEffect(()=>()=>{F.current&&(window.removeEventListener("pointermove",ne),window.removeEventListener("pointerup",Ce),window.removeEventListener("pointercancel",Ce),document.body.style.cursor="",document.body.style.userSelect="")},[ne,Ce]);const W=iy(m),oe=W.filter(ce=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(ce));oe.length>0&&Cn(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${oe.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: ${m})`);const pe=e.findIndex(ce=>!!ce.sortDir);e.filter(ce=>!!ce.sortDir).length>1&&Cn("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 xe=ce=>ce===pe?e[ce].sortDir==="asc"?"ascending":"descending":e[ce].onClick?"none":void 0,ge=ce=>/^\d+(\.\d+)?px$/.test(W[ce]??""),Be=ce=>{const ae=W[ce]??"",Ne=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(ae)??/^(\d+(?:\.\d+)?)px$/.exec(ae);return Ne?parseFloat(Ne[1]):Z};L.current=ge,U.current=Be,D.current=W;const he=ce=>v==="fit"&&!ge(ce)?"fr":"px",ye=R&&R.length===e.length&&!M&&(v==="fit"||a.length>0),Te=I??(ye?e.map((ce,ae)=>ce.resizable===!1&&W[ae]?W[ae]:`${R[ae]}${he(ae)}`).join(" "):m),Oe=Te?{"--table-grid-cols":Te}:void 0,Pe=f!==void 0;return n.jsx("div",{className:`table-wrap table-wrap--${w}${G?" table-wrap--resizable":""}${A?" table-wrap--dragover":""}${g?" table-wrap--collapsed":""}`,style:Oe,onDragOver:S,onDragLeave:O,onDrop:H,children:n.jsxs("div",{className:"table body-2",children:[Pe&&n.jsxs("div",{className:"table-header",onClick:k,role:k?"button":void 0,tabIndex:k?0:void 0,"aria-expanded":k?!g:void 0,onKeyDown:k?ce=>{ce.target===ce.currentTarget&&(ce.key==="Enter"||ce.key===" ")&&(ce.preventDefault(),k())}:void 0,children:[k&&n.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:g?"chevron-right":"chevron-down",ariaLabel:g?E("common.expand","\uD3BC\uCE58\uAE30"):E("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),y&&n.jsx(Ke,{icon:y,label:typeof f=="string"?f:void 0,className:"table-header__icon"}),n.jsx("span",{className:"table-header__title h5b",children:f}),x!==void 0&&n.jsx("span",{className:"table-header__count body-3b",children:x}),_&&n.jsx("span",{className:"table-header__actions",onClick:ce=>ce.stopPropagation(),children:_})]}),!g&&n.jsxs(n.Fragment,{children:[t&&t.length>0&&n.jsx("div",{className:"table-fields table-fields--groups",children:t.map((ce,ae)=>n.jsx("div",{className:De("table-field body-3",ce.className),style:{gridColumn:`span ${ce.span}`},children:ce.label},ae))}),n.jsxs("div",{className:De("table-fields-strip",G&&"table-fields-strip--resizable"),children:[n.jsx("div",{className:"table-fields",ref:K,children:e.map((ce,ae)=>n.jsx(uy,{onClick:ce.onClick,className:ce.className,sortDir:ce.sortDir,ariaSort:xe(ae),onResizeStart:G&&ae<e.length-1&&ce.resizable!==!1&&(v!=="fit"||e.some((Ne,je)=>je>ae&&Ne.resizable!==!1))?Ne=>re(ae,Ne):void 0,children:ce.label},ae))}),G&&n.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:ie})]}),n.jsx("div",{className:"table-body",children:N?n.jsx(fo,{variant:"loading"}):a.length===0&&B?n.jsx(fo,{variant:"empty",children:B}):a.map((ce,ae)=>{const Ne=p!=null&&ce.id===p,je=!!s&&(i?i(ce):!0),Ae=q!=null&&ce.id!=null&&(q instanceof Set?q.has(ce.id)||[...q].some(ve=>String(ve)===String(ce.id)):String(ce.id)===String(q));return n.jsx(fo,{className:`${je?" table-row--clickable":""}${d?" table-row--draggable":""}${Ne?" table-row--dragging":""}`.trim(),draggable:!!d,onClick:je?()=>s(ce):void 0,onMouseEnter:l?ve=>l(ce,ve):void 0,onMouseLeave:c?ve=>c(ce,ve):void 0,onDragStart:d?ve=>d(ce,ve):void 0,onDragEnd:u?ve=>u(ce,ve):void 0,expandedContent:Ae&&j?j(ce):void 0,children:r(ce).map((ve,Se)=>n.jsx(ly,{className:ve.className,style:ve.style,children:ve.content},Se))},ce.id!=null?`${typeof ce.id}:${ce.id}`:`__idx:${ae}`)})})]})]})})}function ac(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const ta=e=>e==null?"":String(e).trim();function go(e,t,a){const r=[ta(e),ta(t),ta(a)];for(;r.length>0&&r[r.length-1]==="";)r.pop();return r.join(".")}function dy(e,t,a){const r=ta(e);return r?`${r}-${ta(t).padStart(2,"0")}-${ta(a).padStart(2,"0")}`:""}const py={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function my(e,t){const a=py[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}function rc(e,t){return t!=="wornAt"?String(e[t]??""):dy(e.wornYear,e.wornMonth,e.wornDay)}function hy({rows:e,loading:t,onSelect:a,onDelete:r,onWear:s,onRelease:i,onAdd:l}){const{t:c}=be.useTranslation(),d=C=>C==="\uC88C"?c("device.direction.left","\uC88C"):c("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:p}=Yg(),m=o.useMemo(()=>{if(!u)return e;const{key:C,asc:w}=u;return[...e].sort((f,y)=>{if(C==="worn"){const x=Number(y.worn)-Number(f.worn);return w?x:-x}return Kr(rc(f,C),rc(y,C),w)})},[e,u]),{pageRows:h,pageSizeProps:b,paginationProps:v}=Kg(m,u);return n.jsxs("div",{className:"dlp-side-table",children:[n.jsx(so,{count:{value:e.length,unit:c("customers.device.unit","\uAC1C")},pageSize:b,pagination:v,actions:l&&n.jsx(le,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:c("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:l})}),n.jsx(Co,{loading:t,resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...p(c("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},p(c("device.direction.label","\uBC29\uD5A5"),"side"),p(c("device.deviceType","\uC885\uB958"),"device"),p(c("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),p(c("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),p(c("device.productName","\uC81C\uD488\uBA85"),"productName"),p(c("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...r?[{label:"",resizable:!1}]:[]],items:h.map((C,w)=>({id:C.id??`${C.side}-${w}`,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:w=>w.stopPropagation(),children:n.jsx(Ol,{checked:C.worn,disabled:C.worn?!i:!s,ariaLabel:C.worn?c("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):c("customers.device.wear","\uCC29\uC6A9"),onChange:w=>{w?s?.(C):i?.(C)}})})},{content:n.jsx("span",{children:d(C.side)})},{content:C.device?n.jsx(ht,{size:"small",variant:ac(C.device),fill:"soft",label:my(C.device,c)}):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:go(C.wornYear,C.wornMonth,C.wornDay)||"-"})},...r?[{content:n.jsx("span",{className:"dlp-row-actions",children:n.jsx(le,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:c("common.delete","\uC0AD\uC81C"),onClick:w=>{w?.stopPropagation(),r(C)}})})}]:[]],onRowClick:({row:C})=>a(C),empty:c("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function oc(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 fy(e,t){return new Date(e,t+1,0).getDate()}function Cy(e,t){return new Date(e,t,1).getDay()}function gy({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:r,today:s}){const{t:i}=be.useTranslation(),l=o.useMemo(()=>i("calendar.dow",{returnObjects:!0}),[i]),c=Lr(s),[d,u]=o.useState(()=>Number(c.slice(0,4))),[p,m]=o.useState(()=>Number(c.slice(5,7))-1),[h,b]=o.useState(null),v=o.useRef(null),C=o.useMemo(()=>{const k={};return e.forEach(_=>{k[_.date]||(k[_.date]=[]),k[_.date].push(_)}),k},[e]),w=o.useMemo(()=>{const k=fy(d,p),_=Cy(d,p),B=[];for(let N=0;N<_;N++)B.push(null);for(let N=1;N<=k;N++)B.push(N);for(;B.length<35;)B.push(null);return B},[d,p]),f=o.useCallback(()=>{p===0?(u(k=>k-1),m(11)):m(k=>k-1)},[p]),y=o.useCallback(()=>{p===11?(u(k=>k+1),m(0)):m(k=>k+1)},[p]),x=k=>`${d}-${String(p+1).padStart(2,"0")}-${String(k).padStart(2,"0")}`,g=k=>x(k)===c;return n.jsxs("div",{children:[n.jsxs("div",{className:"calendar-nav",children:[n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:f,"aria-label":i("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(Ke,{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:y,"aria-label":i("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(Ke,{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:[l.map(k=>n.jsx("div",{className:"calendar-day-header body-3",children:k},k)),w.map((k,_)=>{if(k===null)return n.jsx("div",{className:"calendar-cell empty"},`empty-${_}`);const B=k,N=x(B),A=C[N]??[],S=h===N;return n.jsxs("div",{className:`calendar-cell${g(B)?" today":""}${S?" 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":g(B)?"date":void 0,onClick:r?()=>r(N):void 0,onKeyDown:r?O=>{O.target===O.currentTarget&&(O.key!=="Enter"&&O.key!==" "||(O.preventDefault(),r(N)))}:void 0,onDragOver:a?O=>{O.preventDefault(),b(N)}:void 0,onDragLeave:a?O=>{O.currentTarget.contains(O.relatedTarget)||b(null)}:void 0,onDrop:a?O=>{O.preventDefault(),v.current!=null&&(a(v.current,N),v.current=null),b(null)}:void 0,children:[n.jsx("div",{className:"calendar-cell__number body-3",children:B}),A.length>0&&n.jsxs("span",{className:"calendar-cell__visit-count caption-1","aria-label":i("calendar.visitCount",{count:A.length,defaultValue:"\uBC29\uBB38 {{count}}\uAC74"}),children:[n.jsx("span",{className:"calendar-cell__visit-dot","aria-hidden":"true"}),A.length]}),n.jsx("div",{className:"calendar-cell__badges",children:A.map((O,H)=>n.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${O.status==="noVisit"?" calendar-visit-badge--no-visit":O.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?j=>{v.current=O.id,j.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{v.current=null,b(null)}:void 0,onClick:t?j=>{j.stopPropagation(),t(O)}:void 0,...oc(t?()=>t(O):void 0),"aria-label":[O.time?ui(O.time,i):null,O.customer,i(O.status==="noVisit"?"calendar.legend.noVisit":O.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[O.time&&n.jsx("span",{className:"calendar-visit-badge__time body-3",children:ui(O.time,i)}),n.jsx("span",{className:"calendar-visit-badge__name body-3",children:O.customer}),O.status==="noVisit"&&n.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},O.id??H))})]},B)})]})]})}const by={page:"h3",pagePopup:"h4",popup:"h5"};function na({type:e="page",title:t,headingLevel:a,icon:r,action:s,disc:i,children:l,inGrid:c=!1,className:d,style:u}){const p=by[e],m=t||i||s||r,h=a?`h${a}`:"div";return n.jsxs("div",{className:De("section",`section--${e}`,c&&"section--in-grid",d),style:u,children:[m&&n.jsxs("div",{className:"section__header",children:[n.jsxs("div",{className:"section__title-row",children:[r&&n.jsx(Ke,{icon:r,label:typeof t=="string"?t:void 0,className:"section__icon"}),n.jsxs("div",{className:"section__title-group",children:[t&&n.jsx(h,{className:`section__title ${p}`,children:t}),i&&n.jsx("div",{className:"section__disc body-3",children:i})]})]}),s&&n.jsx("div",{className:"section__action",children:s})]}),l]})}let bo=null,sc=!1;function ic(){if(sc||typeof document>"u")return;sc=!0,document.addEventListener("keydown",t=>{t.metaKey||t.ctrlKey||t.altKey||(bo="keyboard")},!0);const e=()=>{bo="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}ic();function Ja(){return ic(),bo==="keyboard"}const Qa=20;function yy(e){const{t}=be.useTranslation(),{type:a,trainingDatas:r,depth:s,renderPopup:i,completedIds:l,selectedIds:c,onItemComplete:d,size:u,useDescriptionTooltip:p,onRemove:m,onMore:h,sectionType:b="page"}=e||{},[,v]=o.useState(0),C=typeof r<"u"?Array.isArray(r)?r:[]:[],w=C.length,[f,y]=o.useState(Math.min(w,Qa)),x=o.useMemo(()=>Array.isArray(s)?[...s,a?.label].filter(Boolean).join(" \xB7 "):[s||"",a?.label].filter(Boolean).join(" \xB7 "),[s,a?.label]);o.useEffect(()=>{y(Math.min(w,Qa))},[w]),el("speechear.data.updated",()=>v(B=>B+1));const g=o.useRef(null),k=o.useRef(null);function _(){const B=document.activeElement;k.current=Ja()&&B&&B.closest?.(".training-block__more")?f:null,y(N=>Math.min(w,N+Qa))}return o.useEffect(()=>{const B=k.current;if(B==null)return;k.current=null;const N=document.activeElement;N&&N!==document.body||g.current?.querySelectorAll(".training-block-button")[B]?.focus()},[f]),n.jsxs(na,{type:b,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,f).map((B,N)=>{const A=B;return n.jsx(ao,{index:N,type:a,trainingData:A,depth:x,renderPopup:i,completedIds:l,selectedIds:c,size:u,useDescriptionTooltip:p,onRemove:typeof m=="function"&&c!=null&&A?.id!=null&&c.has(String(A.id))?()=>m(A):void 0,onComplete:typeof d=="function"&&A?.id!=null?()=>d(String(A.id)):void 0,onMore:typeof h=="function"?S=>h(A,S):void 0},A?.id!=null?`${a?.key||"t"}-${String(A.id)}`:`${a?.key||"t"}-${N}`)})}),w>Qa&&f<w&&n.jsx("div",{className:"training-block__more",children:n.jsx(le,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:_,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function yo(e){const t=o.useRef(null),[a,r]=o.useState(!!e),[s,i]=o.useState(!1);o.useEffect(()=>{i(!1);const d=t.current;r(!!e&&!(d?.complete&&d.naturalWidth>0))},[e]);const l=o.useCallback(()=>r(!1),[]),c=o.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:t,loading:a,failed:s,hasImage:!!e&&!s,onLoad:l,onError:c}}var vy='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 xy=vy,vo=o.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:r=!1,selected:s=!1,onSelect:i,flipDelay:l=0,hideLabel:c=!1,hideAudio:d=!1,orderRank:u=null},p){const{t:m}=be.useTranslation(),h=e.word||e.title||"",b=t||!h,v=e.audio??e.sound??e.audioKey,C=e.subLabel||e.pronunciation||"",w=e.colloquialLabel||"",[f,y]=o.useState({label:h,subLabel:C,colloquialLabel:w,homonum:e.homonum});h&&(f.label!==h||f.subLabel!==C||f.colloquialLabel!==w||!Object.is(f.homonum,e.homonum))&&y({label:h,subLabel:C,colloquialLabel:w,homonum:e.homonum});const x=o.useRef(null),g=Yt("(max-width: 767px)"),[k,_]=o.useState(!1),B=`${typeof v=="string"?v:v?.src??""}\0${h}`,[N,A]=o.useState({for:"",url:""}),S=N.for===B?N.url:"",O=ni(),H=e.textOnly??(!e.image&&!!f.label&&!!O&&O.entries.length>0&&!O.byWord.has(f.label)),j=H?"":Gn()?.(f.label,f.homonum)??e.image??"",{imgRef:q,loading:E,hasImage:M,onLoad:I,onError:G}=yo(j);o.useEffect(()=>{let R=!1;return(async()=>{if(v){if(typeof v=="string"){if(v.startsWith("http")||v.includes("/")){A({for:B,url:v});return}}else if(typeof v=="object"&&!Array.isArray(v)){const ee=v.src;if(ee){A({for:B,url:ee});return}}}const $=Br();if($&&h)try{const ee=await Promise.resolve($(h));!R&&ee&&A({for:B,url:ee})}catch{}})(),()=>{R=!0}},[v,h,B]);const Z=o.useRef(!0),U=o.useRef(null);o.useEffect(()=>(Z.current=!0,()=>{Z.current=!1,U.current&&Ka(U.current),U.current=null;try{x.current?.pause()}catch{}x.current=null}),[]);const z=o.useCallback(()=>new Promise(R=>{if(typeof window<"u"&&window.speechSynthesis&&h){_(!0),window.speechSynthesis.cancel();const $=new SpeechSynthesisUtterance(h);$.lang="ko-KR",$.onend=()=>{_(!1);try{a?.()}catch{}R()},$.onerror=()=>{_(!1),R()},window.speechSynthesis.speak($)}else R()}),[h,a]),K=o.useCallback(R=>new Promise($=>{let ee=!1;const J=()=>{ee||(ee=!0,_(!1),$(!1))};try{const Y=new Audio(R);x.current=Y,Y.onended=()=>{if(!ee){ee=!0,_(!1);try{a?.()}catch{}$(!0)}},Y.onerror=J,Y.play().catch(J)}catch{J()}}),[a]),L=o.useCallback(async()=>{if(t||!Z.current)return;const R=()=>{U.current===R&&(U.current=null);try{x.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}_(!1)},$=Ga(R);U.current=R;try{window.speechSynthesis?.cancel()}catch{}try{if(S&&(_(!0),await K(S)))return;const ee=J0();if(ee&&h)try{const J=await Promise.resolve(ee(h));if(!Z.current||U.current!==R||J&&(_(!0),await K(J)))return}catch{}if(!Z.current||U.current!==R)return;await z()}finally{$(),U.current===R&&(U.current=null)}},[t,S,h,K,z]);o.useImperativeHandle(p,()=>({play:()=>L()}),[L]);const D=R=>R.stopPropagation(),F=o.useCallback(R=>{if(R.stopPropagation(),!t){if(k){try{x.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}_(!1);return}L()}},[t,k,L]),P=De("training-word-card",t?"training-word-card--disabled":"",b?"training-word-card--flipped":"",r?"training-word-card--selectable":"",s?"training-word-card--selected":"");return n.jsx("div",{className:P,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?R=>{R.target===R.currentTarget&&(R.key==="Enter"||R.key===" "||R.key==="Spacebar")&&(R.preventDefault(),i?.())}:void 0,children:n.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:b?"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(ht,{type:"dot",size:40,position:"inline",animate:!0,icon:u!=null?void 0:"check",number:u??void 0,"aria-label":u!=null?m("training.nthSelected",{n:u}):m("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:f.label}):M?n.jsxs(n.Fragment,{children:[E&&n.jsx("div",{className:"training-word-card__spinner"}),n.jsx("img",{ref:q,className:"training-word-card__image",src:j,alt:f.label||m("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:E?0:1},onLoad:I,onError:G})]}):n.jsx("div",{className:"training-word-card__placeholder"})}),!c&&n.jsxs("div",{className:"training-word-card__body",children:[!H&&n.jsx("div",{className:"training-word-card__word",children:f.label}),f.subLabel&&n.jsxs("div",{className:"training-word-card__pronunciation",children:["[",f.subLabel,"]"]}),f.colloquialLabel&&n.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",f.colloquialLabel,"]"]})]}),!d&&n.jsx("div",{className:"training-word-card__bottom",onClick:r?D:void 0,children:n.jsx(le,{htmlType:"button",size:g?40:48,type:g?"dot":"bar",icon:k?"pause":"play",label:g?void 0:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:k,onClick:F,disabled:t,ariaLabel:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),n.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:n.jsx("img",{src:xy,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),_y=260;function jn(e){const{t}=be.useTranslation(),{title:a,subtitle:r,headerActions:s,headerSegment:i,children:l,buttons:c,footer:d,footerStart:u,footerEnd:p,footerClassName:m="",footerLayout:h="center",onClose:b,closeDisabled:v=!1,beforeClose:C,closeOnBackdrop:w=!0,className:f="",ariaLabel:y,useTitle:x=!0,inline:g=!1,size:k,layer:_="modal",height:B,fillBody:N=!1,resetScrollKey:A}=e||{},[S,O]=o.useState(!1),H=o.useRef(!1),j=o.useRef(null),q=o.useId(),E=o.useRef(null);o.useEffect(()=>{},[g,a,y,f]),o.useEffect(()=>{A!==void 0&&E.current&&(E.current.scrollTop=0)},[A]);const[M,I]=o.useState(!1);o.useEffect(()=>{const Y=E.current;if(!Y)return;const ne=()=>I(Y.scrollHeight>Y.clientHeight+1);if(ne(),typeof ResizeObserver>"u")return;const Ce=new ResizeObserver(ne);Ce.observe(Y);const re=Y.firstElementChild;return re&&Ce.observe(re),()=>Ce.disconnect()},[l,A]),o.useEffect(()=>{if(!g)return $l()},[g]),o.useEffect(()=>{if(g)return;const Y=document.activeElement,ne=j.current;return Fr(ne,Y),ne&&!ne.contains(document.activeElement)&&(ne.querySelector(gn)??ne).focus(),()=>{const Ce=document.activeElement;(!Ce||Ce===document.body||ne&&ne.contains(Ce))&&Or(Y)?.focus?.()}},[g]),Pr(j,!g);const G=o.useRef(!0),Z=Hr(),U=o.useRef(null);o.useEffect(()=>(G.current=!0,()=>{G.current=!1,U.current&&(clearTimeout(U.current),U.current=null)}),[]);const z=o.useCallback(()=>{!G.current||!H.current||(H.current=!1,O(!1))},[]),K=o.useCallback((Y,ne=!1)=>{if(ne&&!G.current||H.current)return;H.current=!0,O(!0);const Ce=setTimeout(()=>{U.current===Ce&&(U.current=null);let re;try{re=Y?Y():void 0}catch{z();return}re&&typeof re.then=="function"&&re.then(()=>{setTimeout(z,120)},z)},Z?0:_y);ne&&(U.current=Ce)},[z,Z]),L=o.useCallback(()=>{v||C&&C()===!1||K(b,!0)},[K,b,v,C]),D=o.useRef(L);o.useEffect(()=>{D.current=L});const F=!g&&!!b;o.useEffect(()=>{if(F)return In(()=>D.current())},[F]);const P=F&&w,R=o.useRef(!1),$=Y=>{R.current=Y.target===Y.currentTarget},ee=Y=>{const ne=R.current;R.current=!1,ne&&Y.target===Y.currentTarget&&L()},J=n.jsx("div",{className:`popup ${g?"popup--inline":""} ${_==="belowPagePopup"?"popup--below-page-popup":""} ${S?"popup--closing":""} ${f}`,onPointerDown:P?$:void 0,onClick:P?ee:void 0,onMouseDown:g?void 0:Y=>{Y.target===Y.currentTarget&&Y.preventDefault()},children:n.jsxs("div",{ref:j,className:`popup-panel${k?` popup-panel--${k}`:""}${B!=null?" popup-panel--has-height":""}${N?" popup-panel--fill-body":""}`,style:B!=null?{"--popup-height":typeof B=="number"?`${B}px`:B}:void 0,tabIndex:-1,role:g?void 0:"dialog","aria-modal":g?void 0:!0,"aria-labelledby":!g&&x&&a?q:void 0,"aria-label":!g&&!(x&&a)?y??(typeof a=="string"?a:void 0):void 0,children:[!x&&(s||b)?n.jsxs("div",{className:"popup-close-float",children:[s,b&&n.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:L,disabled:v,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||s||b?n.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[n.jsxs("div",{className:"popup-header-main",children:[n.jsx("span",{id:q,className:"popup-title popup-title--left h2",children:a}),r&&n.jsx("span",{className:"popup-subtitle body-3",children:r})]}),i&&n.jsx("div",{className:"popup-header-segment",children:n.jsx(_n,{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,b&&n.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:L,disabled:v,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,n.jsx("div",{className:"popup-content",ref:E,tabIndex:M?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof l=="function"?l({animateThen:K,closeWithAnimation:L}):l})}),u||p?n.jsxs("div",{className:`popup-footer popup-footer--bar${m?` ${m}`:""}`,children:[n.jsx("div",{className:"popup-footer__start",children:typeof u=="function"?u({animateThen:K,closeWithAnimation:L}):u}),n.jsx("div",{className:"popup-footer__end",children:typeof p=="function"?p({animateThen:K,closeWithAnimation:L}):p})]}):c?.length?n.jsx("div",{className:`popup-footer popup-footer--buttons${h!=="center"?` popup-footer--${h}`:""}`,children:c.map((Y,ne)=>n.jsx(le,{htmlType:"button",size:48,variant:Y.variant??"default",label:Y.label,disabled:Y.disabled,onClick:()=>Y.onClick?.({animateThen:K,closeWithAnimation:L})},ne))}):d?n.jsx("div",{className:`popup-footer${h!=="center"?` popup-footer--${h}`:""}${m?` ${m}`:""}`,children:typeof d=="function"?d({animateThen:K,closeWithAnimation:L}):d}):null]})});return g||typeof document>"u"?J:Ut.createPortal(J,document.body)}function er(e){return String(e)}const tr=["o","triangle","x"];function lc(e,t){return e===t?null:t}const cc={o:"circle",triangle:"triangle",x:"x"},uc={o:"main",triangle:"warn",x:"danger"};function wy(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 xo(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function dc(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 aa={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 Ay(e="landscape"){Cn("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}=aa[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 pc(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 By={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 Ny(e,t){const a=By[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 Sy={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},mc={\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"},hc={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function _o(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function fc(e,t,a,r){if(r!=="\uC810\uC120")return{};const s=e%t,i=Math.floor(e/t),l=s<t-1,c=i<a-1;if(!l&&!c)return{};const d="#ddd",u=b=>`repeating-linear-gradient(to ${b}, ${d} 0, ${d} 5px, transparent 5px, transparent 10px)`,p=[],m=[],h=[];return l&&(p.push(u("bottom")),m.push("1px 100%"),h.push("right center")),c&&(p.push(u("right")),m.push("100% 1px"),h.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:m.join(", "),backgroundPosition:h.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const Dy=280,Ey=240,jy=280,Ty=400,My=120,Ly=280;function Cc(e,t){const a=o.useRef(null),[r,s]=o.useState(1),[i,l]=o.useState(0),c=o.useCallback((d,u)=>{if(!(d>0))return;const p=d/e,m=t&&u>0?u/t:1/0,h=Math.min(1,p,m);s(h),l(Math.max(0,(d-e*h)/2))},[e,t]);return o.useEffect(()=>{const d=a.current;if(!d)return;const u=t?d.parentElement??d:d;if(c(u.clientWidth,u.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([m])=>c(m.contentRect.width,m.contentRect.height));return p.observe(u),()=>p.disconnect()},[c,t]),{scalerRef:a,scale:r,offset:i}}const $y={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Ry=400,gc=8;function bc({label:e,subLabel:t,colloquialLabel:a,homonum:r,showWord:s=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:c=!0,buttonSize:d=40,wordInfo:u}){const{t:p}=be.useTranslation(),m=o.useRef(null),h=o.useRef(null),b=o.useRef(null),[v,C]=o.useState(1),[w,f]=o.useState(!1),[y,x]=o.useState({for:"",url:""}),[g,k]=o.useState(null),_=t&&t.length>0?t:e2()?.(e,r)??"",B=Gn()?.(e,r)??"",{imgRef:N,loading:A,failed:S,onLoad:O,onError:H}=yo(B),j=o.useCallback(()=>k(h.current?.getBoundingClientRect()??null),[]),q=o.useCallback(()=>k(null),[]),E=Vr(!!g,F=>{F?j():q()},h),M=o.useMemo(()=>{if(!u)return null;const F=[];return u.grade&&F.push(p("wordTable.info.grade",{n:u.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),u.syllables&&F.push(p("wordTable.info.syllables",{n:u.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),u.pos&&F.push(p("wordTable.info.pos",{v:_o(u.pos,Py(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),u.wordType&&F.push(p("wordTable.info.wordType",{v:_o(u.wordType,Iy(p)),defaultValue:"\uC720\uD615: {{v}}"})),F.length?F:null},[u,p]),I=_||e,G=y.for===I?y.url:"";o.useEffect(()=>{const F=Br(),P=_||e;if(!F||!P)return;let R=!1;return Promise.resolve(F(P)).then($=>{!R&&$&&x({for:P,url:$})}),()=>{R=!0}},[_,e]);const Z=o.useRef(null),U=o.useRef(null);o.useEffect(()=>()=>{b.current?.pause(),U.current?.()},[]);const z=o.useCallback(async F=>{if(F.stopPropagation(),w){Z.current?.();return}if(G){f(!0);try{const P=new Audio(G);b.current=P;const R=()=>{f(!1),U.current?.()},$=()=>{P.pause(),R()};Z.current=$;const ee=Ga($);U.current=ee,P.onended=R,P.onerror=R,await P.play()}catch{f(!1),U.current?.()}}},[w,G]),K=i&&!!B&&!S,L=K&&s?Dy:K?jy:Ey,D=K&&s?Ty:K?Ly:My;return o.useEffect(()=>{const F=m.current;if(!F||typeof ResizeObserver>"u")return;const P=new ResizeObserver(([R])=>{const{width:$,height:ee}=R.contentRect;C(Math.min($/L,ee/D))});return P.observe(F),()=>P.disconnect()},[L,D]),n.jsxs("div",{ref:m,className:De("word-table-cell",K?"word-table-cell--with-image":""),children:[n.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${v})`},children:[K&&n.jsxs("div",{className:"word-table-cell__image-wrap",children:[A&&n.jsx("div",{className:"word-table-cell__spinner"}),n.jsx("img",{ref:N,className:"word-table-cell__image",src:B,alt:e,draggable:!1,style:{opacity:A?0:1},onLoad:O,onError:H})]}),s&&n.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&_&&n.jsxs("span",{className:"word-table-cell__sub h3",children:["[",_,"]"]}),c&&a&&n.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),n.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":G,children:[n.jsx("span",{"data-play-state":"play",style:{display:w?"none":void 0},children:n.jsx(le,{htmlType:"button",size:d,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:z})}),n.jsx("span",{"data-play-state":"pause",style:{display:w?void 0:"none"},children:n.jsx(le,{htmlType:"button",size:d,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:z})})]}),u&&n.jsxs("div",{ref:h,className:"word-table-cell__info-button",onPointerEnter:F=>{Xn(F)||j()},onPointerLeave:F=>{Xn(F)||q()},onFocus:()=>{Jn()||j()},onBlur:q,children:[n.jsx(le,{htmlType:"button",size:d,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:F=>{F.stopPropagation(),E.touchPress()}}),g&&M&&n.jsx(Fn,{anchorRect:g,items:M,showIndex:!1})]})]})}const yc={\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"},vc={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function Py(e){return Object.fromEntries(Object.entries(mc).map(([t,a])=>[t,yc[t]?e(`wordTable.pos.${yc[t]}`,{defaultValue:a}):a]))}function Iy(e){return Object.fromEntries(Object.entries(hc).map(([t,a])=>[t,vc[t]?e(`wordSearch.filter.type.${vc[t]}`,{defaultValue:a}):a]))}function ra({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:c=!0,showDivLine:d=!0,items:u,editCells:p,count:m,activeCell:h=null,onActivateCell:b,onRemoveCell:v,onRemoveItem:C,onReorder:w,showFillerAdd:f=!1,contentRef:y,buttonSize:x=40,pageNumber:g,pageNumberPosition:k="right",fitHeight:_=!1,scoring:B=!1,marks:N,onMarkClick:A,scoreIndexOffset:S=0}){const O=o.useCallback((Ae,ve)=>{A?.(S+Ae,ve)},[A,S]),H=(Ae,ve)=>{const Se=N?.[er(S+Ae)]??null;return n.jsx("div",{className:De("word-table-cell__score",Se?"word-table-cell__score--marked":""),style:ae>1?{transform:`translateX(-50%) scale(${ae})`,transformOrigin:"bottom center"}:void 0,children:tr.map(me=>n.jsx("span",{className:De("word-table-cell__score-slot",Se===me?"word-table-cell__score-slot--on":""),children:n.jsx(le,{htmlType:"button",size:x,type:"dot",icon:cc[me],variant:Se===me?uc[me]:"default",selected:Se===me,useBorder:!1,showTooltipInfo:!1,ariaLabel:j(`wordTable.scoring.${me}`,{word:ve,defaultValue:`${ve} ${me}`}),onClick:Ge=>{Ge.stopPropagation(),O(Ae,me)}})},me))})},{t:j}=be.useTranslation(),q=p!==void 0,E=e!=null||!!t||!!a,M=Yt("(max-width: 767px)"),I=o.useRef(null),[G,Z]=o.useState(null),U=u?.length??0,[z,K]=o.useState(null),[L,D]=o.useState(""),F=o.useRef(null),P=o.useRef(null),R=o.useRef(null),$=o.useRef(null),ee=o.useCallback(Ae=>{P.current=Ae,typeof y=="function"?y(Ae):y&&(y.current=Ae)},[y]),J=o.useCallback((Ae,ve)=>{F.current=ve,w?.(Ae,ve),D(j("wordTable.reorder.moved",{n:ve+1,total:U,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[w,j,U]);o.useEffect(()=>{const Ae=F.current;Ae!=null&&(F.current=null,P.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler)")?.[Ae]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{$.current?.()},[]);const Y=o.useCallback((Ae,ve)=>{if(!w||!Ae.altKey||Ae.ctrlKey||Ae.metaKey)return;const Se=Ae.key==="ArrowRight";if(!Se&&Ae.key!=="ArrowLeft")return;Ae.preventDefault();const me=ve+(Se?1:-1);me<0||me>=U||J(ve,me)},[w,U,J]),ne=o.useCallback((Ae,ve)=>{if(!w||Ae.pointerType==="mouse")return;const Se=Ae.target.closest?.("button");if(Se&&!Se.closest(".word-table-block__card-handle"))return;$.current?.();const me={x:Ae.clientX,y:Ae.clientY};let Ge=!1;const Ue=$e=>{Ge&&$e.cancelable&&$e.preventDefault()},Ye=$e=>{if(!Ge){(Math.abs($e.clientX-me.x)>gc||Math.abs($e.clientY-me.y)>gc)&&ze();return}const Ve=document.elementFromPoint?.($e.clientX,$e.clientY)?.closest?.("[data-wordtable-cell]"),ot=Ve?Number(Ve.dataset.wordtableCell):NaN,Ct=Number.isInteger(ot)?ot:null;R.current=Ct,Z(Ct)},Ze=()=>{const $e=R.current,Ve=Ge;ze(),Ve&&$e!=null&&$e!==ve&&J(ve,$e)},Xe=setTimeout(()=>{Ge=!0,K(ve),R.current=ve,Z(ve),window.addEventListener("touchmove",Ue,{passive:!1})},Ry);function ze(){clearTimeout(Xe),window.removeEventListener("pointermove",Ye),window.removeEventListener("pointerup",Ze),window.removeEventListener("pointercancel",Ze),window.removeEventListener("touchmove",Ue),Ge=!1,R.current=null,$.current=null,K(null),Z(null)}$.current=ze,window.addEventListener("pointermove",Ye),window.addEventListener("pointerup",Ze),window.addEventListener("pointercancel",Ze)},[w,J]),{width:Ce,height:re}=aa[s],ie=typeof _=="number"?_:_&&typeof _=="object"?M?_.narrow:_.wide:null,{scalerRef:W,scale:oe,offset:pe}=Cc(Ce,_?re:void 0),xe=q?p?.length??0:u?.length??0,ge=Math.max(m??xe,1),{cols:Be,rows:he}=Ny(s,ge),ye={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")},Te=q?(p??[]).some(Ae=>Ae!==null&&Ae.length>1):(u??[]).some(Ae=>(Ae.words??[]).length>1),Oe=De("word-table-block__content",Sy[l],c&&"word-table-block__content--outline",d&&Te&&"word-table-block__content--div-line"),Pe={transform:`scale(${1/oe})`,transformOrigin:"center center"},ce=x*tr.length+4*(tr.length-1),ae=Math.max(1,Math.min(1/oe,Ce/Be/ce)),Ne=n.jsxs("div",{ref:W,className:"word-table__scaler",style:{height:re*oe},children:[n.jsx("div",{className:De("word-table",!E&&r),style:{width:Ce,height:re,transform:`scale(${oe})`,transformOrigin:"top left",marginLeft:pe},children:n.jsxs("div",{ref:ee,className:Oe,style:{gridTemplateColumns:`repeat(${Be}, 1fr)`,gridTemplateRows:`repeat(${he}, 1fr)`},children:[q?n.jsx(n.Fragment,{children:(p??[]).map((Ae,ve)=>n.jsx("div",{className:De("word-table-block__edit-cell",Ae?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",h===ve?"word-table-block__edit-cell--active":""),style:fc(ve,Be,he,l),children:Ae?n.jsxs(n.Fragment,{children:[Ae.map((Se,me)=>n.jsxs(o.Fragment,{children:[me>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(bc,{label:Se.word,subLabel:Se.pronunciation,colloquialLabel:Se.colloquialPronunciation,homonum:Se.homonum,showWord:ye.word,showImage:ye.image,showPronunciation:ye.pron,showColloquial:ye.colloq,buttonSize:x})]},me)),B&&H(ve,Ae.map(Se=>Se.word).join(" / ")),v&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(le,{htmlType:"button",size:x,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:Ae.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:Ae.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>v(ve)})})]}):b&&n.jsx("div",{style:Pe,children:n.jsx(le,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:j("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>b(ve)})})},ve))}):n.jsxs(n.Fragment,{children:[(u??[]).map((Ae,ve)=>n.jsxs("div",{"data-wordtable-cell":w?ve:void 0,className:`word-table-block__card${w?" word-table-block__card--draggable":""}${G===ve?" word-table-block__card--drag-over":""}${z===ve?" word-table-block__card--dragging":""}`,style:fc(ve,Be,he,l),draggable:!!w,onPointerDown:w?Se=>ne(Se,ve):void 0,onKeyDown:w?Se=>Y(Se,ve):void 0,onDragStart:w?()=>{I.current=ve}:void 0,onDragOver:w?Se=>{Se.preventDefault(),Z(ve)}:void 0,onDragLeave:w?()=>Z(null):void 0,onDrop:w?Se=>{Se.preventDefault(),I.current!==null&&I.current!==ve&&w(I.current,ve),I.current=null,Z(null)}:void 0,onDragEnd:w?()=>{I.current=null,Z(null)}:void 0,children:[(Ae.words??[]).map((Se,me)=>n.jsxs(o.Fragment,{children:[me>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(bc,{label:Se.label,subLabel:Se.subLabel,colloquialLabel:Se.colloquialLabel,homonum:Se.homonum,showWord:ye.word,showImage:ye.image,showPronunciation:ye.pron,showColloquial:ye.colloq,buttonSize:x,wordInfo:Se.grade||Se.syllables!=null||Se.pos||Se.wordType?{grade:Se.grade,syllables:Se.syllables,pos:Se.pos,wordType:Se.wordType}:void 0})]},me)),B&&H(ve,(Ae.words??[]).map(Se=>Se.label).join(" / ")),w&&n.jsx("div",{className:"word-table-block__card-handle",children:n.jsx(le,{htmlType:"button",size:x,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:(Ae.words??[]).map(Se=>Se.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})}),C&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(le,{htmlType:"button",size:x,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(Ae.words??[]).length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(Ae.words??[]).length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>C(Ae.id)})})]},Ae.id)),Array.from({length:Math.max(0,Be*he-(u?.length??0))}).map((Ae,ve)=>{const Se=(u?.length??0)+ve<ge;return n.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:f&&b&&Se&&n.jsx("div",{style:Pe,children:n.jsx(le,{htmlType:"button",size:x,type:"bar",icon:"plus",label:j("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>b((u?.length??0)+ve)})})},`filler-${ve}`)})]}),g&&k!=="none"&&n.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${k}`,children:j("wordTable.filter.pageIndicator",{current:g.current,total:g.total})})]})}),w&&n.jsx("span",{role:"status",style:$y,children:L})]}),je=ie==null?Ne:n.jsx("div",{className:"word-table__frame",style:{height:ie},children:Ne});return E?n.jsx(na,{type:"page",icon:t,title:e,disc:a,className:De("word-table-block",r),children:je}):je}function kn({title:e,headerAction:t,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:s,onCollapsedChange:i,footer:l,sections:c,selected:d={},onSelect:u,align:p,sectionAlign:m,className:h}){const b=(p??(m==="vertical"?"newline":"inline"))==="inline",{t:v}=be.useTranslation(),[C,w]=o.useState(r),f=s??C,y=()=>{const g=!f;w(g),i?.(g)},x=e||t||a;return n.jsxs("div",{className:De("filter-panel",a?"filter-panel--collapsible":"",f?"filter-panel--collapsed":"",h),children:[x&&n.jsxs("div",{className:"filter-panel__header",children:[n.jsxs("div",{className:"filter-panel__title-row",children:[a&&n.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:f?"chevron-down":"chevron-up",ariaLabel:f?v("common.expand","\uD3BC\uCE58\uAE30"):v("common.collapse","\uC811\uAE30"),"aria-expanded":!f,onClick:y}),e&&n.jsx("span",{className:"filter-panel__title h4",children:e})]}),n.jsx("div",{className:"filter-panel__header-actions",children:!f&&t})]}),!f&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:De("filter-panel__sections",b?"filter-panel__sections--row":""),children:c.map(g=>{const k=d[g.label],_=k===void 0||(Array.isArray(k)?k.length===0:!1),B=(g.items??[]).filter(A=>A!=null);g.allOption&&B.some(A=>(typeof A=="string"?A:A.value)===sn)&&Cn(`filter-panel-all-value:${g.label}`,`[FilterPanel] '${g.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${sn}' \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 N=A=>{const S=typeof A=="string"?A:A.value,O=typeof A!="string"&&!!A.disabled,H=typeof A!="string"?A.labels:void 0,j=typeof A!="string"?A.displayLabel:void 0,q=typeof A!="string"?A.tooltip:void 0,E=typeof A!="string"?A.descriptionTooltip:void 0,M=typeof A!="string"?A.shape:void 0,I=Array.isArray(k)?k.includes(S):k===S;return n.jsx(le,{htmlType:"button",size:"keyboard",label:H??j??S,type:g.itemType??(H?"bar":S.length===1?"dot":void 0),selected:I,disabled:O,shape:M,showTooltipInfo:!!q,tooltipInfoText:q,tooltipDescription:E,onClick:()=>u?.(S,g.label)},S)};return n.jsxs(o.Fragment,{children:[g.groupLabel&&n.jsxs("div",{className:"filter-panel__group-label-row",children:[n.jsx("div",{className:"filter-panel__group-label body-2",children:g.groupLabel}),g.groupAction]}),n.jsxs("div",{className:De("filter-panel__section",g.layout==="row"?"filter-panel__section--row":"",g.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:g.displayLabel??g.label}),g.labelAction??(g.labelInfo?n.jsx(Aa,{...g.labelInfo}):null)]}),g.type==="note"?n.jsx("div",{className:"filter-panel__note body-3",children:g.content}):g.type==="input"?n.jsx(zn,{className:"filter-panel__textfield",placeholder:g.placeholder,ariaLabel:g.displayLabel??g.label,value:d[g.label]??"",onChange:A=>u?.(A,g.label),error:g.error}):!g.multiple&&g.display==="segmented"?n.jsx(_n,{ariaLabel:g.displayLabel??g.label,options:[...g.allOption?[{key:sn,label:g.allLabel??v("common.all","\uC804\uCCB4"),disabled:g.allOptionDisabled}]:[],...B.map(A=>{const S=typeof A=="string"?A:A.value,O=typeof A!="string"?A.displayLabel:void 0,H=typeof A!="string"?A.disabled:void 0;return{key:S,label:O??S,disabled:H}})],value:_&&g.allOption?sn:d[g.label]??"",onChange:A=>u?.(A,g.label),size:32}):!g.multiple&&g.display==="dropdown"?n.jsx(rn,{className:"filter-panel__dropdown",size:40,options:[...g.allOption?[{value:sn,label:g.allLabel??v("common.all","\uC804\uCCB4"),disabled:g.allOptionDisabled}]:[],...B.map(A=>{const S=typeof A=="string"?A:A.value,O=typeof A!="string"?A.displayLabel:void 0,H=typeof A!="string"?A.disabled:void 0;return{value:S,label:O??S,disabled:H}})],value:_&&g.allOption?sn:d[g.label],onChange:A=>u?.(A,g.label)}):n.jsxs("div",{className:g.groups?"filter-panel__item-groups":"filter-panel__items",children:[g.allOption&&!g.groups&&n.jsx(le,{htmlType:"button",size:"keyboard",label:g.allLabel??v("common.all","\uC804\uCCB4"),selected:_,disabled:g.allOptionDisabled,onClick:()=>u?.(sn,g.label)}),g.groups?g.groups.map((A,S)=>n.jsxs("div",{className:"filter-panel__item-group",children:[S===0&&g.allOption&&n.jsx(le,{htmlType:"button",size:"keyboard",label:g.allLabel??v("common.all","\uC804\uCCB4"),selected:_,disabled:g.allOptionDisabled,onClick:()=>u?.(sn,g.label)}),A.filter(O=>O!=null).map(N)]},S)):B.map(N)]})]})]},g.label)})}),l!=null&&l!==!1&&n.jsx("div",{className:"filter-panel__footer body-3",children:l})]})]})}const Fy=[1,2,3,4,5,6,7,8,9,10,11,12],xc=[8,4,2,1];function _c(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 wc(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 kc(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 Ac(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 Bc(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 Nc(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...xc.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function Sc(e,t){return e===t||!xc.includes(e)?Number.POSITIVE_INFINITY:e}function Dc(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 Ec={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function jc(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Tc(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"}}function Mc(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===sn?(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):!1}function Oy(e){return"sections"in e}function wo(e){const{t}=be.useTranslation(),{title:a,className:r}=e;if(Oy(e))return n.jsx(kn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:s,hasColloquial:i,contentTypes:l,orientation:c,showOutline:d,cutLine:u,showDivLine:p,setters:m,showCutLine:h=!1,showDivLine2:b=!1,middleSections:v=[],extraSelected:C={},onExtraSelect:w}=e,f=[_c(t,{hasImage:s,hasColloquial:i}),wc(t),...v,kc(t),...h?[Ac(t)]:[],...b?[Bc(t)]:[]],y={...Tc(t,{contentTypes:l,orientation:c,showOutline:d,cutLine:u,showDivLine:p}),...C},x=(g,k)=>{Mc(t,g,k,m)||w?.(g,k)};return n.jsx(kn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:f,selected:y,onSelect:x,sectionAlign:"horizontal"})}function Lc(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function ko(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let nr=null,oa=null;function Hy(e,t,a,r="",s=""){if(e.length===0||oa&&oa.iframe.isConnected&&Date.now()-oa.at<1e4)return;const i=r?ko(r):"";nr?.();let l=null;if(i){const u=document.title;document.title=i,l=()=>{document.title=u,window.removeEventListener("afterprint",l),nr===l&&(nr=null)},nr=l,window.addEventListener("afterprint",l)}const c=document.createElement("iframe");c.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(c);const d=c.contentDocument;if(!d){c.remove();return}oa={iframe:c,at:Date.now()},d.open(),d.write(Ao(e,t,a,!0,i,s)),d.close(),c.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{c.remove(),oa?.iframe===c&&(oa=null)},0)})}function Ao(e,t,a,r=!1,s="",i=""){s=s?ko(s):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(m=>m.cssText)}catch{return[]}}).join(`
|
|
860
860
|
`),c="light",d=i?`<div class="paper-head">${Lc(i)}</div>`:"",u=e.map(p=>{const m=p.cloneNode(!0);return m.querySelectorAll('[data-play-state="play"]').forEach(h=>h.style.display=""),m.querySelectorAll('[data-play-state="pause"]').forEach(h=>h.style.display="none"),m.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(h=>h.remove()),m.querySelectorAll(".word-table-cell__spinner").forEach(h=>h.remove()),m.querySelectorAll("img").forEach(h=>{h.style.opacity==="0"&&(h.setAttribute("onload","this.style.opacity=''"),h.setAttribute("onerror","this.style.visibility='hidden'"))}),`<div class="paper-wrap">${d}${m.outerHTML}</div>`}).join(`
|
|
861
861
|
`);return`<!DOCTYPE html>
|
|
862
862
|
<html data-theme="${c}">
|
|
@@ -1000,10 +1000,10 @@ ${y.badge}`:y.badge:void 0;if(_&&d(y.code))return null;if(!y.badge&&!p)return m(
|
|
|
1000
1000
|
`:""}
|
|
1001
1001
|
<\/script>
|
|
1002
1002
|
</body>
|
|
1003
|
-
</html>`}const zy=1e3;function Bo({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:s,header:i=""}){const{t:l}=ge.useTranslation(),c=o.useCallback(()=>{Hy(e(),t,a,r,i)},[e,t,a,r,i]),d=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=window.open("","_blank");if(!m){s?.();return}m.document.write(Ao(p,t,a,!1,r,i)),m.document.close()},[e,t,a,r,s,i]),u=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=Ao(p,t,a,!1,r,i),h=new Blob([m],{type:"text/html;charset=utf-8"}),b=URL.createObjectURL(h),v=(r?ko(r):"")||l("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),C=Object.assign(document.createElement("a"),{href:b,download:`${v}.html`});document.body.appendChild(C),C.click(),document.body.removeChild(C),setTimeout(()=>URL.revokeObjectURL(b),zy)},[e,t,a,r,i,l]);return{print:c,openNewWindow:d,downloadHtml:u}}function $c(e){const{t}=ge.useTranslation(),[a,r]=o.useState("landscape"),[s,i]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[l,c]=o.useState("\uD45C\uC2DC"),[d,u]=o.useState(!0),[p,m]=o.useState(!0),[h,b]=o.useState(8),[v,C]=o.useState("right"),w=e.length,f=e.some(H=>(H.words??[]).length>1),g=e.some(H=>(H.words??[]).some(j=>!!j.colloquialLabel)),x=Math.min(h,Math.max(w,1)),y=o.useMemo(()=>pc(e,x),[e,x]),k=y.length>1,_=x,[B,N]=o.useState(!1);o.useEffect(()=>{let H=!1;if(!Gn()){N(!1);return}return Promise.all(e.flatMap(j=>(j.words??[]).map(q=>Xs(q.label,q.homonum)))).then(j=>{H||N(j.some(Boolean))},()=>{}),()=>{H=!0}},[e]);const A=o.useMemo(()=>[_c(t,{hasImage:B,hasColloquial:g}),wc(t),...w>0?[Nc(t,{hasPairs:f,itemCount:w})]:[],...k?[Dc(t)]:[],kc(t),..._>1?[Ac(t)]:[],...f?[Bc(t)]:[]],[t,B,g,w,f,k,_]),S={...Tc(t,{contentTypes:s,orientation:a,showOutline:d,cutLine:l,showDivLine:p}),...w>0?{[t(f?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${x}\uAC1C`}:{},...k?{[t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Ec[v]}:{}},O=o.useCallback((H,j)=>{Mc(t,H,j,{setContentTypes:i,setOrientation:r,setShowOutline:u,setCutLine:c,setShowDivLine:m})||(j===t("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||j===t("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?b(Sc(parseInt(H),w)):j===t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&C(jc(H)))},[t,w]);return{settings:{orientation:a,contentTypes:s,cutLine:l,showOutline:d,showDivLine:p,count:_},filterSections:A,filterSelected:S,handleSelect:O,pages:y,isPaginated:k,pageNumberPosition:v}}function Vy({items:e,words:t,title:a,subtitle:r,emptyText:s,buttons:i,renderButtons:l,renderFooter:c,footerClassName:d,footerLayout:u,printFileName:p,showSettings:m,autoPrint:h,className:b,onClose:v,scoring:C=!1,onScoreChange:w,printHeader:f,beforeClose:g}){const{t:x}=ge.useTranslation(),y=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(ae=>typeof ae=="string"&&ae.length>0).map((ae,Be)=>({id:`${ae}-${Be}`,words:[{label:ae}]})),[e,t]),{settings:k,filterSections:_,filterSelected:B,handleSelect:N,pages:A,isPaginated:S,pageNumberPosition:O}=$c(y),H=o.useMemo(()=>dc(A.map(ae=>ae.length)),[A]),[j,q]=o.useState({}),E=o.useCallback((ae,Be)=>{q(ie=>({...ie,[er(ae)]:lc(ie[er(ae)]??null,Be)}))},[]),M=o.useRef(w);o.useEffect(()=>{M.current=w});const I=o.useRef(j);o.useEffect(()=>{I.current!==j&&(I.current=j,M.current?.(xo(j)))},[j]);const G=o.useMemo(()=>xo(j),[j]),Z=o.useRef(null),{toastMessage:Y,toastKey:z,showWarning:J,clearToast:$}=il("warning"),D=o.useRef([]),F=o.useCallback(()=>S?D.current.filter(ae=>ae!==null):Z.current?[Z.current]:[],[S]),{print:P,openNewWindow:R}=Bo({getElements:F,paperW:aa[k.orientation].width,paperH:aa[k.orientation].height,fileName:p??"",header:f??"",onPopupBlocked:()=>J(x("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."))}),L=o.useMemo(()=>c?void 0:l?l({print:P,openNewWindow:R}):p?[{label:x("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>R()},{label:x("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>P()},...i??[]]:i,[c,l,p,i,x,P,R]),K=o.useMemo(()=>c?c({print:P,openNewWindow:R}):void 0,[c,P,R]),U=o.useRef(!1),ee=o.useRef(P);return o.useEffect(()=>{ee.current=P},[P]),o.useEffect(()=>{if(!h||U.current)return;const ae=window.setTimeout(()=>{U.current=!0,ee.current()},100);return()=>window.clearTimeout(ae)},[h]),n.jsxs(jn,{title:a??x("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:De("word-table-popup",b),buttons:L,footer:K,footerClassName:d,footerLayout:u,beforeClose:g,onClose:v,children:[y.length>0?n.jsxs("div",{className:"word-table-popup__body",children:[m&&n.jsx(wo,{sections:_,selected:B,onSelect:N}),S?n.jsx("div",{className:"word-table-popup__pages",children:A.map((ae,Be)=>n.jsx(ra,{items:ae,orientation:k.orientation,contentTypes:k.contentTypes,cutLine:k.cutLine,showOutline:k.showOutline,showDivLine:k.showDivLine,count:k.count,contentRef:ie=>{D.current[Be]=ie},pageNumber:{current:Be+1,total:A.length},pageNumberPosition:O,scoring:C,scoreIndexOffset:H[Be],marks:G,onMarkClick:E},Be))}):n.jsx("div",{className:"word-table-popup__table",children:n.jsx(ra,{items:y,orientation:k.orientation,contentTypes:k.contentTypes,cutLine:k.cutLine,showOutline:k.showOutline,showDivLine:k.showDivLine,count:k.count,contentRef:Z,fitHeight:!0,scoring:C,marks:G,onMarkClick:E})})]}):n.jsx("p",{className:"word-table-popup__empty body-3",children:s??x("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsx(ea,{message:Y,position:"top",onClose:$},z)]})}const Wy=new Set(["x","triangle"]);function qy(e,t){const a=[];for(let r=0;r<e.length;r++){const s=t[String(r)];s&&Wy.has(s)&&a.push(e[r])}return a}const Uy=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function Rc(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=Uy.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 Gy(e,t){const[,a,r]=$r(t).split("-"),s=`${a}.${r}`,{\uBC14\uD0D5:i,\uD68C\uCC28:l}=Rc(typeof e=="string"?{name:e}:e),c=l>=2?`${l}\uCC28 `:"";return`${i||"\uB2E8\uC5B4\uD45C"} ${c}\uBCF5\uC2B5 ${s}`}function Ky(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:Rc(e).\uD68C\uCC28}}function Yy(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 Zy(e){return e.map(t=>t.label).join(" / ")}function Xy(e){return e.map(t=>t.homonum!=null?`${t.label}#${t.homonum}`:t.label).join(" / ")}function Pc(e){return e.split(" / ").map(t=>t.replace(/#\d+$/,"")).join(" / ")}function Jy(e,t,a){const r=ci(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}function Ic(e,t,a){return a===0?0:(e+t*.5)/a}function Qy(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 c=s.labels?.[i];if(!c)continue;const d=t.get(c)??{o:0,triangle:0,x:0,latest:l,latestAt:s.scoredAt};if(l==="o")d.o++;else if(l==="triangle")d.triangle++;else if(l==="x")d.x++;else continue;d.latest=l,d.latestAt=s.scoredAt,t.set(c,d)}const r=[];for(const[s,i]of t){const l=i.o+i.triangle+i.x;r.push({label:Pc(s),key:s,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:Ic(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((s,i)=>s.rate-i.rate||i.tried-s.tried||Qn(s.label,i.label)||Qn(s.key??s.label,i.key??i.label)),r}function e5(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=c=>Object.values(c.marks).filter(d=>d==="o"||d==="triangle"||d==="x").length,i=r.rows.filter(c=>s(c)>0).sort((c,d)=>c.scoredAt.localeCompare(d.scoredAt));if(i.length===0)continue;const l=i.map(c=>{const d=Object.values(c.marks),u=d.filter(m=>m==="o").length,p=d.filter(m=>m==="triangle").length;return Ic(u,p,s(c))});a.push({tableName:r.tableName,tableId:r.tableId,rates:l,times:i.map(c=>c.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 t5(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function n5(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 a5(e){const t=new Map;let a=0,r=0;const s=e.map((l,c)=>({r:l,\uC790\uB9AC:c})).sort((l,c)=>l.r.answeredAt.localeCompare(c.r.answeredAt)||n5(l.r.id,c.r.id)||l.\uC790\uB9AC-c.\uC790\uB9AC).map(l=>l.r);for(const l of s){if(l.isCorrect==null)continue;const c=l.itemTitle?.trim();if(!c){r++;continue}a++;const d=l.itemId?.trim()||c,u=`${l.trainingType}|${d}`,p=t.get(u)??{trainingType:l.trainingType,itemId:d,title:c,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(p.tried++,l.isCorrect||p.wrong++,p.title=c,p.latestCorrect=l.isCorrect,p.latestAt=l.answeredAt,p.lastSelected=l.selected,l.setId){const m=p.setIds.indexOf(l.setId);m>0&&p.setIds.splice(m,1),m!==0&&p.setIds.unshift(l.setId)}t.set(u,p)}const i=[...t.entries()].map(([l,c])=>({key:l,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return i.sort((l,c)=>l.rate-c.rate||c.tried-l.tried||Qn(l.title,c.title)),{items:i,counted:a,skippedNoTitle:r}}function r5(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function o5(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 No=["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 c=`${i.trainingType}|${l}`,d=t.get(c)??{setId:l,trainingType:i.trainingType,pending:0};d.pending++,t.set(c,d)}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=>No.includes(i.trainingType)).sort(r),word:s.filter(i=>!No.includes(i.trainingType)).sort(r),noSet:a}}function i5(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,c=[];for(const d of i.cellLabels)r.has(d)&&!l.has(d)&&(l.add(d),c.push(d));c.length!==0&&s.push({id:i.id,name:i.name,kind:i.kind,covered:c,totalCells:i.cellLabels.length})}return s.sort((i,l)=>l.covered.length-i.covered.length||i.totalCells-l.totalCells||Qn(i.name,l.name)),s.slice(0,Math.max(0,a))}function l5(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function c5(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 So(e,t,a){return typeof e=="string"&&e?e:t.replace(/\{\{(\w+)\}\}/g,(r,s)=>String(a[s]))}function u5(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?So(St.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?So(St.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):So(St.t("customers.duration.sec",{s,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s})}function d5(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 p5(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function m5(e,t){return e.filter(a=>a.key!==t)}function h5(e,t,a){const r=e.filter(u=>u.pinned),s=new Set(r.map(u=>u.key)),i=e.length-r.length,l=[],c=new Set(s);for(const u of t){if(l.length>=i)break;const p=a(u);c.has(p)||(c.add(p),l.push({key:p,value:u,pinned:!1}))}const d=[...l];return e.map(u=>u.pinned?u:d.shift()).filter(u=>u!==void 0)}function f5(e){return e.map(t=>t.value)}function C5(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(Ke,{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 g5(e){const{categories:t=[],selected:a,onSelect:r,size:s="medium"}=e||{},i=a!==void 0,[l,c]=o.useState(()=>i?null:(t&&t[0]?.key)??null),d=i?a:l,u=o.useRef(r);o.useEffect(()=>{u.current=r});const p=o.useRef(!1),m=(t&&t[0]?.key)??null;o.useEffect(()=>{if(i||p.current||!m)return;p.current=!0;const b=l??m;l==null&&c(b),u.current?.(b)},[i,m]);const h=o.useCallback(b=>{const v=d===b?null:b;p.current=!0,i||c(v),r?.(v)},[d,i,r]);return n.jsx("div",{className:`icon-grid-menu icon-grid-menu--${s}`,children:(t||[]).map(b=>n.jsx(C5,{category:b,isSelected:d===b.key,onClick:()=>h(b.key)},b.key))})}function b5({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(le,{htmlType:"button",size:s,type:"bar",label:i.label,selected:t===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function y5({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",s=a?.tel??"031-380-3724",{t:i}=ge.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
|
|
1003
|
+
</html>`}const zy=1e3;function Bo({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:s,header:i=""}){const{t:l}=be.useTranslation(),c=o.useCallback(()=>{Hy(e(),t,a,r,i)},[e,t,a,r,i]),d=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=window.open("","_blank");if(!m){s?.();return}m.document.write(Ao(p,t,a,!1,r,i)),m.document.close()},[e,t,a,r,s,i]),u=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=Ao(p,t,a,!1,r,i),h=new Blob([m],{type:"text/html;charset=utf-8"}),b=URL.createObjectURL(h),v=(r?ko(r):"")||l("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),C=Object.assign(document.createElement("a"),{href:b,download:`${v}.html`});document.body.appendChild(C),C.click(),document.body.removeChild(C),setTimeout(()=>URL.revokeObjectURL(b),zy)},[e,t,a,r,i,l]);return{print:c,openNewWindow:d,downloadHtml:u}}function $c(e){const{t}=be.useTranslation(),[a,r]=o.useState("landscape"),[s,i]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[l,c]=o.useState("\uD45C\uC2DC"),[d,u]=o.useState(!0),[p,m]=o.useState(!0),[h,b]=o.useState(8),[v,C]=o.useState("right"),w=e.length,f=e.some(H=>(H.words??[]).length>1),y=e.some(H=>(H.words??[]).some(j=>!!j.colloquialLabel)),x=Math.min(h,Math.max(w,1)),g=o.useMemo(()=>pc(e,x),[e,x]),k=g.length>1,_=x,[B,N]=o.useState(!1);o.useEffect(()=>{let H=!1;if(!Gn()){N(!1);return}return Promise.all(e.flatMap(j=>(j.words??[]).map(q=>Xs(q.label,q.homonum)))).then(j=>{H||N(j.some(Boolean))},()=>{}),()=>{H=!0}},[e]);const A=o.useMemo(()=>[_c(t,{hasImage:B,hasColloquial:y}),wc(t),...w>0?[Nc(t,{hasPairs:f,itemCount:w})]:[],...k?[Dc(t)]:[],kc(t),..._>1?[Ac(t)]:[],...f?[Bc(t)]:[]],[t,B,y,w,f,k,_]),S={...Tc(t,{contentTypes:s,orientation:a,showOutline:d,cutLine:l,showDivLine:p}),...w>0?{[t(f?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${x}\uAC1C`}:{},...k?{[t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Ec[v]}:{}},O=o.useCallback((H,j)=>{Mc(t,H,j,{setContentTypes:i,setOrientation:r,setShowOutline:u,setCutLine:c,setShowDivLine:m})||(j===t("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||j===t("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?b(Sc(parseInt(H),w)):j===t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&C(jc(H)))},[t,w]);return{settings:{orientation:a,contentTypes:s,cutLine:l,showOutline:d,showDivLine:p,count:_},filterSections:A,filterSelected:S,handleSelect:O,pages:g,isPaginated:k,pageNumberPosition:v}}function Vy({items:e,words:t,title:a,subtitle:r,emptyText:s,buttons:i,renderButtons:l,renderFooter:c,footerClassName:d,footerLayout:u,printFileName:p,showSettings:m,autoPrint:h,className:b,onClose:v,scoring:C=!1,onScoreChange:w,printHeader:f,beforeClose:y}){const{t:x}=be.useTranslation(),g=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(ne=>typeof ne=="string"&&ne.length>0).map((ne,Ce)=>({id:`${ne}-${Ce}`,words:[{label:ne}]})),[e,t]),{settings:k,filterSections:_,filterSelected:B,handleSelect:N,pages:A,isPaginated:S,pageNumberPosition:O}=$c(g),H=o.useMemo(()=>dc(A.map(ne=>ne.length)),[A]),[j,q]=o.useState({}),E=o.useCallback((ne,Ce)=>{q(re=>({...re,[er(ne)]:lc(re[er(ne)]??null,Ce)}))},[]),M=o.useRef(w);o.useEffect(()=>{M.current=w});const I=o.useRef(j);o.useEffect(()=>{I.current!==j&&(I.current=j,M.current?.(xo(j)))},[j]);const G=o.useMemo(()=>xo(j),[j]),Z=o.useRef(null),{toastMessage:U,toastKey:z,showWarning:K,clearToast:L}=il("warning"),D=o.useRef([]),F=o.useCallback(()=>S?D.current.filter(ne=>ne!==null):Z.current?[Z.current]:[],[S]),{print:P,openNewWindow:R}=Bo({getElements:F,paperW:aa[k.orientation].width,paperH:aa[k.orientation].height,fileName:p??"",header:f??"",onPopupBlocked:()=>K(x("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."))}),$=o.useMemo(()=>c?void 0:l?l({print:P,openNewWindow:R}):p?[{label:x("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>R()},{label:x("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>P()},...i??[]]:i,[c,l,p,i,x,P,R]),ee=o.useMemo(()=>c?c({print:P,openNewWindow:R}):void 0,[c,P,R]),J=o.useRef(!1),Y=o.useRef(P);return o.useEffect(()=>{Y.current=P},[P]),o.useEffect(()=>{if(!h||J.current)return;const ne=window.setTimeout(()=>{J.current=!0,Y.current()},100);return()=>window.clearTimeout(ne)},[h]),n.jsxs(jn,{title:a??x("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:De("word-table-popup",b),buttons:$,footer:ee,footerClassName:d,footerLayout:u,beforeClose:y,onClose:v,children:[g.length>0?n.jsxs("div",{className:"word-table-popup__body",children:[m&&n.jsx(wo,{sections:_,selected:B,onSelect:N}),S?n.jsx("div",{className:"word-table-popup__pages",children:A.map((ne,Ce)=>n.jsx(ra,{items:ne,orientation:k.orientation,contentTypes:k.contentTypes,cutLine:k.cutLine,showOutline:k.showOutline,showDivLine:k.showDivLine,count:k.count,contentRef:re=>{D.current[Ce]=re},pageNumber:{current:Ce+1,total:A.length},pageNumberPosition:O,scoring:C,scoreIndexOffset:H[Ce],marks:G,onMarkClick:E},Ce))}):n.jsx("div",{className:"word-table-popup__table",children:n.jsx(ra,{items:g,orientation:k.orientation,contentTypes:k.contentTypes,cutLine:k.cutLine,showOutline:k.showOutline,showDivLine:k.showDivLine,count:k.count,contentRef:Z,fitHeight:!0,scoring:C,marks:G,onMarkClick:E})})]}):n.jsx("p",{className:"word-table-popup__empty body-3",children:s??x("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsx(ea,{message:U,position:"top",onClose:L},z)]})}const Wy=new Set(["x","triangle"]);function qy(e,t){const a=[];for(let r=0;r<e.length;r++){const s=t[String(r)];s&&Wy.has(s)&&a.push(e[r])}return a}const Uy=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function Rc(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=Uy.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 Gy(e,t){const[,a,r]=$r(t).split("-"),s=`${a}.${r}`,{\uBC14\uD0D5:i,\uD68C\uCC28:l}=Rc(typeof e=="string"?{name:e}:e),c=l>=2?`${l}\uCC28 `:"";return`${i||"\uB2E8\uC5B4\uD45C"} ${c}\uBCF5\uC2B5 ${s}`}function Ky(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:Rc(e).\uD68C\uCC28}}function Yy(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 Zy(e){return e.map(t=>t.label).join(" / ")}function Xy(e){return e.map(t=>t.homonum!=null?`${t.label}#${t.homonum}`:t.label).join(" / ")}function Pc(e){return e.split(" / ").map(t=>t.replace(/#\d+$/,"")).join(" / ")}function Jy(e,t,a){const r=ci(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}function Ic(e,t,a){return a===0?0:(e+t*.5)/a}function Qy(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 c=s.labels?.[i];if(!c)continue;const d=t.get(c)??{o:0,triangle:0,x:0,latest:l,latestAt:s.scoredAt};if(l==="o")d.o++;else if(l==="triangle")d.triangle++;else if(l==="x")d.x++;else continue;d.latest=l,d.latestAt=s.scoredAt,t.set(c,d)}const r=[];for(const[s,i]of t){const l=i.o+i.triangle+i.x;r.push({label:Pc(s),key:s,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:Ic(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((s,i)=>s.rate-i.rate||i.tried-s.tried||Qn(s.label,i.label)||Qn(s.key??s.label,i.key??i.label)),r}function e5(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=c=>Object.values(c.marks).filter(d=>d==="o"||d==="triangle"||d==="x").length,i=r.rows.filter(c=>s(c)>0).sort((c,d)=>c.scoredAt.localeCompare(d.scoredAt));if(i.length===0)continue;const l=i.map(c=>{const d=Object.values(c.marks),u=d.filter(m=>m==="o").length,p=d.filter(m=>m==="triangle").length;return Ic(u,p,s(c))});a.push({tableName:r.tableName,tableId:r.tableId,rates:l,times:i.map(c=>c.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 t5(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function n5(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 a5(e){const t=new Map;let a=0,r=0;const s=e.map((l,c)=>({r:l,\uC790\uB9AC:c})).sort((l,c)=>l.r.answeredAt.localeCompare(c.r.answeredAt)||n5(l.r.id,c.r.id)||l.\uC790\uB9AC-c.\uC790\uB9AC).map(l=>l.r);for(const l of s){if(l.isCorrect==null)continue;const c=l.itemTitle?.trim();if(!c){r++;continue}a++;const d=l.itemId?.trim()||c,u=`${l.trainingType}|${d}`,p=t.get(u)??{trainingType:l.trainingType,itemId:d,title:c,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(p.tried++,l.isCorrect||p.wrong++,p.title=c,p.latestCorrect=l.isCorrect,p.latestAt=l.answeredAt,p.lastSelected=l.selected,l.setId){const m=p.setIds.indexOf(l.setId);m>0&&p.setIds.splice(m,1),m!==0&&p.setIds.unshift(l.setId)}t.set(u,p)}const i=[...t.entries()].map(([l,c])=>({key:l,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return i.sort((l,c)=>l.rate-c.rate||c.tried-l.tried||Qn(l.title,c.title)),{items:i,counted:a,skippedNoTitle:r}}function r5(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function o5(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 No=["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 c=`${i.trainingType}|${l}`,d=t.get(c)??{setId:l,trainingType:i.trainingType,pending:0};d.pending++,t.set(c,d)}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=>No.includes(i.trainingType)).sort(r),word:s.filter(i=>!No.includes(i.trainingType)).sort(r),noSet:a}}function i5(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,c=[];for(const d of i.cellLabels)r.has(d)&&!l.has(d)&&(l.add(d),c.push(d));c.length!==0&&s.push({id:i.id,name:i.name,kind:i.kind,covered:c,totalCells:i.cellLabels.length})}return s.sort((i,l)=>l.covered.length-i.covered.length||i.totalCells-l.totalCells||Qn(i.name,l.name)),s.slice(0,Math.max(0,a))}function l5(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function c5(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 So(e,t,a){return typeof e=="string"&&e?e:t.replace(/\{\{(\w+)\}\}/g,(r,s)=>String(a[s]))}function u5(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?So(St.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?So(St.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):So(St.t("customers.duration.sec",{s,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s})}function d5(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 p5(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function m5(e,t){return e.filter(a=>a.key!==t)}function h5(e,t,a){const r=e.filter(u=>u.pinned),s=new Set(r.map(u=>u.key)),i=e.length-r.length,l=[],c=new Set(s);for(const u of t){if(l.length>=i)break;const p=a(u);c.has(p)||(c.add(p),l.push({key:p,value:u,pinned:!1}))}const d=[...l];return e.map(u=>u.pinned?u:d.shift()).filter(u=>u!==void 0)}function f5(e){return e.map(t=>t.value)}function C5(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(Ke,{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 g5(e){const{categories:t=[],selected:a,onSelect:r,size:s="medium"}=e||{},i=a!==void 0,[l,c]=o.useState(()=>i?null:(t&&t[0]?.key)??null),d=i?a:l,u=o.useRef(r);o.useEffect(()=>{u.current=r});const p=o.useRef(!1),m=(t&&t[0]?.key)??null;o.useEffect(()=>{if(i||p.current||!m)return;p.current=!0;const b=l??m;l==null&&c(b),u.current?.(b)},[i,m]);const h=o.useCallback(b=>{const v=d===b?null:b;p.current=!0,i||c(v),r?.(v)},[d,i,r]);return n.jsx("div",{className:`icon-grid-menu icon-grid-menu--${s}`,children:(t||[]).map(b=>n.jsx(C5,{category:b,isSelected:d===b.key,onClick:()=>h(b.key)},b.key))})}function b5({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(le,{htmlType:"button",size:s,type:"bar",label:i.label,selected:t===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function y5({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",s=a?.tel??"031-380-3724",{t:i}=be.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
|
|
1004
1004
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
1005
1005
|
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
|
|
1006
|
-
`).map((l,c,d)=>n.jsxs(o.Fragment,{children:[l,c<d.length-1&&n.jsx("br",{})]},c))})}),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:no,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 v5({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:s,className:i,containerClassName:l,renderLink:c,menuLabel:d}){const{t:u}=ge.useTranslation(),p=d??{open:u("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:u("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[m,h]=o.useState(!1),b=o.useId(),v=o.useRef(null);o.useEffect(()=>{if(!m)return;const f=In(()=>{const y=document.getElementById(b);y&&y.contains(document.activeElement)&&v.current?.focus(),h(!1)}),g=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,x=y=>{y.matches&&h(!1)};return g&&(g.matches&&h(!1),g.addEventListener?.("change",x)),()=>{f(),g?.removeEventListener?.("change",x)}},[m,b]);const C=l?`${l} landing-header__inner`:"landing-header__inner",w=(f,g)=>c?c(f,{onClick:g}):n.jsx("a",{href:f.href,onClick:g,"aria-current":f.current?"page":void 0,children:f.label});return n.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[n.jsxs("div",{className:C,children:[e!=null&&(()=>{const f=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:f}):n.jsx("div",{className:"landing-header__brand",children:f})})(),r.length>0&&n.jsx("nav",{className:"landing-header__links",children:r.map((f,g)=>n.jsx("span",{children:w(f)},`${g}:${f.href}`))}),n.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&n.jsx("button",{ref:v,type:"button",onClick:()=>h(f=>!f),"aria-expanded":m,"aria-controls":b,"aria-label":m?p.close:p.open,className:m?"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:b,hidden:!m,className:"landing-header__drawer",children:n.jsx("div",{className:l??void 0,children:r.map((f,g)=>n.jsx("span",{className:"landing-header__drawer-item",children:w(f,()=>h(!1))},`${g}:${f.href}`))})})]})}function x5({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,...oc(a),children:[n.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}const sa=9,_5=e=>Math.round(Math.min(sa,Math.max(0,e))/sa*100),w5=e=>e/100*sa,Ea=2,Fc=.1,k5=e=>Math.min(Ea,Math.max(0,e)),A5=.1,B5=e=>Math.round(e*1e6)/1e6;function ja(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return k5(t);const a=Math.min(sa,Math.max(0,Number(e.level)||0))/sa,r=Number(e.mainVolume);return r>0?a>0?B5(Math.min(Ea,Math.max(A5,a/r))):0:1}const Oc=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Hc(e){return Oc(e)}function Do(e){return Oc(e)*ja(e)}function Eo(e,t=qs()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,Do(e)/a)}function Ta(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=ja({level:a.level,mainVolume:a.mainVolume})),a}const Ma={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},jo=o.createContext(null);function ar(){return o.useContext(jo)}const To=e=>`${Z0()}/${e}`,zc=e=>Array.from({length:10},(t,a)=>To(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),rr={get defaultNoise(){return To("noise1.mp3")},get street(){return zc("noise2")},get restaurant(){return zc("noise3")},get buzz(){return To("noise4.mp3")}};function N5(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return rr.defaultNoise;case"street":return rr.street[t];case"restaurant":return rr.restaurant[t];case"buzz":return rr.buzz;default:return null}}function S5({noisePlayer:e,audioRef:t,playbackStateRef:a}){const r=o.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const s=o.useRef(null),[i,l]=o.useState(null),c=o.useRef(null),d=o.useRef(null),u=o.useRef(null),p=o.useRef(null),m=o.useRef(0),h=o.useRef(null),b=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),v=o.useCallback((x,y=250)=>{const k=s.current;if(!k)return;const _=d.current;if(_){d.current=null;try{k.pause()}catch{}k.src=_,k.load()}if(!k.src)return;m.current+=1,b();try{Dr(),Pa(k).then(S=>{if(s.current===k)try{r.current?.("noise",S)}catch{}})}catch{}const B=k.paused?0:Ia(k);k.paused&&Dn(k,0),k.play().catch(()=>{});const N=performance.now(),A=()=>{const S=Math.min(1,(performance.now()-N)/y);try{Dn(k,B+(x-B)*S)}catch{}S<1?p.current=requestAnimationFrame(A):p.current=null};p.current=requestAnimationFrame(A)},[b]),C=o.useCallback((x=250,y)=>{const k=s.current;if(!k||k.paused){y?.();return}const _=++m.current;b();const B=performance.now(),N=Ia(k),A=()=>{const S=Math.min(1,(performance.now()-B)/x);try{Dn(k,N*(1-S))}catch{}if(S<1)p.current=requestAnimationFrame(A);else{p.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{k.pause()}catch{}y?.()}};p.current=requestAnimationFrame(A),h.current=setTimeout(()=>{if(h.current=null,m.current===_){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{k.paused||(Dn(k,0),k.pause(),y?.())}catch{}}},x+150)},[b]);o.useEffect(()=>{const x=document.createElement("audio");return x.loop=!0,x.crossOrigin="anonymous",s.current=x,()=>{b();try{x.pause(),x.src=""}catch{}s.current=null,c.current=null,d.current=null}},[b]);const w=e?Eo(e.settings):0,f=!!e?.settings.enabled&&w>0;o.useEffect(()=>{if(!f)return;let x=0;const y=setInterval(()=>{const k=s.current;if(!k||k.paused){x=0;return}const _=t.current;if(_&&!_.paused&&!_.ended||a.current==="playing"){x=0;return}x+=1,x>=2&&(x=0,C())},400);return()=>clearInterval(y)},[C,f,t,a]),o.useEffect(()=>{const x=()=>{const y=s.current;if(document.hidden){if(y&&!y.paused){b();try{y.pause()}catch{}}return}if(!y||!y.paused)return;const k=t.current,_=!!k&&!k.paused&&!k.ended||a.current==="playing",B=u.current;_&&B?.enabled&&B.volume>0&&v(B.volume)};return document.addEventListener("visibilitychange",x),()=>document.removeEventListener("visibilitychange",x)},[b,v,t,a]),o.useEffect(()=>{u.current=e?{enabled:e.settings.enabled,volume:w,type:e.settings.type}:null},[e,e?.settings.enabled,w,e?.settings.type]);const g=o.useRef(null);return o.useEffect(()=>()=>{g.current?.(),g.current=null},[]),o.useEffect(()=>{const x=e?.settings,y=s.current;if(!y)return;const k=x?Eo(x):0;if(!x||!x.enabled||k===0){C();return}if(c.current!==x.type){const _=N5(x.type);_&&(c.current=x.type,l(_),d.current=_,C(150,()=>{if(d.current!==_)return;d.current=null,y.src=_,y.load();const B=t.current;if(B&&!B.paused){g.current?.();const N=()=>{y.removeEventListener("canplay",N),g.current===A&&(g.current=null);const S=t.current,O=u.current;S&&!S.paused&&!S.ended&&O?.enabled&&O.volume>0&&v(O.volume)},A=()=>y.removeEventListener("canplay",N);g.current=A,y.addEventListener("canplay",N)}}))}else{const _=t.current,B=!!_&&!_.paused&&!_.ended||a.current==="playing";if(B&&d.current)v(k);else if(B&&y.paused&&y.src)v(k);else if(!y.paused)if(!B)C();else{b();const N=Ia(y),A=performance.now(),S=()=>{const O=Math.min(1,(performance.now()-A)/150);try{Dn(y,N+(k-N)*O)}catch{}O<1?p.current=requestAnimationFrame(S):p.current=null};p.current=requestAnimationFrame(S)}}},[e?.settings,e?.settings.enabled,w,e?.settings.type,b,v,C,t,a,u]),o.useEffect(()=>{const x=s.current;if(x)try{x.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:s,activeNoiseUrl:i,noiseSettingsRef:u,cancelNoiseFade:b,fadeInNoise:v,fadeOutNoise:C}}function D5({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:i,setPlaybackState:l,setStateLocal:c,fadeInNoise:d,fadeOutNoise:u,noiseSettingsRef:p,onDoneRef:m,handleEndRef:h}){const b=o.useRef(null),v=o.useRef(0),C=o.useRef(null),w=o.useRef(0),f=o.useRef(!1);o.useEffect(()=>()=>{w.current++;try{if(C.current&&(cancelAnimationFrame(C.current),C.current=null),f.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}f.current=!1}}catch{}},[]);const g=(k,_=1)=>{try{const B=(k||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(k||"").length);return Math.max(700,Math.round(B*300/Math.max(.25,_)))}catch{return 1200}},x=o.useCallback(k=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!1)}catch{}return}const _=window.speechSynthesis,B=++w.current;try{try{_.cancel()}catch{}const N=k??e,A=Array.isArray(N)?N.filter(E=>!!E):[N||""];A.length===0&&A.push("");const S=Math.max(.3,Math.min(3,t));v.current=A.reduce((E,M)=>E+g(M,S||1),0),b.current=performance.now(),i(0),l("playing"),c("playMode");const O=p.current;O?.enabled&&(O?.volume??0)>0&&d(O.volume);const H=()=>{try{const E=b.current||performance.now(),M=performance.now()-E,I=v.current||1200,G=Math.min(1,M/I);try{r.current&&(r.current.style.left=`${G*100}%`),s.current&&s.current.style.setProperty("--progress",String(G))}catch{}G<1&&(C.current=requestAnimationFrame(H))}catch{}},j=()=>{if(B===w.current)try{C.current&&(cancelAnimationFrame(C.current),C.current=null),i(1),l("stopped");try{h.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},q=E=>{const M=new SpeechSynthesisUtterance(A[E]);try{M.rate=S}catch{}try{M.volume=Math.max(0,Math.min(1,a))}catch{}M.onend=()=>{if(B===w.current){if(E<A.length-1){try{q(E+1)}catch{j()}return}j()}},M.onerror=()=>{j()},M.onstart=()=>{if(!(E>0))try{C.current&&(cancelAnimationFrame(C.current),C.current=null),C.current=requestAnimationFrame(H)}catch{}},f.current=!0,_.speak(M)};try{q(0)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,t,a,d,r,s,i,l,c,p,m,h]),y=o.useCallback(()=>{w.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}C.current&&(cancelAnimationFrame(C.current),C.current=null),u(),b.current=null}catch{}l("stopped"),c("active"),i(0)},[u,l,c,i]);return{startTTS:x,stopTTS:y}}async function E5(e,t,a){let r=null;try{const s=window.AudioContext||window.webkitAudioContext;r=new s;const i=await r.decodeAudioData(e.slice(0)),l=i.numberOfChannels>0?i.getChannelData(0):null;if(!l)return null;const c=a&&a>0?Math.min(l.length,Math.floor(a*i.sampleRate)):l.length,d=Math.max(t,c),u=Math.floor(d/t)||1;return new Array(t).fill(0).map((p,m)=>{const h=m*u,b=Math.min(h+u,d);let v=0;for(let C=h;C<b;C++){const w=Math.abs(l[C]);w>v&&(v=w)}return v})}catch{return null}finally{try{r?.close?.()}catch{}}}async function Vc(e,t,a){try{const r=await fetch(e);if(r.ok===!1)return null;const s=await r.arrayBuffer();return await E5(s,t,a)}catch(r){try{const s=ti(r)}catch{}return null}}const Wc=45,j5=74,T5=2;function La(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function Mo(e){return La(e)/45}const qc=4;function M5(e){const{src:t,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:i,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:d=0,mainVolume:u=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,h=o.useRef(null),b=o.useRef(null),[v,C]=o.useState(null),[w,f]=o.useState(!1),[g,x]=o.useState(null),[y,k]=o.useState(2),[_,B]=o.useState(0),[N,A]=o.useState(null),[S,O]=o.useState(!1),[H,j]=o.useState(!1),q=3,E=3,M=1,I=300,G=o.useRef(0),Z=o.useCallback(()=>{const se=h.current,W=b&&b.current?b.current:se?se.closest(".audio-player__wave"):null,re=W?W.getBoundingClientRect():se?se.getBoundingClientRect():null,pe=re?re.width:0,ve=re?Math.max(100,re.width):320,Ce=re?re.height:0,Ae=Math.max(M,Math.min(I,Math.floor((ve+E)/(q+E)))),he=Ae*q,be=Math.max(0,Ae-1),Te=Math.max(0,be>0?(ve-he)/be:E);return{bars:Ae,gap:Te,height:Ce,width:pe}},[]),Y=o.useRef(void 0),z=o.useRef(null),J=o.useCallback(async(se,W,{quiet:re=!1}={})=>{const pe=++G.current,ve=()=>G.current===pe;try{if(re||f(!1),Y.current=se,!se){ve()&&C(null);return}let Ce=W;if(!Ce)try{for(let be=0;be<4&&!(h.current||b.current);be++)await new Promise(Te=>requestAnimationFrame(Te));await new Promise(be=>requestAnimationFrame(be));const he=Z();he.height>0&&B(he.height),Ce=he.bars,k(he.gap)}catch{Ce=120}z.current=Ce;const Ae=await Vc(se,Ce);if(!ve())return;if(!Ae){C(null),f(!1);return}C(Ae),x(Ce),f(!0)}catch{if(!ve())return;C(null),f(!1)}},[f,C,B,k,x,Z]);o.useEffect(()=>{const se=b.current;if(!se||typeof ResizeObserver>"u")return;let W=null;const re=new ResizeObserver(()=>{W!==null&&cancelAnimationFrame(W),W=requestAnimationFrame(()=>{W=null;try{const pe=Z();if(pe.width<=0||(pe.height>0&&B(pe.height),z.current===null||pe.bars===z.current))return;const ve=Y.current;k(pe.gap),ve?J(ve,pe.bars,{quiet:!0}).catch(()=>{}):z.current=pe.bars}catch{}})});return re.observe(se),()=>{re.disconnect(),W!==null&&cancelAnimationFrame(W)}},[Z,J]),o.useEffect(()=>{const se=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;J(typeof se=="string"?se:void 0).catch(()=>{}),j(!1)},[t,a,J]),o.useEffect(()=>{let se=!1;if(O(!1),!i||!g){A(null);return}const W=d>0?d*(c||1):void 0;return Vc(i,g,W).then(re=>{se||(A(re),re||O(!0))}).catch(()=>{se||(A(null),O(!0))}),()=>{se=!0}},[i,g,d,c]);const $=Math.max(0,Math.min(1,u)),D=o.useMemo(()=>v&&v.length&&Math.max(...v)||1,[v]),F=g||40,P=o.useMemo(()=>Array.from({length:F}).map((se,W)=>{const re=v&&v[W]!=null?v[W]:null,pe=re==null?null:Math.min(1,re/D*$),ve=pe!=null&&_>0&&La(pe)<=qc,Ce=pe==null?.15:ve?0:Mo(pe),Ae=F>1?W/(F-1):0;return n.jsx("div",{className:ve?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":Ce,"--i":W,"--mix":Ae}},W)}),[F,v,D,$,_]),R={"--progress":String(Math.max(0,Math.min(1,r)))},L=i?Math.max(1,l):1,K={"--bar-gap":`${y}px`,"--wave-h":`${La(L)}px`,"--wave-h1":`${Wc}px`},U=$*Math.max(0,l)/qs(),ee=w&&(i?!!N||S:!0);o.useEffect(()=>{ee&&j(!0)},[ee]);const ae=H?w:ee;o.useEffect(()=>{p?.(ae)},[ae,p]);const Be=g||40,ie=o.useMemo(()=>Array.from({length:Be}).map((se,W)=>{const re=N&&N[W]!=null?N[W]:null,pe=re==null?0:re/D*U,ve=_>0&&La(pe)<=qc,Ce=ve?0:Mo(pe),Ae=Be>1?W/(Be-1):0;return n.jsx("div",{className:ve?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":Ce,"--i":W,"--mix":Ae}},W)}),[Be,N,D,U,_]);return n.jsxs("div",{className:"audio-player__wave",ref:b,style:K,children:[i&&n.jsx("div",{className:`audio-player__wave-noise ${ee?"is-ready":""}`,"aria-hidden":"true",children:ie}),m&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${ae?"is-ready":""}`,ref:h,children:P}),n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${ae?"is-ready":""}`,ref:s,style:R,children:P})]})]})}const L5={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"};function Lo(e,t){return new Promise((a,r)=>{const s=document.createElement("audio");let i=!1;const l=()=>{try{s.src=""}catch{}},c=()=>{if(i)return;i=!0;const u=isFinite(s.duration)&&s.duration||0;l(),a(u)},d=u=>{i||(i=!0,l(),t.rejectOnError?r(new Error(u)):a(0))};s.addEventListener("loadedmetadata",c),s.addEventListener("error",()=>d("audio load failed")),setTimeout(()=>d("audio load timeout"),t.timeoutMs),s.src=e})}const $5=2e3;function Uc(e,t=$5){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 R5({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=o.useRef(!1),s=o.useRef([]),i=o.useCallback(d=>{if(r.current=d,!d||!s.current.length)return;const u=s.current;s.current=[];for(const p of u)p(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),c=o.useCallback(()=>!e&&!t||r.current?Promise.resolve(!0):new Promise(d=>{const u=m=>{clearTimeout(p),s.current=s.current.filter(h=>h!==u),d(m)},p=setTimeout(()=>u(!0),a);s.current.push(u)}),[e,t,a]);return o.useEffect(()=>()=>{const d=s.current;s.current=[];for(const u of d)u(!1)},[]),{onReadyChange:i,waitForReady:c,markNotReady:l}}function P5(){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 I5({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 F5({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 c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/l))}function O5(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function H5({ended:e,completedByEnd:t}){return!!e||!!t}function z5(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function V5(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function W5(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),c=a(l,t);c&&s.push({code:l,resolvedPath:c})}}return s}function q5(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}function U5({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:s}){const i=o.useRef(null),l=o.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=o.useCallback(()=>{if(i.current!==null)return;const u=()=>{try{const p=e.current,m=Array.isArray(r.current)?r.current[s.current||0]:void 0,h=m&&Number.isFinite(m.duration)&&(m.duration??0)>0?0:q5(p),b=t.current;if(h===null)try{b&&b.style.visibility!=="hidden"&&(b.style.visibility="hidden")}catch{}else{const v=F5({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:s.current,audioDuration:h});try{b&&(b.style.visibility&&(b.style.visibility=""),b.style.left=`${v*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(v))}catch{}}}catch{}i.current=requestAnimationFrame(u)};i.current=requestAnimationFrame(u)},[e,t,a,r,s]),d=o.useCallback(u=>{l();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${u*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(u))}catch{}},[l,t,a]);return o.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:d}}function $o({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:s=!1,ttsText:i=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:d=!0}){const{t:u}=ge.useTranslation(),p=e,m=ar(),h=o.useRef(m?.registerAnalyser);o.useEffect(()=>{h.current=m?.registerAnalyser});const b=o.useRef(null),v=o.useRef(null),C=o.useRef(null),w=P5(),f=o.useRef(null),g=o.useRef(!1),x=o.useRef(0),y=o.useRef(null),{ref:k,rect:_,show:B,hide:N}=I5();o.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[A,S]=o.useState(!1),[O,H]=o.useState("idle"),[j,q]=o.useState("stopped"),E=o.useRef("stopped");o.useEffect(()=>{E.current=j},[j]);const[M,I]=o.useState(0),[G,Z]=o.useState("active"),Y=o.useRef(!1);o.useEffect(()=>{if(G!=="playMode"||!Y.current)return;Y.current=!1;const V=typeof document<"u"?document.activeElement:null;if(V&&V!==document.body)return;const oe=C.current?.querySelectorAll("button")[1];try{oe?.focus()}catch{}},[G]);const[z,J]=o.useState(null),[$,D]=o.useState(null),[F,P]=o.useState(0),[R,L]=o.useState(!1),[K,U]=o.useState(0),ee=m?.playbackRate??1,ae=m?.mainVolume??1,Be=m?Do(m.settings):0,ie=m?Hc(m.settings):ae,[se,W]=o.useState("idle"),[re,pe]=o.useState(""),[ve]=o.useState("top"),Ce=o.useRef(null),Ae=o.useRef(0),he=o.useRef(null),{start:be,stop:Te,settleTo:Oe}=U5({audioRef:b,fillRef:v,waveProgressRef:he,sourcesRef:Ce,currentIndexRef:Ae}),{onReadyChange:Pe,waitForReady:ce,markNotReady:ne}=R5({showSoundWaveForm:c,showNoiseWaveForm:d}),Ne=o.useRef(null),je=o.useRef(s),ke=o.useRef(r),ye=o.useRef(null),Se=o.useRef(!1),[me,Ge]=o.useState(!1),Ue=o.useCallback(V=>{Se.current=V,Ge(V)},[]),Ye=o.useRef(null),{activeNoiseUrl:Ze,noiseSettingsRef:Xe,fadeInNoise:ze,fadeOutNoise:$e}=S5({noisePlayer:m,audioRef:b,playbackStateRef:E}),{startTTS:Ve,stopTTS:ot}=D5({ttsText:i,playbackRate:ee,mainVolume:ie,fillRef:v,waveProgressRef:he,setProgress:I,setPlaybackState:q,setStateLocal:Z,fadeInNoise:ze,fadeOutNoise:$e,noiseSettingsRef:Xe,onDoneRef:ke,handleEndRef:Ye});o.useEffect(()=>{ft.current=ot});const Ct=V=>{if(typeof window>"u"||!window.speechSynthesis){try{pe(u("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}Ve(V);return}kt("tts"),Ve(V)},zt=Array.isArray(t)?t.filter(Boolean):t?[t]:[],gt=(!zt||zt.length===0)&&!!i,nt=Array.isArray(z)&&z.length>0?z:Array.isArray($)&&$.length>0?$:null,Je=Math.max(Array.isArray(nt)?nt.length:0,zt.length),et=o.useRef(!0);o.useEffect(()=>(et.current=!0,()=>{et.current=!1}),[]);const lt=o.useRef(0),We=()=>{lt.current+=1,x.current+=1},ft=o.useRef(null),qe=o.useRef(null),pt=o.useRef(null),Et=o.useRef(null);Et.current||(Et.current=()=>{pt.current=null;const V=b.current;if(qe.current==="audio"&&V&&!V.paused){lt.current+=1,x.current+=1;try{V.pause()}catch{}et.current&&q("paused")}else if(qe.current==="tts")try{ft.current?.()}catch{}});const kt=V=>{qe.current=V,pt.current=Ga(Et.current)},_t=()=>{pt.current?.(),pt.current=null};o.useEffect(()=>()=>{Et.current&&Ka(Et.current)},[]);const st=o.useCallback(async(V,oe=3,ue=50)=>{const _e=lt.current;for(let we=0;we<oe;we++){if(!et.current||_e!==lt.current)return!1;try{return kt("audio"),await V.play(),!0}catch(Le){if((Le instanceof Error||typeof Le=="object"&&Le&&"name"in Le?Le.name:void 0)==="AbortError"){if(_e!==lt.current)return!1;await new Promise(at=>setTimeout(at,ue));continue}try{pe(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{pe(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[u]),Ie=o.useCallback(()=>{const V=b.current;if(!V)return;const oe=()=>{q("playing"),Z("playMode"),L(!0),be();try{Dr(),Pa(V).then(Le=>{if(et.current)try{h.current?.("main",Le)}catch{}})}catch{}const we=Xe.current;we?.enabled&&(we?.volume??0)>0&&ze(we.volume)},ue=()=>{H5({ended:!!V?.ended,completedByEnd:Se.current})||(q("paused"),Te(),$e())},_e=()=>{try{const we=Ce.current,Le=O5(we,Ae.current);if(Le!==null){Ae.current=Le,P(Le),L(!0);const at=we?.[Le]&&we[Le].src;if(at&&V){V.src=at,V.load(),st(V).catch(()=>{});return}}}catch{}q("stopped"),I(1);try{if(V)try{V.currentTime=0}catch{}}catch{}Te(),L(!1),$e();try{!je.current&&Ye.current&&Ye.current()}catch{}};return V.addEventListener("play",oe),V.addEventListener("pause",ue),V.addEventListener("ended",_e),()=>{try{V.removeEventListener("play",oe),V.removeEventListener("pause",ue),V.removeEventListener("ended",_e),Te()}catch{}}},[ze,$e,st,Xe,be,Te]);o.useEffect(()=>Ie(),[Ie]),o.useEffect(()=>{je.current=s},[s]),o.useEffect(()=>{ke.current=r},[r]),o.useEffect(()=>{if(s||G!=="active")return;const V=y.current;if(!V)return;let oe=null;const ue=requestAnimationFrame(()=>{try{const _e=V.getTotalLength();if(!_e)return;const we=_e*.2;V.style.strokeDasharray=`${_e-we} ${we}`;const Le="triFlow_"+Math.random().toString(36).slice(2);oe=document.createElement("style"),oe.textContent=`@keyframes ${Le}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${_e}}}`,document.head.appendChild(oe),V.style.animation=`${Le} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(ue),oe?.remove()}},[G,s]),o.useEffect(()=>{Ce.current=z},[z]),o.useEffect(()=>{Ae.current=F},[F]),o.useEffect(()=>{const V=C.current,oe=f.current;if(!V||!oe)return;let ue=null;const _e=32,we=60,Le=()=>{try{const vt=Array.from(V.querySelectorAll(":scope > .button"));let ut=0;vt.forEach(hn=>{if(hn===oe)return;const dr=hn.getBoundingClientRect();ut+=dr.width});const Nt=V.getBoundingClientRect().width,qt=Math.max(0,Math.floor(Nt-ut-8)),Rt=Je;if(!Rt||qt<=0){Array.from(oe.children).forEach(hn=>{try{hn.style.width=""}catch{}});return}let mn=Math.floor(qt/Rt);mn>we&&(mn=we),mn<_e&&(mn=Math.max(_e,Math.floor(qt/Rt))),Array.from(oe.querySelectorAll(".button")).forEach(hn=>{try{hn.style.width=`${mn}px`}catch{}})}catch{}},at=requestAnimationFrame(Le);try{ue=new ResizeObserver(()=>{requestAnimationFrame(Le)}),ue.observe(V),ue.observe(oe),window.addEventListener("resize",Le)}catch{}return()=>{try{cancelAnimationFrame(at)}catch{}try{ue&&(ue.disconnect(),ue=null)}catch{}try{window.removeEventListener("resize",Le)}catch{}}},[z,$,Je]),o.useEffect(()=>()=>{try{Ne.current&&(clearTimeout(Ne.current),Ne.current=null),ye.current&&(clearTimeout(ye.current),ye.current=null)}catch{}},[]);const rt=(V,oe)=>{J(V),U(oe),ne(),D(z5(V)),Ce.current=V},bt=async(V,oe)=>{Ue(!1),g.current=!1,V.src=oe,V.load(),await Uc(V),await ce()!==!1&&(S(!1),await st(V),Z("playMode"),P(0),L(!0))},Vt=async(V,oe=!1)=>{const ue=b.current;S(!0),H("measuring_duration");try{const _e=await Lo(V,{timeoutMs:1e4,rejectOnError:!0});rt([{src:V,objectUrl:null,duration:_e}],_e),H("ready"),oe&&ue&&await bt(ue,V)}finally{g.current=!1,S(!1)}},tt=async(V,oe=!1)=>{const ue=b.current;S(!0),H("measuring_duration");try{const _e=await Promise.all(V.map(Le=>Lo(Le,{timeoutMs:1e4})));if(!et.current)return;const we=V.map((Le,at)=>({src:Le,objectUrl:null,duration:_e[at]||0}));rt(we,V5(we)),H("ready"),oe&&ue&&we.length>0&&await bt(ue,we[0].src)}finally{g.current=!1,S(!1)}},Zt=async(V=!1,oe=!0)=>{const ue=b.current,_e=t?Array.isArray(t)?t:[t]:[];if(!_e||_e.length===0||!_e.some(Boolean))return!1;if(g.current)return null;g.current=!0,oe&&S(!0),H("resolving");try{const we=W5(t,a,zs),Le=[];let at=0;for(const vt of we){let ut=vt.src??null,Nt=null;if(!ut&&vt.resolvedPath){try{H("getting_signed_url"),ut=await Vs(vt.resolvedPath)}catch{ut=null}if(!et.current)return!1;if(!ut)try{H("downloading");const Rt=await Ws(vt.resolvedPath);if(!et.current)return!1;if(Rt){const mn=Rt instanceof Blob?Rt:new Blob([Rt]);Nt=w.track(URL.createObjectURL(mn)),ut=Nt}}catch{H("error");try{pe(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),Z("active")}catch{}}}if(!ut)continue;let qt=0;try{H("measuring_duration"),qt=await Lo(ut,{timeoutMs:3e3})}catch{qt=0}if(!et.current){if(Nt)try{URL.revokeObjectURL(Nt)}catch{}for(const Rt of Le)if(Rt.objectUrl)try{URL.revokeObjectURL(Rt.objectUrl)}catch{}return!1}at+=qt||0,Le.push({...vt,src:ut,objectUrl:Nt,duration:qt})}if(rt(Le,at),Le.length>0&&V&&ue){const vt=Le[0];Ue(!1);try{w.keepOnly(Le.map(ut=>ut.objectUrl))}catch{}if(H("ready"),g.current=!1,vt.src&&ue)try{if(ue.src=vt.src,ue.load(),await Uc(ue),await ce()===!1)return!1;oe&&S(!1),ue&&await st(ue)}catch{oe&&S(!1)}else oe&&S(!1);Z("playMode"),P(0),L(!0)}return Le.length>0}finally{g.current=!1,oe&&S(!1),H(we=>we==="ready"?"ready":"idle")}},An=async()=>{const V=b.current;if(!(!V&&!gt)){if(gt){const oe=window.speechSynthesis;if(G==="active"){const ue=Br(),_e=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(ue&&_e.length>0){Z("load"),S(!0),H("resolving"),g.current=!0;try{const we=await Promise.all(_e.map(Le=>Promise.resolve(ue(Le))));we.length>1?await tt(we,!0):await Vt(we[0],!0)}catch{g.current=!1,S(!1),Z("active"),Ct(_e.length>0?_e:void 0)}return}Ct(_e.length>0?_e:void 0);return}if(G==="playMode"){const ue=!!oe&&(oe.speaking||oe.paused)&&!(V&&(V.currentSrc||V.getAttribute("src")));if(V&&!ue){if(V.paused){if(Se.current){await Bt();return}await st(V),q("playing")}else We(),V.pause(),q("paused");return}try{if(oe&&oe.paused)try{kt("tts"),oe.resume(),q("playing")}catch{}else try{oe.pause(),q("paused")}catch{}}catch{}}return}if(G==="active"){if(s&&Array.isArray(Ce.current)&&Ce.current.length>0){const ue=Ce.current[0];try{if(ue.src&&V)try{V.src=ue.src,V.load(),V&&await st(V)}catch{}Z("playMode"),P(0),L(!0);return}catch{}}Z("load");let oe;try{oe=await Zt(!0)}catch{oe=!1}if(oe===!1&&et.current){try{pe(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}Z("active")}return}if(G!=="load"&&(G==="playMode"||G==="active"))try{if(V&&V.paused){if(Se.current){await Bt();return}V&&await st(V),q("playing")}else V&&(We(),V.pause(),q("paused"))}catch(oe){(oe instanceof Error||typeof oe=="object"&&oe&&"name"in oe)&&oe.name}}},Bt=async()=>{const V=b.current;if(V)try{const oe=Ce.current;if(Array.isArray(oe)&&oe.length>1){await Xt(0);return}Ue(!1);try{V.currentTime=0}catch{}V&&await st(V),q("playing"),Z("playMode")}catch{}},Wt=()=>{if(We(),_t(),gt){ot();return}const V=b.current;try{if(V){try{V.pause()}catch{}try{V.currentTime=0}catch{}}}catch{}$e(),q("stopped"),Z("active"),I(0),L(!1)},en=async(V,{sameSegment:oe=!1}={})=>{const ue=++x.current,_e=b.current,we=Ce.current?.[V]?.src;try{if(Ue(!1),P(V),L(!0),Ae.current=V,!we||!_e||(oe||ne(),_e.src=we,_e.load(),!oe&&await ce()===!1)||ue!==x.current||(await st(_e),ue!==x.current))return;q("playing"),Z("playMode")}catch{}},on=async()=>{const V=Ce.current,oe=Ae.current||0;if(!V||oe<=0){await Bt();return}await en(oe-1)},cn=async()=>{const V=Ce.current,oe=Ae.current||0;if(!V||oe>=V.length-1){Wt();return}await en(oe+1)},tn=()=>{if(Se.current)return;const V=200,oe=340;Ue(!0),We(),_t();try{I(1)}catch{}Oe(1);try{W("hold")}catch{}try{const ue=b.current,_e=gt&&!!ue?.src;if(!gt||_e){if(ue){ue.pause();try{ue.currentTime=0}catch{}}}else ot();$e()}catch{}try{q("stopped")}catch{}if(L(!1),!je.current)try{ye.current&&(clearTimeout(ye.current),ye.current=null),ye.current=setTimeout(()=>{try{W("out")}catch{}ye.current=setTimeout(()=>{try{typeof ke.current=="function"&&ke.current(!0)}catch{}try{W("idle")}catch{}ye.current=null},oe)},V)}catch{}};o.useEffect(()=>{Ye.current=tn});const Bn=o.useCallback(()=>pe(""),[]),Xt=async V=>{(Ce.current||[])[V]&&await en(V,{sameSegment:V===Ae.current})},yt=j==="playing",un=o.useMemo(()=>{if(!$||$.length<=1)return $;const V=$[F];return V?[V]:$},[$,F]),Jt=s===!0;o.useEffect(()=>{try{const V=b.current;V&&typeof V.playbackRate=="number"&&(V.playbackRate=ee||1)}catch{}},[ee]);const Tt=o.useRef({raf:null,timer:null});o.useEffect(()=>{const V=b.current;if(!V)return;const oe=Math.max(0,Math.min(1,ie)),ue=Tt.current,_e=()=>{ue.raf!==null&&(cancelAnimationFrame(ue.raf),ue.raf=null),ue.timer!==null&&(clearTimeout(ue.timer),ue.timer=null)};_e();const we=Ia(V);if(V.paused||Math.abs(we-oe)<.001||typeof requestAnimationFrame!="function"){try{Dn(V,oe)}catch{}return}const Le=performance.now(),at=()=>{const vt=Math.min(1,(performance.now()-Le)/150);try{Dn(V,we+(oe-we)*vt)}catch{}ue.raf=vt<1?requestAnimationFrame(at):null};return ue.raf=requestAnimationFrame(at),ue.timer=setTimeout(()=>{_e();try{Dn(V,oe)}catch{}},200),_e},[ie]);const dn=se==="hold",Qt=se==="out",pn=G==="playMode"&&!A&&!me||dn||Qt,Ee=j!=="stopped"||dn||Qt,Fe=j==="paused",te=Math.max(0,Math.min(100,(M||0)*100)),fe=De("audio-player__fill",pn?"is-visible":"",Ee?"is-expanded":"",Fe?"is-paused":"",Qt?"is-out":"");return n.jsxs("div",{className:`audio-player ${Jt?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[n.jsxs("div",{className:`audio-player__panel ${yt?"is-playing":""} ${A?"is-loading":""} ${G!=="default"?"is-revealed":""}`,children:[A?n.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[n.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),n.jsx("span",{className:"audio-player__loading-text",children:u(`training.audioStatus.${O}`,{defaultValue:L5[O]})})]}):null,G==="active"?n.jsx("button",{className:"audio-player__button",type:"button",disabled:Jt,onClick:()=>{Y.current=Ja(),N(),An()},"aria-label":typeof p=="string"?p:u("training.listen","\uB4E3\uAE30"),onMouseEnter:B,onMouseLeave:N,onFocus:B,onBlur:N,children:n.jsx("span",{ref:k,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:y,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.jsx(bn,{anchorRect:_,text:typeof p=="string"&&p?p:u("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),n.jsxs("div",{className:`audio-player__play ${G==="playMode"||yt?"is-visible":""}`,inert:!(G==="playMode"||yt)||void 0,children:[n.jsxs("div",{ref:C,className:"audio-player__buttons",children:[n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:on,ariaLabel:u("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:G!=="playMode"}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:yt?"pause":"play",onClick:An,ariaLabel:u("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":yt,width:"60px",variant:"transparent-white",disabled:G!=="playMode"}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Wt,ariaLabel:u("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:G!=="playMode"}),Je>1?n.jsx("div",{ref:f,className:"audio-player__source-buttons",children:Array.from({length:Je}).map((V,oe)=>n.jsx(le,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(oe+1),onClick:()=>{try{Xt(oe)}catch{}},ariaLabel:u("training.sourcePlay",{n:oe+1}),variant:"transparent-white",selected:R&&F===oe,disabled:G!=="playMode"||!(Array.isArray(z)&&z[oe]),showTooltipInfo:!0},oe))}):null,!Array.isArray(z)||z.length<=1?n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Bt,ariaLabel:u("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:G!=="playMode"}):null,n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:cn,ariaLabel:u("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:G!=="playMode"}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:tn,ariaLabel:u("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:G!=="playMode"})]}),n.jsxs("div",{className:"audio-player__slider",children:[n.jsx("div",{className:fe,ref:v,style:{left:`${te}%`},"aria-hidden":"true"}),(c||d)&&n.jsx(M5,{segments:un,progress:M,totalDuration:K,waveProgressRef:he,showSoundWaveForm:c,noiseSrc:d&&m?.settings.enabled&&Be>0?Ze:null,noiseRatio:m?ja(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:ae,onReadyChange:Pe})]})]}),n.jsx("audio",{ref:b,crossOrigin:"anonymous",preload:"auto"})]}),!c&&n.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[n.jsx(Ke,{icon:"triangle-alert",size:14}),u("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),n.jsx(ea,{message:re,position:ve,onClose:Bn})]})}function or(e){const{t}=ge.useTranslation(),{text:a,label:r,anchorRect:s=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[d,u]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",d)}catch{}},[d]);const{increase:p,decrease:m,canIncrease:h,canDecrease:b,fontSize:v,lineHeight:C}=Qi({storageKey:"tooltip-fontScale"}),w=o.useCallback(()=>u(k=>k==="dark"?"light":"dark"),[]),f=o.useCallback(k=>{try{k.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),g=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],x={fontSize:`${v}px`,lineHeight:`${C}px`,"--tt-line-height":`${C}px`,"--tt-marker-size":"28px"},y=n.jsxs("div",{className:`tooltip-textbox__root ${d==="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:x,children:g.map((k,_)=>n.jsxs("div",{className:"tooltip-textbox__line",children:[g.length>1?n.jsx("div",{className:"tooltip-textbox__marker",children:n.jsx("span",{className:"tooltip-textbox__line-number button-1",children:_+1})}):null,n.jsx("span",{className:"tooltip-textbox__line-text",children:k})]},_))})]}),n.jsxs("div",{className:"tooltip-textbox__buttons",children:[n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:m,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!b}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:p,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!h}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:d==="dark"?"moon":"sun-medium",onClick:w,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:d==="dark"?"transparent-white":"transparent-gray"}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:f,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:d==="dark"?"transparent-white":"transparent-gray"})]})]});return s?n.jsx(an,{anchorRect:s,className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:y}):n.jsx("div",{className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,children:y})}function Gc({state:e="disabled"}){const{t}=ge.useTranslation();return n.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[n.jsx("div",{className:"bullet__dot",children:n.jsx(Ke,{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 Kc(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 c=()=>{i=null;const d=r.current(),u=d?Array.from(d.querySelectorAll(gn)).find(p=>!p.closest('[aria-hidden="true"]')):void 0;if(u){try{u.focus()}catch{}if(document.activeElement===u)return}--l>0&&(i=requestAnimationFrame(c))};return i=requestAnimationFrame(c),()=>{i!==null&&cancelAnimationFrame(i);const d=document.activeElement;if(!d||d===document.body||!document.contains(d)||d.closest(".tooltip-content")){const u=s.current();if(u)try{u.focus()}catch{}}}},[e])}function Yc({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:c,usePlayAllBtn:d=!1,onPlayAll:u,playAllActive:p=!1}){const{t:m}=ge.useTranslation(),h=Yt("(max-width: 767px)"),b=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),v=`training-step__title-row training-step__title-row--${r}`.trim(),C=o.useRef(null),[w,f]=o.useState(!1),[g,x]=o.useState(null),[y,k]=o.useState(null);Kc(w&&!!g,()=>{if(typeof document>"u")return null;const S=Array.from(document.querySelectorAll(".tooltip-content"));for(let O=S.length-1;O>=0;O--)if(S[O].querySelector(".tooltip-textbox__root"))return S[O];return null},()=>C.current?.querySelector("button")??null);const _=o.useRef(i);o.useEffect(()=>{_.current=i});const B=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]),N=o.useCallback(()=>{f(!1),x(null),k(null)},[]);o.useEffect(()=>{if(!w)return;let S;try{typeof _.current=="function"&&(S=_.current())}catch{}if(S===!1){N();return}k(typeof S<"u"&&S!==null?S:null)},[B]);const A=o.useCallback(()=>{let S;try{typeof i=="function"&&(S=i())}catch{}if(S!==!1){if(k(typeof S<"u"&&S!==null?S:l),!C.current){f(O=>!O);return}if(w)f(!1),x(null),k(null);else{const O=C.current.getBoundingClientRect();x(O),f(!0)}}},[i,l,w]);return n.jsxs("div",{className:v,children:[n.jsx("p",{className:b,children:n.jsx("span",{className:"training-step__title-text",children:e??t})}),s||d?n.jsxs("div",{className:"title-controls",children:[n.jsxs("div",{className:"title-buttons",children:[d&&n.jsx(le,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:u,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),s&&n.jsx("div",{ref:C,children:n.jsx(le,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:A,className:w?"is-selected":void 0,"aria-expanded":w,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),w&&n.jsx(or,{text:y??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:g,onClose:N,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Ro(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Vn({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:s={},children:i,className:l="",onDone:c=void 0,useTitleFaded:d=void 0}){const{t:u}=ge.useTranslation(),[p,m]=o.useState(()=>Ro(e,t));o.useEffect(()=>{const k=Ro(e,t);if(k!==p){const _=setTimeout(()=>m(k),0);return()=>clearTimeout(_)}},[e,t,p]);const h=o.useCallback((...k)=>{Ro(e,t)==="done"||p==="done"||typeof c=="function"&&c(...k)},[e,t,p,c]),[b,v]=o.useState(!1),[C,w]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),f=o.useCallback(k=>{if(!k)return null;try{const _=k;if(typeof k=="object"&&(_.currentTarget||_.target)&&(_.nativeEvent||_.type)){const A=_.currentTarget??_.target;if(A&&typeof A.getBoundingClientRect=="function")return A.getBoundingClientRect()}if(k instanceof DOMRect)return k;const B=k;if(B&&typeof B.getBoundingClientRect=="function")return B.getBoundingClientRect();const N=k?.current;return N&&typeof N.getBoundingClientRect=="function"?N.getBoundingClientRect():null}catch{return null}},[]),g=o.useCallback((k,{text:_="",label:B="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:N=!1,alignX:A="center",alignY:S="top"}={})=>{const O=f(k);w({text:_,label:B,anchorRect:O,backdrop:N,alignX:A,alignY:S}),v(!0)},[f]),x=o.useCallback(()=>{v(!1),w(k=>({...k,anchorRect:null}))},[]),y=o.Children.map(i,k=>{if(o.isValidElement(k)){const _=k;if(typeof _.type=="string")return _;const B=_.props??{},N=typeof B.onDone=="function"?B.onDone:h,A=typeof B.disabled=="boolean";let S=p==="disabled";return A&&(S=!!B.disabled),o.cloneElement(_,{onDone:N,disabled:S,showTooltip:g,hideTooltip:x})}return k});return n.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[n.jsx(Gc,{state:p}),n.jsxs("div",{className:"training-step__content",children:[n.jsx(Yc,{state:p,title:r,...s,useFaded:d}),y]}),b?n.jsx(an,{anchorRect:C.anchorRect,backdrop:C.backdrop,onClose:x,ariaLabel:u("tooltip.textbox","\uBCF8\uBB38"),children:n.jsx(or,{text:C.text,onClose:x})}):null]})}function Zc({context:e,state:t="disabled",theme:a="light"}){const{t:r}=ge.useTranslation(),[s,i]=o.useState("disabled"),[l,c]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const d=()=>c(j=>j==="dark"?"light":"dark"),{increase:u,decrease:p,canIncrease:m,canDecrease:h,fontSize:b,lineHeight:v}=Qi({storageKey:"textbox_fontScale"}),[C,w]=o.useState(""),f=o.useRef(null),g=o.useRef(!1),x=o.useCallback(()=>{g.current=Ja()&&!!f.current&&f.current.contains(document.activeElement),i("active")},[]),y=o.useCallback(()=>w(""),[]),k=j=>{try{w(j)}catch{}},_=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(t!=="disabled"){const j=setTimeout(()=>i(t),0);return()=>clearTimeout(j)}},[t]);const B=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[N,A]=o.useState(B);N!==B&&(A(B),i("disabled"));const S=t==="disabled"?s:t,O=S==="disabled"?"training-text-box--disabled":S==="active"?"training-text-box--active":S==="done"?"training-text-box--done":"",H=o.useMemo(()=>({fontSize:`${b}px`,lineHeight:`${v}px`}),[b,v]);return o.useEffect(()=>{if(S==="disabled"||!g.current)return;g.current=!1;const j=document.activeElement;j&&j!==document.body||f.current?.querySelector(".training-text-box__buttons button")?.focus()},[S]),n.jsxs("div",{ref:f,className:`training-text-box ${O} ${S!=="disabled"&&l==="dark"?"is-dark":""}`,children:[S==="disabled"&&n.jsx("div",{className:"training-text-box__preview",children:n.jsx(le,{htmlType:"button",size:48,type:"bar",onClick:x,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:B})}),S!=="disabled"&&n.jsxs("div",{className:"training-text-box__buttons","aria-hidden":S==="disabled",children:[n.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:p,onDisabledClick:()=>k(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:!h,useBorder:!1,showTooltipInfo:!0,...!_&&{width:"60px"}}),n.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:u,onDisabledClick:()=>k(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:!m,useBorder:!1,showTooltipInfo:!0,...!_&&{width:"60px"}}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:d,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),n.jsx(ea,{message:C,position:"top",onClose:y})]})}function Po({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:s,onDone:i,onChange:l,answer:c,wrongAnswers:d,choices:u,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:h=!1,choiceIcons:b,shuffleChoices:v=!0}){const{t:C}=ge.useTranslation(),w=r??C("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),f=typeof e=="number"?e:-1,g=typeof t!="number"?"disabled":f<t?"done":f===t?"active":"disabled",x=Array.isArray(u)&&u.length?u:typeof c<"u"?[c].concat(Array.isArray(d)?d:[]):void 0,y=d?d.join("||"):"",k=u?u.join("||"):"",[_,B]=o.useState(()=>Array.isArray(x)?v?fa(x):x.slice():void 0);o.useEffect(()=>{Array.isArray(x)&&x.length?B(v?fa(x):x.slice()):B(void 0)},[c,y,k,v]);const[N,A]=o.useState(null),[S,O]=o.useState(()=>new Set);o.useEffect(()=>{A(null),O(new Set)},[k,c,y]);const H=o.useRef(void 0);o.useEffect(()=>{const E=H.current;typeof E=="number"&&typeof t=="number"&&typeof e=="number"&&E>=e&&t<e&&(A(null),O(new Set)),H.current=t},[t,e]);const j=o.useCallback(E=>{if(g!=="active")return;const M=_?.[E];if(M==null)return;const I=M,G=g==="active"||g==="done";if(p){const Z=new Set(S),Y=Z.has(I);Y?Z.delete(I):Z.add(I),O(Z),typeof l=="function"&&l({selectedValues:[...Z],__ts:Date.now()}),G&&(typeof m=="number"&&m>0?Z.size>=m:!Y)&&typeof i=="function"&&g==="active"&&i({selectedValues:[...Z],__ts:Date.now()})}else A(I),typeof l=="function"&&l({selectedIndex:E,selectedValue:I,__ts:Date.now()}),G&&typeof i=="function"&&g==="active"&&i({selectedIndex:E,selectedValue:I,__ts:Date.now()})},[_,g,p,l,i,m,S]),q=`training-step__buttons${Array.isArray(_)&&_.length>3?" training-step__buttons--wrap-3":""}`;return n.jsx(Vn,{index:e,stepIndex:t,isLast:a,title:w,useTitleFaded:s,children:n.jsx("div",{className:q,children:Array.isArray(_)&&_.length>0?_.map((E,M)=>n.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:()=>j(M),ariaLabel:String(E),label:E,useLabel:!0,icon:b?b[String(E)]:void 0,variant:"default",disabled:g==="disabled",selected:p?S.has(E):N===E,useDisabledCovered:h,minWidth:0},String(E))):null})})}function Io({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l,demoSelected:c}){const{t:d}=ge.useTranslation(),u=r??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,m=typeof t!="number"?"disabled":p<t?"done":p===t?"active":"disabled",h=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",b=l&&typeof l=="object"?l.choices:void 0,[v,C]=o.useState(c??null),w=`${String(h)}\0${JSON.stringify(b??null)}`,[f,g]=o.useState(w);f!==w&&(g(w),c==null&&C(null));const[x,y]=o.useState(c);Object.is(x,c)||(y(c),C(c??null));const k=o.useRef(void 0);o.useEffect(()=>{const A=k.current;typeof A=="number"&&typeof t=="number"&&typeof e=="number"&&A>=e&&t<e&&c==null&&C(null),k.current=t},[t,e,c]);const _=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),m==="active"&&typeof s=="function"&&s(S)},[i,m,s]),B=o.useCallback(()=>{m==="active"&&(C(!1),_(!1))},[_,m]),N=o.useCallback(()=>{m==="active"&&(C(!0),_(!0))},[_,m]);return n.jsxs(Vn,{index:e,stepIndex:t,isLast:a,title:u,onDone:s,useTitleFaded:!1,children:[n.jsx(Zc,{context:l,state:m}),n.jsx("div",{className:"training-step__buttons",children:Array.isArray(b)&&b.length>0?b.slice(0,6).map((A,S)=>n.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(C(S),_&&_(S))},disabled:m==="disabled",ariaLabel:String(A),label:A,variant:m,selected:v===S},S)):n.jsxs(n.Fragment,{children:[n.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:B,disabled:m==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:v===!1}),n.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:N,disabled:m==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:v===!0})]})})]})}function Fo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,btnLabel:i,soundSrc:l,bucketPath:c,usePreviewTextBtn:d,previewText:u=null,onPreviewTextBtn:p,disabled:m,_pageIndex:h,showSoundWaveForm:b,showNoiseWaveForm:v}){const{t:C}=ge.useTranslation(),w=r??C("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),f=m??(typeof t=="number"&&typeof e=="number"?e>t:!1);return n.jsx(Vn,{index:e,stepIndex:t,isLast:a,title:w,onDone:s,titleProps:{usePreviewTextBtn:d,previewText:u,onPreviewTextBtn:p},children:n.jsx($o,{soundSrc:l,ttsText:l?null:u??w,bucketPath:c,btnLabel:i||C("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:f,className:"training-step__listen-sticky",showSoundWaveForm:b,showNoiseWaveForm:v},`audio-p${h??0}-s${e}`)})}const G5=[];function Oo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=G5}){const{t:c}=ge.useTranslation(),d=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),u=$=>typeof $=="string"?$:$&&($.context||$.sentence||$.question||"")||"",[p,m]=o.useState(Array.isArray(l)?l:[]),[h,b]=o.useState(()=>(p||[]).map(($,D)=>({id:D,text:u($)}))),v=o.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]),C=v!=="disabled",w=o.useRef(void 0);o.useEffect(()=>{if(w.current===l)return;w.current=l;const $=Array.isArray(l)?l:[];m($);const D=(F=>{const P=(F||[]).map((U,ee)=>({id:ee,text:u(U)}));if(P.length<=1)return P;const R=(U,ee)=>{if(U.length!==ee.length)return!1;for(let ae=0;ae<U.length;ae++)if(U[ae].text!==ee[ae].text)return!1;return!0};let L=fa(P),K=0;for(;R(L,P)&&K<20;)L=fa(P),K+=1;return L})($);b(D);try{if(typeof i=="function"){const F=D.filter((P,R)=>P.text===u($[R])).length;i({shuffled:D,score:F,total:($||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&v==="active"){const F=D.filter((P,R)=>P.text===u($[R])).length;s({shuffled:D,score:F,total:($||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const f=($,D)=>{const F=[...h],P=$+D;if(P<0||P>=F.length)return;const R=F[P];F[P]=F[$],F[$]=R,M(F);try{if(typeof s=="function"&&v==="active"){const L=F.filter((K,U)=>K.text===u(p[U])).length;s({shuffled:F,score:L,total:(p||[]).length,__ts:Date.now()})}}catch{}},[g,x]=o.useState(null),y=o.useRef(null),k=o.useRef(null),_=o.useRef(null),B=o.useRef(null),N=o.useRef(null),A=o.useRef({x:0,y:0}),S=o.useRef(null),O=o.useRef({dx:0,dy:0}),H=()=>{if(S.current!==null)return;const $=()=>{if(!y.current){S.current=null;return}S.current=requestAnimationFrame($);const D=A.current,F=O.current||{dx:0,dy:0};y.current&&(y.current.style.transform=`translate3d(${D.x-F.dx}px, ${D.y-F.dy}px, 0)`)};S.current=requestAnimationFrame($)},j=o.useRef(new Map),q=o.useRef(new Map),E=()=>{const $=new Map;return j.current.forEach((D,F)=>{D&&D.getBoundingClientRect&&$.set(F,D.getBoundingClientRect())}),$},M=$=>{const D=E();b($);try{if(typeof i=="function"){const F=$.filter((P,R)=>P.text===u(p[R])).length;i({shuffled:$,score:F,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const F=E();$.forEach(P=>{const R=D.get(P.id),L=F.get(P.id),K=j.current.get(P.id);if(!K||!R||!L)return;const U=R.top-L.top;U&&(K.style.transition="none",K.style.transform=`translateY(${U}px)`,requestAnimationFrame(()=>{K.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",K.style.transform="";const ee=()=>{K.style.transition="",K.removeEventListener("transitionend",ee)};K.addEventListener("transitionend",ee)}))})})},I=($,D)=>{try{try{D.dataTransfer?.setData("text/plain",String($))}catch{}try{D.dataTransfer&&(D.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),D.dataTransfer?.setDragImage(F,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(F)}catch{}})}catch{}}catch{}x($);try{const F=h[$],P=document.createElement("div");P.className="order-list__dragging-object order-list__dragging-object--visible",P.textContent=F&&F.text?F.text:"",document.body.appendChild(P),y.current=P;const R=j.current.get(F.id);let L=D.clientX||0,K=D.clientY||0;try{if(R&&R.getBoundingClientRect){const se=R.getBoundingClientRect();L=se.left+se.width/2,K=se.top+se.height/2}}catch{}const U=P.getBoundingClientRect(),ee=U.width/2,ae=U.height/2;O.current={dx:ee,dy:ae},P.style.transition="none",A.current={x:L,y:K},P.style.transform=`translate3d(${L-ee}px, ${K-ae}px, 0)`,requestAnimationFrame(()=>{try{P.style.transition=""}catch{}H()});const Be=se=>{const W=se;A.current={x:W.clientX,y:W.clientY},H()};_.current=Be,document.addEventListener("mousemove",Be);const ie=se=>{const W=se;A.current={x:W.clientX,y:W.clientY},H()};k.current=ie,document.addEventListener("dragover",ie);try{D.dataTransfer?.setData("text/plain",String($));try{D.dataTransfer?.setData("application/json",JSON.stringify({idx:$}))}catch{}}catch{}}catch{}},G=($,D)=>{D.preventDefault();try{D.dataTransfer&&(D.dataTransfer.dropEffect="move")}catch{}try{N.current!==null&&(clearTimeout(N.current),N.current=null);const F=D.currentTarget&&D.currentTarget.closest?D.currentTarget.closest(".order-list__item"):null;if(F&&B.current!==F){if(B.current)try{B.current.classList.remove("drag-over")}catch{}try{F.classList.add("drag-over")}catch{}B.current=F}}catch{}},Z=($,D)=>{D.preventDefault();const F=D.dataTransfer?.getData("text/plain")||"",P=F?parseInt(F,10):g,R=$;if(typeof P!="number"||isNaN(P)||P===R){x(null),J(),Y();return}const L=_2(h,P,R);M(L),x(null),Y();try{if(typeof s=="function"&&v==="active"){const K=L.filter((U,ee)=>U.text===u(p[ee])).length;s({shuffled:L,score:K,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const K=document.querySelectorAll(".order-list .order-list__item")[R];if(!K)return;const U=K.querySelector(".order-list__slot")||K;try{U.classList.add("pulse"),U.offsetHeight,U.classList.add("to-dark");const ee=()=>{U.classList.remove("pulse","to-dark"),U.removeEventListener("transitionend",ee)};U.addEventListener("transitionend",ee)}catch{}})}catch{}J()},Y=()=>{if(y.current){try{document.body.removeChild(y.current)}catch{}y.current=null}k.current&&(document.removeEventListener("dragover",k.current),k.current=null),_.current&&(document.removeEventListener("mousemove",_.current),_.current=null),S.current!==null&&(cancelAnimationFrame(S.current),S.current=null)},z=()=>{x(null),J(),Y()};o.useEffect(()=>()=>Y(),[]);const J=()=>{try{if(N.current!==null&&(clearTimeout(N.current),N.current=null),B.current){try{B.current.classList.remove("drag-over")}catch{}B.current=null}document.querySelectorAll(".order-list .order-list__item").forEach($=>$.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const $=Math.max(1,(h||[]).length);h.forEach((D,F)=>{const P=q.current.get(D.id);if(!P)return;let R=50;$>1&&(R=Math.round(F/($-1)*100));try{P.style.setProperty("--marker-pos",R+"%")}catch{}})}catch{}},[h]),o.useEffect(()=>()=>{Y(),N.current!==null&&(clearTimeout(N.current),N.current=null)},[]),n.jsx(Vn,{index:e,stepIndex:t,isLast:a,title:d,children:n.jsx("div",{className:"order-list",children:h.map(($,D)=>{const F=Math.max(1,(h||[]).length),P=F>1?Math.round(D/(F-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":P+"%"},ref:R=>{const L=q.current;R?L.set($.id,R):L.delete($.id)},children:n.jsx("span",{className:"order-list__slot-number button-1",children:D+1})}):null,n.jsxs("div",{ref:R=>{const L=j.current;R?L.set($.id,R):L.delete($.id)},className:`order-list__draggable ${g===D?"dragging":""}`,"data-disabled":v==="disabled","aria-disabled":v==="disabled",tabIndex:v==="disabled"?-1:0,draggable:C,onDragStart:C?R=>I(D,R):void 0,onDragEnter:C?R=>G(D,R):void 0,onDragOver:C?R=>G(D,R):void 0,onDragLeave:C?()=>{try{N.current!==null&&clearTimeout(N.current),N.current=setTimeout(()=>{try{const R=document.querySelectorAll(".order-list .order-list__item");R&&R[D]&&(R[D].classList.remove("drag-over"),B.current===R[D]&&(B.current=null))}catch{}},80)}catch{}}:void 0,onDrop:C?R=>Z(D,R):void 0,onDragEnd:C?z:void 0,children:[n.jsx("span",{className:"order-list__item-text body-2",children:$.text}),C?n.jsxs("span",{className:"order-list__item-buttons",children:[n.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:()=>f(D,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:D===0,useBorder:!1,useDisabledInvisible:!0}),n.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:()=>f(D,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:D===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},$.id)})})})}const K5=8e3;function Y5(e,t){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,t)})}function Xc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=[],selectable:c=!1,hideLabel:d=!1,hideAudio:u=!1,maxCards:p}){const{t:m}=ge.useTranslation(),h=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),b=o.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),v=p??3,C=(b||[]).slice(0,v);(b||[]).length>v&&console.warn(`TrainingStepCard: ${b.length} items passed but only ${v} shown`);const w=typeof e=="number"?e:-1,f=typeof t!="number"?"disabled":w<t?"done":w===t?"active":"disabled",[g,x]=o.useState(null),y=o.useRef([]),[k,_]=o.useState(!1),B=o.useRef(null),N=o.useRef(!0);o.useEffect(()=>(N.current=!0,()=>{N.current=!1}),[]);const A=o.useMemo(()=>b.map(q=>q?.id??q?.word??"").join("|"),[b]);o.useEffect(()=>{x(null)},[A]);const S=o.useRef(void 0);o.useEffect(()=>{const q=S.current;typeof q=="number"&&typeof t=="number"&&typeof e=="number"&&q>=e&&t<e&&x(null),S.current=t},[t,e]);const O=o.useCallback((q,E)=>{if(c)return;const M={item:q,index:E,__ts:Date.now()};try{typeof i=="function"&&i(M)}catch{}if(f==="active"&&typeof s=="function")try{s(M)}catch{}},[c,i,f,s]),H=o.useCallback(async()=>{if(k||f==="disabled")return;_(!0);let q=!1;const E=new Promise(M=>{B.current=()=>{q=!0,M()}});try{for(let M=0;M<C.length&&!(!N.current||q);M++){const I=y.current[M];I&&await Promise.race([Y5(I.play(),K5),E])}}finally{B.current=null,_(!1)}},[k,f,C.length]),j=o.useCallback((q,E)=>{if(f!=="active")return;x(E);const M={selectedValue:q.word||q.title||"",selectedIndex:E,item:q,__ts:Date.now()};try{typeof i=="function"&&i(M)}catch{}if(f==="active"&&typeof s=="function")try{s(M)}catch{}},[i,f,s]);return n.jsx(Vn,{index:e,stepIndex:t,isLast:a,title:h,onDone:s,titleProps:{usePlayAllBtn:!u&&C.length>0,onPlayAll:H,playAllActive:k},children:n.jsx("div",{className:"training-step__cards",onClickCapture:q=>{const E=B.current;if(!E)return;const M=q.target;M&&typeof M.closest=="function"&&M.closest(".training-word-card__bottom")&&E()},children:C.length===0?n.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):C.map((q,E)=>n.jsx(vo,{ref:M=>{y.current[E]=M},item:q,disabled:f==="disabled",onPlayDone:()=>O(q,E),selectable:c,selected:c&&g===E,onSelect:c?()=>j(q,E):void 0,flipDelay:E*120,hideLabel:d,hideAudio:u},q&&q.id||E))})})}const Z5=160,X5={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function J5(e,t){const a=X5[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}const Jc=()=>{};function Tn(e){const t=o.useId();if(!("variant"in e)){const{label:f,sub:g,onClick:x,children:y,align:k="horizontal",icon:_,useFullWidth:B=!1}=e,N=A=>{x&&A.target===A.currentTarget&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),x())};return n.jsxs("div",{className:De("panel-row",k==="vertical"?"panel-row--vertical":"",B?"panel-row--label-fixed panel-row--fill":"",x?"panel-row--clickable":""),onClick:x,onKeyDown:x?N:void 0,role:x?"button":void 0,tabIndex:x?0:void 0,children:[_!=null&&n.jsx("div",{className:"panel-row__icon",children:_}),f!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:f}),g&&n.jsx("div",{className:"panel-row__sub caption-1",children:g})]}),n.jsx("div",{className:"panel-row__right",children:y})]})}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(Sa,{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:c,align:d="horizontal",useFullWidth:u=!1,icon:p}=e,m=a==="button"?void 0:i;let h=null;const b=a==="toggle"?`panel-toggle-${t}`:void 0,v=c?`panel-error-${t}`:void 0;if(a==="toggle"){const f=e;h=n.jsx(Fl,{checked:f.checked,onChange:f.onChange,id:b})}else if(a==="segmented"){const f=e;h=n.jsx(_n,{options:f.options,value:f.value,onChange:f.onChange,size:f.size??40,ariaLabel:r})}else if(a==="dropdown"){const f=e,g=f.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${u?" panel-row__dropdown-group--full":""}`,children:f.dropdowns.map((x,y)=>n.jsx("div",{className:u?"panel-row__dropdown-item--full":void 0,children:n.jsx(rn,{options:x.options,value:x.value,onChange:x.onChange,placeholder:x.placeholder,block:u,error:!!c,ariaDescribedBy:v,ariaLabel:x.ariaLabel??([r,x.placeholder].filter(Boolean).join(" ")||void 0)})},y))}):n.jsx(rn,{options:f.options??[],value:f.value??"",onChange:f.onChange??Jc,block:u,error:!!c,ariaLabel:r,ariaDescribedBy:v});h=c?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${u?" panel-row__dropdown-error-wrap--full":""}`,children:[g,n.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:c})]}):g}else if(a==="button"){const f=e;f.buttons?.length?h=n.jsx("div",{className:"panel-row__button-group",children:f.buttons.map((g,x)=>n.jsx(le,{htmlType:"button",size:g.btnSize??40,variant:g.btnVariant??"default",disabled:g.disabled,onClick:g.onClick,children:g.label},x))}):h=n.jsx(le,{htmlType:"button",size:f.btnSize??40,variant:f.btnVariant??"default",disabled:f.disabled,onClick:f.onClick,children:f.buttonLabel})}else if(a==="text"){const f=e;h=n.jsx("span",{className:`panel-row__text body-2${u?" panel-row__text--full":""}`,style:f.valueColor?{color:f.valueColor}:void 0,children:f.value})}else if(a==="input"){const f=e;h=n.jsxs("div",{className:`panel-row__input-wrap${u?" panel-row__input-wrap--full":""}`,children:[n.jsx(zn,{value:f.value,onChange:f.onChange??Jc,onKeyDown:f.onKeyDown,onEnter:f.onEnter,placeholder:f.placeholder,inputMode:f.inputMode,readOnly:f.readOnly,disabled:f.disabled,type:f.type,autoComplete:f.autoComplete,maxLength:f.maxLength,showCount:f.showCount,multiline:f.multiline,rows:f.rows,fullWidth:u,error:c,ariaLabel:r,required:l}),f.helperText&&n.jsx("div",{className:"panel-row__helper caption-1",children:f.helperText})]})}else a==="custom"&&(h=e.children);c&&a!=="input"&&a!=="dropdown"&&(h=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${u?" panel-row__dropdown-error-wrap--full":""}`,children:[h,n.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:c})]}));const C=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&u,w=f=>{m&&f.target===f.currentTarget&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),m())};return n.jsxs("div",{className:De("panel-row",d==="vertical"?"panel-row--vertical":"",C?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",m?"panel-row--clickable":""),onClick:m,onKeyDown:m?w:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,children:[p!=null&&n.jsx("div",{className:"panel-row__icon",children:p}),n.jsxs("div",{className:"panel-row__left",children:[b?n.jsxs("label",{htmlFor:b,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:h})]})}function Qc(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function Q5({devices:e,onRelease:t,emptyLabel:a}){const{t:r}=ge.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(le,{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(ht,{size:"small",variant:ac(i.device),fill:"soft",label:J5(i.device,r)}),Qc(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:Qc(i)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),go(i.wornYear,i.wornMonth,i.wornDay)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:go(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 sr({title:e,icon:t,disc:a,actions:r,size:s="medium",minHeight:i,maxWidth:l,className:c,scrollable:d,scrollbarGutter:u="auto",compactRows:p=!1,useBorder:m=!0,useBg:h=!0,useRowBorder:b=!0,labelWidth:v,form:C=!1,loading:w,empty:f,children:g}){const x=De("panel",`panel--${s}`,C?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",h?"":"panel--no-bg",b?"":"panel--no-row-border",p?"panel--compact-rows":"",c),y={};return i!==void 0&&(y.minHeight=i),l!==void 0&&(y.maxWidth=typeof l=="number"?`${l}px`:l),v!==void 0&&(y["--panel-label-width"]=typeof v=="number"?`${v}px`:v),n.jsxs("div",{className:x,style:Object.keys(y).length?y:void 0,children:[(e!=null||a!=null)&&n.jsxs("div",{className:De("panel__header",a!=null?"panel__header--with-disc":""),children:[t&&n.jsx(Ke,{icon:t,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[e!=null&&n.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&n.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&n.jsx("div",{className:"panel__actions",children:r})]}),w?n.jsx(Tn,{variant:"loading"}):f!=null&&o.Children.toArray(g).length===0?n.jsx(Tn,{variant:"empty",children:f}):d?n.jsx("div",{className:De("panel__body--scroll",u==="stable"&&"panel__body--gutter-stable"),children:g}):g]})}function e3({cols:e=2,children:t}){return n.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:t})}function t3(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 eu(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"}]}t3(St.t.bind(St)),eu(St.t.bind(St));const Ho="none",n3=.5,a3=1.5,r3=.25;function zo({title:e,valueLabel:t,value:a,min:r,max:s,step:i,tickStep:l,size:c,onChange:d}){return n.jsxs(Tn,{variant:"custom",label:e,useFullWidth:!0,children:[n.jsx(Jl,{value:a,onChange:d,min:r,max:s,step:i,size:c,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),n.jsx("div",{className:"noise-settings__value button-1",children:t})]})}function tu({anchorRect:e,onClose:t}){const{t:a}=ge.useTranslation(),r=Yt("(max-width: 767px)")?40:24,s=ar(),i=ja(s?.settings??Ma),l=s?.settings.type??"defaultNoise",c=s?.settings.enabled??!0,d=s?.playbackRate??1,u=s?.mainVolume??1,p=Math.round(u*100),m=o.useCallback(C=>{try{s?.setMainVolume(Math.max(0,Math.min(1,C/100)))}catch{}},[s]),h=o.useCallback(C=>{try{s?.setPlaybackRate(C)}catch{}},[s]),b=o.useCallback(C=>{const w=Math.min(Ea,Math.max(0,Math.round(C*10)/10));try{s?.setSettings({noiseRatio:w})}catch{}},[s]),v=o.useCallback(C=>{try{C===Ho?s?.setSettings({enabled:!1}):s?.setSettings({type:C,enabled:!0})}catch{}},[s]);return n.jsx(an,{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(le,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:t})]}),children:n.jsxs(sr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[n.jsx(zo,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),n.jsx(zo,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:n3,max:a3,step:r3,size:r,onChange:h}),n.jsx(Tn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:n.jsx(_n,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Ho,label:a("training.noise.type.none","\uC5C6\uC74C")},...eu(a).map(C=>({key:C.value,label:C.label}))],value:c?l:Ho,onChange:v})}),n.jsx(zo,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:Ea,step:Fc,size:r,onChange:b})]})})}function nu({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:s=0,stepCount:i=0,pageIndex:l=0,pageCount:c=1,resultOpen:d=!1}){const{t:u}=ge.useTranslation(),[p,m]=o.useState(!1),[h,b]=o.useState(null),[v,C]=o.useState(!1),w=o.useRef(null),f=o.useRef(null),g=ar(),x=c>0,y=x&&l<c-1,k=!x||l>=c-1,_=s===Math.max(0,i);o.useEffect(()=>{e||(m(!1),b(null))},[e]);const B=o.useCallback(()=>{m(!1),b(null)},[]),N=o.useCallback(()=>{if(p){m(!1),b(null);return}const I=w?.current?.getBoundingClientRect();I&&b(I),t?.(),m(!0)},[p,t]),A=o.useCallback(()=>{if(p){m(!1),b(null);return}const I=f?.current?.getBoundingClientRect();I&&b(I),t?.(),m(!0)},[p,t]),S=Yt("(max-width: 767px)"),O=o.useRef(null),[H,j]=o.useState(null),q=o.useCallback(()=>{C(I=>{const G=!I;return j(G?O.current?.getBoundingClientRect()??null:null),G})},[]),E=o.useCallback(()=>{C(!1),j(null)},[]);o.useEffect(()=>{d&&(C(!1),j(null))},[d]);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:u("training.meter.sentence","\uC7AC\uC0DD")}),n.jsx(ho,{analyser:g?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.sentence","\uC7AC\uC0DD")})]}),n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.noise","\uC18C\uC74C")}),n.jsx(ho,{analyser:g?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]});return Kc(e&&p,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[w.current,f.current].map(I=>I?.querySelector("button")??null).find(I=>!!I&&I.getClientRects().length>0)??w.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:w,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(le,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:N,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),n.jsx("div",{className:"pp-bottom__settings--mobile",children:n.jsx("div",{ref:f,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(le,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:A,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:u("training.settings","\uC124\uC815")})})})]}):null,e&&n.jsx("div",{ref:O,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:n.jsx(le,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:q,selected:v,"aria-expanded":S?v:void 0,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&v&&!S&&n.jsx("div",{className:"pp-bottom__meters",children:M})]}),e&&v&&S&&H&&n.jsx(an,{anchorRect:H,onClose:E,ariaLabel:u("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:[k&&n.jsx(le,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!_}),y&&n.jsx(le,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!_})]}),e&&p&&n.jsx(tu,{anchorRect:h,onClose:B})]})}function au({title:e,subtitle:t,desc:a,depth:r,icon:s,wrapperStyle:i,iconTooltip:l,pageIndex:c,pageCount:d,progressMax:u,progressIndex:p,onBack:m,onClose:h}){const{t:b}=ge.useTranslation(),v=Yt("(max-width: 767px)"),C=Number.isInteger(p)?p:c||0,w=Number.isInteger(u)?u:d||0,f=m||h,g=Array.isArray(r)?v?r[r.length-1]:r.join(" / "):r,x=typeof e=="string"?e.trim():e,y=typeof t=="string"?t.trim():t,k=!!(x||y),_=k?x||y:b("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),B=g||(x?t:void 0),N=v&&typeof B=="string"&&(B.includes(" \xB7 ")||B.includes(" / "))?B.split(/\s[·/]\s/).pop():B,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:[f?n.jsx(le,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:b("common.back","\uB4A4\uB85C"),onClick:f,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,n.jsx("div",{children:s?n.jsx(jl,{icon:s,label:e,tooltip:l,wrapperStyle:A}):null}),n.jsxs("div",{className:"pp-title__text",children:[N?n.jsx("span",{className:"pp-title__depth caption-1",children:N}):null,n.jsx("span",{className:`pp-title__title h2${k?"":" pp-title__title--empty"}`,children:_}),a?n.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),n.jsx(nc,{max:Math.max(0,w??0),index:Math.max(0,C??0)})]})}function o3(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function s3(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 ru=(e,t)=>{if(!t)return t;const a=typeof St?.t=="function"?St.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function ou(e,t,a){const r=e,s=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=di().find(c=>c.key===(r?.category_0||r?.category_main_code)),l=i?.subs?.find(c=>c.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?ru(`topic.${i.key}`,i.label):void 0,l?ru(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function Vo(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function i3(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function l3({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:i,buildResults:l,metaPatch:c}){const d=ou(t,a,r),u=typeof c=="function"?c(d)||{}:c||{},p=t?.id||t?.title||s.length;return{id:`${e}:${p}`,meta:{...d,...u},pages:s,emptyMessage:i,buildResults:l}}function c3(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function u3(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 d3(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 su(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function p3(e,t,a,r){return su(e,t*a+r)}function m3({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 h3(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 iu=o.createContext(null);function f3(){const e=o.useContext(iu);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function C3({index:e,stepIndex:t,isLast:a=!1,title:r,choices:s=[],onDone:i,onChange:l}){const{t:c}=ge.useTranslation(),d=typeof e=="number"?e:-1,u=typeof t!="number"?"disabled":d<t?"done":d===t?"active":"disabled",[p,m]=o.useState(()=>s.map(()=>null)),h=JSON.stringify(s),b=s.length;o.useEffect(()=>{m(Array.from({length:b},()=>null))},[h]);const v=o.useRef(void 0);o.useEffect(()=>{const g=v.current;typeof g=="number"&&typeof t=="number"&&typeof e=="number"&&g>=e&&t<e&&m(Array.from({length:b},()=>null)),v.current=t},[t,e,b]);const C=o.useMemo(()=>p.filter(g=>g!==null).length+1,[p]),w=o.useCallback(g=>{if(u!=="active")return;const x=p;let y;if(x[g]!=null){const _=x[g];y=x.map(B=>B!==null&&B>=_?null:B)}else y=[...x],y[g]=C;m(y);const k={selectedOrder:y,words:s,__ts:Date.now()};try{typeof l=="function"&&l(k)}catch{}if(x[g]==null&&y.length>0&&y.every(_=>_!==null))try{typeof i=="function"&&i(k)}catch{}},[u,p,C,l,i,s]),f=r??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return n.jsx(Vn,{index:e,stepIndex:t,isLast:a,title:f,onDone:i,children:n.jsx("div",{className:"training-step__cards",children:s.map((g,x)=>n.jsx(vo,{item:{word:g},disabled:u==="disabled",selectable:!0,selected:p[x]!==null,orderRank:p[x],onSelect:()=>w(x),flipDelay:x*120,hideLabel:!1,hideAudio:!0},`${g}-${x}`))})})}function ir(e){return null}ir.__isTrainingPage=!0;function ia(e,t){const a=f3();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 lu({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l}=ia(e,t);return n.jsx(Fo,{...a,index:r,stepIndex:s,isLast:i,onDone:l})}function cu({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(Po,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function uu({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(Io,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function du({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(Oo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function pu({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(Xc,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function g3({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(C3,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function Wo(...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 b3(e){return Wo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function mu(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=Wo(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 hu(e){const{score:t,contextsLength:a,results:r=[],subtitle:s,onReplay:i,onClose:l,inline:c=!1,pending:d=!1}=e||{},{t:u}=ge.useTranslation(),p=o.useId(),m=o.useCallback(()=>!d,[d]);o.useEffect(()=>{const g=a??0;if(t!=null&&g>0&&t/g>.5){const x=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(x)}},[t,a]);const h=o.useCallback(g=>{const x=mu(g),y=Wo(g?.wording,g?.label);return x===!0?{variant:"main",label:y??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:x===!1?{variant:"danger",label:y??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:y??u("training.result.notJudged","\uBBF8\uD310\uC815")}},[u]),b=a??0,v=t??0,C=o.useMemo(()=>Array.isArray(r)?r:[],[r]),w=o.useMemo(()=>C.map(g=>{const x=g??{},y=b3(x)||u("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:k,label:_}=h(x),B=Array.isArray(x.corrects)?x.corrects:[],N=B.length?B.join(", "):x.answer!=null&&x.answer!==""?String(x.answer):null,A=typeof x.selectedText=="string"?x.selectedText:null,S=mu(x)===!0;return{problem:y,variant:k,label:_,answer:N,selectedText:A,isCorrect:S}}),[C,h,u]),f=o.useMemo(()=>w.some(g=>g.answer!==null||g.selectedText!==null),[w]);return n.jsx(jn,{onClose:l,closeOnBackdrop:!1,inline:c,ariaLabel:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:m,footerClassName:"trp-result__foot",footer:({animateThen:g,closeWithAnimation:x})=>n.jsxs(n.Fragment,{children:[d&&n.jsx("p",{id:p,className:"trp-actions__reason caption-1",role:"status",children:u("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(le,{htmlType:"button",size:56,type:"bar",label:u("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>g(i)}),n.jsx(le,{htmlType:"button",size:56,type:"bar",label:u("training.result.done","\uC644\uB8CC"),variant:"main",onClick:x,disabled:d,onDisabledClick:d?()=>{}:void 0,"aria-describedby":d?p: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:u("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),n.jsx("h1",{className:"trp-result__title h2",children:u("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":u("training.result.scoreAria",{correct:v,total:b}),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:b})]})})]}),w.length>0&&n.jsx("section",{className:"trp-result__body",children:n.jsxs("div",{className:`result-table${f?" result-table--answer":""}`,role:"table","aria-label":u("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:u("common.col.problem","\uBB38\uC81C")}),f&&n.jsx("span",{role:"columnheader",children:u("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),n.jsx("span",{className:"col-right",role:"columnheader",children:u("training.result.colJudge","\uD310\uC815")})]}),w.map((g,x)=>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(x+1).padStart(2,"0")}),n.jsx("div",{className:"trp-row__q body-2",children:g.problem})]}),f&&n.jsxs("div",{className:"trp-row__answers",children:[g.answer!==null&&n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:u("training.result.colAnswer","\uC815\uB2F5")}),n.jsx("span",{className:"trp-row__answer-value body-2",children:g.answer})]}),n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${g.isCorrect?"is-correct":"is-wrong"}`,children:u("training.result.colSelected","\uC120\uD0DD")}),n.jsx("span",{className:`trp-row__answer-value body-2 ${g.isCorrect?"is-correct":"is-wrong"}`,children:g.selectedText??"\u2014"})]})]}),n.jsx("div",{className:"trp-row__judge",children:n.jsx(ht,{variant:g.variant,label:g.label,fill:"soft",minWidth:80})})]},x))]})})]})})}function y3(e){o.useEffect(()=>{if(!e)return;const t=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,s=0,i=0;const l=()=>{const p=Date.now();a==null&&(a=p),r==null&&(r=p)},c=()=>{r!=null&&(s+=Date.now()-r,r=null)};t()&&l();const d=()=>{if(c(),a==null||s-i<1e3||i===0&&s<5e3)return;const p=a+i;i=s,A2({trainingType:e,startedAt:new Date(p).toISOString(),endedAt:new Date(a+s).toISOString()})},u=()=>{t()?l():d()};return typeof document<"u"&&document.addEventListener("visibilitychange",u),typeof window<"u"&&window.addEventListener("pagehide",d),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",u),typeof window<"u"&&window.removeEventListener("pagehide",d),d()}},[e])}function qo(e,t){return e&&e.id||`page-${t??0}`}function Uo(e,t){return e&&e.key||`step-${t??0}`}function lr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function v3(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const x3=300,_3=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Mn=Object.freeze({}),fu=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function Cu(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 w3=e=>n.jsx(hu,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function k3(e){const{scenario:t,title:a,subTitle:r,depth:s,icon:i,wrapperStyle:l,iconTooltip:c,pageIndex:d,pageCount:u,stepIndex:p,stepCount:m,onBack:h,onComplete:b,onNext:v,onSettings:C,useNoiseSetting:w=!0,children:f,ariaLabel:g,label:x,buildResults:y,onResult:k,typeKey:_,entryPoint:B,dailyTotal:N,itemRef:A,renderResultPopup:S,noiseOverride:O}=e;y3(_&&!fu.has(_)?_:"");const H=o.useRef(0);o.useEffect(()=>{H.current=Date.now()},[]);const{t:j}=ge.useTranslation(),q=k,E=!!t,M=t?.id||null,I=t?.meta||{},G=Array.isArray(t?.pages)?t.pages:[],Z=Array.isArray(f)||o.isValidElement(f)&&typeof f!="function"?o.Children.toArray(f).filter(o.isValidElement):[],Y=Z.length>0,z=te=>te===ir||te?.__isTrainingPage===!0,J=Y&&Z.some(te=>z(te.type)),$=J?Z.filter(te=>z(te.type)).map((te,fe)=>{const V=te.props||{};return{id:`children-page-${fe}`,steps:o.Children.toArray(V.children).filter(o.isValidElement),pageTop:V.pageTop||V.top||null,pageBottom:V.pageBottom||V.bottom||null}}):[{id:"children-page-0",steps:Z}],D=Y&&!E&&typeof f!="function",F=D?Math.max(1,$.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 te=document.body;return te.dataset.ihabTrainingPopupCount=String(Number(te.dataset.ihabTrainingPopupCount||"0")+1),te.classList.add("ihab-training-popup-open"),()=>{const fe=Number(te.dataset.ihabTrainingPopupCount||"1")-1;fe>0?te.dataset.ihabTrainingPopupCount=String(fe):(delete te.dataset.ihabTrainingPopupCount,te.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return w4()},[]);const[P,R]=o.useState({...Ma,enabled:!1}),L=o.useRef(P);o.useEffect(()=>{L.current=P},[P]);const K=o.useRef(O),U=o.useRef(!1),ee=o.useRef(null);o.useEffect(()=>{let te=!1;const fe=V=>{if(te)return;U.current=!0;const oe=V?Ta({...Ma,enabled:!1},V):{...Ma},ue=ee.current;ee.current=null;const _e=ue?Ta(oe,ue):oe;L.current=_e,R(_e),ue&&!K.current&&oi(_e),Ha(_e);const we=K.current;if(we){const Le=typeof we=="function"?we(_e):we,at=Ta(_e,Le);L.current=at,R(at),Ha(at)}};return D2().then(fe),()=>{te=!0}},[]);const[ae,Be]=o.useState(null),[ie,se]=o.useState(null),W=o.useCallback((te,fe)=>{te==="main"?Be(fe):se(fe)},[]),re=o.useRef(null),pe=o.useRef(null),ve=o.useCallback(()=>{pe.current!==null&&(clearTimeout(pe.current),pe.current=null);const te=re.current;re.current=null,te&&oi(te)},[]);o.useEffect(()=>{if(typeof window>"u")return;const te=()=>{document.visibilityState==="hidden"&&ve()};return window.addEventListener("pagehide",ve),document.addEventListener("visibilitychange",te),()=>{window.removeEventListener("pagehide",ve),document.removeEventListener("visibilitychange",te),ve()}},[ve]);const Ce=o.useCallback(te=>{const fe=Ta(L.current,te);if(L.current=fe,R(fe),!U.current){ee.current={...ee.current??{},...te},Ha(fe);return}K.current||(re.current=fe,pe.current!==null&&clearTimeout(pe.current),pe.current=setTimeout(ve,x3)),Ha(fe)},[ve]),Ae=P.mainSpeed,he=P.mainVolume,be=o.useCallback(te=>Ce({mainSpeed:te}),[Ce]),Te=o.useCallback(te=>Ce({mainVolume:te}),[Ce]),Oe=o.useMemo(()=>({settings:P,setSettings:Ce,registerAnalyser:W,mainAnalyser:ae,noiseAnalyser:ie,playbackRate:Ae,setPlaybackRate:be,mainVolume:he,setMainVolume:Te}),[P,Ce,W,ae,ie,Ae,be,he,Te]),Pe=o.useRef(null),[ce,ne]=o.useState(0),Ne=o.useRef([]),[je,ke]=o.useState("center"),[ye,Se]=o.useState(!1),me=o.useRef(!1),Ge=o.useRef(null),Ue=o.useCallback(te=>{me.current||(me.current=!0,Se(!0),Ge.current=setTimeout(()=>{try{te()}catch{me.current=!1,Se(!1)}},_3()?0:Z5))},[]);o.useEffect(()=>()=>{Ge.current&&clearTimeout(Ge.current)},[]);const Ye=o.useRef(h);o.useEffect(()=>{Ye.current=h}),o.useEffect(()=>{const te=Pe.current,fe=document.activeElement;if(Fr(te,fe),te){const V=Array.from(te.querySelectorAll(gn)).filter(oe=>!oe.closest('[aria-hidden="true"]'))[0];if(V)try{V.focus()}catch{}}return()=>{const V=document.activeElement;if(!V||V===document.body||te&&te.contains(V))try{Or(fe)?.focus?.()}catch{}}},[]),o.useEffect(()=>In(()=>Ue(()=>{const te=Ye.current;typeof te=="function"&&te()})),[Ue]),Pr(Pe,!0);const[Ze,Xe]=o.useState(!1),ze=o.useRef(!1),[$e,Ve]=o.useState(null),ot=o.useRef(0),Ct=()=>{ot.current+=1,Ve(null)},[zt,gt]=o.useState(""),[nt,Je]=o.useState(()=>lr()),et=o.useRef(typeof d=="number"?d:null);o.useEffect(()=>{!E&&!D||(Je(lr()),Ct())},[E,M,D]),o.useEffect(()=>{D&&Je(te=>{const fe=Math.max(0,Math.min(te.pageIndex,Math.max(0,F-1)));return fe!==te.pageIndex?{...te,pageIndex:fe,stepIndex:0}:te})},[D,F]);const lt=D?Math.max(0,Math.min(nt.pageIndex,F-1)):0,We=D?$[lt]:null,ft=D&&We&&Array.isArray(We.steps)?We.steps:[],qe=E?nt.pageIndex:D?lt:typeof d=="number"?d:0,pt=E?G[Math.max(0,Math.min(nt.pageIndex,Math.max(0,G.length-1)))]:null,Et=E&&pt&&Array.isArray(pt.steps)?pt.steps:[],kt=E?Et.length:D?ft.length:typeof m=="number"?m:0,_t=E||D?Math.max(0,Math.min(nt.stepIndex,Math.max(0,kt))):typeof p=="number"?p:0,st=E?G.length:D?F:typeof u=="number"?u:0;o.useLayoutEffect(()=>{const te=et.current;if(typeof qe=="number"&&te!==null&&qe!==te&&qe>te)try{gt(j("training.problemNotice",{n:qe+1}))}catch{}et.current=typeof qe=="number"?qe:et.current},[qe,d,j]),o.useLayoutEffect(()=>{const te=Pe.current;if(!te)return;const fe=()=>te.querySelector(".page-popup__scroll");let V=null,oe=null,ue=null;const _e=ut=>{const Nt=fe();if(!Nt)return;const qt=Nt.scrollHeight<=Nt.clientHeight;if(ke(qt?"center":"top"),ut&&!ze.current){ze.current=!0;try{Xe(!0)}catch{}try{at.disconnect()}catch{}}},we=()=>{V!==null&&cancelAnimationFrame(V),V=requestAnimationFrame(()=>{oe!==null&&clearTimeout(oe),oe=setTimeout(()=>_e(!0),60)})},Le=()=>{ue!==null&&cancelAnimationFrame(ue),ue=requestAnimationFrame(()=>_e(!1))};we(),window.addEventListener("resize",Le);const at=new MutationObserver(we);at.observe(te,{childList:!0,subtree:!0,attributes:!0});const vt=setTimeout(()=>{ze.current||_e(!0)},400);return()=>{window.removeEventListener("resize",Le),V!==null&&cancelAnimationFrame(V),oe!==null&&clearTimeout(oe),ue!==null&&cancelAnimationFrame(ue),clearTimeout(vt);try{at.disconnect()}catch{}}},[Pe]);const Ie=o.useCallback(te=>{Pe.current&&(Pe.current._childOnNext=te)},[]),rt=o.useCallback(te=>{Pe.current&&(Pe.current._childOnResult=te)},[]),bt=o.useCallback((te,fe,V)=>{Je(oe=>{const ue=oe.answersByPage[te]||{},_e=ue[fe],we=Vo(V),Le=Vo(_e);return _e&&Le>we?oe:{...oe,answersByPage:{...oe.answersByPage,[te]:{...ue,[fe]:V}}}})},[Je]),Vt=o.useCallback((te,fe,V)=>{const oe=qo(pt,qe),ue=Uo(te,fe);bt(oe,ue,V)},[pt,qe,bt]),tt=o.useCallback((te,fe,V)=>{const oe=qo(pt,qe),ue=Uo(te,fe);bt(oe,ue,V),!V?.allowChange&&te?.autoAdvance!==!1&&Je(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,fe+1)}))},[pt,qe,bt,Je]),Zt=o.useCallback((te,fe)=>{const V=We?.id||`children-page-${qe??0}`,oe=typeof fe=="number"?fe:_t??0,ue=`step-${oe}`;bt(V,ue,te),te?.allowChange||Je(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,oe+1)}))},[We,qe,_t,bt,Je]),An=o.useCallback((te,fe)=>{const V=We?.id||`children-page-${qe??0}`,oe=`step-${typeof fe=="number"?fe:_t??0}`;bt(V,oe,te)},[We,qe,_t,bt]),Bt=D?{currentPageIndex:qe??0,currentStepIndex:_t??0,totalStepsInPage:ft.length,handleStepDone:Zt,handleStepChange:An}:null,Wt=async()=>{const te=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:G,flowState:nt,answersByPage:nt.answersByPage})):null;return typeof q=="function"&&await Promise.resolve(q(te))||te},en=async()=>{const te=We?.id||`children-page-${nt.pageIndex}`,fe=nt.answersByPage[te]||{},V=J?(()=>{const _e={};let we=0;return $.forEach(Le=>{const at=nt.answersByPage[Le.id]||{},vt=Array.isArray(Le.steps)?Le.steps.length:0;for(let ut=0;ut<vt;ut+=1){const Nt=at[`step-${ut}`];typeof Nt<"u"&&(_e[`step-${we+ut}`]=Nt)}we+=vt}),_e})():fe;if(typeof y=="function"){const _e=await Promise.resolve(y(V,{pageAnswers:fe,answersByPage:nt.answersByPage,pages:$,currentPageId:te}));return typeof q=="function"&&await Promise.resolve(q(_e))||_e}const oe=Object.entries(fe).map(([_e,we],Le)=>({index:Le,key:_e,payload:we})),ue={results:oe,answers:oe,score:0};return typeof q=="function"&&await Promise.resolve(q(ue))||ue},on=()=>{const te=++ot.current,fe=()=>te!==ot.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(E){const ue=Wt();Ve(Mn);const _e=ue;Promise.resolve(_e).then(we=>{fe()||Ve(we||{isEmpty:!0})}).catch(we=>{!fe()&&Ve({isEmpty:!0})});return}if(D){const ue=en();Ve(Mn);const _e=ue;Promise.resolve(_e).then(we=>{fe()||Ve(we||{isEmpty:!0})}).catch(we=>{!fe()&&Ve({isEmpty:!0})});return}const V=Pe.current&&Pe.current._childOnResult,oe=ue=>{try{return ue?ue():void 0}catch{return}};if(typeof V=="function"){const ue=oe(V);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:fn&&fn.tagName.toUpperCase()==="SCRIPT"&&fn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ue&&typeof ue.then!="function"?Ve(ue):Ve(ue&&typeof ue.then=="function"?Mn:{});const _e=()=>{fe()||Ve(we=>we===Mn?{}:we)};Promise.resolve(ue).then(we=>{we&&!fe()?Ve(we):_e()}).catch(we=>{_e()});return}if(typeof q=="function"){const ue=oe(q);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:fn&&fn.tagName.toUpperCase()==="SCRIPT"&&fn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ue&&typeof ue.then!="function"?Ve(ue):Ve(ue&&typeof ue.then=="function"?Mn:{});const _e=()=>{fe()||Ve(we=>we===Mn?{}:we)};Promise.resolve(ue).then(we=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:fn&&fn.tagName.toUpperCase()==="SCRIPT"&&fn.src||new URL("components.cjs.js",document.baseURI).href}catch{}we&&!fe()?Ve(we):_e()}).catch(we=>{console.error("viewResults external handler failed",we),_e()});return}},cn=()=>{if(E){if(typeof qe=="number"&&typeof st=="number"&&qe<st-1){Je(fe=>({...fe,pageIndex:fe.pageIndex+1,stepIndex:0}));return}return on()}if(D){const fe=ft.length;if(typeof _t=="number"&&_t<fe-1){Je(V=>({...V,stepIndex:V.stepIndex+1}));return}if(typeof qe=="number"&&typeof st=="number"&&qe<st-1){Je(V=>({...V,pageIndex:V.pageIndex+1,stepIndex:0}));return}return on()}if(typeof v=="function"){try{v()}catch{}return}const te=Pe.current&&Pe.current._childOnNext;if(typeof te=="function"){try{te()}catch{}return}},tn=E?I.title||I.label||g||j("common.popup","\uD31D\uC5C5"):a||x||(Array.isArray(s)?s[s.length-1]:void 0)||g||j("common.popup","\uD31D\uC5C5"),Bn=g||tn,Xt=E?I.title??I.label??tn:a??x??tn,yt=(te,fe)=>{const V=qo(pt,qe),oe=Uo(te,fe),ue=nt.answersByPage[V]?.[oe],_e=v3(te,{page:pt,pageIndex:qe,step:te,stepIndex:fe,storedPayload:ue,answersByPage:nt.answersByPage,flowState:nt}),we={key:oe,index:fe,stepIndex:_t,isLast:fe===Et.length-1};switch(te?.type){case"listen":return n.jsx(Fo,{...we,..._e,onDone:Le=>tt(te,fe,Le)});case"confirm":return n.jsx(Po,{...we,..._e,onDone:Le=>tt(te,fe,Le),onChange:Le=>Vt(te,fe,Le)});case"confirmWithText":return n.jsx(Io,{...we,..._e,onDone:Le=>tt(te,fe,Le),onChange:Le=>Vt(te,fe,Le)});case"orderList":return n.jsx(Oo,{...we,..._e,onDone:Le=>tt(te,fe,Le),onChange:Le=>Vt(te,fe,Le)});default:return null}},un=o.useRef(void 0);o.useEffect(()=>{const te=un.current;if(un.current=qe,te===void 0||te===qe||!Ja())return;const fe=Pe.current;if(!fe)return;const V=document.activeElement;if(!(!V||V===document.body||!fe.contains(V)||V.disabled===!0))return;const oe=fe.querySelector(`.training-steps ${gn.split(", ").join(", .training-steps ")}`)??Array.from(fe.querySelectorAll(gn)).find(ue=>!ue.closest('[aria-hidden="true"]'));try{oe?.focus()}catch{}},[qe]);const Jt=E?G.length>0?n.jsx("div",{className:"training-steps",children:Et.map((te,fe)=>yt(te,fe))},`replay-${ce}`):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||j("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Tt=D?n.jsxs(iu.Provider,{value:Bt,children:[We?.pageTop?n.jsx("div",{className:"training-page-top",children:We.pageTop}):null,n.jsx("div",{className:"training-steps",children:ft.map((te,fe)=>{const V=te;return o.cloneElement(V,{...V.props,_stepIndex:fe,_totalSteps:ft.length,_stepKey:`step-${fe}`,_pageIndex:qe})})},`replay-${ce}`),We?.pageBottom?n.jsx("div",{className:"training-page-bottom",children:We.pageBottom}):null]}):null,dn=o.useCallback(()=>{let te;if(_){const fe=$e,{results:V,correct:oe,total:ue}=Cu($e);B2({items:S2(V),category:fu.has(_)?"sentence":"word",trainingType:_,entryPoint:B??"sentence",itemRef:A??null,correct:oe,total:ue,score:typeof fe?.score=="number"?fe.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-H.current)/1e3)),dailyTotal:N??null}),te={correct:oe,total:ue,attempt:Ne.current.length+1,previousAttempts:[...Ne.current]}}Ct(),Ue(()=>{typeof b=="function"&&b(te),typeof h=="function"&&h()})},[b,h,_,B,N,A,$e,Ve,Ue]),Qt=o.useCallback(()=>gt(""),[gt]),pn=o.useCallback(()=>{Ue(()=>{typeof h=="function"&&h()})},[h,Ue]),Ee=n.jsxs("div",{className:`page-popup${ye?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Bn,children:[n.jsxs("div",{ref:Pe,className:`page-popup__panel ${Ze?"":"page-popup__panel--measuring"} ${je==="center"?"page-popup__panel--center":je==="top"?"page-popup__panel--top":""}`,children:[n.jsx(au,{title:Xt,subtitle:E?I.subtitle||I.label:Array.isArray(s)?s.join(" / "):void 0,desc:E?void 0:r,depth:E?I.depth:s,icon:E?I.icon:i,wrapperStyle:E?I.wrapperStyle:l,iconTooltip:E?I.iconTooltip:c,progressMax:st,progressIndex:qe,pageIndex:qe,pageCount:st,onBack:pn,onClose:pn}),n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content ${je==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:D?Tt:E?Jt:typeof f=="function"?f({registerOnNext:Ie,registerOnResult:rt,panelRef:Pe,setResultOverlay:Ve}):f})}),n.jsx(nu,{onSettings:C,onNext:cn,onResult:on,useNoiseSettingBtn:!!(E?I.useNoiseSetting??!0:w),stepIndex:_t,stepCount:kt,pageIndex:qe,pageCount:st,resultOpen:!!($e&&!$e.isEmpty)})]}),$e&&!$e.isEmpty&&(S??w3)({score:$e.score,results:$e.results||$e.answers||[],contextsLength:$e.results?$e.results.length:$e.answers?$e.answers.length:0,onReplay:()=>{if(H.current=Date.now(),$e!==Mn){const{correct:te,total:fe}=Cu($e);Ne.current.push({correct:te,total:fe})}if(Ct(),ne(te=>te+1),E){if(Je(lr()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(D){Je(lr());return}try{const te=Pe.current&&Pe.current._childOnResult;typeof te=="function"&&te({replay:!0})}catch{}},onClose:dn,pending:$e===Mn}),$e?.isEmpty&&n.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":j("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:j("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),n.jsx("div",{className:"page-popup__bottom",children:n.jsx(le,{htmlType:"button",variant:"main",size:48,onClick:dn,label:j("training.result.done","\uC644\uB8CC")})})]})}),n.jsx(ea,{message:zt,position:"top",onClose:Qt})]}),Fe=n.jsx(jo.Provider,{value:Oe,children:Ee});return typeof document<"u"&&document.body?Ut.createPortal(Fe,document.body):Fe}const Ln=k3;Ln.Page=ir,Ln.ListenStep=lu,Ln.ConfirmStep=cu,Ln.ConfirmWithTextStep=uu,Ln.OrderListStep=du,Ln.CardStep=pu,Ln.CardOrderStep=g3;function A3({label:e,homonum:t}){const a=Gn()?.(e,t)??"",{imgRef:r,loading:s,hasImage:i,onLoad:l,onError:c}=yo(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:c})]}):n.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:n.jsx("span",{children:e})})}function gu({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,c=window.innerWidth;let d=t.left+t.width/2-i/2,u=t.top-l-8;u<8&&(u=t.bottom+8),d=Math.max(8,Math.min(d,c-i-8)),s({left:d,top:u})},[t]),!t||e.length===0?null:Ut.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(A3,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const B3=new Intl.Collator("ko");function N3({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:s,groups:i,selected:l=[],onSelect:c,maxSelect:d,onClearSelection:u,onPrint:p,onPrintEmpty:m,className:h,emptyHint:b,sectionType:v="page",disc:C,notice:w}){const{t:f,i18n:g}=ge.useTranslation(),x=g.language?.startsWith("ko")??!1,{anchorRect:y,openAt:k,close:_}=ya(),[B,N]=o.useState(null),A=o.useCallback(()=>{_(),N(null)},[_]);rb(A,!!B);const S=(r??"").trim(),O=/^[^,[\]\s]+$/.test(S)?S:"",H=O.length>0,j=r===void 0&&t===void 0,q=H?"match":j?"original":"ganada",[E,M]=o.useState(()=>q),[I,G]=o.useState("50"),[Z,Y]=o.useState(1),[z,J]=o.useState(H);z!==H&&(J(H),M(q));const $=E==="match"&&!H||E==="original"&&!j?q:E,D=o.useMemo(()=>[...H?[{value:"match",label:f("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...j?[{value:"original",label:f("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:f("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:f("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:f("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:f("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:f("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:f("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[f,H,j]),F=o.useMemo(()=>["10","25","50","100"].map(he=>({value:he,label:f("wordSearch.pageSize",{count:Number(he),defaultValue:`${he}\uAC1C\uC529 \uBCF4\uAE30`})})),[f]),P=he=>he.words?.[0],R=o.useMemo(()=>{const he=[...O].length,be=d2(O),Te=new Map;return Oe=>{let Pe=Te.get(Oe);return Pe===void 0&&(Pe=be((Oe.words?.[0]?.label??"").slice(0,he))?0:1,Te.set(Oe,Pe)),Pe}},[O]),L=o.useCallback((he,be)=>{const Te=ce=>P(ce)?.label??"",Oe=ce=>P(ce)?.syllables??[...Te(ce)].length,Pe=ce=>(ce.words??[]).reduce((ne,Ne)=>{const je=parseInt(Ne.grade??"",10);return Number.isFinite(je)&&je<ne?je:ne},999);switch($){case"match":return R(he)-R(be)||B3.compare(Te(he),Te(be));case"ganada":return Te(he).localeCompare(Te(be),"ko");case"ganada_desc":return Te(be).localeCompare(Te(he),"ko");case"syllable":return Oe(he)-Oe(be)||Te(he).localeCompare(Te(be),"ko");case"syllable_desc":return Oe(be)-Oe(he)||Te(he).localeCompare(Te(be),"ko");case"grade":return Pe(he)-Pe(be)||Te(he).localeCompare(Te(be),"ko");case"grade_desc":return Pe(be)-Pe(he)||Te(he).localeCompare(Te(be),"ko");default:return 0}},[$,R]),K=o.useMemo(()=>s.slice().sort(L),[s,L]),U=Number(I)||10,ee=o.useMemo(()=>(i??[]).flatMap(he=>he.items.slice().sort(L).map(be=>({item:be,label:he.label}))),[i,L]),ae=i?ee.length:K.length,Be=Math.max(1,Math.ceil(ae/U)),ie=Math.min(Z,Be),se=o.useMemo(()=>K.slice((ie-1)*U,ie*U),[K,ie,U]),W=o.useMemo(()=>{if(!i)return null;const he=ee.slice((ie-1)*U,ie*U),be=new Map;for(const{item:Te,label:Oe}of he)be.has(Oe)||be.set(Oe,[]),be.get(Oe).push(Te);return[...be.entries()].map(([Te,Oe])=>({label:Te,items:Oe}))},[i,ee,ie,U]);o.useEffect(()=>{Y(1)},[E,I,ae,r]);const re=ae>0?n.jsxs("div",{className:"word-search-result-block__toolbar",children:[n.jsx(rn,{size:40,options:D,value:$,onChange:M,ariaLabel:f("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),n.jsx(rn,{size:40,options:F,value:I,onChange:G,ariaLabel:f("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),n.jsx(Ya,{page:ie,totalPages:Be,onChange:Y})]}):void 0,pe=he=>{c&&c(he)},ve=t!==void 0&&a?n.jsxs(n.Fragment,{children:[f("wordSearch.resultTitlePrefix","\uCD1D "),n.jsx("span",{style:{color:"var(--color-main)"},children:t}),f("wordSearch.resultTitleSuffix",{unit:x?y2(a):a})]}):void 0,Ce=t!==void 0&&t>0&&d!==void 0&&a?f("wordSearch.resultDisc",{unit:x?x2(a):a,max:d,selected:l.length}):void 0,Ae=C??(w?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"word-search-result-block__notice",children:w}),Ce?n.jsx("span",{className:"word-search-result-block__disc",children:Ce}):null]}):Ce);return n.jsxs(na,{type:v,icon:e,title:ve,action:re,disc:Ae,className:De("word-search-result-block",h),children:[n.jsxs("div",{className:"word-search-result-block__inner",children:[(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:f("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),b&&n.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:b})]}),i?(W??[]).map(he=>n.jsx("div",{className:"word-search-result-block__group",children:n.jsx("div",{className:"word-search-result-block__items",children:he.items.map(be=>{const Te=l.includes(be.id);return n.jsx("div",{onMouseEnter:Oe=>{k(Oe.currentTarget),N(be.words??[])},onMouseLeave:A,children:n.jsx(le,{htmlType:"button",size:"word",align:"grid",label:(be.words??[]).map(Oe=>Oe.label),subLabel:(be.words??[]).some(Oe=>Oe.subLabel)?(be.words??[]).map(Oe=>Oe.subLabel):void 0,selected:Te,onClick:()=>pe(be.id),minWidth:200})},be.id)})})},he.label)):n.jsx("div",{className:"word-search-result-block__items",children:se.map(he=>{const be=l.includes(he.id);return n.jsx("div",{onMouseEnter:Te=>{k(Te.currentTarget),N(he.words??[])},onMouseLeave:A,children:n.jsx(le,{htmlType:"button",size:"word",align:"grid",label:(he.words??[]).map(Te=>Te.label),subLabel:(he.words??[]).some(Te=>Te.subLabel)?(he.words??[]).map(Te=>Te.subLabel):void 0,selected:be,onClick:()=>pe(he.id),minWidth:200})},he.id)})}),B&&y&&n.jsx(gu,{words:B,anchorRect:y})]}),Be>1&&n.jsx("div",{className:"word-search-result-block__pagination-bottom",children:n.jsx(Ya,{page:ie,totalPages:Be,onChange:Y})}),(u||p)&&n.jsxs("div",{className:"word-search-result-block__actions",children:[u&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:f("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:u}),p&&n.jsx("div",{onClick:l.length===0?m:void 0,children:n.jsx(le,{htmlType:"button",size:"56",type:"bar",variant:"main",label:f("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function S3(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 D3({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:s=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:d,placeholder:u="-",className:p,title:m,titleIcon:h,disc:b,showInfoButton:v=!0,onClearPhoneme:C,onSearch:w,onSearchEmpty:f,searchDisabled:g=!1,searchLabel:x,searchChecking:y=!1,pairMode:k=!1,sectionType:_="page",beforeSearchContent:B,beforeContent:N,afterContent:A,hideCountControl:S=!1,ordinal:O=!1}){const{t:H}=ge.useTranslation(),j=o.useMemo(()=>H("wordPairs.infoNotes",{returnObjects:!0}),[H]),q=o.useMemo(()=>Array.from({length:s-i+1},(P,R)=>{const L=i+R;return{key:String(L),label:H("wordPairs.count",{n:L})}}),[H,s,i]),E=o.useMemo(()=>H("wordPairs.ordinals",{returnObjects:!0}),[H]),M=o.useCallback(P=>O?H("wordPairs.phonemeOrdinalLabel",{ordinal:E[P-1]??P}):a===1?H("wordPairs.phonemeSingleLabel","\uC74C\uC808"):H("wordPairs.phonemeN",{n:P}),[O,E,a,H]),I=o.useCallback(P=>O?H("wordPairs.phonemeContrastOrdinalLabel",{ordinal:E[P-1]??P}):a===1?H("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):H("wordPairs.phonemeContrast",{n:P}),[O,E,a,H]),G=o.useCallback((P,R)=>R?n.jsxs(n.Fragment,{children:[P,n.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):P,[]),{anchorRect:Z,toggleAt:Y,close:z}=ya(),J=o.useCallback(P=>r(Number(P)),[r]),$=Yt("(max-width: 767px)"),D=o.useCallback(P=>S3(P,e).map(({label:R,value:L,displayLabel:K})=>{const U=!!L&&L!=="\uC5C6\uC74C";return n.jsxs("span",{className:De("phoneme-select-block__cell-jamo-part",L?"":"phoneme-select-block__cell-jamo-part--empty",U?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[n.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${L==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:L==="\uC5C6\uC74C"?"x":L||u}),U&&n.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:K??R})]},R)}),[e,u]),F=n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-tooltip-ignore":!0,children:n.jsx(le,{htmlType:"button",size:40,type:$?"dot":void 0,icon:"info",label:$?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:P=>Y(P.currentTarget)})}),Z&&n.jsx(Fn,{title:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:j,anchorRect:Z,onClose:z})]});return n.jsxs(na,{type:_,title:m,icon:h,disc:b,action:v?F:void 0,className:De("phoneme-select-block",p),children:[N,!S&&n.jsx("div",{className:"phoneme-select-block__controls",children:n.jsx(_n,{options:q,value:String(a),onChange:J,size:40,className:"phoneme-select-block__count-control"})}),n.jsx("div",{className:"phoneme-select-block__cells",children:k?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((P,R)=>{const L=t[R*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(L)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:M(R+1)})]},R)})}),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((P,R)=>{const L=t[R*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(L)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:I(R+1)})]},R)})})]}):t.map((P,R)=>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(P)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:M(R+1)})]},R))}),(l||c)&&n.jsx("div",{className:"phoneme-select-block__panels",children:n.jsx("div",{className:"phoneme-select-block__detail",children:k?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((P,R)=>{const L=t[R*2]??{};return n.jsx(kn,{title:G(M(R+1),R===0),sections:c?c(L,R*2):l,selected:L,onSelect:d?.(R*2),align:"newline"},R)})}),n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((P,R)=>{const L=t[R*2+1]??{};return n.jsx(kn,{title:I(R+1),sections:c?c(L,R*2+1):l,selected:L,onSelect:d?.(R*2+1),align:"newline"},R)})})]}):t.map((P,R)=>n.jsx(kn,{title:G(M(R+1),R===0),sections:c?c(P,R):l,selected:P,onSelect:d?.(R),align:"newline"},R))})}),B&&n.jsx("div",{className:"phoneme-select-block__before-search",children:B}),(C||w||y)&&(()=>{const P=t.every(R=>Object.entries(R).every(([L,K])=>!K||L==="\uC885\uC131"&&K==="\uC5C6\uC74C"));return n.jsxs("div",{className:"phoneme-select-block__search-row",onClick:P?f:void 0,children:[C&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:H("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:P,onClick:P?void 0:C}),w?n.jsx(le,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:y?n.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:x??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:P||g||y,onDisabledClick:y?()=>{}:void 0,"aria-busy":y||void 0,onClick:w}):y?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:x??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),A]})}function E3({title:e,sections:t,selected:a,onSelect:r,className:s}){const{t:i}=ge.useTranslation();return n.jsx(kn,{className:s,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,align:"inline"})}function j3({title:e,headerAction:t,sections:a,selected:r,onSelect:s,className:i}){const{t:l}=ge.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 T3({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:i,onPositionCountChange:l,inputMode:c,onInputModeChange:d,className:u}){const{t:p}=ge.useTranslation(),m={searchMode:p("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:p("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:p("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:p("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:p("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:p("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:p("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:p("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:p("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:p("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:p("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},h=w=>p("wordPairs.count",{n:w}),b=[{label:m.searchMode,items:[m.include,m.pick,m.explicit],display:"segmented",labelAction:n.jsx(Aa,{title:p("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[p("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."),p("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."),p("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:m.phonemeOrder,items:[m.orderAny,m.orderMatch],display:"segmented",labelAction:n.jsx(Aa,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:m.count,items:[h(1),h(2)],display:"segmented"},{label:m.inputMode,items:[m.charInput,m.pronInput],display:"segmented",labelAction:n.jsx(Aa,{title:p("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[p("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."),p("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={[m.searchMode]:t==="explicit"?m.explicit:t==="pick"?m.pick:m.include,[m.phonemeOrder]:r==="ordered"?m.orderMatch:m.orderAny,[m.count]:h(i),[m.inputMode]:c==="phoneme"?m.pronInput:m.charInput},C=(w,f)=>{f===m.searchMode?a(w===m.explicit?"explicit":w===m.pick?"pick":"include"):f===m.phonemeOrder?s(w===m.orderMatch?"ordered":"unordered"):f===m.count?l(w===h(2)?2:1):f===m.inputMode&&d(w===m.pronInput?"phoneme":"word")};return n.jsx(kn,{className:u,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:b,selected:v,onSelect:C,align:"inline"})}function M3(e){const{title:t,items:a,columns:r,gridTemplateColumns:s,mobileGridTemplateColumns:i,searchPlaceholder:l,searchFn:c,defaultSortKey:d,defaultSortAsc:u=!0,selectedId:p,selectedIds:m,onSelect:h,onClose:b,pageSizeOptions:v=[10,25,50,100],initialPageSize:C,emptyText:w,countLabel:f,topContent:g,className:x=""}=e,{t:y}=ge.useTranslation(),k=l??y("common.search","\uAC80\uC0C9"),_=w??y("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[B,N]=o.useState(""),[A,S]=o.useState(d??r[0]?.key??""),[O,H]=o.useState(u),[j,q]=o.useState(String(C??v[0]??10)),[E,M]=o.useState(1);o.useEffect(()=>{M(1)},[B,j]);const I=c!==null,G=o.useCallback((L,K)=>{if(!K)return!0;const U=K.toLowerCase();return r.some(ee=>{const ae=L[ee.key];return ae==null?!1:String(ae).toLowerCase().includes(U)})},[r]),Z=c??G,Y=o.useMemo(()=>{const L=I?a.filter(K=>Z(K,B)):a;return A?[...L].sort((K,U)=>{const ee=K[A],ae=U[A];return ee===ae?0:Kr(ee,ae,O)}):L},[a,B,A,O,I,Z]),z=Math.max(1,Math.ceil(Y.length/Number(j)));E>z&&M(z);const J=Math.min(E,z),$=Y.slice((J-1)*Number(j),J*Number(j)),D=o.useCallback(L=>{A===L?H(K=>!K):(S(L),H(!0)),M(1)},[A]),F=o.useMemo(()=>{if(typeof f=="function"){const L=Y.length,K=f(L);if(typeof K=="string"){const U=K.lastIndexOf(String(L));if(U>=0)return{prefix:K.slice(0,U),suffix:K.slice(U+String(L).length)}}return{label:K}}if(typeof f=="string"&&f.includes("{n}")){const[L,K]=f.split("{n}");return{prefix:L,suffix:K}}return{prefix:y("common.totalCountPrefix","\uCD1D "),suffix:y("common.totalCountSuffix","\uAC1C")}},[f,Y.length,y]),P=o.useMemo(()=>r.map(L=>({label:L.label,onClick:L.sortable!==!1?()=>D(L.key):void 0,className:L.className,sortDir:L.sortable!==!1&&A===L.key?O?"asc":"desc":null})),[r,A,O,D]),R=o.useMemo(()=>v.map(L=>({value:String(L),label:y("common.pageSizeLabel",{n:L})})),[v,y]);return n.jsxs(jn,{className:`popup-list ${x}`,title:t,onClose:b,children:[g,"label"in F&&n.jsx("p",{className:"toolbar__count body-1",children:F.label}),n.jsx(so,{count:"label"in F?void 0:{value:Y.length,prefix:F.prefix,suffix:F.suffix},search:I?{value:B,onChange:N,placeholder:k}:void 0,pageSize:{options:R,value:j,onChange:q},pagination:{page:J,total:z,onChange:M}}),n.jsx(Co,{size:"medium",gridTemplateColumns:s,mobileGridTemplateColumns:i,resizable:!0,fields:P,items:$,onRowClick:h,renderRow:L=>{const K=m!=null?L.id!=null&&m.has(L.id):p!=null&&L.id===p;return r.map(U=>({content:U.render?U.render(L):L[U.key]??"",className:De(U.className,K&&"popup-list__row--selected")}))},empty:_})]})}function L3(e){const{title:t,message:a,topContent:r,details:s,children:i,confirmLabel:l,cancelLabel:c,hideCancel:d=!1,extraAction:u,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:h,closeOnConfirm:b=!0,onClose:v,inline:C,size:w="small",className:f,initialFocus:g="close"}=e,{t:x}=ge.useTranslation(),y=o.useRef(null);o.useEffect(()=>{if(C||g==="close")return;const S=y.current?.closest(".popup-panel"),O=Array.from(S?.querySelectorAll(".popup-footer--buttons button")??[]),H=g==="confirm"?O[O.length-1]:d?void 0:O[u?1:0];H&&!H.disabled&&H.focus()},[]);const k=o.useRef(!1),[_,B]=o.useState(!1),N=S=>{let O=!1;return{close:()=>{O=!0,S()},\uB2EB\uC558\uB098:()=>O}},A=async S=>{if(k.current)return;k.current=!0;const O=typeof document<"u"?document.activeElement:null;B(!0);let H=!1;try{H=await S()}catch(j){typeof console<"u"&&console.error(j)}finally{H||(k.current=!1,B(!1),requestAnimationFrame(()=>{const j=document.activeElement;(!j||j===document.body)&&O?.isConnected&&O.focus()}))}};return n.jsxs(jn,{title:t,onClose:v,closeDisabled:_,inline:C,size:w,className:De("confirm-popup",f),buttons:[...u?[{label:u.label,variant:u.variant??"default",disabled:u.disabled||_,onClick:async({closeWithAnimation:S})=>{await A(async()=>{const O=N(S);await u.onClick(O.close);const H=u.closeOnClick??!0;return H&&S(),H||O.\uB2EB\uC558\uB098()})}}]:[],...d?[]:[{label:c??x("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:_,onClick:({closeWithAnimation:S})=>S()}],{label:l??x("common.confirm","\uD655\uC778"),variant:p,disabled:m||_,onClick:async({closeWithAnimation:S})=>{await A(async()=>{const O=N(S);return await h(O.close),b&&S(),b||O.\uB2EB\uC558\uB098()})}}],children:[r!=null&&n.jsx("div",{className:"confirm-popup__top",children:r}),s&&s.length>0&&n.jsx(sr,{children:s.map((S,O)=>n.jsx(Tn,{label:S.label,children:n.jsx("span",{className:"panel-row__text body-2",children:S.value})},O))}),n.jsx("p",{ref:y,className:"body-2 confirm-popup__message",children:a}),i]})}function $3({onApply:e,onCancel:t}){const{t:a}=ge.useTranslation(),[r,s]=o.useState(""),[i,l]=o.useState(!1),[c,d]=o.useState(null),u=o.useRef(null);o.useEffect(()=>{u.current?.focus()},[]);const p=o.useCallback(async b=>{const v=r.trim();if(v){l(!0),d(null);try{await e(v),b()}catch(C){d(ti(C)),l(!1),requestAnimationFrame(()=>u.current?.focus())}}},[r,e]),m=o.useCallback((b,v)=>{b.key==="Enter"&&!b.nativeEvent.isComposing&&p(v)},[p]),h=b=>{s(b.target.value),d(null)};return n.jsx(jn,{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:b})=>b()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:b})=>{p(b)}}],children:({closeWithAnimation:b})=>n.jsxs(n.Fragment,{children:[n.jsx("input",{ref:u,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:h,onKeyDown:v=>m(v,b),disabled:i,autoComplete:"off",spellCheck:!1}),c&&n.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const bu=["var(--color-main)","var(--color-sub)"],R3=2e3;function P3(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 Go({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),w=t-C,f=(g,x)=>Array.from({length:g}).map((y,k)=>{const _=6+Math.random()*12,B=Math.round(Math.min(18,_*Math.min(1.5,1+r*.4))),N=bu[Math.floor(Math.random()*bu.length)],A=Math.random()*300,S=(360+Math.random()*260)*r*1.2,O=(x==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,H=Math.cos(O)*S,j=Math.sin(O)*S*1.35,q=Math.random()*720-360,E=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),M=Math.random()>.7?"50%":"3px";return{id:`${x}-${k}`,side:x,size:B,color:N,delay:A,vx:H,vy:j,angularVel:q,life:E,borderRadius:M}});return[...f(C,"left"),...f(w,"right")]},[t,r]),c=o.useRef(null),d=o.useRef({}),u=o.useRef(null),p=o.useRef(s);o.useEffect(()=>{p.current=s},[s]);const m=o.useRef(null),h=o.useRef(null),b=()=>{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"&&h.current==null&&(h.current=b()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const z=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(z)}const C=1200,w=performance.now(),f=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,g=Math.max(60,(window.innerHeight||800)*.05),x=z=>Math.max(40,(z||window.innerWidth)*.02),y=f?.width||window.innerWidth||375,k=f?.height||window.innerHeight||812,_=z=>{const J=[...z].sort(($,D)=>$-D);return J[Math.floor(J.length/2)]||1},B=_(l.map(z=>Math.abs(z.vy))),N=_(l.map(z=>Math.abs(z.vx))),A=Math.sqrt(2*C*(k*.72+g))/B,S=B*A/C,O=y*.5/(N*S),H=(z,J,$)=>Math.min($,Math.max(J,z)),j=H(A,.8,2.4),q=H(O,.7,2.2),E=a>0?a/R3:1,M=l.map(z=>({...z,life:z.life*E,vx:z.vx*q,vy:z.vy*j,startTime:w+z.delay,ended:!1})),I=f?{x:f.left-x(f.width),y:f.top+f.height+g}:{x:-x(window.innerWidth),y:window.innerHeight+g},G=f?{x:f.left+f.width+x(f.width),y:f.top+f.height+g}:{x:window.innerWidth+x(window.innerWidth),y:window.innerHeight+g},Z=z=>{let J=!1;for(const $ of M){const D=d.current[$.id];if(!D||!D)continue;if(z<$.startTime){D.style.display="none",J=!0;continue}if(!$._inited){const ie=$.side==="left"?I.x:G.x,se=$.side==="left"?I.y:G.y;D.style.left=`${ie}px`,D.style.top=`${se}px`,D.style.transform="translate3d(0px, 0px, 0)",D.style.display="block",D.style.zIndex="100000",typeof $.color=="string"&&$.color.startsWith("var(")&&(D.style.background=P3(D,$.color)??"#FF0060"),$._inited=!0}const F=(z-$.startTime)/1e3;if(F<0)continue;const P=$.life/1e3;if(F>=P){D.style.opacity="0",D.style.display="none",$.ended=!0;continue}J=!0;const R=$.side==="left"?I.x:G.x,L=$.side==="left"?I.y:G.y,K=R+$.vx*F,U=L+$.vy*F+.5*C*F*F,ee=($.angularVel||0)*F,ae=K-R,Be=U-L;D.style.transform=`translate3d(${ae}px, ${Be}px, 0) rotate(${ee}deg)`,D.style.opacity=`${Math.max(0,1-F/P)}`}J?u.current=requestAnimationFrame(Z):p.current?.()};u.current=requestAnimationFrame(Z);const Y=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const z=document.createElement("div");z.className="party-container",z.style.position="fixed",z.style.inset="0",z.style.pointerEvents="none",z.style.overflow="visible",z.style.zIndex="2147483647";for(const J of l){const $=document.createElement("span");$.className=`confetti confetti--${J.side}`,$.setAttribute("aria-hidden","true"),$.style.display="none",$.style.position="fixed",$.style.left="0px",$.style.top="0px",$.style.width=`${J.size}px`,$.style.height=`${Math.max(4,J.size*.6)}px`,$.style.background=J.color,$.style.borderRadius=J.borderRadius,$.style.transform="translate3d(0,0,0)",$.style.opacity="0",z.appendChild($),d.current[J.id]=$}(document.body||h.current).appendChild(z),m.current=z}}catch{}},300);return()=>{if(u.current&&cancelAnimationFrame(u.current),clearTimeout(Y),m.current){try{m.current.remove()}catch{}m.current=null}}},[e,a,i,l]),!e)return null;const v=n.jsx("div",{className:"party-container",ref:c,children:l.map(C=>n.jsx("span",{"aria-hidden":!0,ref:w=>{d.current[C.id]=w},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"?Ut.createPortal(v,h.current||document.body):v}const Ko=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function I3({trigger:e=0,active:t=!1}){const[a,r]=o.useState(null);o.useEffect(()=>{if(typeof window>"u")return;const i=l=>{const c=l.detail??{};r(d=>({n:(d?.n??0)+1,count:Ko(c.count),strength:Ko(c.strength),duration:Ko(c.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(Go,{active:t,trigger:e}),a&&n.jsx(Go,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function F3({title:e,sub:t,rightAction:a,titleAction:r,badge:s,badgeVariant:i="default",documentTitle:l,onBack:c,backLabel:d,wrap:u=!1}){const{t:p}=ge.useTranslation();Vg(typeof e=="string"?e:l??null);const m=d??p("common.back","\uB4A4\uB85C");return n.jsxs("div",{className:u?"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:[c&&n.jsx(le,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:c}),n.jsx("h1",{className:"page-title__title h1",children:e}),s&&n.jsx("div",{className:"page-title__badge",children:n.jsx(ht,{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 O3(e){return e??""}const yu=o.createContext({words:[],loading:!1});function H3(){return o.useContext(yu)}function z3({words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:d,children:u}){return n.jsx(yu.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:d},children:u})}function V3({items:e,actions:t,columns:a,flat:r=!1,className:s,style:i}){const l=a??e.length;return n.jsx("section",{className:De("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((c,d)=>n.jsxs("div",{className:"summary-strip__item",children:[n.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),n.jsx("p",{className:"summary-strip__value body-3b",title:typeof c.value=="string"||typeof c.value=="number"?String(c.value):void 0,children:c.value})]},d))}),t&&n.jsx("div",{className:"summary-strip__actions",children:t})]})})}const W3=(e,t)=>`${e} / ${t}`;function q3({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:s=W3,pageWidth:i,pageHeight:l,margin:c,className:d,style:u}){const{t:p}=ge.useTranslation(),m=o.useRef(null),h=o.useRef(null),b=o.useRef(null),v=o.useRef(null),[C,w]=o.useState(null),[f,g]=o.useState(!1);o.useEffect(()=>{const E=m.current;if(!E)return;const M=()=>g(E.scrollWidth>E.clientWidth+1);if(M(),typeof ResizeObserver>"u")return;const I=new ResizeObserver(M);return I.observe(E),()=>I.disconnect()},[C]);const x=e.map(E=>`${E.id}\0${E.section??""}\0${E.group??""}`).join(""),y=C&&C.shape===x?C.pages:null,[k,_]=o.useState(0);o.useEffect(()=>{const E=v.current;if(!E||typeof ResizeObserver>"u")return;const M=new ResizeObserver(()=>_(E.offsetHeight));return M.observe(E),()=>M.disconnect()},[]);const[B,N]=o.useState(0);o.useEffect(()=>{const E=h.current;if(!E||typeof ResizeObserver>"u")return;let M=null;const I=typeof requestAnimationFrame=="function"?Y=>requestAnimationFrame(Y):Y=>setTimeout(Y,16),G=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:Y=>clearTimeout(Y),Z=new ResizeObserver(()=>{M==null&&(M=I(()=>{M=null,N(Y=>Y+1)}))});return Array.from(E.children).forEach(Y=>Z.observe(Y)),()=>{Z.disconnect(),M!=null&&G(M)}},[x]),o.useLayoutEffect(()=>{const E=h.current,M=v.current;if(!E||!M)return;const I=P=>P.getBoundingClientRect().height||P.offsetHeight,G=new Map;b.current?.querySelectorAll("[data-chrome-section]").forEach(P=>{G.set(P.dataset.chromeSection??"",I(P))});const Z=P=>I(M)-(G.get(P??"")??0),Y=Array.from(E.children).map(P=>I(P)),z=[];e.forEach((P,R)=>{const L=z[z.length-1],K=L?e[L[0]]:void 0;K&&P.group!=null&&K.group===P.group&&K.section===P.section?L.push(R):z.push([R])});const J=[];let $=[],D=0;const F=()=>{$.length&&J.push($),$=[],D=0};z.forEach(P=>{const R=P.reduce((K,U)=>K+Y[U],0),L=Z(e[P[0]].section);$.length&&e[$[0]].section!==e[P[0]].section&&F(),R>L?P.forEach(K=>{$.length&&D+Y[K]>L+.01&&F(),$.push(K),D+=Y[K]}):($.length&&D+R>L+.01&&F(),P.forEach(K=>$.push(K)),D+=R)}),F(),w(P=>P&&P.shape===x&&JSON.stringify(P.pages)===JSON.stringify(J)?P:{shape:x,pages:J})},[x,k,i,l,c,B]);const A=no,S=A,O=r??n.jsxs(n.Fragment,{children:[n.jsx("img",{src:S,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),H=(E,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:O}),n.jsx("span",{className:"report-doc__page-no",children:s(E,M)})]})}),j=Array.from(new Set(e.map(E=>E.section??""))),q={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...u};return n.jsxs("div",{ref:m,className:De("report-doc",d),style:q,tabIndex:f?0:void 0,role:f?"group":void 0,"aria-label":f?p("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:b,children:j.map(E=>{const M=H(1,1,E||void 0);return n.jsxs("div",{"data-chrome-section":E,children:[M.header,M.footer]},E)})}),n.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(E=>n.jsx("div",{children:E.content},E.id))})]}),y&&n.jsx("div",{className:"report-doc__pages",children:y.map((E,M)=>{const{header:I,footer:G}=H(M+1,y.length,e[E[0]].section);return n.jsxs("section",{className:"report-doc__page",children:[I,E.map(Z=>n.jsx("div",{children:e[Z].content},e[Z].id)),G]},M)})})]})}function U3({title:e,fields:t,columns:a=4,className:r,style:s}){return n.jsxs("div",{className:De("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 Wn=new Map;let cr=null;const G3=12;function K3(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 ur(){const e=new Map;for(const t of Wn.keys()){if(!t.isConnected)continue;const a=K3(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+G3)}}}function Y3(e){return typeof window>"u"?()=>{}:(Wn.set(e,(Wn.get(e)??0)+1),Wn.get(e)===1&&typeof ResizeObserver<"u"&&(cr??(cr=new ResizeObserver(()=>ur())),cr.observe(e)),ur(),()=>{const t=(Wn.get(e)??1)-1;if(t>0){Wn.set(e,t),ur();return}Wn.delete(e),cr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),ur()})}function Z3({title:e,message:t,actionLabel:a,onAction:r,icon:s,onClose:i,className:l=""}){const{t:c}=ge.useTranslation(),d=a??c("common.update","\uC5C5\uB370\uC774\uD2B8"),u=o.useRef(null),p=o.useRef(!1);return o.useLayoutEffect(()=>{const m=u.current,h=m?.parentElement?.closest(".update-alert-stack")??m,b=h?Y3(h):null;return()=>{b?.(),p.current&&m&&m.contains(document.activeElement)&&Va(m)}},[]),n.jsxs("div",{ref:u,className:De("update-alert",l),role:"alert",children:[i&&n.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{p.current=!0,i()},"aria-label":c("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(ls,{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(le,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:d})]})}function X3({title:e,description:t,topActions:a,children:r,footerLeft:s,footerRight:i,onClick:l,draggable:c,onDragStart:d,onDragEnd:u,className:p}){const m=s!=null||i!=null,h=r!=null&&r!==!1,b=o.useCallback(v=>{l&&v.target===v.currentTarget&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),l())},[l]);return n.jsxs("div",{className:De("training-card",l?"training-card--clickable":"",p),onClick:l,onKeyDown:l?b:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:c,onDragStart:d,onDragEnd:u,children:[n.jsxs("div",{className:"training-card__header",children:[n.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?n.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&n.jsx("div",{className:"training-card__top-actions",onClick:v=>v.stopPropagation(),children:a})]}),t!=null?typeof t=="string"?n.jsx("p",{className:"training-card__description body-3",children:t}):t:n.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),h&&n.jsx("div",{className:"training-card__body",children:r}),m&&n.jsxs("div",{className:"training-card__footer",children:[s!=null&&n.jsx("div",{className:"training-card__footer-left",children:s}),i!=null&&n.jsx("div",{className:"training-card__meta",children:i})]})]})}function J3({title:e,count:t,collapsed:a=!1,onToggle:r,sort:s,actions:i,empty:l=!1,emptyContent:c,dragOver:d=!1,onDragOver:u,onDragLeave:p,onDrop:m,children:h,className:b}){const{t:v}=ge.useTranslation(),C=r!=null,w=De("training-card-group",d&&"training-card-group--dragover",a&&"training-card-group--collapsed",C&&"training-card-group--collapsible",b);return n.jsxs("div",{className:w,onDragOver:u,onDragLeave:p,onDrop:m,children:[n.jsxs("header",{className:"training-card-group__header",children:[C&&n.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?v("common.expand","\uD3BC\uCE58\uAE30"):v("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!a,onClick:r}),typeof e=="string"?n.jsx("span",{className:"training-card-group__title h5b",children:e}):e,t!==void 0&&n.jsx("span",{className:"training-card-group__count body-3b",children:t}),(s||i!=null)&&n.jsxs("span",{className:"training-card-group__actions",onClick:f=>f.stopPropagation(),children:[s&&n.jsx(rn,{size:40,options:s.options,value:s.value,placeholder:s.placeholder,onChange:s.onChange}),i]})]}),!a&&(l?n.jsx("div",{className:"training-card-group__empty body-3",children:c}):n.jsx("div",{className:"training-card-group__grid",children:h}))]})}const Q3="speechear:saved_word_tables";function e7(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 t7(){try{const e=localStorage.getItem(Q3);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(e7):[]}catch{return[]}}function vu(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 Yo(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function n7(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 a7({title:e,titleIcon:t,disc:a,items:r,onSaveComplete:s,onLoad:i,onRemoveItem:l,onReset:c,resetLabel:d,saveButtonLabel:u,secondarySaveButtonLabel:p,onReorder:m,showCellCount:h,onAddItem:b,className:v,renderSavePopup:C,renderWordSearch:w,hideControls:f,saveOnly:g,tableName:x,nameValue:y,onNameChange:k,descriptionValue:_,onDescriptionChange:B,namePlaceholder:N,descriptionPlaceholder:A,existingNames:S,editingName:O,onCancel:H}){const{t:j}=ge.useTranslation(),q=d??j("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),E=r===void 0,M=!!k,[I,G]=o.useState([]),Z=(y??"").trim(),Y=Z||(N??"").trim(),z=(_??"").trim()||(A??"").trim(),J=(S??[]).map(Ee=>Ee.trim().toLowerCase()),$=[O?.trim().toLowerCase(),...I].filter(Ee=>!!Ee),D=[...J];for(const Ee of $){const Fe=D.indexOf(Ee);Fe!==-1&&D.splice(Fe,1)}const F=Z!==""&&D.includes(Z.toLowerCase()),[P,R]=o.useState(Array(4).fill(null)),[L,K]=o.useState(4),[U,ee]=o.useState(null),ae=P.slice(0,L),[Be,ie]=o.useState("landscape"),[se,W]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[re,pe]=o.useState("\uD45C\uC2DC"),[ve,Ce]=o.useState(!0),[Ae,he]=o.useState(!0),be=o.useRef(null),Te=o.useRef([]),[Oe,Pe]=o.useState(8),[ce,ne]=o.useState("right"),[Ne,je]=o.useState(!1),[ke,ye]=o.useState(!1),{toastMessage:Se,toastType:me,showWarning:Ge,clearToast:Ue}=il("warning"),Ye=o.useCallback(()=>ee(null),[ee]);b&&!E&&!h&&Cn("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[Ze,Xe]=o.useState(()=>Math.max(r?.length??1,1)),ze=E?L:h?Math.max(Ze,r?.length??1,1):Math.max(r?.length??0,1),{width:$e,height:Ve}=aa[Be],ot=!E&&!h,Ct=r?.length??0,zt=Math.min(Oe,Math.max(Ct,1)),gt=ot?zt:ze,nt=ot?pc(r??[],gt):null,Je=!!nt&&nt.length>1,et=E?ae.some(Ee=>Ee!==null&&Ee.length>1):(r??[]).some(Ee=>(Ee.words??[]).length>1),lt=x?.trim()||`${ci(Ca())} ${et?j("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):j("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,We=o.useCallback(()=>Je?Te.current.filter(Ee=>Ee!==null):be.current?[be.current]:[],[Je]),{print:ft,openNewWindow:qe,downloadHtml:pt}=Bo({getElements:We,paperW:$e,paperH:Ve,fileName:lt,onPopupBlocked:()=>{Ge(j("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."))}}),Et=Ee=>{K(Ee),R(Fe=>Fe.length>=Ee?Fe:[...Fe,...Array(Ee-Fe.length).fill(null)]),ee(null)},kt=Ee=>{R(Fe=>{const te=[...Fe];return te[Ee]=null,te}),U===Ee&&ee(null)},_t=Ee=>{if(U===null)return;const Fe=U;R(fe=>{const V=[...fe];return V[Fe]=Ee.length>0?Ee:null,V});const te=ae.findIndex((fe,V)=>V>Fe&&fe===null);ee(te!==-1?te:null)},st=E?ae.some(Ee=>Ee?.some(Fe=>!!Fe.colloquialPronunciation)):(r??[]).some(Ee=>(Ee.words??[]).some(Fe=>!!Fe.colloquialLabel)),Ie=o.useMemo(()=>Gn()?E?P.slice(0,L).flatMap(Ee=>(Ee??[]).map(Fe=>[Fe.word,Fe.homonum])):(r??[]).flatMap(Ee=>(Ee.words??[]).map(Fe=>[Fe.label,Fe.homonum])):[],[E,P,L,r]),[rt,bt]=o.useState(!1);o.useEffect(()=>{if(Ie.length===0)return;let Ee=!1;return Promise.all(Ie.map(([Fe,te])=>Xs(Fe,te))).then(Fe=>{Ee||bt(Fe.some(Boolean))},()=>{}),()=>{Ee=!0}},[Ie]);const Vt=Ie.length>0&&rt,tt=o.useMemo(()=>[...E||h?[{label:j("wordTable.filter.columns","\uCE78 \uC218"),items:Fy.map(Ee=>({value:`${Ee}\uCE78`,displayLabel:j("wordTable.filter.column",{count:Ee})})),display:"segmented"}]:[],...ot&&(r?.length??0)>0?[Nc(j,{hasPairs:et,itemCount:Ct})]:[],...Je?[Dc(j)]:[]],[j,E,h,ot,r?.length,et,Ct,Je]),Zt={...E||h?{[j("wordTable.filter.columns","\uCE78 \uC218")]:`${ze}\uCE78`}:{},...ot&&(r?.length??0)>0?{[j(et?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${zt}\uAC1C`}:{},...Je?{[j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Ec[ce]}:{}},An=(Ee,Fe)=>{Fe===j("wordTable.filter.columns","\uCE78 \uC218")?E?Et(parseInt(Ee)):Xe(parseInt(Ee)):Fe===j(et?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Pe(Sc(parseInt(Ee),Ct)):Fe===j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&ne(jc(Ee))},Bt=E?n7(ae.filter(Ee=>Ee!==null&&Ee.length>0).map(Ee=>({id:Yo(Ee),words:Ee.map(vu)}))):r??[],Wt=()=>{E&&R(Ee=>Ee.length>L?Ee.slice(0,L):Ee)},en=(Ee=!1)=>{if(ye(Ee),M&&s){const Fe=Y.trim().toLowerCase();Fe&&G(te=>te.includes(Fe)?te:[...te,Fe]),s(Y,Bt,z||void 0,Ee),Wt();return}if(g&&s){s("",Bt,void 0,Ee),Wt();return}if(s){je(!0);return}pt()},[on,cn]=o.useState(!1),[tn,Bn]=o.useState(""),Xt=tn.trim(),yt=Xt!==""&&J.includes(Xt.toLowerCase()),un=()=>{Bn(Y?j("wordTable.save.copyName",{name:Y,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),cn(!0)},Jt=()=>{!Xt||yt||!s||(s(Xt,Bt,z||void 0,!0),Wt(),cn(!1))},Tt=Bt.length===0,dn=Tt||M&&(Y===""||F),Qt=()=>{if(Tt){Ge(j("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(M&&Y===""){Ge(j("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}M&&F&&Ge(j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},pn=n.jsx(ra,{items:Bt,orientation:Be,contentTypes:se,cutLine:re,showOutline:ve,showDivLine:Ae,count:ze});return n.jsxs(n.Fragment,{children:[n.jsxs(na,{type:"page",icon:t,title:e,disc:a,className:De("word-table-block",v),children:[on&&n.jsx(jn,{size:"small",title:p??j("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>cn(!1),footer:({closeWithAnimation:Ee})=>n.jsxs(n.Fragment,{children:[n.jsx(le,{htmlType:"button",size:48,type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:Ee}),n.jsx(le,{htmlType:"button",size:48,type:"bar",variant:"main",label:j("common.save","\uC800\uC7A5"),disabled:!Xt||yt,onClick:Jt})]}),children:n.jsx(zn,{label:j("wordTable.save.nameLabel","\uC774\uB984"),value:tn,onChange:Bn,placeholder:j("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:Jt,error:yt?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Ne&&s&&C?.({defaultName:typeof e=="string"?e:j("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:pn,previewW:$e,previewH:Ve,items:Bt,existingNames:t7().map(Ee=>Ee.name),saveAsNew:ke,onSave:(Ee,Fe)=>{s(Ee,Bt,Fe,ke),Wt(),je(!1)},onCancel:()=>je(!1)}),(E||b)&&U!==null&&w?.({cellIndex:U,onConfirm:E?_t:Ee=>{if(b){const Fe=Ee[0];if(Fe){const te=new Set((r??[]).map(V=>V.id));let fe=Yo([Fe]);for(let V=2;te.has(fe);V++)fe=`${Yo([Fe])}~${V}`;b({id:fe,words:[vu(Fe)]})}}ee(null)},onClose:Ye}),!f&&n.jsx(wo,{hasImage:Vt,hasColloquial:st,contentTypes:se,orientation:Be,showOutline:ve,cutLine:re,showDivLine:Ae,setters:{setContentTypes:W,setOrientation:ie,setShowOutline:Ce,setCutLine:pe,setShowDivLine:he},showCutLine:(ot?gt:ze)>1,showDivLine2:et,middleSections:tt,extraSelected:Zt,onExtraSelect:An}),Je&&nt?n.jsx("div",{className:"word-table-block__pages",children:nt.map((Ee,Fe)=>n.jsx(ra,{orientation:Be,contentTypes:se,cutLine:re,showOutline:ve,showDivLine:Ae,count:gt,items:Ee,onRemoveItem:l,onReorder:m&&((te,fe)=>m(te+Fe*gt,fe+Fe*gt)),contentRef:te=>{Te.current[Fe]=te},pageNumber:{current:Fe+1,total:nt.length},pageNumberPosition:ce},Fe))}):n.jsx(ra,{orientation:Be,contentTypes:se,cutLine:re,showOutline:ve,showDivLine:Ae,count:ze,items:E?void 0:r??[],editCells:E?ae:void 0,activeCell:U,onActivateCell:E||b?ee:void 0,onRemoveCell:E?kt:void 0,onRemoveItem:E?void 0:l,onReorder:E?void 0:m,showFillerAdd:!!b,contentRef:be}),M&&!f&&n.jsxs(sr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[n.jsx(Tn,{variant:"custom",label:j("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:n.jsx(zn,{required:!0,value:y??"",onChange:k,placeholder:N?N+j("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):j("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:j("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:F?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:Ee=>{(Ee.key==="Tab"&&!Ee.shiftKey||Ee.key===" ")&&!(y??"").trim()&&(N??"").trim()&&(Ee.preventDefault(),k?.(N??""))}})}),n.jsx(Tn,{variant:"custom",label:j("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:n.jsx(zn,{value:_??"",onChange:B,placeholder:A?A+j("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):j("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:j("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:Ee=>{(Ee.key==="Tab"&&!Ee.shiftKey||Ee.key===" ")&&!(_??"").trim()&&(A??"").trim()&&(Ee.preventDefault(),B?.(A??""))}})})]})]}),!f&&n.jsxs("div",{className:"word-table-block__actions",children:[n.jsxs("div",{className:"word-table-block__actions-left",children:[!g&&c&&n.jsx(le,{htmlType:"button",size:40,type:"bar",label:q,onClick:c}),!g&&i&&n.jsx(le,{htmlType:"button",size:40,type:"bar",label:j("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!g&&n.jsx(le,{htmlType:"button",size:40,type:"bar",label:j("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:qe})]}),n.jsxs("div",{className:"word-table-block__actions-right",children:[H&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:H}),!g&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:j("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:ft}),p&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:p,onClick:()=>M?un():en(!0),disabled:Tt,onDisabledClick:()=>{Ge(j("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),n.jsx(le,{htmlType:"button",size:"56",type:"bar",variant:"main",label:u??j("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>en(!1),disabled:dn,onDisabledClick:Qt})]})]}),n.jsx(ea,{message:Se,type:me,onClose:Ue})]})}function xu({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:De("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,c)=>{const d=e[c];return d?n.jsx("div",{className:"word-table-thumb__cell",children:(d.words?.length?d.words:[{label:d.id}]).map((u,p)=>n.jsxs(o.Fragment,{children:[p>0&&n.jsx("span",{className:"word-table-thumb__divider"}),n.jsx("span",{className:"word-table-thumb__word body-3",children:u.label})]},p))},c):n.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function r7({items:e,name:t,description:a,createdAt:r,published:s,publishedLabel:i,shared:l,sharedLabel:c,isNew:d,publisherName:u,publishedAt:p,likeCount:m,downloadCount:h,onPublisherClick:b,selected:v,onClick:C,onMore:w,titleNode:f,className:g}){const{t:x}=ge.useTranslation(),y=f!=null,k=u!=null||p!=null||m!=null||h!=null,_=B=>{B.target===B.currentTarget&&!y&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),C?.())};return n.jsxs("div",{className:De("word-table-button",v?"word-table-button--selected":"",k?"":"word-table-button--no-footer",g),role:"button",tabIndex:0,"aria-label":t,onClick:y?void 0:C,onKeyDown:_,children:[d&&n.jsx("span",{className:"word-table-button__new-dot","aria-label":x("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),n.jsx(xu,{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:[f??n.jsx("div",{className:"word-table-button__title h4",children:t}),a&&n.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),w&&!y&&n.jsx(le,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:x("common.moreFor",{name:t}),onClick:B=>{B.stopPropagation(),w(B)}})]}),(r||s||l)&&n.jsxs("div",{className:"word-table-button__meta-row",children:[n.jsx("span",{className:"word-table-button__meta caption-1",children:r?li(r,x):""}),n.jsxs("span",{className:"word-table-button__badges",children:[s&&n.jsx(ht,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??x("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),l&&n.jsx(ht,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??x("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]})]}),k&&n.jsxs("div",{className:"word-table-button__footer",children:[n.jsxs("span",{className:"word-table-button__store-by",children:[u&&n.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:B=>{B.stopPropagation(),b?.()},children:u}),p&&n.jsx("span",{className:"training-card__date body-4",children:li(p,x)})]}),n.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&n.jsx(ht,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m)}),h!=null&&n.jsx(ht,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(h)})]})]})]})}/**
|
|
1006
|
+
`).map((l,c,d)=>n.jsxs(o.Fragment,{children:[l,c<d.length-1&&n.jsx("br",{})]},c))})}),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:no,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 v5({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:s,className:i,containerClassName:l,renderLink:c,menuLabel:d}){const{t:u}=be.useTranslation(),p=d??{open:u("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:u("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[m,h]=o.useState(!1),b=o.useId(),v=o.useRef(null);o.useEffect(()=>{if(!m)return;const f=In(()=>{const g=document.getElementById(b);g&&g.contains(document.activeElement)&&v.current?.focus(),h(!1)}),y=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,x=g=>{g.matches&&h(!1)};return y&&(y.matches&&h(!1),y.addEventListener?.("change",x)),()=>{f(),y?.removeEventListener?.("change",x)}},[m,b]);const C=l?`${l} landing-header__inner`:"landing-header__inner",w=(f,y)=>c?c(f,{onClick:y}):n.jsx("a",{href:f.href,onClick:y,"aria-current":f.current?"page":void 0,children:f.label});return n.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[n.jsxs("div",{className:C,children:[e!=null&&(()=>{const f=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:f}):n.jsx("div",{className:"landing-header__brand",children:f})})(),r.length>0&&n.jsx("nav",{className:"landing-header__links",children:r.map((f,y)=>n.jsx("span",{children:w(f)},`${y}:${f.href}`))}),n.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&n.jsx("button",{ref:v,type:"button",onClick:()=>h(f=>!f),"aria-expanded":m,"aria-controls":b,"aria-label":m?p.close:p.open,className:m?"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:b,hidden:!m,className:"landing-header__drawer",children:n.jsx("div",{className:l??void 0,children:r.map((f,y)=>n.jsx("span",{className:"landing-header__drawer-item",children:w(f,()=>h(!1))},`${y}:${f.href}`))})})]})}function x5({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,...oc(a),children:[n.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}const sa=9,_5=e=>Math.round(Math.min(sa,Math.max(0,e))/sa*100),w5=e=>e/100*sa,Ea=2,Fc=.1,k5=e=>Math.min(Ea,Math.max(0,e)),A5=.1,B5=e=>Math.round(e*1e6)/1e6;function ja(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return k5(t);const a=Math.min(sa,Math.max(0,Number(e.level)||0))/sa,r=Number(e.mainVolume);return r>0?a>0?B5(Math.min(Ea,Math.max(A5,a/r))):0:1}const Oc=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Hc(e){return Oc(e)}function Do(e){return Oc(e)*ja(e)}function Eo(e,t=qs()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,Do(e)/a)}function Ta(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=ja({level:a.level,mainVolume:a.mainVolume})),a}const Ma={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},jo=o.createContext(null);function ar(){return o.useContext(jo)}const To=e=>`${Z0()}/${e}`,zc=e=>Array.from({length:10},(t,a)=>To(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),rr={get defaultNoise(){return To("noise1.mp3")},get street(){return zc("noise2")},get restaurant(){return zc("noise3")},get buzz(){return To("noise4.mp3")}};function N5(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return rr.defaultNoise;case"street":return rr.street[t];case"restaurant":return rr.restaurant[t];case"buzz":return rr.buzz;default:return null}}function S5({noisePlayer:e,audioRef:t,playbackStateRef:a}){const r=o.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const s=o.useRef(null),[i,l]=o.useState(null),c=o.useRef(null),d=o.useRef(null),u=o.useRef(null),p=o.useRef(null),m=o.useRef(0),h=o.useRef(null),b=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),v=o.useCallback((x,g=250)=>{const k=s.current;if(!k)return;const _=d.current;if(_){d.current=null;try{k.pause()}catch{}k.src=_,k.load()}if(!k.src)return;m.current+=1,b();try{Dr(),Pa(k).then(S=>{if(s.current===k)try{r.current?.("noise",S)}catch{}})}catch{}const B=k.paused?0:Ia(k);k.paused&&Dn(k,0),k.play().catch(()=>{});const N=performance.now(),A=()=>{const S=Math.min(1,(performance.now()-N)/g);try{Dn(k,B+(x-B)*S)}catch{}S<1?p.current=requestAnimationFrame(A):p.current=null};p.current=requestAnimationFrame(A)},[b]),C=o.useCallback((x=250,g)=>{const k=s.current;if(!k||k.paused){g?.();return}const _=++m.current;b();const B=performance.now(),N=Ia(k),A=()=>{const S=Math.min(1,(performance.now()-B)/x);try{Dn(k,N*(1-S))}catch{}if(S<1)p.current=requestAnimationFrame(A);else{p.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{k.pause()}catch{}g?.()}};p.current=requestAnimationFrame(A),h.current=setTimeout(()=>{if(h.current=null,m.current===_){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{k.paused||(Dn(k,0),k.pause(),g?.())}catch{}}},x+150)},[b]);o.useEffect(()=>{const x=document.createElement("audio");return x.loop=!0,x.crossOrigin="anonymous",s.current=x,()=>{b();try{x.pause(),x.src=""}catch{}s.current=null,c.current=null,d.current=null}},[b]);const w=e?Eo(e.settings):0,f=!!e?.settings.enabled&&w>0;o.useEffect(()=>{if(!f)return;let x=0;const g=setInterval(()=>{const k=s.current;if(!k||k.paused){x=0;return}const _=t.current;if(_&&!_.paused&&!_.ended||a.current==="playing"){x=0;return}x+=1,x>=2&&(x=0,C())},400);return()=>clearInterval(g)},[C,f,t,a]),o.useEffect(()=>{const x=()=>{const g=s.current;if(document.hidden){if(g&&!g.paused){b();try{g.pause()}catch{}}return}if(!g||!g.paused)return;const k=t.current,_=!!k&&!k.paused&&!k.ended||a.current==="playing",B=u.current;_&&B?.enabled&&B.volume>0&&v(B.volume)};return document.addEventListener("visibilitychange",x),()=>document.removeEventListener("visibilitychange",x)},[b,v,t,a]),o.useEffect(()=>{u.current=e?{enabled:e.settings.enabled,volume:w,type:e.settings.type}:null},[e,e?.settings.enabled,w,e?.settings.type]);const y=o.useRef(null);return o.useEffect(()=>()=>{y.current?.(),y.current=null},[]),o.useEffect(()=>{const x=e?.settings,g=s.current;if(!g)return;const k=x?Eo(x):0;if(!x||!x.enabled||k===0){C();return}if(c.current!==x.type){const _=N5(x.type);_&&(c.current=x.type,l(_),d.current=_,C(150,()=>{if(d.current!==_)return;d.current=null,g.src=_,g.load();const B=t.current;if(B&&!B.paused){y.current?.();const N=()=>{g.removeEventListener("canplay",N),y.current===A&&(y.current=null);const S=t.current,O=u.current;S&&!S.paused&&!S.ended&&O?.enabled&&O.volume>0&&v(O.volume)},A=()=>g.removeEventListener("canplay",N);y.current=A,g.addEventListener("canplay",N)}}))}else{const _=t.current,B=!!_&&!_.paused&&!_.ended||a.current==="playing";if(B&&d.current)v(k);else if(B&&g.paused&&g.src)v(k);else if(!g.paused)if(!B)C();else{b();const N=Ia(g),A=performance.now(),S=()=>{const O=Math.min(1,(performance.now()-A)/150);try{Dn(g,N+(k-N)*O)}catch{}O<1?p.current=requestAnimationFrame(S):p.current=null};p.current=requestAnimationFrame(S)}}},[e?.settings,e?.settings.enabled,w,e?.settings.type,b,v,C,t,a,u]),o.useEffect(()=>{const x=s.current;if(x)try{x.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:s,activeNoiseUrl:i,noiseSettingsRef:u,cancelNoiseFade:b,fadeInNoise:v,fadeOutNoise:C}}function D5({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:i,setPlaybackState:l,setStateLocal:c,fadeInNoise:d,fadeOutNoise:u,noiseSettingsRef:p,onDoneRef:m,handleEndRef:h}){const b=o.useRef(null),v=o.useRef(0),C=o.useRef(null),w=o.useRef(0),f=o.useRef(!1);o.useEffect(()=>()=>{w.current++;try{if(C.current&&(cancelAnimationFrame(C.current),C.current=null),f.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}f.current=!1}}catch{}},[]);const y=(k,_=1)=>{try{const B=(k||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(k||"").length);return Math.max(700,Math.round(B*300/Math.max(.25,_)))}catch{return 1200}},x=o.useCallback(k=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!1)}catch{}return}const _=window.speechSynthesis,B=++w.current;try{try{_.cancel()}catch{}const N=k??e,A=Array.isArray(N)?N.filter(E=>!!E):[N||""];A.length===0&&A.push("");const S=Math.max(.3,Math.min(3,t));v.current=A.reduce((E,M)=>E+y(M,S||1),0),b.current=performance.now(),i(0),l("playing"),c("playMode");const O=p.current;O?.enabled&&(O?.volume??0)>0&&d(O.volume);const H=()=>{try{const E=b.current||performance.now(),M=performance.now()-E,I=v.current||1200,G=Math.min(1,M/I);try{r.current&&(r.current.style.left=`${G*100}%`),s.current&&s.current.style.setProperty("--progress",String(G))}catch{}G<1&&(C.current=requestAnimationFrame(H))}catch{}},j=()=>{if(B===w.current)try{C.current&&(cancelAnimationFrame(C.current),C.current=null),i(1),l("stopped");try{h.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},q=E=>{const M=new SpeechSynthesisUtterance(A[E]);try{M.rate=S}catch{}try{M.volume=Math.max(0,Math.min(1,a))}catch{}M.onend=()=>{if(B===w.current){if(E<A.length-1){try{q(E+1)}catch{j()}return}j()}},M.onerror=()=>{j()},M.onstart=()=>{if(!(E>0))try{C.current&&(cancelAnimationFrame(C.current),C.current=null),C.current=requestAnimationFrame(H)}catch{}},f.current=!0,_.speak(M)};try{q(0)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,t,a,d,r,s,i,l,c,p,m,h]),g=o.useCallback(()=>{w.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}C.current&&(cancelAnimationFrame(C.current),C.current=null),u(),b.current=null}catch{}l("stopped"),c("active"),i(0)},[u,l,c,i]);return{startTTS:x,stopTTS:g}}async function E5(e,t,a){let r=null;try{const s=window.AudioContext||window.webkitAudioContext;r=new s;const i=await r.decodeAudioData(e.slice(0)),l=i.numberOfChannels>0?i.getChannelData(0):null;if(!l)return null;const c=a&&a>0?Math.min(l.length,Math.floor(a*i.sampleRate)):l.length,d=Math.max(t,c),u=Math.floor(d/t)||1;return new Array(t).fill(0).map((p,m)=>{const h=m*u,b=Math.min(h+u,d);let v=0;for(let C=h;C<b;C++){const w=Math.abs(l[C]);w>v&&(v=w)}return v})}catch{return null}finally{try{r?.close?.()}catch{}}}async function Vc(e,t,a){try{const r=await fetch(e);if(r.ok===!1)return null;const s=await r.arrayBuffer();return await E5(s,t,a)}catch(r){try{const s=ti(r)}catch{}return null}}const Wc=45,j5=74,T5=2;function La(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function Mo(e){return La(e)/45}const qc=4;function M5(e){const{src:t,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:i,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:d=0,mainVolume:u=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,h=o.useRef(null),b=o.useRef(null),[v,C]=o.useState(null),[w,f]=o.useState(!1),[y,x]=o.useState(null),[g,k]=o.useState(2),[_,B]=o.useState(0),[N,A]=o.useState(null),[S,O]=o.useState(!1),[H,j]=o.useState(!1),q=3,E=3,M=1,I=300,G=o.useRef(0),Z=o.useCallback(()=>{const ie=h.current,W=b&&b.current?b.current:ie?ie.closest(".audio-player__wave"):null,oe=W?W.getBoundingClientRect():ie?ie.getBoundingClientRect():null,pe=oe?oe.width:0,xe=oe?Math.max(100,oe.width):320,ge=oe?oe.height:0,Be=Math.max(M,Math.min(I,Math.floor((xe+E)/(q+E)))),he=Be*q,ye=Math.max(0,Be-1),Te=Math.max(0,ye>0?(xe-he)/ye:E);return{bars:Be,gap:Te,height:ge,width:pe}},[]),U=o.useRef(void 0),z=o.useRef(null),K=o.useCallback(async(ie,W,{quiet:oe=!1}={})=>{const pe=++G.current,xe=()=>G.current===pe;try{if(oe||f(!1),U.current=ie,!ie){xe()&&C(null);return}let ge=W;if(!ge)try{for(let ye=0;ye<4&&!(h.current||b.current);ye++)await new Promise(Te=>requestAnimationFrame(Te));await new Promise(ye=>requestAnimationFrame(ye));const he=Z();he.height>0&&B(he.height),ge=he.bars,k(he.gap)}catch{ge=120}z.current=ge;const Be=await Vc(ie,ge);if(!xe())return;if(!Be){C(null),f(!1);return}C(Be),x(ge),f(!0)}catch{if(!xe())return;C(null),f(!1)}},[f,C,B,k,x,Z]);o.useEffect(()=>{const ie=b.current;if(!ie||typeof ResizeObserver>"u")return;let W=null;const oe=new ResizeObserver(()=>{W!==null&&cancelAnimationFrame(W),W=requestAnimationFrame(()=>{W=null;try{const pe=Z();if(pe.width<=0||(pe.height>0&&B(pe.height),z.current===null||pe.bars===z.current))return;const xe=U.current;k(pe.gap),xe?K(xe,pe.bars,{quiet:!0}).catch(()=>{}):z.current=pe.bars}catch{}})});return oe.observe(ie),()=>{oe.disconnect(),W!==null&&cancelAnimationFrame(W)}},[Z,K]),o.useEffect(()=>{const ie=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;K(typeof ie=="string"?ie:void 0).catch(()=>{}),j(!1)},[t,a,K]),o.useEffect(()=>{let ie=!1;if(O(!1),!i||!y){A(null);return}const W=d>0?d*(c||1):void 0;return Vc(i,y,W).then(oe=>{ie||(A(oe),oe||O(!0))}).catch(()=>{ie||(A(null),O(!0))}),()=>{ie=!0}},[i,y,d,c]);const L=Math.max(0,Math.min(1,u)),D=o.useMemo(()=>v&&v.length&&Math.max(...v)||1,[v]),F=y||40,P=o.useMemo(()=>Array.from({length:F}).map((ie,W)=>{const oe=v&&v[W]!=null?v[W]:null,pe=oe==null?null:Math.min(1,oe/D*L),xe=pe!=null&&_>0&&La(pe)<=qc,ge=pe==null?.15:xe?0:Mo(pe),Be=F>1?W/(F-1):0;return n.jsx("div",{className:xe?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ge,"--i":W,"--mix":Be}},W)}),[F,v,D,L,_]),R={"--progress":String(Math.max(0,Math.min(1,r)))},$=i?Math.max(1,l):1,ee={"--bar-gap":`${g}px`,"--wave-h":`${La($)}px`,"--wave-h1":`${Wc}px`},J=L*Math.max(0,l)/qs(),Y=w&&(i?!!N||S:!0);o.useEffect(()=>{Y&&j(!0)},[Y]);const ne=H?w:Y;o.useEffect(()=>{p?.(ne)},[ne,p]);const Ce=y||40,re=o.useMemo(()=>Array.from({length:Ce}).map((ie,W)=>{const oe=N&&N[W]!=null?N[W]:null,pe=oe==null?0:oe/D*J,xe=_>0&&La(pe)<=qc,ge=xe?0:Mo(pe),Be=Ce>1?W/(Ce-1):0;return n.jsx("div",{className:xe?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ge,"--i":W,"--mix":Be}},W)}),[Ce,N,D,J,_]);return n.jsxs("div",{className:"audio-player__wave",ref:b,style:ee,children:[i&&n.jsx("div",{className:`audio-player__wave-noise ${Y?"is-ready":""}`,"aria-hidden":"true",children:re}),m&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${ne?"is-ready":""}`,ref:h,children:P}),n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${ne?"is-ready":""}`,ref:s,style:R,children:P})]})]})}const L5={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"};function Lo(e,t){return new Promise((a,r)=>{const s=document.createElement("audio");let i=!1;const l=()=>{try{s.src=""}catch{}},c=()=>{if(i)return;i=!0;const u=isFinite(s.duration)&&s.duration||0;l(),a(u)},d=u=>{i||(i=!0,l(),t.rejectOnError?r(new Error(u)):a(0))};s.addEventListener("loadedmetadata",c),s.addEventListener("error",()=>d("audio load failed")),setTimeout(()=>d("audio load timeout"),t.timeoutMs),s.src=e})}const $5=2e3;function Uc(e,t=$5){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 R5({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=o.useRef(!1),s=o.useRef([]),i=o.useCallback(d=>{if(r.current=d,!d||!s.current.length)return;const u=s.current;s.current=[];for(const p of u)p(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),c=o.useCallback(()=>!e&&!t||r.current?Promise.resolve(!0):new Promise(d=>{const u=m=>{clearTimeout(p),s.current=s.current.filter(h=>h!==u),d(m)},p=setTimeout(()=>u(!0),a);s.current.push(u)}),[e,t,a]);return o.useEffect(()=>()=>{const d=s.current;s.current=[];for(const u of d)u(!1)},[]),{onReadyChange:i,waitForReady:c,markNotReady:l}}function P5(){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 I5({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 F5({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 c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/l))}function O5(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function H5({ended:e,completedByEnd:t}){return!!e||!!t}function z5(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function V5(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function W5(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),c=a(l,t);c&&s.push({code:l,resolvedPath:c})}}return s}function q5(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}function U5({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:s}){const i=o.useRef(null),l=o.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=o.useCallback(()=>{if(i.current!==null)return;const u=()=>{try{const p=e.current,m=Array.isArray(r.current)?r.current[s.current||0]:void 0,h=m&&Number.isFinite(m.duration)&&(m.duration??0)>0?0:q5(p),b=t.current;if(h===null)try{b&&b.style.visibility!=="hidden"&&(b.style.visibility="hidden")}catch{}else{const v=F5({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:s.current,audioDuration:h});try{b&&(b.style.visibility&&(b.style.visibility=""),b.style.left=`${v*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(v))}catch{}}}catch{}i.current=requestAnimationFrame(u)};i.current=requestAnimationFrame(u)},[e,t,a,r,s]),d=o.useCallback(u=>{l();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${u*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(u))}catch{}},[l,t,a]);return o.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:d}}function $o({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:s=!1,ttsText:i=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:d=!0}){const{t:u}=be.useTranslation(),p=e,m=ar(),h=o.useRef(m?.registerAnalyser);o.useEffect(()=>{h.current=m?.registerAnalyser});const b=o.useRef(null),v=o.useRef(null),C=o.useRef(null),w=P5(),f=o.useRef(null),y=o.useRef(!1),x=o.useRef(0),g=o.useRef(null),{ref:k,rect:_,show:B,hide:N}=I5();o.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[A,S]=o.useState(!1),[O,H]=o.useState("idle"),[j,q]=o.useState("stopped"),E=o.useRef("stopped");o.useEffect(()=>{E.current=j},[j]);const[M,I]=o.useState(0),[G,Z]=o.useState("active"),U=o.useRef(!1);o.useEffect(()=>{if(G!=="playMode"||!U.current)return;U.current=!1;const V=typeof document<"u"?document.activeElement:null;if(V&&V!==document.body)return;const se=C.current?.querySelectorAll("button")[1];try{se?.focus()}catch{}},[G]);const[z,K]=o.useState(null),[L,D]=o.useState(null),[F,P]=o.useState(0),[R,$]=o.useState(!1),[ee,J]=o.useState(0),Y=m?.playbackRate??1,ne=m?.mainVolume??1,Ce=m?Do(m.settings):0,re=m?Hc(m.settings):ne,[ie,W]=o.useState("idle"),[oe,pe]=o.useState(""),[xe]=o.useState("top"),ge=o.useRef(null),Be=o.useRef(0),he=o.useRef(null),{start:ye,stop:Te,settleTo:Oe}=U5({audioRef:b,fillRef:v,waveProgressRef:he,sourcesRef:ge,currentIndexRef:Be}),{onReadyChange:Pe,waitForReady:ce,markNotReady:ae}=R5({showSoundWaveForm:c,showNoiseWaveForm:d}),Ne=o.useRef(null),je=o.useRef(s),Ae=o.useRef(r),ve=o.useRef(null),Se=o.useRef(!1),[me,Ge]=o.useState(!1),Ue=o.useCallback(V=>{Se.current=V,Ge(V)},[]),Ye=o.useRef(null),{activeNoiseUrl:Ze,noiseSettingsRef:Xe,fadeInNoise:ze,fadeOutNoise:$e}=S5({noisePlayer:m,audioRef:b,playbackStateRef:E}),{startTTS:Ve,stopTTS:ot}=D5({ttsText:i,playbackRate:Y,mainVolume:re,fillRef:v,waveProgressRef:he,setProgress:I,setPlaybackState:q,setStateLocal:Z,fadeInNoise:ze,fadeOutNoise:$e,noiseSettingsRef:Xe,onDoneRef:Ae,handleEndRef:Ye});o.useEffect(()=>{ft.current=ot});const Ct=V=>{if(typeof window>"u"||!window.speechSynthesis){try{pe(u("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}Ve(V);return}kt("tts"),Ve(V)},zt=Array.isArray(t)?t.filter(Boolean):t?[t]:[],gt=(!zt||zt.length===0)&&!!i,nt=Array.isArray(z)&&z.length>0?z:Array.isArray(L)&&L.length>0?L:null,Je=Math.max(Array.isArray(nt)?nt.length:0,zt.length),et=o.useRef(!0);o.useEffect(()=>(et.current=!0,()=>{et.current=!1}),[]);const lt=o.useRef(0),We=()=>{lt.current+=1,x.current+=1},ft=o.useRef(null),qe=o.useRef(null),pt=o.useRef(null),Et=o.useRef(null);Et.current||(Et.current=()=>{pt.current=null;const V=b.current;if(qe.current==="audio"&&V&&!V.paused){lt.current+=1,x.current+=1;try{V.pause()}catch{}et.current&&q("paused")}else if(qe.current==="tts")try{ft.current?.()}catch{}});const kt=V=>{qe.current=V,pt.current=Ga(Et.current)},_t=()=>{pt.current?.(),pt.current=null};o.useEffect(()=>()=>{Et.current&&Ka(Et.current)},[]);const st=o.useCallback(async(V,se=3,ue=50)=>{const we=lt.current;for(let ke=0;ke<se;ke++){if(!et.current||we!==lt.current)return!1;try{return kt("audio"),await V.play(),!0}catch(Le){if((Le instanceof Error||typeof Le=="object"&&Le&&"name"in Le?Le.name:void 0)==="AbortError"){if(we!==lt.current)return!1;await new Promise(at=>setTimeout(at,ue));continue}try{pe(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{pe(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[u]),Ie=o.useCallback(()=>{const V=b.current;if(!V)return;const se=()=>{q("playing"),Z("playMode"),$(!0),ye();try{Dr(),Pa(V).then(Le=>{if(et.current)try{h.current?.("main",Le)}catch{}})}catch{}const ke=Xe.current;ke?.enabled&&(ke?.volume??0)>0&&ze(ke.volume)},ue=()=>{H5({ended:!!V?.ended,completedByEnd:Se.current})||(q("paused"),Te(),$e())},we=()=>{try{const ke=ge.current,Le=O5(ke,Be.current);if(Le!==null){Be.current=Le,P(Le),$(!0);const at=ke?.[Le]&&ke[Le].src;if(at&&V){V.src=at,V.load(),st(V).catch(()=>{});return}}}catch{}q("stopped"),I(1);try{if(V)try{V.currentTime=0}catch{}}catch{}Te(),$(!1),$e();try{!je.current&&Ye.current&&Ye.current()}catch{}};return V.addEventListener("play",se),V.addEventListener("pause",ue),V.addEventListener("ended",we),()=>{try{V.removeEventListener("play",se),V.removeEventListener("pause",ue),V.removeEventListener("ended",we),Te()}catch{}}},[ze,$e,st,Xe,ye,Te]);o.useEffect(()=>Ie(),[Ie]),o.useEffect(()=>{je.current=s},[s]),o.useEffect(()=>{Ae.current=r},[r]),o.useEffect(()=>{if(s||G!=="active")return;const V=g.current;if(!V)return;let se=null;const ue=requestAnimationFrame(()=>{try{const we=V.getTotalLength();if(!we)return;const ke=we*.2;V.style.strokeDasharray=`${we-ke} ${ke}`;const Le="triFlow_"+Math.random().toString(36).slice(2);se=document.createElement("style"),se.textContent=`@keyframes ${Le}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${we}}}`,document.head.appendChild(se),V.style.animation=`${Le} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(ue),se?.remove()}},[G,s]),o.useEffect(()=>{ge.current=z},[z]),o.useEffect(()=>{Be.current=F},[F]),o.useEffect(()=>{const V=C.current,se=f.current;if(!V||!se)return;let ue=null;const we=32,ke=60,Le=()=>{try{const vt=Array.from(V.querySelectorAll(":scope > .button"));let ut=0;vt.forEach(hn=>{if(hn===se)return;const dr=hn.getBoundingClientRect();ut+=dr.width});const Nt=V.getBoundingClientRect().width,qt=Math.max(0,Math.floor(Nt-ut-8)),Rt=Je;if(!Rt||qt<=0){Array.from(se.children).forEach(hn=>{try{hn.style.width=""}catch{}});return}let mn=Math.floor(qt/Rt);mn>ke&&(mn=ke),mn<we&&(mn=Math.max(we,Math.floor(qt/Rt))),Array.from(se.querySelectorAll(".button")).forEach(hn=>{try{hn.style.width=`${mn}px`}catch{}})}catch{}},at=requestAnimationFrame(Le);try{ue=new ResizeObserver(()=>{requestAnimationFrame(Le)}),ue.observe(V),ue.observe(se),window.addEventListener("resize",Le)}catch{}return()=>{try{cancelAnimationFrame(at)}catch{}try{ue&&(ue.disconnect(),ue=null)}catch{}try{window.removeEventListener("resize",Le)}catch{}}},[z,L,Je]),o.useEffect(()=>()=>{try{Ne.current&&(clearTimeout(Ne.current),Ne.current=null),ve.current&&(clearTimeout(ve.current),ve.current=null)}catch{}},[]);const rt=(V,se)=>{K(V),J(se),ae(),D(z5(V)),ge.current=V},bt=async(V,se)=>{Ue(!1),y.current=!1,V.src=se,V.load(),await Uc(V),await ce()!==!1&&(S(!1),await st(V),Z("playMode"),P(0),$(!0))},Vt=async(V,se=!1)=>{const ue=b.current;S(!0),H("measuring_duration");try{const we=await Lo(V,{timeoutMs:1e4,rejectOnError:!0});rt([{src:V,objectUrl:null,duration:we}],we),H("ready"),se&&ue&&await bt(ue,V)}finally{y.current=!1,S(!1)}},tt=async(V,se=!1)=>{const ue=b.current;S(!0),H("measuring_duration");try{const we=await Promise.all(V.map(Le=>Lo(Le,{timeoutMs:1e4})));if(!et.current)return;const ke=V.map((Le,at)=>({src:Le,objectUrl:null,duration:we[at]||0}));rt(ke,V5(ke)),H("ready"),se&&ue&&ke.length>0&&await bt(ue,ke[0].src)}finally{y.current=!1,S(!1)}},Zt=async(V=!1,se=!0)=>{const ue=b.current,we=t?Array.isArray(t)?t:[t]:[];if(!we||we.length===0||!we.some(Boolean))return!1;if(y.current)return null;y.current=!0,se&&S(!0),H("resolving");try{const ke=W5(t,a,zs),Le=[];let at=0;for(const vt of ke){let ut=vt.src??null,Nt=null;if(!ut&&vt.resolvedPath){try{H("getting_signed_url"),ut=await Vs(vt.resolvedPath)}catch{ut=null}if(!et.current)return!1;if(!ut)try{H("downloading");const Rt=await Ws(vt.resolvedPath);if(!et.current)return!1;if(Rt){const mn=Rt instanceof Blob?Rt:new Blob([Rt]);Nt=w.track(URL.createObjectURL(mn)),ut=Nt}}catch{H("error");try{pe(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),Z("active")}catch{}}}if(!ut)continue;let qt=0;try{H("measuring_duration"),qt=await Lo(ut,{timeoutMs:3e3})}catch{qt=0}if(!et.current){if(Nt)try{URL.revokeObjectURL(Nt)}catch{}for(const Rt of Le)if(Rt.objectUrl)try{URL.revokeObjectURL(Rt.objectUrl)}catch{}return!1}at+=qt||0,Le.push({...vt,src:ut,objectUrl:Nt,duration:qt})}if(rt(Le,at),Le.length>0&&V&&ue){const vt=Le[0];Ue(!1);try{w.keepOnly(Le.map(ut=>ut.objectUrl))}catch{}if(H("ready"),y.current=!1,vt.src&&ue)try{if(ue.src=vt.src,ue.load(),await Uc(ue),await ce()===!1)return!1;se&&S(!1),ue&&await st(ue)}catch{se&&S(!1)}else se&&S(!1);Z("playMode"),P(0),$(!0)}return Le.length>0}finally{y.current=!1,se&&S(!1),H(ke=>ke==="ready"?"ready":"idle")}},An=async()=>{const V=b.current;if(!(!V&&!gt)){if(gt){const se=window.speechSynthesis;if(G==="active"){const ue=Br(),we=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(ue&&we.length>0){Z("load"),S(!0),H("resolving"),y.current=!0;try{const ke=await Promise.all(we.map(Le=>Promise.resolve(ue(Le))));ke.length>1?await tt(ke,!0):await Vt(ke[0],!0)}catch{y.current=!1,S(!1),Z("active"),Ct(we.length>0?we:void 0)}return}Ct(we.length>0?we:void 0);return}if(G==="playMode"){const ue=!!se&&(se.speaking||se.paused)&&!(V&&(V.currentSrc||V.getAttribute("src")));if(V&&!ue){if(V.paused){if(Se.current){await Bt();return}await st(V),q("playing")}else We(),V.pause(),q("paused");return}try{if(se&&se.paused)try{kt("tts"),se.resume(),q("playing")}catch{}else try{se.pause(),q("paused")}catch{}}catch{}}return}if(G==="active"){if(s&&Array.isArray(ge.current)&&ge.current.length>0){const ue=ge.current[0];try{if(ue.src&&V)try{V.src=ue.src,V.load(),V&&await st(V)}catch{}Z("playMode"),P(0),$(!0);return}catch{}}Z("load");let se;try{se=await Zt(!0)}catch{se=!1}if(se===!1&&et.current){try{pe(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}Z("active")}return}if(G!=="load"&&(G==="playMode"||G==="active"))try{if(V&&V.paused){if(Se.current){await Bt();return}V&&await st(V),q("playing")}else V&&(We(),V.pause(),q("paused"))}catch(se){(se instanceof Error||typeof se=="object"&&se&&"name"in se)&&se.name}}},Bt=async()=>{const V=b.current;if(V)try{const se=ge.current;if(Array.isArray(se)&&se.length>1){await Xt(0);return}Ue(!1);try{V.currentTime=0}catch{}V&&await st(V),q("playing"),Z("playMode")}catch{}},Wt=()=>{if(We(),_t(),gt){ot();return}const V=b.current;try{if(V){try{V.pause()}catch{}try{V.currentTime=0}catch{}}}catch{}$e(),q("stopped"),Z("active"),I(0),$(!1)},en=async(V,{sameSegment:se=!1}={})=>{const ue=++x.current,we=b.current,ke=ge.current?.[V]?.src;try{if(Ue(!1),P(V),$(!0),Be.current=V,!ke||!we||(se||ae(),we.src=ke,we.load(),!se&&await ce()===!1)||ue!==x.current||(await st(we),ue!==x.current))return;q("playing"),Z("playMode")}catch{}},on=async()=>{const V=ge.current,se=Be.current||0;if(!V||se<=0){await Bt();return}await en(se-1)},cn=async()=>{const V=ge.current,se=Be.current||0;if(!V||se>=V.length-1){Wt();return}await en(se+1)},tn=()=>{if(Se.current)return;const V=200,se=340;Ue(!0),We(),_t();try{I(1)}catch{}Oe(1);try{W("hold")}catch{}try{const ue=b.current,we=gt&&!!ue?.src;if(!gt||we){if(ue){ue.pause();try{ue.currentTime=0}catch{}}}else ot();$e()}catch{}try{q("stopped")}catch{}if($(!1),!je.current)try{ve.current&&(clearTimeout(ve.current),ve.current=null),ve.current=setTimeout(()=>{try{W("out")}catch{}ve.current=setTimeout(()=>{try{typeof Ae.current=="function"&&Ae.current(!0)}catch{}try{W("idle")}catch{}ve.current=null},se)},V)}catch{}};o.useEffect(()=>{Ye.current=tn});const Bn=o.useCallback(()=>pe(""),[]),Xt=async V=>{(ge.current||[])[V]&&await en(V,{sameSegment:V===Be.current})},yt=j==="playing",un=o.useMemo(()=>{if(!L||L.length<=1)return L;const V=L[F];return V?[V]:L},[L,F]),Jt=s===!0;o.useEffect(()=>{try{const V=b.current;V&&typeof V.playbackRate=="number"&&(V.playbackRate=Y||1)}catch{}},[Y]);const Tt=o.useRef({raf:null,timer:null});o.useEffect(()=>{const V=b.current;if(!V)return;const se=Math.max(0,Math.min(1,re)),ue=Tt.current,we=()=>{ue.raf!==null&&(cancelAnimationFrame(ue.raf),ue.raf=null),ue.timer!==null&&(clearTimeout(ue.timer),ue.timer=null)};we();const ke=Ia(V);if(V.paused||Math.abs(ke-se)<.001||typeof requestAnimationFrame!="function"){try{Dn(V,se)}catch{}return}const Le=performance.now(),at=()=>{const vt=Math.min(1,(performance.now()-Le)/150);try{Dn(V,ke+(se-ke)*vt)}catch{}ue.raf=vt<1?requestAnimationFrame(at):null};return ue.raf=requestAnimationFrame(at),ue.timer=setTimeout(()=>{we();try{Dn(V,se)}catch{}},200),we},[re]);const dn=ie==="hold",Qt=ie==="out",pn=G==="playMode"&&!A&&!me||dn||Qt,Ee=j!=="stopped"||dn||Qt,Fe=j==="paused",te=Math.max(0,Math.min(100,(M||0)*100)),fe=De("audio-player__fill",pn?"is-visible":"",Ee?"is-expanded":"",Fe?"is-paused":"",Qt?"is-out":"");return n.jsxs("div",{className:`audio-player ${Jt?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[n.jsxs("div",{className:`audio-player__panel ${yt?"is-playing":""} ${A?"is-loading":""} ${G!=="default"?"is-revealed":""}`,children:[A?n.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[n.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),n.jsx("span",{className:"audio-player__loading-text",children:u(`training.audioStatus.${O}`,{defaultValue:L5[O]})})]}):null,G==="active"?n.jsx("button",{className:"audio-player__button",type:"button",disabled:Jt,onClick:()=>{U.current=Ja(),N(),An()},"aria-label":typeof p=="string"?p:u("training.listen","\uB4E3\uAE30"),onMouseEnter:B,onMouseLeave:N,onFocus:B,onBlur:N,children:n.jsx("span",{ref:k,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:g,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.jsx(bn,{anchorRect:_,text:typeof p=="string"&&p?p:u("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),n.jsxs("div",{className:`audio-player__play ${G==="playMode"||yt?"is-visible":""}`,inert:!(G==="playMode"||yt)||void 0,children:[n.jsxs("div",{ref:C,className:"audio-player__buttons",children:[n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:on,ariaLabel:u("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:G!=="playMode"}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:yt?"pause":"play",onClick:An,ariaLabel:u("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":yt,width:"60px",variant:"transparent-white",disabled:G!=="playMode"}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Wt,ariaLabel:u("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:G!=="playMode"}),Je>1?n.jsx("div",{ref:f,className:"audio-player__source-buttons",children:Array.from({length:Je}).map((V,se)=>n.jsx(le,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(se+1),onClick:()=>{try{Xt(se)}catch{}},ariaLabel:u("training.sourcePlay",{n:se+1}),variant:"transparent-white",selected:R&&F===se,disabled:G!=="playMode"||!(Array.isArray(z)&&z[se]),showTooltipInfo:!0},se))}):null,!Array.isArray(z)||z.length<=1?n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Bt,ariaLabel:u("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:G!=="playMode"}):null,n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:cn,ariaLabel:u("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:G!=="playMode"}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:tn,ariaLabel:u("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:G!=="playMode"})]}),n.jsxs("div",{className:"audio-player__slider",children:[n.jsx("div",{className:fe,ref:v,style:{left:`${te}%`},"aria-hidden":"true"}),(c||d)&&n.jsx(M5,{segments:un,progress:M,totalDuration:ee,waveProgressRef:he,showSoundWaveForm:c,noiseSrc:d&&m?.settings.enabled&&Ce>0?Ze:null,noiseRatio:m?ja(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:ne,onReadyChange:Pe})]})]}),n.jsx("audio",{ref:b,crossOrigin:"anonymous",preload:"auto"})]}),!c&&n.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[n.jsx(Ke,{icon:"triangle-alert",size:14}),u("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),n.jsx(ea,{message:oe,position:xe,onClose:Bn})]})}function or(e){const{t}=be.useTranslation(),{text:a,label:r,anchorRect:s=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[d,u]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",d)}catch{}},[d]);const{increase:p,decrease:m,canIncrease:h,canDecrease:b,fontSize:v,lineHeight:C}=Qi({storageKey:"tooltip-fontScale"}),w=o.useCallback(()=>u(k=>k==="dark"?"light":"dark"),[]),f=o.useCallback(k=>{try{k.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),y=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],x={fontSize:`${v}px`,lineHeight:`${C}px`,"--tt-line-height":`${C}px`,"--tt-marker-size":"28px"},g=n.jsxs("div",{className:`tooltip-textbox__root ${d==="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:x,children:y.map((k,_)=>n.jsxs("div",{className:"tooltip-textbox__line",children:[y.length>1?n.jsx("div",{className:"tooltip-textbox__marker",children:n.jsx("span",{className:"tooltip-textbox__line-number button-1",children:_+1})}):null,n.jsx("span",{className:"tooltip-textbox__line-text",children:k})]},_))})]}),n.jsxs("div",{className:"tooltip-textbox__buttons",children:[n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:m,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!b}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:p,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!h}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:d==="dark"?"moon":"sun-medium",onClick:w,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:d==="dark"?"transparent-white":"transparent-gray"}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:f,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:d==="dark"?"transparent-white":"transparent-gray"})]})]});return s?n.jsx(an,{anchorRect:s,className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:g}):n.jsx("div",{className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,children:g})}function Gc({state:e="disabled"}){const{t}=be.useTranslation();return n.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[n.jsx("div",{className:"bullet__dot",children:n.jsx(Ke,{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 Kc(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 c=()=>{i=null;const d=r.current(),u=d?Array.from(d.querySelectorAll(gn)).find(p=>!p.closest('[aria-hidden="true"]')):void 0;if(u){try{u.focus()}catch{}if(document.activeElement===u)return}--l>0&&(i=requestAnimationFrame(c))};return i=requestAnimationFrame(c),()=>{i!==null&&cancelAnimationFrame(i);const d=document.activeElement;if(!d||d===document.body||!document.contains(d)||d.closest(".tooltip-content")){const u=s.current();if(u)try{u.focus()}catch{}}}},[e])}function Yc({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:c,usePlayAllBtn:d=!1,onPlayAll:u,playAllActive:p=!1}){const{t:m}=be.useTranslation(),h=Yt("(max-width: 767px)"),b=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),v=`training-step__title-row training-step__title-row--${r}`.trim(),C=o.useRef(null),[w,f]=o.useState(!1),[y,x]=o.useState(null),[g,k]=o.useState(null);Kc(w&&!!y,()=>{if(typeof document>"u")return null;const S=Array.from(document.querySelectorAll(".tooltip-content"));for(let O=S.length-1;O>=0;O--)if(S[O].querySelector(".tooltip-textbox__root"))return S[O];return null},()=>C.current?.querySelector("button")??null);const _=o.useRef(i);o.useEffect(()=>{_.current=i});const B=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]),N=o.useCallback(()=>{f(!1),x(null),k(null)},[]);o.useEffect(()=>{if(!w)return;let S;try{typeof _.current=="function"&&(S=_.current())}catch{}if(S===!1){N();return}k(typeof S<"u"&&S!==null?S:null)},[B]);const A=o.useCallback(()=>{let S;try{typeof i=="function"&&(S=i())}catch{}if(S!==!1){if(k(typeof S<"u"&&S!==null?S:l),!C.current){f(O=>!O);return}if(w)f(!1),x(null),k(null);else{const O=C.current.getBoundingClientRect();x(O),f(!0)}}},[i,l,w]);return n.jsxs("div",{className:v,children:[n.jsx("p",{className:b,children:n.jsx("span",{className:"training-step__title-text",children:e??t})}),s||d?n.jsxs("div",{className:"title-controls",children:[n.jsxs("div",{className:"title-buttons",children:[d&&n.jsx(le,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:u,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),s&&n.jsx("div",{ref:C,children:n.jsx(le,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:A,className:w?"is-selected":void 0,"aria-expanded":w,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),w&&n.jsx(or,{text:g??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:y,onClose:N,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Ro(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Vn({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:s={},children:i,className:l="",onDone:c=void 0,useTitleFaded:d=void 0}){const{t:u}=be.useTranslation(),[p,m]=o.useState(()=>Ro(e,t));o.useEffect(()=>{const k=Ro(e,t);if(k!==p){const _=setTimeout(()=>m(k),0);return()=>clearTimeout(_)}},[e,t,p]);const h=o.useCallback((...k)=>{Ro(e,t)==="done"||p==="done"||typeof c=="function"&&c(...k)},[e,t,p,c]),[b,v]=o.useState(!1),[C,w]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),f=o.useCallback(k=>{if(!k)return null;try{const _=k;if(typeof k=="object"&&(_.currentTarget||_.target)&&(_.nativeEvent||_.type)){const A=_.currentTarget??_.target;if(A&&typeof A.getBoundingClientRect=="function")return A.getBoundingClientRect()}if(k instanceof DOMRect)return k;const B=k;if(B&&typeof B.getBoundingClientRect=="function")return B.getBoundingClientRect();const N=k?.current;return N&&typeof N.getBoundingClientRect=="function"?N.getBoundingClientRect():null}catch{return null}},[]),y=o.useCallback((k,{text:_="",label:B="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:N=!1,alignX:A="center",alignY:S="top"}={})=>{const O=f(k);w({text:_,label:B,anchorRect:O,backdrop:N,alignX:A,alignY:S}),v(!0)},[f]),x=o.useCallback(()=>{v(!1),w(k=>({...k,anchorRect:null}))},[]),g=o.Children.map(i,k=>{if(o.isValidElement(k)){const _=k;if(typeof _.type=="string")return _;const B=_.props??{},N=typeof B.onDone=="function"?B.onDone:h,A=typeof B.disabled=="boolean";let S=p==="disabled";return A&&(S=!!B.disabled),o.cloneElement(_,{onDone:N,disabled:S,showTooltip:y,hideTooltip:x})}return k});return n.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[n.jsx(Gc,{state:p}),n.jsxs("div",{className:"training-step__content",children:[n.jsx(Yc,{state:p,title:r,...s,useFaded:d}),g]}),b?n.jsx(an,{anchorRect:C.anchorRect,backdrop:C.backdrop,onClose:x,ariaLabel:u("tooltip.textbox","\uBCF8\uBB38"),children:n.jsx(or,{text:C.text,onClose:x})}):null]})}function Zc({context:e,state:t="disabled",theme:a="light"}){const{t:r}=be.useTranslation(),[s,i]=o.useState("disabled"),[l,c]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const d=()=>c(j=>j==="dark"?"light":"dark"),{increase:u,decrease:p,canIncrease:m,canDecrease:h,fontSize:b,lineHeight:v}=Qi({storageKey:"textbox_fontScale"}),[C,w]=o.useState(""),f=o.useRef(null),y=o.useRef(!1),x=o.useCallback(()=>{y.current=Ja()&&!!f.current&&f.current.contains(document.activeElement),i("active")},[]),g=o.useCallback(()=>w(""),[]),k=j=>{try{w(j)}catch{}},_=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(t!=="disabled"){const j=setTimeout(()=>i(t),0);return()=>clearTimeout(j)}},[t]);const B=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[N,A]=o.useState(B);N!==B&&(A(B),i("disabled"));const S=t==="disabled"?s:t,O=S==="disabled"?"training-text-box--disabled":S==="active"?"training-text-box--active":S==="done"?"training-text-box--done":"",H=o.useMemo(()=>({fontSize:`${b}px`,lineHeight:`${v}px`}),[b,v]);return o.useEffect(()=>{if(S==="disabled"||!y.current)return;y.current=!1;const j=document.activeElement;j&&j!==document.body||f.current?.querySelector(".training-text-box__buttons button")?.focus()},[S]),n.jsxs("div",{ref:f,className:`training-text-box ${O} ${S!=="disabled"&&l==="dark"?"is-dark":""}`,children:[S==="disabled"&&n.jsx("div",{className:"training-text-box__preview",children:n.jsx(le,{htmlType:"button",size:48,type:"bar",onClick:x,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:B})}),S!=="disabled"&&n.jsxs("div",{className:"training-text-box__buttons","aria-hidden":S==="disabled",children:[n.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:p,onDisabledClick:()=>k(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:!h,useBorder:!1,showTooltipInfo:!0,...!_&&{width:"60px"}}),n.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:u,onDisabledClick:()=>k(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:!m,useBorder:!1,showTooltipInfo:!0,...!_&&{width:"60px"}}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:d,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),n.jsx(ea,{message:C,position:"top",onClose:g})]})}function Po({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:s,onDone:i,onChange:l,answer:c,wrongAnswers:d,choices:u,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:h=!1,choiceIcons:b,shuffleChoices:v=!0}){const{t:C}=be.useTranslation(),w=r??C("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),f=typeof e=="number"?e:-1,y=typeof t!="number"?"disabled":f<t?"done":f===t?"active":"disabled",x=Array.isArray(u)&&u.length?u:typeof c<"u"?[c].concat(Array.isArray(d)?d:[]):void 0,g=d?d.join("||"):"",k=u?u.join("||"):"",[_,B]=o.useState(()=>Array.isArray(x)?v?fa(x):x.slice():void 0);o.useEffect(()=>{Array.isArray(x)&&x.length?B(v?fa(x):x.slice()):B(void 0)},[c,g,k,v]);const[N,A]=o.useState(null),[S,O]=o.useState(()=>new Set);o.useEffect(()=>{A(null),O(new Set)},[k,c,g]);const H=o.useRef(void 0);o.useEffect(()=>{const E=H.current;typeof E=="number"&&typeof t=="number"&&typeof e=="number"&&E>=e&&t<e&&(A(null),O(new Set)),H.current=t},[t,e]);const j=o.useCallback(E=>{if(y!=="active")return;const M=_?.[E];if(M==null)return;const I=M,G=y==="active"||y==="done";if(p){const Z=new Set(S),U=Z.has(I);U?Z.delete(I):Z.add(I),O(Z),typeof l=="function"&&l({selectedValues:[...Z],__ts:Date.now()}),G&&(typeof m=="number"&&m>0?Z.size>=m:!U)&&typeof i=="function"&&y==="active"&&i({selectedValues:[...Z],__ts:Date.now()})}else A(I),typeof l=="function"&&l({selectedIndex:E,selectedValue:I,__ts:Date.now()}),G&&typeof i=="function"&&y==="active"&&i({selectedIndex:E,selectedValue:I,__ts:Date.now()})},[_,y,p,l,i,m,S]),q=`training-step__buttons${Array.isArray(_)&&_.length>3?" training-step__buttons--wrap-3":""}`;return n.jsx(Vn,{index:e,stepIndex:t,isLast:a,title:w,useTitleFaded:s,children:n.jsx("div",{className:q,children:Array.isArray(_)&&_.length>0?_.map((E,M)=>n.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:()=>j(M),ariaLabel:String(E),label:E,useLabel:!0,icon:b?b[String(E)]:void 0,variant:"default",disabled:y==="disabled",selected:p?S.has(E):N===E,useDisabledCovered:h,minWidth:0},String(E))):null})})}function Io({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l,demoSelected:c}){const{t:d}=be.useTranslation(),u=r??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,m=typeof t!="number"?"disabled":p<t?"done":p===t?"active":"disabled",h=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",b=l&&typeof l=="object"?l.choices:void 0,[v,C]=o.useState(c??null),w=`${String(h)}\0${JSON.stringify(b??null)}`,[f,y]=o.useState(w);f!==w&&(y(w),c==null&&C(null));const[x,g]=o.useState(c);Object.is(x,c)||(g(c),C(c??null));const k=o.useRef(void 0);o.useEffect(()=>{const A=k.current;typeof A=="number"&&typeof t=="number"&&typeof e=="number"&&A>=e&&t<e&&c==null&&C(null),k.current=t},[t,e,c]);const _=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),m==="active"&&typeof s=="function"&&s(S)},[i,m,s]),B=o.useCallback(()=>{m==="active"&&(C(!1),_(!1))},[_,m]),N=o.useCallback(()=>{m==="active"&&(C(!0),_(!0))},[_,m]);return n.jsxs(Vn,{index:e,stepIndex:t,isLast:a,title:u,onDone:s,useTitleFaded:!1,children:[n.jsx(Zc,{context:l,state:m}),n.jsx("div",{className:"training-step__buttons",children:Array.isArray(b)&&b.length>0?b.slice(0,6).map((A,S)=>n.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(C(S),_&&_(S))},disabled:m==="disabled",ariaLabel:String(A),label:A,variant:m,selected:v===S},S)):n.jsxs(n.Fragment,{children:[n.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:B,disabled:m==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:v===!1}),n.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:N,disabled:m==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:v===!0})]})})]})}function Fo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,btnLabel:i,soundSrc:l,bucketPath:c,usePreviewTextBtn:d,previewText:u=null,onPreviewTextBtn:p,disabled:m,_pageIndex:h,showSoundWaveForm:b,showNoiseWaveForm:v}){const{t:C}=be.useTranslation(),w=r??C("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),f=m??(typeof t=="number"&&typeof e=="number"?e>t:!1);return n.jsx(Vn,{index:e,stepIndex:t,isLast:a,title:w,onDone:s,titleProps:{usePreviewTextBtn:d,previewText:u,onPreviewTextBtn:p},children:n.jsx($o,{soundSrc:l,ttsText:l?null:u??w,bucketPath:c,btnLabel:i||C("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:f,className:"training-step__listen-sticky",showSoundWaveForm:b,showNoiseWaveForm:v},`audio-p${h??0}-s${e}`)})}const G5=[];function Oo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=G5}){const{t:c}=be.useTranslation(),d=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),u=L=>typeof L=="string"?L:L&&(L.context||L.sentence||L.question||"")||"",[p,m]=o.useState(Array.isArray(l)?l:[]),[h,b]=o.useState(()=>(p||[]).map((L,D)=>({id:D,text:u(L)}))),v=o.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]),C=v!=="disabled",w=o.useRef(void 0);o.useEffect(()=>{if(w.current===l)return;w.current=l;const L=Array.isArray(l)?l:[];m(L);const D=(F=>{const P=(F||[]).map((J,Y)=>({id:Y,text:u(J)}));if(P.length<=1)return P;const R=(J,Y)=>{if(J.length!==Y.length)return!1;for(let ne=0;ne<J.length;ne++)if(J[ne].text!==Y[ne].text)return!1;return!0};let $=fa(P),ee=0;for(;R($,P)&&ee<20;)$=fa(P),ee+=1;return $})(L);b(D);try{if(typeof i=="function"){const F=D.filter((P,R)=>P.text===u(L[R])).length;i({shuffled:D,score:F,total:(L||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&v==="active"){const F=D.filter((P,R)=>P.text===u(L[R])).length;s({shuffled:D,score:F,total:(L||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const f=(L,D)=>{const F=[...h],P=L+D;if(P<0||P>=F.length)return;const R=F[P];F[P]=F[L],F[L]=R,M(F);try{if(typeof s=="function"&&v==="active"){const $=F.filter((ee,J)=>ee.text===u(p[J])).length;s({shuffled:F,score:$,total:(p||[]).length,__ts:Date.now()})}}catch{}},[y,x]=o.useState(null),g=o.useRef(null),k=o.useRef(null),_=o.useRef(null),B=o.useRef(null),N=o.useRef(null),A=o.useRef({x:0,y:0}),S=o.useRef(null),O=o.useRef({dx:0,dy:0}),H=()=>{if(S.current!==null)return;const L=()=>{if(!g.current){S.current=null;return}S.current=requestAnimationFrame(L);const D=A.current,F=O.current||{dx:0,dy:0};g.current&&(g.current.style.transform=`translate3d(${D.x-F.dx}px, ${D.y-F.dy}px, 0)`)};S.current=requestAnimationFrame(L)},j=o.useRef(new Map),q=o.useRef(new Map),E=()=>{const L=new Map;return j.current.forEach((D,F)=>{D&&D.getBoundingClientRect&&L.set(F,D.getBoundingClientRect())}),L},M=L=>{const D=E();b(L);try{if(typeof i=="function"){const F=L.filter((P,R)=>P.text===u(p[R])).length;i({shuffled:L,score:F,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const F=E();L.forEach(P=>{const R=D.get(P.id),$=F.get(P.id),ee=j.current.get(P.id);if(!ee||!R||!$)return;const J=R.top-$.top;J&&(ee.style.transition="none",ee.style.transform=`translateY(${J}px)`,requestAnimationFrame(()=>{ee.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",ee.style.transform="";const Y=()=>{ee.style.transition="",ee.removeEventListener("transitionend",Y)};ee.addEventListener("transitionend",Y)}))})})},I=(L,D)=>{try{try{D.dataTransfer?.setData("text/plain",String(L))}catch{}try{D.dataTransfer&&(D.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),D.dataTransfer?.setDragImage(F,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(F)}catch{}})}catch{}}catch{}x(L);try{const F=h[L],P=document.createElement("div");P.className="order-list__dragging-object order-list__dragging-object--visible",P.textContent=F&&F.text?F.text:"",document.body.appendChild(P),g.current=P;const R=j.current.get(F.id);let $=D.clientX||0,ee=D.clientY||0;try{if(R&&R.getBoundingClientRect){const ie=R.getBoundingClientRect();$=ie.left+ie.width/2,ee=ie.top+ie.height/2}}catch{}const J=P.getBoundingClientRect(),Y=J.width/2,ne=J.height/2;O.current={dx:Y,dy:ne},P.style.transition="none",A.current={x:$,y:ee},P.style.transform=`translate3d(${$-Y}px, ${ee-ne}px, 0)`,requestAnimationFrame(()=>{try{P.style.transition=""}catch{}H()});const Ce=ie=>{const W=ie;A.current={x:W.clientX,y:W.clientY},H()};_.current=Ce,document.addEventListener("mousemove",Ce);const re=ie=>{const W=ie;A.current={x:W.clientX,y:W.clientY},H()};k.current=re,document.addEventListener("dragover",re);try{D.dataTransfer?.setData("text/plain",String(L));try{D.dataTransfer?.setData("application/json",JSON.stringify({idx:L}))}catch{}}catch{}}catch{}},G=(L,D)=>{D.preventDefault();try{D.dataTransfer&&(D.dataTransfer.dropEffect="move")}catch{}try{N.current!==null&&(clearTimeout(N.current),N.current=null);const F=D.currentTarget&&D.currentTarget.closest?D.currentTarget.closest(".order-list__item"):null;if(F&&B.current!==F){if(B.current)try{B.current.classList.remove("drag-over")}catch{}try{F.classList.add("drag-over")}catch{}B.current=F}}catch{}},Z=(L,D)=>{D.preventDefault();const F=D.dataTransfer?.getData("text/plain")||"",P=F?parseInt(F,10):y,R=L;if(typeof P!="number"||isNaN(P)||P===R){x(null),K(),U();return}const $=_2(h,P,R);M($),x(null),U();try{if(typeof s=="function"&&v==="active"){const ee=$.filter((J,Y)=>J.text===u(p[Y])).length;s({shuffled:$,score:ee,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const ee=document.querySelectorAll(".order-list .order-list__item")[R];if(!ee)return;const J=ee.querySelector(".order-list__slot")||ee;try{J.classList.add("pulse"),J.offsetHeight,J.classList.add("to-dark");const Y=()=>{J.classList.remove("pulse","to-dark"),J.removeEventListener("transitionend",Y)};J.addEventListener("transitionend",Y)}catch{}})}catch{}K()},U=()=>{if(g.current){try{document.body.removeChild(g.current)}catch{}g.current=null}k.current&&(document.removeEventListener("dragover",k.current),k.current=null),_.current&&(document.removeEventListener("mousemove",_.current),_.current=null),S.current!==null&&(cancelAnimationFrame(S.current),S.current=null)},z=()=>{x(null),K(),U()};o.useEffect(()=>()=>U(),[]);const K=()=>{try{if(N.current!==null&&(clearTimeout(N.current),N.current=null),B.current){try{B.current.classList.remove("drag-over")}catch{}B.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(L=>L.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const L=Math.max(1,(h||[]).length);h.forEach((D,F)=>{const P=q.current.get(D.id);if(!P)return;let R=50;L>1&&(R=Math.round(F/(L-1)*100));try{P.style.setProperty("--marker-pos",R+"%")}catch{}})}catch{}},[h]),o.useEffect(()=>()=>{U(),N.current!==null&&(clearTimeout(N.current),N.current=null)},[]),n.jsx(Vn,{index:e,stepIndex:t,isLast:a,title:d,children:n.jsx("div",{className:"order-list",children:h.map((L,D)=>{const F=Math.max(1,(h||[]).length),P=F>1?Math.round(D/(F-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":P+"%"},ref:R=>{const $=q.current;R?$.set(L.id,R):$.delete(L.id)},children:n.jsx("span",{className:"order-list__slot-number button-1",children:D+1})}):null,n.jsxs("div",{ref:R=>{const $=j.current;R?$.set(L.id,R):$.delete(L.id)},className:`order-list__draggable ${y===D?"dragging":""}`,"data-disabled":v==="disabled","aria-disabled":v==="disabled",tabIndex:v==="disabled"?-1:0,draggable:C,onDragStart:C?R=>I(D,R):void 0,onDragEnter:C?R=>G(D,R):void 0,onDragOver:C?R=>G(D,R):void 0,onDragLeave:C?()=>{try{N.current!==null&&clearTimeout(N.current),N.current=setTimeout(()=>{try{const R=document.querySelectorAll(".order-list .order-list__item");R&&R[D]&&(R[D].classList.remove("drag-over"),B.current===R[D]&&(B.current=null))}catch{}},80)}catch{}}:void 0,onDrop:C?R=>Z(D,R):void 0,onDragEnd:C?z:void 0,children:[n.jsx("span",{className:"order-list__item-text body-2",children:L.text}),C?n.jsxs("span",{className:"order-list__item-buttons",children:[n.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:()=>f(D,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:D===0,useBorder:!1,useDisabledInvisible:!0}),n.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:()=>f(D,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:D===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},L.id)})})})}const K5=8e3;function Y5(e,t){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,t)})}function Xc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=[],selectable:c=!1,hideLabel:d=!1,hideAudio:u=!1,maxCards:p}){const{t:m}=be.useTranslation(),h=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),b=o.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),v=p??3,C=(b||[]).slice(0,v);(b||[]).length>v&&console.warn(`TrainingStepCard: ${b.length} items passed but only ${v} shown`);const w=typeof e=="number"?e:-1,f=typeof t!="number"?"disabled":w<t?"done":w===t?"active":"disabled",[y,x]=o.useState(null),g=o.useRef([]),[k,_]=o.useState(!1),B=o.useRef(null),N=o.useRef(!0);o.useEffect(()=>(N.current=!0,()=>{N.current=!1}),[]);const A=o.useMemo(()=>b.map(q=>q?.id??q?.word??"").join("|"),[b]);o.useEffect(()=>{x(null)},[A]);const S=o.useRef(void 0);o.useEffect(()=>{const q=S.current;typeof q=="number"&&typeof t=="number"&&typeof e=="number"&&q>=e&&t<e&&x(null),S.current=t},[t,e]);const O=o.useCallback((q,E)=>{if(c)return;const M={item:q,index:E,__ts:Date.now()};try{typeof i=="function"&&i(M)}catch{}if(f==="active"&&typeof s=="function")try{s(M)}catch{}},[c,i,f,s]),H=o.useCallback(async()=>{if(k||f==="disabled")return;_(!0);let q=!1;const E=new Promise(M=>{B.current=()=>{q=!0,M()}});try{for(let M=0;M<C.length&&!(!N.current||q);M++){const I=g.current[M];I&&await Promise.race([Y5(I.play(),K5),E])}}finally{B.current=null,_(!1)}},[k,f,C.length]),j=o.useCallback((q,E)=>{if(f!=="active")return;x(E);const M={selectedValue:q.word||q.title||"",selectedIndex:E,item:q,__ts:Date.now()};try{typeof i=="function"&&i(M)}catch{}if(f==="active"&&typeof s=="function")try{s(M)}catch{}},[i,f,s]);return n.jsx(Vn,{index:e,stepIndex:t,isLast:a,title:h,onDone:s,titleProps:{usePlayAllBtn:!u&&C.length>0,onPlayAll:H,playAllActive:k},children:n.jsx("div",{className:"training-step__cards",onClickCapture:q=>{const E=B.current;if(!E)return;const M=q.target;M&&typeof M.closest=="function"&&M.closest(".training-word-card__bottom")&&E()},children:C.length===0?n.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):C.map((q,E)=>n.jsx(vo,{ref:M=>{g.current[E]=M},item:q,disabled:f==="disabled",onPlayDone:()=>O(q,E),selectable:c,selected:c&&y===E,onSelect:c?()=>j(q,E):void 0,flipDelay:E*120,hideLabel:d,hideAudio:u},q&&q.id||E))})})}const Z5=160,X5={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function J5(e,t){const a=X5[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}const Jc=()=>{};function Tn(e){const t=o.useId();if(!("variant"in e)){const{label:f,sub:y,onClick:x,children:g,align:k="horizontal",icon:_,useFullWidth:B=!1}=e,N=A=>{x&&A.target===A.currentTarget&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),x())};return n.jsxs("div",{className:De("panel-row",k==="vertical"?"panel-row--vertical":"",B?"panel-row--label-fixed panel-row--fill":"",x?"panel-row--clickable":""),onClick:x,onKeyDown:x?N:void 0,role:x?"button":void 0,tabIndex:x?0:void 0,children:[_!=null&&n.jsx("div",{className:"panel-row__icon",children:_}),f!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:f}),y&&n.jsx("div",{className:"panel-row__sub caption-1",children:y})]}),n.jsx("div",{className:"panel-row__right",children:g})]})}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(Sa,{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:c,align:d="horizontal",useFullWidth:u=!1,icon:p}=e,m=a==="button"?void 0:i;let h=null;const b=a==="toggle"?`panel-toggle-${t}`:void 0,v=c?`panel-error-${t}`:void 0;if(a==="toggle"){const f=e;h=n.jsx(Fl,{checked:f.checked,onChange:f.onChange,id:b})}else if(a==="segmented"){const f=e;h=n.jsx(_n,{options:f.options,value:f.value,onChange:f.onChange,size:f.size??40,ariaLabel:r})}else if(a==="dropdown"){const f=e,y=f.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${u?" panel-row__dropdown-group--full":""}`,children:f.dropdowns.map((x,g)=>n.jsx("div",{className:u?"panel-row__dropdown-item--full":void 0,children:n.jsx(rn,{options:x.options,value:x.value,onChange:x.onChange,placeholder:x.placeholder,block:u,error:!!c,ariaDescribedBy:v,ariaLabel:x.ariaLabel??([r,x.placeholder].filter(Boolean).join(" ")||void 0)})},g))}):n.jsx(rn,{options:f.options??[],value:f.value??"",onChange:f.onChange??Jc,block:u,error:!!c,ariaLabel:r,ariaDescribedBy:v});h=c?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${u?" panel-row__dropdown-error-wrap--full":""}`,children:[y,n.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:c})]}):y}else if(a==="button"){const f=e;f.buttons?.length?h=n.jsx("div",{className:"panel-row__button-group",children:f.buttons.map((y,x)=>n.jsx(le,{htmlType:"button",size:y.btnSize??40,variant:y.btnVariant??"default",disabled:y.disabled,onClick:y.onClick,children:y.label},x))}):h=n.jsx(le,{htmlType:"button",size:f.btnSize??40,variant:f.btnVariant??"default",disabled:f.disabled,onClick:f.onClick,children:f.buttonLabel})}else if(a==="text"){const f=e;h=n.jsx("span",{className:`panel-row__text body-2${u?" panel-row__text--full":""}`,style:f.valueColor?{color:f.valueColor}:void 0,children:f.value})}else if(a==="input"){const f=e;h=n.jsxs("div",{className:`panel-row__input-wrap${u?" panel-row__input-wrap--full":""}`,children:[n.jsx(zn,{value:f.value,onChange:f.onChange??Jc,onKeyDown:f.onKeyDown,onEnter:f.onEnter,placeholder:f.placeholder,inputMode:f.inputMode,readOnly:f.readOnly,disabled:f.disabled,type:f.type,autoComplete:f.autoComplete,maxLength:f.maxLength,showCount:f.showCount,multiline:f.multiline,rows:f.rows,fullWidth:u,error:c,ariaLabel:r,required:l}),f.helperText&&n.jsx("div",{className:"panel-row__helper caption-1",children:f.helperText})]})}else a==="custom"&&(h=e.children);c&&a!=="input"&&a!=="dropdown"&&(h=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${u?" panel-row__dropdown-error-wrap--full":""}`,children:[h,n.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:c})]}));const C=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&u,w=f=>{m&&f.target===f.currentTarget&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),m())};return n.jsxs("div",{className:De("panel-row",d==="vertical"?"panel-row--vertical":"",C?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",m?"panel-row--clickable":""),onClick:m,onKeyDown:m?w:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,children:[p!=null&&n.jsx("div",{className:"panel-row__icon",children:p}),n.jsxs("div",{className:"panel-row__left",children:[b?n.jsxs("label",{htmlFor:b,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:h})]})}function Qc(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function Q5({devices:e,onRelease:t,emptyLabel:a}){const{t:r}=be.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(le,{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(ht,{size:"small",variant:ac(i.device),fill:"soft",label:J5(i.device,r)}),Qc(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:Qc(i)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),go(i.wornYear,i.wornMonth,i.wornDay)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:go(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 sr({title:e,icon:t,disc:a,actions:r,size:s="medium",minHeight:i,maxWidth:l,className:c,scrollable:d,scrollbarGutter:u="auto",compactRows:p=!1,useBorder:m=!0,useBg:h=!0,useRowBorder:b=!0,labelWidth:v,form:C=!1,loading:w,empty:f,children:y}){const x=De("panel",`panel--${s}`,C?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",h?"":"panel--no-bg",b?"":"panel--no-row-border",p?"panel--compact-rows":"",c),g={};return i!==void 0&&(g.minHeight=i),l!==void 0&&(g.maxWidth=typeof l=="number"?`${l}px`:l),v!==void 0&&(g["--panel-label-width"]=typeof v=="number"?`${v}px`:v),n.jsxs("div",{className:x,style:Object.keys(g).length?g:void 0,children:[(e!=null||a!=null)&&n.jsxs("div",{className:De("panel__header",a!=null?"panel__header--with-disc":""),children:[t&&n.jsx(Ke,{icon:t,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[e!=null&&n.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&n.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&n.jsx("div",{className:"panel__actions",children:r})]}),w?n.jsx(Tn,{variant:"loading"}):f!=null&&o.Children.toArray(y).length===0?n.jsx(Tn,{variant:"empty",children:f}):d?n.jsx("div",{className:De("panel__body--scroll",u==="stable"&&"panel__body--gutter-stable"),children:y}):y]})}function e3({cols:e=2,children:t}){return n.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:t})}function t3(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 eu(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"}]}t3(St.t.bind(St)),eu(St.t.bind(St));const Ho="none",n3=.5,a3=1.5,r3=.25;function zo({title:e,valueLabel:t,value:a,min:r,max:s,step:i,tickStep:l,size:c,onChange:d}){return n.jsxs(Tn,{variant:"custom",label:e,useFullWidth:!0,children:[n.jsx(Jl,{value:a,onChange:d,min:r,max:s,step:i,size:c,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),n.jsx("div",{className:"noise-settings__value button-1",children:t})]})}function tu({anchorRect:e,onClose:t}){const{t:a}=be.useTranslation(),r=Yt("(max-width: 767px)")?40:24,s=ar(),i=ja(s?.settings??Ma),l=s?.settings.type??"defaultNoise",c=s?.settings.enabled??!0,d=s?.playbackRate??1,u=s?.mainVolume??1,p=Math.round(u*100),m=o.useCallback(C=>{try{s?.setMainVolume(Math.max(0,Math.min(1,C/100)))}catch{}},[s]),h=o.useCallback(C=>{try{s?.setPlaybackRate(C)}catch{}},[s]),b=o.useCallback(C=>{const w=Math.min(Ea,Math.max(0,Math.round(C*10)/10));try{s?.setSettings({noiseRatio:w})}catch{}},[s]),v=o.useCallback(C=>{try{C===Ho?s?.setSettings({enabled:!1}):s?.setSettings({type:C,enabled:!0})}catch{}},[s]);return n.jsx(an,{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(le,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:t})]}),children:n.jsxs(sr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[n.jsx(zo,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),n.jsx(zo,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:n3,max:a3,step:r3,size:r,onChange:h}),n.jsx(Tn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:n.jsx(_n,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Ho,label:a("training.noise.type.none","\uC5C6\uC74C")},...eu(a).map(C=>({key:C.value,label:C.label}))],value:c?l:Ho,onChange:v})}),n.jsx(zo,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:Ea,step:Fc,size:r,onChange:b})]})})}function nu({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:s=0,stepCount:i=0,pageIndex:l=0,pageCount:c=1,resultOpen:d=!1}){const{t:u}=be.useTranslation(),[p,m]=o.useState(!1),[h,b]=o.useState(null),[v,C]=o.useState(!1),w=o.useRef(null),f=o.useRef(null),y=ar(),x=c>0,g=x&&l<c-1,k=!x||l>=c-1,_=s===Math.max(0,i);o.useEffect(()=>{e||(m(!1),b(null))},[e]);const B=o.useCallback(()=>{m(!1),b(null)},[]),N=o.useCallback(()=>{if(p){m(!1),b(null);return}const I=w?.current?.getBoundingClientRect();I&&b(I),t?.(),m(!0)},[p,t]),A=o.useCallback(()=>{if(p){m(!1),b(null);return}const I=f?.current?.getBoundingClientRect();I&&b(I),t?.(),m(!0)},[p,t]),S=Yt("(max-width: 767px)"),O=o.useRef(null),[H,j]=o.useState(null),q=o.useCallback(()=>{C(I=>{const G=!I;return j(G?O.current?.getBoundingClientRect()??null:null),G})},[]),E=o.useCallback(()=>{C(!1),j(null)},[]);o.useEffect(()=>{d&&(C(!1),j(null))},[d]);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:u("training.meter.sentence","\uC7AC\uC0DD")}),n.jsx(ho,{analyser:y?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.sentence","\uC7AC\uC0DD")})]}),n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.noise","\uC18C\uC74C")}),n.jsx(ho,{analyser:y?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]});return Kc(e&&p,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[w.current,f.current].map(I=>I?.querySelector("button")??null).find(I=>!!I&&I.getClientRects().length>0)??w.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:w,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(le,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:N,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),n.jsx("div",{className:"pp-bottom__settings--mobile",children:n.jsx("div",{ref:f,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(le,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:A,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:u("training.settings","\uC124\uC815")})})})]}):null,e&&n.jsx("div",{ref:O,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:n.jsx(le,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:q,selected:v,"aria-expanded":S?v:void 0,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&v&&!S&&n.jsx("div",{className:"pp-bottom__meters",children:M})]}),e&&v&&S&&H&&n.jsx(an,{anchorRect:H,onClose:E,ariaLabel:u("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:[k&&n.jsx(le,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!_}),g&&n.jsx(le,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!_})]}),e&&p&&n.jsx(tu,{anchorRect:h,onClose:B})]})}function au({title:e,subtitle:t,desc:a,depth:r,icon:s,wrapperStyle:i,iconTooltip:l,pageIndex:c,pageCount:d,progressMax:u,progressIndex:p,onBack:m,onClose:h}){const{t:b}=be.useTranslation(),v=Yt("(max-width: 767px)"),C=Number.isInteger(p)?p:c||0,w=Number.isInteger(u)?u:d||0,f=m||h,y=Array.isArray(r)?v?r[r.length-1]:r.join(" / "):r,x=typeof e=="string"?e.trim():e,g=typeof t=="string"?t.trim():t,k=!!(x||g),_=k?x||g:b("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),B=y||(x?t:void 0),N=v&&typeof B=="string"&&(B.includes(" \xB7 ")||B.includes(" / "))?B.split(/\s[·/]\s/).pop():B,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:[f?n.jsx(le,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:b("common.back","\uB4A4\uB85C"),onClick:f,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,n.jsx("div",{children:s?n.jsx(jl,{icon:s,label:e,tooltip:l,wrapperStyle:A}):null}),n.jsxs("div",{className:"pp-title__text",children:[N?n.jsx("span",{className:"pp-title__depth caption-1",children:N}):null,n.jsx("span",{className:`pp-title__title h2${k?"":" pp-title__title--empty"}`,children:_}),a?n.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),n.jsx(nc,{max:Math.max(0,w??0),index:Math.max(0,C??0)})]})}function o3(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function s3(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 ru=(e,t)=>{if(!t)return t;const a=typeof St?.t=="function"?St.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function ou(e,t,a){const r=e,s=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=di().find(c=>c.key===(r?.category_0||r?.category_main_code)),l=i?.subs?.find(c=>c.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?ru(`topic.${i.key}`,i.label):void 0,l?ru(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function Vo(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function i3(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function l3({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:i,buildResults:l,metaPatch:c}){const d=ou(t,a,r),u=typeof c=="function"?c(d)||{}:c||{},p=t?.id||t?.title||s.length;return{id:`${e}:${p}`,meta:{...d,...u},pages:s,emptyMessage:i,buildResults:l}}function c3(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function u3(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 d3(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 su(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function p3(e,t,a,r){return su(e,t*a+r)}function m3({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 h3(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 iu=o.createContext(null);function f3(){const e=o.useContext(iu);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function C3({index:e,stepIndex:t,isLast:a=!1,title:r,choices:s=[],onDone:i,onChange:l}){const{t:c}=be.useTranslation(),d=typeof e=="number"?e:-1,u=typeof t!="number"?"disabled":d<t?"done":d===t?"active":"disabled",[p,m]=o.useState(()=>s.map(()=>null)),h=JSON.stringify(s),b=s.length;o.useEffect(()=>{m(Array.from({length:b},()=>null))},[h]);const v=o.useRef(void 0);o.useEffect(()=>{const y=v.current;typeof y=="number"&&typeof t=="number"&&typeof e=="number"&&y>=e&&t<e&&m(Array.from({length:b},()=>null)),v.current=t},[t,e,b]);const C=o.useMemo(()=>p.filter(y=>y!==null).length+1,[p]),w=o.useCallback(y=>{if(u!=="active")return;const x=p;let g;if(x[y]!=null){const _=x[y];g=x.map(B=>B!==null&&B>=_?null:B)}else g=[...x],g[y]=C;m(g);const k={selectedOrder:g,words:s,__ts:Date.now()};try{typeof l=="function"&&l(k)}catch{}if(x[y]==null&&g.length>0&&g.every(_=>_!==null))try{typeof i=="function"&&i(k)}catch{}},[u,p,C,l,i,s]),f=r??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return n.jsx(Vn,{index:e,stepIndex:t,isLast:a,title:f,onDone:i,children:n.jsx("div",{className:"training-step__cards",children:s.map((y,x)=>n.jsx(vo,{item:{word:y},disabled:u==="disabled",selectable:!0,selected:p[x]!==null,orderRank:p[x],onSelect:()=>w(x),flipDelay:x*120,hideLabel:!1,hideAudio:!0},`${y}-${x}`))})})}function ir(e){return null}ir.__isTrainingPage=!0;function ia(e,t){const a=f3();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 lu({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l}=ia(e,t);return n.jsx(Fo,{...a,index:r,stepIndex:s,isLast:i,onDone:l})}function cu({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(Po,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function uu({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(Io,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function du({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(Oo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function pu({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(Xc,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function g3({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(C3,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function Wo(...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 b3(e){return Wo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function mu(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=Wo(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 hu(e){const{score:t,contextsLength:a,results:r=[],subtitle:s,onReplay:i,onClose:l,inline:c=!1,pending:d=!1}=e||{},{t:u}=be.useTranslation(),p=o.useId(),m=o.useCallback(()=>!d,[d]);o.useEffect(()=>{const y=a??0;if(t!=null&&y>0&&t/y>.5){const x=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(x)}},[t,a]);const h=o.useCallback(y=>{const x=mu(y),g=Wo(y?.wording,y?.label);return x===!0?{variant:"main",label:g??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:x===!1?{variant:"danger",label:g??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:g??u("training.result.notJudged","\uBBF8\uD310\uC815")}},[u]),b=a??0,v=t??0,C=o.useMemo(()=>Array.isArray(r)?r:[],[r]),w=o.useMemo(()=>C.map(y=>{const x=y??{},g=b3(x)||u("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:k,label:_}=h(x),B=Array.isArray(x.corrects)?x.corrects:[],N=B.length?B.join(", "):x.answer!=null&&x.answer!==""?String(x.answer):null,A=typeof x.selectedText=="string"?x.selectedText:null,S=mu(x)===!0;return{problem:g,variant:k,label:_,answer:N,selectedText:A,isCorrect:S}}),[C,h,u]),f=o.useMemo(()=>w.some(y=>y.answer!==null||y.selectedText!==null),[w]);return n.jsx(jn,{onClose:l,closeOnBackdrop:!1,inline:c,ariaLabel:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:m,footerClassName:"trp-result__foot",footer:({animateThen:y,closeWithAnimation:x})=>n.jsxs(n.Fragment,{children:[d&&n.jsx("p",{id:p,className:"trp-actions__reason caption-1",role:"status",children:u("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(le,{htmlType:"button",size:56,type:"bar",label:u("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>y(i)}),n.jsx(le,{htmlType:"button",size:56,type:"bar",label:u("training.result.done","\uC644\uB8CC"),variant:"main",onClick:x,disabled:d,onDisabledClick:d?()=>{}:void 0,"aria-describedby":d?p: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:u("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),n.jsx("h1",{className:"trp-result__title h2",children:u("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":u("training.result.scoreAria",{correct:v,total:b}),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:b})]})})]}),w.length>0&&n.jsx("section",{className:"trp-result__body",children:n.jsxs("div",{className:`result-table${f?" result-table--answer":""}`,role:"table","aria-label":u("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:u("common.col.problem","\uBB38\uC81C")}),f&&n.jsx("span",{role:"columnheader",children:u("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),n.jsx("span",{className:"col-right",role:"columnheader",children:u("training.result.colJudge","\uD310\uC815")})]}),w.map((y,x)=>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(x+1).padStart(2,"0")}),n.jsx("div",{className:"trp-row__q body-2",children:y.problem})]}),f&&n.jsxs("div",{className:"trp-row__answers",children:[y.answer!==null&&n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:u("training.result.colAnswer","\uC815\uB2F5")}),n.jsx("span",{className:"trp-row__answer-value body-2",children:y.answer})]}),n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${y.isCorrect?"is-correct":"is-wrong"}`,children:u("training.result.colSelected","\uC120\uD0DD")}),n.jsx("span",{className:`trp-row__answer-value body-2 ${y.isCorrect?"is-correct":"is-wrong"}`,children:y.selectedText??"\u2014"})]})]}),n.jsx("div",{className:"trp-row__judge",children:n.jsx(ht,{variant:y.variant,label:y.label,fill:"soft",minWidth:80})})]},x))]})})]})})}function y3(e){o.useEffect(()=>{if(!e)return;const t=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,s=0,i=0;const l=()=>{const p=Date.now();a==null&&(a=p),r==null&&(r=p)},c=()=>{r!=null&&(s+=Date.now()-r,r=null)};t()&&l();const d=()=>{if(c(),a==null||s-i<1e3||i===0&&s<5e3)return;const p=a+i;i=s,A2({trainingType:e,startedAt:new Date(p).toISOString(),endedAt:new Date(a+s).toISOString()})},u=()=>{t()?l():d()};return typeof document<"u"&&document.addEventListener("visibilitychange",u),typeof window<"u"&&window.addEventListener("pagehide",d),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",u),typeof window<"u"&&window.removeEventListener("pagehide",d),d()}},[e])}function qo(e,t){return e&&e.id||`page-${t??0}`}function Uo(e,t){return e&&e.key||`step-${t??0}`}function lr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function v3(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const x3=300,_3=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Mn=Object.freeze({}),fu=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function Cu(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 w3=e=>n.jsx(hu,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function k3(e){const{scenario:t,title:a,subTitle:r,depth:s,icon:i,wrapperStyle:l,iconTooltip:c,pageIndex:d,pageCount:u,stepIndex:p,stepCount:m,onBack:h,onComplete:b,onNext:v,onSettings:C,useNoiseSetting:w=!0,children:f,ariaLabel:y,label:x,buildResults:g,onResult:k,typeKey:_,entryPoint:B,dailyTotal:N,itemRef:A,renderResultPopup:S,noiseOverride:O}=e;y3(_&&!fu.has(_)?_:"");const H=o.useRef(0);o.useEffect(()=>{H.current=Date.now()},[]);const{t:j}=be.useTranslation(),q=k,E=!!t,M=t?.id||null,I=t?.meta||{},G=Array.isArray(t?.pages)?t.pages:[],Z=Array.isArray(f)||o.isValidElement(f)&&typeof f!="function"?o.Children.toArray(f).filter(o.isValidElement):[],U=Z.length>0,z=te=>te===ir||te?.__isTrainingPage===!0,K=U&&Z.some(te=>z(te.type)),L=K?Z.filter(te=>z(te.type)).map((te,fe)=>{const V=te.props||{};return{id:`children-page-${fe}`,steps:o.Children.toArray(V.children).filter(o.isValidElement),pageTop:V.pageTop||V.top||null,pageBottom:V.pageBottom||V.bottom||null}}):[{id:"children-page-0",steps:Z}],D=U&&!E&&typeof f!="function",F=D?Math.max(1,L.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 te=document.body;return te.dataset.ihabTrainingPopupCount=String(Number(te.dataset.ihabTrainingPopupCount||"0")+1),te.classList.add("ihab-training-popup-open"),()=>{const fe=Number(te.dataset.ihabTrainingPopupCount||"1")-1;fe>0?te.dataset.ihabTrainingPopupCount=String(fe):(delete te.dataset.ihabTrainingPopupCount,te.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return w4()},[]);const[P,R]=o.useState({...Ma,enabled:!1}),$=o.useRef(P);o.useEffect(()=>{$.current=P},[P]);const ee=o.useRef(O),J=o.useRef(!1),Y=o.useRef(null);o.useEffect(()=>{let te=!1;const fe=V=>{if(te)return;J.current=!0;const se=V?Ta({...Ma,enabled:!1},V):{...Ma},ue=Y.current;Y.current=null;const we=ue?Ta(se,ue):se;$.current=we,R(we),ue&&!ee.current&&oi(we),Ha(we);const ke=ee.current;if(ke){const Le=typeof ke=="function"?ke(we):ke,at=Ta(we,Le);$.current=at,R(at),Ha(at)}};return D2().then(fe),()=>{te=!0}},[]);const[ne,Ce]=o.useState(null),[re,ie]=o.useState(null),W=o.useCallback((te,fe)=>{te==="main"?Ce(fe):ie(fe)},[]),oe=o.useRef(null),pe=o.useRef(null),xe=o.useCallback(()=>{pe.current!==null&&(clearTimeout(pe.current),pe.current=null);const te=oe.current;oe.current=null,te&&oi(te)},[]);o.useEffect(()=>{if(typeof window>"u")return;const te=()=>{document.visibilityState==="hidden"&&xe()};return window.addEventListener("pagehide",xe),document.addEventListener("visibilitychange",te),()=>{window.removeEventListener("pagehide",xe),document.removeEventListener("visibilitychange",te),xe()}},[xe]);const ge=o.useCallback(te=>{const fe=Ta($.current,te);if($.current=fe,R(fe),!J.current){Y.current={...Y.current??{},...te},Ha(fe);return}ee.current||(oe.current=fe,pe.current!==null&&clearTimeout(pe.current),pe.current=setTimeout(xe,x3)),Ha(fe)},[xe]),Be=P.mainSpeed,he=P.mainVolume,ye=o.useCallback(te=>ge({mainSpeed:te}),[ge]),Te=o.useCallback(te=>ge({mainVolume:te}),[ge]),Oe=o.useMemo(()=>({settings:P,setSettings:ge,registerAnalyser:W,mainAnalyser:ne,noiseAnalyser:re,playbackRate:Be,setPlaybackRate:ye,mainVolume:he,setMainVolume:Te}),[P,ge,W,ne,re,Be,ye,he,Te]),Pe=o.useRef(null),[ce,ae]=o.useState(0),Ne=o.useRef([]),[je,Ae]=o.useState("center"),[ve,Se]=o.useState(!1),me=o.useRef(!1),Ge=o.useRef(null),Ue=o.useCallback(te=>{me.current||(me.current=!0,Se(!0),Ge.current=setTimeout(()=>{try{te()}catch{me.current=!1,Se(!1)}},_3()?0:Z5))},[]);o.useEffect(()=>()=>{Ge.current&&clearTimeout(Ge.current)},[]);const Ye=o.useRef(h);o.useEffect(()=>{Ye.current=h}),o.useEffect(()=>{const te=Pe.current,fe=document.activeElement;if(Fr(te,fe),te){const V=Array.from(te.querySelectorAll(gn)).filter(se=>!se.closest('[aria-hidden="true"]'))[0];if(V)try{V.focus()}catch{}}return()=>{const V=document.activeElement;if(!V||V===document.body||te&&te.contains(V))try{Or(fe)?.focus?.()}catch{}}},[]),o.useEffect(()=>In(()=>Ue(()=>{const te=Ye.current;typeof te=="function"&&te()})),[Ue]),Pr(Pe,!0);const[Ze,Xe]=o.useState(!1),ze=o.useRef(!1),[$e,Ve]=o.useState(null),ot=o.useRef(0),Ct=()=>{ot.current+=1,Ve(null)},[zt,gt]=o.useState(""),[nt,Je]=o.useState(()=>lr()),et=o.useRef(typeof d=="number"?d:null);o.useEffect(()=>{!E&&!D||(Je(lr()),Ct())},[E,M,D]),o.useEffect(()=>{D&&Je(te=>{const fe=Math.max(0,Math.min(te.pageIndex,Math.max(0,F-1)));return fe!==te.pageIndex?{...te,pageIndex:fe,stepIndex:0}:te})},[D,F]);const lt=D?Math.max(0,Math.min(nt.pageIndex,F-1)):0,We=D?L[lt]:null,ft=D&&We&&Array.isArray(We.steps)?We.steps:[],qe=E?nt.pageIndex:D?lt:typeof d=="number"?d:0,pt=E?G[Math.max(0,Math.min(nt.pageIndex,Math.max(0,G.length-1)))]:null,Et=E&&pt&&Array.isArray(pt.steps)?pt.steps:[],kt=E?Et.length:D?ft.length:typeof m=="number"?m:0,_t=E||D?Math.max(0,Math.min(nt.stepIndex,Math.max(0,kt))):typeof p=="number"?p:0,st=E?G.length:D?F:typeof u=="number"?u:0;o.useLayoutEffect(()=>{const te=et.current;if(typeof qe=="number"&&te!==null&&qe!==te&&qe>te)try{gt(j("training.problemNotice",{n:qe+1}))}catch{}et.current=typeof qe=="number"?qe:et.current},[qe,d,j]),o.useLayoutEffect(()=>{const te=Pe.current;if(!te)return;const fe=()=>te.querySelector(".page-popup__scroll");let V=null,se=null,ue=null;const we=ut=>{const Nt=fe();if(!Nt)return;const qt=Nt.scrollHeight<=Nt.clientHeight;if(Ae(qt?"center":"top"),ut&&!ze.current){ze.current=!0;try{Xe(!0)}catch{}try{at.disconnect()}catch{}}},ke=()=>{V!==null&&cancelAnimationFrame(V),V=requestAnimationFrame(()=>{se!==null&&clearTimeout(se),se=setTimeout(()=>we(!0),60)})},Le=()=>{ue!==null&&cancelAnimationFrame(ue),ue=requestAnimationFrame(()=>we(!1))};ke(),window.addEventListener("resize",Le);const at=new MutationObserver(ke);at.observe(te,{childList:!0,subtree:!0,attributes:!0});const vt=setTimeout(()=>{ze.current||we(!0)},400);return()=>{window.removeEventListener("resize",Le),V!==null&&cancelAnimationFrame(V),se!==null&&clearTimeout(se),ue!==null&&cancelAnimationFrame(ue),clearTimeout(vt);try{at.disconnect()}catch{}}},[Pe]);const Ie=o.useCallback(te=>{Pe.current&&(Pe.current._childOnNext=te)},[]),rt=o.useCallback(te=>{Pe.current&&(Pe.current._childOnResult=te)},[]),bt=o.useCallback((te,fe,V)=>{Je(se=>{const ue=se.answersByPage[te]||{},we=ue[fe],ke=Vo(V),Le=Vo(we);return we&&Le>ke?se:{...se,answersByPage:{...se.answersByPage,[te]:{...ue,[fe]:V}}}})},[Je]),Vt=o.useCallback((te,fe,V)=>{const se=qo(pt,qe),ue=Uo(te,fe);bt(se,ue,V)},[pt,qe,bt]),tt=o.useCallback((te,fe,V)=>{const se=qo(pt,qe),ue=Uo(te,fe);bt(se,ue,V),!V?.allowChange&&te?.autoAdvance!==!1&&Je(we=>({...we,stepIndex:Math.max(we.stepIndex,fe+1)}))},[pt,qe,bt,Je]),Zt=o.useCallback((te,fe)=>{const V=We?.id||`children-page-${qe??0}`,se=typeof fe=="number"?fe:_t??0,ue=`step-${se}`;bt(V,ue,te),te?.allowChange||Je(we=>({...we,stepIndex:Math.max(we.stepIndex,se+1)}))},[We,qe,_t,bt,Je]),An=o.useCallback((te,fe)=>{const V=We?.id||`children-page-${qe??0}`,se=`step-${typeof fe=="number"?fe:_t??0}`;bt(V,se,te)},[We,qe,_t,bt]),Bt=D?{currentPageIndex:qe??0,currentStepIndex:_t??0,totalStepsInPage:ft.length,handleStepDone:Zt,handleStepChange:An}:null,Wt=async()=>{const te=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:G,flowState:nt,answersByPage:nt.answersByPage})):null;return typeof q=="function"&&await Promise.resolve(q(te))||te},en=async()=>{const te=We?.id||`children-page-${nt.pageIndex}`,fe=nt.answersByPage[te]||{},V=K?(()=>{const we={};let ke=0;return L.forEach(Le=>{const at=nt.answersByPage[Le.id]||{},vt=Array.isArray(Le.steps)?Le.steps.length:0;for(let ut=0;ut<vt;ut+=1){const Nt=at[`step-${ut}`];typeof Nt<"u"&&(we[`step-${ke+ut}`]=Nt)}ke+=vt}),we})():fe;if(typeof g=="function"){const we=await Promise.resolve(g(V,{pageAnswers:fe,answersByPage:nt.answersByPage,pages:L,currentPageId:te}));return typeof q=="function"&&await Promise.resolve(q(we))||we}const se=Object.entries(fe).map(([we,ke],Le)=>({index:Le,key:we,payload:ke})),ue={results:se,answers:se,score:0};return typeof q=="function"&&await Promise.resolve(q(ue))||ue},on=()=>{const te=++ot.current,fe=()=>te!==ot.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(E){const ue=Wt();Ve(Mn);const we=ue;Promise.resolve(we).then(ke=>{fe()||Ve(ke||{isEmpty:!0})}).catch(ke=>{!fe()&&Ve({isEmpty:!0})});return}if(D){const ue=en();Ve(Mn);const we=ue;Promise.resolve(we).then(ke=>{fe()||Ve(ke||{isEmpty:!0})}).catch(ke=>{!fe()&&Ve({isEmpty:!0})});return}const V=Pe.current&&Pe.current._childOnResult,se=ue=>{try{return ue?ue():void 0}catch{return}};if(typeof V=="function"){const ue=se(V);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:fn&&fn.tagName.toUpperCase()==="SCRIPT"&&fn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ue&&typeof ue.then!="function"?Ve(ue):Ve(ue&&typeof ue.then=="function"?Mn:{});const we=()=>{fe()||Ve(ke=>ke===Mn?{}:ke)};Promise.resolve(ue).then(ke=>{ke&&!fe()?Ve(ke):we()}).catch(ke=>{we()});return}if(typeof q=="function"){const ue=se(q);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:fn&&fn.tagName.toUpperCase()==="SCRIPT"&&fn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ue&&typeof ue.then!="function"?Ve(ue):Ve(ue&&typeof ue.then=="function"?Mn:{});const we=()=>{fe()||Ve(ke=>ke===Mn?{}:ke)};Promise.resolve(ue).then(ke=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:fn&&fn.tagName.toUpperCase()==="SCRIPT"&&fn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ke&&!fe()?Ve(ke):we()}).catch(ke=>{console.error("viewResults external handler failed",ke),we()});return}},cn=()=>{if(E){if(typeof qe=="number"&&typeof st=="number"&&qe<st-1){Je(fe=>({...fe,pageIndex:fe.pageIndex+1,stepIndex:0}));return}return on()}if(D){const fe=ft.length;if(typeof _t=="number"&&_t<fe-1){Je(V=>({...V,stepIndex:V.stepIndex+1}));return}if(typeof qe=="number"&&typeof st=="number"&&qe<st-1){Je(V=>({...V,pageIndex:V.pageIndex+1,stepIndex:0}));return}return on()}if(typeof v=="function"){try{v()}catch{}return}const te=Pe.current&&Pe.current._childOnNext;if(typeof te=="function"){try{te()}catch{}return}},tn=E?I.title||I.label||y||j("common.popup","\uD31D\uC5C5"):a||x||(Array.isArray(s)?s[s.length-1]:void 0)||y||j("common.popup","\uD31D\uC5C5"),Bn=y||tn,Xt=E?I.title??I.label??tn:a??x??tn,yt=(te,fe)=>{const V=qo(pt,qe),se=Uo(te,fe),ue=nt.answersByPage[V]?.[se],we=v3(te,{page:pt,pageIndex:qe,step:te,stepIndex:fe,storedPayload:ue,answersByPage:nt.answersByPage,flowState:nt}),ke={key:se,index:fe,stepIndex:_t,isLast:fe===Et.length-1};switch(te?.type){case"listen":return n.jsx(Fo,{...ke,...we,onDone:Le=>tt(te,fe,Le)});case"confirm":return n.jsx(Po,{...ke,...we,onDone:Le=>tt(te,fe,Le),onChange:Le=>Vt(te,fe,Le)});case"confirmWithText":return n.jsx(Io,{...ke,...we,onDone:Le=>tt(te,fe,Le),onChange:Le=>Vt(te,fe,Le)});case"orderList":return n.jsx(Oo,{...ke,...we,onDone:Le=>tt(te,fe,Le),onChange:Le=>Vt(te,fe,Le)});default:return null}},un=o.useRef(void 0);o.useEffect(()=>{const te=un.current;if(un.current=qe,te===void 0||te===qe||!Ja())return;const fe=Pe.current;if(!fe)return;const V=document.activeElement;if(!(!V||V===document.body||!fe.contains(V)||V.disabled===!0))return;const se=fe.querySelector(`.training-steps ${gn.split(", ").join(", .training-steps ")}`)??Array.from(fe.querySelectorAll(gn)).find(ue=>!ue.closest('[aria-hidden="true"]'));try{se?.focus()}catch{}},[qe]);const Jt=E?G.length>0?n.jsx("div",{className:"training-steps",children:Et.map((te,fe)=>yt(te,fe))},`replay-${ce}`):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||j("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Tt=D?n.jsxs(iu.Provider,{value:Bt,children:[We?.pageTop?n.jsx("div",{className:"training-page-top",children:We.pageTop}):null,n.jsx("div",{className:"training-steps",children:ft.map((te,fe)=>{const V=te;return o.cloneElement(V,{...V.props,_stepIndex:fe,_totalSteps:ft.length,_stepKey:`step-${fe}`,_pageIndex:qe})})},`replay-${ce}`),We?.pageBottom?n.jsx("div",{className:"training-page-bottom",children:We.pageBottom}):null]}):null,dn=o.useCallback(()=>{let te;if(_){const fe=$e,{results:V,correct:se,total:ue}=Cu($e);B2({items:S2(V),category:fu.has(_)?"sentence":"word",trainingType:_,entryPoint:B??"sentence",itemRef:A??null,correct:se,total:ue,score:typeof fe?.score=="number"?fe.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-H.current)/1e3)),dailyTotal:N??null}),te={correct:se,total:ue,attempt:Ne.current.length+1,previousAttempts:[...Ne.current]}}Ct(),Ue(()=>{typeof b=="function"&&b(te),typeof h=="function"&&h()})},[b,h,_,B,N,A,$e,Ve,Ue]),Qt=o.useCallback(()=>gt(""),[gt]),pn=o.useCallback(()=>{Ue(()=>{typeof h=="function"&&h()})},[h,Ue]),Ee=n.jsxs("div",{className:`page-popup${ve?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Bn,children:[n.jsxs("div",{ref:Pe,className:`page-popup__panel ${Ze?"":"page-popup__panel--measuring"} ${je==="center"?"page-popup__panel--center":je==="top"?"page-popup__panel--top":""}`,children:[n.jsx(au,{title:Xt,subtitle:E?I.subtitle||I.label:Array.isArray(s)?s.join(" / "):void 0,desc:E?void 0:r,depth:E?I.depth:s,icon:E?I.icon:i,wrapperStyle:E?I.wrapperStyle:l,iconTooltip:E?I.iconTooltip:c,progressMax:st,progressIndex:qe,pageIndex:qe,pageCount:st,onBack:pn,onClose:pn}),n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content ${je==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:D?Tt:E?Jt:typeof f=="function"?f({registerOnNext:Ie,registerOnResult:rt,panelRef:Pe,setResultOverlay:Ve}):f})}),n.jsx(nu,{onSettings:C,onNext:cn,onResult:on,useNoiseSettingBtn:!!(E?I.useNoiseSetting??!0:w),stepIndex:_t,stepCount:kt,pageIndex:qe,pageCount:st,resultOpen:!!($e&&!$e.isEmpty)})]}),$e&&!$e.isEmpty&&(S??w3)({score:$e.score,results:$e.results||$e.answers||[],contextsLength:$e.results?$e.results.length:$e.answers?$e.answers.length:0,onReplay:()=>{if(H.current=Date.now(),$e!==Mn){const{correct:te,total:fe}=Cu($e);Ne.current.push({correct:te,total:fe})}if(Ct(),ae(te=>te+1),E){if(Je(lr()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(D){Je(lr());return}try{const te=Pe.current&&Pe.current._childOnResult;typeof te=="function"&&te({replay:!0})}catch{}},onClose:dn,pending:$e===Mn}),$e?.isEmpty&&n.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":j("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:j("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),n.jsx("div",{className:"page-popup__bottom",children:n.jsx(le,{htmlType:"button",variant:"main",size:48,onClick:dn,label:j("training.result.done","\uC644\uB8CC")})})]})}),n.jsx(ea,{message:zt,position:"top",onClose:Qt})]}),Fe=n.jsx(jo.Provider,{value:Oe,children:Ee});return typeof document<"u"&&document.body?Ut.createPortal(Fe,document.body):Fe}const Ln=k3;Ln.Page=ir,Ln.ListenStep=lu,Ln.ConfirmStep=cu,Ln.ConfirmWithTextStep=uu,Ln.OrderListStep=du,Ln.CardStep=pu,Ln.CardOrderStep=g3;function A3({label:e,homonum:t}){const a=Gn()?.(e,t)??"",{imgRef:r,loading:s,hasImage:i,onLoad:l,onError:c}=yo(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:c})]}):n.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:n.jsx("span",{children:e})})}function gu({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,c=window.innerWidth;let d=t.left+t.width/2-i/2,u=t.top-l-8;u<8&&(u=t.bottom+8),d=Math.max(8,Math.min(d,c-i-8)),s({left:d,top:u})},[t]),!t||e.length===0?null:Ut.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(A3,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const B3=new Intl.Collator("ko");function N3({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:s,groups:i,selected:l=[],onSelect:c,maxSelect:d,onClearSelection:u,onPrint:p,onPrintEmpty:m,className:h,emptyHint:b,sectionType:v="page",disc:C,notice:w}){const{t:f,i18n:y}=be.useTranslation(),x=y.language?.startsWith("ko")??!1,{anchorRect:g,openAt:k,close:_}=ya(),[B,N]=o.useState(null),A=o.useCallback(()=>{_(),N(null)},[_]);rb(A,!!B);const S=(r??"").trim(),O=/^[^,[\]\s]+$/.test(S)?S:"",H=O.length>0,j=r===void 0&&t===void 0,q=H?"match":j?"original":"ganada",[E,M]=o.useState(()=>q),[I,G]=o.useState("50"),[Z,U]=o.useState(1),[z,K]=o.useState(H);z!==H&&(K(H),M(q));const L=E==="match"&&!H||E==="original"&&!j?q:E,D=o.useMemo(()=>[...H?[{value:"match",label:f("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...j?[{value:"original",label:f("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:f("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:f("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:f("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:f("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:f("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:f("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[f,H,j]),F=o.useMemo(()=>["10","25","50","100"].map(he=>({value:he,label:f("wordSearch.pageSize",{count:Number(he),defaultValue:`${he}\uAC1C\uC529 \uBCF4\uAE30`})})),[f]),P=he=>he.words?.[0],R=o.useMemo(()=>{const he=[...O].length,ye=d2(O),Te=new Map;return Oe=>{let Pe=Te.get(Oe);return Pe===void 0&&(Pe=ye((Oe.words?.[0]?.label??"").slice(0,he))?0:1,Te.set(Oe,Pe)),Pe}},[O]),$=o.useCallback((he,ye)=>{const Te=ce=>P(ce)?.label??"",Oe=ce=>P(ce)?.syllables??[...Te(ce)].length,Pe=ce=>(ce.words??[]).reduce((ae,Ne)=>{const je=parseInt(Ne.grade??"",10);return Number.isFinite(je)&&je<ae?je:ae},999);switch(L){case"match":return R(he)-R(ye)||B3.compare(Te(he),Te(ye));case"ganada":return Te(he).localeCompare(Te(ye),"ko");case"ganada_desc":return Te(ye).localeCompare(Te(he),"ko");case"syllable":return Oe(he)-Oe(ye)||Te(he).localeCompare(Te(ye),"ko");case"syllable_desc":return Oe(ye)-Oe(he)||Te(he).localeCompare(Te(ye),"ko");case"grade":return Pe(he)-Pe(ye)||Te(he).localeCompare(Te(ye),"ko");case"grade_desc":return Pe(ye)-Pe(he)||Te(he).localeCompare(Te(ye),"ko");default:return 0}},[L,R]),ee=o.useMemo(()=>s.slice().sort($),[s,$]),J=Number(I)||10,Y=o.useMemo(()=>(i??[]).flatMap(he=>he.items.slice().sort($).map(ye=>({item:ye,label:he.label}))),[i,$]),ne=i?Y.length:ee.length,Ce=Math.max(1,Math.ceil(ne/J)),re=Math.min(Z,Ce),ie=o.useMemo(()=>ee.slice((re-1)*J,re*J),[ee,re,J]),W=o.useMemo(()=>{if(!i)return null;const he=Y.slice((re-1)*J,re*J),ye=new Map;for(const{item:Te,label:Oe}of he)ye.has(Oe)||ye.set(Oe,[]),ye.get(Oe).push(Te);return[...ye.entries()].map(([Te,Oe])=>({label:Te,items:Oe}))},[i,Y,re,J]);o.useEffect(()=>{U(1)},[E,I,ne,r]);const oe=ne>0?n.jsxs("div",{className:"word-search-result-block__toolbar",children:[n.jsx(rn,{size:40,options:D,value:L,onChange:M,ariaLabel:f("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),n.jsx(rn,{size:40,options:F,value:I,onChange:G,ariaLabel:f("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),n.jsx(Ya,{page:re,totalPages:Ce,onChange:U})]}):void 0,pe=he=>{c&&c(he)},xe=t!==void 0&&a?n.jsxs(n.Fragment,{children:[f("wordSearch.resultTitlePrefix","\uCD1D "),n.jsx("span",{style:{color:"var(--color-main)"},children:t}),f("wordSearch.resultTitleSuffix",{unit:x?y2(a):a})]}):void 0,ge=t!==void 0&&t>0&&d!==void 0&&a?f("wordSearch.resultDisc",{unit:x?x2(a):a,max:d,selected:l.length}):void 0,Be=C??(w?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"word-search-result-block__notice",children:w}),ge?n.jsx("span",{className:"word-search-result-block__disc",children:ge}):null]}):ge);return n.jsxs(na,{type:v,icon:e,title:xe,action:oe,disc:Be,className:De("word-search-result-block",h),children:[n.jsxs("div",{className:"word-search-result-block__inner",children:[(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:f("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),b&&n.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:b})]}),i?(W??[]).map(he=>n.jsx("div",{className:"word-search-result-block__group",children:n.jsx("div",{className:"word-search-result-block__items",children:he.items.map(ye=>{const Te=l.includes(ye.id);return n.jsx("div",{onMouseEnter:Oe=>{k(Oe.currentTarget),N(ye.words??[])},onMouseLeave:A,children:n.jsx(le,{htmlType:"button",size:"word",align:"grid",label:(ye.words??[]).map(Oe=>Oe.label),subLabel:(ye.words??[]).some(Oe=>Oe.subLabel)?(ye.words??[]).map(Oe=>Oe.subLabel):void 0,selected:Te,onClick:()=>pe(ye.id),minWidth:200})},ye.id)})})},he.label)):n.jsx("div",{className:"word-search-result-block__items",children:ie.map(he=>{const ye=l.includes(he.id);return n.jsx("div",{onMouseEnter:Te=>{k(Te.currentTarget),N(he.words??[])},onMouseLeave:A,children:n.jsx(le,{htmlType:"button",size:"word",align:"grid",label:(he.words??[]).map(Te=>Te.label),subLabel:(he.words??[]).some(Te=>Te.subLabel)?(he.words??[]).map(Te=>Te.subLabel):void 0,selected:ye,onClick:()=>pe(he.id),minWidth:200})},he.id)})}),B&&g&&n.jsx(gu,{words:B,anchorRect:g})]}),Ce>1&&n.jsx("div",{className:"word-search-result-block__pagination-bottom",children:n.jsx(Ya,{page:re,totalPages:Ce,onChange:U})}),(u||p)&&n.jsxs("div",{className:"word-search-result-block__actions",children:[u&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:f("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:u}),p&&n.jsx("div",{onClick:l.length===0?m:void 0,children:n.jsx(le,{htmlType:"button",size:"56",type:"bar",variant:"main",label:f("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function S3(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 D3({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:s=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:d,placeholder:u="-",className:p,title:m,titleIcon:h,disc:b,showInfoButton:v=!0,onClearPhoneme:C,onSearch:w,onSearchEmpty:f,searchDisabled:y=!1,searchLabel:x,searchChecking:g=!1,pairMode:k=!1,sectionType:_="page",beforeSearchContent:B,beforeContent:N,afterContent:A,hideCountControl:S=!1,ordinal:O=!1}){const{t:H}=be.useTranslation(),j=o.useMemo(()=>H("wordPairs.infoNotes",{returnObjects:!0}),[H]),q=o.useMemo(()=>Array.from({length:s-i+1},(P,R)=>{const $=i+R;return{key:String($),label:H("wordPairs.count",{n:$})}}),[H,s,i]),E=o.useMemo(()=>H("wordPairs.ordinals",{returnObjects:!0}),[H]),M=o.useCallback(P=>O?H("wordPairs.phonemeOrdinalLabel",{ordinal:E[P-1]??P}):a===1?H("wordPairs.phonemeSingleLabel","\uC74C\uC808"):H("wordPairs.phonemeN",{n:P}),[O,E,a,H]),I=o.useCallback(P=>O?H("wordPairs.phonemeContrastOrdinalLabel",{ordinal:E[P-1]??P}):a===1?H("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):H("wordPairs.phonemeContrast",{n:P}),[O,E,a,H]),G=o.useCallback((P,R)=>R?n.jsxs(n.Fragment,{children:[P,n.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):P,[]),{anchorRect:Z,toggleAt:U,close:z}=ya(),K=o.useCallback(P=>r(Number(P)),[r]),L=Yt("(max-width: 767px)"),D=o.useCallback(P=>S3(P,e).map(({label:R,value:$,displayLabel:ee})=>{const J=!!$&&$!=="\uC5C6\uC74C";return n.jsxs("span",{className:De("phoneme-select-block__cell-jamo-part",$?"":"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${$==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:$==="\uC5C6\uC74C"?"x":$||u}),J&&n.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:ee??R})]},R)}),[e,u]),F=n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-tooltip-ignore":!0,children:n.jsx(le,{htmlType:"button",size:40,type:L?"dot":void 0,icon:"info",label:L?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:P=>U(P.currentTarget)})}),Z&&n.jsx(Fn,{title:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:j,anchorRect:Z,onClose:z})]});return n.jsxs(na,{type:_,title:m,icon:h,disc:b,action:v?F:void 0,className:De("phoneme-select-block",p),children:[N,!S&&n.jsx("div",{className:"phoneme-select-block__controls",children:n.jsx(_n,{options:q,value:String(a),onChange:K,size:40,className:"phoneme-select-block__count-control"})}),n.jsx("div",{className:"phoneme-select-block__cells",children:k?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((P,R)=>{const $=t[R*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($)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:M(R+1)})]},R)})}),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((P,R)=>{const $=t[R*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($)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:I(R+1)})]},R)})})]}):t.map((P,R)=>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(P)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:M(R+1)})]},R))}),(l||c)&&n.jsx("div",{className:"phoneme-select-block__panels",children:n.jsx("div",{className:"phoneme-select-block__detail",children:k?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((P,R)=>{const $=t[R*2]??{};return n.jsx(kn,{title:G(M(R+1),R===0),sections:c?c($,R*2):l,selected:$,onSelect:d?.(R*2),align:"newline"},R)})}),n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((P,R)=>{const $=t[R*2+1]??{};return n.jsx(kn,{title:I(R+1),sections:c?c($,R*2+1):l,selected:$,onSelect:d?.(R*2+1),align:"newline"},R)})})]}):t.map((P,R)=>n.jsx(kn,{title:G(M(R+1),R===0),sections:c?c(P,R):l,selected:P,onSelect:d?.(R),align:"newline"},R))})}),B&&n.jsx("div",{className:"phoneme-select-block__before-search",children:B}),(C||w||g)&&(()=>{const P=t.every(R=>Object.entries(R).every(([$,ee])=>!ee||$==="\uC885\uC131"&&ee==="\uC5C6\uC74C"));return n.jsxs("div",{className:"phoneme-select-block__search-row",onClick:P?f:void 0,children:[C&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:H("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:P,onClick:P?void 0:C}),w?n.jsx(le,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:g?n.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:x??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:P||y||g,onDisabledClick:g?()=>{}:void 0,"aria-busy":g||void 0,onClick:w}):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:x??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),A]})}function E3({title:e,sections:t,selected:a,onSelect:r,className:s}){const{t:i}=be.useTranslation();return n.jsx(kn,{className:s,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,align:"inline"})}function j3({title:e,headerAction:t,sections:a,selected:r,onSelect:s,className:i}){const{t:l}=be.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 T3({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:i,onPositionCountChange:l,inputMode:c,onInputModeChange:d,className:u}){const{t:p}=be.useTranslation(),m={searchMode:p("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:p("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:p("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:p("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:p("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:p("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:p("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:p("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:p("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:p("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:p("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},h=w=>p("wordPairs.count",{n:w}),b=[{label:m.searchMode,items:[m.include,m.pick,m.explicit],display:"segmented",labelAction:n.jsx(Aa,{title:p("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[p("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."),p("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."),p("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:m.phonemeOrder,items:[m.orderAny,m.orderMatch],display:"segmented",labelAction:n.jsx(Aa,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:m.count,items:[h(1),h(2)],display:"segmented"},{label:m.inputMode,items:[m.charInput,m.pronInput],display:"segmented",labelAction:n.jsx(Aa,{title:p("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[p("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."),p("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={[m.searchMode]:t==="explicit"?m.explicit:t==="pick"?m.pick:m.include,[m.phonemeOrder]:r==="ordered"?m.orderMatch:m.orderAny,[m.count]:h(i),[m.inputMode]:c==="phoneme"?m.pronInput:m.charInput},C=(w,f)=>{f===m.searchMode?a(w===m.explicit?"explicit":w===m.pick?"pick":"include"):f===m.phonemeOrder?s(w===m.orderMatch?"ordered":"unordered"):f===m.count?l(w===h(2)?2:1):f===m.inputMode&&d(w===m.pronInput?"phoneme":"word")};return n.jsx(kn,{className:u,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:b,selected:v,onSelect:C,align:"inline"})}function M3(e){const{title:t,items:a,columns:r,gridTemplateColumns:s,mobileGridTemplateColumns:i,searchPlaceholder:l,searchFn:c,defaultSortKey:d,defaultSortAsc:u=!0,selectedId:p,selectedIds:m,onSelect:h,onClose:b,pageSizeOptions:v=[10,25,50,100],initialPageSize:C,emptyText:w,countLabel:f,topContent:y,className:x=""}=e,{t:g}=be.useTranslation(),k=l??g("common.search","\uAC80\uC0C9"),_=w??g("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[B,N]=o.useState(""),[A,S]=o.useState(d??r[0]?.key??""),[O,H]=o.useState(u),[j,q]=o.useState(String(C??v[0]??10)),[E,M]=o.useState(1);o.useEffect(()=>{M(1)},[B,j]);const I=c!==null,G=o.useCallback(($,ee)=>{if(!ee)return!0;const J=ee.toLowerCase();return r.some(Y=>{const ne=$[Y.key];return ne==null?!1:String(ne).toLowerCase().includes(J)})},[r]),Z=c??G,U=o.useMemo(()=>{const $=I?a.filter(ee=>Z(ee,B)):a;return A?[...$].sort((ee,J)=>{const Y=ee[A],ne=J[A];return Y===ne?0:Kr(Y,ne,O)}):$},[a,B,A,O,I,Z]),z=Math.max(1,Math.ceil(U.length/Number(j)));E>z&&M(z);const K=Math.min(E,z),L=U.slice((K-1)*Number(j),K*Number(j)),D=o.useCallback($=>{A===$?H(ee=>!ee):(S($),H(!0)),M(1)},[A]),F=o.useMemo(()=>{if(typeof f=="function"){const $=U.length,ee=f($);if(typeof ee=="string"){const J=ee.lastIndexOf(String($));if(J>=0)return{prefix:ee.slice(0,J),suffix:ee.slice(J+String($).length)}}return{label:ee}}if(typeof f=="string"&&f.includes("{n}")){const[$,ee]=f.split("{n}");return{prefix:$,suffix:ee}}return{prefix:g("common.totalCountPrefix","\uCD1D "),suffix:g("common.totalCountSuffix","\uAC1C")}},[f,U.length,g]),P=o.useMemo(()=>r.map($=>({label:$.label,onClick:$.sortable!==!1?()=>D($.key):void 0,className:$.className,sortDir:$.sortable!==!1&&A===$.key?O?"asc":"desc":null})),[r,A,O,D]),R=o.useMemo(()=>v.map($=>({value:String($),label:g("common.pageSizeLabel",{n:$})})),[v,g]);return n.jsxs(jn,{className:`popup-list ${x}`,title:t,onClose:b,children:[y,"label"in F&&n.jsx("p",{className:"toolbar__count body-1",children:F.label}),n.jsx(so,{count:"label"in F?void 0:{value:U.length,prefix:F.prefix,suffix:F.suffix},search:I?{value:B,onChange:N,placeholder:k}:void 0,pageSize:{options:R,value:j,onChange:q},pagination:{page:K,total:z,onChange:M}}),n.jsx(Co,{size:"medium",gridTemplateColumns:s,mobileGridTemplateColumns:i,resizable:!0,fields:P,items:L,onRowClick:h,renderRow:$=>{const ee=m!=null?$.id!=null&&m.has($.id):p!=null&&$.id===p;return r.map(J=>({content:J.render?J.render($):$[J.key]??"",className:De(J.className,ee&&"popup-list__row--selected")}))},empty:_})]})}function L3(e){const{title:t,message:a,topContent:r,details:s,children:i,confirmLabel:l,cancelLabel:c,hideCancel:d=!1,extraAction:u,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:h,closeOnConfirm:b=!0,onClose:v,inline:C,size:w="small",className:f,initialFocus:y="close"}=e,{t:x}=be.useTranslation(),g=o.useRef(null);o.useEffect(()=>{if(C||y==="close")return;const S=g.current?.closest(".popup-panel"),O=Array.from(S?.querySelectorAll(".popup-footer--buttons button")??[]),H=y==="confirm"?O[O.length-1]:d?void 0:O[u?1:0];H&&!H.disabled&&H.focus()},[]);const k=o.useRef(!1),[_,B]=o.useState(!1),N=S=>{let O=!1;return{close:()=>{O=!0,S()},\uB2EB\uC558\uB098:()=>O}},A=async S=>{if(k.current)return;k.current=!0;const O=typeof document<"u"?document.activeElement:null;B(!0);let H=!1;try{H=await S()}catch(j){typeof console<"u"&&console.error(j)}finally{H||(k.current=!1,B(!1),requestAnimationFrame(()=>{const j=document.activeElement;(!j||j===document.body)&&O?.isConnected&&O.focus()}))}};return n.jsxs(jn,{title:t,onClose:v,closeDisabled:_,inline:C,size:w,className:De("confirm-popup",f),buttons:[...u?[{label:u.label,variant:u.variant??"default",disabled:u.disabled||_,onClick:async({closeWithAnimation:S})=>{await A(async()=>{const O=N(S);await u.onClick(O.close);const H=u.closeOnClick??!0;return H&&S(),H||O.\uB2EB\uC558\uB098()})}}]:[],...d?[]:[{label:c??x("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:_,onClick:({closeWithAnimation:S})=>S()}],{label:l??x("common.confirm","\uD655\uC778"),variant:p,disabled:m||_,onClick:async({closeWithAnimation:S})=>{await A(async()=>{const O=N(S);return await h(O.close),b&&S(),b||O.\uB2EB\uC558\uB098()})}}],children:[r!=null&&n.jsx("div",{className:"confirm-popup__top",children:r}),s&&s.length>0&&n.jsx(sr,{children:s.map((S,O)=>n.jsx(Tn,{label:S.label,children:n.jsx("span",{className:"panel-row__text body-2",children:S.value})},O))}),n.jsx("p",{ref:g,className:"body-2 confirm-popup__message",children:a}),i]})}function $3({onApply:e,onCancel:t}){const{t:a}=be.useTranslation(),[r,s]=o.useState(""),[i,l]=o.useState(!1),[c,d]=o.useState(null),u=o.useRef(null);o.useEffect(()=>{u.current?.focus()},[]);const p=o.useCallback(async b=>{const v=r.trim();if(v){l(!0),d(null);try{await e(v),b()}catch(C){d(ti(C)),l(!1),requestAnimationFrame(()=>u.current?.focus())}}},[r,e]),m=o.useCallback((b,v)=>{b.key==="Enter"&&!b.nativeEvent.isComposing&&p(v)},[p]),h=b=>{s(b.target.value),d(null)};return n.jsx(jn,{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:b})=>b()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:b})=>{p(b)}}],children:({closeWithAnimation:b})=>n.jsxs(n.Fragment,{children:[n.jsx("input",{ref:u,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:h,onKeyDown:v=>m(v,b),disabled:i,autoComplete:"off",spellCheck:!1}),c&&n.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const bu=["var(--color-main)","var(--color-sub)"],R3=2e3;function P3(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 Go({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),w=t-C,f=(y,x)=>Array.from({length:y}).map((g,k)=>{const _=6+Math.random()*12,B=Math.round(Math.min(18,_*Math.min(1.5,1+r*.4))),N=bu[Math.floor(Math.random()*bu.length)],A=Math.random()*300,S=(360+Math.random()*260)*r*1.2,O=(x==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,H=Math.cos(O)*S,j=Math.sin(O)*S*1.35,q=Math.random()*720-360,E=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),M=Math.random()>.7?"50%":"3px";return{id:`${x}-${k}`,side:x,size:B,color:N,delay:A,vx:H,vy:j,angularVel:q,life:E,borderRadius:M}});return[...f(C,"left"),...f(w,"right")]},[t,r]),c=o.useRef(null),d=o.useRef({}),u=o.useRef(null),p=o.useRef(s);o.useEffect(()=>{p.current=s},[s]);const m=o.useRef(null),h=o.useRef(null),b=()=>{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"&&h.current==null&&(h.current=b()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const z=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(z)}const C=1200,w=performance.now(),f=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,y=Math.max(60,(window.innerHeight||800)*.05),x=z=>Math.max(40,(z||window.innerWidth)*.02),g=f?.width||window.innerWidth||375,k=f?.height||window.innerHeight||812,_=z=>{const K=[...z].sort((L,D)=>L-D);return K[Math.floor(K.length/2)]||1},B=_(l.map(z=>Math.abs(z.vy))),N=_(l.map(z=>Math.abs(z.vx))),A=Math.sqrt(2*C*(k*.72+y))/B,S=B*A/C,O=g*.5/(N*S),H=(z,K,L)=>Math.min(L,Math.max(K,z)),j=H(A,.8,2.4),q=H(O,.7,2.2),E=a>0?a/R3:1,M=l.map(z=>({...z,life:z.life*E,vx:z.vx*q,vy:z.vy*j,startTime:w+z.delay,ended:!1})),I=f?{x:f.left-x(f.width),y:f.top+f.height+y}:{x:-x(window.innerWidth),y:window.innerHeight+y},G=f?{x:f.left+f.width+x(f.width),y:f.top+f.height+y}:{x:window.innerWidth+x(window.innerWidth),y:window.innerHeight+y},Z=z=>{let K=!1;for(const L of M){const D=d.current[L.id];if(!D||!D)continue;if(z<L.startTime){D.style.display="none",K=!0;continue}if(!L._inited){const re=L.side==="left"?I.x:G.x,ie=L.side==="left"?I.y:G.y;D.style.left=`${re}px`,D.style.top=`${ie}px`,D.style.transform="translate3d(0px, 0px, 0)",D.style.display="block",D.style.zIndex="100000",typeof L.color=="string"&&L.color.startsWith("var(")&&(D.style.background=P3(D,L.color)??"#FF0060"),L._inited=!0}const F=(z-L.startTime)/1e3;if(F<0)continue;const P=L.life/1e3;if(F>=P){D.style.opacity="0",D.style.display="none",L.ended=!0;continue}K=!0;const R=L.side==="left"?I.x:G.x,$=L.side==="left"?I.y:G.y,ee=R+L.vx*F,J=$+L.vy*F+.5*C*F*F,Y=(L.angularVel||0)*F,ne=ee-R,Ce=J-$;D.style.transform=`translate3d(${ne}px, ${Ce}px, 0) rotate(${Y}deg)`,D.style.opacity=`${Math.max(0,1-F/P)}`}K?u.current=requestAnimationFrame(Z):p.current?.()};u.current=requestAnimationFrame(Z);const U=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const z=document.createElement("div");z.className="party-container",z.style.position="fixed",z.style.inset="0",z.style.pointerEvents="none",z.style.overflow="visible",z.style.zIndex="2147483647";for(const K of l){const L=document.createElement("span");L.className=`confetti confetti--${K.side}`,L.setAttribute("aria-hidden","true"),L.style.display="none",L.style.position="fixed",L.style.left="0px",L.style.top="0px",L.style.width=`${K.size}px`,L.style.height=`${Math.max(4,K.size*.6)}px`,L.style.background=K.color,L.style.borderRadius=K.borderRadius,L.style.transform="translate3d(0,0,0)",L.style.opacity="0",z.appendChild(L),d.current[K.id]=L}(document.body||h.current).appendChild(z),m.current=z}}catch{}},300);return()=>{if(u.current&&cancelAnimationFrame(u.current),clearTimeout(U),m.current){try{m.current.remove()}catch{}m.current=null}}},[e,a,i,l]),!e)return null;const v=n.jsx("div",{className:"party-container",ref:c,children:l.map(C=>n.jsx("span",{"aria-hidden":!0,ref:w=>{d.current[C.id]=w},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"?Ut.createPortal(v,h.current||document.body):v}const Ko=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function I3({trigger:e=0,active:t=!1}){const[a,r]=o.useState(null);o.useEffect(()=>{if(typeof window>"u")return;const i=l=>{const c=l.detail??{};r(d=>({n:(d?.n??0)+1,count:Ko(c.count),strength:Ko(c.strength),duration:Ko(c.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(Go,{active:t,trigger:e}),a&&n.jsx(Go,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function F3({title:e,sub:t,rightAction:a,titleAction:r,badge:s,badgeVariant:i="default",documentTitle:l,onBack:c,backLabel:d,wrap:u=!1}){const{t:p}=be.useTranslation();Vg(typeof e=="string"?e:l??null);const m=d??p("common.back","\uB4A4\uB85C");return n.jsxs("div",{className:u?"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:[c&&n.jsx(le,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:c}),n.jsx("h1",{className:"page-title__title h1",children:e}),s&&n.jsx("div",{className:"page-title__badge",children:n.jsx(ht,{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 O3(e){return e??""}const yu=o.createContext({words:[],loading:!1});function H3(){return o.useContext(yu)}function z3({words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:d,children:u}){return n.jsx(yu.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:d},children:u})}function V3({items:e,actions:t,columns:a,flat:r=!1,className:s,style:i}){const l=a??e.length;return n.jsx("section",{className:De("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((c,d)=>n.jsxs("div",{className:"summary-strip__item",children:[n.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),n.jsx("p",{className:"summary-strip__value body-3b",title:typeof c.value=="string"||typeof c.value=="number"?String(c.value):void 0,children:c.value})]},d))}),t&&n.jsx("div",{className:"summary-strip__actions",children:t})]})})}const W3=(e,t)=>`${e} / ${t}`;function q3({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:s=W3,pageWidth:i,pageHeight:l,margin:c,className:d,style:u}){const{t:p}=be.useTranslation(),m=o.useRef(null),h=o.useRef(null),b=o.useRef(null),v=o.useRef(null),[C,w]=o.useState(null),[f,y]=o.useState(!1);o.useEffect(()=>{const E=m.current;if(!E)return;const M=()=>y(E.scrollWidth>E.clientWidth+1);if(M(),typeof ResizeObserver>"u")return;const I=new ResizeObserver(M);return I.observe(E),()=>I.disconnect()},[C]);const x=e.map(E=>`${E.id}\0${E.section??""}\0${E.group??""}`).join(""),g=C&&C.shape===x?C.pages:null,[k,_]=o.useState(0);o.useEffect(()=>{const E=v.current;if(!E||typeof ResizeObserver>"u")return;const M=new ResizeObserver(()=>_(E.offsetHeight));return M.observe(E),()=>M.disconnect()},[]);const[B,N]=o.useState(0);o.useEffect(()=>{const E=h.current;if(!E||typeof ResizeObserver>"u")return;let M=null;const I=typeof requestAnimationFrame=="function"?U=>requestAnimationFrame(U):U=>setTimeout(U,16),G=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:U=>clearTimeout(U),Z=new ResizeObserver(()=>{M==null&&(M=I(()=>{M=null,N(U=>U+1)}))});return Array.from(E.children).forEach(U=>Z.observe(U)),()=>{Z.disconnect(),M!=null&&G(M)}},[x]),o.useLayoutEffect(()=>{const E=h.current,M=v.current;if(!E||!M)return;const I=P=>P.getBoundingClientRect().height||P.offsetHeight,G=new Map;b.current?.querySelectorAll("[data-chrome-section]").forEach(P=>{G.set(P.dataset.chromeSection??"",I(P))});const Z=P=>I(M)-(G.get(P??"")??0),U=Array.from(E.children).map(P=>I(P)),z=[];e.forEach((P,R)=>{const $=z[z.length-1],ee=$?e[$[0]]:void 0;ee&&P.group!=null&&ee.group===P.group&&ee.section===P.section?$.push(R):z.push([R])});const K=[];let L=[],D=0;const F=()=>{L.length&&K.push(L),L=[],D=0};z.forEach(P=>{const R=P.reduce((ee,J)=>ee+U[J],0),$=Z(e[P[0]].section);L.length&&e[L[0]].section!==e[P[0]].section&&F(),R>$?P.forEach(ee=>{L.length&&D+U[ee]>$+.01&&F(),L.push(ee),D+=U[ee]}):(L.length&&D+R>$+.01&&F(),P.forEach(ee=>L.push(ee)),D+=R)}),F(),w(P=>P&&P.shape===x&&JSON.stringify(P.pages)===JSON.stringify(K)?P:{shape:x,pages:K})},[x,k,i,l,c,B]);const A=no,S=A,O=r??n.jsxs(n.Fragment,{children:[n.jsx("img",{src:S,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),H=(E,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:O}),n.jsx("span",{className:"report-doc__page-no",children:s(E,M)})]})}),j=Array.from(new Set(e.map(E=>E.section??""))),q={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...u};return n.jsxs("div",{ref:m,className:De("report-doc",d),style:q,tabIndex:f?0:void 0,role:f?"group":void 0,"aria-label":f?p("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:b,children:j.map(E=>{const M=H(1,1,E||void 0);return n.jsxs("div",{"data-chrome-section":E,children:[M.header,M.footer]},E)})}),n.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(E=>n.jsx("div",{children:E.content},E.id))})]}),g&&n.jsx("div",{className:"report-doc__pages",children:g.map((E,M)=>{const{header:I,footer:G}=H(M+1,g.length,e[E[0]].section);return n.jsxs("section",{className:"report-doc__page",children:[I,E.map(Z=>n.jsx("div",{children:e[Z].content},e[Z].id)),G]},M)})})]})}function U3({title:e,fields:t,columns:a=4,className:r,style:s}){return n.jsxs("div",{className:De("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 Wn=new Map;let cr=null;const G3=12;function K3(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 ur(){const e=new Map;for(const t of Wn.keys()){if(!t.isConnected)continue;const a=K3(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+G3)}}}function Y3(e){return typeof window>"u"?()=>{}:(Wn.set(e,(Wn.get(e)??0)+1),Wn.get(e)===1&&typeof ResizeObserver<"u"&&(cr??(cr=new ResizeObserver(()=>ur())),cr.observe(e)),ur(),()=>{const t=(Wn.get(e)??1)-1;if(t>0){Wn.set(e,t),ur();return}Wn.delete(e),cr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),ur()})}function Z3({title:e,message:t,actionLabel:a,onAction:r,icon:s,onClose:i,className:l=""}){const{t:c}=be.useTranslation(),d=a??c("common.update","\uC5C5\uB370\uC774\uD2B8"),u=o.useRef(null),p=o.useRef(!1);return o.useLayoutEffect(()=>{const m=u.current,h=m?.parentElement?.closest(".update-alert-stack")??m,b=h?Y3(h):null;return()=>{b?.(),p.current&&m&&m.contains(document.activeElement)&&Va(m)}},[]),n.jsxs("div",{ref:u,className:De("update-alert",l),role:"alert",children:[i&&n.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{p.current=!0,i()},"aria-label":c("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(ls,{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(le,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:d})]})}function X3({title:e,description:t,topActions:a,children:r,footerLeft:s,footerRight:i,onClick:l,draggable:c,onDragStart:d,onDragEnd:u,className:p}){const m=s!=null||i!=null,h=r!=null&&r!==!1,b=o.useCallback(v=>{l&&v.target===v.currentTarget&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),l())},[l]);return n.jsxs("div",{className:De("training-card",l?"training-card--clickable":"",p),onClick:l,onKeyDown:l?b:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:c,onDragStart:d,onDragEnd:u,children:[n.jsxs("div",{className:"training-card__header",children:[n.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?n.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&n.jsx("div",{className:"training-card__top-actions",onClick:v=>v.stopPropagation(),children:a})]}),t!=null?typeof t=="string"?n.jsx("p",{className:"training-card__description body-3",children:t}):t:n.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),h&&n.jsx("div",{className:"training-card__body",children:r}),m&&n.jsxs("div",{className:"training-card__footer",children:[s!=null&&n.jsx("div",{className:"training-card__footer-left",children:s}),i!=null&&n.jsx("div",{className:"training-card__meta",children:i})]})]})}function J3({title:e,count:t,collapsed:a=!1,onToggle:r,sort:s,actions:i,empty:l=!1,emptyContent:c,dragOver:d=!1,onDragOver:u,onDragLeave:p,onDrop:m,children:h,className:b}){const{t:v}=be.useTranslation(),C=r!=null,w=De("training-card-group",d&&"training-card-group--dragover",a&&"training-card-group--collapsed",C&&"training-card-group--collapsible",b);return n.jsxs("div",{className:w,onDragOver:u,onDragLeave:p,onDrop:m,children:[n.jsxs("header",{className:"training-card-group__header",children:[C&&n.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?v("common.expand","\uD3BC\uCE58\uAE30"):v("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!a,onClick:r}),typeof e=="string"?n.jsx("span",{className:"training-card-group__title h5b",children:e}):e,t!==void 0&&n.jsx("span",{className:"training-card-group__count body-3b",children:t}),(s||i!=null)&&n.jsxs("span",{className:"training-card-group__actions",onClick:f=>f.stopPropagation(),children:[s&&n.jsx(rn,{size:40,options:s.options,value:s.value,placeholder:s.placeholder,onChange:s.onChange}),i]})]}),!a&&(l?n.jsx("div",{className:"training-card-group__empty body-3",children:c}):n.jsx("div",{className:"training-card-group__grid",children:h}))]})}const Q3="speechear:saved_word_tables";function e7(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 t7(){try{const e=localStorage.getItem(Q3);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(e7):[]}catch{return[]}}function vu(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 Yo(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function n7(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 a7({title:e,titleIcon:t,disc:a,items:r,onSaveComplete:s,onLoad:i,onRemoveItem:l,onReset:c,resetLabel:d,saveButtonLabel:u,secondarySaveButtonLabel:p,onReorder:m,showCellCount:h,onAddItem:b,className:v,renderSavePopup:C,renderWordSearch:w,hideControls:f,saveOnly:y,tableName:x,nameValue:g,onNameChange:k,descriptionValue:_,onDescriptionChange:B,namePlaceholder:N,descriptionPlaceholder:A,existingNames:S,editingName:O,onCancel:H}){const{t:j}=be.useTranslation(),q=d??j("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),E=r===void 0,M=!!k,[I,G]=o.useState([]),Z=(g??"").trim(),U=Z||(N??"").trim(),z=(_??"").trim()||(A??"").trim(),K=(S??[]).map(Ee=>Ee.trim().toLowerCase()),L=[O?.trim().toLowerCase(),...I].filter(Ee=>!!Ee),D=[...K];for(const Ee of L){const Fe=D.indexOf(Ee);Fe!==-1&&D.splice(Fe,1)}const F=Z!==""&&D.includes(Z.toLowerCase()),[P,R]=o.useState(Array(4).fill(null)),[$,ee]=o.useState(4),[J,Y]=o.useState(null),ne=P.slice(0,$),[Ce,re]=o.useState("landscape"),[ie,W]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[oe,pe]=o.useState("\uD45C\uC2DC"),[xe,ge]=o.useState(!0),[Be,he]=o.useState(!0),ye=o.useRef(null),Te=o.useRef([]),[Oe,Pe]=o.useState(8),[ce,ae]=o.useState("right"),[Ne,je]=o.useState(!1),[Ae,ve]=o.useState(!1),{toastMessage:Se,toastType:me,showWarning:Ge,clearToast:Ue}=il("warning"),Ye=o.useCallback(()=>Y(null),[Y]);b&&!E&&!h&&Cn("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[Ze,Xe]=o.useState(()=>Math.max(r?.length??1,1)),ze=E?$:h?Math.max(Ze,r?.length??1,1):Math.max(r?.length??0,1),{width:$e,height:Ve}=aa[Ce],ot=!E&&!h,Ct=r?.length??0,zt=Math.min(Oe,Math.max(Ct,1)),gt=ot?zt:ze,nt=ot?pc(r??[],gt):null,Je=!!nt&&nt.length>1,et=E?ne.some(Ee=>Ee!==null&&Ee.length>1):(r??[]).some(Ee=>(Ee.words??[]).length>1),lt=x?.trim()||`${ci(Ca())} ${et?j("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):j("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,We=o.useCallback(()=>Je?Te.current.filter(Ee=>Ee!==null):ye.current?[ye.current]:[],[Je]),{print:ft,openNewWindow:qe,downloadHtml:pt}=Bo({getElements:We,paperW:$e,paperH:Ve,fileName:lt,onPopupBlocked:()=>{Ge(j("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."))}}),Et=Ee=>{ee(Ee),R(Fe=>Fe.length>=Ee?Fe:[...Fe,...Array(Ee-Fe.length).fill(null)]),Y(null)},kt=Ee=>{R(Fe=>{const te=[...Fe];return te[Ee]=null,te}),J===Ee&&Y(null)},_t=Ee=>{if(J===null)return;const Fe=J;R(fe=>{const V=[...fe];return V[Fe]=Ee.length>0?Ee:null,V});const te=ne.findIndex((fe,V)=>V>Fe&&fe===null);Y(te!==-1?te:null)},st=E?ne.some(Ee=>Ee?.some(Fe=>!!Fe.colloquialPronunciation)):(r??[]).some(Ee=>(Ee.words??[]).some(Fe=>!!Fe.colloquialLabel)),Ie=o.useMemo(()=>Gn()?E?P.slice(0,$).flatMap(Ee=>(Ee??[]).map(Fe=>[Fe.word,Fe.homonum])):(r??[]).flatMap(Ee=>(Ee.words??[]).map(Fe=>[Fe.label,Fe.homonum])):[],[E,P,$,r]),[rt,bt]=o.useState(!1);o.useEffect(()=>{if(Ie.length===0)return;let Ee=!1;return Promise.all(Ie.map(([Fe,te])=>Xs(Fe,te))).then(Fe=>{Ee||bt(Fe.some(Boolean))},()=>{}),()=>{Ee=!0}},[Ie]);const Vt=Ie.length>0&&rt,tt=o.useMemo(()=>[...E||h?[{label:j("wordTable.filter.columns","\uCE78 \uC218"),items:Fy.map(Ee=>({value:`${Ee}\uCE78`,displayLabel:j("wordTable.filter.column",{count:Ee})})),display:"segmented"}]:[],...ot&&(r?.length??0)>0?[Nc(j,{hasPairs:et,itemCount:Ct})]:[],...Je?[Dc(j)]:[]],[j,E,h,ot,r?.length,et,Ct,Je]),Zt={...E||h?{[j("wordTable.filter.columns","\uCE78 \uC218")]:`${ze}\uCE78`}:{},...ot&&(r?.length??0)>0?{[j(et?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${zt}\uAC1C`}:{},...Je?{[j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Ec[ce]}:{}},An=(Ee,Fe)=>{Fe===j("wordTable.filter.columns","\uCE78 \uC218")?E?Et(parseInt(Ee)):Xe(parseInt(Ee)):Fe===j(et?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Pe(Sc(parseInt(Ee),Ct)):Fe===j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&ae(jc(Ee))},Bt=E?n7(ne.filter(Ee=>Ee!==null&&Ee.length>0).map(Ee=>({id:Yo(Ee),words:Ee.map(vu)}))):r??[],Wt=()=>{E&&R(Ee=>Ee.length>$?Ee.slice(0,$):Ee)},en=(Ee=!1)=>{if(ve(Ee),M&&s){const Fe=U.trim().toLowerCase();Fe&&G(te=>te.includes(Fe)?te:[...te,Fe]),s(U,Bt,z||void 0,Ee),Wt();return}if(y&&s){s("",Bt,void 0,Ee),Wt();return}if(s){je(!0);return}pt()},[on,cn]=o.useState(!1),[tn,Bn]=o.useState(""),Xt=tn.trim(),yt=Xt!==""&&K.includes(Xt.toLowerCase()),un=()=>{Bn(U?j("wordTable.save.copyName",{name:U,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),cn(!0)},Jt=()=>{!Xt||yt||!s||(s(Xt,Bt,z||void 0,!0),Wt(),cn(!1))},Tt=Bt.length===0,dn=Tt||M&&(U===""||F),Qt=()=>{if(Tt){Ge(j("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(M&&U===""){Ge(j("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}M&&F&&Ge(j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},pn=n.jsx(ra,{items:Bt,orientation:Ce,contentTypes:ie,cutLine:oe,showOutline:xe,showDivLine:Be,count:ze});return n.jsxs(n.Fragment,{children:[n.jsxs(na,{type:"page",icon:t,title:e,disc:a,className:De("word-table-block",v),children:[on&&n.jsx(jn,{size:"small",title:p??j("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>cn(!1),footer:({closeWithAnimation:Ee})=>n.jsxs(n.Fragment,{children:[n.jsx(le,{htmlType:"button",size:48,type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:Ee}),n.jsx(le,{htmlType:"button",size:48,type:"bar",variant:"main",label:j("common.save","\uC800\uC7A5"),disabled:!Xt||yt,onClick:Jt})]}),children:n.jsx(zn,{label:j("wordTable.save.nameLabel","\uC774\uB984"),value:tn,onChange:Bn,placeholder:j("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:Jt,error:yt?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Ne&&s&&C?.({defaultName:typeof e=="string"?e:j("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:pn,previewW:$e,previewH:Ve,items:Bt,existingNames:t7().map(Ee=>Ee.name),saveAsNew:Ae,onSave:(Ee,Fe)=>{s(Ee,Bt,Fe,Ae),Wt(),je(!1)},onCancel:()=>je(!1)}),(E||b)&&J!==null&&w?.({cellIndex:J,onConfirm:E?_t:Ee=>{if(b){const Fe=Ee[0];if(Fe){const te=new Set((r??[]).map(V=>V.id));let fe=Yo([Fe]);for(let V=2;te.has(fe);V++)fe=`${Yo([Fe])}~${V}`;b({id:fe,words:[vu(Fe)]})}}Y(null)},onClose:Ye}),!f&&n.jsx(wo,{hasImage:Vt,hasColloquial:st,contentTypes:ie,orientation:Ce,showOutline:xe,cutLine:oe,showDivLine:Be,setters:{setContentTypes:W,setOrientation:re,setShowOutline:ge,setCutLine:pe,setShowDivLine:he},showCutLine:(ot?gt:ze)>1,showDivLine2:et,middleSections:tt,extraSelected:Zt,onExtraSelect:An}),Je&&nt?n.jsx("div",{className:"word-table-block__pages",children:nt.map((Ee,Fe)=>n.jsx(ra,{orientation:Ce,contentTypes:ie,cutLine:oe,showOutline:xe,showDivLine:Be,count:gt,items:Ee,onRemoveItem:l,onReorder:m&&((te,fe)=>m(te+Fe*gt,fe+Fe*gt)),contentRef:te=>{Te.current[Fe]=te},pageNumber:{current:Fe+1,total:nt.length},pageNumberPosition:ce},Fe))}):n.jsx(ra,{orientation:Ce,contentTypes:ie,cutLine:oe,showOutline:xe,showDivLine:Be,count:ze,items:E?void 0:r??[],editCells:E?ne:void 0,activeCell:J,onActivateCell:E||b?Y:void 0,onRemoveCell:E?kt:void 0,onRemoveItem:E?void 0:l,onReorder:E?void 0:m,showFillerAdd:!!b,contentRef:ye}),M&&!f&&n.jsxs(sr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[n.jsx(Tn,{variant:"custom",label:j("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:n.jsx(zn,{required:!0,value:g??"",onChange:k,placeholder:N?N+j("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):j("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:j("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:F?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:Ee=>{(Ee.key==="Tab"&&!Ee.shiftKey||Ee.key===" ")&&!(g??"").trim()&&(N??"").trim()&&(Ee.preventDefault(),k?.(N??""))}})}),n.jsx(Tn,{variant:"custom",label:j("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:n.jsx(zn,{value:_??"",onChange:B,placeholder:A?A+j("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):j("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:j("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:Ee=>{(Ee.key==="Tab"&&!Ee.shiftKey||Ee.key===" ")&&!(_??"").trim()&&(A??"").trim()&&(Ee.preventDefault(),B?.(A??""))}})})]})]}),!f&&n.jsxs("div",{className:"word-table-block__actions",children:[n.jsxs("div",{className:"word-table-block__actions-left",children:[!y&&c&&n.jsx(le,{htmlType:"button",size:40,type:"bar",label:q,onClick:c}),!y&&i&&n.jsx(le,{htmlType:"button",size:40,type:"bar",label:j("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!y&&n.jsx(le,{htmlType:"button",size:40,type:"bar",label:j("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:qe})]}),n.jsxs("div",{className:"word-table-block__actions-right",children:[H&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:H}),!y&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:j("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:ft}),p&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:p,onClick:()=>M?un():en(!0),disabled:Tt,onDisabledClick:()=>{Ge(j("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),n.jsx(le,{htmlType:"button",size:"56",type:"bar",variant:"main",label:u??j("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>en(!1),disabled:dn,onDisabledClick:Qt})]})]}),n.jsx(ea,{message:Se,type:me,onClose:Ue})]})}function xu({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:De("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,c)=>{const d=e[c];return d?n.jsx("div",{className:"word-table-thumb__cell",children:(d.words?.length?d.words:[{label:d.id}]).map((u,p)=>n.jsxs(o.Fragment,{children:[p>0&&n.jsx("span",{className:"word-table-thumb__divider"}),n.jsx("span",{className:"word-table-thumb__word body-3",children:u.label})]},p))},c):n.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function r7({items:e,name:t,description:a,createdAt:r,published:s,publishedLabel:i,shared:l,sharedLabel:c,isNew:d,publisherName:u,publishedAt:p,likeCount:m,downloadCount:h,onPublisherClick:b,selected:v,onClick:C,onMore:w,titleNode:f,className:y}){const{t:x}=be.useTranslation(),g=f!=null,k=u!=null||p!=null||m!=null||h!=null,_=B=>{B.target===B.currentTarget&&!g&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),C?.())};return n.jsxs("div",{className:De("word-table-button",v?"word-table-button--selected":"",k?"":"word-table-button--no-footer",y),role:"button",tabIndex:0,"aria-label":t,onClick:g?void 0:C,onKeyDown:_,children:[d&&n.jsx("span",{className:"word-table-button__new-dot","aria-label":x("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),n.jsx(xu,{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:[f??n.jsx("div",{className:"word-table-button__title h4",children:t}),a&&n.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),w&&!g&&n.jsx(le,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:x("common.moreFor",{name:t}),onClick:B=>{B.stopPropagation(),w(B)}})]}),(r||s||l)&&n.jsxs("div",{className:"word-table-button__meta-row",children:[n.jsx("span",{className:"word-table-button__meta caption-1",children:r?li(r,x):""}),n.jsxs("span",{className:"word-table-button__badges",children:[s&&n.jsx(ht,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??x("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),l&&n.jsx(ht,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??x("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]})]}),k&&n.jsxs("div",{className:"word-table-button__footer",children:[n.jsxs("span",{className:"word-table-button__store-by",children:[u&&n.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:B=>{B.stopPropagation(),b?.()},children:u}),p&&n.jsx("span",{className:"training-card__date body-4",children:li(p,x)})]}),n.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&n.jsx(ht,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m)}),h!=null&&n.jsx(ht,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(h)})]})]})]})}/**
|
|
1007
1007
|
* @license lucide-react v1.38.0 - ISC
|
|
1008
1008
|
*
|
|
1009
1009
|
* This source code is licensed under the ISC license.
|
|
@@ -1013,4 +1013,4 @@ ${y.badge}`:y.badge:void 0;if(_&&d(y.code))return null;if(!y.badge&&!p)return m(
|
|
|
1013
1013
|
*
|
|
1014
1014
|
* This source code is licensed under the ISC license.
|
|
1015
1015
|
* See the LICENSE file in the root directory of this source tree.
|
|
1016
|
-
*/const i7=[["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"}]],l7=Q("circle-x",i7);function c7(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Zo({icon:e,label:t,state:a,pct:r,subText:s}){const{t:i}=ge.useTranslation(),l=a==="done",c=a==="pending",d=a==="error",u=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":d?" wdup-phase-card__icon--error":""}`,children:l?n.jsx(ps,{size:22,color:"white",strokeWidth:2.5}):d?n.jsx(l7,{size:22,color:"white",strokeWidth:2.5}):n.jsx("span",{className:`wdup-phase-card__icon-inner${c?" 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${c?" wdup-phase-card__label--pending":""}`,children:t}),l?n.jsx(ht,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):d?n.jsx(ht,{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}%`:""]})]}),!c&&n.jsx("div",{className:"wdup-bar",children:n.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":d?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||d?`${d?100:u}%`:void 0}})})]})]})}function u7({title:e,progress:t,onDone:a,onRetry:r,onClose:s,inline:i}){const{t:l}=ge.useTranslation(),{phase:c,error:d,wordCount:u,imagePage:p,imageDone:m,imageTotal:h,pairPercent:b}=t,v=c7(c),C=c==="done",w=!!d;function f(B){return w&&v===B?"error":v>B?"done":v===B?"active":"pending"}const g=f(1),x=f(2),y=f(3),k=c==="image-match"&&h?Math.round((m??0)/h*100):void 0,_=o.useMemo(()=>{if(x!=="done"){if(c==="image-list")return l("wordData.checkingPage",{page:p??1});if(c==="image-match"&&h)return l("wordData.imageCount",{done:Rr(m),total:Rr(h)})}},[x,c,p,h,m,l]);return n.jsx(jn,{inline:i,className:"popup--word-data-update",title:e,footer:w&&r?n.jsx(le,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):w?n.jsx(le,{htmlType:"button",size:56,variant:"main",onClick:s??a,children:l("common.close","\uB2EB\uAE30")}):n.jsx(le,{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(Zo,{icon:n.jsx(is,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:g,subText:g==="active"?l("wordData.downloadingCount",{n:Rr(u)}):void 0}),n.jsx(Zo,{icon:n.jsx(s7,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:x,pct:k,subText:_}),n.jsx(Zo,{icon:n.jsx(us,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:y,pct:y==="active"?b??0:void 0,subText:void 0})]})})}function d7({enabled:e=!1,renderResultPopup:t}={}){const{t:a}=ge.useTranslation(),[r,s]=o.useState(null),[i,l]=o.useState(null),c=b=>{let v=null;b==="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}]}:b==="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}]}:b==="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}]}:b==="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(b)},d=o.useCallback(()=>{s(null),l(null)},[]),u=o.useCallback(()=>c("noise"),[]),p=o.useCallback(()=>c("short"),[]),m=o.useCallback(()=>c("long"),[]),h=o.useCallback(()=>c("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:u,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:h,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:d,onClose:d}):null]}):null}exports.Accordion=ub,exports.ActionCard=X2,exports.Alert=t4,exports.AppHeader=Cb,exports.AudioMeter=ho,exports.AudioPlayer=$o,exports.Avatar=l4,exports.Badge=ht,exports.BarChart=Z4,exports.BarChartControls=Ul,exports.Board=B4,exports.BottomNav=ul,exports.BrandIdentity=fl,exports.Breadcrumb=d4,exports.BulkBar=F4,exports.Button=le,exports.CORE_VERSION=q2,exports.Calendar=gy,exports.CardStep=pu,exports.ChartLegend=io,exports.ChartSection=lo,exports.ChartTotal=Da,exports.Checkbox=Ol,exports.ChoiceChips=b5,exports.CircleBadge=Xb,exports.CodeBox=P4,exports.ColorPicker=C4,exports.CompanyMeta=T4,exports.ConfirmPopup=L3,exports.ConfirmStep=cu,exports.ConfirmWithTextStep=uu,exports.ContrastFilterPanel=T3,exports.CoreScope=J2,exports.CountTile=_4,exports.CouponInputPopup=$3,exports.DEFAULT_NOISE_SETTINGS=Ma,exports.DatePicker=V4,exports.DebugResultLauncher=d7,exports.DescriptionTooltip=Fn,exports.DeviceSideTable=hy,exports.Dialog=A4,exports.Divider=Jb,exports.Dropdown=rn,exports.EffectPartyPopper=Go,exports.EffectPartyPopperHost=I3,exports.EmptyState=Y2,exports.ErrorState=Z2,exports.FILTER_ALL_VALUE=sn,exports.FileUpload=u4,exports.FilterPanel=kn,exports.FilterSectionInfo=Aa,exports.Footer=y5,exports.Header=Cl,exports.Icon=Ke,exports.IconGridMenu=g5,exports.IconRenderer=Ke,exports.InfoTooltip=bn,exports.LEVEL_MAX=sa,exports.LINE_CHART_HOVER_DELAY_MS=Gl,exports.LandingBottomSticky=x5,exports.LandingHeader=v5,exports.LineChart=J4,exports.ListPopup=M3,exports.ListenStep=lu,exports.Loader=Sa,exports.MARKS=tr,exports.MARK_ICON=cc,exports.MARK_VARIANT=uc,exports.MediaQueryOverrideContext=bi,exports.MenuTooltip=_a,exports.NOISE_RATIO_MAX=Ea,exports.NOISE_RATIO_STEP=Fc,exports.NoisePlayerContext=jo,exports.NoiseSettingsTooltip=tu,exports.NoticeBox=Q2,exports.OrderListStep=du,exports.PASS_CARD_BG_VARS=Hn,exports.POS_LABEL=mc,exports.PROMO_BANNER_BG_COMPONENTS=Ji,exports.PROMO_BANNER_BG_OPTIONS=Hg,exports.PROMO_BANNER_BG_VARS=ba,exports.Page=ir,exports.PageTitle=F3,exports.Pagination=Ya,exports.Panel=sr,exports.PanelGrid=e3,exports.PanelRow=Tn,exports.PanelRowDevice=Q5,exports.PassCard=Bl,exports.PassCardBg=Gb,exports.PassCardBgIHAB=Kb,exports.PassCardBgLeftColorGrid=Yb,exports.PassCardBgTwoCircle=xl,exports.PaymentPlan=Ub,exports.PersonCard=N4,exports.PhonemeFilterPanel=j3,exports.PhonemeSelectBlock=D3,exports.Popup=jn,exports.ProgressBar=oy,exports.ProgressIndicator=nc,exports.PromoBanner=ib,exports.PromoBannerBgDark=Pi,exports.PromoBannerBgDeep=ji,exports.PromoBannerBgDiagonal=Hi,exports.PromoBannerBgDots=Vi,exports.PromoBannerBgInstagram=Xi,exports.PromoBannerBgMain=Ai,exports.PromoBannerBgNaver=Yi,exports.PromoBannerBgOutline=qi,exports.PromoBannerBgRadial=Fi,exports.PromoBannerBgSoft=Ni,exports.PromoBannerBgSoftSub=Mi,exports.PromoBannerBgSub=Di,exports.PromoBannerBgSuccess=Gi,exports.PromoBannerBgWarm=$i,exports.PublicationCard=D4,exports.Radio=El,exports.RadioGroup=Qb,exports.Rating=m4,exports.ReportDocument=q3,exports.ReportInfoPanel=U3,exports.RingChart=ey,exports.SENTENCE_TRAINING_TYPES=No,exports.SearchSummary=r4,exports.Section=na,exports.SectionHeadFloat=zl,exports.SectionHeader=j4,exports.SegmentedControl=_n,exports.ShortcutBadge=Dl,exports.SideNav=hl,exports.Slider=Jl,exports.SoundCompass=Zb,exports.SplashLogo=E4,exports.StatChart=ty,exports.SummaryStrip=V3,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=Tl,exports.Table=Co,exports.TableFilterPanel=wo,exports.Tabs=o4,exports.TextBoxTooltip=or,exports.TextField=zn,exports.Timeline=S4,exports.Toast=ea,exports.Toggle=Fl,exports.Toolbar=so,exports.Tooltip=an,exports.TooltipInfo=bn,exports.TooltipTextBox=or,exports.TopBanner=lb,exports.TrainingBlock=yy,exports.TrainingBlockButton=ao,exports.TrainingCard=X3,exports.TrainingCardGroup=J3,exports.TrainingPagePopup=Ln,exports.TrainingPagePopupBottom=nu,exports.TrainingPagePopupTitle=au,exports.TrainingResultPopup=hu,exports.TrainingStep=Vn,exports.TrainingStepAudioPlayer=$o,exports.TrainingStepBullet=Gc,exports.TrainingStepCard=Xc,exports.TrainingStepConfirm=Po,exports.TrainingStepConfirmWithText=Io,exports.TrainingStepListen=Fo,exports.TrainingStepOrderList=Oo,exports.TrainingStepTextBox=Zc,exports.TrainingStepTitle=Yc,exports.TrainingTooltip=Ml,exports.TrainingWordCard=vo,exports.UpdateAlert=Z3,exports.WAVE_A_MAX=T5,exports.WAVE_H1_PX=Wc,exports.WAVE_HMAX_PX=j5,exports.WORD_TABLE_PAPER=aa,exports.WORD_TYPE_LABEL=hc,exports.WordDataProvider=z3,exports.WordDataUpdatePopup=u7,exports.WordImageTooltip=gu,exports.WordSearchFilterPanel=E3,exports.WordSearchResultBlock=N3,exports.WordTable=ra,exports.WordTableBlock=a7,exports.WordTableButton=r7,exports.WordTablePopup=Vy,exports.WordTableThumbnail=xu,exports.buildMonthChartData=q4,exports.cellKey=Xy,exports.cellLabel=Zy,exports.cellsForLabels=c5,exports.clearPassCardBgTheme=xn,exports.clearPromoBannerBgTheme=$t,exports.closeTrainingPopup=o3,exports.companyTypeLabel=O3,exports.createTrainingScenario=l3,exports.cx=De,exports.deriveNoiseContexts=h3,exports.derivePassCard=bl,exports.draftValues=f5,exports.effectiveNoiseVolume=Do,exports.effectiveSpeechVolume=Hc,exports.expandSlashLabel=_o,exports.formatDuration=u5,exports.getControlDateRange=Q4,exports.getPayloadTimestamp=Vo,exports.getPromoBannerBgTheme=Ur,exports.getSelectedFromPayload=u3,exports.getSelectedText=d3,exports.getStepPayload=su,exports.getSteppedPayload=p3,exports.injectPassCardBgTheme=vn,exports.injectPromoBannerBgTheme=Lt,exports.isSelectionCorrect=m3,exports.labelOfCellKey=Pc,exports.labelsForSave=Yy,exports.levelToPct=_5,exports.markAfterClick=lc,exports.marksForSave=xo,exports.mergeNoiseSettings=Ta,exports.missesByType=o5,exports.nextFocus=t5,exports.nextMisses=r5,exports.noiseElementVolume=Eo,exports.noiseRatioOf=ja,exports.pageStartIndexes=dc,exports.passCardBgIhabTheme=Nl,exports.passCardBgLeftColorGridTheme=Sl,exports.passCardBgTwoCircleTheme=vl,exports.pctToLevel=w5,exports.printWordTable=Ay,exports.promoBannerBgDarkTheme=Ri,exports.promoBannerBgDeepTheme=Ei,exports.promoBannerBgDiagonalTheme=Oi,exports.promoBannerBgDotsTheme=zi,exports.promoBannerBgInstagramTheme=Zi,exports.promoBannerBgMainTheme=ki,exports.promoBannerBgNaverTheme=Ki,exports.promoBannerBgOutlineTheme=Wi,exports.promoBannerBgRadialTheme=Ii,exports.promoBannerBgSoftSubTheme=Ti,exports.promoBannerBgSoftTheme=Bi,exports.promoBannerBgSubTheme=Si,exports.promoBannerBgSuccessTheme=Ui,exports.promoBannerBgWarmTheme=Li,exports.recommendTables=i5,exports.regenerateUnpinned=h5,exports.removeItem=m5,exports.resolveTrainingItems=i3,exports.resolveTrainingPopupMeta=ou,exports.reviewCells=qy,exports.reviewMeta=Ky,exports.reviewSetPlan=s5,exports.reviewTableName=Gy,exports.scoreKey=er,exports.scoreSheetHeader=Jy,exports.shouldConfirmDiscard=ky,exports.splitTrainingVariants=s3,exports.summarize=wy,exports.summarizeMisses=a5,exports.tableTrends=e5,exports.toDraft=d5,exports.toTrainingText=c3,exports.togglePin=p5,exports.uncoveredLabels=l5,exports.useAnchoredMenu=xa,exports.useBarChartControl=ql,exports.useCalendarMonth=Hl,exports.useComboboxSuggestions=Pl,exports.useFitScale=Cc,exports.useNoisePlayer=ar,exports.useSoundCompassExam=sb,exports.useToastLifecycle=ec,exports.useWordData=H3,exports.useWordTableDisplaySettings=$c,exports.useWordTablePrint=Bo,exports.waveBarPx=La,exports.waveBarVal=Mo,exports.weakItems=Qy;
|
|
1016
|
+
*/const i7=[["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"}]],l7=Q("circle-x",i7);function c7(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Zo({icon:e,label:t,state:a,pct:r,subText:s}){const{t:i}=be.useTranslation(),l=a==="done",c=a==="pending",d=a==="error",u=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":d?" wdup-phase-card__icon--error":""}`,children:l?n.jsx(ps,{size:22,color:"white",strokeWidth:2.5}):d?n.jsx(l7,{size:22,color:"white",strokeWidth:2.5}):n.jsx("span",{className:`wdup-phase-card__icon-inner${c?" 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${c?" wdup-phase-card__label--pending":""}`,children:t}),l?n.jsx(ht,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):d?n.jsx(ht,{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}%`:""]})]}),!c&&n.jsx("div",{className:"wdup-bar",children:n.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":d?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||d?`${d?100:u}%`:void 0}})})]})]})}function u7({title:e,progress:t,onDone:a,onRetry:r,onClose:s,inline:i}){const{t:l}=be.useTranslation(),{phase:c,error:d,wordCount:u,imagePage:p,imageDone:m,imageTotal:h,pairPercent:b}=t,v=c7(c),C=c==="done",w=!!d;function f(B){return w&&v===B?"error":v>B?"done":v===B?"active":"pending"}const y=f(1),x=f(2),g=f(3),k=c==="image-match"&&h?Math.round((m??0)/h*100):void 0,_=o.useMemo(()=>{if(x!=="done"){if(c==="image-list")return l("wordData.checkingPage",{page:p??1});if(c==="image-match"&&h)return l("wordData.imageCount",{done:Rr(m),total:Rr(h)})}},[x,c,p,h,m,l]);return n.jsx(jn,{inline:i,className:"popup--word-data-update",title:e,footer:w&&r?n.jsx(le,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):w?n.jsx(le,{htmlType:"button",size:56,variant:"main",onClick:s??a,children:l("common.close","\uB2EB\uAE30")}):n.jsx(le,{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(Zo,{icon:n.jsx(is,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:y,subText:y==="active"?l("wordData.downloadingCount",{n:Rr(u)}):void 0}),n.jsx(Zo,{icon:n.jsx(s7,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:x,pct:k,subText:_}),n.jsx(Zo,{icon:n.jsx(us,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:g,pct:g==="active"?b??0:void 0,subText:void 0})]})})}function d7({enabled:e=!1,renderResultPopup:t}={}){const{t:a}=be.useTranslation(),[r,s]=o.useState(null),[i,l]=o.useState(null),c=b=>{let v=null;b==="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}]}:b==="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}]}:b==="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}]}:b==="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(b)},d=o.useCallback(()=>{s(null),l(null)},[]),u=o.useCallback(()=>c("noise"),[]),p=o.useCallback(()=>c("short"),[]),m=o.useCallback(()=>c("long"),[]),h=o.useCallback(()=>c("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:u,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:h,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:d,onClose:d}):null]}):null}exports.Accordion=ub,exports.ActionCard=X2,exports.Alert=t4,exports.AppHeader=Cb,exports.AudioMeter=ho,exports.AudioPlayer=$o,exports.Avatar=l4,exports.Badge=ht,exports.BarChart=Z4,exports.BarChartControls=Ul,exports.Board=B4,exports.BottomNav=ul,exports.BrandIdentity=fl,exports.Breadcrumb=d4,exports.BulkBar=F4,exports.Button=le,exports.CORE_VERSION=q2,exports.Calendar=gy,exports.CardStep=pu,exports.ChartLegend=io,exports.ChartSection=lo,exports.ChartTotal=Da,exports.Checkbox=Ol,exports.ChoiceChips=b5,exports.CircleBadge=Xb,exports.CodeBox=P4,exports.ColorPicker=C4,exports.CompanyMeta=T4,exports.ConfirmPopup=L3,exports.ConfirmStep=cu,exports.ConfirmWithTextStep=uu,exports.ContrastFilterPanel=T3,exports.CoreScope=J2,exports.CountTile=_4,exports.CouponInputPopup=$3,exports.DEFAULT_NOISE_SETTINGS=Ma,exports.DatePicker=V4,exports.DebugResultLauncher=d7,exports.DescriptionTooltip=Fn,exports.DeviceSideTable=hy,exports.Dialog=A4,exports.Divider=Jb,exports.Dropdown=rn,exports.EffectPartyPopper=Go,exports.EffectPartyPopperHost=I3,exports.EmptyState=Y2,exports.ErrorState=Z2,exports.FILTER_ALL_VALUE=sn,exports.FileUpload=u4,exports.FilterPanel=kn,exports.FilterSectionInfo=Aa,exports.Footer=y5,exports.Header=Cl,exports.Icon=Ke,exports.IconGridMenu=g5,exports.IconRenderer=Ke,exports.InfoTooltip=bn,exports.LEVEL_MAX=sa,exports.LINE_CHART_HOVER_DELAY_MS=Gl,exports.LandingBottomSticky=x5,exports.LandingHeader=v5,exports.LineChart=J4,exports.ListPopup=M3,exports.ListenStep=lu,exports.Loader=Sa,exports.MARKS=tr,exports.MARK_ICON=cc,exports.MARK_VARIANT=uc,exports.MediaQueryOverrideContext=bi,exports.MenuTooltip=_a,exports.NOISE_RATIO_MAX=Ea,exports.NOISE_RATIO_STEP=Fc,exports.NoisePlayerContext=jo,exports.NoiseSettingsTooltip=tu,exports.NoticeBox=Q2,exports.OrderListStep=du,exports.PASS_CARD_BG_VARS=Hn,exports.POS_LABEL=mc,exports.PROMO_BANNER_BG_COMPONENTS=Ji,exports.PROMO_BANNER_BG_OPTIONS=Hg,exports.PROMO_BANNER_BG_VARS=ba,exports.Page=ir,exports.PageTitle=F3,exports.Pagination=Ya,exports.Panel=sr,exports.PanelGrid=e3,exports.PanelRow=Tn,exports.PanelRowDevice=Q5,exports.PassCard=Bl,exports.PassCardBg=Gb,exports.PassCardBgIHAB=Kb,exports.PassCardBgLeftColorGrid=Yb,exports.PassCardBgTwoCircle=xl,exports.PaymentPlan=Ub,exports.PersonCard=N4,exports.PhonemeFilterPanel=j3,exports.PhonemeSelectBlock=D3,exports.Popup=jn,exports.ProgressBar=oy,exports.ProgressIndicator=nc,exports.PromoBanner=ib,exports.PromoBannerBgDark=Pi,exports.PromoBannerBgDeep=ji,exports.PromoBannerBgDiagonal=Hi,exports.PromoBannerBgDots=Vi,exports.PromoBannerBgInstagram=Xi,exports.PromoBannerBgMain=Ai,exports.PromoBannerBgNaver=Yi,exports.PromoBannerBgOutline=qi,exports.PromoBannerBgRadial=Fi,exports.PromoBannerBgSoft=Ni,exports.PromoBannerBgSoftSub=Mi,exports.PromoBannerBgSub=Di,exports.PromoBannerBgSuccess=Gi,exports.PromoBannerBgWarm=$i,exports.PublicationCard=D4,exports.Radio=El,exports.RadioGroup=Qb,exports.Rating=m4,exports.ReportDocument=q3,exports.ReportInfoPanel=U3,exports.RingChart=ey,exports.SENTENCE_TRAINING_TYPES=No,exports.SearchSummary=r4,exports.Section=na,exports.SectionHeadFloat=zl,exports.SectionHeader=j4,exports.SegmentedControl=_n,exports.ShortcutBadge=Dl,exports.SideNav=hl,exports.Slider=Jl,exports.SoundCompass=Zb,exports.SplashLogo=E4,exports.StatChart=ty,exports.SummaryStrip=V3,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=Tl,exports.Table=Co,exports.TableFilterPanel=wo,exports.Tabs=o4,exports.TextBoxTooltip=or,exports.TextField=zn,exports.Timeline=S4,exports.Toast=ea,exports.Toggle=Fl,exports.Toolbar=so,exports.Tooltip=an,exports.TooltipInfo=bn,exports.TooltipTextBox=or,exports.TopBanner=lb,exports.TrainingBlock=yy,exports.TrainingBlockButton=ao,exports.TrainingCard=X3,exports.TrainingCardGroup=J3,exports.TrainingPagePopup=Ln,exports.TrainingPagePopupBottom=nu,exports.TrainingPagePopupTitle=au,exports.TrainingResultPopup=hu,exports.TrainingStep=Vn,exports.TrainingStepAudioPlayer=$o,exports.TrainingStepBullet=Gc,exports.TrainingStepCard=Xc,exports.TrainingStepConfirm=Po,exports.TrainingStepConfirmWithText=Io,exports.TrainingStepListen=Fo,exports.TrainingStepOrderList=Oo,exports.TrainingStepTextBox=Zc,exports.TrainingStepTitle=Yc,exports.TrainingTooltip=Ml,exports.TrainingWordCard=vo,exports.UpdateAlert=Z3,exports.WAVE_A_MAX=T5,exports.WAVE_H1_PX=Wc,exports.WAVE_HMAX_PX=j5,exports.WORD_TABLE_PAPER=aa,exports.WORD_TYPE_LABEL=hc,exports.WordDataProvider=z3,exports.WordDataUpdatePopup=u7,exports.WordImageTooltip=gu,exports.WordSearchFilterPanel=E3,exports.WordSearchResultBlock=N3,exports.WordTable=ra,exports.WordTableBlock=a7,exports.WordTableButton=r7,exports.WordTablePopup=Vy,exports.WordTableThumbnail=xu,exports.buildMonthChartData=q4,exports.cellKey=Xy,exports.cellLabel=Zy,exports.cellsForLabels=c5,exports.clearPassCardBgTheme=xn,exports.clearPromoBannerBgTheme=$t,exports.closeTrainingPopup=o3,exports.companyTypeLabel=O3,exports.createTrainingScenario=l3,exports.cx=De,exports.deriveNoiseContexts=h3,exports.derivePassCard=bl,exports.draftValues=f5,exports.effectiveNoiseVolume=Do,exports.effectiveSpeechVolume=Hc,exports.expandSlashLabel=_o,exports.formatDuration=u5,exports.getControlDateRange=Q4,exports.getPayloadTimestamp=Vo,exports.getPromoBannerBgTheme=Ur,exports.getSelectedFromPayload=u3,exports.getSelectedText=d3,exports.getStepPayload=su,exports.getSteppedPayload=p3,exports.injectPassCardBgTheme=vn,exports.injectPromoBannerBgTheme=Lt,exports.isSelectionCorrect=m3,exports.labelOfCellKey=Pc,exports.labelsForSave=Yy,exports.levelToPct=_5,exports.markAfterClick=lc,exports.marksForSave=xo,exports.mergeNoiseSettings=Ta,exports.missesByType=o5,exports.nextFocus=t5,exports.nextMisses=r5,exports.noiseElementVolume=Eo,exports.noiseRatioOf=ja,exports.pageStartIndexes=dc,exports.passCardBgIhabTheme=Nl,exports.passCardBgLeftColorGridTheme=Sl,exports.passCardBgTwoCircleTheme=vl,exports.pctToLevel=w5,exports.printWordTable=Ay,exports.promoBannerBgDarkTheme=Ri,exports.promoBannerBgDeepTheme=Ei,exports.promoBannerBgDiagonalTheme=Oi,exports.promoBannerBgDotsTheme=zi,exports.promoBannerBgInstagramTheme=Zi,exports.promoBannerBgMainTheme=ki,exports.promoBannerBgNaverTheme=Ki,exports.promoBannerBgOutlineTheme=Wi,exports.promoBannerBgRadialTheme=Ii,exports.promoBannerBgSoftSubTheme=Ti,exports.promoBannerBgSoftTheme=Bi,exports.promoBannerBgSubTheme=Si,exports.promoBannerBgSuccessTheme=Ui,exports.promoBannerBgWarmTheme=Li,exports.recommendTables=i5,exports.regenerateUnpinned=h5,exports.removeItem=m5,exports.resolveTrainingItems=i3,exports.resolveTrainingPopupMeta=ou,exports.reviewCells=qy,exports.reviewMeta=Ky,exports.reviewSetPlan=s5,exports.reviewTableName=Gy,exports.scoreKey=er,exports.scoreSheetHeader=Jy,exports.shouldConfirmDiscard=ky,exports.splitTrainingVariants=s3,exports.summarize=wy,exports.summarizeMisses=a5,exports.tableTrends=e5,exports.toDraft=d5,exports.toTrainingText=c3,exports.togglePin=p5,exports.uncoveredLabels=l5,exports.useAnchoredMenu=xa,exports.useBarChartControl=ql,exports.useCalendarMonth=Hl,exports.useComboboxSuggestions=Pl,exports.useFitScale=Cc,exports.useNoisePlayer=ar,exports.useSoundCompassExam=sb,exports.useToastLifecycle=ec,exports.useWordData=H3,exports.useWordTableDisplaySettings=$c,exports.useWordTablePrint=Bo,exports.waveBarPx=La,exports.waveBarVal=Mo,exports.weakItems=Qy;
|