@ihabdevteam/core 0.166.0 → 0.168.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.
@@ -28,7 +28,7 @@
28
28
  *
29
29
  * This source code is licensed under the ISC license.
30
30
  * See the LICENSE file in the root directory of this source tree.
31
- */const vu=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},xu=o.createContext({}),_u=()=>o.useContext(xu),wu=o.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:s="",children:i,iconNode:l,...c},u)=>{const{size:d=24,strokeWidth:p=2,absoluteStrokeWidth:m=!1,color:f="currentColor",className:C=""}=_u()??{},g=r??m?Number(a??p)*24/Number(t??d):a??p;return o.createElement("svg",{ref:u,...hr,width:t??d??hr.width,height:t??d??hr.height,stroke:e??f,strokeWidth:g,className:Xo("lucide",C,s),...!i&&!vu(c)&&{"aria-hidden":"true"},...c},[...l.map(([b,_])=>o.createElement(b,_)),...Array.isArray(i)?i:[i]])});/**
31
+ */const vu=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},xu=o.createContext({}),_u=()=>o.useContext(xu),wu=o.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:s="",children:i,iconNode:l,...c},u)=>{const{size:d=24,strokeWidth:p=2,absoluteStrokeWidth:m=!1,color:f="currentColor",className:C=""}=_u()??{},g=r??m?Number(a??p)*24/Number(t??d):a??p;return o.createElement("svg",{ref:u,...hr,width:t??d??hr.width,height:t??d??hr.height,stroke:e??f,strokeWidth:g,className:Xo("lucide",C,s),...!i&&!vu(c)&&{"aria-hidden":"true"},...c},[...l.map(([y,_])=>o.createElement(y,_)),...Array.isArray(i)?i:[i]])});/**
32
32
  * @license lucide-react v1.38.0 - ISC
33
33
  *
34
34
  * This source code is licensed under the ISC license.
@@ -824,8 +824,8 @@
824
824
  * This source code is licensed under the ISC license.
825
825
  * See the LICENSE file in the root directory of this source tree.
826
826
  */const Jh=[["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"}]],Qh=X("thumbs-up",Jh),hs={"alert-triangle":Qo,"align-start-vertical":Bu,anchor:sh,armchair:lh,"arrow-down":Du,"arrow-left":Eu,"arrow-right":ju,"arrow-right-left":Lu,"arrow-up-a-z":uh,"audio-lines":Ru,baby:Iu,ban:Ou,"bar-chart-2":ph,bell:Vu,"book-marked":Wu,"book-open":Uu,"bow-arrow":Ku,braces:Zu,bug:Ju,calendar:ds,"calendar-check":ed,"calendar-days":nd,camera:rd,car:fh,"chart-column":sd,"chart-line":ld,"chart-pie":ud,check:es,"chevron-down":ps,"chevron-left":ts,"chevron-right":ns,"chevron-up":ms,circle:qh,"clipboard-list":fd,coffee:gh,combine:gd,copy:yd,"chevrons-left-right-ellipsis":xd,"credit-card":wd,database:as,diff:Bd,download:rs,ear:Sd,edit:Td,"edit-2":Md,"edit-3":$d,ellipsis:os,eraser:Id,"external-link":Od,eye:Vd,"file-text":Wd,"flip-horizontal":Ud,"folder-open":Kd,"folder-plus":Zd,gamepad:Jd,"gamepad-2":yh,clock:xh,target:wh,percent:Ah,gavel:ep,"git-merge":ss,globe:ap,"grip-vertical":op,headphones:ip,heart:cp,home:dp,inbox:Nh,info:mp,"key-round":fp,landmark:gp,layers:yp,"layout-dashboard":xp,leaf:wp,lightbulb:Ap,link:Np,"link-2":Sp,"link-2-off":Tp,list:Mp,"list-checks":$p,"list-ordered":Pp,"list-tree":Sh,loader:Fp,lock:Hp,"log-out":zp,mail:qp,"map-pin":Gp,menu:Yh,"message-circle":Yp,"message-circle-question-mark":Xp,"message-square":Qp,"message-square-more":Th,"message-square-text":t1,minus:Mh,"minus-circle":a1,moon:Xh,"more-horizontal":os,package:o1,palette:i1,"party-popper":c1,pause:d1,pencil:m1,phone:f1,play:g1,"play-circle":y1,plus:x1,printer:w1,"refresh-cw":A1,repeat:N1,replace:S1,rocket:T1,"rotate-ccw":M1,"rotate-cw":$1,salad:P1,"scan-search":F1,search:z1,"circle-alert":is,"alert-circle":is,"check-circle":ls,scissors:q1,"search-x":G1,send:Y1,settings:X1,"share-2":$h,"shield-check":Q1,"shopping-cart":tm,shuffle:am,"skip-back":om,"skip-forward":im,sparkles:Ph,square:cm,star:dm,store:mm,"sun-medium":fm,table:gm,"table-2":ym,tag:xm,terminal:wm,"text-cursor-input":Am,"text-initial":Nm,"thumbs-up":Qh,ticket:Sm,trash:Mm,triangle:Gh,"trash-2":Tm,"trending-up":$m,"triangle-alert":Qo,trophy:Pm,type:Fh,unlink:Fm,upload:Hm,user:fr,"user-plus":Wm,"user-round":Um,"user-round-check":Km,users:Zm,"users-round":Jm,volume:Hh,"volume-2":cs,wrench:th,x:us,zap:rh};function e0(e){return hs[e]??null}const fs=new Set;function t0(e){return Zo&&!(e in hs)&&!fs.has(e)&&(fs.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 n0=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 a0(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?n0(a):null}const Cs=new Map;function r0(e){const t=typeof e=="string"?a0(e):null,a=t?e0(t)??Cs.get(t)??null:null,[r,s]=o.useState(null);return o.useEffect(()=>{if(!t||a)return;let i=!1;return t0(t).then(l=>{Cs.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 gs(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 o0(e){if(Array.isArray(e))return e}function s0(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,s,i,l,c=[],u=!0,d=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(u=(r=i.call(a)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(p){d=!0,s=p}finally{try{if(!u&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(d)throw s}}return c}}function i0(){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 l0(e,t){return o0(e)||s0(e,t)||c0(e,t)||i0()}function c0(e,t){if(e){if(typeof e=="string")return gs(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)?gs(e,t):void 0}}const bs=Object.entries,ys=Object.setPrototypeOf,u0=Object.isFrozen,d0=Object.getPrototypeOf,p0=Object.getOwnPropertyDescriptor;let bt=Object.freeze,vt=Object.seal,qn=Object.create,vs=typeof Reflect<"u"&&Reflect,Cr=vs.apply,gr=vs.construct;bt||(bt=function(t){return t}),vt||(vt=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=Ct(Array.prototype.forEach),m0=Ct(Array.prototype.lastIndexOf),xs=Ct(Array.prototype.pop),ca=Ct(Array.prototype.push),h0=Ct(Array.prototype.splice),Un=Array.isArray,ua=Ct(String.prototype.toLowerCase),br=Ct(String.prototype.toString),_s=Ct(String.prototype.match),da=Ct(String.prototype.replace),ws=Ct(String.prototype.indexOf),f0=Ct(String.prototype.trim),C0=Ct(Number.prototype.toString),g0=Ct(Boolean.prototype.toString),ks=typeof BigInt>"u"?null:Ct(BigInt.prototype.toString),As=typeof Symbol>"u"?null:Ct(Symbol.prototype.toString),Ot=Ct(Object.prototype.hasOwnProperty),pa=Ct(Object.prototype.toString),Et=Ct(RegExp.prototype.test),Rn=b0(TypeError);function Ct(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 b0(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 Je(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ua;if(ys&&ys(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&&(u0(t)||(t[r]=i),s=i)}e[s]=!0}return e}function y0(e){for(let t=0;t<e.length;t++)Ot(e,t)||(e[t]=null);return e}function Ut(e){const t=qn(null);for(const r of bs(e)){var a=l0(r,2);const s=a[0],i=a[1];Ot(e,s)&&(Un(i)?t[s]=y0(i):i&&typeof i=="object"&&i.constructor===Object?t[s]=Ut(i):t[s]=i)}return t}function v0(e){switch(typeof e){case"string":return e;case"number":return C0(e);case"boolean":return g0(e);case"bigint":return ks?ks(e):"0";case"symbol":return As?As(e):"Symbol()";case"undefined":return pa(e);case"function":case"object":{if(e===null)return pa(e);const t=e,a=en(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:pa(r)}return pa(e)}default:return pa(e)}}function en(e,t){for(;e!==null;){const r=p0(e,t);if(r){if(r.get)return Ct(r.get);if(typeof r.value=="function")return Ct(r.value)}e=d0(e)}function a(){return null}return a}function x0(e){try{return Et(e,""),!0}catch{return!1}}const Bs=bt(["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=bt(["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=bt(["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"]),_0=bt(["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=bt(["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"]),w0=bt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ns=bt(["#text"]),Ds=bt(["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=bt(["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"]),Ss=bt(["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"]),$a=bt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),k0=vt(/{{[\w\W]*|^[\w\W]*}}/g),A0=vt(/<%[\w\W]*|^[\w\W]*%>/g),B0=vt(/\${[\w\W]*/g),N0=vt(/^data-[\-\w.\u00B7-\uFFFF]+$/),D0=vt(/^aria-[\-\w]+$/),Es=vt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),S0=vt(/^(?:\w+script|data):/i),E0=vt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),T0=vt(/^html$/i),j0=vt(/^[a-z][.\w]*(-[.\w]+)+$/i),Ts=vt(/<[/\w!]/g),js=vt(/<[/\w]/g),M0=vt(/<\/no(script|embed|frames)/i),L0=vt(/\/>/i),Gt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ms=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],$0=bt(Je({},Ms)),R0=(function(){const e={};return $n(Ms,t=>{e[t]=vt(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),bt(e)})(),P0=function(){return typeof window>"u"?null:window},I0=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}},Ls=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},An=function(t,a,r,s){return Ot(t,a)&&Un(t[a])?Je(s.base?Ut(s.base):{},t[a],s.transform):r},wr=function(t,a,r){const s=Ot(t,a)?t[a]:void 0;return s&&typeof s=="object"?Ut(s):r()};function $s(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P0();const t=be=>$s(be);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==Gt.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,u=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,m=e.trustedTypes,f=c.prototype,C=en(f,"cloneNode"),g=en(f,"remove"),b=en(f,"nextSibling"),_=en(f,"childNodes"),h=en(f,"parentNode"),v=en(f,"shadowRoot"),x=en(f,"attributes"),y=l&&l.prototype?en(l.prototype,"nodeType"):null,k=l&&l.prototype?en(l.prototype,"nodeName"):null,w=l&&l.prototype?en(l.prototype,"ownerDocument"):null,N=function(j){return y?y(j):j.nodeType},B=function(j){return k?k(j):j.nodeName};if(typeof i=="function"){const be=a.createElement("template");be.content&&be.content.ownerDocument&&(a=be.content.ownerDocument)}let A,D="",$,F=!1,P=0;const G=function(){if(P>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(j){G(),P++;try{return A.createHTML(j)}finally{P--}},M=function(j){G(),P++;try{return A.createScriptURL(j)}finally{P--}},H=function(){return F||($=I0(m,s),F=!0),$},ee=a,q=ee.implementation,U=ee.createNodeIterator,W=ee.createDocumentFragment,J=ee.getElementsByTagName,I=r.importNode;let T=Ls();t.isSupported=typeof bs=="function"&&typeof h=="function"&&q&&q.createHTMLDocument!==void 0;const O=k0,R=A0,S=B0,L=N0,K=D0,Z=S0,Q=E0,pe=j0;let Te=Es,ke=null;const oe=Je({},[...Bs,...yr,...vr,...xr,...Ns]);let z=null;const re=Je({},[...Ds,..._r,...Ss,...$a]);let ce=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}})),fe=null,ye=null;const Ne=Object.seal(qn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let we=!0,Be=!0,je=!1,se=!0,te=!1,me=!0,ne=!1,Ce=!1,ve=null,Ye=null,He=!1,Ue=!1,Se=!1,Ge=!1,$e=!0,Ie=!1;const Ve="user-content-";let at=!0,ot=!1,We={},Xe=null;const gt=Je({},["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 Bt=null;const Tt=Je({},["audio","video","img","source","image","track"]);let dt=null;const Qe=Je({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",Oe="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let et=rt,yt=!1,ze=null;const it=Je({},[Ze,Oe,rt],br),Nt=bt(["mi","mo","mn","ms","mtext"]);let Dt=Je({},Nt);const Le=bt(["annotation-xml"]);let Ke=Je({},Le);const St=Je({},["title","style","font","a","script"]);let xt=null;const jt=["application/xhtml+xml","text/html"],sn="text/html";let tt=null,Kt=null;const _n=a.createElement("form"),_t=function(j){return j instanceof RegExp||j instanceof Function},zt=function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Kt&&Kt===j)return;(!j||typeof j!="object")&&(j={}),j=Ut(j),xt=jt.indexOf(j.PARSER_MEDIA_TYPE)===-1?sn:j.PARSER_MEDIA_TYPE,tt=xt==="application/xhtml+xml"?br:ua,ke=An(j,"ALLOWED_TAGS",oe,{transform:tt}),z=An(j,"ALLOWED_ATTR",re,{transform:tt}),ze=An(j,"ALLOWED_NAMESPACES",it,{transform:br}),dt=An(j,"ADD_URI_SAFE_ATTR",Qe,{transform:tt,base:Qe}),Bt=An(j,"ADD_DATA_URI_TAGS",Tt,{transform:tt,base:Tt}),Xe=An(j,"FORBID_CONTENTS",gt,{transform:tt}),fe=An(j,"FORBID_TAGS",Ut({}),{transform:tt}),ye=An(j,"FORBID_ATTR",Ut({}),{transform:tt}),We=Ot(j,"USE_PROFILES")?j.USE_PROFILES&&typeof j.USE_PROFILES=="object"?Ut(j.USE_PROFILES):j.USE_PROFILES:!1,we=j.ALLOW_ARIA_ATTR!==!1,Be=j.ALLOW_DATA_ATTR!==!1,je=j.ALLOW_UNKNOWN_PROTOCOLS||!1,se=j.ALLOW_SELF_CLOSE_IN_ATTR!==!1,te=j.SAFE_FOR_TEMPLATES||!1,me=j.SAFE_FOR_XML!==!1,ne=j.WHOLE_DOCUMENT||!1,Ue=j.RETURN_DOM||!1,Se=j.RETURN_DOM_FRAGMENT||!1,Ge=j.RETURN_TRUSTED_TYPE||!1,He=j.FORCE_BODY||!1,$e=j.SANITIZE_DOM!==!1,Ie=j.SANITIZE_NAMED_PROPS||!1,at=j.KEEP_CONTENT!==!1,ot=j.IN_PLACE||!1,Te=x0(j.ALLOWED_URI_REGEXP)?j.ALLOWED_URI_REGEXP:Es,et=typeof j.NAMESPACE=="string"?j.NAMESPACE:rt,Dt=wr(j,"MATHML_TEXT_INTEGRATION_POINTS",()=>Je({},Nt)),Ke=wr(j,"HTML_INTEGRATION_POINTS",()=>Je({},Le));const Y=wr(j,"CUSTOM_ELEMENT_HANDLING",()=>qn(null));if(ce=qn(null),Ot(Y,"tagNameCheck")&&_t(Y.tagNameCheck)&&(ce.tagNameCheck=Y.tagNameCheck),Ot(Y,"attributeNameCheck")&&_t(Y.attributeNameCheck)&&(ce.attributeNameCheck=Y.attributeNameCheck),Ot(Y,"allowCustomizedBuiltInElements")&&typeof Y.allowCustomizedBuiltInElements=="boolean"&&(ce.allowCustomizedBuiltInElements=Y.allowCustomizedBuiltInElements),vt(ce),te&&(Be=!1),Se&&(Ue=!0),We&&(ke=Je({},Ns),z=qn(null),We.html===!0&&(Je(ke,Bs),Je(z,Ds)),We.svg===!0&&(Je(ke,yr),Je(z,_r),Je(z,$a)),We.svgFilters===!0&&(Je(ke,vr),Je(z,_r),Je(z,$a)),We.mathMl===!0&&(Je(ke,xr),Je(z,Ss),Je(z,$a))),Ne.tagCheck=null,Ne.attributeCheck=null,Ot(j,"ADD_TAGS")&&(typeof j.ADD_TAGS=="function"?Ne.tagCheck=j.ADD_TAGS:Un(j.ADD_TAGS)&&(ke===oe&&(ke=Ut(ke)),Je(ke,j.ADD_TAGS,tt))),Ot(j,"ADD_ATTR")&&(typeof j.ADD_ATTR=="function"?Ne.attributeCheck=j.ADD_ATTR:Un(j.ADD_ATTR)&&(z===re&&(z=Ut(z)),Je(z,j.ADD_ATTR,tt))),Ot(j,"ADD_FORBID_CONTENTS")&&Un(j.ADD_FORBID_CONTENTS)&&(Xe===gt&&(Xe=Ut(Xe)),Je(Xe,j.ADD_FORBID_CONTENTS,tt)),at&&(ke["#text"]=!0),ne&&Je(ke,["html","head","body"]),ke.table&&(Je(ke,["tbody"]),delete fe.tbody),j.TRUSTED_TYPES_POLICY){if(typeof j.TRUSTED_TYPES_POLICY.createHTML!="function")throw Rn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof j.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Rn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const de=A;A=j.TRUSTED_TYPES_POLICY;try{D=E("")}catch(Ee){throw A=de,Ee}}else j.TRUSTED_TYPES_POLICY===null?(A=void 0,D=""):(A===void 0&&(A=H()),A&&typeof D=="string"&&(D=E("")));bt&&bt(j),Kt=j},Jt=Je({},[...yr,...vr,..._0]),an=Je({},[...xr,...w0]),ln=function(j,Y,de){return Y.namespaceURI===rt?j==="svg":Y.namespaceURI===Ze?j==="svg"&&(de==="annotation-xml"||Dt[de]):!!Jt[j]},Qt=function(j,Y,de){return Y.namespaceURI===rt?j==="math":Y.namespaceURI===Oe?j==="math"&&Ke[de]:!!an[j]},wn=function(j,Y,de){return Y.namespaceURI===Oe&&!Ke[de]||Y.namespaceURI===Ze&&!Dt[de]?!1:!an[j]&&(St[j]||!Jt[j])},Yt=function(j){let Y=h(j);(!Y||!Y.tagName)&&(Y={namespaceURI:et,tagName:"template"});const de=ua(j.tagName),Ee=ua(Y.tagName);return ze[j.namespaceURI]?j.namespaceURI===Oe?ln(de,Y,Ee):j.namespaceURI===Ze?Qt(de,Y,Ee):j.namespaceURI===rt?wn(de,Y,Ee):!!(xt==="application/xhtml+xml"&&ze[j.namespaceURI]):!1},ht=function(j){ca(t.removed,{element:j});try{h(j).removeChild(j)}catch{if(g(j),!h(j))throw Rn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},cn=function(j,Y,de){try{j.removeAttributeNode(Y)}catch{try{j.removeAttribute(de)}catch{}}},Zt=function(j){Xt(j);const Y=_(j);if(Y){const Ee=[];$n(Y,Re=>{ca(Ee,Re)}),$n(Ee,Re=>{try{g(Re)}catch{}})}const de=x(j);if(de)for(let Ee=de.length-1;Ee>=0;--Ee){const Re=de[Ee],Fe=Re&&Re.name;typeof Fe=="string"&&cn(j,Re,Fe)}},Mt=function(j,Y,de){if(!de)try{de=Y.getAttributeNode(j)}catch{de=null}ca(t.removed,{attribute:de||null,from:Y});try{de?Y.removeAttributeNode(de):Y.removeAttribute(j)}catch{try{Y.removeAttribute(j)}catch{}}if(j==="is")if(Ue||Se)try{ht(Y)}catch{}else try{Y.setAttribute(j,"")}catch{}},un=function(j){const Y=x(j);if(Y)for(let de=Y.length-1;de>=0;--de){const Ee=Y[de],Re=Ee&&Ee.name;typeof Re!="string"||z[tt(Re)]||cn(j,Ee,Re)}},Xt=function(j){const Y=[j];for(;Y.length>0;){const de=Y.pop();N(de)===Gt.element&&un(de);const Re=_(de);if(Re)for(let Fe=Re.length-1;Fe>=0;--Fe)Y.push(Re[Fe])}},dn=function(j,Y){return me?j==="patchsrc"?!0:j==="for"&&Y!=="label"&&Y!=="output":!1},Ae=function(j){if(!me)return;const Y=[j];for(;Y.length>0;){const de=Y.pop(),Ee=N(de);if(Ee===Gt.processingInstruction||Ee===Gt.comment&&Et(js,de.data)){try{g(de)}catch{}continue}if(Ee===Gt.element){const Fe=de,st=tt(B(de));try{Fe.hasAttribute&&Fe.hasAttribute("patchsrc")&&Fe.removeAttribute("patchsrc"),Fe.hasAttribute&&Fe.hasAttribute("for")&&dn("for",st)&&Fe.removeAttribute("for")}catch{}}const Re=_(de);if(Re)for(let Fe=Re.length-1;Fe>=0;--Fe)Y.push(Re[Fe])}},Pe=function(j){let Y=null,de=null;if(He)j="<remove></remove>"+j;else{const Fe=_s(j,/^[\r\n\t ]+/);de=Fe&&Fe[0]}xt==="application/xhtml+xml"&&et===rt&&(j='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+j+"</body></html>");const Ee=A?E(j):j;if(et===rt)try{Y=new p().parseFromString(Ee,xt)}catch{}if(!Y||!Y.documentElement){Y=q.createDocument(et,"template",null);try{Y.documentElement.innerHTML=yt?D:Ee}catch{}}const Re=Y.body||Y.documentElement;return j&&de&&Re.insertBefore(a.createTextNode(de),Re.childNodes[0]||null),et===rt?J.call(Y,ne?"html":"body")[0]:ne?Y.documentElement:Re},ae=function(j){const Y=w?w(j):j.ownerDocument;return U.call(Y||j,j,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},he=function(j){return j=da(j,O," "),j=da(j,R," "),j=da(j,S," "),j},V=function(j){var Y;j.normalize();const de=w?w(j):j.ownerDocument,Ee=U.call(de||j,j,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Re=Ee.nextNode();for(;Re;)Re.data=he(Re.data),Re=Ee.nextNode();const Fe=(Y=j.querySelectorAll)===null||Y===void 0?void 0:Y.call(j,"template");Fe&&$n(Fe,st=>{ue(st.content)&&V(st.content)})},ie=function(j){const Y=k?k(j):null;return typeof Y!="string"||tt(Y)!=="form"?!1:typeof j.nodeName!="string"||typeof j.textContent!="string"||typeof j.removeChild!="function"||j.attributes!==x(j)||typeof j.removeAttribute!="function"||typeof j.setAttribute!="function"||typeof j.namespaceURI!="string"||typeof j.insertBefore!="function"||typeof j.hasChildNodes!="function"||j.nodeType!==y(j)||j.childNodes!==_(j)},ue=function(j){if(!y||typeof j!="object"||j===null)return!1;try{return y(j)===Gt.documentFragment}catch{return!1}},xe=function(j){if(!y||typeof j!="object"||j===null)return!1;try{return typeof y(j)=="number"}catch{return!1}};function _e(be,j,Y){be.length!==0&&$n(be,de=>{de.call(t,j,Y,Kt)})}const Me=function(j,Y){return!!(me&&j.hasChildNodes()&&!xe(j.firstElementChild)&&Et(Ts,j.textContent)&&Et(Ts,j.innerHTML)||me&&j.namespaceURI===rt&&$0[Y]&&(xe(j.firstElementChild)||typeof j.textContent=="string"&&Et(R0[Y],j.textContent))||j.nodeType===Gt.processingInstruction||me&&j.nodeType===Gt.comment&&Et(js,j.data))},nt=function(j,Y){if(j instanceof RegExp)return Et(j,Y);if(j instanceof Function){for(var de=arguments.length,Ee=new Array(de>2?de-2:0),Re=2;Re<de;Re++)Ee[Re-2]=arguments[Re];return!!j(Y,...Ee)}return!1},ft=function(j,Y,de){if(!fe[Y]&&mn(Y)&&nt(ce.tagNameCheck,Y))return!1;if(at&&!Xe[Y]){const Ee=h(j),Re=_(j);if(Re&&Ee){const Fe=Re.length;for(let st=Fe-1;st>=0;--st){const ut=j===de?C(Re[st],!0):Re[st];Ee.insertBefore(ut,b(j))}}}return ht(j),!0},ct=function(j,Y,de,Ee){return j.length===0?Y:Y===de||Y===Ee?Ut(Y):Y},wt=function(j,Y){return j===Y||h(j)!==null?!1:(ot&&Xt(j),!0)},Wt=function(j,Y){if(_e(T.beforeSanitizeElements,j,null),wt(j,Y))return!0;if(ie(j))return ht(j),!0;const de=tt(B(j));if(ke=ct(T.uponSanitizeElement,ke,oe,ve),_e(T.uponSanitizeElement,j,{tagName:de,allowedTags:ke}),wt(j,Y))return!0;if(Me(j,de))return ht(j),!0;if(fe[de]||!(Ne.tagCheck instanceof Function&&Ne.tagCheck(de))&&!ke[de]){const Re=ft(j,de,Y);return Re===!1&&_e(T.afterSanitizeElements,j,null),Re}if(N(j)===Gt.element&&!Yt(j)||(de==="noscript"||de==="noembed"||de==="noframes")&&Et(M0,j.innerHTML))return ht(j),!0;if(te&&j.nodeType===Gt.text){const Re=he(j.textContent);j.textContent!==Re&&(ca(t.removed,{element:j.cloneNode()}),j.textContent=Re)}return _e(T.afterSanitizeElements,j,null),!1},Pt=function(j,Y,de){if(ye[Y]||dn(Y,j)||$e&&(Y==="id"||Y==="name")&&(de in a||de in _n))return!1;const Ee=z[Y]||Ne.attributeCheck instanceof Function&&Ne.attributeCheck(Y,j);return Be&&Et(L,Y)||we&&Et(K,Y)?!0:Ee?dt[Y]||Et(Te,da(de,Q,""))||(Y==="src"||Y==="xlink:href"||Y==="href")&&j!=="script"&&ws(de,"data:")===0&&Bt[j]||je&&!Et(Z,da(de,Q,""))?!0:!de:mn(j)&&nt(ce.tagNameCheck,j)&&nt(ce.attributeNameCheck,Y,j)||Y==="is"&&ce.allowCustomizedBuiltInElements&&nt(ce.tagNameCheck,de)},pn=Je({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),mn=function(j){return!pn[ua(j)]&&Et(pe,j)},dr=function(j,Y,de,Ee){if(A&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!de)switch(m.getAttributeType(j,Y)){case"TrustedHTML":return E(Ee);case"TrustedScriptURL":return M(Ee)}return Ee},Cu=function(j,Y,de,Ee){try{de?j.setAttributeNS(de,Y,Ee):j.setAttribute(Y,Ee),ie(j)?ht(j):xs(t.removed)}catch{Mt(Y,j)}},Go=function(j){_e(T.beforeSanitizeAttributes,j,null);const Y=j.attributes;if(!Y||ie(j))return;z=ct(T.uponSanitizeAttribute,z,re,Ye);const de={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let Ee=Y.length;const Re=tt(j.nodeName);for(;Ee--;){const Fe=Y[Ee],st=Fe.name,ut=Fe.namespaceURI,It=Fe.value,Ft=tt(st),mr=It;let Lt=st==="value"?mr:f0(mr);if(de.attrName=Ft,de.attrValue=Lt,de.keepAttr=!0,de.forceKeepAttr=void 0,_e(T.uponSanitizeAttribute,j,de),Lt=de.attrValue,Ie&&(Ft==="id"||Ft==="name")&&ws(Lt,Ve)!==0&&(Mt(st,j,Fe),Lt=Ve+Lt),me&&Et(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Lt)){Mt(st,j,Fe);continue}if(Ft==="attributename"&&_s(Lt,"href")){Mt(st,j,Fe);continue}if(!de.forceKeepAttr){if(!de.keepAttr){Mt(st,j,Fe);continue}if(!se&&Et(L0,Lt)){Mt(st,j,Fe);continue}if(te&&(Lt=he(Lt)),!Pt(Re,Ft,Lt)){Mt(st,j,Fe);continue}Lt=dr(Re,Ft,ut,Lt),Lt!==mr&&Cu(j,st,ut,Lt)}}_e(T.afterSanitizeAttributes,j,null)},La=function(j){let Y=null;const de=ae(j);for(_e(T.beforeSanitizeShadowDOM,j,null);Y=de.nextNode();)if(_e(T.uponSanitizeShadowNode,Y,null),Wt(Y,j),Go(Y),ue(Y.content)&&La(Y.content),N(Y)===Gt.element){const Ee=v(Y);ue(Ee)&&(pr(Ee),La(Ee))}_e(T.afterSanitizeShadowDOM,j,null)},pr=function(j){const Y=[{node:j,shadow:null}];for(;Y.length>0;){const de=Y.pop();if(de.shadow){La(de.shadow);continue}const Ee=de.node,Fe=N(Ee)===Gt.element,st=_(Ee);if(st)for(let ut=st.length-1;ut>=0;--ut)Y.push({node:st[ut],shadow:null});if(Fe){const ut=k?k(Ee):null;if(typeof ut=="string"&&tt(ut)==="template"){const It=Ee.content;ue(It)&&Y.push({node:It,shadow:null})}}if(Fe){const ut=v(Ee);ue(ut)&&Y.push({node:null,shadow:ut},{node:ut,shadow:null})}}};return t.sanitize=function(be){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,de=null,Ee=null,Re=null;if(yt=!be,yt&&(be="<!-->"),typeof be!="string"&&!xe(be)&&(be=v0(be),typeof be!="string"))throw Rn("dirty is not a string, aborting");if(!t.isSupported)return be;Ce?(ke=ve,z=Ye):zt(j),(T.uponSanitizeElement.length>0||T.uponSanitizeAttribute.length>0)&&(ke=Ut(ke)),T.uponSanitizeAttribute.length>0&&(z=Ut(z)),t.removed=[];const Fe=ot&&typeof be!="string"&&xe(be);if(Fe){Ae(be);const It=B(be);if(typeof It=="string"){const Ft=tt(It);if(!ke[Ft]||fe[Ft])throw Zt(be),Rn("root node is forbidden and cannot be sanitized in-place")}if(ie(be))throw Zt(be),Rn("root node is clobbered and cannot be sanitized in-place");try{pr(be)}catch(Ft){throw Zt(be),Ft}}else if(xe(be))Y=Pe("<!---->"),de=Y.ownerDocument.importNode(be,!0),de.nodeType===Gt.element&&de.nodeName==="BODY"||de.nodeName==="HTML"?Y=de:Y.appendChild(de),pr(de);else{if(!Ue&&!te&&!ne&&be.indexOf("<")===-1)return A&&Ge?E(be):be;if(Y=Pe(be),!Y)return Ue?null:Ge?D:""}Y&&He&&ht(Y.firstChild);const st=Fe?be:Y;try{const It=ae(st);for(;Ee=It.nextNode();)Wt(Ee,st),Go(Ee),ue(Ee.content)&&La(Ee.content)}catch(It){throw Fe&&(Zt(be),$n(t.removed,Ft=>{Ft.element&&Xt(Ft.element)})),It}if(Fe)return $n(t.removed,It=>{It.element&&Xt(It.element)}),te&&V(be),be;if(Ue){if(te&&V(Y),Se)for(Re=W.call(Y.ownerDocument);Y.firstChild;)Re.appendChild(Y.firstChild);else Re=Y;return(z.shadowroot||z.shadowrootmode)&&(Re=I.call(r,Re,!0)),Re}let ut=ne?Y.outerHTML:Y.innerHTML;return ne&&ke["!doctype"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&Et(T0,Y.ownerDocument.doctype.name)&&(ut="<!DOCTYPE "+Y.ownerDocument.doctype.name+`>
828
- `+ut),te&&(ut=he(ut)),A&&Ge?E(ut):ut},t.setConfig=function(){let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zt(be),Ce=!0,ve=ke,Ye=z},t.clearConfig=function(){Kt=null,Ce=!1,ve=null,Ye=null,A=$,D=""},t.isValidAttribute=function(be,j,Y){Kt||zt({});const de=tt(be),Ee=tt(j);return Pt(de,Ee,Y)},t.addHook=function(be,j){typeof j=="function"&&Ot(T,be)&&ca(T[be],j)},t.removeHook=function(be,j){if(Ot(T,be)){if(j!==void 0){const Y=m0(T[be],j);return Y===-1?void 0:h0(T[be],Y,1)[0]}return xs(T[be])}},t.removeHooks=function(be){Ot(T,be)&&(T[be]=[])},t.removeAllHooks=function(){T=Ls()},t}var kr=$s();const F0=/^(?:[a-z]+:)?\/\//i,O0="__ihab_core_asset_base_url__";function H0(){return globalThis[O0]??""}function Ar(e){const t=String(e||"").trim();if(!t)return"";if(F0.test(t)||t.startsWith("data:")||t.startsWith("blob:"))return t;const a=t.startsWith("/")?t:`/${t}`,r=H0();return r?`${r}${a}`:a}const Rs="__ihab_core_storage_resolvers__";function ma(){return globalThis[Rs]??null}function V0(e){globalThis[Rs]=e}let Ps=class extends Error{constructor(t){super(`
827
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l0(e,t){return o0(e)||s0(e,t)||c0(e,t)||i0()}function c0(e,t){if(e){if(typeof e=="string")return gs(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)?gs(e,t):void 0}}const bs=Object.entries,ys=Object.setPrototypeOf,u0=Object.isFrozen,d0=Object.getPrototypeOf,p0=Object.getOwnPropertyDescriptor;let bt=Object.freeze,vt=Object.seal,qn=Object.create,vs=typeof Reflect<"u"&&Reflect,Cr=vs.apply,gr=vs.construct;bt||(bt=function(t){return t}),vt||(vt=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=Ct(Array.prototype.forEach),m0=Ct(Array.prototype.lastIndexOf),xs=Ct(Array.prototype.pop),ca=Ct(Array.prototype.push),h0=Ct(Array.prototype.splice),Un=Array.isArray,ua=Ct(String.prototype.toLowerCase),br=Ct(String.prototype.toString),_s=Ct(String.prototype.match),da=Ct(String.prototype.replace),ws=Ct(String.prototype.indexOf),f0=Ct(String.prototype.trim),C0=Ct(Number.prototype.toString),g0=Ct(Boolean.prototype.toString),ks=typeof BigInt>"u"?null:Ct(BigInt.prototype.toString),As=typeof Symbol>"u"?null:Ct(Symbol.prototype.toString),Ot=Ct(Object.prototype.hasOwnProperty),pa=Ct(Object.prototype.toString),Et=Ct(RegExp.prototype.test),Rn=b0(TypeError);function Ct(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 b0(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 Je(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ua;if(ys&&ys(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&&(u0(t)||(t[r]=i),s=i)}e[s]=!0}return e}function y0(e){for(let t=0;t<e.length;t++)Ot(e,t)||(e[t]=null);return e}function Ut(e){const t=qn(null);for(const r of bs(e)){var a=l0(r,2);const s=a[0],i=a[1];Ot(e,s)&&(Un(i)?t[s]=y0(i):i&&typeof i=="object"&&i.constructor===Object?t[s]=Ut(i):t[s]=i)}return t}function v0(e){switch(typeof e){case"string":return e;case"number":return C0(e);case"boolean":return g0(e);case"bigint":return ks?ks(e):"0";case"symbol":return As?As(e):"Symbol()";case"undefined":return pa(e);case"function":case"object":{if(e===null)return pa(e);const t=e,a=en(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:pa(r)}return pa(e)}default:return pa(e)}}function en(e,t){for(;e!==null;){const r=p0(e,t);if(r){if(r.get)return Ct(r.get);if(typeof r.value=="function")return Ct(r.value)}e=d0(e)}function a(){return null}return a}function x0(e){try{return Et(e,""),!0}catch{return!1}}const Bs=bt(["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=bt(["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=bt(["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"]),_0=bt(["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=bt(["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"]),w0=bt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ns=bt(["#text"]),Ds=bt(["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=bt(["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"]),Ss=bt(["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"]),$a=bt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),k0=vt(/{{[\w\W]*|^[\w\W]*}}/g),A0=vt(/<%[\w\W]*|^[\w\W]*%>/g),B0=vt(/\${[\w\W]*/g),N0=vt(/^data-[\-\w.\u00B7-\uFFFF]+$/),D0=vt(/^aria-[\-\w]+$/),Es=vt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),S0=vt(/^(?:\w+script|data):/i),E0=vt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),T0=vt(/^html$/i),j0=vt(/^[a-z][.\w]*(-[.\w]+)+$/i),Ts=vt(/<[/\w!]/g),js=vt(/<[/\w]/g),M0=vt(/<\/no(script|embed|frames)/i),L0=vt(/\/>/i),Gt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ms=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],$0=bt(Je({},Ms)),R0=(function(){const e={};return $n(Ms,t=>{e[t]=vt(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),bt(e)})(),P0=function(){return typeof window>"u"?null:window},I0=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}},Ls=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},An=function(t,a,r,s){return Ot(t,a)&&Un(t[a])?Je(s.base?Ut(s.base):{},t[a],s.transform):r},wr=function(t,a,r){const s=Ot(t,a)?t[a]:void 0;return s&&typeof s=="object"?Ut(s):r()};function $s(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P0();const t=be=>$s(be);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==Gt.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,u=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,m=e.trustedTypes,f=c.prototype,C=en(f,"cloneNode"),g=en(f,"remove"),y=en(f,"nextSibling"),_=en(f,"childNodes"),h=en(f,"parentNode"),v=en(f,"shadowRoot"),x=en(f,"attributes"),b=l&&l.prototype?en(l.prototype,"nodeType"):null,k=l&&l.prototype?en(l.prototype,"nodeName"):null,w=l&&l.prototype?en(l.prototype,"ownerDocument"):null,N=function(j){return b?b(j):j.nodeType},B=function(j){return k?k(j):j.nodeName};if(typeof i=="function"){const be=a.createElement("template");be.content&&be.content.ownerDocument&&(a=be.content.ownerDocument)}let A,D="",$,O=!1,P=0;const K=function(){if(P>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.')},S=function(j){K(),P++;try{return A.createHTML(j)}finally{P--}},L=function(j){K(),P++;try{return A.createScriptURL(j)}finally{P--}},H=function(){return O||($=I0(m,s),O=!0),$},ee=a,U=ee.implementation,q=ee.createNodeIterator,W=ee.createDocumentFragment,J=ee.getElementsByTagName,I=r.importNode;let E=Ls();t.isSupported=typeof bs=="function"&&typeof h=="function"&&U&&U.createHTMLDocument!==void 0;const F=k0,R=A0,T=B0,M=N0,G=D0,Y=S0,Q=E0,de=j0;let Te=Es,ke=null;const oe=Je({},[...Bs,...yr,...vr,...xr,...Ns]);let z=null;const re=Je({},[...Ds,..._r,...Ss,...$a]);let ce=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}})),fe=null,ye=null;const Ne=Object.seal(qn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let we=!0,Be=!0,je=!1,se=!0,te=!1,me=!0,ne=!1,Ce=!1,ve=null,Ye=null,He=!1,Ue=!1,Se=!1,Ge=!1,$e=!0,Ie=!1;const Ve="user-content-";let at=!0,ot=!1,We={},Xe=null;const gt=Je({},["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 Bt=null;const Tt=Je({},["audio","video","img","source","image","track"]);let dt=null;const Qe=Je({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",Oe="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let et=rt,yt=!1,ze=null;const it=Je({},[Ze,Oe,rt],br),Nt=bt(["mi","mo","mn","ms","mtext"]);let Dt=Je({},Nt);const Le=bt(["annotation-xml"]);let Ke=Je({},Le);const St=Je({},["title","style","font","a","script"]);let xt=null;const jt=["application/xhtml+xml","text/html"],sn="text/html";let tt=null,Kt=null;const _n=a.createElement("form"),_t=function(j){return j instanceof RegExp||j instanceof Function},zt=function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Kt&&Kt===j)return;(!j||typeof j!="object")&&(j={}),j=Ut(j),xt=jt.indexOf(j.PARSER_MEDIA_TYPE)===-1?sn:j.PARSER_MEDIA_TYPE,tt=xt==="application/xhtml+xml"?br:ua,ke=An(j,"ALLOWED_TAGS",oe,{transform:tt}),z=An(j,"ALLOWED_ATTR",re,{transform:tt}),ze=An(j,"ALLOWED_NAMESPACES",it,{transform:br}),dt=An(j,"ADD_URI_SAFE_ATTR",Qe,{transform:tt,base:Qe}),Bt=An(j,"ADD_DATA_URI_TAGS",Tt,{transform:tt,base:Tt}),Xe=An(j,"FORBID_CONTENTS",gt,{transform:tt}),fe=An(j,"FORBID_TAGS",Ut({}),{transform:tt}),ye=An(j,"FORBID_ATTR",Ut({}),{transform:tt}),We=Ot(j,"USE_PROFILES")?j.USE_PROFILES&&typeof j.USE_PROFILES=="object"?Ut(j.USE_PROFILES):j.USE_PROFILES:!1,we=j.ALLOW_ARIA_ATTR!==!1,Be=j.ALLOW_DATA_ATTR!==!1,je=j.ALLOW_UNKNOWN_PROTOCOLS||!1,se=j.ALLOW_SELF_CLOSE_IN_ATTR!==!1,te=j.SAFE_FOR_TEMPLATES||!1,me=j.SAFE_FOR_XML!==!1,ne=j.WHOLE_DOCUMENT||!1,Ue=j.RETURN_DOM||!1,Se=j.RETURN_DOM_FRAGMENT||!1,Ge=j.RETURN_TRUSTED_TYPE||!1,He=j.FORCE_BODY||!1,$e=j.SANITIZE_DOM!==!1,Ie=j.SANITIZE_NAMED_PROPS||!1,at=j.KEEP_CONTENT!==!1,ot=j.IN_PLACE||!1,Te=x0(j.ALLOWED_URI_REGEXP)?j.ALLOWED_URI_REGEXP:Es,et=typeof j.NAMESPACE=="string"?j.NAMESPACE:rt,Dt=wr(j,"MATHML_TEXT_INTEGRATION_POINTS",()=>Je({},Nt)),Ke=wr(j,"HTML_INTEGRATION_POINTS",()=>Je({},Le));const Z=wr(j,"CUSTOM_ELEMENT_HANDLING",()=>qn(null));if(ce=qn(null),Ot(Z,"tagNameCheck")&&_t(Z.tagNameCheck)&&(ce.tagNameCheck=Z.tagNameCheck),Ot(Z,"attributeNameCheck")&&_t(Z.attributeNameCheck)&&(ce.attributeNameCheck=Z.attributeNameCheck),Ot(Z,"allowCustomizedBuiltInElements")&&typeof Z.allowCustomizedBuiltInElements=="boolean"&&(ce.allowCustomizedBuiltInElements=Z.allowCustomizedBuiltInElements),vt(ce),te&&(Be=!1),Se&&(Ue=!0),We&&(ke=Je({},Ns),z=qn(null),We.html===!0&&(Je(ke,Bs),Je(z,Ds)),We.svg===!0&&(Je(ke,yr),Je(z,_r),Je(z,$a)),We.svgFilters===!0&&(Je(ke,vr),Je(z,_r),Je(z,$a)),We.mathMl===!0&&(Je(ke,xr),Je(z,Ss),Je(z,$a))),Ne.tagCheck=null,Ne.attributeCheck=null,Ot(j,"ADD_TAGS")&&(typeof j.ADD_TAGS=="function"?Ne.tagCheck=j.ADD_TAGS:Un(j.ADD_TAGS)&&(ke===oe&&(ke=Ut(ke)),Je(ke,j.ADD_TAGS,tt))),Ot(j,"ADD_ATTR")&&(typeof j.ADD_ATTR=="function"?Ne.attributeCheck=j.ADD_ATTR:Un(j.ADD_ATTR)&&(z===re&&(z=Ut(z)),Je(z,j.ADD_ATTR,tt))),Ot(j,"ADD_FORBID_CONTENTS")&&Un(j.ADD_FORBID_CONTENTS)&&(Xe===gt&&(Xe=Ut(Xe)),Je(Xe,j.ADD_FORBID_CONTENTS,tt)),at&&(ke["#text"]=!0),ne&&Je(ke,["html","head","body"]),ke.table&&(Je(ke,["tbody"]),delete fe.tbody),j.TRUSTED_TYPES_POLICY){if(typeof j.TRUSTED_TYPES_POLICY.createHTML!="function")throw Rn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof j.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Rn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const pe=A;A=j.TRUSTED_TYPES_POLICY;try{D=S("")}catch(Ee){throw A=pe,Ee}}else j.TRUSTED_TYPES_POLICY===null?(A=void 0,D=""):(A===void 0&&(A=H()),A&&typeof D=="string"&&(D=S("")));bt&&bt(j),Kt=j},Jt=Je({},[...yr,...vr,..._0]),an=Je({},[...xr,...w0]),ln=function(j,Z,pe){return Z.namespaceURI===rt?j==="svg":Z.namespaceURI===Ze?j==="svg"&&(pe==="annotation-xml"||Dt[pe]):!!Jt[j]},Qt=function(j,Z,pe){return Z.namespaceURI===rt?j==="math":Z.namespaceURI===Oe?j==="math"&&Ke[pe]:!!an[j]},wn=function(j,Z,pe){return Z.namespaceURI===Oe&&!Ke[pe]||Z.namespaceURI===Ze&&!Dt[pe]?!1:!an[j]&&(St[j]||!Jt[j])},Yt=function(j){let Z=h(j);(!Z||!Z.tagName)&&(Z={namespaceURI:et,tagName:"template"});const pe=ua(j.tagName),Ee=ua(Z.tagName);return ze[j.namespaceURI]?j.namespaceURI===Oe?ln(pe,Z,Ee):j.namespaceURI===Ze?Qt(pe,Z,Ee):j.namespaceURI===rt?wn(pe,Z,Ee):!!(xt==="application/xhtml+xml"&&ze[j.namespaceURI]):!1},ht=function(j){ca(t.removed,{element:j});try{h(j).removeChild(j)}catch{if(g(j),!h(j))throw Rn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},cn=function(j,Z,pe){try{j.removeAttributeNode(Z)}catch{try{j.removeAttribute(pe)}catch{}}},Zt=function(j){Xt(j);const Z=_(j);if(Z){const Ee=[];$n(Z,Re=>{ca(Ee,Re)}),$n(Ee,Re=>{try{g(Re)}catch{}})}const pe=x(j);if(pe)for(let Ee=pe.length-1;Ee>=0;--Ee){const Re=pe[Ee],Fe=Re&&Re.name;typeof Fe=="string"&&cn(j,Re,Fe)}},Mt=function(j,Z,pe){if(!pe)try{pe=Z.getAttributeNode(j)}catch{pe=null}ca(t.removed,{attribute:pe||null,from:Z});try{pe?Z.removeAttributeNode(pe):Z.removeAttribute(j)}catch{try{Z.removeAttribute(j)}catch{}}if(j==="is")if(Ue||Se)try{ht(Z)}catch{}else try{Z.setAttribute(j,"")}catch{}},un=function(j){const Z=x(j);if(Z)for(let pe=Z.length-1;pe>=0;--pe){const Ee=Z[pe],Re=Ee&&Ee.name;typeof Re!="string"||z[tt(Re)]||cn(j,Ee,Re)}},Xt=function(j){const Z=[j];for(;Z.length>0;){const pe=Z.pop();N(pe)===Gt.element&&un(pe);const Re=_(pe);if(Re)for(let Fe=Re.length-1;Fe>=0;--Fe)Z.push(Re[Fe])}},dn=function(j,Z){return me?j==="patchsrc"?!0:j==="for"&&Z!=="label"&&Z!=="output":!1},Ae=function(j){if(!me)return;const Z=[j];for(;Z.length>0;){const pe=Z.pop(),Ee=N(pe);if(Ee===Gt.processingInstruction||Ee===Gt.comment&&Et(js,pe.data)){try{g(pe)}catch{}continue}if(Ee===Gt.element){const Fe=pe,st=tt(B(pe));try{Fe.hasAttribute&&Fe.hasAttribute("patchsrc")&&Fe.removeAttribute("patchsrc"),Fe.hasAttribute&&Fe.hasAttribute("for")&&dn("for",st)&&Fe.removeAttribute("for")}catch{}}const Re=_(pe);if(Re)for(let Fe=Re.length-1;Fe>=0;--Fe)Z.push(Re[Fe])}},Pe=function(j){let Z=null,pe=null;if(He)j="<remove></remove>"+j;else{const Fe=_s(j,/^[\r\n\t ]+/);pe=Fe&&Fe[0]}xt==="application/xhtml+xml"&&et===rt&&(j='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+j+"</body></html>");const Ee=A?S(j):j;if(et===rt)try{Z=new p().parseFromString(Ee,xt)}catch{}if(!Z||!Z.documentElement){Z=U.createDocument(et,"template",null);try{Z.documentElement.innerHTML=yt?D:Ee}catch{}}const Re=Z.body||Z.documentElement;return j&&pe&&Re.insertBefore(a.createTextNode(pe),Re.childNodes[0]||null),et===rt?J.call(Z,ne?"html":"body")[0]:ne?Z.documentElement:Re},ae=function(j){const Z=w?w(j):j.ownerDocument;return q.call(Z||j,j,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},he=function(j){return j=da(j,F," "),j=da(j,R," "),j=da(j,T," "),j},V=function(j){var Z;j.normalize();const pe=w?w(j):j.ownerDocument,Ee=q.call(pe||j,j,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Re=Ee.nextNode();for(;Re;)Re.data=he(Re.data),Re=Ee.nextNode();const Fe=(Z=j.querySelectorAll)===null||Z===void 0?void 0:Z.call(j,"template");Fe&&$n(Fe,st=>{ue(st.content)&&V(st.content)})},ie=function(j){const Z=k?k(j):null;return typeof Z!="string"||tt(Z)!=="form"?!1:typeof j.nodeName!="string"||typeof j.textContent!="string"||typeof j.removeChild!="function"||j.attributes!==x(j)||typeof j.removeAttribute!="function"||typeof j.setAttribute!="function"||typeof j.namespaceURI!="string"||typeof j.insertBefore!="function"||typeof j.hasChildNodes!="function"||j.nodeType!==b(j)||j.childNodes!==_(j)},ue=function(j){if(!b||typeof j!="object"||j===null)return!1;try{return b(j)===Gt.documentFragment}catch{return!1}},xe=function(j){if(!b||typeof j!="object"||j===null)return!1;try{return typeof b(j)=="number"}catch{return!1}};function _e(be,j,Z){be.length!==0&&$n(be,pe=>{pe.call(t,j,Z,Kt)})}const Me=function(j,Z){return!!(me&&j.hasChildNodes()&&!xe(j.firstElementChild)&&Et(Ts,j.textContent)&&Et(Ts,j.innerHTML)||me&&j.namespaceURI===rt&&$0[Z]&&(xe(j.firstElementChild)||typeof j.textContent=="string"&&Et(R0[Z],j.textContent))||j.nodeType===Gt.processingInstruction||me&&j.nodeType===Gt.comment&&Et(js,j.data))},nt=function(j,Z){if(j instanceof RegExp)return Et(j,Z);if(j instanceof Function){for(var pe=arguments.length,Ee=new Array(pe>2?pe-2:0),Re=2;Re<pe;Re++)Ee[Re-2]=arguments[Re];return!!j(Z,...Ee)}return!1},ft=function(j,Z,pe){if(!fe[Z]&&mn(Z)&&nt(ce.tagNameCheck,Z))return!1;if(at&&!Xe[Z]){const Ee=h(j),Re=_(j);if(Re&&Ee){const Fe=Re.length;for(let st=Fe-1;st>=0;--st){const ut=j===pe?C(Re[st],!0):Re[st];Ee.insertBefore(ut,y(j))}}}return ht(j),!0},ct=function(j,Z,pe,Ee){return j.length===0?Z:Z===pe||Z===Ee?Ut(Z):Z},wt=function(j,Z){return j===Z||h(j)!==null?!1:(ot&&Xt(j),!0)},Wt=function(j,Z){if(_e(E.beforeSanitizeElements,j,null),wt(j,Z))return!0;if(ie(j))return ht(j),!0;const pe=tt(B(j));if(ke=ct(E.uponSanitizeElement,ke,oe,ve),_e(E.uponSanitizeElement,j,{tagName:pe,allowedTags:ke}),wt(j,Z))return!0;if(Me(j,pe))return ht(j),!0;if(fe[pe]||!(Ne.tagCheck instanceof Function&&Ne.tagCheck(pe))&&!ke[pe]){const Re=ft(j,pe,Z);return Re===!1&&_e(E.afterSanitizeElements,j,null),Re}if(N(j)===Gt.element&&!Yt(j)||(pe==="noscript"||pe==="noembed"||pe==="noframes")&&Et(M0,j.innerHTML))return ht(j),!0;if(te&&j.nodeType===Gt.text){const Re=he(j.textContent);j.textContent!==Re&&(ca(t.removed,{element:j.cloneNode()}),j.textContent=Re)}return _e(E.afterSanitizeElements,j,null),!1},Pt=function(j,Z,pe){if(ye[Z]||dn(Z,j)||$e&&(Z==="id"||Z==="name")&&(pe in a||pe in _n))return!1;const Ee=z[Z]||Ne.attributeCheck instanceof Function&&Ne.attributeCheck(Z,j);return Be&&Et(M,Z)||we&&Et(G,Z)?!0:Ee?dt[Z]||Et(Te,da(pe,Q,""))||(Z==="src"||Z==="xlink:href"||Z==="href")&&j!=="script"&&ws(pe,"data:")===0&&Bt[j]||je&&!Et(Y,da(pe,Q,""))?!0:!pe:mn(j)&&nt(ce.tagNameCheck,j)&&nt(ce.attributeNameCheck,Z,j)||Z==="is"&&ce.allowCustomizedBuiltInElements&&nt(ce.tagNameCheck,pe)},pn=Je({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),mn=function(j){return!pn[ua(j)]&&Et(de,j)},dr=function(j,Z,pe,Ee){if(A&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!pe)switch(m.getAttributeType(j,Z)){case"TrustedHTML":return S(Ee);case"TrustedScriptURL":return L(Ee)}return Ee},Cu=function(j,Z,pe,Ee){try{pe?j.setAttributeNS(pe,Z,Ee):j.setAttribute(Z,Ee),ie(j)?ht(j):xs(t.removed)}catch{Mt(Z,j)}},Go=function(j){_e(E.beforeSanitizeAttributes,j,null);const Z=j.attributes;if(!Z||ie(j))return;z=ct(E.uponSanitizeAttribute,z,re,Ye);const pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let Ee=Z.length;const Re=tt(j.nodeName);for(;Ee--;){const Fe=Z[Ee],st=Fe.name,ut=Fe.namespaceURI,It=Fe.value,Ft=tt(st),mr=It;let Lt=st==="value"?mr:f0(mr);if(pe.attrName=Ft,pe.attrValue=Lt,pe.keepAttr=!0,pe.forceKeepAttr=void 0,_e(E.uponSanitizeAttribute,j,pe),Lt=pe.attrValue,Ie&&(Ft==="id"||Ft==="name")&&ws(Lt,Ve)!==0&&(Mt(st,j,Fe),Lt=Ve+Lt),me&&Et(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Lt)){Mt(st,j,Fe);continue}if(Ft==="attributename"&&_s(Lt,"href")){Mt(st,j,Fe);continue}if(!pe.forceKeepAttr){if(!pe.keepAttr){Mt(st,j,Fe);continue}if(!se&&Et(L0,Lt)){Mt(st,j,Fe);continue}if(te&&(Lt=he(Lt)),!Pt(Re,Ft,Lt)){Mt(st,j,Fe);continue}Lt=dr(Re,Ft,ut,Lt),Lt!==mr&&Cu(j,st,ut,Lt)}}_e(E.afterSanitizeAttributes,j,null)},La=function(j){let Z=null;const pe=ae(j);for(_e(E.beforeSanitizeShadowDOM,j,null);Z=pe.nextNode();)if(_e(E.uponSanitizeShadowNode,Z,null),Wt(Z,j),Go(Z),ue(Z.content)&&La(Z.content),N(Z)===Gt.element){const Ee=v(Z);ue(Ee)&&(pr(Ee),La(Ee))}_e(E.afterSanitizeShadowDOM,j,null)},pr=function(j){const Z=[{node:j,shadow:null}];for(;Z.length>0;){const pe=Z.pop();if(pe.shadow){La(pe.shadow);continue}const Ee=pe.node,Fe=N(Ee)===Gt.element,st=_(Ee);if(st)for(let ut=st.length-1;ut>=0;--ut)Z.push({node:st[ut],shadow:null});if(Fe){const ut=k?k(Ee):null;if(typeof ut=="string"&&tt(ut)==="template"){const It=Ee.content;ue(It)&&Z.push({node:It,shadow:null})}}if(Fe){const ut=v(Ee);ue(ut)&&Z.push({node:null,shadow:ut},{node:ut,shadow:null})}}};return t.sanitize=function(be){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=null,pe=null,Ee=null,Re=null;if(yt=!be,yt&&(be="<!-->"),typeof be!="string"&&!xe(be)&&(be=v0(be),typeof be!="string"))throw Rn("dirty is not a string, aborting");if(!t.isSupported)return be;Ce?(ke=ve,z=Ye):zt(j),(E.uponSanitizeElement.length>0||E.uponSanitizeAttribute.length>0)&&(ke=Ut(ke)),E.uponSanitizeAttribute.length>0&&(z=Ut(z)),t.removed=[];const Fe=ot&&typeof be!="string"&&xe(be);if(Fe){Ae(be);const It=B(be);if(typeof It=="string"){const Ft=tt(It);if(!ke[Ft]||fe[Ft])throw Zt(be),Rn("root node is forbidden and cannot be sanitized in-place")}if(ie(be))throw Zt(be),Rn("root node is clobbered and cannot be sanitized in-place");try{pr(be)}catch(Ft){throw Zt(be),Ft}}else if(xe(be))Z=Pe("<!---->"),pe=Z.ownerDocument.importNode(be,!0),pe.nodeType===Gt.element&&pe.nodeName==="BODY"||pe.nodeName==="HTML"?Z=pe:Z.appendChild(pe),pr(pe);else{if(!Ue&&!te&&!ne&&be.indexOf("<")===-1)return A&&Ge?S(be):be;if(Z=Pe(be),!Z)return Ue?null:Ge?D:""}Z&&He&&ht(Z.firstChild);const st=Fe?be:Z;try{const It=ae(st);for(;Ee=It.nextNode();)Wt(Ee,st),Go(Ee),ue(Ee.content)&&La(Ee.content)}catch(It){throw Fe&&(Zt(be),$n(t.removed,Ft=>{Ft.element&&Xt(Ft.element)})),It}if(Fe)return $n(t.removed,It=>{It.element&&Xt(It.element)}),te&&V(be),be;if(Ue){if(te&&V(Z),Se)for(Re=W.call(Z.ownerDocument);Z.firstChild;)Re.appendChild(Z.firstChild);else Re=Z;return(z.shadowroot||z.shadowrootmode)&&(Re=I.call(r,Re,!0)),Re}let ut=ne?Z.outerHTML:Z.innerHTML;return ne&&ke["!doctype"]&&Z.ownerDocument&&Z.ownerDocument.doctype&&Z.ownerDocument.doctype.name&&Et(T0,Z.ownerDocument.doctype.name)&&(ut="<!DOCTYPE "+Z.ownerDocument.doctype.name+`>
828
+ `+ut),te&&(ut=he(ut)),A&&Ge?S(ut):ut},t.setConfig=function(){let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zt(be),Ce=!0,ve=ke,Ye=z},t.clearConfig=function(){Kt=null,Ce=!1,ve=null,Ye=null,A=$,D=""},t.isValidAttribute=function(be,j,Z){Kt||zt({});const pe=tt(be),Ee=tt(j);return Pt(pe,Ee,Z)},t.addHook=function(be,j){typeof j=="function"&&Ot(E,be)&&ca(E[be],j)},t.removeHook=function(be,j){if(Ot(E,be)){if(j!==void 0){const Z=m0(E[be],j);return Z===-1?void 0:h0(E[be],Z,1)[0]}return xs(E[be])}},t.removeHooks=function(be){Ot(E,be)&&(E[be]=[])},t.removeAllHooks=function(){E=Ls()},t}var kr=$s();const F0=/^(?:[a-z]+:)?\/\//i,O0="__ihab_core_asset_base_url__";function H0(){return globalThis[O0]??""}function Ar(e){const t=String(e||"").trim();if(!t)return"";if(F0.test(t)||t.startsWith("data:")||t.startsWith("blob:"))return t;const a=t.startsWith("/")?t:`/${t}`,r=H0();return r?`${r}${a}`:a}const Rs="__ihab_core_storage_resolvers__";function ma(){return globalThis[Rs]??null}function V0(e){globalThis[Rs]=e}let Ps=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 z0(e){V0(e)}function Is(e,t){if(!e)return null;const a=ma();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function Fs(e){if(!e)return null;const t=ma();if(!t)throw new Ps("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Os(e){const t=ma();if(!t)throw new Ps("downloadSound");return t.download(e)}function W0(){return ma()?.noiseBaseUrl??"/sounds/noise"}function Hs(){const e=Number(ma()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function q0(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 Vs="__ihab_core_tts_config__";function Br(){return globalThis[Vs]?.urlResolver??null}function U0(){return globalThis[Vs]?.fallbackUrlResolver??null}const G0="__ihab_core_pronunciation_resolver__";function K0(){return globalThis[G0]??null}let Bn=null;const ha=new WeakMap,Nr=new WeakMap,Dr=new WeakMap;let zs=!1;const Ws=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function Y0(){if(zs||typeof document>"u")return;zs=!0;const e=()=>{try{Bn&&Bn.state!=="running"&&Bn.resume()}catch{}};for(const t of["pointerdown","touchend","keydown"])document.addEventListener(t,e,{capture:!0,passive:!0})}function qs(){if(Bn)return Bn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(Bn=new e,Y0(),Bn):null}catch{return null}}function Sr(){try{Bn?.resume()}catch{}}function Er(e,t){const a=ha.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=Ws(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 ha.set(t,l),l}catch{return null}}function Ra(e){if(!e)return Promise.resolve(null);const t=ha.get(e);if(t)return Promise.resolve(t.analyser);const a=qs();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Er(a,e)?.analyser??null);const r=Dr.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(()=>{Dr.delete(e)});return Dr.set(e,s),s}function Z0(e){if(!e)return null;const t=ha.get(e);if(t)return t.analyser;const a=qs();return a?a.state==="running"?Er(a,e)?.analyser??null:(Ra(e),null):null}function Nn(e,t){const a=Ws(t);Nr.set(e,a);const r=ha.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 Pa(e){return Nr.get(e)??e.volume}function X0(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 J0="__ihab_core_image_config__";function Gn(){return globalThis[J0]??null}const Us="word_image_existence_map_v1";let Pn=null;const Ia=new Map;function Q0(){if(Pn)return Pn;try{const e=typeof localStorage<"u"?localStorage.getItem(Us):null,t=e?JSON.parse(e):null;Pn=t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{Pn={}}return Pn}let Tr=null;function e2(){Tr||(Tr=setTimeout(()=>{Tr=null;try{typeof localStorage<"u"&&Pn&&localStorage.setItem(Us,JSON.stringify(Pn))}catch{}},200))}function t2(e,t){return`${e}_${t??1}`}async function Gs(e,t){const a=Q0(),r=t2(e,t);if(r in a)return a[r];if(Ia.has(r))return Ia.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:q0(8e3)}).then(c=>c.status>=500?null:c.ok,()=>null).then(c=>(Ia.delete(r),c===null?!1:(a[r]=c,e2(),c)));return Ia.set(r,l),l}const Ks=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],Ys=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],n2=["","\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 fa(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 a2(e){const t=fa(e[0]||"");return t?Ks[t.cho]:""}function r2(e){if(!e)return()=>!0;e=e.normalize("NFC");const t=[...e],a=l=>Ks.includes(l),r=l=>Ys.includes(l),s=t.map(l=>a(l)?"cho":r(l)?"jung":fa(l)?"syl":"other"),i=t.map(l=>fa(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 u=0;u+t.length<=c.length;u++){let d=!0;for(let p=0;p<t.length;p++){const m=c[u+p],f=s[p];if(f==="cho"){if(a2(m)!==t[p]){d=!1;break}}else if(f==="jung"){const C=fa(m);if(!C||Ys[C.jung]!==t[p]){d=!1;break}}else{const C=i[p];if(C&&C.jong===0){const g=fa(m);if(!g||g.cho!==C.cho||g.jung!==C.jung){d=!1;break}}else if(m!==t[p]){d=!1;break}}}if(d)return!0}return!1}}const o2={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(o2).map(([e,t])=>[t.join(""),n2[Number(e)]]));const s2="word_pair_index_v2",i2="word_pair_index_sig_v2";let Fa=null;function l2(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(s2),t=localStorage.getItem(i2);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function c2(){if(Fa)return Fa;const e=l2();return e?(Fa=e.index,e.sig,Fa):null}const u2={\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"}},jr=/[ㄱ-ㅎ]/,d2=/[ㅏ-ㅣ]/;function Zs(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||jr.test(a)||d2.test(a))return a}return null}function p2(e){const t=Zs(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":jr.test(t)?"\uC774":"\uAC00"}function m2(e){return`${e}${p2(e)}`}function h2(e){const t=Zs(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":jr.test(t)?"\uC744":"\uB97C"}function f2(e){return`${e}${h2(e)}`}function C2(e,t,a){const r=e.slice(),[s]=r.splice(t,1);return r.splice(a,0,s),r}function Ca(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 g2=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof kt?.t=="function"?kt.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function Xs(e,t){if(t===void 0&&(t=g2()),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 b2="__ihab_core_word_pool__";function Js(){return globalThis[b2]??null}const Qs=globalThis;function ei(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function y2(e){ei("time",()=>Qs.__ihabTrainingTimeLogger?.(e))}function v2(e){ei("completion",()=>Qs.__ihabTrainingCompletionLogger?.(e))}function Ht(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function x2(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 _2(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Ht(r.contextCode)??Ht(r.itemId)??Ht(r.itemCode)??Ht(r.id),question:Ht(r.question)??Ht(r.q)??Ht(r.sentence)??Ht(r.text)??Ht(r.prompt)??Ht(r.word)??Ht(r.targetSyllable),answer:Ht(r.answer),selected:Ht(r.selectedText)??Ht(r.selected),correct:x2(r)}}):[]}const Mr=globalThis;async function w2(){try{return await Mr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function ti(e){const t=a=>{};try{const a=Mr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function Oa(e){try{Mr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function k2(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 A2=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function ni(e){let t;if(e instanceof Date)t=e;else if(typeof e=="string"){const a=e.trim(),r=A2.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 ga(){return $r(new Date)}function Lr(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:ga()}function Kn(){return N2(ga())}const B2=540*60*1e3;function ai(e,t,a){return new Date(Date.UTC(e,t,a)-B2)}function N2(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=ni(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function ri(e,t){if(!e)return"";const a=ni(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),u=Math.floor(c/7),d=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}):u<5?t("store.time.weeksAgo",{n:u}):c<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:p})}function oi(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,u,d]=l.split("-"),p=r?u:String(Number(u)),m=r?d:String(Number(d));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 si(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 D2=[{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"}]}],S2=[{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 ii(){return D2}function E2(){return S2}const T2=[],j2=[],M2=[],L2=[];function $2(){return{LISTEN_IN_NOISE:T2,SHORT_STORY:j2,LONG_STORY:M2,ORDERING_SENTENCE:L2}}const R2=[{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."}],li={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function P2(e){return R2.map(t=>{const a=li[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let Ha=null,ci=null,ui=null;function I2(){const e=Js();if(e&&e.entries.length>0){const t=c2();if(Ha&&ci===e&&ui===t)return Ha;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 Ha=r,ci=e,ui=t,Ha}return[]}new Proxy([],{get(e,t){const a=I2(),r=a[t];return typeof r=="function"?r.bind(a):r}});const F2="0.166.0";function O2(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 H2(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&O2(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 V2(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),[i,l]=o.useState(null),[c,u]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),l(null);return}const d=e.split("/").pop();let p=e;d&&(e.startsWith("/")?p=Ar(e):/^(Logo|Symbol)/i.test(d)?p=Ar(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),s(null),l(null),a(p)},[e]),o.useEffect(()=>{if(!t)return;let d=!1;async function p(){try{let m=await fetch(t);m.ok||(m=await fetch(t));const f=m.headers.get("content-type")||"";if(d)return;if(f.includes("svg")){s("mask");return}if(f.startsWith("image/")){s("img");return}const C=await fetch(t);if(!C.ok)throw new Error("not ok");const g=await C.text();if(d)return;if(/^\s*<svg[\s>]/i.test(g)){const b=H2(g);if(!b){s("none");return}l(b),s("inline");return}s("none")}catch{d||s("none")}}return p(),()=>{d=!0}},[t]),o.useEffect(()=>{let d=!1,p=null;return r==="mask"&&t&&fetch(t).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{d||(p=URL.createObjectURL(m),u(p))}).catch(()=>{d||s("img")}),()=>{d=!0,p&&URL.revokeObjectURL(p),u(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:c}}function qe(e){const{icon:t,label:a,className:r,imgClassName:s,maskClassName:i,svgClassName:l,wrapperStyle:c,size:u}=e||{},d=r??"iconRenderer-icon",p=s??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",f=l??"iconRenderer-icon-svg",C=typeof t=="string"?t:null,g=r0(C),{iconToUse:b,mode:_,svgText:h,blobUrl:v}=V2(C),x=(B,A={})=>n.jsx("span",{className:d,style:c,...A,children:B}),y=typeof u=="number"?{width:u,height:u,objectFit:"contain"}:null,k=(B,A={})=>n.jsx("img",{src:B,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:f,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(g)try{return x(o.createElement(g,{className:f,size:typeof u=="number"?u:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(_==="mask"){const B={"--icon-url":v?`url(${v})`:`url(${b})`,...typeof u=="number"?{"--icon-size":`${u}px`}:null};return x(n.jsx("span",{className:m,style:B}),{"aria-hidden":"true"})}return _==="img"?x(k(b,{onError:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):_==="inline"?x(n.jsx("span",{className:f,dangerouslySetInnerHTML:h?{__html:h}: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:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}});const w=typeof u=="number"?u:20,N=`<svg width="${w}" height="${w}" 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:f,dangerouslySetInnerHTML:{__html:N}}),{"aria-hidden":"true"})}function di(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 z2({icon:e,emoji:t,title:a,message:r,hint:s,action:i,compact:l,className:c}){const{pending:u,press:d}=di(i?.onClick);return n.jsxs("div",{className:De("empty-state",l&&"empty-state--compact",c),children:[t&&n.jsx("span",{className:"empty-state__emoji",children:t}),e&&n.jsx(qe,{icon:e,className:"empty-state__icon"}),a&&n.jsx("p",{className:"empty-state__title body-2",children:a}),r&&n.jsx("p",{className:"empty-state__message body-3",children:r}),s&&n.jsx("p",{className:"empty-state__hint caption-1",children:s}),i&&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:u,"aria-busy":u||void 0,children:[i.icon&&n.jsx(qe,{icon:i.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:i.label})]})]})}function W2({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:i}){const{t:l}=ge.useTranslation(),{pending:c,press:u}=di(r);return n.jsxs("div",{className:De("empty-state","error-state",i),role:"alert",children:[n.jsx(qe,{icon:a,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:"empty-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:u,disabled:c,"aria-busy":c||void 0,children:[n.jsx(qe,{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 q2({icon:e,title:t,description:a,cta:r,tone:s="main",disabled:i=!1,onClick:l,className:c=""}){const u=o.useId(),d=`${u}-title`,p=`${u}-desc`,m=`${u}-cta`,f=()=>{i||l?.()};return n.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":d,"aria-describedby":`${p} ${m}`,onClick:f,onKeyDown:C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),f())},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(qe,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:d,className:"action-card__title",children:t}),n.jsx("p",{id: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(qe,{icon:"arrow-right",size:18})})]})]})})}function U2({as:e="div",className:t="",children:a,storage:r,...s}){r&&z0({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(fn)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){s.preventDefault();return}const l=i[0],c=i[i.length-1],u=document.activeElement,d=u===a;s.shiftKey&&(u===l||d)?(s.preventDefault(),c.focus()):!s.shiftKey&&u===c&&(s.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const fn='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 pi(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(pi(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const s=Array.from(document.querySelectorAll(fn)).filter(u=>!(e&&e.contains(u))&&pi(u));let i=null,l=null;for(const u of s)r.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_PRECEDING?i=u:l||(l=u);const c=i??l;return c?.focus(),c}function G2({title:e="",lines:t=[],notices:a=null,children:r,variant:s="default",dismissible:i=!1,className:l=""}){const{t:c}=ge.useTranslation(),[u,d]=o.useState(!1),p=o.useRef(null),m=o.useCallback(()=>{const b=p.current;b&&b.contains(document.activeElement)&&Va(b),d(!0)},[]);if(u)return null;const f=`notice-box notice-box--${s} body-2 ${l}`.trim(),C=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:f,role:"note",children:[a.map((b,_)=>n.jsxs("div",{className:"notice-box__inner",children:[b.title?n.jsx("span",{className:"notice-box__title body-3",children:b.title}):null,n.jsx("div",{className:"notice-box__body",children:b.lines&&b.lines.length?n.jsx("div",{children:b.lines.map((h,v)=>n.jsx("span",{className:"notice-box__line body-3",children:h},v))}):b.children??null})]},_)),C]});const g=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((b,_)=>n.jsx("li",{className:"notice-box__line",children:b},_))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:p,className:f,role:"note",children:[g,C]})}const Zn=[];let za=!1;function mi(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),!za&&typeof document<"u"&&(document.addEventListener("keydown",mi),za=!0),()=>{const t=Zn.lastIndexOf(e);t>=0&&Zn.splice(t,1),Zn.length===0&&za&&typeof document<"u"&&(document.removeEventListener("keydown",mi),za=!1)}}const hi=o.createContext(null);function K2(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const fi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function Y2(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 Ko.useSyncExternalStore(t,()=>fi(e),()=>!1)}function Z2(e){const[t,a]=o.useState(fi(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 X2=typeof Ko.useSyncExternalStore=="function"?Y2:Z2;function tn(e){const t=o.useContext(hi),a=X2(e);return t&&typeof t.mobile=="boolean"&&K2(e)?t.mobile:a}const J2="(prefers-reduced-motion: reduce)";function Hr(){return tn(J2)}function Cn(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:i,closeOnOutsideClick:l=!0,className:c="",role:u="dialog",ariaLabel:d="",children:p,backdrop:m=!1,isMobilePopup:f=!1,useBorder:C=!0,header:g}=e||{},b=o.useRef(null),[_,h]=o.useState({position:"fixed",left:0,top:-9999}),[v,x]=o.useState(!1),[y,k]=o.useState("bottom"),[w,N]=o.useState(!1),[B,A]=o.useState(!1),D=!t&&!a,$=o.useCallback((q=!1)=>{if(B&&f)return;const U=a?a.getBoundingClientRect():t;if(!U||!b.current)return;const W=b.current,{offsetWidth:J,offsetHeight:I}=W,T=window.innerWidth,O=window.innerHeight,R=T-U.right,S=U.left,L=U.top,K=O-U.bottom;let Z=0,Q=0,pe="top";if(L>=I+r)pe="top",Q=U.top-r-I,Z=U.left+U.width/2-J/2;else if(K>=I+r)pe="bottom",Q=U.bottom+r,Z=U.left+U.width/2-J/2;else if(R>=J+r)pe="right",Z=U.right+r,Q=U.top+U.height/2-I/2;else if(S>=J+r)pe="left",Z=U.left-r-J,Q=U.top+U.height/2-I/2;else{const z=Math.max(L,K,R,S);z===L?(pe="top",Q=U.top-r-I,Z=U.left+U.width/2-J/2):z===K?(pe="bottom",Q=U.bottom+r,Z=U.left+U.width/2-J/2):z===R?(pe="right",Z=U.right+r,Q=U.top+U.height/2-I/2):(pe="left",Z=U.left-r-J,Q=U.top+U.height/2-I/2)}const Te=Number.isFinite(Number(s))?Number(s):8;Z=Math.min(Math.max(Z,Te),T-J-Te),Q=Math.min(Math.max(Q,Te),O-I-Te);const ke=Math.round(Z),oe=Math.round(Q);q&&b.current?(b.current.style.left=`${ke}px`,b.current.style.top=`${oe}px`,b.current.dataset.placement=pe):(k(pe||y),h({position:"fixed",left:ke,top:oe}),N(!0))},[B,f,a,t,r,s,y]);o.useLayoutEffect(()=>{if(D)return;if(B&&f){h({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),N(!0);return}$();const q=requestAnimationFrame(()=>$());return()=>cancelAnimationFrame(q)},[t,a,r,p,s,D,B,f,$]),o.useEffect(()=>{if(D||B&&f||!b.current||typeof ResizeObserver>"u")return;const q=new ResizeObserver(()=>{t&&$()});return q.observe(b.current),()=>q.disconnect()},[t,p,s,D,B,f,$]),o.useEffect(()=>{if(D||B&&f)return;const q=()=>$(!0),U=W=>{if(!a&&i){const J=W.target;if(J&&b.current&&b.current.contains(J))return;try{if(J&&J.closest&&J.closest("[data-tooltip-ignore]"))return}catch{}M.current(!0);return}q()};return window.addEventListener("resize",q),document.addEventListener("scroll",U,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",q),document.removeEventListener("scroll",U,{capture:!0})}},[t,a,i,r,p,s,D,B,f,$]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const q=window.matchMedia("(max-width: 768px)"),U=()=>A(!!q.matches);U();try{q.addEventListener?q.addEventListener("change",U):q.addListener(U)}catch{try{q.addListener(U)}catch{}}return()=>{try{q.removeEventListener?q.removeEventListener("change",U):q.removeListener(U)}catch{}}},[]);const F=o.useRef(!1),P=o.useRef(null),G=Hr(),E=o.useCallback((q=!1)=>{if(i&&!(v||F.current)){if(F.current=!0,q){x(!0);try{i&&i()}catch{F.current=!1,x(!1)}return}x(!0),P.current=setTimeout(()=>{P.current=null;try{i&&i()}catch{F.current=!1,x(!1)}},G?0:200)}},[v,i,x,G]);o.useEffect(()=>()=>{P.current&&clearTimeout(P.current)},[]),o.useEffect(()=>{if(D)return;const q=J=>{const I=b.current;if(!I)return;const T=J.target;if(T&&!I.contains(T)){try{if(T.closest&&T.closest("[data-tooltip-ignore]"))return}catch{}l&&E(!0)}},U=J=>{const I=b.current;if(!I)return;const T=J.target;if(T&&!I.contains(T)){try{if(T.closest&&T.closest("[data-tooltip-ignore]"))return}catch{}l&&E(!0)}},W=J=>{if(J.key==="Tab"){const I=b.current;if(!I)return;const T=I.querySelectorAll(fn);if(!T||T.length===0)return;const O=T[0],R=T[T.length-1],S=document.activeElement;J.shiftKey?S===O&&(J.preventDefault(),R.focus()):S===R&&(J.preventDefault(),O.focus())}};return document.addEventListener("pointerdown",q,!0),document.addEventListener("click",U,!0),document.addEventListener("keydown",W),()=>{document.removeEventListener("pointerdown",q,!0),document.removeEventListener("click",U,!0),document.removeEventListener("keydown",W)}},[i,l,E,D]);const M=o.useRef(E);o.useEffect(()=>{M.current=E});const H=!!i;o.useEffect(()=>{if(!(D||!H))return In(()=>M.current())},[D,H]),o.useEffect(()=>{const q=()=>{E(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",q),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",q)}},[E]);const ee=n.jsxs("div",{ref:b,className:`tooltip-content ${D?"tooltip-content--inline":""} ${C?"tooltip-content--bordered":""} ${v?"is-closing":""} ${c} ${B&&f?"is-mobile":""}`,role:u,"aria-label":d||void 0,style:D?{}:{..._,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":y,"data-left":D?"":_.left,"data-top":D?"":_.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[g!=null&&n.jsx("div",{className:"tooltip-content__header h5",children:g}),p]});if(D||typeof document>"u")return ee;if(m||B&&f){const q=n.jsxs("div",{className:"tooltip-portal",children:[n.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&E(!0)}}),ee]});return qt.createPortal(q,document.body)}return qt.createPortal(ee,document.body)}function Dn(e){const{anchorRect:t,text:a,offset:r=8,onClose:s,className:i="",ariaLabel:l}=e||{};return a?n.jsx(Cn,{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:u=12,closeOnOutsideClick:d=!0}=e||{},p=(Array.isArray(s)?s:s?[s]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:n.jsx(Cn,{anchorRect:a,offset:u,onClose:c,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:n.jsxs("div",{className:"tooltip-description__box",children:[r&&n.jsx("span",{className:"tooltip-description__title body-2",children:r}),n.jsx("ol",{className:"tooltip-description__items",children:p.map((m,f)=>n.jsxs("li",{className:`tooltip-description__item body-3${f===i?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&n.jsxs("span",{className:"tooltip-description__index button-1",children:[f+1,"."]}),m.color&&n.jsx("span",{className:"tooltip-description__dot",style:{background:m.color},"aria-hidden":"true"}),n.jsx("span",{children:m.text})]},f))})]})})}function ba(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let Vr=0,Ci=!1;function gi(){Ci||typeof document>"u"||(Ci=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(Vr=Date.now())},!0),document.addEventListener("touchstart",()=>{Vr=Date.now()},{capture:!0,passive:!0}))}gi();function Xn(e){return!!e&&e.pointerType==="touch"}function Jn(e=1e3){return gi(),Date.now()-Vr<e}function zr(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const i=ba(e),l=ba(t),c=o.useRef(null),u=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const p=m=>{const f=m,C=m.target,g=a.current,b=!!(C&&g&&g.contains(C));if(f.pointerType!=="touch"){b&&(c.current=null);return}if(b){c.current=i.current;return}c.current=null,i.current&&!(C&&C.closest?.(".tooltip-content"))&&l.current(!1,g)};return document.addEventListener("pointerdown",p,!0),()=>document.removeEventListener("pointerdown",p,!0)},[r,a,i,l]);const d=o.useCallback(p=>{const m=c.current;return m===null?!1:(c.current=null,u.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 f=null;const C=_=>{const h=_.changedTouches?.[0];if(!h)return!1;const v=p.getBoundingClientRect();return h.clientX>=v.left&&h.clientX<=v.right&&h.clientY>=v.top&&h.clientY<=v.bottom},g=_=>{f=C(_)?i.current:null},b=_=>{const h=f;f=null,!(h===null||Date.now()-u.current<700||!C(_))&&(c.current=null,u.current=Date.now(),l.current(!h,p))};return m.addEventListener("touchstart",g,{passive:!0}),m.addEventListener("touchend",b),()=>{m.removeEventListener("touchstart",g),m.removeEventListener("touchend",b)}},[r,s,a,i,l]),{touchPress:d}}function Q2(e,t){const{size:a=48,type:r,htmlType:s,href:i,target:l,rel:c,icon:u,rightIcon:d,label:p,count:m,subLabel:f,children:C,ariaLabel:g,variant:b="default",align:_="center",selected:h,toggleable:v=!1,ariaExpanded:x,ariaControls:y,disabled:k=!1,useLabel:w=!0,useBorder:N=!0,useBG:B=!0,useDisabledCovered:A=!1,useDisabledInvisible:D=!1,width:$,minWidth:F,onClick:P,onDisabledClick:G,showTooltipInfo:E=!1,tooltipInfoText:M=null,tooltipDescription:H=null,tooltipOnly:ee=!1,iconSize:q="medium",iconColor:U,shape:W="rounded",color:J,className:I,...T}=e,O=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),R=O.match(/^\d+$/)?`button${O}`:`button-${O}`,S=Number(a),L=!isNaN(S)&&S<40?"button-2":"button-1",K=p??C,Z=k||!!T.disabled,Q=Z?A?"disabled-covered":D?"disabled-invisibled":"disabled":b,pe=Q?`button--variant-${Q}`:"",Te=_?`button--align-${_}`:"",ke=W?`button--shape-${W}`:"",oe=typeof U=="string"&&U.startsWith("--")?`var(${U})`:U,z={...$?{width:typeof $=="number"?`${$}px`:$}:{},...F?{minWidth:typeof F=="number"?`${F}px`:F}:{},...N?{}:{"--button-border":Z?"0":"1px solid transparent"},...oe?{"--button-icon-color":oe}:{},...J?{"--color-main":J}:{}},re=w===!1?"":K,ce=Array.isArray(re)?re.length>0:!!re,fe=!!d,ye=r??(ce||u||fe?"bar":"dot"),Ne=`${R}--${ye}`,we=o.useRef(null),Be=o.useRef(t);Be.current=t;const je=o.useCallback(Le=>{we.current=Le;const Ke=Be.current;typeof Ke=="function"?Ke(Le):Ke&&(Ke.current=Le)},[]),se=o.useRef(Z),[te,me]=o.useState(!!h),[ne,Ce]=o.useState(!1),[ve,Ye]=o.useState(null),He=o.useCallback(()=>Ce(!1),[]),[Ue,Se]=o.useState(!1),Ge=o.useId();o.useEffect(()=>{typeof h=="boolean"&&me(h)},[h]),o.useEffect(()=>{if(se.current&&!Z&&we.current){const Le=we.current;let Ke=!1;try{Ke=Le.matches(":focus:not(:focus-visible)")}catch{Ke=!1}Ke&&Le.blur(),Le.style.pointerEvents="none";const St=requestAnimationFrame(()=>{requestAnimationFrame(()=>{we.current&&(we.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(St)}se.current=Z},[Z]);const $e=typeof h=="boolean"?!!h:te,Ie=typeof x=="boolean"?void 0:v||typeof h=="boolean"?$e?"true":"false":T["aria-pressed"],Ve=De("button",R,Ne,pe,Te,ke,$e?"is-selected":null,B?null:"button--no-bg",ee?"button--tooltip-only":null,I),at=`button__icon button__icon--${q}`,ot=Array.isArray(f)?f:f!==void 0?[f]:[],We=()=>{if(Array.isArray(re))return re.map((Ke,St)=>{const xt=ot[St];return n.jsxs("span",{className:`button__label-text${xt!==void 0?" button__label-text--has-sub":""}`,children:[Ke,xt!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:xt})]},St)});const Le=f!==void 0;return n.jsxs("span",{className:`button__label-text${Le?" button__label-text--has-sub":""}`,children:[re,m!=null&&n.jsx("span",{className:"button__count",children:m}),Le&&n.jsx("span",{className:"button__sub-label-text caption-1",children:f})]})},Xe=Le=>{typeof h!="boolean"&&!v&&me(!1),Le.currentTarget.blur()},gt=Le=>{Z||(typeof T.onMouseLeave=="function"&&T.onMouseLeave(Le),Xe(Le))},Bt=Le=>{if(ee&&Qe&&Ze.touchPress(Le.currentTarget),Z){Qe&&Ze.touchPress(Le.currentTarget),Le.preventDefault(),G?.(Le);return}typeof h!="boolean"&&v&&me(Ke=>!Ke),P?.(Le)},Tt=o.useCallback(()=>{(E||H)&&(Ce(!0),Ye(we.current?.getBoundingClientRect()??null))},[E,H]),dt=o.useCallback(()=>{(E||H)&&(Ce(!1),Ye(null))},[E,H]),Qe=!!(E||H),Ze=zr(ne,Le=>{Le?Tt():dt()},we,{enabled:Qe&&(Z||ee),fallbackOnParent:Qe&&Z}),Oe={...T};delete Oe.disabled,delete Oe.className,delete Oe.faded,delete Oe.useFaded,delete Oe.loading,delete Oe.onMouseLeave,delete Oe.onPointerEnter,delete Oe.onPointerLeave,delete Oe.onPointerUp,delete Oe.onFocus,delete Oe.onBlur,Z&&(Object.keys(Oe).forEach(Le=>{/^on[A-Z]/.test(Le)&&typeof Oe[Le]=="function"&&delete Oe[Le]}),Oe["aria-disabled"]="true");const rt=(typeof E=="string"?E:null)??(typeof M=="string"?M:null)??(typeof g=="string"?g:null)??(typeof K=="string"?K:null)??void 0,et=typeof g=="string"?g:typeof K=="string"?K:rt,yt=H?[H.title,...H.items??[]].filter(Boolean).join(". "):E&&rt&&rt!==et?rt:"",ze=[typeof T["aria-describedby"]=="string"?T["aria-describedby"]:void 0,yt?Ge:null].filter(Boolean).join(" ")||void 0,it=(Le,Ke)=>n.jsx(qe,{icon:Le,label:Ke??et,className:at,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),Nt=()=>ye==="dot"?n.jsxs(n.Fragment,{children:[it(u),ce&&n.jsx("span",{className:`button__label ${L}`,children:We()})]}):_==="center"&&u?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:it(u)}),ce&&n.jsx("span",{className:`button__label ${L}`,children:We()})]}),fe&&n.jsx("span",{className:"button__right",children:it(d)})]}):n.jsxs(n.Fragment,{children:[u&&n.jsx("span",{className:"button__left",children:it(u,g??K)}),ce&&n.jsx("span",{className:`button__label ${L}`,children:We()}),fe&&n.jsx("span",{className:"button__right",children:it(d)})]}),Dt=!!i&&!Z;return n.jsxs(n.Fragment,{children:[n.jsxs(Dt?"a":"button",{...Oe,ref:je,...Dt?{href:i,target:l,rel:c??(l==="_blank"?"noreferrer":void 0)}:{type:s,disabled:Z&&!G&&!Ue},className:Ve,"aria-pressed":Ie,"aria-expanded":typeof x=="boolean"?x:T["aria-expanded"],"aria-controls":y??T["aria-controls"],"aria-label":et,"aria-disabled":Z&&(Dt||G||Ue)?!0:void 0,"aria-describedby":ze,style:z,onClick:Bt,onMouseLeave:gt,onPointerEnter:Le=>{Xn(Le)||Tt(),!Z&&typeof T.onPointerEnter=="function"&&T.onPointerEnter(Le)},onPointerLeave:Le=>{Xn(Le)||dt(),!Z&&typeof T.onPointerLeave=="function"&&T.onPointerLeave(Le)},onPointerUp:Le=>{Z&&Qe&&Ze.touchPress(Le.currentTarget),!Z&&typeof T.onPointerUp=="function"&&T.onPointerUp(Le)},onFocus:Le=>{Se(!0),Jn()||Tt(),!Z&&typeof T.onFocus=="function"&&T.onFocus(Le)},onBlur:Le=>{Se(!1),Z||Xe(Le),dt(),!Z&&typeof T.onBlur=="function"&&T.onBlur(Le)},children:[Nt(),yt?n.jsx("span",{id:Ge,hidden:!0,"aria-label":yt}):null]}),ne&&H?n.jsx(Fn,{anchorRect:ve,title:H.title,items:H.items,onClose:He}):ne&&rt?n.jsx(Dn,{anchorRect:ve,text:rt,onClose:He}):null]})}const le=o.forwardRef(Q2);le.displayName="Button";var ef={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."},tf={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"},nf={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},af={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},rf={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},of={selected:"\uC120\uD0DD\uB428"},sf={placeholder:"\uC120\uD0DD"},lf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},cf={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"},uf={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",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"},df={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."}}},pf={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."}},mf={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"}}},hf={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},ff={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"}},Cf={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"},gf={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"}},bf={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"}}}},yf={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"}},vf={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},xf={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"}},_f={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."}},wf={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},kf={colName:"\uB2E8\uC5B4\uD45C \uC774\uB984",open:"\uC5F4\uAE30",countSuffix:"\uAC1C\uC758 \uB2E8\uC5B4\uD45C",tab:{cards:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",tables:"\uB2E8\uC5B4\uD45C"},cardsEmpty:"\uC544\uC9C1 \uB9CC\uB4E0 \uB2E8\uC5B4\uD45C \uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",addCard:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC \uCD94\uAC00",menu:{publishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30",unpublishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0\uC11C \uB0B4\uB9AC\uAE30"},newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},Af={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},Bf={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\uC744 \uB20C\uB7EC \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB9E4\uAE30\uC138\uC694.",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"}},Nf={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"}},Df={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},Sf={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"}},Ef={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"}},Tf={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},jf={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},Mf={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"}},Lf={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"}},$f={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."]},Rf={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"}},Pf={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
847
+ `),this.name="StorageNotConfiguredError"}};function z0(e){V0(e)}function Is(e,t){if(!e)return null;const a=ma();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function Fs(e){if(!e)return null;const t=ma();if(!t)throw new Ps("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Os(e){const t=ma();if(!t)throw new Ps("downloadSound");return t.download(e)}function W0(){return ma()?.noiseBaseUrl??"/sounds/noise"}function Hs(){const e=Number(ma()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function q0(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 Vs="__ihab_core_tts_config__";function Br(){return globalThis[Vs]?.urlResolver??null}function U0(){return globalThis[Vs]?.fallbackUrlResolver??null}const G0="__ihab_core_pronunciation_resolver__";function K0(){return globalThis[G0]??null}let Bn=null;const ha=new WeakMap,Nr=new WeakMap,Dr=new WeakMap;let zs=!1;const Ws=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function Y0(){if(zs||typeof document>"u")return;zs=!0;const e=()=>{try{Bn&&Bn.state!=="running"&&Bn.resume()}catch{}};for(const t of["pointerdown","touchend","keydown"])document.addEventListener(t,e,{capture:!0,passive:!0})}function qs(){if(Bn)return Bn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(Bn=new e,Y0(),Bn):null}catch{return null}}function Sr(){try{Bn?.resume()}catch{}}function Er(e,t){const a=ha.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=Ws(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 ha.set(t,l),l}catch{return null}}function Ra(e){if(!e)return Promise.resolve(null);const t=ha.get(e);if(t)return Promise.resolve(t.analyser);const a=qs();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Er(a,e)?.analyser??null);const r=Dr.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(()=>{Dr.delete(e)});return Dr.set(e,s),s}function Z0(e){if(!e)return null;const t=ha.get(e);if(t)return t.analyser;const a=qs();return a?a.state==="running"?Er(a,e)?.analyser??null:(Ra(e),null):null}function Nn(e,t){const a=Ws(t);Nr.set(e,a);const r=ha.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 Pa(e){return Nr.get(e)??e.volume}function X0(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 J0="__ihab_core_image_config__";function Gn(){return globalThis[J0]??null}const Us="word_image_existence_map_v1";let Pn=null;const Ia=new Map;function Q0(){if(Pn)return Pn;try{const e=typeof localStorage<"u"?localStorage.getItem(Us):null,t=e?JSON.parse(e):null;Pn=t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{Pn={}}return Pn}let Tr=null;function e2(){Tr||(Tr=setTimeout(()=>{Tr=null;try{typeof localStorage<"u"&&Pn&&localStorage.setItem(Us,JSON.stringify(Pn))}catch{}},200))}function t2(e,t){return`${e}_${t??1}`}async function Gs(e,t){const a=Q0(),r=t2(e,t);if(r in a)return a[r];if(Ia.has(r))return Ia.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:q0(8e3)}).then(c=>c.status>=500?null:c.ok,()=>null).then(c=>(Ia.delete(r),c===null?!1:(a[r]=c,e2(),c)));return Ia.set(r,l),l}const Ks=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],Ys=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],n2=["","\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 fa(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 a2(e){const t=fa(e[0]||"");return t?Ks[t.cho]:""}function r2(e){if(!e)return()=>!0;e=e.normalize("NFC");const t=[...e],a=l=>Ks.includes(l),r=l=>Ys.includes(l),s=t.map(l=>a(l)?"cho":r(l)?"jung":fa(l)?"syl":"other"),i=t.map(l=>fa(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 u=0;u+t.length<=c.length;u++){let d=!0;for(let p=0;p<t.length;p++){const m=c[u+p],f=s[p];if(f==="cho"){if(a2(m)!==t[p]){d=!1;break}}else if(f==="jung"){const C=fa(m);if(!C||Ys[C.jung]!==t[p]){d=!1;break}}else{const C=i[p];if(C&&C.jong===0){const g=fa(m);if(!g||g.cho!==C.cho||g.jung!==C.jung){d=!1;break}}else if(m!==t[p]){d=!1;break}}}if(d)return!0}return!1}}const o2={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(o2).map(([e,t])=>[t.join(""),n2[Number(e)]]));const s2="word_pair_index_v2",i2="word_pair_index_sig_v2";let Fa=null;function l2(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(s2),t=localStorage.getItem(i2);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function c2(){if(Fa)return Fa;const e=l2();return e?(Fa=e.index,e.sig,Fa):null}const u2={\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"}},jr=/[ㄱ-ㅎ]/,d2=/[ㅏ-ㅣ]/;function Zs(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||jr.test(a)||d2.test(a))return a}return null}function p2(e){const t=Zs(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":jr.test(t)?"\uC774":"\uAC00"}function m2(e){return`${e}${p2(e)}`}function h2(e){const t=Zs(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":jr.test(t)?"\uC744":"\uB97C"}function f2(e){return`${e}${h2(e)}`}function C2(e,t,a){const r=e.slice(),[s]=r.splice(t,1);return r.splice(a,0,s),r}function Ca(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 g2=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof kt?.t=="function"?kt.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function Xs(e,t){if(t===void 0&&(t=g2()),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 b2="__ihab_core_word_pool__";function Js(){return globalThis[b2]??null}const Qs=globalThis;function ei(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function y2(e){ei("time",()=>Qs.__ihabTrainingTimeLogger?.(e))}function v2(e){ei("completion",()=>Qs.__ihabTrainingCompletionLogger?.(e))}function Ht(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function x2(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 _2(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Ht(r.contextCode)??Ht(r.itemId)??Ht(r.itemCode)??Ht(r.id),question:Ht(r.question)??Ht(r.q)??Ht(r.sentence)??Ht(r.text)??Ht(r.prompt)??Ht(r.word)??Ht(r.targetSyllable),answer:Ht(r.answer),selected:Ht(r.selectedText)??Ht(r.selected),correct:x2(r)}}):[]}const Mr=globalThis;async function w2(){try{return await Mr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function ti(e){const t=a=>{};try{const a=Mr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function Oa(e){try{Mr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function k2(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 A2=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function ni(e){let t;if(e instanceof Date)t=e;else if(typeof e=="string"){const a=e.trim(),r=A2.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 ga(){return $r(new Date)}function Lr(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:ga()}function Kn(){return N2(ga())}const B2=540*60*1e3;function ai(e,t,a){return new Date(Date.UTC(e,t,a)-B2)}function N2(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=ni(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function ri(e,t){if(!e)return"";const a=ni(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),u=Math.floor(c/7),d=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}):u<5?t("store.time.weeksAgo",{n:u}):c<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:p})}function oi(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,u,d]=l.split("-"),p=r?u:String(Number(u)),m=r?d:String(Number(d));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 si(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 D2=[{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"}]}],S2=[{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 ii(){return D2}function E2(){return S2}const T2=[],j2=[],M2=[],L2=[];function $2(){return{LISTEN_IN_NOISE:T2,SHORT_STORY:j2,LONG_STORY:M2,ORDERING_SENTENCE:L2}}const R2=[{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."}],li={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function P2(e){return R2.map(t=>{const a=li[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let Ha=null,ci=null,ui=null;function I2(){const e=Js();if(e&&e.entries.length>0){const t=c2();if(Ha&&ci===e&&ui===t)return Ha;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 Ha=r,ci=e,ui=t,Ha}return[]}new Proxy([],{get(e,t){const a=I2(),r=a[t];return typeof r=="function"?r.bind(a):r}});const F2="0.168.0";function O2(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 H2(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&O2(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 V2(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),[i,l]=o.useState(null),[c,u]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),l(null);return}const d=e.split("/").pop();let p=e;d&&(e.startsWith("/")?p=Ar(e):/^(Logo|Symbol)/i.test(d)?p=Ar(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),s(null),l(null),a(p)},[e]),o.useEffect(()=>{if(!t)return;let d=!1;async function p(){try{let m=await fetch(t);m.ok||(m=await fetch(t));const f=m.headers.get("content-type")||"";if(d)return;if(f.includes("svg")){s("mask");return}if(f.startsWith("image/")){s("img");return}const C=await fetch(t);if(!C.ok)throw new Error("not ok");const g=await C.text();if(d)return;if(/^\s*<svg[\s>]/i.test(g)){const y=H2(g);if(!y){s("none");return}l(y),s("inline");return}s("none")}catch{d||s("none")}}return p(),()=>{d=!0}},[t]),o.useEffect(()=>{let d=!1,p=null;return r==="mask"&&t&&fetch(t).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{d||(p=URL.createObjectURL(m),u(p))}).catch(()=>{d||s("img")}),()=>{d=!0,p&&URL.revokeObjectURL(p),u(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:c}}function qe(e){const{icon:t,label:a,className:r,imgClassName:s,maskClassName:i,svgClassName:l,wrapperStyle:c,size:u}=e||{},d=r??"iconRenderer-icon",p=s??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",f=l??"iconRenderer-icon-svg",C=typeof t=="string"?t:null,g=r0(C),{iconToUse:y,mode:_,svgText:h,blobUrl:v}=V2(C),x=(B,A={})=>n.jsx("span",{className:d,style:c,...A,children:B}),b=typeof u=="number"?{width:u,height:u,objectFit:"contain"}:null,k=(B,A={})=>n.jsx("img",{src:B,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...A,style:b?{...A.style,...b}:A.style});if(!t)return null;if(typeof t!="string")return x(t);if(t==="none")return x(n.jsx("span",{className:f,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(g)try{return x(o.createElement(g,{className:f,size:typeof u=="number"?u:20}),{"aria-hidden":"true"})}catch{}if(y&&y.endsWith(".svg")){if(_==="mask"){const B={"--icon-url":v?`url(${v})`:`url(${y})`,...typeof u=="number"?{"--icon-size":`${u}px`}:null};return x(n.jsx("span",{className:m,style:B}),{"aria-hidden":"true"})}return _==="img"?x(k(y,{onError:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):_==="inline"?x(n.jsx("span",{className:f,dangerouslySetInnerHTML:h?{__html:h}: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:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}});const w=typeof u=="number"?u:20,N=`<svg width="${w}" height="${w}" 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:f,dangerouslySetInnerHTML:{__html:N}}),{"aria-hidden":"true"})}function di(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 z2({icon:e,emoji:t,title:a,message:r,hint:s,action:i,compact:l,className:c}){const{pending:u,press:d}=di(i?.onClick);return n.jsxs("div",{className:De("empty-state",l&&"empty-state--compact",c),children:[t&&n.jsx("span",{className:"empty-state__emoji",children:t}),e&&n.jsx(qe,{icon:e,className:"empty-state__icon"}),a&&n.jsx("p",{className:"empty-state__title body-2",children:a}),r&&n.jsx("p",{className:"empty-state__message body-3",children:r}),s&&n.jsx("p",{className:"empty-state__hint caption-1",children:s}),i&&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:u,"aria-busy":u||void 0,children:[i.icon&&n.jsx(qe,{icon:i.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:i.label})]})]})}function W2({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:i}){const{t:l}=ge.useTranslation(),{pending:c,press:u}=di(r);return n.jsxs("div",{className:De("empty-state","error-state",i),role:"alert",children:[n.jsx(qe,{icon:a,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:"empty-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:u,disabled:c,"aria-busy":c||void 0,children:[n.jsx(qe,{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 q2({icon:e,title:t,description:a,cta:r,tone:s="main",disabled:i=!1,onClick:l,className:c=""}){const u=o.useId(),d=`${u}-title`,p=`${u}-desc`,m=`${u}-cta`,f=()=>{i||l?.()};return n.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":d,"aria-describedby":`${p} ${m}`,onClick:f,onKeyDown:C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),f())},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(qe,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:d,className:"action-card__title",children:t}),n.jsx("p",{id: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(qe,{icon:"arrow-right",size:18})})]})]})})}function U2({as:e="div",className:t="",children:a,storage:r,...s}){r&&z0({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(fn)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){s.preventDefault();return}const l=i[0],c=i[i.length-1],u=document.activeElement,d=u===a;s.shiftKey&&(u===l||d)?(s.preventDefault(),c.focus()):!s.shiftKey&&u===c&&(s.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const fn='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 pi(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(pi(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const s=Array.from(document.querySelectorAll(fn)).filter(u=>!(e&&e.contains(u))&&pi(u));let i=null,l=null;for(const u of s)r.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_PRECEDING?i=u:l||(l=u);const c=i??l;return c?.focus(),c}function G2({title:e="",lines:t=[],notices:a=null,children:r,variant:s="default",dismissible:i=!1,className:l=""}){const{t:c}=ge.useTranslation(),[u,d]=o.useState(!1),p=o.useRef(null),m=o.useCallback(()=>{const y=p.current;y&&y.contains(document.activeElement)&&Va(y),d(!0)},[]);if(u)return null;const f=`notice-box notice-box--${s} body-2 ${l}`.trim(),C=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:f,role:"note",children:[a.map((y,_)=>n.jsxs("div",{className:"notice-box__inner",children:[y.title?n.jsx("span",{className:"notice-box__title body-3",children:y.title}):null,n.jsx("div",{className:"notice-box__body",children:y.lines&&y.lines.length?n.jsx("div",{children:y.lines.map((h,v)=>n.jsx("span",{className:"notice-box__line body-3",children:h},v))}):y.children??null})]},_)),C]});const g=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((y,_)=>n.jsx("li",{className:"notice-box__line",children:y},_))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:p,className:f,role:"note",children:[g,C]})}const Zn=[];let za=!1;function mi(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),!za&&typeof document<"u"&&(document.addEventListener("keydown",mi),za=!0),()=>{const t=Zn.lastIndexOf(e);t>=0&&Zn.splice(t,1),Zn.length===0&&za&&typeof document<"u"&&(document.removeEventListener("keydown",mi),za=!1)}}const hi=o.createContext(null);function K2(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const fi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function Y2(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 Ko.useSyncExternalStore(t,()=>fi(e),()=>!1)}function Z2(e){const[t,a]=o.useState(fi(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 X2=typeof Ko.useSyncExternalStore=="function"?Y2:Z2;function tn(e){const t=o.useContext(hi),a=X2(e);return t&&typeof t.mobile=="boolean"&&K2(e)?t.mobile:a}const J2="(prefers-reduced-motion: reduce)";function Hr(){return tn(J2)}function Cn(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:i,closeOnOutsideClick:l=!0,className:c="",role:u="dialog",ariaLabel:d="",children:p,backdrop:m=!1,isMobilePopup:f=!1,useBorder:C=!0,header:g}=e||{},y=o.useRef(null),[_,h]=o.useState({position:"fixed",left:0,top:-9999}),[v,x]=o.useState(!1),[b,k]=o.useState("bottom"),[w,N]=o.useState(!1),[B,A]=o.useState(!1),D=!t&&!a,$=o.useCallback((U=!1)=>{if(B&&f)return;const q=a?a.getBoundingClientRect():t;if(!q||!y.current)return;const W=y.current,{offsetWidth:J,offsetHeight:I}=W,E=window.innerWidth,F=window.innerHeight,R=E-q.right,T=q.left,M=q.top,G=F-q.bottom;let Y=0,Q=0,de="top";if(M>=I+r)de="top",Q=q.top-r-I,Y=q.left+q.width/2-J/2;else if(G>=I+r)de="bottom",Q=q.bottom+r,Y=q.left+q.width/2-J/2;else if(R>=J+r)de="right",Y=q.right+r,Q=q.top+q.height/2-I/2;else if(T>=J+r)de="left",Y=q.left-r-J,Q=q.top+q.height/2-I/2;else{const z=Math.max(M,G,R,T);z===M?(de="top",Q=q.top-r-I,Y=q.left+q.width/2-J/2):z===G?(de="bottom",Q=q.bottom+r,Y=q.left+q.width/2-J/2):z===R?(de="right",Y=q.right+r,Q=q.top+q.height/2-I/2):(de="left",Y=q.left-r-J,Q=q.top+q.height/2-I/2)}const Te=Number.isFinite(Number(s))?Number(s):8;Y=Math.min(Math.max(Y,Te),E-J-Te),Q=Math.min(Math.max(Q,Te),F-I-Te);const ke=Math.round(Y),oe=Math.round(Q);U&&y.current?(y.current.style.left=`${ke}px`,y.current.style.top=`${oe}px`,y.current.dataset.placement=de):(k(de||b),h({position:"fixed",left:ke,top:oe}),N(!0))},[B,f,a,t,r,s,b]);o.useLayoutEffect(()=>{if(D)return;if(B&&f){h({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),N(!0);return}$();const U=requestAnimationFrame(()=>$());return()=>cancelAnimationFrame(U)},[t,a,r,p,s,D,B,f,$]),o.useEffect(()=>{if(D||B&&f||!y.current||typeof ResizeObserver>"u")return;const U=new ResizeObserver(()=>{t&&$()});return U.observe(y.current),()=>U.disconnect()},[t,p,s,D,B,f,$]),o.useEffect(()=>{if(D||B&&f)return;const U=()=>$(!0),q=W=>{if(!a&&i){const J=W.target;if(J&&y.current&&y.current.contains(J))return;try{if(J&&J.closest&&J.closest("[data-tooltip-ignore]"))return}catch{}L.current(!0);return}U()};return window.addEventListener("resize",U),document.addEventListener("scroll",q,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",U),document.removeEventListener("scroll",q,{capture:!0})}},[t,a,i,r,p,s,D,B,f,$]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const U=window.matchMedia("(max-width: 768px)"),q=()=>A(!!U.matches);q();try{U.addEventListener?U.addEventListener("change",q):U.addListener(q)}catch{try{U.addListener(q)}catch{}}return()=>{try{U.removeEventListener?U.removeEventListener("change",q):U.removeListener(q)}catch{}}},[]);const O=o.useRef(!1),P=o.useRef(null),K=Hr(),S=o.useCallback((U=!1)=>{if(i&&!(v||O.current)){if(O.current=!0,U){x(!0);try{i&&i()}catch{O.current=!1,x(!1)}return}x(!0),P.current=setTimeout(()=>{P.current=null;try{i&&i()}catch{O.current=!1,x(!1)}},K?0:200)}},[v,i,x,K]);o.useEffect(()=>()=>{P.current&&clearTimeout(P.current)},[]),o.useEffect(()=>{if(D)return;const U=J=>{const I=y.current;if(!I)return;const E=J.target;if(E&&!I.contains(E)){try{if(E.closest&&E.closest("[data-tooltip-ignore]"))return}catch{}l&&S(!0)}},q=J=>{const I=y.current;if(!I)return;const E=J.target;if(E&&!I.contains(E)){try{if(E.closest&&E.closest("[data-tooltip-ignore]"))return}catch{}l&&S(!0)}},W=J=>{if(J.key==="Tab"){const I=y.current;if(!I)return;const E=I.querySelectorAll(fn);if(!E||E.length===0)return;const F=E[0],R=E[E.length-1],T=document.activeElement;J.shiftKey?T===F&&(J.preventDefault(),R.focus()):T===R&&(J.preventDefault(),F.focus())}};return document.addEventListener("pointerdown",U,!0),document.addEventListener("click",q,!0),document.addEventListener("keydown",W),()=>{document.removeEventListener("pointerdown",U,!0),document.removeEventListener("click",q,!0),document.removeEventListener("keydown",W)}},[i,l,S,D]);const L=o.useRef(S);o.useEffect(()=>{L.current=S});const H=!!i;o.useEffect(()=>{if(!(D||!H))return In(()=>L.current())},[D,H]),o.useEffect(()=>{const U=()=>{S(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",U),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",U)}},[S]);const ee=n.jsxs("div",{ref:y,className:`tooltip-content ${D?"tooltip-content--inline":""} ${C?"tooltip-content--bordered":""} ${v?"is-closing":""} ${c} ${B&&f?"is-mobile":""}`,role:u,"aria-label":d||void 0,style:D?{}:{..._,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":b,"data-left":D?"":_.left,"data-top":D?"":_.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[g!=null&&n.jsx("div",{className:"tooltip-content__header h5",children:g}),p]});if(D||typeof document>"u")return ee;if(m||B&&f){const U=n.jsxs("div",{className:"tooltip-portal",children:[n.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&S(!0)}}),ee]});return qt.createPortal(U,document.body)}return qt.createPortal(ee,document.body)}function Dn(e){const{anchorRect:t,text:a,offset:r=8,onClose:s,className:i="",ariaLabel:l}=e||{};return a?n.jsx(Cn,{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:u=12,closeOnOutsideClick:d=!0}=e||{},p=(Array.isArray(s)?s:s?[s]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:n.jsx(Cn,{anchorRect:a,offset:u,onClose:c,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:n.jsxs("div",{className:"tooltip-description__box",children:[r&&n.jsx("span",{className:"tooltip-description__title body-2",children:r}),n.jsx("ol",{className:"tooltip-description__items",children:p.map((m,f)=>n.jsxs("li",{className:`tooltip-description__item body-3${f===i?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&n.jsxs("span",{className:"tooltip-description__index button-1",children:[f+1,"."]}),m.color&&n.jsx("span",{className:"tooltip-description__dot",style:{background:m.color},"aria-hidden":"true"}),n.jsx("span",{children:m.text})]},f))})]})})}function ba(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let Vr=0,Ci=!1;function gi(){Ci||typeof document>"u"||(Ci=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(Vr=Date.now())},!0),document.addEventListener("touchstart",()=>{Vr=Date.now()},{capture:!0,passive:!0}))}gi();function Xn(e){return!!e&&e.pointerType==="touch"}function Jn(e=1e3){return gi(),Date.now()-Vr<e}function zr(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const i=ba(e),l=ba(t),c=o.useRef(null),u=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const p=m=>{const f=m,C=m.target,g=a.current,y=!!(C&&g&&g.contains(C));if(f.pointerType!=="touch"){y&&(c.current=null);return}if(y){c.current=i.current;return}c.current=null,i.current&&!(C&&C.closest?.(".tooltip-content"))&&l.current(!1,g)};return document.addEventListener("pointerdown",p,!0),()=>document.removeEventListener("pointerdown",p,!0)},[r,a,i,l]);const d=o.useCallback(p=>{const m=c.current;return m===null?!1:(c.current=null,u.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 f=null;const C=_=>{const h=_.changedTouches?.[0];if(!h)return!1;const v=p.getBoundingClientRect();return h.clientX>=v.left&&h.clientX<=v.right&&h.clientY>=v.top&&h.clientY<=v.bottom},g=_=>{f=C(_)?i.current:null},y=_=>{const h=f;f=null,!(h===null||Date.now()-u.current<700||!C(_))&&(c.current=null,u.current=Date.now(),l.current(!h,p))};return m.addEventListener("touchstart",g,{passive:!0}),m.addEventListener("touchend",y),()=>{m.removeEventListener("touchstart",g),m.removeEventListener("touchend",y)}},[r,s,a,i,l]),{touchPress:d}}function Q2(e,t){const{size:a=48,type:r,htmlType:s,href:i,target:l,rel:c,icon:u,rightIcon:d,label:p,count:m,subLabel:f,children:C,ariaLabel:g,variant:y="default",align:_="center",selected:h,toggleable:v=!1,ariaExpanded:x,ariaControls:b,disabled:k=!1,useLabel:w=!0,useBorder:N=!0,useBG:B=!0,useDisabledCovered:A=!1,useDisabledInvisible:D=!1,width:$,minWidth:O,onClick:P,onDisabledClick:K,showTooltipInfo:S=!1,tooltipInfoText:L=null,tooltipDescription:H=null,tooltipOnly:ee=!1,iconSize:U="medium",iconColor:q,shape:W="rounded",color:J,className:I,...E}=e,F=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),R=F.match(/^\d+$/)?`button${F}`:`button-${F}`,T=Number(a),M=!isNaN(T)&&T<40?"button-2":"button-1",G=p??C,Y=k||!!E.disabled,Q=Y?A?"disabled-covered":D?"disabled-invisibled":"disabled":y,de=Q?`button--variant-${Q}`:"",Te=_?`button--align-${_}`:"",ke=W?`button--shape-${W}`:"",oe=typeof q=="string"&&q.startsWith("--")?`var(${q})`:q,z={...$?{width:typeof $=="number"?`${$}px`:$}:{},...O?{minWidth:typeof O=="number"?`${O}px`:O}:{},...N?{}:{"--button-border":Y?"0":"1px solid transparent"},...oe?{"--button-icon-color":oe}:{},...J?{"--color-main":J}:{}},re=w===!1?"":G,ce=Array.isArray(re)?re.length>0:!!re,fe=!!d,ye=r??(ce||u||fe?"bar":"dot"),Ne=`${R}--${ye}`,we=o.useRef(null),Be=o.useRef(t);Be.current=t;const je=o.useCallback(Le=>{we.current=Le;const Ke=Be.current;typeof Ke=="function"?Ke(Le):Ke&&(Ke.current=Le)},[]),se=o.useRef(Y),[te,me]=o.useState(!!h),[ne,Ce]=o.useState(!1),[ve,Ye]=o.useState(null),He=o.useCallback(()=>Ce(!1),[]),[Ue,Se]=o.useState(!1),Ge=o.useId();o.useEffect(()=>{typeof h=="boolean"&&me(h)},[h]),o.useEffect(()=>{if(se.current&&!Y&&we.current){const Le=we.current;let Ke=!1;try{Ke=Le.matches(":focus:not(:focus-visible)")}catch{Ke=!1}Ke&&Le.blur(),Le.style.pointerEvents="none";const St=requestAnimationFrame(()=>{requestAnimationFrame(()=>{we.current&&(we.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(St)}se.current=Y},[Y]);const $e=typeof h=="boolean"?!!h:te,Ie=typeof x=="boolean"?void 0:v||typeof h=="boolean"?$e?"true":"false":E["aria-pressed"],Ve=De("button",R,Ne,de,Te,ke,$e?"is-selected":null,B?null:"button--no-bg",ee?"button--tooltip-only":null,I),at=`button__icon button__icon--${U}`,ot=Array.isArray(f)?f:f!==void 0?[f]:[],We=()=>{if(Array.isArray(re))return re.map((Ke,St)=>{const xt=ot[St];return n.jsxs("span",{className:`button__label-text${xt!==void 0?" button__label-text--has-sub":""}`,children:[Ke,xt!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:xt})]},St)});const Le=f!==void 0;return n.jsxs("span",{className:`button__label-text${Le?" button__label-text--has-sub":""}`,children:[re,m!=null&&n.jsx("span",{className:"button__count",children:m}),Le&&n.jsx("span",{className:"button__sub-label-text caption-1",children:f})]})},Xe=Le=>{typeof h!="boolean"&&!v&&me(!1),Le.currentTarget.blur()},gt=Le=>{Y||(typeof E.onMouseLeave=="function"&&E.onMouseLeave(Le),Xe(Le))},Bt=Le=>{if(ee&&Qe&&Ze.touchPress(Le.currentTarget),Y){Qe&&Ze.touchPress(Le.currentTarget),Le.preventDefault(),K?.(Le);return}typeof h!="boolean"&&v&&me(Ke=>!Ke),P?.(Le)},Tt=o.useCallback(()=>{(S||H)&&(Ce(!0),Ye(we.current?.getBoundingClientRect()??null))},[S,H]),dt=o.useCallback(()=>{(S||H)&&(Ce(!1),Ye(null))},[S,H]),Qe=!!(S||H),Ze=zr(ne,Le=>{Le?Tt():dt()},we,{enabled:Qe&&(Y||ee),fallbackOnParent:Qe&&Y}),Oe={...E};delete Oe.disabled,delete Oe.className,delete Oe.faded,delete Oe.useFaded,delete Oe.loading,delete Oe.onMouseLeave,delete Oe.onPointerEnter,delete Oe.onPointerLeave,delete Oe.onPointerUp,delete Oe.onFocus,delete Oe.onBlur,Y&&(Object.keys(Oe).forEach(Le=>{/^on[A-Z]/.test(Le)&&typeof Oe[Le]=="function"&&delete Oe[Le]}),Oe["aria-disabled"]="true");const rt=(typeof S=="string"?S:null)??(typeof L=="string"?L:null)??(typeof g=="string"?g:null)??(typeof G=="string"?G:null)??void 0,et=typeof g=="string"?g:typeof G=="string"?G:rt,yt=H?[H.title,...H.items??[]].filter(Boolean).join(". "):S&&rt&&rt!==et?rt:"",ze=[typeof E["aria-describedby"]=="string"?E["aria-describedby"]:void 0,yt?Ge:null].filter(Boolean).join(" ")||void 0,it=(Le,Ke)=>n.jsx(qe,{icon:Le,label:Ke??et,className:at,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),Nt=()=>ye==="dot"?n.jsxs(n.Fragment,{children:[it(u),ce&&n.jsx("span",{className:`button__label ${M}`,children:We()})]}):_==="center"&&u?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:it(u)}),ce&&n.jsx("span",{className:`button__label ${M}`,children:We()})]}),fe&&n.jsx("span",{className:"button__right",children:it(d)})]}):n.jsxs(n.Fragment,{children:[u&&n.jsx("span",{className:"button__left",children:it(u,g??G)}),ce&&n.jsx("span",{className:`button__label ${M}`,children:We()}),fe&&n.jsx("span",{className:"button__right",children:it(d)})]}),Dt=!!i&&!Y;return n.jsxs(n.Fragment,{children:[n.jsxs(Dt?"a":"button",{...Oe,ref:je,...Dt?{href:i,target:l,rel:c??(l==="_blank"?"noreferrer":void 0)}:{type:s,disabled:Y&&!K&&!Ue},className:Ve,"aria-pressed":Ie,"aria-expanded":typeof x=="boolean"?x:E["aria-expanded"],"aria-controls":b??E["aria-controls"],"aria-label":et,"aria-disabled":Y&&(Dt||K||Ue)?!0:void 0,"aria-describedby":ze,style:z,onClick:Bt,onMouseLeave:gt,onPointerEnter:Le=>{Xn(Le)||Tt(),!Y&&typeof E.onPointerEnter=="function"&&E.onPointerEnter(Le)},onPointerLeave:Le=>{Xn(Le)||dt(),!Y&&typeof E.onPointerLeave=="function"&&E.onPointerLeave(Le)},onPointerUp:Le=>{Y&&Qe&&Ze.touchPress(Le.currentTarget),!Y&&typeof E.onPointerUp=="function"&&E.onPointerUp(Le)},onFocus:Le=>{Se(!0),Jn()||Tt(),!Y&&typeof E.onFocus=="function"&&E.onFocus(Le)},onBlur:Le=>{Se(!1),Y||Xe(Le),dt(),!Y&&typeof E.onBlur=="function"&&E.onBlur(Le)},children:[Nt(),yt?n.jsx("span",{id:Ge,hidden:!0,"aria-label":yt}):null]}),ne&&H?n.jsx(Fn,{anchorRect:ve,title:H.title,items:H.items,onClose:He}):ne&&rt?n.jsx(Dn,{anchorRect:ve,text:rt,onClose:He}):null]})}const le=o.forwardRef(Q2);le.displayName="Button";var ef={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."},tf={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"},nf={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},af={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},rf={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},of={selected:"\uC120\uD0DD\uB428"},sf={placeholder:"\uC120\uD0DD"},lf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},cf={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"},uf={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",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"},df={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."}}},pf={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."}},mf={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"}}},hf={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},ff={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"}},Cf={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"},gf={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"}},bf={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"}}}},yf={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"}},vf={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},xf={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"}},_f={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."}},wf={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},kf={colName:"\uB2E8\uC5B4\uD45C \uC774\uB984",open:"\uC5F4\uAE30",countSuffix:"\uAC1C\uC758 \uB2E8\uC5B4\uD45C",tab:{cards:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",tables:"\uB2E8\uC5B4\uD45C"},cardsEmpty:"\uC544\uC9C1 \uB9CC\uB4E0 \uB2E8\uC5B4\uD45C \uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",addCard:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC \uCD94\uAC00",menu:{publishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30",unpublishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0\uC11C \uB0B4\uB9AC\uAE30"},newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},Af={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},Bf={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\uC744 \uB20C\uB7EC \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB9E4\uAE30\uC138\uC694.",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"}},Nf={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"}},Df={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},Sf={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"}},Ef={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"}},Tf={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},jf={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},Mf={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"}},Lf={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"}},$f={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."]},Rf={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"}},Pf={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"},If={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"}}},Ff={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},Of={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"}},Hf={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},Vf={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"},zf={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},Wf={ariaLabel:"\uC120\uD0DD \uD0ED"},qf={ariaLabel:"\uD0ED"},Uf={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},Gf={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},Kf={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"}},Yf={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"}},Zf={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"}},Xf={manage:{unit:"\uAC74"}},Jf={cancelLabel:"\uCDE8\uC18C"},Qf={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},eC={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"},tC={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},nC={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"},aC={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},rC={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},oC={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},sC={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},iC={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"}},lC={clearSelection:"\uC120\uD0DD \uD574\uC81C"},cC={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},uC={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},dC={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},pC={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},mC={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},hC={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},fC={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"},CC={common:ef,calendar:tf,passCard:nf,searchField:af,rating:rf,colorPicker:of,dropdown:sf,accordion:lf,header:cf,nav:uf,settings:df,usage:pf,account:mf,help:hf,training:ff,trainingSettings:Cf,customers:gf,payment:bf,coupons:yf,visits:vf,company:xf,trainingType:_f,myWordTraining:wf,myWordTable:kf,keyWords:Af,wordTable:Bf,wordSearch:Nf,wordPrint:Df,topic:Sf,accessLinkManager:Ef,login:Tf,trainingPlanRun:jf,device:Mf,manager:Lf,wordPairs:$f,game:Rf,footer:Pf,landing:If,date:Ff,trainingSetPage:Of,wordTrainingPreview:Hf,wordData:Vf,textField:zf,segmentedControl:Wf,tabs:qf,fileUpload:Uf,avatar:Gf,myHomework:Kf,trainingStatus:Yf,store:Zf,homework:Xf,inquiry:Jf,progress:Qf,trainingMiss:eC,table:tC,wordScore:nC,topBanner:aC,datePicker:rC,report:oC,tooltip:sC,phonemeProfile:iC,bulkBar:lC,debug:cC,badge:uC,loader:dC,soundCompass:pC,breadcrumb:mC,board:hC,promoBannerBg:fC},gC={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."},bC={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"},yC={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"}},vC={clearAriaLabel:"Clear search"},xC={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},_C={selected:"selected"},wC={placeholder:"Select"},kC={collapse:"Collapse",expand:"Expand"},AC={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},BC={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",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}}"},NC={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."}}},DC={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"}},SC={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"}}},EC={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},TC={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"}},jC={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"},MC={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"}},LC={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},$C={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"}},RC={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},PC={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},IC={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."}},FC={comingSoon:"Word training is coming soon."},OC={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"},HC={title:"Key Words",empty:"No key words available."},VC={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 a cell to mark \u25CB \xB7 \u25B3 \xB7 \u2715.",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"}},zC={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}}"}},WC={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},qC={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"}},UC={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"}},GC={passwordPlaceholder:"Enter password"},KC={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"}},YC={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"}},ZC={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."]},XC={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"}},JC={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"},QC={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"}}},eg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},tg={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},ng={answer:"Answer",distractor:"Distractor"},ag={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},rg={clearAriaLabel:"Clear input"},og={ariaLabel:"Select tab"},sg={ariaLabel:"Tabs"},ig={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},lg={ariaLabel:"User avatar"},cg={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"}},ug={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"}},dg={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)"}},pg={manage:{unit:"item(s)"}},mg={cancelLabel:"Cancel"},hg={subtitle:"Select a topic to start listening practice."},fg={steps:"Step {{current}} of {{total}}"},Cg={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"},gg={resetColumns:"Reset column widths"},bg={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}}"},yg={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},vg={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},xg={previewRegion:"Report preview \u2014 scrollable sideways"},_g={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},wg={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},kg={clearSelection:"Clear selection"},Ag={showResult:"Show {{type}} result"},Bg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Ng={loading:"Loading"},Dg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},Sg={ariaLabel:"Breadcrumb"},Eg={empty:"No items yet."},Tg={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"},jg={common:gC,calendar:bC,passCard:yC,searchField:vC,rating:xC,colorPicker:_C,dropdown:wC,accordion:kC,header:AC,nav:BC,settings:NC,usage:DC,account:SC,help:EC,training:TC,trainingSettings:jC,customers:MC,payment:LC,coupons:$C,visits:RC,company:PC,trainingType:IC,myWordTraining:FC,myWordTable:OC,keyWords:HC,wordTable:VC,wordSearch:zC,wordPrint:WC,topic:qC,accessLinkManager:UC,login:GC,device:KC,manager:YC,wordPairs:ZC,game:XC,footer:JC,landing:QC,date:eg,trainingSetPage:tg,wordTrainingPreview:ng,wordData:ag,textField:rg,segmentedControl:og,tabs:sg,fileUpload:ig,avatar:lg,myHomework:cg,trainingStatus:ug,store:dg,homework:pg,inquiry:mg,trainingPlanRun:hg,progress:fg,trainingMiss:Cg,table:gg,wordScore:bg,topBanner:yg,datePicker:vg,report:xg,tooltip:_g,phonemeProfile:wg,bulkBar:kg,debug:Ag,badge:Bg,loader:Ng,soundCompass:Dg,breadcrumb:Sg,board:Eg,promoBannerBg:Tg};const Mg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Wr="ko",Lg="ihab_display_language";function bi(){if(typeof window>"u")return Wr;try{const e=localStorage.getItem(Lg);if(e&&Mg.some(t=>t.code===e))return e}catch{}return Wr}function yi(e){try{document.documentElement.lang=e}catch{}}kt.on("languageChanged",yi),yi(bi()),kt.use(ge.initReactI18next).init({resources:{ko:{translation:CC},en:{translation:jg}},lng:bi(),fallbackLng:Wr,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function pt(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 ya={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},qr=new WeakMap;function Ur(e){if(e)return qr.get(e)}function $t(e,t){e&&(e.style.setProperty(ya.title,t.title),e.style.setProperty(ya.description,t.description),qr.set(e,t))}function Rt(e){e&&(e.style.removeProperty(ya.title),e.style.removeProperty(ya.description),qr.delete(e))}const vi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function xi(){const e=pt(vi,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const _i={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function wi(){const e=pt(_i,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ai(){const e=pt(ki,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const Bi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ni(){const e=pt(Bi,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Di={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Si(){const e=pt(Di,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Ei={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Ti(){const e=pt(Ei,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const ji={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Mi(){const e=pt(ji,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Li={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function $i(){const e=pt(Li,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Ri={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Pi(){const e=pt(Ri,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Ii={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Fi(){const e=pt(Ii,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Oi={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Hi(){const e=pt(Oi,$t,Rt);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 Vi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function zi(){const e=pt(Vi,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Wi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function qi(){const e=pt(Wi,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Ui={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Gi(){const e=pt(Ui,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Vt=(e,t,a)=>({key:e,get label(){return kt.t(`promoBannerBg.${e}`,t)},textTone:a}),$g=[Vt("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Vt("soft","\uC18C\uD504\uD2B8","dark"),Vt("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),Vt("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Vt("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),Vt("warm","\uC6DC(\uAC15\uC870)","dark"),Vt("dark","\uB2E4\uD06C","light"),Vt("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Vt("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),Vt("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),Vt("outline","\uC544\uC6C3\uB77C\uC778","dark"),Vt("success","\uC131\uACF5/\uC644\uB8CC","light"),Vt("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),Vt("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],Ki={main:xi,soft:wi,sub:Ai,deep:Ni,softSub:Si,warm:Ti,dark:Mi,radial:$i,diagonal:Pi,dots:Fi,outline:Hi,success:zi,naver:qi,instagram:Gi};function Yi({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)}},[u,d]=o.useState(()=>c(e)),[p,m]=o.useState(e);p!==e&&(m(e),d(c(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(u))}catch{}},[e,u]);const f=x=>{d(typeof x=="function"?y=>l(x(y)):l(x))},C=()=>f(x=>+(x+s).toFixed(6)),g=()=>f(x=>+(x-s).toFixed(6)),b=u<r-Number.EPSILON,_=u>a+Number.EPSILON,h=Math.round(t*u),v=Math.round(h*i);return{scale:u,setScale:f,increase:C,decrease:g,canIncrease:b,canDecrease:_,fontSize:h,lineHeight:v}}function Zi(e,t){const a=ba(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 ",Xi=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Gr)?e.split(Gr).pop()??e:e})(),Rg=o.createContext(!1),On=[];let Ji=null;function Pg(e){const t=o.useContext(Rg);o.useEffect(()=>{if(t||typeof e!="string"||!e)return;On.length===0&&(Ji=document.title);const a={text:Xi?`${e}${Gr}${Xi}`: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:Ji??document.title}},[e,t])}const Qi=[{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"}],Ig=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function Qn(e,t){return Ig().compare(e,t)}const Wa=new Map;function Fg(e){const t=Wa.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)),Wa.size>5e3&&Wa.clear(),Wa.set(e,a),a}function Og(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 Hg(e,t){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),s=a(t);if(r===s)return 0;const i=(d,p)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const m=Og(p);return m!==null?[m]:Fg(p)},l=i(e,r),c=i(t,s),u=Math.min(l.length,c.length);for(let d=0;d<u;d++){const p=l[d],m=c[d];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 f=Qn(p,m);if(f!==0)return f}return l.length!==c.length?l.length-c.length:Qn(r,s)}const el=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function Kr(e,t,a){const r=el(e),s=el(t);if(r||s)return r===s?0:r?1:-1;const i=Hg(e,t);return a?i:-i}function Vg(e,t,a){const{t:r}=ge.useTranslation(),[s,i]=o.useState(()=>{const g=a?.initialPageSize;return g&&Qi.some(b=>b.value===g)?g:"25"}),[l,c]=o.useState(1),[u,d]=o.useState(t);Object.is(u,t)||(d(t),l!==1&&c(1));const p=o.useMemo(()=>Qi.map(g=>({...g,label:r("visits.showN",{n:g.value})})),[r]),m=o.useCallback(g=>{i(g),c(1)},[]),f=Math.max(1,Math.ceil(e.length/Number(s)));(l>f||l<1||!Number.isFinite(l))&&c(Math.min(Math.max(1,Number.isFinite(l)?l:1),f));const C=Math.min(Math.max(1,Number.isFinite(l)?l:1),f);return{pageRows:o.useMemo(()=>e.slice((C-1)*Number(s),C*Number(s)),[e,C,s]),pageSizeProps:{options:p,value:s,onChange:m},paginationProps:{page:C,total:f,onChange:c},setPage:c}}function zg(e){const[t,a]=o.useState(null),r=o.useRef(t),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const i=o.useCallback(u=>{const d=r.current,p=d?.key===u?{key:u,asc:!d.asc}:{key:u,asc:!0};r.current=p,a(p),s.current?.(p)},[]),l=o.useCallback((u,d)=>({label:u,sortDir:t?.key===d?t.asc?"asc":"desc":null,onClick:()=>i(d)}),[t,i]),c=o.useCallback((u,d)=>{if(!t)return u;const{key:p,asc:m}=t;return[...u].sort((f,C)=>Kr(d(f,p),d(C,p),m))},[t]);return{\uC815\uB82C:t,\uCE78:l,sortRows:c}}const rn="\uC804\uCCB4",Wg=new Map;try{kt.store?.on?.("added",()=>Wg.clear())}catch{}Object.fromEntries(Object.entries(u2).map(([e,{nucleus:t}])=>[e,t]));const qg={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"})},Ug={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"})},Gg={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 Kg(e,t){if("place"in t)return qg[t.place](e);const a=Ug[t.vowel](e);return t.glide?`${a} \xB7 ${Gg[t.glide](e)}`:a}const Yg=(e,{defaultValue:t})=>t,tl=(e,t)=>({jamos:e,phonetic:t,tooltip:Kg(Yg,t)}),gn=(e,t)=>t.map(a=>tl([a],{place:e})),At=(e,t,a)=>tl([...e],a?{vowel:t,glide:a}:{vowel:t}),Yr={cho:[gn("labial",["\u3142","\u3143","\u314D","\u3141"]),gn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),gn("alveolar",["\u3145","\u3146"]),gn("palatal",["\u3148","\u3149","\u314A"]),gn("velar",["\u3131","\u3132","\u314B"]),gn("glottal",["\u314E"])],jung:[[At("\u3163","frontHigh"),At("\u315F","frontHigh","w"),At("\u3162","frontHigh","velar")],[At("\u3161","backHighUnrounded")],[At("\u315C","backHighRounded"),At("\u3160","backHighRounded","j")],[At("\u3154\u3150","frontMid"),At("\u3156\u3152","frontMid","j"),At("\u3159\u315A\u315E","frontMid","w")],[At("\u3153","backMidUnrounded"),At("\u3155","backMidUnrounded","j"),At("\u315D","backMidUnrounded","w")],[At("\u3157","backMidRounded"),At("\u315B","backMidRounded","j")],[At("\u314F","low"),At("\u3151","low","j"),At("\u3158","low","w")]],jong:[gn("labial",["\u3142","\u3141"]),gn("alveolar",["\u3137","\u3134","\u3139"]),gn("velar",["\u3131","\u3147"])]},Zg=e=>e===Xg?[]:Array.from(e),Xg="__NO_CODA__",Zr=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),nl={cho:Zr(Yr.cho),jung:Zr(Yr.jung),jong:Zr(Yr.jong)};nl.jung.flat().forEach(({v:e})=>{for(const t of Zg(e));}),new Set(nl.cho.flat().map(e=>e.v));function Jg(e,t=!0){const a=ba(e);o.useEffect(()=>{if(t)return In(()=>{a.current?.()})},[t,a])}function qa(){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 al(e="warning"){const[t,a]=o.useState(""),[r,s]=o.useState(e),[i,l]=o.useState(0),c=o.useCallback((m,f)=>{s(f),a(m),l(C=>C+1)},[]),u=o.useCallback(m=>c(m,"warning"),[c]),d=o.useCallback(m=>c(m,"normal"),[c]),p=o.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:c,showWarning:u,showNormal:d,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({}),u=o.useRef(null),d=o.useRef(null),p=o.useCallback(()=>{u.current&&c(e(u.current.getBoundingClientRect(),u.current))},[e]);o.useEffect(()=>{if(!s)return;p();const C=v=>{const x=v.target;r&&x.closest?.(r)||u.current?.contains(x)||d.current?.contains(x)||i(!1)};document.addEventListener("mousedown",C),document.addEventListener("pointerdown",C);const g=v=>{d.current?.contains(v.target)||(t==="reposition"?p():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",g,!0);const b=()=>{a==="reposition"?p():a==="close"&&i(!1)};let _=null;const h=()=>{b(),_&&clearTimeout(_),_=setTimeout(()=>{_=null,a==="reposition"&&p()},250)};return a!=="ignore"&&(window.addEventListener("resize",b),window.addEventListener("orientationchange",h)),()=>{document.removeEventListener("mousedown",C),document.removeEventListener("pointerdown",C),t!=="ignore"&&window.removeEventListener("scroll",g,!0),a!=="ignore"&&(window.removeEventListener("resize",b),window.removeEventListener("orientationchange",h)),_&&clearTimeout(_)}},[s,p,t,a,r]),o.useEffect(()=>{if(s)return In(()=>i(!1))},[s]);const m=o.useCallback(()=>i(C=>!C),[]),f=o.useCallback(()=>i(!1),[]);return{open:s,setOpen:i,toggle:m,close:f,style:l,triggerRef:u,menuRef:d}}function Qg(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:i=1100,feedbackMs:l=1500}={}){const[c,u]=o.useState([]),[d,p]=o.useState(0),[m,f]=o.useState("idle"),[C,g]=o.useState(null),[b,_]=o.useState([]),[h,v]=o.useState(null),[x,y]=o.useState(0),k=o.useRef(0),w=o.useCallback(J=>{k.current=typeof J=="function"?J(k.current):J,y(k.current)},[]),N=o.useRef(r),B=o.useRef(s);o.useEffect(()=>{N.current=r,B.current=s},[r,s]);const A=o.useRef([]),D=()=>{A.current.forEach(clearTimeout),A.current=[]},$=(J,I)=>{A.current.push(setTimeout(I,J))};o.useEffect(()=>()=>D(),[]);const F=c[d]?.id??null,P=o.useRef(null),G=o.useCallback(()=>{D(),f("playing"),_([]),v(null),w(0);let J=0;e.forEach((I,T)=>{$(J,()=>{p(T),g(I.id),N.current?.(I)}),$(J+1e3,()=>{g(null),_(O=>[...O,I.id])}),J+=1300}),$(J,()=>{f("done"),B.current?.({score:0,total:e.length})})},[e,w]),E=o.useCallback((J,I)=>{if(I>=J.length){f("done"),B.current?.({score:k.current,total:J.length});return}P.current=null,p(I),v(null),f("playing"),g(J[I].id),N.current?.(J[I]),$(i,()=>{g(null),f("waiting")})},[i]),M=o.useCallback(()=>{D();const J=Ca(e);u(J),w(0),_([]),E(J,0)},[e,E,w]),H=o.useCallback(()=>{t==="playback"?(u(e),G()):M()},[t,e,G,M]),ee=o.useCallback(()=>{D(),f("idle"),g(null),_([]),v(null),p(0),w(0),u([])},[w]),q=e.map(J=>J.id).join("|");o.useEffect(()=>(a?H():ee(),()=>D()),[t,q,a]);const U=o.useCallback(J=>{m!=="waiting"||t==="playback"||P.current===d||(P.current=d,v(J),J===c[d]?.id&&w(I=>I+1),t==="exam"?(f("playing"),$(400,()=>E(c,d+1))):(f("feedback"),$(l,()=>E(c,d+1))))},[m,t,c,d,E,l,w]),W=t==="playback"?e.length:c.length;return{bind:{activeSpeakerId:C,playedIds:b,selectedId:h,answerId:F,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:U},index:d,total:W,score:x,phase:m,done:m==="done",start:H,reset:ee}}function eb({title:e,description:t,actionLabel:a,onAction:r,bg:s,color:i,size:l="medium",actionVariant:c,titleColor:u,descriptionColor:d,className:p=""}){const m=s??i??"main",f=o.useRef(null),[C,g]=o.useState("main"),b=tn("(max-width: 767px)"),_=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const x=f.current;if(!x)return;const y=Ur(x),k=(w,N,B)=>{if(B!==void 0)x.style.setProperty(N,B),_.current[w]=!0;else if(_.current[w]){const A=y?.[w];A?x.style.setProperty(N,A):x.style.removeProperty(N),_.current[w]=!1}};k("title","--promo-banner-bg-title",u),k("description","--promo-banner-bg-description",d)},[u,d,m]),o.useLayoutEffect(()=>{const x=f.current;if(!x)return;const y=Ur(x);g(y?.actionVariant??"main")},[m]);const h=De("promo-banner",`promo-banner--${l}`,p),v=Ki[m];return n.jsxs("div",{ref:f,className:h,role:"note",children:[n.jsx(v,{}),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??C,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...b?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function tb({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),u=c.length,[d,p]=o.useState(0),[m,f]=o.useState(!1),[C,g]=o.useState(!1),[b,_]=o.useState(!1),h=o.useRef(null),v=o.useRef(null),x=o.useRef(null),y=Hr(),k=m||C||b,w=u>0?Math.min(d,u-1):0;o.useEffect(()=>{if(u<2||t<=0||k||y)return;const B=window.setInterval(()=>p(A=>(Math.min(A,u-1)+1)%u),t);return()=>window.clearInterval(B)},[u,t,k,y]);const N=B=>{v.current!=null&&window.clearTimeout(v.current),v.current=window.setTimeout(()=>{v.current=null,_(!1)},B)};return o.useEffect(()=>()=>{v.current!=null&&window.clearTimeout(v.current)},[]),o.useEffect(()=>{if(!b)return;const B=A=>{A.pointerType==="touch"&&(x.current&&x.current.contains(A.target)||(v.current!=null&&(window.clearTimeout(v.current),v.current=null),_(!1)))};return document.addEventListener("pointerdown",B,!0),()=>document.removeEventListener("pointerdown",B,!0)},[b]),u===0?null:n.jsxs("section",{ref:x,className:De("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onPointerEnter:B=>{h.current=B.pointerType},onPointerDown:B=>{h.current=B.pointerType,B.pointerType==="touch"&&(v.current!=null&&(window.clearTimeout(v.current),v.current=null),_(!0))},onPointerUp:B=>{B.pointerType==="touch"&&N(5e3)},onPointerCancel:B=>{B.pointerType==="touch"&&N(5e3)},onMouseEnter:()=>{h.current!=="touch"&&f(!0)},onMouseLeave:()=>f(!1),onFocus:B=>{let A=!0;try{A=B.target.matches(":focus-visible")}catch{A=!0}g(A)},onBlur:B=>{B.currentTarget.contains(B.relatedTarget)||g(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${w*100}%)`},children:c.map((B,A)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":A!==w,...A!==w?{inert:!0}:{},children:B},A))})}),u>1&&n.jsx("div",{className:`top-banner__dots${(a?.[w]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((B,A)=>n.jsx("button",{type:"button",className:`top-banner__dot${A===w?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:u,index:A+1,defaultValue:`${u}\uAC1C \uC911 ${A+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":A===w,onClick:()=>p(A)},A))})]})}function nb({title:e,body:t,open:a=!1,onToggle:r,avatar:s,titleClassName:i="body-2",bodyClassName:l="body-2",className:c=""}){const{t:u}=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:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const p=d.currentTarget.closest('[role="list"]');if(!p)return;const m=Array.from(p.querySelectorAll("[data-accordion-header]")),f=m.indexOf(d.currentTarget);(d.key==="ArrowDown"?m[f+1]:m[f-1])?.focus()}},children:[s&&n.jsx("div",{className:"accordion-item__avatar",children:s}),n.jsx("div",{className:`accordion-item__title ${i}`,children:e}),n.jsx("div",{className:"accordion-item__chevron",children:n.jsx(qe,{icon:a?"chevron-up":"chevron-down",label:a?u("accordion.collapse","\uC811\uAE30"):u("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 ab({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:s}){const[i,l]=o.useState({index:t}),c=(u,d)=>i.id!=null&&u.id!=null?u.id===i.id:i.id==null&&d===i.index;return n.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((u,d)=>n.jsx(nb,{title:u.title,body:u.body,avatar:u.avatar,open:c(u,d),onToggle:()=>l(c(u,d)?{index:-1}:{index:d,id:u.id}),bodyClassName:s},u.id??d))})}function rb(){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 ob(){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 sb(){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 mt(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:w,position:N="top-right",onClick:B,animate:A=!1}=e,D=k??"check",$=w!==void 0?"number":D,F=typeof r=="number"?r:32,P=De("circle-badge",`circle-badge--${$}`,`circle-badge--${N}`,`circle-badge--${F}`,A?"circle-badge--animate":"",B?"circle-badge--clickable":"",s),G=w!==void 0?t("badge.nthSelected",{n:w,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")}[D];return n.jsxs("span",{className:P,onClick:B,onKeyDown:B?E=>{E.key!=="Enter"&&E.key!==" "||(E.preventDefault(),E.currentTarget.click())}:void 0,"aria-label":l?void 0:i??G,"aria-hidden":l||void 0,role:B?"button":l?void 0:"img",tabIndex:B?0:void 0,children:[w!==void 0&&w,w===void 0&&D==="check"&&n.jsx(rb,{}),w===void 0&&D==="remove"&&n.jsx(ob,{}),w===void 0&&D==="minus"&&n.jsx(sb,{})]})}const{label:c,children:u,variant:d="default",fill:p="filled",minWidth:m,iconLeft:f,iconRight:C,color:g}=e,b=typeof r=="number"?"medium":r??"medium",_={small:"caption-2b",medium:"body-3b",large:"body-2b"}[b]??"body-2b",h={small:12,medium:14,large:16}[b]??14,v=De("badge",`badge--${d}`,`badge--${b}`,p!=="filled"?`badge--${p}`:"",_,s),x=g?.startsWith("--")?`var(${g})`:g,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:v,style:y,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[f&&n.jsx(qe,{icon:f,size:h,className:"badge__icon"}),c??u,C&&n.jsx(qe,{icon:C,size:h,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([]),u=o.useMemo(()=>{const _=[{title:null,columns:e}];let h=e;for(const v of l){const x=h?.[v.ci]?.items?.[v.ii];if(!x||!Array.isArray(x.children)||!x.children.length)break;h=[{title:null,items:x.children}],_.push({title:x.label||null,columns:h})}return _},[e,l]),d=u[u.length-1],p=u.length-1,m=o.useCallback(()=>c(_=>_.slice(0,Math.max(0,Math.min(_.length,p)-1))),[p]),f=o.useRef(null),C=o.useRef(null),g=u.length;o.useEffect(()=>{C.current||(C.current=document.activeElement);let _=0,h=0;const v=()=>{const x=f.current?.querySelector("button:not([disabled])");if(x&&x.offsetParent){x.focus({preventScroll:!0});return}h++<20&&(_=requestAnimationFrame(v))};return _=requestAnimationFrame(v),()=>cancelAnimationFrame(_)},[g]),o.useEffect(()=>()=>{C.current?.focus?.({preventScroll:!0})},[]);const b=o.useCallback((_,h,v)=>{if(_){if(Array.isArray(_.children)&&_.children.length){c(x=>[...x.slice(0,p),{ci:h,ii:v}]);return}try{typeof _.onClick=="function"&&_.onClick()}catch{}try{_&&_.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t,p]);return n.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(u.length>1||d.title)&&n.jsxs("div",{className:"tooltip-menu__header",children:[u.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:d.title})]}),n.jsx("div",{className:"tooltip-menu__columns",ref:f,children:d.columns&&d.columns.map((_,h)=>n.jsxs("div",{className:"tooltip-menu__column",children:[_.title?n.jsx("div",{className:"tooltip-menu__column-title body-3",children:_.title}):null,n.jsx("div",{className:"tooltip-menu__items",children:(_.items||[]).map((v,x)=>n.jsxs(o.Fragment,{children:[v.separatorBefore&&x>0&&n.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),n.jsx(le,{htmlType:"button",className:"tooltip-menu__item",size:i,type:v.label?"bar":"dot",icon:v.selected?"check":v.icon||"none",rightIcon:Array.isArray(v.children)&&v.children.length?"chevron-right":v.badgeCount?n.jsx(mt,{type:"dot",position:"inline",number:Math.min(v.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:v.label,ariaLabel:v.label&&v.badgeCount&&v.badgeCount>0?s("nav.badgeLabel",{label:v.label,count:v.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):v.label,onClick:()=>b(v,h,x),selected:v.selected,disabled:v.disabled,showTooltipInfo:v.tooltip||!1,useBorder:!1,align:"left"})]},x))})]},h))})]})}const Ua=52,ea=10,rl=e=>e&&e>0?e:0;function ol({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:s,moreItems:i=[]}){const{t:l}=ge.useTranslation(),c=r==="manager"?"malgwi":"manager",u=r==="manager"?"arrow-left":"arrow-right",d=r==="manager"?l("nav.modeLabelMalgwi","\uB9D0\uADC0"):l("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=o.useRef(null),[m,f]=o.useState(0),C=e.length;o.useEffect(()=>{const W=p.current;if(!W||(f(W.clientWidth),typeof ResizeObserver>"u"))return;const J=new ResizeObserver(I=>f(I[0].contentRect.width));return J.observe(W),()=>J.disconnect()},[]);const g=Ua+1,b=o.useRef(!1),_=m>0&&i.length===0&&b.current?m+g:m,h=C*(Ua+ea)-ea<=_,v=m<=0?C:i.length>0?Math.floor((m+ea)/(Ua+ea)):h?C:Math.floor((_-g+ea)/(Ua+ea)),x=m>0&&v<C,y=x?v:C,k=e.slice(0,y),w=e.slice(y),N=x||i.length>0;o.useEffect(()=>{b.current=N});const B=o.useCallback((W,J)=>({position:"fixed",bottom:window.innerHeight-W.top+8,right:window.innerWidth-W.right,zIndex:va(J)}),[]),A=o.useId(),{open:D,toggle:$,close:F,style:P,triggerRef:G,menuRef:E}=xa({computeStyle:B,onScroll:"ignore",onResize:"reposition"}),M=o.useCallback((W,J)=>J>0?l("nav.badgeLabel",{label:W,count:J,defaultValue:"{{label}}, {{count}}\uAC1C"}):W,[l]),H=o.useCallback(()=>s?.(c),[s,c]),ee=o.useMemo(()=>w.find(W=>!!W.key&&W.key===t)??i.find(W=>W.selected||W.key&&W.key===t),[w,t,i]),q=o.useMemo(()=>[{items:[...w.map(W=>({label:W.label,icon:W.icon,badgeCount:W.badgeCount,selected:!!W.key&&W.key===t,closeOnSelect:!0,disabled:W.state==="disabled",onClick:()=>{W.state!=="disabled"&&(W.key&&a&&a(W.key),F())}})),...i.map(W=>({label:W.label,icon:W.icon,badgeCount:W.badgeCount,selected:W.selected??(!!W.key&&W.key===t),closeOnSelect:!0,onClick:()=>{W.onClick?.(),F()}}))]}],[w,i,t,a,F]),U=[...w,...i].reduce((W,J)=>W+rl(J.badgeCount),0);return n.jsxs("nav",{className:"bottom-nav","aria-label":l("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:d,className:"bottom-nav-item",onClick:H})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",ref:p,children:k.map((W,J)=>{const I=rl(W.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(le,{htmlType:"button",size:52,type:"dot",icon:W.icon,ariaLabel:M(W.label,I),selected:!!W.key&&W.key===t,disabled:W.state==="disabled",className:"bottom-nav-item",onClick:()=>W.key&&a?.(W.key)}),I>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(mt,{type:"dot",position:"top-right",number:Math.min(I,99),size:24})})]},W.key??`__slot-${J}`)})}),N&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),n.jsx("div",{className:"bottom-nav__right",children:n.jsxs("div",{ref:G,className:"bottom-nav__slot",children:[n.jsx(le,{htmlType:"button",size:52,type:"dot",icon:ee?.icon??"ellipsis",ariaLabel:M(ee?.label??l("nav.more","\uB354\uBCF4\uAE30"),U),selected:!!ee,className:"bottom-nav-item",onClick:$,"aria-expanded":D,"aria-controls":D?A:void 0}),U>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(mt,{type:"dot",position:"top-right",number:Math.min(U,99),size:24})}),D&&qt.createPortal(n.jsx("div",{id:A,role:"group","aria-label":l("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:P,ref:E,children:n.jsx(_a,{columns:q,onClose:F})}),document.body)]})})]})]})}function sl(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 il(e,t,a){return a&&a>0?e("nav.badgeLabel",{label:t,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):t}function ib(e){const{t}=ge.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:i,onSetting:l,onHelp:c,onAccount:u}=e||{},d="default";return s||i||l||c||u?n.jsxs("div",{className:"side-nav__footer",children:[s&&n.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,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:d,icon:"bell",ariaLabel:il(t,t("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&n.jsx(mt,{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:d,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:d,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),u&&n.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:u,selected:a==="account"})]}):null}function ll(e){const{t}=ge.useTranslation(),{item:a,itemKey:r,label:s,icon:i,active:l,onClick:c,style:u,state:d,labelStyle:p}=e||{},m=a?.key??r??"",f=a?.label??s??"",C=a?.icon??i??"",g=a?.badge??0,b=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(qe,{icon:C,label:typeof f=="string"?f:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),_=d==="disabled",h=`side-nav__item ${l?"active":""} ${d||""} ${_?"disabled":""} ${a?.child?"side-nav__item--child":""}`,v=o.useCallback(x=>{if(_)return;const y=x.detail>0;if(y)try{x.currentTarget.blur()}catch{}c?.(m,x.currentTarget,y)},[_,m,c]);return n.jsxs("button",{type:"button",className:h,onClick:v,"aria-label":typeof f=="string"?il(t,f,g):void 0,"aria-current":l?"page":void 0,style:u,"aria-disabled":_,children:[b,n.jsx("span",{className:"side-nav__label button-1 f",style:p,children:f}),g>0&&n.jsx(mt,{type:"dot",position:"inline",number:Math.min(g,99),size:24,"aria-hidden":!0}),d==="loading"&&n.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":t("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function cl(e){const{t}=ge.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:f}=e||{},C=m==="manager",g=o.useCallback(()=>f?.(C?"malgwi":"manager"),[f,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(b=>!b.section&&(b.key||b.label)).map((b,_)=>n.jsxs(o.Fragment,{children:[b.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(ll,{item:b,active:!!b.key&&b.key===r,state:b.disabled?"disabled":void 0,onClick:(h,v,x)=>{if(b.disabled)return;if(b.href){if(sl(b.href)&&window.open(b.href,"_blank","noopener,noreferrer"),x)try{v?.blur()}catch{}return}s?.(b.key);try{const k=document.querySelector(".content-area");k?k.scrollTop=0:window.scrollTo({top:0})}catch{}if(!x)return;try{v?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const y=document.querySelector(".header");if(y){const k=typeof y.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&k&&y.matches(":hover"))){y.classList.add("header--force-collapsed");const w=()=>{y.classList.remove("header--force-collapsed"),y.removeEventListener("mouseenter",w)};y.addEventListener("mouseenter",w)}}}})]},b.key??`side-nav__item-${_}`)),f&&n.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),f&&n.jsx(ll,{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:g})]}),n.jsx(ib,{activeKey:r,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p})]})}var Xr='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',Jr='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',lb='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 ul({appMode:e}){const{t}=ge.useTranslation(),a=e==="manager",r=a?Jr:Xr,s=lb,i=tn("(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 dl({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:s,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:f}){const{t:C}=ge.useTranslation(),g=tn("(max-width: 767px)"),b=o.useMemo(()=>(a??[]).filter($=>!$.section&&($.key||$.label)).map($=>({key:$.key,label:typeof $.label=="string"?$.label:void 0,icon:$.icon,state:$.disabled?"disabled":void 0,badgeCount:$.badge})),[a]),_=o.useCallback($=>{const F=a?.find(P=>P.key===$);if(!F?.disabled){if(F?.href){sl(F.href)&&window.open(F.href,"_blank","noopener,noreferrer");return}t?.($)}},[a,t]),h=o.useMemo(()=>{const $=[];return l&&$.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&$.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),d&&$.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),p&&$.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),u&&$.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:u}),$},[C,l,c,d,p,u,i]),v=o.useCallback(($,F)=>({position:"fixed",top:$.bottom+8,right:Math.max(8,window.innerWidth-$.right),zIndex:va(F)}),[]),x=o.useId(),{open:y,toggle:k,close:w,style:N,triggerRef:B,menuRef:A}=xa({computeStyle:v,onScroll:"ignore",onResize:"reposition"}),D=o.useMemo(()=>[{items:h.map($=>({label:$.label,icon:$.icon,badgeCount:$.badgeCount,selected:$.selected??(!!$.key&&$.key===e),closeOnSelect:!0,onClick:()=>{$.onClick?.(),w()}}))}],[h,e,w]);return n.jsxs("aside",{className:`header${m==="manager"?" header--manager":""}`,children:[n.jsxs("div",{className:"header__bi",children:[n.jsx(ul,{appMode:m}),n.jsxs("div",{className:"header__menu-button",ref:B,children:[n.jsx(le,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",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:k,"aria-expanded":y,"aria-controls":y?x:void 0}),!!c&&!!i&&i>0&&n.jsx(mt,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),y&&qt.createPortal(n.jsx("div",{id:x,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:N,ref:A,children:n.jsx(_a,{columns:D,onClose:w})}),document.body)]})]}),n.jsx(cl,{items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:f}),g&&n.jsx(ol,{items:b,activeKey:e??void 0,onChange:_,appMode:m,onAppModeChange:f})]})}const cb=dl,ub=()=>kt.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function pl(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 db(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function pb(e){if(e.durationDays&&e.durationDays>0){const i=e.durationDays;return i%365===0?`${i/365}\uB144`:`${i}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);if(r)return r[1].replace(/\s+/g,"");const s=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return s?s[2].toLowerCase()==="year"?`${s[1]}\uB144`:`${s[1]}\uC77C`:a||ub()}function mb(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 ml(e){return{type:e.type??db(e),plan:pb(e),label:e.label,price:pl(e.price),originalPrice:pl(e.originalPrice),discountLabel:e.discountLabel}}var hb='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7326)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23FAFAFA"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23FAFAFA"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23FAFAFA"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23FAFAFA"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7326">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',fb='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 200 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="200" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M96.43,48.35v-24.1h30.62v24.1h-30.62ZM142.98,69.15v7.21h-44.76v-15.72h34.46v-2.13h-34.6v-7.21h44.35v15.72h-34.33v2.13h34.88,0ZM106.25,32.56v7.41h11.05v-7.41h-11.05ZM148.33,40.39h-5.9v9.06h-9.89v-25.81h9.89v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M185.54,47.87v9.4c-2.79,1.28-7.16,1.92-13.11,1.92h-.62v17.16h-9.89v-17.16h-12.22v-9.4h22.86c5.86,0,10.18-.64,12.98-1.92h0ZM152.59,34.28v-9.4h28.7v22.17h-9.89v-12.77h-18.81ZM198.31,76.36h-9.89V23.64h9.89v52.73h0Z"/>%0A <path class="st1" d="M46.43,17.86h-21.43c-9.86,0-17.86,7.99-17.86,17.86v21.43c0,9.86,7.99,17.86,17.86,17.86h21.43c9.86,0,17.86-7.99,17.86-17.86v-21.43c0-9.86-7.99-17.86-17.86-17.86Z"/>%0A <path class="st1" d="M34.86,50.74c-9.03,9.94-24.25,10.93-34.48,2.42-.47-.39-.52-1.1-.11-1.55l16.07-17.69,18.51,16.81Z"/>%0A <path class="st1" d="M53.57,25h-21.43c-9.86,0-17.86,8-17.86,17.86v21.43c0,9.86,8,17.86,17.86,17.86h16.11c.96,0,1.75.78,1.75,1.75,0,1.02.88,1.83,1.89,1.74,10.95-.96,19.54-10.15,19.54-21.35v-21.43c0-9.86-8-17.86-17.86-17.86Z"/>%0A <path class="st2" d="M25,25c-5.92,0-10.71,4.8-10.71,10.71v28.57c0,3.09.79,6,2.17,8.54,2.54,1.39,5.45,2.17,8.54,2.17h28.57c5.92,0,10.71-4.8,10.71-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.54-1.39-5.45-2.17-8.54-2.17h-28.57Z"/>%0A <path class="st3" d="M25.36,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M36.07,57.14c-1.04,0-2.09-.27-3.04-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.59-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.33-4.44,2.91-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.35-5.56-.99-.06-1.94.12-2.81.54-.89.43-1.96.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.76.3,8.58,4.26,8.69,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',Cb='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',gb='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',bb='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>',yb='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',hl='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"},Qr=new WeakMap;function vb(e){if(e)return Qr.get(e)}function bn(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),Qr.set(e,t))}function yn(e){e&&(e.style.removeProperty(Hn.text),e.style.removeProperty(Hn.sub),e.style.removeProperty(Hn.copyright),Qr.delete(e))}const fl={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Cl(e={}){const t=pt(fl,bn,yn);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("${hl}")`}})]})}const gl="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 xb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},_b=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function bl(e={}){const t=pt(xb,bn,yn),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:_b.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:gl,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 wb={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},kb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Ab(e={}){const t=pt(wb,bn,yn),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:kb.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:gl,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("${hl}")`}})]})}const Bb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Nb(e={}){const t=pt(Bb,bn,yn);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 Db={Logo_speechear_kr:{"":Xr,_white:hb,_textWhite:fb,_black:Cb},Logo_speechearManager_kr:{"":Jr,_white:gb,_textWhite:bb,_black:yb}};function Sb(e,t){if(e)return Db[e]?.[t??""]??void 0}const Eb={speechear:Xr,manager:Jr},Tb={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},yl=10;function vl(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 jb(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===kt.t("passCard.specialLabel");return r?n.jsx(Nb,{}):s?n.jsx(Ab,{}):n.jsx(bl,{})}return n.jsx(Cl,{})}function xl({product:e,showPrice:t=!1,plan:a,type:r,endDate:s,remainingSeconds:i,endInclusive:l=!1,state:c="active",bg:u,bgOnly:d=!1,textColor:p,subColor:m,copyrightColor:f,logoSrc:C,label:g,price:b,originalPrice:_,discountLabel:h,onUse:v,onRefund:x,onDelete:y}){const{t:k}=ge.useTranslation(),w=e?ml(e):void 0,N=r??w?.type??"speechear",B=a??w?.plan??k("passCard.planSuffix","\uC774\uC6A9\uAD8C"),A=g??w?.label,D=b??(t?w?.price:void 0),$=_??(t?w?.originalPrice:void 0),F=h??w?.discountLabel,P=o.useMemo(()=>{if(D)return null;const oe=e?.durationDays??mb(e?.code);if(!oe||oe<=0)return i!=null?{percent:null,remainingLabel:vl(i,k)}:null;const z=oe*86400;let re;if(i!=null)re=i;else if((c==="active"||c==="expired")&&s){const fe=new Date(s).getTime();if(Number.isNaN(fe))return null;const ye=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(s)),Ne=/^(\d{4})-(\d{2})-(\d{2})/.exec(ga()),we=Math.round(ye&&Ne?(Date.UTC(+ye[1],+ye[2]-1,+ye[3])-Date.UTC(+Ne[1],+Ne[2]-1,+Ne[3]))/864e5:(fe-Date.now())/864e5);re=Math.max(0,l?we+1:we)*86400}else c==="expired"?re=0:re=z;const ce=Math.max(0,Math.min(100,Math.floor(Math.min(re,z)/z*100)));return c==="pending"&&ce>=100?null:{percent:ce,remainingLabel:vl(re,k)}},[D,c,s,i,l,e?.durationDays,e?.code,k]),G=o.useRef(null),[E,M]=o.useState({}),[H,ee]=o.useState(null),q=!!(v||x||y),U=o.useRef(!1),W=o.useRef(void 0),[J,I]=o.useState(C);o.useLayoutEffect(()=>{I(C)},[C]),o.useLayoutEffect(()=>{const oe=G.current;oe&&(p!==void 0&&oe.style.setProperty("--pass-card-text",p),m!==void 0&&oe.style.setProperty("--pass-card-sub",m),f!==void 0&&oe.style.setProperty("--pass-card-copyright",f))},[p,m,f]),o.useLayoutEffect(()=>{const oe=G.current;if(!oe)return;const z=vb(oe);if(!C){const re=Tb[N],ce=c==="expired"?"_black":z?.logoColor??"",fe=Sb(re,ce);I(fe)}},[u,C,N,c]);const T=oe=>{const z=G.current;if(!z)return null;const{left:re,top:ce,width:fe,height:ye}=z.getBoundingClientRect(),Ne=(oe.clientX-re)/fe-.5;return{rotateX:-((oe.clientY-ce)/ye-.5)*yl,rotateY:Ne*yl}},O=(oe,z)=>{const re=z*-.7,ce=oe*.7+10,fe=20+(Math.abs(oe)+Math.abs(z))*.4;return`${re}px ${ce}px ${fe}px rgba(0, 0, 0, 0.18)`},R=o.useCallback(oe=>{if(Jn())return;U.current=!0,clearTimeout(W.current),W.current=setTimeout(()=>{U.current=!1},200);const z=T(oe);z&&M({transform:`perspective(800px) rotateX(${z.rotateX}deg) rotateY(${z.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:O(z.rotateX,z.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)"})},[]),S=o.useCallback(oe=>{if(Jn())return;const z=T(oe);if(!z)return;const re=U.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";M({transform:`perspective(800px) rotateX(${z.rotateX}deg) rotateY(${z.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:O(z.rotateX,z.rotateY),transition:re})},[]),L=o.useCallback(()=>{clearTimeout(W.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)"})},[]),K=o.useCallback(()=>ee(null),[]),Z=o.useMemo(()=>{const oe=k("passCard.planSuffix","\uC774\uC6A9\uAD8C"),z=B.replace("\uC774\uC6A9\uAD8C","").replace(oe==="\uC774\uC6A9\uAD8C"?"":oe,"").trim(),re=z.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:z})},[B,k]),Q=o.useMemo(()=>{const oe=Yn(D);if(!oe)return null;const z=oe.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!z)return n.jsx("span",{className:"h1",children:oe});const[,re,ce,fe]=z;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:ce}),fe.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:fe.trim()})]})},[D]),pe=o.useCallback(()=>{q&&ee(oe=>{if(oe)return null;const z=G.current?.getBoundingClientRect();if(!z)return null;const re=50;return{left:z.left,right:z.right,width:z.width,height:z.height,x:z.x,y:z.y+re,top:z.top+re,bottom:z.bottom+re}})},[q]),Te=o.useCallback(oe=>{q&&(oe.key==="Enter"||oe.key===" ")&&(oe.preventDefault(),pe())},[q,pe]),ke=[{items:[...v?[{label:k("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{v(),ee(null)},closeOnSelect:!0}]:[],...x?[{label:k("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{x(),ee(null)},closeOnSelect:!0}]:[],...y?[{label:k("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{y(),ee(null)},closeOnSelect:!0}]:[]]}];return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card-frame",children:n.jsxs("div",{ref:G,className:`pass-card pass-card--${c}${q?" pass-card--clickable":""}`,style:E,onMouseEnter:R,onMouseMove:S,onMouseLeave:L,onPointerUp:oe=>{oe.pointerType==="touch"&&L()},onPointerCancel:oe=>{oe.pointerType==="touch"&&L()},onClick:pe,onKeyDown:q?Te:void 0,role:q?"button":void 0,tabIndex:q?0:void 0,"aria-haspopup":q?"menu":void 0,"aria-expanded":q?!!H:void 0,children:[u??jb(N,B,A),!d&&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??Eb[N],className:"pass-card__logo",alt:N==="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:Z}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:A?k("passCard.labeledPlan",{label:A}):k("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),D?n.jsxs("div",{className:"pass-card__price-area",children:[F&&n.jsx("span",{className:"pass-card__discount body-3",children:F}),n.jsxs("div",{className:"pass-card__price",children:[$&&n.jsx("span",{className:"pass-card__price-original body-3",children:Yn($)}),Q]})]}):P?n.jsxs("div",{className:"pass-card__usage",children:[n.jsx("span",{className:"h5b pass-card__usage-remaining",children:P.remainingLabel}),P.percent!=null&&n.jsxs("span",{className:"pass-card__usage-percent",children:[n.jsx("span",{className:"h1 pass-card__usage-value",children:P.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."})]})]})}),H&&n.jsx(Cn,{anchorRect:H,onClose:K,ariaLabel:k("tooltip.menu","\uBA54\uB274"),children:n.jsx(_a,{columns:ke,onClose:K,size:"small"})})]})}const Mb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Lb(e={}){const t=`passcard-sound-line-grad-${o.useId()}`,a=pt(Mb,bn,yn);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 $b={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Rb(e={}){const t=pt($b,bn,yn);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 Pb(e,t){if(e){if(t==="manager_pro")return n.jsx(Rb,{});if(t==="manager_standard")return n.jsx(Lb,{});if(t==="manager_lite")return n.jsx(bl,{})}}function Ib(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 Fb(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||{},u=y=>!!y&&!!c?.includes(y),d=y=>y.onceOnly??/오픈\s*특가/.test(y.label??""),p=(s.tiers||[]).some(y=>d(y)&&u(y.code)),m=y=>{const k=y.prices?y.prices[l]:y.price;return k?(s.tiers||[]).some(w=>!!w.badge&&w.originals?.[l]===k):!1},f=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",C=t("payment.plan.freePrice","\uBB34\uB8CC"),g=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),b=y=>y.prices?y.prices[l]:y.price,_=(s.tiers||[]).length>0&&(s.tiers||[]).every(y=>{const k=b(y);return k==="\uBB34\uB8CC"||k===C||k==="0\uC6D0"||typeof k=="string"&&/\d/.test(k)&&!/[1-9]/.test(k)}),h=(s.tiers||[]).length>0&&(s.tiers||[]).every(y=>{const k=b(y);return k==="\uBB38\uC758"||k===g}),v=s.group==="org",x=v?"manager":"speechear";return n.jsxs("div",{className:"payment-plan__card",style:{borderColor:f,"--plan-color":f},children:[s.cardBadge&&n.jsx("div",{className:"payment-plan__card-badge",children:n.jsx(mt,{label:s.cardBadge,variant:"main",size:"medium",fill:"soft"})}),n.jsxs("div",{className:"payment-plan__title",children:[n.jsx("p",{className:"payment-plan__quote body-3b",style:{color:f},children:s.quote||"\xA0"}),n.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),n.jsx("p",{className:"payment-plan__subtitle body-3",children:s.subtitle})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.recommendedFor||[]).map((y,k)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(qe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:f}}),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(qe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:f}}),y]},k))})]}),n.jsx("div",{className:"payment-plan__card-pricing",children:_?null:h?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,w=d(y),N=w||y.openPromo===!0,B=k.replace(/^오픈\s*특가\s*/,"")||a,A=y.prices?y.prices[l]:y.price,D=y.badge?N?`${r}
852
- ${y.badge}`:y.badge:void 0;if(w&&u(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:Ib(A)})})]},y.id);const $=s.tier??(v?s.title:void 0),F=n.jsx(xl,{showPrice:!0,product:{type:x,code:y.code,name:B,label:$,price:A,originalPrice:y.originals?.[l]??void 0,discountLabel:D},bg:Pb(v,s.id)}),P=()=>i?.({...y,productId:s.id,productTitle:s.title,preview:F});return n.jsx("div",{className:"payment-plan__pricing-card",onClick:P,onKeyDown:i?G=>{G.target===G.currentTarget&&(G.key==="Enter"||G.key===" ")&&(G.preventDefault(),P())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:F},y.id)})})})})]})}function Ob({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 eo='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 _l={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Hb(){const e=pt(_l,bn,yn);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("${eo}")`}})})}const wl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Vb(e={}){const t=pt(wl,bn,yn);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 kl({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:u=!1,pulseSelectedDuration:d,pulseScale:p,clickable:m=!1,onSelectSpeaker:f,buttonSize:C=40,showIcon:g=!0,onCenterClick:b,centerLabel:_,centerDisabled:h=!1,centerAttention:v=!1,shortcutAnchor:x="top-right",shortcutScale:y,scaleShortcut:k=!1}){const{t:w}=ge.useTranslation(),N=Math.max(0,Math.min(1,a)),B=t/2,A=110/300,D=.18,$=z=>t*(A+(z-1)*D),F=z=>{const re=$(z.row??1),ce=z.angleDeg*Math.PI/180;return{x:B+re*Math.cos(ce),y:B+re*Math.sin(ce)}},P=Math.max(...e.map(z=>z.row??1),1),G=t*.08,E=t*.1,M=t*.24,H=t-2*G,ee=t-E-M,q=t-M/2,U=o.useMemo(()=>[...new Set(e.map(z=>z.deg))].sort((z,re)=>z-re),[e]),W=U.length,J=Math.max(68,W>1?H/(W-1):0),I=o.useMemo(()=>new Map(U.map((z,re)=>[z,re])),[U]),T=z=>{const re=I.get(z.deg)??0,ce=B+(re-(W-1)/2)*J,fe=P>1?Math.min(68,ee/(P-1)):0,ye=fe*(P-1),Ne=E+(ee-ye)/2,we=P===1?E+ee*.4:Ne+(P-(z.row??1))*fe;return{x:ce,y:we}},O=z=>{const re=F(z),ce=T(z);return{x:ka(re.x,ce.x,N),y:ka(re.y,ce.y,N)}},R={x:B,y:ka(B,q,N)},S=Math.round(C*1.2),L=Math.round(Math.max(16,Math.min(80,C*.7))),K=[],Z=new Map;for(const z of e){const re=z.row??1;Z.has(re)||Z.set(re,[]),Z.get(re).push(z)}for(const[z,re]of Z.entries()){if(re.length<2)continue;const ce=[...re].sort((ve,Ye)=>ve.deg-Ye.deg),fe=ce.map(ve=>O(ve)),ye=ce.map(ve=>ve.deg),Ne=ye[ye.length-1]-ye[0],we=Ne/(ye.length-1),Be=360-Ne,je=ce.length>=3&&we>0&&Be<=we*1.5,se=Math.round($(z)*1e3)/1e3,te=(ve,Ye,He,Ue)=>{const Se=(Ye.angleDeg-ve.angleDeg+540)%360-180;if(Se===0)return`L ${Ue.x} ${Ue.y}`;if(N===0)return`A ${se} ${se} 0 0 ${Se>0?1:0} ${Ue.x} ${Ue.y}`;const Ge=(ve.angleDeg+Se/2)*Math.PI/180,$e={x:B+se*Math.cos(Ge),y:B+se*Math.sin(Ge)},Ie={x:(He.x+Ue.x)/2,y:(He.y+Ue.y)/2},Ve={x:ka($e.x,Ie.x,N),y:ka($e.y,Ie.y,N)},at={x:2*Ve.x-Ie.x,y:2*Ve.y-Ie.y};return`Q ${at.x} ${at.y} ${Ue.x} ${Ue.y}`},me=je?[...ce,ce[0]]:ce,ne=je?[...fe,fe[0]]:fe;let Ce=`M ${ne[0].x} ${ne[0].y}`;for(let ve=1;ve<ne.length;ve++)Ce+=" "+te(me[ve-1],me[ve],ne[ve-1],ne[ve]);K.push({key:`arc-${z}`,d:Ce})}const Q=o.useMemo(()=>new Set(s??[]),[s]),pe=z=>({idle:"",active:w("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:w("soundCompass.state.played","\uB4E4\uC74C"),correct:w("soundCompass.state.correct","\uC815\uB2F5"),wrong:w("soundCompass.state.wrong","\uC624\uB2F5")})[z],Te=z=>{if(r===z.id)return"active";if(c){if(z.id===l)return"correct";if(z.id===i&&i!==l)return"wrong"}return Q.has(z.id)?"played":"idle"},ke=z=>r===z.id?"loop":c?z.id===l?"loop":null:u&&z.id===i?"once":null,oe=(z,re)=>{switch(z){case"played":case"correct":return n.jsx(es,{size:re});case"wrong":return n.jsx(us,{size:re});default:return n.jsx(cs,{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:[N===0&&e.map(z=>{const{x:re,y:ce}=O(z);return n.jsx("line",{x1:R.x,y1:R.y,x2:re,y2:ce,stroke:"#dde3ec",strokeWidth:"1"},z.id)}),K.map(z=>n.jsx("path",{d:z.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},z.key))]}),v&&!h&&n.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:S,height:S,left:R.x-S/2,top:R.y-S/2}}),b?n.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${h?" sound-compass__center--disabled":""}`,style:{width:S,height:S,left:R.x,top:R.y},"aria-label":_,"aria-disabled":h||void 0,tabIndex:h?-1:0,onClick:h?void 0:b,children:n.jsx(fr,{size:L,color:"currentColor",strokeWidth:1.5})}):n.jsx("div",{className:"sound-compass__center",style:{width:S,height:S,left:R.x,top:R.y},children:n.jsx(fr,{size:L,color:"currentColor",strokeWidth:1.5})}),e.map((z,re)=>{const{x:ce,y:fe}=O(z),ye=Te(z),Ne=ke(z),we={...y!==void 0||k?{"--shortcut-badge-scale":String(y??Math.max(.75,Math.min(3,C/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:ye!=="idle"?10:1},Be=C,je=Math.round(Math.max(10,Math.min(56,Be*.38))),se=Math.round(Math.max(7,Math.min(18,Be*.2))),te=Math.round(Math.max(10,Math.min(56,Be*.4))),me=g==="answered"&&(ye==="played"||ye==="correct"||ye==="wrong"),ne=g===!0||me,Ce=!me;return n.jsxs("div",{className:"sound-compass__speaker-pos",style:{...we,left:ce-Be/2,top:fe-Be/2},children:[Ne&&n.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ye}`+(Ne==="once"?" sound-compass__pulse--once":""),style:{width:Be,height:Be,...Ne==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}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?()=>f?.(z.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ye}`,style:{width:Be,height:Be},"aria-label":pe(ye)?`${z.label}, ${pe(ye)}`:z.label,"aria-pressed":i!=null?z.id===i:void 0,children:[ne&&oe(ye,je),Ce&&n.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:g===!0?se:te},children:re+1})]}),z.shortcut&&n.jsx(kl,{keys:z.shortcut,anchor:x,className:"sound-compass__speaker-shortcut"})]},z.id)})]})})}function Wb({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 qb({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 Al({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:u=>t?.(u.target.checked)}),n.jsx("span",{className:"radio__dot"}),i&&n.jsx("span",{className:"radio__label body-2",children:i})]})}function Ub({options:e,value:t,onChange:a,name:r,disabled:s=!1,direction:i="vertical",className:l="",ariaLabel:c}){const u=o.useId(),d=r??`radio-group-${u}`;return n.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":c,children:e.map(p=>n.jsx(Al,{name:d,value:p.value,checked:t===p.value,disabled:s||p.disabled,label:p.label,onChange:m=>{m&&a?.(p.value)}},p.value))})}const Gb={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Kb({tone:e="info",title:t,message:a,children:r,dismissible:s=!1,onDismiss:i,live:l,className:c=""}){const{t:u}=ge.useTranslation(),[d,p]=o.useState(!1),m=o.useRef(null),f=o.useCallback(()=>{const v=m.current;v&&v.contains(document.activeElement)&&Va(v),p(!0),i?.()},[i]);if(d)return null;const C=De("alert",`alert--${e}`,c),g=l??(e==="danger"||e==="warning"?"assertive":"polite"),b=g==="assertive"?"alert":g==="polite"?"status":void 0,_=!!t,h=!!(a||r);return n.jsxs("div",{ref:m,className:C,role:b,children:[n.jsxs("div",{className:"alert__body",children:[n.jsxs("div",{className:"alert__header",children:[n.jsx(qe,{icon:Gb[e],size:20,className:"alert__icon"}),_&&n.jsx("span",{className:"alert__title body-2",children:t}),!_&&h&&n.jsx("div",{className:"alert__message body-3",children:a||r})]}),_&&h&&n.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&n.jsx("button",{type:"button",className:"alert__dismiss",onClick:f,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const Yb={ready:"search",guide:"info",error:"circle-alert"};function Zb(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 Xb({status:e="guide",label:t,children:a,emphasis:r,icon:s,className:i=""}){const l=s===!1?null:s??Yb[e],c=De("search-summary",`search-summary--${e}`,i),u=t??a,d=typeof u=="string"&&r&&r.length>0?Zb(u,r):u;return n.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&n.jsx(qe,{icon:l,size:18,className:"search-summary__icon"}),n.jsx("span",{className:"search-summary__text body-2",children:d})]})}function Aa({title:e,items:t}){const{t:a}=ge.useTranslation(),{anchorRect:r,openAt:s,close:i}=qa(),l=o.useRef(null),c=zr(!!r,(u,d)=>{u&&d?s(l.current?.querySelector("button")??d):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:u=>{Xn(u)||s(u.currentTarget)},onPointerLeave:u=>{Xn(u)||i()},onClick:u=>{c.touchPress(u.currentTarget)},onFocus:u=>{Jn()||s(u.currentTarget)},onBlur:i}),r&&n.jsx(Fn,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:i})]})}function Jb({items:e=[],value:t,onChange:a,className:r="",size:s=40}){const i=o.useId(),{t:l}=ge.useTranslation(),c=o.useRef(null),u=e.find(b=>!b.disabled)?.key,d=e.some(b=>b.key===t)?t:u??e[0]?.key,p=e.find(b=>b.key===d&&!b.disabled)?.key??u,m=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),f=(b,_=m())=>{if(_.length===0)return;const h=(b%_.length+_.length)%_.length;_[h]?.focus(),_[h]?.click()},C=b=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(b.key))return;b.preventDefault();const _=m(),h=_.indexOf(b.currentTarget);b.key==="ArrowRight"||b.key==="ArrowDown"?f(h+1,_):b.key==="ArrowLeft"||b.key==="ArrowUp"?f(h-1,_):b.key==="Home"?f(0,_):f(_.length-1,_)},g=e.find(b=>b.key===d);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(b=>n.jsx("button",{id:`tabs__tab-${i}-${b.key}`,type:"button",role:"tab","aria-selected":b.key===d,"aria-controls":`tabs__panel-${i}-${b.key}`,disabled:b.disabled,tabIndex:b.key===p?0:-1,className:`tabs__tab body-2${b.key===d?" tabs__tab--active":""}`,onClick:()=>{b.key!==t&&a?.(b.key)},onKeyDown:C,children:b.label},b.key))}),g&&n.jsx("div",{id:`tabs__panel-${i}-${g.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${g.key}`,tabIndex:0,className:"tabs__panel",children:g.panel},g.key)]})}const Qb={xs:12,sm:16,md:20,lg:28,xl:36};function e4(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 t4({src:e,name:t,size:a="md",shape:r="circle",className:s=""}){const{t:i}=ge.useTranslation(),[l,c]=o.useState(null),u=!!e&&l===e,d=t?e4(t):"",p=!!e&&!u,m=!p&&!!d,f=t||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return n.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":f,children:[p&&n.jsx("img",{className:"avatar__image",src:e,alt:f,onError:()=>c(e??null)}),!p&&m&&n.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!p&&!m&&n.jsx(qe,{icon:"user-round",size:Qb[a],className:"avatar__icon"})]})}function n4(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 a4({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:i,onRemove:l,className:c=""}){const{t:u}=ge.useTranslation(),d=o.useRef(null),[p,m]=o.useState(!1),[f,C]=o.useState([]),g=i??f,b=w=>{if(!w||w.length===0)return;const N=Array.from(w).filter(A=>n4(A,t));if(N.length===0)return;const B=a?N:N.slice(0,1);if(i===void 0){const A=a?[...g,...B]:B;C(A),e?.(A)}else e?.(B)},_=w=>{w.preventDefault(),!r&&m(!0)},h=w=>{w.preventDefault(),m(!1)},v=w=>{w.preventDefault(),m(!1),!r&&b(w.dataTransfer.files)},x=w=>{const N=w.target;try{b(N.files)}finally{N.value=""}},y=()=>{r||d.current?.click()},k=w=>{if(!r&&(l?.(w),i===void 0)){const N=g.filter((B,A)=>A!==w);C(N),l||e?.(N)}};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:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),y())},onDragOver:_,onDragLeave:h,onDrop:v,children:[n.jsx(qe,{icon:"upload",size:24,className:"file-upload__icon"}),n.jsx("span",{className:"file-upload__prompt body-2",children:u("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:w=>{w.stopPropagation(),y()},children:u("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),n.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:x,tabIndex:-1})]}),s&&g.length>0&&n.jsx("ul",{className:"file-upload__list",children:g.map((w,N)=>n.jsxs("li",{className:"file-upload__list-item body-3",children:[n.jsx("span",{className:"file-upload__file-name body-3",children:w.name}),n.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":u("fileUpload.removeAriaLabel",{name:w.name}),disabled:r,onClick:()=>k(N),children:n.jsx(qe,{icon:"x",size:14})})]},`${w.name}-${N}`))})]})}function r4({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(qe,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const o4={small:14,medium:20,large:28};function s4({value:e,onChange:t,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:i,className:l=""}){const{t:c}=ge.useTranslation(),u=r||!t,[d,p]=o.useState(null),m=u?e:Number.isFinite(e)?Math.round(e):0,f=d??m,C=o4[s],g=w=>{w!==e&&t?.(w)},b=w=>{u||g(w)},_=w=>{u||Jn()||p(w)},h=o.useRef(null),v=w=>{const N=Math.min(a,Math.max(1,w));g(N),Array.from(h.current?.querySelectorAll("[data-star]")??[]).find(B=>B.dataset.star===String(N))?.focus()},x=w=>{if(!u){switch(w.key){case"ArrowRight":case"ArrowUp":v((m||0)+1);break;case"ArrowLeft":case"ArrowDown":v((m||1)-1);break;case"Home":v(1);break;case"End":v(a);break;default:return}w.preventDefault()}},y=m>=1&&m<=a?Math.round(m):1,k=()=>{u||p(null)};return n.jsx("div",{className:`rating rating--${s}${u?" rating--readOnly":""} ${l}`.trim(),ref:h,onKeyDown:x,role:u?"img":"radiogroup","aria-label":u?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:k,onPointerUp:w=>{w.pointerType==="touch"&&k()},onPointerCancel:w=>{w.pointerType==="touch"&&k()},children:Array.from({length:a},(w,N)=>{const B=N+1,A=Math.max(0,Math.min(1,f-N)),D=A>0&&A<1,$=n.jsxs("span",{className:"rating__star-wrap",children:[n.jsx(qe,{icon:"star",size:C,className:"rating__star rating__star--empty"}),A>0&&n.jsx("span",{className:`rating__star-fill${D?" rating__star-fill--half":""}`,style:D?{width:`${A*100}%`}:void 0,children:n.jsx(qe,{icon:"star",size:C,className:"rating__star rating__star--filled"})})]});return u?n.jsx("span",{className:"rating__item","aria-hidden":"true",children:$},B):n.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":m===B,"aria-label":c("rating.starLabel",{n:B}),"data-star":B,tabIndex:B===y?0:-1,onClick:()=>b(B),onMouseEnter:()=>_(B),children:$},B)})})}const i4=20,l4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function c4({value:e,onChange:t,palette:a=l4,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 u=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":u,"aria-label":u?`${c} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:c,children:u&&n.jsx(qe,{icon:"check",size:i4,className:"color-picker__check"})},c)})})}function u4({icon:e,count:t,title:a,className:r="",onClick:s,onMouseEnter:i,onMouseLeave:l}){const c=De("count-tile",s&&"count-tile--clickable",r);return n.jsxs("div",{className:c,onClick:s,onKeyDown:s?u=>{u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),u.currentTarget.click())}:void 0,onMouseEnter:i,onMouseLeave:l,role:s?"button":"img",tabIndex:s?0:void 0,"aria-label":a?`${a} ${t}`:String(t),children:[n.jsx(qe,{icon:e,size:20,className:"count-tile__icon"}),n.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]})}let Ba=0,Bl="",to="",Na=0;function Nl(){return Dl(!1)}function d4(){return Dl(!0)}function Dl(e){const t=typeof document<"u";Ba===0&&t&&(Bl=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Na===0&&(to=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&&(to?document.body.style.paddingRight=to:document.body.style.removeProperty("padding-right"))),Ba===0&&t&&(document.body.style.overflow=Bl))}}function p4(){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 m4({open:e,onClose:t,ariaLabel:a,title:r,children:s,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:c=!0,showClose:u=!0,className:d,contentClassName:p}){const{t:m}=ge.useTranslation(),f=o.useId(),C=o.useRef(null),g=o.useCallback(()=>t(),[t]);o.useEffect(()=>{if(!e)return;const v=document.activeElement,x=Nl(),y=C.current;return Fr(y,v),y?.focus(),()=>{x();const k=document.activeElement;(!k||k===document.body||y&&y.contains(k))&&Or(v)?.focus?.()}},[e]);const b=o.useRef(g),_=o.useRef(c);o.useEffect(()=>{b.current=g,_.current=c}),o.useEffect(()=>{if(e)return In(()=>{_.current&&b.current()})},[e]);const h=o.useRef(!1);return Pr(C,e),!e||typeof document>"u"?null:qt.createPortal(n.jsx("div",{className:De("dialog",d),onPointerDown:l?v=>{h.current=v.target===v.currentTarget}:void 0,onMouseDown:v=>{v.target===v.currentTarget&&v.preventDefault()},onClick:l?v=>{const x=h.current;h.current=!1,x&&v.target===v.currentTarget&&g()}:void 0,children:n.jsxs("div",{ref:C,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?f:void 0,tabIndex:-1,className:De("dialog__surface",`dialog__surface--${i}`,p),onClick:v=>v.stopPropagation(),children:[r?n.jsx("div",{className:"dialog__header",children:n.jsx("h2",{id:f,className:"dialog__title h4b",children:r})}):null,u?n.jsx("button",{type:"button",className:"dialog__close","aria-label":m("common.close","\uB2EB\uAE30"),onClick:g,children:n.jsx(p4,{})}):null,n.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function h4({columns:e,rows:t,rowKey:a,title:r,toolbar:s,empty:i,loading:l,caption:c,className:u=""}){const{t:d}=ge.useTranslation(),p=!l&&t.length===0;return n.jsxs("div",{className:De("board",u),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??d("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):t.map((m,f)=>n.jsx("tr",{className:"board__row",children:e.map(C=>n.jsx("td",{className:De("board__td",`board__cell--${C.align??"left"}`),children:C.render(m,f)},C.key))},a(m,f)))})]})]})}function f4({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 C4({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 g4({title:e,kind:t,body:a,badge:r,badgeSrc:s,footer:i,width:l,className:c=""}){const u=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:[u?n.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:u}):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 b4({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const s=ba(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 y4({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 v4({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 Sl({value:e,onChange:t,suggestions:a,openOnFocus:r=!1}){const s=o.useId(),[i,l]=o.useState(!1),[c,u]=o.useState(-1),d=o.useRef(null),p=o.useMemo(()=>{if(!a.length)return[];const N=e??"";return N?a.filter(B=>B.toLowerCase().includes(N.toLowerCase())):r?a:[]},[a,e,r]),[m,f]=o.useState(!1),C=o.useRef([]),g=m&&p.length===0?C.current:p;o.useEffect(()=>{g.length&&(C.current=g)},[g]);const b=o.useCallback(()=>f(!0),[]),_=o.useCallback(()=>f(!1),[]);o.useEffect(()=>{i||u(-1)},[i]),o.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const h=c<g.length?c:-1,v=o.useCallback(N=>{t?.(N),l(!1)},[t]),x=o.useCallback(()=>l(!0),[]),y=o.useCallback(()=>{l(!0),u(-1)},[]),k=o.useCallback(()=>{d.current=setTimeout(()=>l(!1),120)},[]),w=o.useCallback(N=>{N.nativeEvent.isComposing||N.keyCode===229||(N.key==="ArrowDown"?(N.preventDefault(),l(!0),u(B=>Math.min(g.length-1,(B<g.length?B:-1)+1))):N.key==="ArrowUp"?(N.preventDefault(),u(B=>Math.max(-1,(B<g.length?B:g.length)-1))):N.key==="Enter"?h>=0&&v(g[h]):N.key==="Escape"&&i&&(N.preventDefault(),l(!1)))},[g,h,i,v]);return{listId:s,open:i,activeIdx:h,filtered:g,handleFocus:x,handleBlur:k,handleInput:y,handleKeyDown:w,handleSelect:v,handleCompositionStart:b,handleCompositionEnd:_}}const El=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Vn(e){const{value:t,defaultValue:a,name:r,inputRef:s,onChange:i,label:l,ariaLabel:c,required:u,placeholder:d,type:p="text",disabled:m=!1,readOnly:f=!1,error:C,helperText:g,maxLength:b,size:_=48,variant:h="input",fullWidth:v=!1,newline:x=!1,multiline:y=!1,rows:k=3,leftIcon:w,rightIcon:N,clearable:B=!1,list:A,showCount:D=!0,className:$="",onFocus:F,onBlur:P,onKeyDown:G,onEnter:E,inputMode:M,autoComplete:H,autoFocus:ee,suggestions:q,openOnFocus:U=!1}=e,W=f||m?void 0:q,{t:J}=ge.useTranslation(),I=o.useId();!l&&!c&&kn(`TextField:unnamed:${I}`,"[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 T=`tf-${I}`,O=`tf-helper-${I}`,R=o.useRef(null),S=Sl({value:t??"",onChange:i,suggestions:W??[],openOnFocus:U}),L=!!W&&S.open&&S.filtered.length>0,K=o.useRef(null),[Z,Q]=o.useState(null),pe=o.useCallback(()=>{const ne=K.current;if(!ne||typeof window>"u")return;const Ce=ne.getBoundingClientRect(),ve=230,Ye=window.innerHeight-Ce.bottom<ve+8&&Ce.top>ve+8;Q({position:"fixed",left:Ce.left,width:Ce.width,...Ye?{bottom:window.innerHeight-Ce.top+8}:{top:Ce.bottom+8},zIndex:va(ne)})},[]);El(()=>{if(!L)return;pe();const ne=Ce=>{const ve=Ce.target;ve&&ve.nodeType===1&&ve.closest?.(".text-field__suggestions")||pe()};return window.addEventListener("scroll",ne,!0),window.addEventListener("resize",pe),()=>{window.removeEventListener("scroll",ne,!0),window.removeEventListener("resize",pe)}},[L,pe]);const Te=o.useCallback(ne=>{R.current=ne,typeof s=="function"?s(ne):s&&(s.current=ne)},[s]),ke=t!==void 0,oe=ke&&p==="password",[z,re]=o.useState((a??"").length),ce=ke?(t??"").length:z,fe=o.useRef(t);El(()=>{fe.current=t}),o.useEffect(()=>{const ne=R.current;if(!oe||!ne)return;const Ce=t??"";ne.value!==Ce&&(ne.value=Ce)},[oe,t]),o.useEffect(()=>{if(!x||!R.current)return;const ne=R.current;ne.style.height="",ne.scrollHeight>ne.clientHeight&&(ne.style.height=`${ne.scrollHeight}px`)},[t,z,x]);const ye=b!=null&&ce>b,Ne=_===32?16:20,we=De("text-field",`text-field--s${_}`,h==="display"?"text-field--display":"",v?"text-field--full-width":"",m?"text-field--disabled":"",f?"text-field--readonly":"",C?"text-field--error":"",w?"text-field--has-left-icon":"",N||B?"text-field--has-right-icon":"",$),Be={id:T,...oe?{}:ke?{value:t}:{defaultValue:a},ref:Te,placeholder:d,name:r,disabled:m,readOnly:f,autoFocus:ee,maxLength:b,list:A,inputMode:M,autoComplete:H,"aria-label":!l&&c?c:void 0,"aria-required":u,"aria-invalid":!!C,"aria-describedby":g||C?O:void 0,role:W?"combobox":void 0,"aria-autocomplete":W?"list":void 0,"aria-haspopup":W?"listbox":void 0,"aria-expanded":W?S.open:void 0,"aria-controls":L?S.listId:void 0,"aria-activedescendant":L&&S.activeIdx>=0?`${S.listId}-option-${S.activeIdx}`:void 0,onChange:ne=>{const Ce=ne.target;ke||re(Ce.value.length),i?.(Ce.value),W&&S.handleInput(),oe&&queueMicrotask(()=>{const ve=fe.current??"";Ce.value!==ve&&(Ce.value=ve)})},onCompositionStart:W?S.handleCompositionStart:void 0,onCompositionEnd:W?S.handleCompositionEnd:void 0,onFocus:(ne=>{F?.(ne),W&&S.handleFocus()}),onBlur:(ne=>{P?.(ne),W&&S.handleBlur()}),onKeyDown:(ne=>{W&&ne.key==="Enter"&&!ne.nativeEvent.isComposing&&S.activeIdx>=0?ne.preventDefault():E&&ne.key==="Enter"&&!ne.nativeEvent.isComposing&&(ne.preventDefault(),E()),G?.(ne),W&&S.handleKeyDown(ne)})},je=B&&!m&&!f&&ce>0,se=()=>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"}),te=h==="display"&&!x&&!y&&!!d,me=()=>n.jsxs(n.Fragment,{children:[se(),te&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:d})]});return n.jsxs("div",{ref:K,className:we,children:[l&&n.jsxs("label",{htmlFor:T,className:"text-field__label caption-1",children:[l,u&&n.jsx("span",{className:"text-field__required",children:"*"})]}),n.jsxs("div",{className:"text-field__wrap",children:[w&&n.jsx("span",{className:"text-field__icon text-field__icon--left",children:n.jsx(qe,{icon:w,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ne})}),me(),b!=null&&D&&n.jsxs("span",{className:`text-field__count caption-2${ye?" text-field__count--over":""}`,children:[ce,"/",b]}),je&&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:()=>{!ke&&R.current&&(R.current.value="",re(0)),i?.("")},tabIndex:-1}),N&&!je&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(qe,{icon:N,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ne})})]}),L&&(typeof document>"u"?null:qt.createPortal(n.jsx("ul",{id:S.listId,className:"text-field__suggestions",role:"listbox",style:Z??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:S.filtered.map((ne,Ce)=>n.jsx("li",{id:`${S.listId}-option-${Ce}`,role:"option","aria-selected":Ce===S.activeIdx,className:`text-field__suggestion body-2${Ce===S.activeIdx?" is-active":""}`,onMouseDown:ve=>ve.preventDefault(),onClick:()=>{S.handleSelect(ne),R.current?.focus()},children:ne},`${ne}-${Ce}`))}),document.body)),(g||C)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:O,className:"text-field__helper caption-1",role:C?"alert":void 0,children:C||g})})]})}function nn({options:e,value:t,onChange:a,placeholder:r,disabled:s=!1,block:i=!1,size:l=48,error:c=!1,className:u="",ariaLabel:d,ariaDescribedBy:p}){const{t:m}=ge.useTranslation(),f=r??m("dropdown.placeholder","\uC120\uD0DD"),C=o.useId(),g=o.useId(),b=o.useRef(null),_=o.useCallback((E,M)=>{const H=window.innerHeight-E.bottom<260&&E.top>260;return{position:"fixed",left:E.left,minWidth:E.width,...H?{bottom:window.innerHeight-E.top+6}:{top:E.bottom+6},zIndex:va(M)}},[]),{open:h,setOpen:v,toggle:x,style:y,triggerRef:k,menuRef:w}=xa({computeStyle:_}),[N,B]=o.useState(-1),A=o.useCallback(()=>B(-1),[]),D=e.find(E=>E.value===t);o.useEffect(()=>{if(h){const E=e.findIndex(M=>M.value===t);B(E>=0?E:e.length?0:-1),requestAnimationFrame(()=>{const M=w.current;if(!M)return;const H=M.querySelectorAll(".dropdown__option")[E];H&&(M.scrollTop=Math.max(0,H.offsetTop-M.clientHeight/2+H.clientHeight/2))})}},[h]),o.useEffect(()=>{h&&B(E=>{if(E>=0&&E<e.length)return E;const M=e.findIndex(H=>H.value===t);return M>=0?M:e.length?0:-1})},[h,e.length]);const $=o.useCallback(()=>{s||x()},[s,x]),F=o.useCallback(E=>{E.disabled||s||(E.value!==t&&a?.(E.value),v(!1))},[a,v,s,t]);o.useEffect(()=>{s&&v(!1)},[s,v]);const P=o.useCallback(E=>{if(!s){if(!h){(E.key==="Enter"||E.key===" "||E.key==="ArrowDown")&&(E.preventDefault(),v(!0));return}if(E.key==="Escape"){E.preventDefault(),v(!1);return}E.key==="ArrowDown"?(E.preventDefault(),B(M=>{let H=M+1;for(;H<e.length&&e[H].disabled;)H++;return H<e.length?H:M})):E.key==="ArrowUp"?(E.preventDefault(),B(M=>{let H=M-1;for(;H>=0&&e[H].disabled;)H--;return H>=0?H:M})):(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),e[N]?F(e[N]):v(!1))}},[s,h,e,N,F,v]),G=h?n.jsx("div",{ref:w,id:C,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:`${C}-option-${M}`,type:"button",role:"option","aria-selected":E.value===t,className:De("dropdown__option body-2",E.value===t?"dropdown__option--active":"",M===N?"dropdown__option--active":"",E.disabled?"dropdown__option--disabled":""),onMouseDown:H=>H.preventDefault(),onClick:()=>F(E),onMouseEnter:()=>B(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:b,className:De("dropdown",`dropdown--s${l}`,h?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",u),onKeyDown:P,children:[n.jsxs("button",{ref:k,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":h,"aria-controls":h?C:void 0,"aria-activedescendant":h&&N>=0?`${C}-option-${N}`:void 0,"aria-label":d,"aria-describedby":[d&&D?g:"",p??""].filter(Boolean).join(" ")||void 0,"aria-invalid":c||void 0,disabled:s,onClick:$,onBlur:E=>{h&&!w.current?.contains(E.relatedTarget)&&v(!1)},children:[n.jsx("span",{id:g,className:`dropdown__trigger-label body-2${D?"":" dropdown__trigger-label--placeholder"}`,children:D?D.label:f}),n.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&qt.createPortal(G,b.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function Ga({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"),u=s??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,t),p=()=>a(Math.max(1,Math.min(d,e-1))),m=()=>a(Math.min(d,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),d)," / ",d]}),n.jsx(le,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:u,disabled:e>=t,onClick:m})]})}function Sn(e){const{t}=ge.useTranslation(),{options:a=[],value:r=a.find(h=>!h.disabled)?.key??a[0]?.key,onChange:s=h=>{},className:i="",size:l=48,shape:c="pill",useBG:u=!0,fullWidth:d=!1,ariaLabel:p}=e||{},m=o.useRef(null),f=a.filter(h=>!h.disabled),C=h=>{if(!f.length)return;const v=Math.max(0,f.findIndex(y=>y.key===r)),x=h==="first"?f[0]:h==="last"?f[f.length-1]:f[(v+h+f.length)%f.length];x&&(s(x.key),Array.from(m.current?.querySelectorAll("[data-segkey]")??[]).find(y=>y.dataset.segkey===x.key)?.focus())},g=h=>{switch(h.key){case"ArrowRight":case"ArrowDown":C(1);break;case"ArrowLeft":case"ArrowUp":C(-1);break;case"Home":C("first");break;case"End":C("last");break;default:return}h.preventDefault()},b=h=>{const v=x=>typeof x=="string"||typeof x=="number";if(!(!v(h.label)||h.count==null||h.count===!1||!v(h.count)))return`${h.label}, ${h.count}`},_=f.some(h=>h.key===r)?r:f[0]?.key;return n.jsx("div",{ref:m,onKeyDown:g,className:De("segmented-control",`segmented-control--${c}`,`segmented-control--${l}`,d&&"segmented-control--full",!u&&"segmented-control--no-bg",i),role:"radiogroup","aria-label":p??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(h=>n.jsx(le,{htmlType:"button",role:"radio","aria-checked":h.key===r,"data-segkey":h.key,tabIndex:h.key===_?0:-1,label:h.label,count:h.count,ariaLabel:b(h),disabled:h.disabled,className:h.key===r?"is-selected":"",onClick:()=>{h.disabled||s(h.key)},size:l,shape:c,useBorder:!1,useBG:!1},h.key))})}function no({count:e,search:t,segment:a,filters:r,pageSize:s,pagination:i,actions:l,className:c}){const{t:u}=ge.useTranslation(),d=e!=null&&n.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??u("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:[d,a&&(Array.isArray(a)?a:[a]).map((m,f)=>n.jsx(Sn,{size:40,...m},m.ariaLabel??f))]}),p&&n.jsx("div",{className:"toolbar__row",children:n.jsxs("div",{className:"toolbar__row-end",children:[t&&n.jsx(Vn,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??u("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??u("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((m,f)=>n.jsx(nn,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},f)),s&&n.jsx(nn,{size:40,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??u("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&n.jsx(Ga,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel}),l]})})]})}function Tl(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(Tl).join(""):""}function x4(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"},QC={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"}}},eg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},tg={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},ng={answer:"Answer",distractor:"Distractor"},ag={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},rg={clearAriaLabel:"Clear input"},og={ariaLabel:"Select tab"},sg={ariaLabel:"Tabs"},ig={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},lg={ariaLabel:"User avatar"},cg={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"}},ug={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"}},dg={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)"}},pg={manage:{unit:"item(s)"}},mg={cancelLabel:"Cancel"},hg={subtitle:"Select a topic to start listening practice."},fg={steps:"Step {{current}} of {{total}}"},Cg={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"},gg={resetColumns:"Reset column widths"},bg={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}}"},yg={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},vg={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},xg={previewRegion:"Report preview \u2014 scrollable sideways"},_g={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},wg={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},kg={clearSelection:"Clear selection"},Ag={showResult:"Show {{type}} result"},Bg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Ng={loading:"Loading"},Dg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},Sg={ariaLabel:"Breadcrumb"},Eg={empty:"No items yet."},Tg={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"},jg={common:gC,calendar:bC,passCard:yC,searchField:vC,rating:xC,colorPicker:_C,dropdown:wC,accordion:kC,header:AC,nav:BC,settings:NC,usage:DC,account:SC,help:EC,training:TC,trainingSettings:jC,customers:MC,payment:LC,coupons:$C,visits:RC,company:PC,trainingType:IC,myWordTraining:FC,myWordTable:OC,keyWords:HC,wordTable:VC,wordSearch:zC,wordPrint:WC,topic:qC,accessLinkManager:UC,login:GC,device:KC,manager:YC,wordPairs:ZC,game:XC,footer:JC,landing:QC,date:eg,trainingSetPage:tg,wordTrainingPreview:ng,wordData:ag,textField:rg,segmentedControl:og,tabs:sg,fileUpload:ig,avatar:lg,myHomework:cg,trainingStatus:ug,store:dg,homework:pg,inquiry:mg,trainingPlanRun:hg,progress:fg,trainingMiss:Cg,table:gg,wordScore:bg,topBanner:yg,datePicker:vg,report:xg,tooltip:_g,phonemeProfile:wg,bulkBar:kg,debug:Ag,badge:Bg,loader:Ng,soundCompass:Dg,breadcrumb:Sg,board:Eg,promoBannerBg:Tg};const Mg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Wr="ko",Lg="ihab_display_language";function bi(){if(typeof window>"u")return Wr;try{const e=localStorage.getItem(Lg);if(e&&Mg.some(t=>t.code===e))return e}catch{}return Wr}function yi(e){try{document.documentElement.lang=e}catch{}}kt.on("languageChanged",yi),yi(bi()),kt.use(ge.initReactI18next).init({resources:{ko:{translation:CC},en:{translation:jg}},lng:bi(),fallbackLng:Wr,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function pt(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 ya={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},qr=new WeakMap;function Ur(e){if(e)return qr.get(e)}function $t(e,t){e&&(e.style.setProperty(ya.title,t.title),e.style.setProperty(ya.description,t.description),qr.set(e,t))}function Rt(e){e&&(e.style.removeProperty(ya.title),e.style.removeProperty(ya.description),qr.delete(e))}const vi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function xi(){const e=pt(vi,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const _i={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function wi(){const e=pt(_i,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ai(){const e=pt(ki,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const Bi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ni(){const e=pt(Bi,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Di={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Si(){const e=pt(Di,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Ei={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Ti(){const e=pt(Ei,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const ji={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Mi(){const e=pt(ji,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Li={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function $i(){const e=pt(Li,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Ri={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Pi(){const e=pt(Ri,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Ii={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Fi(){const e=pt(Ii,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Oi={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Hi(){const e=pt(Oi,$t,Rt);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 Vi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function zi(){const e=pt(Vi,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Wi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function qi(){const e=pt(Wi,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Ui={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Gi(){const e=pt(Ui,$t,Rt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Vt=(e,t,a)=>({key:e,get label(){return kt.t(`promoBannerBg.${e}`,t)},textTone:a}),$g=[Vt("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Vt("soft","\uC18C\uD504\uD2B8","dark"),Vt("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),Vt("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Vt("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),Vt("warm","\uC6DC(\uAC15\uC870)","dark"),Vt("dark","\uB2E4\uD06C","light"),Vt("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Vt("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),Vt("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),Vt("outline","\uC544\uC6C3\uB77C\uC778","dark"),Vt("success","\uC131\uACF5/\uC644\uB8CC","light"),Vt("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),Vt("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],Ki={main:xi,soft:wi,sub:Ai,deep:Ni,softSub:Si,warm:Ti,dark:Mi,radial:$i,diagonal:Pi,dots:Fi,outline:Hi,success:zi,naver:qi,instagram:Gi};function Yi({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 b=localStorage.getItem(x),k=b?Number(b):1;return Number.isFinite(k)?l(k):l(1)}catch{return l(1)}},[u,d]=o.useState(()=>c(e)),[p,m]=o.useState(e);p!==e&&(m(e),d(c(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(u))}catch{}},[e,u]);const f=x=>{d(typeof x=="function"?b=>l(x(b)):l(x))},C=()=>f(x=>+(x+s).toFixed(6)),g=()=>f(x=>+(x-s).toFixed(6)),y=u<r-Number.EPSILON,_=u>a+Number.EPSILON,h=Math.round(t*u),v=Math.round(h*i);return{scale:u,setScale:f,increase:C,decrease:g,canIncrease:y,canDecrease:_,fontSize:h,lineHeight:v}}function Zi(e,t){const a=ba(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 ",Xi=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Gr)?e.split(Gr).pop()??e:e})(),Rg=o.createContext(!1),On=[];let Ji=null;function Pg(e){const t=o.useContext(Rg);o.useEffect(()=>{if(t||typeof e!="string"||!e)return;On.length===0&&(Ji=document.title);const a={text:Xi?`${e}${Gr}${Xi}`: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:Ji??document.title}},[e,t])}const Qi=[{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"}],Ig=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function Qn(e,t){return Ig().compare(e,t)}const Wa=new Map;function Fg(e){const t=Wa.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)),Wa.size>5e3&&Wa.clear(),Wa.set(e,a),a}function Og(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 Hg(e,t){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),s=a(t);if(r===s)return 0;const i=(d,p)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const m=Og(p);return m!==null?[m]:Fg(p)},l=i(e,r),c=i(t,s),u=Math.min(l.length,c.length);for(let d=0;d<u;d++){const p=l[d],m=c[d];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 f=Qn(p,m);if(f!==0)return f}return l.length!==c.length?l.length-c.length:Qn(r,s)}const el=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function Kr(e,t,a){const r=el(e),s=el(t);if(r||s)return r===s?0:r?1:-1;const i=Hg(e,t);return a?i:-i}function Vg(e,t,a){const{t:r}=ge.useTranslation(),[s,i]=o.useState(()=>{const g=a?.initialPageSize;return g&&Qi.some(y=>y.value===g)?g:"25"}),[l,c]=o.useState(1),[u,d]=o.useState(t);Object.is(u,t)||(d(t),l!==1&&c(1));const p=o.useMemo(()=>Qi.map(g=>({...g,label:r("visits.showN",{n:g.value})})),[r]),m=o.useCallback(g=>{i(g),c(1)},[]),f=Math.max(1,Math.ceil(e.length/Number(s)));(l>f||l<1||!Number.isFinite(l))&&c(Math.min(Math.max(1,Number.isFinite(l)?l:1),f));const C=Math.min(Math.max(1,Number.isFinite(l)?l:1),f);return{pageRows:o.useMemo(()=>e.slice((C-1)*Number(s),C*Number(s)),[e,C,s]),pageSizeProps:{options:p,value:s,onChange:m},paginationProps:{page:C,total:f,onChange:c},setPage:c}}function zg(e){const[t,a]=o.useState(null),r=o.useRef(t),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const i=o.useCallback(u=>{const d=r.current,p=d?.key===u?{key:u,asc:!d.asc}:{key:u,asc:!0};r.current=p,a(p),s.current?.(p)},[]),l=o.useCallback((u,d)=>({label:u,sortDir:t?.key===d?t.asc?"asc":"desc":null,onClick:()=>i(d)}),[t,i]),c=o.useCallback((u,d)=>{if(!t)return u;const{key:p,asc:m}=t;return[...u].sort((f,C)=>Kr(d(f,p),d(C,p),m))},[t]);return{\uC815\uB82C:t,\uCE78:l,sortRows:c}}const rn="\uC804\uCCB4",Wg=new Map;try{kt.store?.on?.("added",()=>Wg.clear())}catch{}Object.fromEntries(Object.entries(u2).map(([e,{nucleus:t}])=>[e,t]));const qg={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"})},Ug={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"})},Gg={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 Kg(e,t){if("place"in t)return qg[t.place](e);const a=Ug[t.vowel](e);return t.glide?`${a} \xB7 ${Gg[t.glide](e)}`:a}const Yg=(e,{defaultValue:t})=>t,tl=(e,t)=>({jamos:e,phonetic:t,tooltip:Kg(Yg,t)}),gn=(e,t)=>t.map(a=>tl([a],{place:e})),At=(e,t,a)=>tl([...e],a?{vowel:t,glide:a}:{vowel:t}),Yr={cho:[gn("labial",["\u3142","\u3143","\u314D","\u3141"]),gn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),gn("alveolar",["\u3145","\u3146"]),gn("palatal",["\u3148","\u3149","\u314A"]),gn("velar",["\u3131","\u3132","\u314B"]),gn("glottal",["\u314E"])],jung:[[At("\u3163","frontHigh"),At("\u315F","frontHigh","w"),At("\u3162","frontHigh","velar")],[At("\u3161","backHighUnrounded")],[At("\u315C","backHighRounded"),At("\u3160","backHighRounded","j")],[At("\u3154\u3150","frontMid"),At("\u3156\u3152","frontMid","j"),At("\u3159\u315A\u315E","frontMid","w")],[At("\u3153","backMidUnrounded"),At("\u3155","backMidUnrounded","j"),At("\u315D","backMidUnrounded","w")],[At("\u3157","backMidRounded"),At("\u315B","backMidRounded","j")],[At("\u314F","low"),At("\u3151","low","j"),At("\u3158","low","w")]],jong:[gn("labial",["\u3142","\u3141"]),gn("alveolar",["\u3137","\u3134","\u3139"]),gn("velar",["\u3131","\u3147"])]},Zg=e=>e===Xg?[]:Array.from(e),Xg="__NO_CODA__",Zr=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),nl={cho:Zr(Yr.cho),jung:Zr(Yr.jung),jong:Zr(Yr.jong)};nl.jung.flat().forEach(({v:e})=>{for(const t of Zg(e));}),new Set(nl.cho.flat().map(e=>e.v));function Jg(e,t=!0){const a=ba(e);o.useEffect(()=>{if(t)return In(()=>{a.current?.()})},[t,a])}function qa(){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 al(e="warning"){const[t,a]=o.useState(""),[r,s]=o.useState(e),[i,l]=o.useState(0),c=o.useCallback((m,f)=>{s(f),a(m),l(C=>C+1)},[]),u=o.useCallback(m=>c(m,"warning"),[c]),d=o.useCallback(m=>c(m,"normal"),[c]),p=o.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:c,showWarning:u,showNormal:d,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({}),u=o.useRef(null),d=o.useRef(null),p=o.useCallback(()=>{u.current&&c(e(u.current.getBoundingClientRect(),u.current))},[e]);o.useEffect(()=>{if(!s)return;p();const C=v=>{const x=v.target;r&&x.closest?.(r)||u.current?.contains(x)||d.current?.contains(x)||i(!1)};document.addEventListener("mousedown",C),document.addEventListener("pointerdown",C);const g=v=>{d.current?.contains(v.target)||(t==="reposition"?p():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",g,!0);const y=()=>{a==="reposition"?p():a==="close"&&i(!1)};let _=null;const h=()=>{y(),_&&clearTimeout(_),_=setTimeout(()=>{_=null,a==="reposition"&&p()},250)};return a!=="ignore"&&(window.addEventListener("resize",y),window.addEventListener("orientationchange",h)),()=>{document.removeEventListener("mousedown",C),document.removeEventListener("pointerdown",C),t!=="ignore"&&window.removeEventListener("scroll",g,!0),a!=="ignore"&&(window.removeEventListener("resize",y),window.removeEventListener("orientationchange",h)),_&&clearTimeout(_)}},[s,p,t,a,r]),o.useEffect(()=>{if(s)return In(()=>i(!1))},[s]);const m=o.useCallback(()=>i(C=>!C),[]),f=o.useCallback(()=>i(!1),[]);return{open:s,setOpen:i,toggle:m,close:f,style:l,triggerRef:u,menuRef:d}}function Qg(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:i=1100,feedbackMs:l=1500}={}){const[c,u]=o.useState([]),[d,p]=o.useState(0),[m,f]=o.useState("idle"),[C,g]=o.useState(null),[y,_]=o.useState([]),[h,v]=o.useState(null),[x,b]=o.useState(0),k=o.useRef(0),w=o.useCallback(J=>{k.current=typeof J=="function"?J(k.current):J,b(k.current)},[]),N=o.useRef(r),B=o.useRef(s);o.useEffect(()=>{N.current=r,B.current=s},[r,s]);const A=o.useRef([]),D=()=>{A.current.forEach(clearTimeout),A.current=[]},$=(J,I)=>{A.current.push(setTimeout(I,J))};o.useEffect(()=>()=>D(),[]);const O=c[d]?.id??null,P=o.useRef(null),K=o.useCallback(()=>{D(),f("playing"),_([]),v(null),w(0);let J=0;e.forEach((I,E)=>{$(J,()=>{p(E),g(I.id),N.current?.(I)}),$(J+1e3,()=>{g(null),_(F=>[...F,I.id])}),J+=1300}),$(J,()=>{f("done"),B.current?.({score:0,total:e.length})})},[e,w]),S=o.useCallback((J,I)=>{if(I>=J.length){f("done"),B.current?.({score:k.current,total:J.length});return}P.current=null,p(I),v(null),f("playing"),g(J[I].id),N.current?.(J[I]),$(i,()=>{g(null),f("waiting")})},[i]),L=o.useCallback(()=>{D();const J=Ca(e);u(J),w(0),_([]),S(J,0)},[e,S,w]),H=o.useCallback(()=>{t==="playback"?(u(e),K()):L()},[t,e,K,L]),ee=o.useCallback(()=>{D(),f("idle"),g(null),_([]),v(null),p(0),w(0),u([])},[w]),U=e.map(J=>J.id).join("|");o.useEffect(()=>(a?H():ee(),()=>D()),[t,U,a]);const q=o.useCallback(J=>{m!=="waiting"||t==="playback"||P.current===d||(P.current=d,v(J),J===c[d]?.id&&w(I=>I+1),t==="exam"?(f("playing"),$(400,()=>S(c,d+1))):(f("feedback"),$(l,()=>S(c,d+1))))},[m,t,c,d,S,l,w]),W=t==="playback"?e.length:c.length;return{bind:{activeSpeakerId:C,playedIds:y,selectedId:h,answerId:O,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:q},index:d,total:W,score:x,phase:m,done:m==="done",start:H,reset:ee}}function eb({title:e,description:t,actionLabel:a,onAction:r,bg:s,color:i,size:l="medium",actionVariant:c,titleColor:u,descriptionColor:d,className:p=""}){const m=s??i??"main",f=o.useRef(null),[C,g]=o.useState("main"),y=tn("(max-width: 767px)"),_=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const x=f.current;if(!x)return;const b=Ur(x),k=(w,N,B)=>{if(B!==void 0)x.style.setProperty(N,B),_.current[w]=!0;else if(_.current[w]){const A=b?.[w];A?x.style.setProperty(N,A):x.style.removeProperty(N),_.current[w]=!1}};k("title","--promo-banner-bg-title",u),k("description","--promo-banner-bg-description",d)},[u,d,m]),o.useLayoutEffect(()=>{const x=f.current;if(!x)return;const b=Ur(x);g(b?.actionVariant??"main")},[m]);const h=De("promo-banner",`promo-banner--${l}`,p),v=Ki[m];return n.jsxs("div",{ref:f,className:h,role:"note",children:[n.jsx(v,{}),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??C,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...y?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function tb({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),u=c.length,[d,p]=o.useState(0),[m,f]=o.useState(!1),[C,g]=o.useState(!1),[y,_]=o.useState(!1),h=o.useRef(null),v=o.useRef(null),x=o.useRef(null),b=Hr(),k=m||C||y,w=u>0?Math.min(d,u-1):0;o.useEffect(()=>{if(u<2||t<=0||k||b)return;const B=window.setInterval(()=>p(A=>(Math.min(A,u-1)+1)%u),t);return()=>window.clearInterval(B)},[u,t,k,b]);const N=B=>{v.current!=null&&window.clearTimeout(v.current),v.current=window.setTimeout(()=>{v.current=null,_(!1)},B)};return o.useEffect(()=>()=>{v.current!=null&&window.clearTimeout(v.current)},[]),o.useEffect(()=>{if(!y)return;const B=A=>{A.pointerType==="touch"&&(x.current&&x.current.contains(A.target)||(v.current!=null&&(window.clearTimeout(v.current),v.current=null),_(!1)))};return document.addEventListener("pointerdown",B,!0),()=>document.removeEventListener("pointerdown",B,!0)},[y]),u===0?null:n.jsxs("section",{ref:x,className:De("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onPointerEnter:B=>{h.current=B.pointerType},onPointerDown:B=>{h.current=B.pointerType,B.pointerType==="touch"&&(v.current!=null&&(window.clearTimeout(v.current),v.current=null),_(!0))},onPointerUp:B=>{B.pointerType==="touch"&&N(5e3)},onPointerCancel:B=>{B.pointerType==="touch"&&N(5e3)},onMouseEnter:()=>{h.current!=="touch"&&f(!0)},onMouseLeave:()=>f(!1),onFocus:B=>{let A=!0;try{A=B.target.matches(":focus-visible")}catch{A=!0}g(A)},onBlur:B=>{B.currentTarget.contains(B.relatedTarget)||g(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${w*100}%)`},children:c.map((B,A)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":A!==w,...A!==w?{inert:!0}:{},children:B},A))})}),u>1&&n.jsx("div",{className:`top-banner__dots${(a?.[w]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((B,A)=>n.jsx("button",{type:"button",className:`top-banner__dot${A===w?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:u,index:A+1,defaultValue:`${u}\uAC1C \uC911 ${A+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":A===w,onClick:()=>p(A)},A))})]})}function nb({title:e,body:t,open:a=!1,onToggle:r,avatar:s,titleClassName:i="body-2",bodyClassName:l="body-2",className:c=""}){const{t:u}=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:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const p=d.currentTarget.closest('[role="list"]');if(!p)return;const m=Array.from(p.querySelectorAll("[data-accordion-header]")),f=m.indexOf(d.currentTarget);(d.key==="ArrowDown"?m[f+1]:m[f-1])?.focus()}},children:[s&&n.jsx("div",{className:"accordion-item__avatar",children:s}),n.jsx("div",{className:`accordion-item__title ${i}`,children:e}),n.jsx("div",{className:"accordion-item__chevron",children:n.jsx(qe,{icon:a?"chevron-up":"chevron-down",label:a?u("accordion.collapse","\uC811\uAE30"):u("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 ab({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:s}){const[i,l]=o.useState({index:t}),c=(u,d)=>i.id!=null&&u.id!=null?u.id===i.id:i.id==null&&d===i.index;return n.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((u,d)=>n.jsx(nb,{title:u.title,body:u.body,avatar:u.avatar,open:c(u,d),onToggle:()=>l(c(u,d)?{index:-1}:{index:d,id:u.id}),bodyClassName:s},u.id??d))})}function rb(){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 ob(){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 sb(){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 mt(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:w,position:N="top-right",onClick:B,animate:A=!1}=e,D=k??"check",$=w!==void 0?"number":D,O=typeof r=="number"?r:32,P=De("circle-badge",`circle-badge--${$}`,`circle-badge--${N}`,`circle-badge--${O}`,A?"circle-badge--animate":"",B?"circle-badge--clickable":"",s),K=w!==void 0?t("badge.nthSelected",{n:w,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")}[D];return n.jsxs("span",{className:P,onClick:B,onKeyDown:B?S=>{S.key!=="Enter"&&S.key!==" "||(S.preventDefault(),S.currentTarget.click())}:void 0,"aria-label":l?void 0:i??K,"aria-hidden":l||void 0,role:B?"button":l?void 0:"img",tabIndex:B?0:void 0,children:[w!==void 0&&w,w===void 0&&D==="check"&&n.jsx(rb,{}),w===void 0&&D==="remove"&&n.jsx(ob,{}),w===void 0&&D==="minus"&&n.jsx(sb,{})]})}const{label:c,children:u,variant:d="default",fill:p="filled",minWidth:m,iconLeft:f,iconRight:C,color:g}=e,y=typeof r=="number"?"medium":r??"medium",_={small:"caption-2b",medium:"body-3b",large:"body-2b"}[y]??"body-2b",h={small:12,medium:14,large:16}[y]??14,v=De("badge",`badge--${d}`,`badge--${y}`,p!=="filled"?`badge--${p}`:"",_,s),x=g?.startsWith("--")?`var(${g})`:g,b=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:v,style:b,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[f&&n.jsx(qe,{icon:f,size:h,className:"badge__icon"}),c??u,C&&n.jsx(qe,{icon:C,size:h,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([]),u=o.useMemo(()=>{const _=[{title:null,columns:e}];let h=e;for(const v of l){const x=h?.[v.ci]?.items?.[v.ii];if(!x||!Array.isArray(x.children)||!x.children.length)break;h=[{title:null,items:x.children}],_.push({title:x.label||null,columns:h})}return _},[e,l]),d=u[u.length-1],p=u.length-1,m=o.useCallback(()=>c(_=>_.slice(0,Math.max(0,Math.min(_.length,p)-1))),[p]),f=o.useRef(null),C=o.useRef(null),g=u.length;o.useEffect(()=>{C.current||(C.current=document.activeElement);let _=0,h=0;const v=()=>{const x=f.current?.querySelector("button:not([disabled])");if(x&&x.offsetParent){x.focus({preventScroll:!0});return}h++<20&&(_=requestAnimationFrame(v))};return _=requestAnimationFrame(v),()=>cancelAnimationFrame(_)},[g]),o.useEffect(()=>()=>{C.current?.focus?.({preventScroll:!0})},[]);const y=o.useCallback((_,h,v)=>{if(_){if(Array.isArray(_.children)&&_.children.length){c(x=>[...x.slice(0,p),{ci:h,ii:v}]);return}try{typeof _.onClick=="function"&&_.onClick()}catch{}try{_&&_.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t,p]);return n.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(u.length>1||d.title)&&n.jsxs("div",{className:"tooltip-menu__header",children:[u.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:d.title})]}),n.jsx("div",{className:"tooltip-menu__columns",ref:f,children:d.columns&&d.columns.map((_,h)=>n.jsxs("div",{className:"tooltip-menu__column",children:[_.title?n.jsx("div",{className:"tooltip-menu__column-title body-3",children:_.title}):null,n.jsx("div",{className:"tooltip-menu__items",children:(_.items||[]).map((v,x)=>n.jsxs(o.Fragment,{children:[v.separatorBefore&&x>0&&n.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),n.jsx(le,{htmlType:"button",className:"tooltip-menu__item",size:i,type:v.label?"bar":"dot",icon:v.selected?"check":v.icon||"none",rightIcon:Array.isArray(v.children)&&v.children.length?"chevron-right":v.badgeCount?n.jsx(mt,{type:"dot",position:"inline",number:Math.min(v.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:v.label,ariaLabel:v.label&&v.badgeCount&&v.badgeCount>0?s("nav.badgeLabel",{label:v.label,count:v.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):v.label,onClick:()=>y(v,h,x),selected:v.selected,disabled:v.disabled,showTooltipInfo:v.tooltip||!1,useBorder:!1,align:"left"})]},x))})]},h))})]})}const Ua=52,ea=10,rl=e=>e&&e>0?e:0;function ol({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:s,moreItems:i=[]}){const{t:l}=ge.useTranslation(),c=r==="manager"?"malgwi":"manager",u=r==="manager"?"arrow-left":"arrow-right",d=r==="manager"?l("nav.modeLabelMalgwi","\uB9D0\uADC0"):l("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=o.useRef(null),[m,f]=o.useState(0),C=e.length;o.useEffect(()=>{const W=p.current;if(!W||(f(W.clientWidth),typeof ResizeObserver>"u"))return;const J=new ResizeObserver(I=>f(I[0].contentRect.width));return J.observe(W),()=>J.disconnect()},[]);const g=Ua+1,y=o.useRef(!1),_=m>0&&i.length===0&&y.current?m+g:m,h=C*(Ua+ea)-ea<=_,v=m<=0?C:i.length>0?Math.floor((m+ea)/(Ua+ea)):h?C:Math.floor((_-g+ea)/(Ua+ea)),x=m>0&&v<C,b=x?v:C,k=e.slice(0,b),w=e.slice(b),N=x||i.length>0;o.useEffect(()=>{y.current=N});const B=o.useCallback((W,J)=>({position:"fixed",bottom:window.innerHeight-W.top+8,right:window.innerWidth-W.right,zIndex:va(J)}),[]),A=o.useId(),{open:D,toggle:$,close:O,style:P,triggerRef:K,menuRef:S}=xa({computeStyle:B,onScroll:"ignore",onResize:"reposition"}),L=o.useCallback((W,J)=>J>0?l("nav.badgeLabel",{label:W,count:J,defaultValue:"{{label}}, {{count}}\uAC1C"}):W,[l]),H=o.useCallback(()=>s?.(c),[s,c]),ee=o.useMemo(()=>w.find(W=>!!W.key&&W.key===t)??i.find(W=>W.selected||W.key&&W.key===t),[w,t,i]),U=o.useMemo(()=>[{items:[...w.map(W=>({label:W.label,icon:W.icon,badgeCount:W.badgeCount,selected:!!W.key&&W.key===t,closeOnSelect:!0,disabled:W.state==="disabled",onClick:()=>{W.state!=="disabled"&&(W.key&&a&&a(W.key),O())}})),...i.map(W=>({label:W.label,icon:W.icon,badgeCount:W.badgeCount,selected:W.selected??(!!W.key&&W.key===t),closeOnSelect:!0,onClick:()=>{W.onClick?.(),O()}}))]}],[w,i,t,a,O]),q=[...w,...i].reduce((W,J)=>W+rl(J.badgeCount),0);return n.jsxs("nav",{className:"bottom-nav","aria-label":l("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:d,className:"bottom-nav-item",onClick:H})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",ref:p,children:k.map((W,J)=>{const I=rl(W.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(le,{htmlType:"button",size:52,type:"dot",icon:W.icon,ariaLabel:L(W.label,I),selected:!!W.key&&W.key===t,disabled:W.state==="disabled",className:"bottom-nav-item",onClick:()=>W.key&&a?.(W.key)}),I>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(mt,{type:"dot",position:"top-right",number:Math.min(I,99),size:24})})]},W.key??`__slot-${J}`)})}),N&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),n.jsx("div",{className:"bottom-nav__right",children:n.jsxs("div",{ref:K,className:"bottom-nav__slot",children:[n.jsx(le,{htmlType:"button",size:52,type:"dot",icon:ee?.icon??"ellipsis",ariaLabel:L(ee?.label??l("nav.more","\uB354\uBCF4\uAE30"),q),selected:!!ee,className:"bottom-nav-item",onClick:$,"aria-expanded":D,"aria-controls":D?A:void 0}),q>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(mt,{type:"dot",position:"top-right",number:Math.min(q,99),size:24})}),D&&qt.createPortal(n.jsx("div",{id:A,role:"group","aria-label":l("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:P,ref:S,children:n.jsx(_a,{columns:U,onClose:O})}),document.body)]})})]})]})}function sl(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 il(e,t,a){return a&&a>0?e("nav.badgeLabel",{label:t,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):t}function ib(e){const{t}=ge.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:i,onSetting:l,onHelp:c,onAccount:u}=e||{},d="default";return s||i||l||c||u?n.jsxs("div",{className:"side-nav__footer",children:[s&&n.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,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:d,icon:"bell",ariaLabel:il(t,t("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&n.jsx(mt,{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:d,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:d,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),u&&n.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:u,selected:a==="account"})]}):null}function ll(e){const{t}=ge.useTranslation(),{item:a,itemKey:r,label:s,icon:i,active:l,onClick:c,style:u,state:d,labelStyle:p}=e||{},m=a?.key??r??"",f=a?.label??s??"",C=a?.icon??i??"",g=a?.badge??0,y=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(qe,{icon:C,label:typeof f=="string"?f:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),_=d==="disabled",h=`side-nav__item ${l?"active":""} ${d||""} ${_?"disabled":""} ${a?.child?"side-nav__item--child":""}`,v=o.useCallback(x=>{if(_)return;const b=x.detail>0;if(b)try{x.currentTarget.blur()}catch{}c?.(m,x.currentTarget,b)},[_,m,c]);return n.jsxs("button",{type:"button",className:h,onClick:v,"aria-label":typeof f=="string"?il(t,f,g):void 0,"aria-current":l?"page":void 0,style:u,"aria-disabled":_,children:[y,n.jsx("span",{className:"side-nav__label button-1 f",style:p,children:f}),g>0&&n.jsx(mt,{type:"dot",position:"inline",number:Math.min(g,99),size:24,"aria-hidden":!0}),d==="loading"&&n.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":t("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function cl(e){const{t}=ge.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:f}=e||{},C=m==="manager",g=o.useCallback(()=>f?.(C?"malgwi":"manager"),[f,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(y=>!y.section&&(y.key||y.label)).map((y,_)=>n.jsxs(o.Fragment,{children:[y.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(ll,{item:y,active:!!y.key&&y.key===r,state:y.disabled?"disabled":void 0,onClick:(h,v,x)=>{if(y.disabled)return;if(y.href){if(sl(y.href)&&window.open(y.href,"_blank","noopener,noreferrer"),x)try{v?.blur()}catch{}return}s?.(y.key);try{const k=document.querySelector(".content-area");k?k.scrollTop=0:window.scrollTo({top:0})}catch{}if(!x)return;try{v?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const b=document.querySelector(".header");if(b){const k=typeof b.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&k&&b.matches(":hover"))){b.classList.add("header--force-collapsed");const w=()=>{b.classList.remove("header--force-collapsed"),b.removeEventListener("mouseenter",w)};b.addEventListener("mouseenter",w)}}}})]},y.key??`side-nav__item-${_}`)),f&&n.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),f&&n.jsx(ll,{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:g})]}),n.jsx(ib,{activeKey:r,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p})]})}var Xr='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',Jr='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',lb='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 ul({appMode:e}){const{t}=ge.useTranslation(),a=e==="manager",r=a?Jr:Xr,s=lb,i=tn("(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 dl({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:s,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:f}){const{t:C}=ge.useTranslation(),g=tn("(max-width: 767px)"),y=o.useMemo(()=>(a??[]).filter($=>!$.section&&($.key||$.label)).map($=>({key:$.key,label:typeof $.label=="string"?$.label:void 0,icon:$.icon,state:$.disabled?"disabled":void 0,badgeCount:$.badge})),[a]),_=o.useCallback($=>{const O=a?.find(P=>P.key===$);if(!O?.disabled){if(O?.href){sl(O.href)&&window.open(O.href,"_blank","noopener,noreferrer");return}t?.($)}},[a,t]),h=o.useMemo(()=>{const $=[];return l&&$.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&$.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),d&&$.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),p&&$.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),u&&$.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:u}),$},[C,l,c,d,p,u,i]),v=o.useCallback(($,O)=>({position:"fixed",top:$.bottom+8,right:Math.max(8,window.innerWidth-$.right),zIndex:va(O)}),[]),x=o.useId(),{open:b,toggle:k,close:w,style:N,triggerRef:B,menuRef:A}=xa({computeStyle:v,onScroll:"ignore",onResize:"reposition"}),D=o.useMemo(()=>[{items:h.map($=>({label:$.label,icon:$.icon,badgeCount:$.badgeCount,selected:$.selected??(!!$.key&&$.key===e),closeOnSelect:!0,onClick:()=>{$.onClick?.(),w()}}))}],[h,e,w]);return n.jsxs("aside",{className:`header${m==="manager"?" header--manager":""}`,children:[n.jsxs("div",{className:"header__bi",children:[n.jsx(ul,{appMode:m}),n.jsxs("div",{className:"header__menu-button",ref:B,children:[n.jsx(le,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",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:k,"aria-expanded":b,"aria-controls":b?x:void 0}),!!c&&!!i&&i>0&&n.jsx(mt,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),b&&qt.createPortal(n.jsx("div",{id:x,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:N,ref:A,children:n.jsx(_a,{columns:D,onClose:w})}),document.body)]})]}),n.jsx(cl,{items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:f}),g&&n.jsx(ol,{items:y,activeKey:e??void 0,onChange:_,appMode:m,onAppModeChange:f})]})}const cb=dl,ub=()=>kt.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function pl(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 db(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function pb(e){if(e.durationDays&&e.durationDays>0){const i=e.durationDays;return i%365===0?`${i/365}\uB144`:`${i}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);if(r)return r[1].replace(/\s+/g,"");const s=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return s?s[2].toLowerCase()==="year"?`${s[1]}\uB144`:`${s[1]}\uC77C`:a||ub()}function mb(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 ml(e){return{type:e.type??db(e),plan:pb(e),label:e.label,price:pl(e.price),originalPrice:pl(e.originalPrice),discountLabel:e.discountLabel}}var hb='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7326)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23FAFAFA"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23FAFAFA"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23FAFAFA"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23FAFAFA"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7326">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',fb='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 200 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="200" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M96.43,48.35v-24.1h30.62v24.1h-30.62ZM142.98,69.15v7.21h-44.76v-15.72h34.46v-2.13h-34.6v-7.21h44.35v15.72h-34.33v2.13h34.88,0ZM106.25,32.56v7.41h11.05v-7.41h-11.05ZM148.33,40.39h-5.9v9.06h-9.89v-25.81h9.89v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M185.54,47.87v9.4c-2.79,1.28-7.16,1.92-13.11,1.92h-.62v17.16h-9.89v-17.16h-12.22v-9.4h22.86c5.86,0,10.18-.64,12.98-1.92h0ZM152.59,34.28v-9.4h28.7v22.17h-9.89v-12.77h-18.81ZM198.31,76.36h-9.89V23.64h9.89v52.73h0Z"/>%0A <path class="st1" d="M46.43,17.86h-21.43c-9.86,0-17.86,7.99-17.86,17.86v21.43c0,9.86,7.99,17.86,17.86,17.86h21.43c9.86,0,17.86-7.99,17.86-17.86v-21.43c0-9.86-7.99-17.86-17.86-17.86Z"/>%0A <path class="st1" d="M34.86,50.74c-9.03,9.94-24.25,10.93-34.48,2.42-.47-.39-.52-1.1-.11-1.55l16.07-17.69,18.51,16.81Z"/>%0A <path class="st1" d="M53.57,25h-21.43c-9.86,0-17.86,8-17.86,17.86v21.43c0,9.86,8,17.86,17.86,17.86h16.11c.96,0,1.75.78,1.75,1.75,0,1.02.88,1.83,1.89,1.74,10.95-.96,19.54-10.15,19.54-21.35v-21.43c0-9.86-8-17.86-17.86-17.86Z"/>%0A <path class="st2" d="M25,25c-5.92,0-10.71,4.8-10.71,10.71v28.57c0,3.09.79,6,2.17,8.54,2.54,1.39,5.45,2.17,8.54,2.17h28.57c5.92,0,10.71-4.8,10.71-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.54-1.39-5.45-2.17-8.54-2.17h-28.57Z"/>%0A <path class="st3" d="M25.36,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M36.07,57.14c-1.04,0-2.09-.27-3.04-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.59-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.33-4.44,2.91-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.35-5.56-.99-.06-1.94.12-2.81.54-.89.43-1.96.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.76.3,8.58,4.26,8.69,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',Cb='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',gb='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',bb='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>',yb='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',hl='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"},Qr=new WeakMap;function vb(e){if(e)return Qr.get(e)}function bn(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),Qr.set(e,t))}function yn(e){e&&(e.style.removeProperty(Hn.text),e.style.removeProperty(Hn.sub),e.style.removeProperty(Hn.copyright),Qr.delete(e))}const fl={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Cl(e={}){const t=pt(fl,bn,yn);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("${hl}")`}})]})}const gl="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 xb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},_b=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function bl(e={}){const t=pt(xb,bn,yn),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:_b.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:gl,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 wb={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},kb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Ab(e={}){const t=pt(wb,bn,yn),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:kb.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:gl,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("${hl}")`}})]})}const Bb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Nb(e={}){const t=pt(Bb,bn,yn);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 Db={Logo_speechear_kr:{"":Xr,_white:hb,_textWhite:fb,_black:Cb},Logo_speechearManager_kr:{"":Jr,_white:gb,_textWhite:bb,_black:yb}};function Sb(e,t){if(e)return Db[e]?.[t??""]??void 0}const Eb={speechear:Xr,manager:Jr},Tb={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},yl=10;function vl(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 jb(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===kt.t("passCard.specialLabel");return r?n.jsx(Nb,{}):s?n.jsx(Ab,{}):n.jsx(bl,{})}return n.jsx(Cl,{})}function xl({product:e,showPrice:t=!1,plan:a,type:r,endDate:s,remainingSeconds:i,endInclusive:l=!1,state:c="active",bg:u,bgOnly:d=!1,textColor:p,subColor:m,copyrightColor:f,logoSrc:C,label:g,price:y,originalPrice:_,discountLabel:h,onUse:v,onRefund:x,onDelete:b}){const{t:k}=ge.useTranslation(),w=e?ml(e):void 0,N=r??w?.type??"speechear",B=a??w?.plan??k("passCard.planSuffix","\uC774\uC6A9\uAD8C"),A=g??w?.label,D=y??(t?w?.price:void 0),$=_??(t?w?.originalPrice:void 0),O=h??w?.discountLabel,P=o.useMemo(()=>{if(D)return null;const oe=e?.durationDays??mb(e?.code);if(!oe||oe<=0)return i!=null?{percent:null,remainingLabel:vl(i,k)}:null;const z=oe*86400;let re;if(i!=null)re=i;else if((c==="active"||c==="expired")&&s){const fe=new Date(s).getTime();if(Number.isNaN(fe))return null;const ye=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(s)),Ne=/^(\d{4})-(\d{2})-(\d{2})/.exec(ga()),we=Math.round(ye&&Ne?(Date.UTC(+ye[1],+ye[2]-1,+ye[3])-Date.UTC(+Ne[1],+Ne[2]-1,+Ne[3]))/864e5:(fe-Date.now())/864e5);re=Math.max(0,l?we+1:we)*86400}else c==="expired"?re=0:re=z;const ce=Math.max(0,Math.min(100,Math.floor(Math.min(re,z)/z*100)));return c==="pending"&&ce>=100?null:{percent:ce,remainingLabel:vl(re,k)}},[D,c,s,i,l,e?.durationDays,e?.code,k]),K=o.useRef(null),[S,L]=o.useState({}),[H,ee]=o.useState(null),U=!!(v||x||b),q=o.useRef(!1),W=o.useRef(void 0),[J,I]=o.useState(C);o.useLayoutEffect(()=>{I(C)},[C]),o.useLayoutEffect(()=>{const oe=K.current;oe&&(p!==void 0&&oe.style.setProperty("--pass-card-text",p),m!==void 0&&oe.style.setProperty("--pass-card-sub",m),f!==void 0&&oe.style.setProperty("--pass-card-copyright",f))},[p,m,f]),o.useLayoutEffect(()=>{const oe=K.current;if(!oe)return;const z=vb(oe);if(!C){const re=Tb[N],ce=c==="expired"?"_black":z?.logoColor??"",fe=Sb(re,ce);I(fe)}},[u,C,N,c]);const E=oe=>{const z=K.current;if(!z)return null;const{left:re,top:ce,width:fe,height:ye}=z.getBoundingClientRect(),Ne=(oe.clientX-re)/fe-.5;return{rotateX:-((oe.clientY-ce)/ye-.5)*yl,rotateY:Ne*yl}},F=(oe,z)=>{const re=z*-.7,ce=oe*.7+10,fe=20+(Math.abs(oe)+Math.abs(z))*.4;return`${re}px ${ce}px ${fe}px rgba(0, 0, 0, 0.18)`},R=o.useCallback(oe=>{if(Jn())return;q.current=!0,clearTimeout(W.current),W.current=setTimeout(()=>{q.current=!1},200);const z=E(oe);z&&L({transform:`perspective(800px) rotateX(${z.rotateX}deg) rotateY(${z.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:F(z.rotateX,z.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)"})},[]),T=o.useCallback(oe=>{if(Jn())return;const z=E(oe);if(!z)return;const re=q.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";L({transform:`perspective(800px) rotateX(${z.rotateX}deg) rotateY(${z.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:F(z.rotateX,z.rotateY),transition:re})},[]),M=o.useCallback(()=>{clearTimeout(W.current),q.current=!1,L({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)"})},[]),G=o.useCallback(()=>ee(null),[]),Y=o.useMemo(()=>{const oe=k("passCard.planSuffix","\uC774\uC6A9\uAD8C"),z=B.replace("\uC774\uC6A9\uAD8C","").replace(oe==="\uC774\uC6A9\uAD8C"?"":oe,"").trim(),re=z.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:z})},[B,k]),Q=o.useMemo(()=>{const oe=Yn(D);if(!oe)return null;const z=oe.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!z)return n.jsx("span",{className:"h1",children:oe});const[,re,ce,fe]=z;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:ce}),fe.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:fe.trim()})]})},[D]),de=o.useCallback(()=>{U&&ee(oe=>{if(oe)return null;const z=K.current?.getBoundingClientRect();if(!z)return null;const re=50;return{left:z.left,right:z.right,width:z.width,height:z.height,x:z.x,y:z.y+re,top:z.top+re,bottom:z.bottom+re}})},[U]),Te=o.useCallback(oe=>{U&&(oe.key==="Enter"||oe.key===" ")&&(oe.preventDefault(),de())},[U,de]),ke=[{items:[...v?[{label:k("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{v(),ee(null)},closeOnSelect:!0}]:[],...x?[{label:k("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{x(),ee(null)},closeOnSelect:!0}]:[],...b?[{label:k("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{b(),ee(null)},closeOnSelect:!0}]:[]]}];return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card-frame",children:n.jsxs("div",{ref:K,className:`pass-card pass-card--${c}${U?" pass-card--clickable":""}`,style:S,onMouseEnter:R,onMouseMove:T,onMouseLeave:M,onPointerUp:oe=>{oe.pointerType==="touch"&&M()},onPointerCancel:oe=>{oe.pointerType==="touch"&&M()},onClick:de,onKeyDown:U?Te:void 0,role:U?"button":void 0,tabIndex:U?0:void 0,"aria-haspopup":U?"menu":void 0,"aria-expanded":U?!!H:void 0,children:[u??jb(N,B,A),!d&&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??Eb[N],className:"pass-card__logo",alt:N==="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:Y}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:A?k("passCard.labeledPlan",{label:A}):k("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),D?n.jsxs("div",{className:"pass-card__price-area",children:[O&&n.jsx("span",{className:"pass-card__discount body-3",children:O}),n.jsxs("div",{className:"pass-card__price",children:[$&&n.jsx("span",{className:"pass-card__price-original body-3",children:Yn($)}),Q]})]}):P?n.jsxs("div",{className:"pass-card__usage",children:[n.jsx("span",{className:"h5b pass-card__usage-remaining",children:P.remainingLabel}),P.percent!=null&&n.jsxs("span",{className:"pass-card__usage-percent",children:[n.jsx("span",{className:"h1 pass-card__usage-value",children:P.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."})]})]})}),H&&n.jsx(Cn,{anchorRect:H,onClose:G,ariaLabel:k("tooltip.menu","\uBA54\uB274"),children:n.jsx(_a,{columns:ke,onClose:G,size:"small"})})]})}const Mb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Lb(e={}){const t=`passcard-sound-line-grad-${o.useId()}`,a=pt(Mb,bn,yn);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 $b={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Rb(e={}){const t=pt($b,bn,yn);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 Pb(e,t){if(e){if(t==="manager_pro")return n.jsx(Rb,{});if(t==="manager_standard")return n.jsx(Lb,{});if(t==="manager_lite")return n.jsx(bl,{})}}function Ib(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 Fb(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||{},u=b=>!!b&&!!c?.includes(b),d=b=>b.onceOnly??/오픈\s*특가/.test(b.label??""),p=(s.tiers||[]).some(b=>d(b)&&u(b.code)),m=b=>{const k=b.prices?b.prices[l]:b.price;return k?(s.tiers||[]).some(w=>!!w.badge&&w.originals?.[l]===k):!1},f=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",C=t("payment.plan.freePrice","\uBB34\uB8CC"),g=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),y=b=>b.prices?b.prices[l]:b.price,_=(s.tiers||[]).length>0&&(s.tiers||[]).every(b=>{const k=y(b);return k==="\uBB34\uB8CC"||k===C||k==="0\uC6D0"||typeof k=="string"&&/\d/.test(k)&&!/[1-9]/.test(k)}),h=(s.tiers||[]).length>0&&(s.tiers||[]).every(b=>{const k=y(b);return k==="\uBB38\uC758"||k===g}),v=s.group==="org",x=v?"manager":"speechear";return n.jsxs("div",{className:"payment-plan__card",style:{borderColor:f,"--plan-color":f},children:[s.cardBadge&&n.jsx("div",{className:"payment-plan__card-badge",children:n.jsx(mt,{label:s.cardBadge,variant:"main",size:"medium",fill:"soft"})}),n.jsxs("div",{className:"payment-plan__title",children:[n.jsx("p",{className:"payment-plan__quote body-3b",style:{color:f},children:s.quote||"\xA0"}),n.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),n.jsx("p",{className:"payment-plan__subtitle body-3",children:s.subtitle})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.recommendedFor||[]).map((b,k)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(qe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:f}}),b]},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((b,k)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(qe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:f}}),b]},k))})]}),n.jsx("div",{className:"payment-plan__card-pricing",children:_?null:h?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(b=>{const k=b.label||a,w=d(b),N=w||b.openPromo===!0,B=k.replace(/^오픈\s*특가\s*/,"")||a,A=b.prices?b.prices[l]:b.price,D=b.badge?N?`${r}
852
+ ${b.badge}`:b.badge:void 0;if(w&&u(b.code))return null;if(!b.badge&&!p)return m(b)?null:n.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${b.highlight?" payment-plan__pricing-row--highlight":""}`,children:[n.jsx("div",{className:"payment-plan__pricing-row-title",children:n.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:b.label})}),n.jsx("div",{className:"payment-plan__pricing-row-price",children:n.jsx("span",{className:"payment-plan__pricing-current h1",children:Ib(A)})})]},b.id);const $=s.tier??(v?s.title:void 0),O=n.jsx(xl,{showPrice:!0,product:{type:x,code:b.code,name:B,label:$,price:A,originalPrice:b.originals?.[l]??void 0,discountLabel:D},bg:Pb(v,s.id)}),P=()=>i?.({...b,productId:s.id,productTitle:s.title,preview:O});return n.jsx("div",{className:"payment-plan__pricing-card",onClick:P,onKeyDown:i?K=>{K.target===K.currentTarget&&(K.key==="Enter"||K.key===" ")&&(K.preventDefault(),P())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:O},b.id)})})})})]})}function Ob({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 eo='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 _l={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Hb(){const e=pt(_l,bn,yn);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("${eo}")`}})})}const wl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Vb(e={}){const t=pt(wl,bn,yn);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 kl({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:u=!1,pulseSelectedDuration:d,pulseScale:p,clickable:m=!1,onSelectSpeaker:f,buttonSize:C=40,showIcon:g=!0,onCenterClick:y,centerLabel:_,centerDisabled:h=!1,centerAttention:v=!1,shortcutAnchor:x="top-right",shortcutScale:b,scaleShortcut:k=!1}){const{t:w}=ge.useTranslation(),N=Math.max(0,Math.min(1,a)),B=t/2,A=110/300,D=.18,$=z=>t*(A+(z-1)*D),O=z=>{const re=$(z.row??1),ce=z.angleDeg*Math.PI/180;return{x:B+re*Math.cos(ce),y:B+re*Math.sin(ce)}},P=Math.max(...e.map(z=>z.row??1),1),K=t*.08,S=t*.1,L=t*.24,H=t-2*K,ee=t-S-L,U=t-L/2,q=o.useMemo(()=>[...new Set(e.map(z=>z.deg))].sort((z,re)=>z-re),[e]),W=q.length,J=Math.max(68,W>1?H/(W-1):0),I=o.useMemo(()=>new Map(q.map((z,re)=>[z,re])),[q]),E=z=>{const re=I.get(z.deg)??0,ce=B+(re-(W-1)/2)*J,fe=P>1?Math.min(68,ee/(P-1)):0,ye=fe*(P-1),Ne=S+(ee-ye)/2,we=P===1?S+ee*.4:Ne+(P-(z.row??1))*fe;return{x:ce,y:we}},F=z=>{const re=O(z),ce=E(z);return{x:ka(re.x,ce.x,N),y:ka(re.y,ce.y,N)}},R={x:B,y:ka(B,U,N)},T=Math.round(C*1.2),M=Math.round(Math.max(16,Math.min(80,C*.7))),G=[],Y=new Map;for(const z of e){const re=z.row??1;Y.has(re)||Y.set(re,[]),Y.get(re).push(z)}for(const[z,re]of Y.entries()){if(re.length<2)continue;const ce=[...re].sort((ve,Ye)=>ve.deg-Ye.deg),fe=ce.map(ve=>F(ve)),ye=ce.map(ve=>ve.deg),Ne=ye[ye.length-1]-ye[0],we=Ne/(ye.length-1),Be=360-Ne,je=ce.length>=3&&we>0&&Be<=we*1.5,se=Math.round($(z)*1e3)/1e3,te=(ve,Ye,He,Ue)=>{const Se=(Ye.angleDeg-ve.angleDeg+540)%360-180;if(Se===0)return`L ${Ue.x} ${Ue.y}`;if(N===0)return`A ${se} ${se} 0 0 ${Se>0?1:0} ${Ue.x} ${Ue.y}`;const Ge=(ve.angleDeg+Se/2)*Math.PI/180,$e={x:B+se*Math.cos(Ge),y:B+se*Math.sin(Ge)},Ie={x:(He.x+Ue.x)/2,y:(He.y+Ue.y)/2},Ve={x:ka($e.x,Ie.x,N),y:ka($e.y,Ie.y,N)},at={x:2*Ve.x-Ie.x,y:2*Ve.y-Ie.y};return`Q ${at.x} ${at.y} ${Ue.x} ${Ue.y}`},me=je?[...ce,ce[0]]:ce,ne=je?[...fe,fe[0]]:fe;let Ce=`M ${ne[0].x} ${ne[0].y}`;for(let ve=1;ve<ne.length;ve++)Ce+=" "+te(me[ve-1],me[ve],ne[ve-1],ne[ve]);G.push({key:`arc-${z}`,d:Ce})}const Q=o.useMemo(()=>new Set(s??[]),[s]),de=z=>({idle:"",active:w("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:w("soundCompass.state.played","\uB4E4\uC74C"),correct:w("soundCompass.state.correct","\uC815\uB2F5"),wrong:w("soundCompass.state.wrong","\uC624\uB2F5")})[z],Te=z=>{if(r===z.id)return"active";if(c){if(z.id===l)return"correct";if(z.id===i&&i!==l)return"wrong"}return Q.has(z.id)?"played":"idle"},ke=z=>r===z.id?"loop":c?z.id===l?"loop":null:u&&z.id===i?"once":null,oe=(z,re)=>{switch(z){case"played":case"correct":return n.jsx(es,{size:re});case"wrong":return n.jsx(us,{size:re});default:return n.jsx(cs,{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:[N===0&&e.map(z=>{const{x:re,y:ce}=F(z);return n.jsx("line",{x1:R.x,y1:R.y,x2:re,y2:ce,stroke:"#dde3ec",strokeWidth:"1"},z.id)}),G.map(z=>n.jsx("path",{d:z.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},z.key))]}),v&&!h&&n.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:T,height:T,left:R.x-T/2,top:R.y-T/2}}),y?n.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${h?" sound-compass__center--disabled":""}`,style:{width:T,height:T,left:R.x,top:R.y},"aria-label":_,"aria-disabled":h||void 0,tabIndex:h?-1:0,onClick:h?void 0:y,children:n.jsx(fr,{size:M,color:"currentColor",strokeWidth:1.5})}):n.jsx("div",{className:"sound-compass__center",style:{width:T,height:T,left:R.x,top:R.y},children:n.jsx(fr,{size:M,color:"currentColor",strokeWidth:1.5})}),e.map((z,re)=>{const{x:ce,y:fe}=F(z),ye=Te(z),Ne=ke(z),we={...b!==void 0||k?{"--shortcut-badge-scale":String(b??Math.max(.75,Math.min(3,C/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:ye!=="idle"?10:1},Be=C,je=Math.round(Math.max(10,Math.min(56,Be*.38))),se=Math.round(Math.max(7,Math.min(18,Be*.2))),te=Math.round(Math.max(10,Math.min(56,Be*.4))),me=g==="answered"&&(ye==="played"||ye==="correct"||ye==="wrong"),ne=g===!0||me,Ce=!me;return n.jsxs("div",{className:"sound-compass__speaker-pos",style:{...we,left:ce-Be/2,top:fe-Be/2},children:[Ne&&n.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ye}`+(Ne==="once"?" sound-compass__pulse--once":""),style:{width:Be,height:Be,...Ne==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}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?()=>f?.(z.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ye}`,style:{width:Be,height:Be},"aria-label":de(ye)?`${z.label}, ${de(ye)}`:z.label,"aria-pressed":i!=null?z.id===i:void 0,children:[ne&&oe(ye,je),Ce&&n.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:g===!0?se:te},children:re+1})]}),z.shortcut&&n.jsx(kl,{keys:z.shortcut,anchor:x,className:"sound-compass__speaker-shortcut"})]},z.id)})]})})}function Wb({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 qb({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 Al({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:u=>t?.(u.target.checked)}),n.jsx("span",{className:"radio__dot"}),i&&n.jsx("span",{className:"radio__label body-2",children:i})]})}function Ub({options:e,value:t,onChange:a,name:r,disabled:s=!1,direction:i="vertical",className:l="",ariaLabel:c}){const u=o.useId(),d=r??`radio-group-${u}`;return n.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":c,children:e.map(p=>n.jsx(Al,{name:d,value:p.value,checked:t===p.value,disabled:s||p.disabled,label:p.label,onChange:m=>{m&&a?.(p.value)}},p.value))})}const Gb={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Kb({tone:e="info",title:t,message:a,children:r,dismissible:s=!1,onDismiss:i,live:l,className:c=""}){const{t:u}=ge.useTranslation(),[d,p]=o.useState(!1),m=o.useRef(null),f=o.useCallback(()=>{const v=m.current;v&&v.contains(document.activeElement)&&Va(v),p(!0),i?.()},[i]);if(d)return null;const C=De("alert",`alert--${e}`,c),g=l??(e==="danger"||e==="warning"?"assertive":"polite"),y=g==="assertive"?"alert":g==="polite"?"status":void 0,_=!!t,h=!!(a||r);return n.jsxs("div",{ref:m,className:C,role:y,children:[n.jsxs("div",{className:"alert__body",children:[n.jsxs("div",{className:"alert__header",children:[n.jsx(qe,{icon:Gb[e],size:20,className:"alert__icon"}),_&&n.jsx("span",{className:"alert__title body-2",children:t}),!_&&h&&n.jsx("div",{className:"alert__message body-3",children:a||r})]}),_&&h&&n.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&n.jsx("button",{type:"button",className:"alert__dismiss",onClick:f,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const Yb={ready:"search",guide:"info",error:"circle-alert"};function Zb(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 Xb({status:e="guide",label:t,children:a,emphasis:r,icon:s,className:i=""}){const l=s===!1?null:s??Yb[e],c=De("search-summary",`search-summary--${e}`,i),u=t??a,d=typeof u=="string"&&r&&r.length>0?Zb(u,r):u;return n.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&n.jsx(qe,{icon:l,size:18,className:"search-summary__icon"}),n.jsx("span",{className:"search-summary__text body-2",children:d})]})}function Aa({title:e,items:t}){const{t:a}=ge.useTranslation(),{anchorRect:r,openAt:s,close:i}=qa(),l=o.useRef(null),c=zr(!!r,(u,d)=>{u&&d?s(l.current?.querySelector("button")??d):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:u=>{Xn(u)||s(u.currentTarget)},onPointerLeave:u=>{Xn(u)||i()},onClick:u=>{c.touchPress(u.currentTarget)},onFocus:u=>{Jn()||s(u.currentTarget)},onBlur:i}),r&&n.jsx(Fn,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:i})]})}function Jb({items:e=[],value:t,onChange:a,className:r="",size:s=40}){const i=o.useId(),{t:l}=ge.useTranslation(),c=o.useRef(null),u=e.find(y=>!y.disabled)?.key,d=e.some(y=>y.key===t)?t:u??e[0]?.key,p=e.find(y=>y.key===d&&!y.disabled)?.key??u,m=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),f=(y,_=m())=>{if(_.length===0)return;const h=(y%_.length+_.length)%_.length;_[h]?.focus(),_[h]?.click()},C=y=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(y.key))return;y.preventDefault();const _=m(),h=_.indexOf(y.currentTarget);y.key==="ArrowRight"||y.key==="ArrowDown"?f(h+1,_):y.key==="ArrowLeft"||y.key==="ArrowUp"?f(h-1,_):y.key==="Home"?f(0,_):f(_.length-1,_)},g=e.find(y=>y.key===d);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(y=>n.jsx("button",{id:`tabs__tab-${i}-${y.key}`,type:"button",role:"tab","aria-selected":y.key===d,"aria-controls":`tabs__panel-${i}-${y.key}`,disabled:y.disabled,tabIndex:y.key===p?0:-1,className:`tabs__tab body-2${y.key===d?" tabs__tab--active":""}`,onClick:()=>{y.key!==t&&a?.(y.key)},onKeyDown:C,children:y.label},y.key))}),g&&n.jsx("div",{id:`tabs__panel-${i}-${g.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${g.key}`,tabIndex:0,className:"tabs__panel",children:g.panel},g.key)]})}const Qb={xs:12,sm:16,md:20,lg:28,xl:36};function e4(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 t4({src:e,name:t,size:a="md",shape:r="circle",className:s=""}){const{t:i}=ge.useTranslation(),[l,c]=o.useState(null),u=!!e&&l===e,d=t?e4(t):"",p=!!e&&!u,m=!p&&!!d,f=t||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return n.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":f,children:[p&&n.jsx("img",{className:"avatar__image",src:e,alt:f,onError:()=>c(e??null)}),!p&&m&&n.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!p&&!m&&n.jsx(qe,{icon:"user-round",size:Qb[a],className:"avatar__icon"})]})}function n4(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 a4({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:i,onRemove:l,className:c=""}){const{t:u}=ge.useTranslation(),d=o.useRef(null),[p,m]=o.useState(!1),[f,C]=o.useState([]),g=i??f,y=w=>{if(!w||w.length===0)return;const N=Array.from(w).filter(A=>n4(A,t));if(N.length===0)return;const B=a?N:N.slice(0,1);if(i===void 0){const A=a?[...g,...B]:B;C(A),e?.(A)}else e?.(B)},_=w=>{w.preventDefault(),!r&&m(!0)},h=w=>{w.preventDefault(),m(!1)},v=w=>{w.preventDefault(),m(!1),!r&&y(w.dataTransfer.files)},x=w=>{const N=w.target;try{y(N.files)}finally{N.value=""}},b=()=>{r||d.current?.click()},k=w=>{if(!r&&(l?.(w),i===void 0)){const N=g.filter((B,A)=>A!==w);C(N),l||e?.(N)}};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:b,onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),b())},onDragOver:_,onDragLeave:h,onDrop:v,children:[n.jsx(qe,{icon:"upload",size:24,className:"file-upload__icon"}),n.jsx("span",{className:"file-upload__prompt body-2",children:u("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:w=>{w.stopPropagation(),b()},children:u("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),n.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:x,tabIndex:-1})]}),s&&g.length>0&&n.jsx("ul",{className:"file-upload__list",children:g.map((w,N)=>n.jsxs("li",{className:"file-upload__list-item body-3",children:[n.jsx("span",{className:"file-upload__file-name body-3",children:w.name}),n.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":u("fileUpload.removeAriaLabel",{name:w.name}),disabled:r,onClick:()=>k(N),children:n.jsx(qe,{icon:"x",size:14})})]},`${w.name}-${N}`))})]})}function r4({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(qe,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const o4={small:14,medium:20,large:28};function s4({value:e,onChange:t,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:i,className:l=""}){const{t:c}=ge.useTranslation(),u=r||!t,[d,p]=o.useState(null),m=u?e:Number.isFinite(e)?Math.round(e):0,f=d??m,C=o4[s],g=w=>{w!==e&&t?.(w)},y=w=>{u||g(w)},_=w=>{u||Jn()||p(w)},h=o.useRef(null),v=w=>{const N=Math.min(a,Math.max(1,w));g(N),Array.from(h.current?.querySelectorAll("[data-star]")??[]).find(B=>B.dataset.star===String(N))?.focus()},x=w=>{if(!u){switch(w.key){case"ArrowRight":case"ArrowUp":v((m||0)+1);break;case"ArrowLeft":case"ArrowDown":v((m||1)-1);break;case"Home":v(1);break;case"End":v(a);break;default:return}w.preventDefault()}},b=m>=1&&m<=a?Math.round(m):1,k=()=>{u||p(null)};return n.jsx("div",{className:`rating rating--${s}${u?" rating--readOnly":""} ${l}`.trim(),ref:h,onKeyDown:x,role:u?"img":"radiogroup","aria-label":u?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:k,onPointerUp:w=>{w.pointerType==="touch"&&k()},onPointerCancel:w=>{w.pointerType==="touch"&&k()},children:Array.from({length:a},(w,N)=>{const B=N+1,A=Math.max(0,Math.min(1,f-N)),D=A>0&&A<1,$=n.jsxs("span",{className:"rating__star-wrap",children:[n.jsx(qe,{icon:"star",size:C,className:"rating__star rating__star--empty"}),A>0&&n.jsx("span",{className:`rating__star-fill${D?" rating__star-fill--half":""}`,style:D?{width:`${A*100}%`}:void 0,children:n.jsx(qe,{icon:"star",size:C,className:"rating__star rating__star--filled"})})]});return u?n.jsx("span",{className:"rating__item","aria-hidden":"true",children:$},B):n.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":m===B,"aria-label":c("rating.starLabel",{n:B}),"data-star":B,tabIndex:B===b?0:-1,onClick:()=>y(B),onMouseEnter:()=>_(B),children:$},B)})})}const i4=20,l4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function c4({value:e,onChange:t,palette:a=l4,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 u=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":u,"aria-label":u?`${c} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:c,children:u&&n.jsx(qe,{icon:"check",size:i4,className:"color-picker__check"})},c)})})}function u4({icon:e,count:t,title:a,className:r="",onClick:s,onMouseEnter:i,onMouseLeave:l}){const c=De("count-tile",s&&"count-tile--clickable",r);return n.jsxs("div",{className:c,onClick:s,onKeyDown:s?u=>{u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),u.currentTarget.click())}:void 0,onMouseEnter:i,onMouseLeave:l,role:s?"button":"img",tabIndex:s?0:void 0,"aria-label":a?`${a} ${t}`:String(t),children:[n.jsx(qe,{icon:e,size:20,className:"count-tile__icon"}),n.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]})}let Ba=0,Bl="",to="",Na=0;function Nl(){return Dl(!1)}function d4(){return Dl(!0)}function Dl(e){const t=typeof document<"u";Ba===0&&t&&(Bl=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Na===0&&(to=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&&(to?document.body.style.paddingRight=to:document.body.style.removeProperty("padding-right"))),Ba===0&&t&&(document.body.style.overflow=Bl))}}function p4(){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 m4({open:e,onClose:t,ariaLabel:a,title:r,children:s,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:c=!0,showClose:u=!0,className:d,contentClassName:p}){const{t:m}=ge.useTranslation(),f=o.useId(),C=o.useRef(null),g=o.useCallback(()=>t(),[t]);o.useEffect(()=>{if(!e)return;const v=document.activeElement,x=Nl(),b=C.current;return Fr(b,v),b?.focus(),()=>{x();const k=document.activeElement;(!k||k===document.body||b&&b.contains(k))&&Or(v)?.focus?.()}},[e]);const y=o.useRef(g),_=o.useRef(c);o.useEffect(()=>{y.current=g,_.current=c}),o.useEffect(()=>{if(e)return In(()=>{_.current&&y.current()})},[e]);const h=o.useRef(!1);return Pr(C,e),!e||typeof document>"u"?null:qt.createPortal(n.jsx("div",{className:De("dialog",d),onPointerDown:l?v=>{h.current=v.target===v.currentTarget}:void 0,onMouseDown:v=>{v.target===v.currentTarget&&v.preventDefault()},onClick:l?v=>{const x=h.current;h.current=!1,x&&v.target===v.currentTarget&&g()}:void 0,children:n.jsxs("div",{ref:C,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?f:void 0,tabIndex:-1,className:De("dialog__surface",`dialog__surface--${i}`,p),onClick:v=>v.stopPropagation(),children:[r?n.jsx("div",{className:"dialog__header",children:n.jsx("h2",{id:f,className:"dialog__title h4b",children:r})}):null,u?n.jsx("button",{type:"button",className:"dialog__close","aria-label":m("common.close","\uB2EB\uAE30"),onClick:g,children:n.jsx(p4,{})}):null,n.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function h4({columns:e,rows:t,rowKey:a,title:r,toolbar:s,empty:i,loading:l,caption:c,className:u=""}){const{t:d}=ge.useTranslation(),p=!l&&t.length===0;return n.jsxs("div",{className:De("board",u),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??d("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):t.map((m,f)=>n.jsx("tr",{className:"board__row",children:e.map(C=>n.jsx("td",{className:De("board__td",`board__cell--${C.align??"left"}`),children:C.render(m,f)},C.key))},a(m,f)))})]})]})}function f4({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 C4({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 g4({title:e,kind:t,body:a,badge:r,badgeSrc:s,footer:i,width:l,className:c=""}){const u=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:[u?n.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:u}):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 b4({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const s=ba(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 y4({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 v4({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 Sl({value:e,onChange:t,suggestions:a,openOnFocus:r=!1}){const s=o.useId(),[i,l]=o.useState(!1),[c,u]=o.useState(-1),d=o.useRef(null),p=o.useMemo(()=>{if(!a.length)return[];const N=e??"";return N?a.filter(B=>B.toLowerCase().includes(N.toLowerCase())):r?a:[]},[a,e,r]),[m,f]=o.useState(!1),C=o.useRef([]),g=m&&p.length===0?C.current:p;o.useEffect(()=>{g.length&&(C.current=g)},[g]);const y=o.useCallback(()=>f(!0),[]),_=o.useCallback(()=>f(!1),[]);o.useEffect(()=>{i||u(-1)},[i]),o.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const h=c<g.length?c:-1,v=o.useCallback(N=>{t?.(N),l(!1)},[t]),x=o.useCallback(()=>l(!0),[]),b=o.useCallback(()=>{l(!0),u(-1)},[]),k=o.useCallback(()=>{d.current=setTimeout(()=>l(!1),120)},[]),w=o.useCallback(N=>{N.nativeEvent.isComposing||N.keyCode===229||(N.key==="ArrowDown"?(N.preventDefault(),l(!0),u(B=>Math.min(g.length-1,(B<g.length?B:-1)+1))):N.key==="ArrowUp"?(N.preventDefault(),u(B=>Math.max(-1,(B<g.length?B:g.length)-1))):N.key==="Enter"?h>=0&&v(g[h]):N.key==="Escape"&&i&&(N.preventDefault(),l(!1)))},[g,h,i,v]);return{listId:s,open:i,activeIdx:h,filtered:g,handleFocus:x,handleBlur:k,handleInput:b,handleKeyDown:w,handleSelect:v,handleCompositionStart:y,handleCompositionEnd:_}}const El=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Vn(e){const{value:t,defaultValue:a,name:r,inputRef:s,onChange:i,label:l,ariaLabel:c,required:u,placeholder:d,type:p="text",disabled:m=!1,readOnly:f=!1,error:C,helperText:g,maxLength:y,size:_=48,variant:h="input",fullWidth:v=!1,newline:x=!1,multiline:b=!1,rows:k=3,leftIcon:w,rightIcon:N,clearable:B=!1,list:A,showCount:D=!0,className:$="",onFocus:O,onBlur:P,onKeyDown:K,onEnter:S,inputMode:L,autoComplete:H,autoFocus:ee,suggestions:U,openOnFocus:q=!1}=e,W=f||m?void 0:U,{t:J}=ge.useTranslation(),I=o.useId();!l&&!c&&kn(`TextField:unnamed:${I}`,"[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 E=`tf-${I}`,F=`tf-helper-${I}`,R=o.useRef(null),T=Sl({value:t??"",onChange:i,suggestions:W??[],openOnFocus:q}),M=!!W&&T.open&&T.filtered.length>0,G=o.useRef(null),[Y,Q]=o.useState(null),de=o.useCallback(()=>{const ne=G.current;if(!ne||typeof window>"u")return;const Ce=ne.getBoundingClientRect(),ve=230,Ye=window.innerHeight-Ce.bottom<ve+8&&Ce.top>ve+8;Q({position:"fixed",left:Ce.left,width:Ce.width,...Ye?{bottom:window.innerHeight-Ce.top+8}:{top:Ce.bottom+8},zIndex:va(ne)})},[]);El(()=>{if(!M)return;de();const ne=Ce=>{const ve=Ce.target;ve&&ve.nodeType===1&&ve.closest?.(".text-field__suggestions")||de()};return window.addEventListener("scroll",ne,!0),window.addEventListener("resize",de),()=>{window.removeEventListener("scroll",ne,!0),window.removeEventListener("resize",de)}},[M,de]);const Te=o.useCallback(ne=>{R.current=ne,typeof s=="function"?s(ne):s&&(s.current=ne)},[s]),ke=t!==void 0,oe=ke&&p==="password",[z,re]=o.useState((a??"").length),ce=ke?(t??"").length:z,fe=o.useRef(t);El(()=>{fe.current=t}),o.useEffect(()=>{const ne=R.current;if(!oe||!ne)return;const Ce=t??"";ne.value!==Ce&&(ne.value=Ce)},[oe,t]),o.useEffect(()=>{if(!x||!R.current)return;const ne=R.current;ne.style.height="",ne.scrollHeight>ne.clientHeight&&(ne.style.height=`${ne.scrollHeight}px`)},[t,z,x]);const ye=y!=null&&ce>y,Ne=_===32?16:20,we=De("text-field",`text-field--s${_}`,h==="display"?"text-field--display":"",v?"text-field--full-width":"",m?"text-field--disabled":"",f?"text-field--readonly":"",C?"text-field--error":"",w?"text-field--has-left-icon":"",N||B?"text-field--has-right-icon":"",$),Be={id:E,...oe?{}:ke?{value:t}:{defaultValue:a},ref:Te,placeholder:d,name:r,disabled:m,readOnly:f,autoFocus:ee,maxLength:y,list:A,inputMode:L,autoComplete:H,"aria-label":!l&&c?c:void 0,"aria-required":u,"aria-invalid":!!C,"aria-describedby":g||C?F:void 0,role:W?"combobox":void 0,"aria-autocomplete":W?"list":void 0,"aria-haspopup":W?"listbox":void 0,"aria-expanded":W?T.open:void 0,"aria-controls":M?T.listId:void 0,"aria-activedescendant":M&&T.activeIdx>=0?`${T.listId}-option-${T.activeIdx}`:void 0,onChange:ne=>{const Ce=ne.target;ke||re(Ce.value.length),i?.(Ce.value),W&&T.handleInput(),oe&&queueMicrotask(()=>{const ve=fe.current??"";Ce.value!==ve&&(Ce.value=ve)})},onCompositionStart:W?T.handleCompositionStart:void 0,onCompositionEnd:W?T.handleCompositionEnd:void 0,onFocus:(ne=>{O?.(ne),W&&T.handleFocus()}),onBlur:(ne=>{P?.(ne),W&&T.handleBlur()}),onKeyDown:(ne=>{W&&ne.key==="Enter"&&!ne.nativeEvent.isComposing&&T.activeIdx>=0?ne.preventDefault():S&&ne.key==="Enter"&&!ne.nativeEvent.isComposing&&(ne.preventDefault(),S()),K?.(ne),W&&T.handleKeyDown(ne)})},je=B&&!m&&!f&&ce>0,se=()=>x?n.jsx("textarea",{...Be,className:"text-field__input text-field__input--auto body-2",rows:1}):b?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"}),te=h==="display"&&!x&&!b&&!!d,me=()=>n.jsxs(n.Fragment,{children:[se(),te&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:d})]});return n.jsxs("div",{ref:G,className:we,children:[l&&n.jsxs("label",{htmlFor:E,className:"text-field__label caption-1",children:[l,u&&n.jsx("span",{className:"text-field__required",children:"*"})]}),n.jsxs("div",{className:"text-field__wrap",children:[w&&n.jsx("span",{className:"text-field__icon text-field__icon--left",children:n.jsx(qe,{icon:w,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ne})}),me(),y!=null&&D&&n.jsxs("span",{className:`text-field__count caption-2${ye?" text-field__count--over":""}`,children:[ce,"/",y]}),je&&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:()=>{!ke&&R.current&&(R.current.value="",re(0)),i?.("")},tabIndex:-1}),N&&!je&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(qe,{icon:N,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ne})})]}),M&&(typeof document>"u"?null:qt.createPortal(n.jsx("ul",{id:T.listId,className:"text-field__suggestions",role:"listbox",style:Y??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:T.filtered.map((ne,Ce)=>n.jsx("li",{id:`${T.listId}-option-${Ce}`,role:"option","aria-selected":Ce===T.activeIdx,className:`text-field__suggestion body-2${Ce===T.activeIdx?" is-active":""}`,onMouseDown:ve=>ve.preventDefault(),onClick:()=>{T.handleSelect(ne),R.current?.focus()},children:ne},`${ne}-${Ce}`))}),document.body)),(g||C)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:F,className:"text-field__helper caption-1",role:C?"alert":void 0,children:C||g})})]})}function nn({options:e,value:t,onChange:a,placeholder:r,disabled:s=!1,block:i=!1,size:l=48,error:c=!1,className:u="",ariaLabel:d,ariaDescribedBy:p}){const{t:m}=ge.useTranslation(),f=r??m("dropdown.placeholder","\uC120\uD0DD"),C=o.useId(),g=o.useId(),y=o.useRef(null),_=o.useCallback((S,L)=>{const H=window.innerHeight-S.bottom<260&&S.top>260;return{position:"fixed",left:S.left,minWidth:S.width,...H?{bottom:window.innerHeight-S.top+6}:{top:S.bottom+6},zIndex:va(L)}},[]),{open:h,setOpen:v,toggle:x,style:b,triggerRef:k,menuRef:w}=xa({computeStyle:_}),[N,B]=o.useState(-1),A=o.useCallback(()=>B(-1),[]),D=e.find(S=>S.value===t);o.useEffect(()=>{if(h){const S=e.findIndex(L=>L.value===t);B(S>=0?S:e.length?0:-1),requestAnimationFrame(()=>{const L=w.current;if(!L)return;const H=L.querySelectorAll(".dropdown__option")[S];H&&(L.scrollTop=Math.max(0,H.offsetTop-L.clientHeight/2+H.clientHeight/2))})}},[h]),o.useEffect(()=>{h&&B(S=>{if(S>=0&&S<e.length)return S;const L=e.findIndex(H=>H.value===t);return L>=0?L:e.length?0:-1})},[h,e.length]);const $=o.useCallback(()=>{s||x()},[s,x]),O=o.useCallback(S=>{S.disabled||s||(S.value!==t&&a?.(S.value),v(!1))},[a,v,s,t]);o.useEffect(()=>{s&&v(!1)},[s,v]);const P=o.useCallback(S=>{if(!s){if(!h){(S.key==="Enter"||S.key===" "||S.key==="ArrowDown")&&(S.preventDefault(),v(!0));return}if(S.key==="Escape"){S.preventDefault(),v(!1);return}S.key==="ArrowDown"?(S.preventDefault(),B(L=>{let H=L+1;for(;H<e.length&&e[H].disabled;)H++;return H<e.length?H:L})):S.key==="ArrowUp"?(S.preventDefault(),B(L=>{let H=L-1;for(;H>=0&&e[H].disabled;)H--;return H>=0?H:L})):(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),e[N]?O(e[N]):v(!1))}},[s,h,e,N,O,v]),K=h?n.jsx("div",{ref:w,id:C,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:b,onMouseLeave:A,onMouseDown:S=>S.preventDefault(),children:e.map((S,L)=>n.jsxs("button",{id:`${C}-option-${L}`,type:"button",role:"option","aria-selected":S.value===t,className:De("dropdown__option body-2",S.value===t?"dropdown__option--active":"",L===N?"dropdown__option--active":"",S.disabled?"dropdown__option--disabled":""),onMouseDown:H=>H.preventDefault(),onClick:()=>O(S),onMouseEnter:()=>B(L),disabled:S.disabled,children:[n.jsx("span",{className:"dropdown__option-check",children:S.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"})})}),S.label]},S.value))}):null;return n.jsxs("div",{ref:y,className:De("dropdown",`dropdown--s${l}`,h?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",u),onKeyDown:P,children:[n.jsxs("button",{ref:k,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":h,"aria-controls":h?C:void 0,"aria-activedescendant":h&&N>=0?`${C}-option-${N}`:void 0,"aria-label":d,"aria-describedby":[d&&D?g:"",p??""].filter(Boolean).join(" ")||void 0,"aria-invalid":c||void 0,disabled:s,onClick:$,onBlur:S=>{h&&!w.current?.contains(S.relatedTarget)&&v(!1)},children:[n.jsx("span",{id:g,className:`dropdown__trigger-label body-2${D?"":" dropdown__trigger-label--placeholder"}`,children:D?D.label:f}),n.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&qt.createPortal(K,y.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function Ga({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"),u=s??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,t),p=()=>a(Math.max(1,Math.min(d,e-1))),m=()=>a(Math.min(d,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),d)," / ",d]}),n.jsx(le,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:u,disabled:e>=t,onClick:m})]})}function Sn(e){const{t}=ge.useTranslation(),{options:a=[],value:r=a.find(h=>!h.disabled)?.key??a[0]?.key,onChange:s=h=>{},className:i="",size:l=48,shape:c="pill",useBG:u=!0,fullWidth:d=!1,ariaLabel:p}=e||{},m=o.useRef(null),f=a.filter(h=>!h.disabled),C=h=>{if(!f.length)return;const v=Math.max(0,f.findIndex(b=>b.key===r)),x=h==="first"?f[0]:h==="last"?f[f.length-1]:f[(v+h+f.length)%f.length];x&&(s(x.key),Array.from(m.current?.querySelectorAll("[data-segkey]")??[]).find(b=>b.dataset.segkey===x.key)?.focus())},g=h=>{switch(h.key){case"ArrowRight":case"ArrowDown":C(1);break;case"ArrowLeft":case"ArrowUp":C(-1);break;case"Home":C("first");break;case"End":C("last");break;default:return}h.preventDefault()},y=h=>{const v=x=>typeof x=="string"||typeof x=="number";if(!(!v(h.label)||h.count==null||h.count===!1||!v(h.count)))return`${h.label}, ${h.count}`},_=f.some(h=>h.key===r)?r:f[0]?.key;return n.jsx("div",{ref:m,onKeyDown:g,className:De("segmented-control",`segmented-control--${c}`,`segmented-control--${l}`,d&&"segmented-control--full",!u&&"segmented-control--no-bg",i),role:"radiogroup","aria-label":p??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(h=>n.jsx(le,{htmlType:"button",role:"radio","aria-checked":h.key===r,"data-segkey":h.key,tabIndex:h.key===_?0:-1,label:h.label,count:h.count,ariaLabel:y(h),disabled:h.disabled,className:h.key===r?"is-selected":"",onClick:()=>{h.disabled||s(h.key)},size:l,shape:c,useBorder:!1,useBG:!1},h.key))})}function no({count:e,search:t,segment:a,filters:r,pageSize:s,pagination:i,actions:l,className:c}){const{t:u}=ge.useTranslation(),d=e!=null&&n.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??u("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:[d,a&&(Array.isArray(a)?a:[a]).map((m,f)=>n.jsx(Sn,{size:40,...m},m.ariaLabel??f))]}),p&&n.jsx("div",{className:"toolbar__row",children:n.jsxs("div",{className:"toolbar__row-end",children:[t&&n.jsx(Vn,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??u("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??u("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((m,f)=>n.jsx(nn,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},f)),s&&n.jsx(nn,{size:40,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??u("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&n.jsx(Ga,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel}),l]})})]})}function Tl(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(Tl).join(""):""}function x4(e){let t=e.replace(/\r\n/g,`
853
853
  `).replace(/\r/g,`
854
854
  `);t=t.replace(/^\n+/,"").replace(/\n+$/,"");const a=t.split(`
855
855
  `).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(`
856
856
  `)}const _4=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),w4=/^(?: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 k4(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 g=a.indexOf(`
857
- `),b=g===-1?a:a.slice(0,g);i("comment",b),a=a.slice(b.length);continue}if(s&&a.startsWith("#")){const g=a.indexOf(`
858
- `),b=g===-1?a:a.slice(0,g);i("comment",b),a=a.slice(b.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),a=a.slice(c[0].length);continue}const u=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(u){i("string",u[0]),a=a.slice(u[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){i("number",d[0]),a=a.slice(d[0].length);continue}const p=a.match(w4);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 g=m[0];i(s&&_4.has(g)?"command":"identifier",g),a=a.slice(g.length);continue}const f=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(f){i("operator",f[0]),a=a.slice(f[0].length);continue}const C=a.match(/^[()[\]{};.,]/);if(C){i("punctuation",C[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function A4({children:e,language:t="bash",title:a="",showCopy:r=!0,size:s="default",className:i=""}){const{t:l}=ge.useTranslation(),[c,u]=o.useState(!1),d=x4(Tl(e)),p=o.useRef(null);o.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=async()=>{try{if(!await k2(d))return;u(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>u(!1),2e3)}catch{}},f=k4(d,t),C=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:f.map((g,b)=>n.jsx("span",{className:`code-token ${g.type} ${C}`,children:g.content},b))})})]})}const B4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function Da(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 u=s==null||!Number.isFinite(Number(s)),d=u?0:Math.max(0,Math.min(100,Number(s)));return n.jsx("div",{className:`loader-bar${u?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u?void 0:d,"aria-label":l,children:n.jsx("div",{className:"loader-bar__inner",style:u?void 0:{width:`${d}%`}})})}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:B4,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 jl({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:s,labelPosition:i="right",className:l="",id:c}){const u=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"&&u,n.jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>t?.(d.target.checked),"aria-label":!r&&s?s:void 0}),n.jsx("span",{className:"toggle__slider"}),i==="right"&&u]})}function Ml({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:s,size:i="medium",className:l,title:c,ariaLabel:u}){const d=o.useRef(null),p=o.useId(),m=o.useRef(!!r);return m.current=!!r,o.useEffect(()=>{d.current&&(d.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:d,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:f=>{t?.(f.target.checked),d.current&&(d.current.indeterminate=m.current)},disabled:a,"aria-label":!s&&u?u:void 0}),n.jsx("span",{className:"checkbox__box"}),s&&n.jsx("span",{className:"checkbox__label body-3",children:s})]})}function N4({count:e,actions:t,onClear:a,clearLabel:r,visible:s,content:i,max:l}){const{t:c}=ge.useTranslation(),u=s!==void 0?s:e>0,d=r??c("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=o.useRef(null),m=o.useRef(null),f=o.useRef(null),C=o.useRef(u);o.useLayoutEffect(()=>{const v=m.current,x=C.current;if(C.current=u,u&&!x){const y=typeof document<"u"?document.activeElement:null;f.current=y&&y!==document.body&&!v?.contains(y)?y:null}else!u&&x&&v&&v.contains(document.activeElement)&&Va(v,f.current)},[u]);const[g,b]=o.useState(!1),_=o.useRef(!1),h=o.useRef(null);return o.useEffect(()=>{const v=p.current;if(!v)return;const x=A=>{_.current=A,b(A)},y=()=>{const A=v.firstElementChild??v,D=Array.from(A.children);if(D.length<2){x(!1);return}const $=D[0].offsetTop,F=D.some(H=>H.offsetTop!==$);if(!_.current){h.current=v.clientWidth,F&&x(!0);return}if(F)return;const P=D[0],G=D[D.length-1],E=G.offsetLeft+G.offsetWidth-P.offsetLeft,M=h.current;(M==null||E<=M)&&x(!1)};if(y(),typeof ResizeObserver>"u")return;const k=new ResizeObserver(y);k.observe(v);const w=v.parentElement;let N=w?.clientWidth??0;const B=new ResizeObserver(()=>{const A=w?.clientWidth??0;A!==N&&(N=A,h.current=null,y())});return w&&B.observe(w),()=>{k.disconnect(),B.disconnect()}},[i,e]),n.jsxs("div",{ref:m,className:`bulk-bar ${u?"bulk-bar--visible":""}`,inert:!u||void 0,"aria-hidden":u?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(mt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),n.jsxs("div",{className:`bulk-bar__actions${g?" bulk-bar__actions--stacked":""}`,children:[n.jsx(le,{htmlType:"button",size:40,label:d,onClick:a}),t.map((v,x)=>n.jsx(le,{htmlType:"button",size:40,variant:v.variant??"default",icon:v.icon,label:v.label,onClick:v.onClick},x))]})]})}function Ll(e,t){const a=()=>{if(e){const[b,_]=e.split("-");return{y:+b,m:+_-1}}const[C,g]=Lr(t).split("-");return{y:+C,m:+g-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 C=a();s(C.y),l(C.m)},[e]);const u=o.useRef({y:r,m:i});o.useEffect(()=>{u.current={y:r,m:i}},[r,i]);const d=o.useCallback(C=>{const g=u.current.y*12+u.current.m+C,b=Math.floor(g/12),_=g-b*12;u.current={y:b,m:_},s(b),l(_)},[]),p=o.useCallback(()=>d(-1),[d]),m=o.useCallback(()=>d(1),[d]),f=o.useCallback((C,g)=>{u.current={y:C,m:g},s(C),l(g)},[]);return{viewY:r,viewM:i,prevMonth:p,nextMonth:m,setViewYM:f}}function Ka(e,t){return new Date(e,t+1,0).getDate()}function D4(e,t){return new Date(e,t,1).getDay()}function Ya(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function S4(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function E4(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 u=0;u<12;u++){const d=`${c}-${String(u+1).padStart(2,"0")}`;a&&d<a.slice(0,7)||r&&d>r.slice(0,7)||l.push({value:d,label:t(c,u+1)})}return l}function T4({value:e,onChange:t,size:a=48,min:r,max:s,disabled:i,placeholder:l,className:c,today:u}){const{t:d}=ge.useTranslation(),p=l??d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),m=o.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),f=Lr(u),{viewY:C,viewM:g,prevMonth:b,nextMonth:_,setViewYM:h}=Ll(e,u),v=o.useId(),x=o.useCallback((T,O)=>{const R=window.innerHeight,S=window.innerWidth,L=typeof document<"u"?document.getElementById(v):null,K=L?.offsetHeight||300,Z=Math.max(T.width,L?.offsetWidth||0,260),Q=R-T.bottom<K&&T.top>K,pe=8,Te=(ke,oe)=>Math.min(Math.max(pe,ke),Math.max(pe,oe));return{position:"fixed",left:Te(T.left,S-Z-pe),width:T.width,minWidth:260,...Q?{bottom:Te(R-T.top+6,R-K-pe)}:{top:Te(T.bottom+6,R-K-pe)},zIndex:va(O)}},[v]),{open:y,setOpen:k,toggle:w,style:N,triggerRef:B,menuRef:A}=xa({computeStyle:x,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!y)return;const T=A.current;return(T?.querySelector(".date-picker__day--selected:not(:disabled)")??T?.querySelector(".date-picker__day--today:not(:disabled)")??T?.querySelector(".date-picker__day:not(:disabled)")??T?.querySelector(fn)??T)?.focus?.(),()=>{const O=document.activeElement;(!O||O===document.body)&&B.current?.focus?.()}},[y,A,B]);const[D,$]=o.useState(1),F=o.useRef(null),P=o.useRef(null);o.useEffect(()=>{if(!y)return;const T=e&&e.slice(0,7)===`${C}-${String(g+1).padStart(2,"0")}`?+e.slice(8):f.slice(0,7)===`${C}-${String(g+1).padStart(2,"0")}`?+f.slice(8):1;$(T)},[y]),o.useEffect(()=>{if(P.current==null)return;const T=P.current;P.current=null,F.current?.querySelector(`[data-day="${T}"]`)?.focus()}),o.useEffect(()=>{$(T=>Math.min(T,Ka(C,g)))},[C,g]);const G=o.useCallback(T=>{let O=Ya(T.getFullYear(),T.getMonth(),T.getDate());r&&O<r&&(O=r),s&&O>s&&(O=s);const[R,S,L]=O.split("-").map(Number);(R!==C||S-1!==g)&&h(R,S-1),$(L),P.current=L},[r,s,C,g,h]),E=o.useCallback(T=>{const O=new Date(C,g,D),R=L=>{O.setDate(O.getDate()+L),G(O)},S=L=>{const K=O.getFullYear()*12+O.getMonth()+L,Z=Math.floor(K/12),Q=K-Z*12;G(new Date(Z,Q,Math.min(O.getDate(),Ka(Z,Q))))};switch(T.key){case"ArrowLeft":R(-1);break;case"ArrowRight":R(1);break;case"ArrowUp":R(-7);break;case"ArrowDown":R(7);break;case"Home":R(-O.getDay());break;case"End":R(6-O.getDay());break;case"PageUp":T.shiftKey?S(-12):S(-1);break;case"PageDown":T.shiftKey?S(12):S(1);break;default:return}T.preventDefault()},[C,g,D,G]),M=o.useCallback(T=>{i||(t(Ya(C,g,T)),k(!1))},[C,g,t,k,i]);o.useEffect(()=>{i&&k(!1)},[i,k]);const H=T=>{const O=Ya(C,g,T);return!!(r&&O<r||s&&O>s)},ee=(()=>{const T=Ka(C,g);if(D>=1&&D<=T&&!H(D))return D;for(let O=1;O<=T;O++)if(!H(O))return O;return-1})(),q=[];for(let T=0;T<D4(C,g);T++)q.push(null);for(let T=1;T<=Ka(C,g);T++)q.push(T);const U=a===64?20:a===40?16:18,W=E4(C,(T,O)=>d("calendar.yearMonth",{year:T,month:O,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,s),J=`${C}-${String(g+1).padStart(2,"0")}`,I=y?qt.createPortal(n.jsxs("div",{ref:A,id:v,className:"date-picker__dropdown",style:N,"data-tooltip-ignore":!0,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[n.jsxs("div",{className:"date-picker__nav",children:[n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:b,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(ts,{size:16,strokeWidth:2})}),n.jsx(nn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:W,value:J,onChange:T=>{const[O,R]=T.split("-");h(+O,+R-1)},block:!0,size:40}),n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:_,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(ns,{size:16,strokeWidth:2})})]}),n.jsxs("div",{className:"date-picker__grid",ref:F,onKeyDown:E,children:[m.map(T=>n.jsx("div",{className:"date-picker__dow caption-1",children:T},T)),q.map((T,O)=>{if(T===null)return n.jsx("div",{},`e${O}`);const R=Ya(C,g,T),S=R===e,L=R===f,K=H(T),Z=O%7;return n.jsx("button",{type:"button",disabled:K,"data-day":T,tabIndex:T===ee?0:-1,"aria-current":L?"date":void 0,onClick:()=>!K&&M(T),className:De("date-picker__day caption-1",S&&"date-picker__day--selected",L&&!S&&"date-picker__day--today",K&&"date-picker__day--disabled",Z===0&&"date-picker__day--sun",Z===6&&"date-picker__day--sat"),children:T},T)})]})]}),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:B,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&w(),disabled:i,"aria-haspopup":"true","aria-expanded":y,children:[n.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?S4(e):p}),n.jsx(ds,{size:U,className:"date-picker__icon",strokeWidth:1.5})]}),I]})}function ao({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 Za({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 ro({title:e,titleClassName:t="h3",icon:a,disc:r,headRight:s,headSegment:i,headMenuItems:l,collapseBelow:c=420,subRow:u,className:d,inGrid:p=!1,children:m}){const{t:f}=ge.useTranslation(),C=o.useRef(null),[g,b]=o.useState(!1);o.useEffect(()=>{const B=C.current;if(!B||!i)return;const A=$=>b($>0&&$<c);if(A(B.clientWidth),typeof ResizeObserver>"u")return;const D=new ResizeObserver($=>A($[0].contentRect.width));return D.observe(B),()=>D.disconnect()},[i,c]);const[_,h]=o.useState(null),v=o.useCallback(()=>h(null),[]),x=o.useCallback(B=>{const A=B.currentTarget.getBoundingClientRect();h(D=>D?null:{left:A.left,right:A.right,top:A.top,bottom:A.bottom,width:A.width,height:A.height,x:A.x,y:A.y})},[]),y=!!i&&g;o.useEffect(()=>{y||h(null)},[y]);const k=i?[...i.options.map(B=>({label:B.label,icon:B.icon,selected:B.key===i.value,disabled:B.disabled,onClick:()=>i.onChange(B.key),closeOnSelect:!0})),...(l??[]).map((B,A)=>A===0?{...B,separatorBefore:!0}:B)]:[],w=typeof s=="function"?s({collapsed:y}):s,N=w||i?n.jsxs("div",{className:"manager-section__head-right",children:[w,i&&(y?n.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"ellipsis",ariaLabel:i.ariaLabel??f("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:i.ariaLabel??f("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!_,onClick:x}):n.jsx(Sn,{size:32,ariaLabel:i.ariaLabel,options:i.options.map(B=>({key:B.key,label:B.label,disabled:B.disabled})),value:i.value,onChange:i.onChange}))]}):null;return n.jsxs("section",{ref:C,className:["manager-section",p&&"manager-section--grid",d].filter(Boolean).join(" "),children:[n.jsxs("div",{className:"manager-section__head",children:[n.jsxs("div",{className:"manager-section__title-row",children:[a&&n.jsx(qe,{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})]}),N,r&&n.jsx("div",{className:"manager-section__disc body-3",children:r})]}),u&&n.jsx("div",{className:"barchart-sub-row",children:u}),m,_&&n.jsx(Cn,{anchorRect:_,onClose:v,ariaLabel:i?.ariaLabel??f("tooltip.menu","\uBA54\uB274"),children:n.jsx(_a,{columns:[{items:k}],onClose:v,size:"small"})})]})}function on(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function j4(){const e=Kn();let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<on(t,a)){const l=new Date(t,a,0);t=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const s=Math.floor((r-on(t,a))/7),i=`${t}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${s}`}}function M4(e){const t=Kn(),a=`${t.getFullYear()}\uB144 ${t.getMonth()+1}\uC6D4`,r=(u,d)=>`${u}\uB144 ${d+1}\uC6D4`,s=new Map;s.set(a,[]);for(const u of e){if(isNaN(u.date.getTime()))continue;const d=r(u.date.getFullYear(),u.date.getMonth());s.has(d)||s.set(d,[]),s.get(d).push(u)}for(const[u,d]of[...s.entries()]){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),f=Number(p[2])-1,C=on(m,f);if(!(u===a&&t.getDate()<C)&&!d.some(_=>_.date.getDate()<C))continue;const g=new Date(m,f,0),b=r(g.getFullYear(),g.getMonth());s.has(b)||s.set(b,[])}const i=new Map;for(const[u,d]of s){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),f=Number(p[2])-1,C=new Date(m,f+1,0).getDate(),g=d.reduce((y,k)=>Math.max(y,k.parts?.length??0,k.partsB?.length??0),0),b=d.some(y=>y.partsB),_=new Array(C+1).fill(0),h=new Array(C+1).fill(0),v=Array.from({length:C+1},()=>new Array(g).fill(0)),x=Array.from({length:C+1},()=>new Array(g).fill(0));for(const y of d){const k=y.date.getDate();if(_[k]+=y.a,h[k]+=y.b,y.parts)for(let w=0;w<g;w++)v[k][w]+=y.parts[w]??0;if(y.partsB)for(let w=0;w<g;w++)x[k][w]+=y.partsB[w]??0}i.set(u,{year:m,month:f,daysInMonth:C,partsLen:g,hasPartsB:b,dayA:_,dayB:h,dayParts:v,dayPartsB:x})}const l=(u,d,p)=>new Date(u,d,p).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),c={};for(const[u,d]of i){const{year:p,month:m,daysInMonth:f,dayA:C,dayB:g,dayParts:b,dayPartsB:_}=d,h=p===t.getFullYear()&&m===t.getMonth(),v=t.getDate(),x=i.get(r(m===11?p+1:p,(m+1)%12)),y=d.partsLen,k=[];for(let N=1;N<=f;N++){const B=h&&N>v;k.push({label:String(N),...B&&C[N]===0&&g[N]===0?{future:!0}:{},a:B&&C[N]===0&&g[N]===0?-1:C[N],b:g[N],...y?{parts:b[N]}:{},...y&&d.hasPartsB?{partsB:_[N]}:{}})}const w=[];for(let N=on(p,m);N<=f;N+=7){const B=Math.max(0,N+6-f),A=B&&x?Math.max(y,x.partsLen):y,D=d.hasPartsB||!!(B&&x?.hasPartsB);let $=0,F=0;const P=new Array(A).fill(0),G=new Array(A).fill(0);for(let M=N;M<=Math.min(N+6,f);M++){$+=C[M],F+=g[M];for(let H=0;H<y;H++)P[H]+=b[M][H],G[H]+=_[M][H]}if(B&&x)for(let M=1;M<=B&&!l(x.year,x.month,M);M++){$+=x.dayA[M],F+=x.dayB[M];for(let H=0;H<x.partsLen;H++)P[H]+=x.dayParts[M][H],G[H]+=x.dayPartsB[M][H]}const E=B?`${(m+1)%12+1}/${B}`:`${N+6}`;w.push({label:`${w.length+1}\uC8FC`,sublabel:`[${N}\uC77C~${E}\uC77C]`,a:$,b:F,...A?{parts:P}:{},...A&&D?{partsB:G}:{}})}c[u]={weekly:w,daily:k}}return c}function $l(){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()}$l();function L4(){return $l()}const Rl=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function Pl(e){const{t,i18n:a}=ge.useTranslation(),[r,s]=o.useState("week"),i=o.useMemo(()=>L4().filter(A=>A.value in e),[e]),l=o.useMemo(()=>{const A=[];for(const D of i){const $=new Date(D.year,D.month,0).getDate(),F=on(D.year,D.month-1),P=Math.ceil(($-F+1)/7);for(let G=P-1;G>=0;G--)A.push({value:`${D.value}#${G}`,monthKey:D.value,year:D.year,month:D.month,week:G})}return A},[i]),c=o.useCallback(A=>{const D=t("calendar.yearMonth",{year:A.year,month:A.month});return a.language?.startsWith("ko")?`${D} ${Rl[A.week]??`${A.week+1}`}\uC8FC`:`${D} Week ${A.week+1}`},[t,a.language]),u=o.useMemo(()=>i.map(A=>({value:A.value,label:t("calendar.yearMonth",{year:A.year,month:A.month})})),[t,i]),d=o.useMemo(()=>l.map(A=>({value:A.value,label:c(A)})),[l,c]),p=o.useMemo(()=>j4(),[e]),m=o.useMemo(()=>i.find(A=>A.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),f=o.useMemo(()=>l.find(A=>A.value===p.value)?.value??l[0]?.value??"",[l,p]),[C,g]=o.useState(""),[b,_]=o.useState("");o.useEffect(()=>{i.find(A=>A.value===C)||g(m)},[i,C,m]),o.useEffect(()=>{l.find(A=>A.value===b)||_(f)},[l,b,f]);const h=r==="month"?u:d,v=r==="month"?C:b,x=r==="month"?g:_,y=o.useMemo(()=>{const A=t("calendar.dow",{returnObjects:!0});return Array.isArray(A)?A:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),k=h.findIndex(A=>A.value===v),w=o.useCallback(()=>{const A=h.findIndex(D=>D.value===v);A<h.length-1&&x(h[A+1].value)},[h,v,x]),N=o.useCallback(()=>{const A=h.findIndex(D=>D.value===v);A>0&&x(h[A-1].value)},[h,v,x]),B=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:v,setRange:x,activeOptions:h,activeIdx:k,handlePrev:w,handleNext:N,periodOptions:B,monthRange:C,weekRange:b,weekRanges:l,DOW:y}}const lt=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function vn(e,t=!0){return e.future===!0||t&&e.a===-1}function $4({data:e,colorA:t,colorB:a,labelA:r,labelB:s,barWidth:i=10,barGap:l=1,height:c=140,maxOverride:u,tightMax:d,seriesColors:p,seriesLabels:m,rateLabels:f,grouped:C=!1,baseline:g}){const b=!a,_=!!(p&&p.length>0),h=g,v=o.useMemo(()=>_?Math.max(0,...e.filter(M=>!vn(M,h==null)).map(M=>C?Math.max(0,...(M.parts??[]).map(lt)):(M.parts??[]).reduce((H,ee)=>H+Math.max(0,lt(ee)),0))):Math.max(0,...e.filter(M=>!vn(M,h==null)).flatMap(M=>b?[lt(M.a)]:[lt(M.a),lt(M.b)])),[e,b,_,C]),x=o.useMemo(()=>{if(h==null)return 0;const M=e.filter(H=>!vn(H,h==null)).flatMap(H=>_?(H.parts??[]).map(lt):b?[lt(H.a)]:[lt(H.a),lt(H.b)]);return Math.max(0,...M.map(H=>Math.abs(H-h)))},[e,h,_,b]),y=o.useMemo(()=>{const M=h!=null?x:v;return u??(d?M>0?M:10:Math.ceil(M/10)*10||10)},[v,x,h,u,d]),k=c,w=_?C?Math.max(1,p.length):1:b?1:2,N={"--bar-width":`${o.useMemo(()=>{const M=Math.max(1,e.length);return Math.max(2,Math.min(i,Math.round(120/(M*w)+6)))},[e.length,w,i])}px`},B={"--bar-group-gap":`${Math.max(0,l)}px`},A=o.useMemo(()=>{const M=Math.round(y/2);return h!=null?[h+y,...M!==y?[h+M]:[],h,...M!==y?[h-M]:[],h-y]:M!==y?[y,M,0]:[y,0]},[y,h]),D=M=>h!=null?1-(M-(h-y))/(2*y):1-M/y,[$,F]=o.useState(null),P=o.useCallback(()=>F(null),[]),G=M=>h!=null&&M>h?`+${M}`:`${M}`,E=$!=null;return o.useEffect(()=>{if(!E)return;const M=()=>F(null),H=ee=>{const q=ee.target;q&&typeof q.closest=="function"&&q.closest(".manager-bar-chart-col")||F(null)};return window.addEventListener("scroll",M,!0),document.addEventListener("pointerdown",H,!0),()=>{window.removeEventListener("scroll",M,!0),document.removeEventListener("pointerdown",H,!0)}},[E]),n.jsxs("div",{className:"manager-bar-chart-wrap",style:B,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,H)=>n.jsx("div",{className:`manager-bar-chart-gridline${h!=null&&M===h?" manager-bar-chart-gridline--baseline":""}`,style:{top:D(M)*k},children:n.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:M})},H)),e.map((M,H)=>{const ee=vn(M,h==null),q=k/2,U=T=>h!=null?Math.min(q,Math.abs(lt(T)-h)/y*q):Math.min(k,Math.max(0,lt(T)/y*k)),W=ee?0:U(M.a),J=ee?0:U(M.b),I=(M.parts??[]).map(lt);return n.jsx("div",{className:`manager-bar-chart-col${C&&_?" manager-bar-chart-col--group":""}`,style:{cursor:ee?"default":"pointer"},onMouseEnter:ee?void 0:T=>{const O=T.currentTarget.getBoundingClientRect(),R=[M.label,M.sublabel].filter(Boolean).join(" ");let S;if(_&&C&&M.rawPartsB)S=(m??[]).map((L,K)=>{const Z=M.rawPartsB[K]??0;return{text:Z>0?`${L}: ${I[K]??0}% (${M.rawParts?.[K]??0}/${Z})`:`${L}: -`,color:(p??[])[K]}});else if(_&&C)S=(m??[]).map((L,K)=>({text:`${L}: ${G(I[K]??0)}`,color:(p??[])[K]}));else if(_){const L=(m??[]).map((Z,Q)=>({text:`${Z}: ${I[Q]??0}`,color:(p??[])[Q]})),K=L.filter((Z,Q)=>(I[Q]??0)>0);S=K.length?K:L}else f&&!b?S=[{text:`${r} ${lt(M.a)}%`,color:t},{text:`${s} ${lt(M.b)}%`,color:a}]:f&&M.rawB!==void 0?S=[{text:`${f.total} ${M.rawB}`},{text:`${f.done} ${M.rawA??0}`,color:t}]:b?S=[{text:`${r}: ${lt(M.a)}`,color:t}]:S=[{text:`${r}: ${lt(M.a)}`,color:t},{text:`${s}: ${lt(M.b)}`,color:a}];F({rect:{left:O.left,top:O.top,right:O.right,bottom:O.bottom,width:O.width,height:O.height},title:R,items:S})},onMouseLeave:P,children:!ee&&(_&&C?(p??[]).map((T,O)=>{const R=I[O]??0;if(h==null)return n.jsx("div",{className:"manager-bar-chart-bar",style:{...N,height:U(R),background:T}},O);const S=lt(R)<h;return n.jsxs("div",{className:"manager-bar-chart-slot",style:N,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!S&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:U(R),background:T}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:S&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:U(R),background:T}})})]},O)}):_?n.jsx("div",{className:"manager-bar-chart-stack",style:N,children:(()=>{const T=I.reduce((R,S,L)=>S>0?L:R,-1);let O=k;return I.map((R,S)=>{if(R<=0)return null;const L=Math.min(O,R/y*k);return O-=L,n.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:L,background:(p??[])[S],borderRadius:S===T?"6px 6px 0 0":void 0}},S)})})()}):h!=null?n.jsx(n.Fragment,{children:[{v:lt(M.a),c:t},...b?[]:[{v:lt(M.b),c:a}]].map(({v:T,c:O},R)=>n.jsxs("div",{className:"manager-bar-chart-slot",style:N,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:T>=h&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:U(T),background:O}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:T<h&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:U(T),background:O}})})]},R))}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"manager-bar-chart-bar",style:{...N,height:W,background:t}}),!b&&n.jsx("div",{className:"manager-bar-chart-bar",style:{...N,height:J,background:a}})]}))},H)})]}),n.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((M,H)=>{const ee=vn(M,h==null);return n.jsxs("span",{className:`manager-bar-chart-x-axis__label${ee?" 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})]},H)})})]})})}),$&&n.jsx(Fn,{anchorRect:$.rect,title:$.title,items:$.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Il({control:e}){const{t}=ge.useTranslation(),{activeOptions:a,activeIdx:r,range:s,setRange:i,handlePrev:l,handleNext:c,periodOptions:u,period:d,setPeriod:p}=e,m=d==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),f=d==="week"?t("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):t("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return n.jsxs("div",{className:"manager-section-controls",children:[n.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:m,showTooltipInfo:m,disabled:r===a.length-1,onClick:l}),n.jsx(nn,{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:f,showTooltipInfo:f,disabled:r<=0,onClick:c}),n.jsx(Sn,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:u,value:d,onChange:C=>p(C),size:40})]})}function oo(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 u=(e[`${c.getFullYear()}\uB144 ${c.getMonth()+1}\uC6D4`]?.daily??[])[c.getDate()-1],d=u!=null&&vn(u,r)||c>s;return{dt:c,entry:u,isFuture:d}})}function R4(e,t,a,r,s=!0){const{period:i,monthRange:l,weekRange:c,weekRanges:u,DOW:d}=t,p=r?.startsWith("ko"),m=Kn(),f=m.getFullYear(),C=m.getMonth()+1,g=m.getDate();if(i==="month"){const h=e[l]??{weekly:[],daily:[]},v=l.match(/^(\d+)년 (\d+)월$/),x=v?Number(v[1]):null,y=v?Number(v[2]):null,k=x&&y?on(x,y-1):1;return h.weekly.map((w,N)=>{const B=N+1;let A=w.label,D=!1,$=!1;if(x&&y){const F=k+N*7,P=new Date(x,y-1,F+6),G=P.getMonth()+1,E=P.getDate(),M=G===y?`${E}`:`${G}/${E}`;A=a("manager.chart.weekRange",{start:F,end:M});const H=new Date(f,C-1,g).getTime();D=H>=new Date(x,y-1,F).getTime()&&H<=P.getTime(),$=x>f||x===f&&(y>C||y===C&&F>g)}return{...w,label:A,sublabel:p?`${Rl[B-1]??B}\uC8FC`:`Week ${B}`,isToday:D,future:w.future===!0||$||void 0,a:$?-1:w.a,b:$?0:w.b}})}const b=u.find(h=>h.value===c);if(!b)return[];const _=new Date(b.year,b.month-1,on(b.year,b.month-1)+b.week*7);return oo(e,_,m,s).map(({dt:h,entry:v,isFuture:x})=>{const y=h.getMonth()+1,k=h.getDate(),w=h.getFullYear();return{label:y===b.month&&w===b.year?`${k}`:`${y}/${k}`,sublabel:d[h.getDay()]??"",future:x||void 0,a:x?-1:v&&v.a>0?v.a:0,b:x?0:v&&v.b>0?v.b:0,isToday:w===f&&y===C&&k===g,...v?.parts?{parts:x?v.parts.map(()=>0):v.parts}:{},...v?.partsB?{partsB:x?v.partsB.map(()=>0):v.partsB}:{}}})}const P4={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function I4({size:e="medium",barWidth:t,titleKey:a,data:r,colorA:s,colorB:i,labelAKey:l,labelBKey:c,showTotal:u=!1,totalUnitKey:d,totalLabelKey:p,control:m,hideControls:f=!1,rate:C=!1,rateAgg:g="dayMean",tightMax:b=!1,avgMode:_=!1,totalFormat:h,series:v,seriesMode:x="stack",loading:y=!1,onDetail:k,headExtra:w,headSegment:N,icon:B,disc:A,detailSize:D=32,barGap:$,baseline:F,className:P,inGrid:G=!1}){const{t:E,i18n:M}=ge.useTranslation(),H=P4[e],ee=Pl(r),q=m??ee,U=o.useMemo(()=>R4(r,q,E,M.language,F==null),[r,q,E,M.language,F]),W=x==="group"&&!!v&&v.length>0;$!=null&&!W&&kn("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 J=o.useMemo(()=>{if(!C)return U;const S=q.period==="month"?q.monthRange.match(/^(\d+)년 (\d+)월$/):null,L=Kn(),K=v?.length??0,Z=Q=>{const pe=[],Te=[],ke=[];for(let oe=0;oe<K;oe++){let z=0,re=0,ce=0;for(const fe of Q){const ye=lt(fe.a[oe]),Ne=lt(fe.b[oe]);Ne<=0||(z+=ye,re+=Ne,ce+=ye/Ne*100)}pe.push(g==="weighted"?re>0?Math.round(z/re*100):0:Q.length?Math.round(ce/Q.length):0),Te.push(z),ke.push(re)}return{pct:pe,ra:Te,rb:ke}};return U.map((Q,pe)=>{let Te=Q.a===-1?-1:Q.b>0?Math.round(Q.a/Q.b*100):0;if(S&&!vn(Q)){const oe=Number(S[1]),z=Number(S[2])-1,re=oo(r,new Date(oe,z,on(oe,z)+pe*7),L).filter(ce=>!ce.isFuture);if(g==="weighted"){let ce=0,fe=0;for(const{entry:ye}of re)ye&&ye.b>0&&(ce+=ye.a,fe+=ye.b);Te=fe>0?Math.round(ce/fe*100):0}else Te=re.length?Math.round(re.reduce((ce,{entry:fe})=>ce+(fe&&fe.b>0?fe.a/fe.b*100:0),0)/re.length):0}let ke=null;if(W&&!vn(Q)){let oe;if(S){const re=Number(S[1]),ce=Number(S[2])-1;oe=oo(r,new Date(re,ce,on(re,ce)+pe*7),L).filter(fe=>!fe.isFuture).map(({entry:fe})=>({a:fe?.parts??[],b:fe?.partsB??[]}))}else oe=[{a:Q.parts??[],b:Q.partsB??[]}];const z=Z(oe);ke={parts:z.pct,rawParts:z.ra,rawPartsB:z.rb}}return{...Q,a:Te,b:Q.a===-1?0:c&&Q.parts&&Q.parts[1]>0?Math.round(Q.parts[0]/Q.parts[1]*100):0,rawA:Q.a===-1?-1:Q.a,rawB:Q.b,...ke??{}}})},[U,C,g,c,q.period,q.monthRange,r,W,v?.length]),I=o.useMemo(()=>{if(C||_){const L=(q.period==="week"?U:r[q.monthRange]?.daily??[]).filter(Z=>Z.a!==-1);if(L.length===0)return 0;if(C&&g==="weighted"){let Z=0,Q=0;for(const pe of L)pe.b>0&&(Z+=pe.a,Q+=pe.b);return Q>0?Math.round(Z/Q*100):0}const K=C?L.reduce((Z,Q)=>Z+(Q.b>0?Q.a/Q.b*100:0),0):L.reduce((Z,Q)=>Z+(Q.a>0?Q.a:0),0);return Math.round(K/L.length)}const S=q.period==="month"?r[q.monthRange]?.daily??[]:J;return F!=null?S.reduce((L,K)=>L+(vn(K,!1)?0:lt(K.a)+(c?lt(K.b):0)),0):S.reduce((L,K)=>L+(K.a>0?K.a:0)+(c&&K.b>0?K.b:0),0)},[J,U,C,g,_,F,c,q.period,q.monthRange,r]),T=v&&v.length>0?v.map(S=>({color:S.color,label:S.label})):[{color:s,label:E(l)},...c?[{color:i,label:E(c)}]:[]],O=e==="small",R=[O?"manager-section--compact":e==="large"?"manager-section--full":void 0,P].filter(Boolean).join(" ")||void 0;return n.jsx(ro,{className:R,inGrid:G,icon:B,disc:A,headSegment:N,headMenuItems:k?[{label:E("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),icon:"list",onClick:k,closeOnSelect:!0}]:void 0,title:E(a),titleClassName:O?"h5 chart-section-title--small":void 0,headRight:O?w??void 0:({collapsed:S})=>n.jsxs(n.Fragment,{children:[!f&&n.jsx(Il,{control:q}),w,k&&!S&&n.jsx("span",{className:"manager-bar-chart-detail-btn",children:n.jsx(le,{htmlType:"button",size:D,type:"dot",icon:"list",ariaLabel:E("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),showTooltipInfo:E("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:k})})]}),subRow:n.jsxs(n.Fragment,{children:[u?C||_||p&&h?n.jsx(Za,{label:O?void 0:`${E(q.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${E(p??l)}`,children:h?(h(I).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((S,L)=>/\d/.test(S)?n.jsx("span",{className:"barchart-total__num h0",children:S},L):n.jsx("span",{className:"barchart-total__unit h5",children:S},L)):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"barchart-total__num h0",children:I}),d&&n.jsx("span",{className:"barchart-total__unit h5",children:E(d)})]})}):n.jsxs(Za,{children:[n.jsx("span",{className:"barchart-total__num h0",children:I}),n.jsx("span",{className:"barchart-total__unit h5",children:E(l)}),d&&n.jsx("span",{className:"barchart-total__unit h5",children:E(d)})]}):n.jsx("span",{}),n.jsx(ao,{items:T,className:"caption-1"})]}),children:y?n.jsx("div",{className:"manager-bar-chart-loading",children:n.jsx(Da,{size:32})}):n.jsx($4,{data:J,colorA:s,colorB:c?i:void 0,labelA:E(l),labelB:c?E(c):void 0,barWidth:t??H.barWidth,barGap:$,baseline:F,height:H.height,maxOverride:C?100:void 0,tightMax:b,seriesColors:v?.map(S=>S.color),seriesLabels:v?.map(S=>S.label),rateLabels:C?{total:E("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:E("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:W})})}const Fl=(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")}`},Ol=(e,t,a,r)=>({from:ai(e,t,a),to:new Date(ai(e,t,a+r).getTime()-1),fromYmd:Fl(e,t,a),toYmd:Fl(e,t,a+r-1)});function F4(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,u=new Date(Date.UTC(l,c+1,0)).getUTCDate();return Ol(l,c,1,u)}const a=e.weekRanges.find(s=>s.value===e.weekRange);if(!a){const s=new Date,i=ga();return{from:s,to:s,fromYmd:i,toYmd:i}}const r=on(a.year,a.month-1);return Ol(a.year,a.month-1,r+(a.week+t)*7,7)}const Hl={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Vl(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function zl({done:e,total:t,segments:a,color:r="var(--color-main)",size:s="medium",strokeWidth:i,label:l="%",hideCenter:c=!1,hideLabel:u=!1}){const d=typeof s=="number"?s:Hl[s].diameter,p=i??(typeof s=="number"?12:Hl[s].strokeWidth),m=d/2,f=(d-p)/2,C=2*Math.PI*f;if(a&&a.length>0){const h=a.reduce((v,x)=>{const y=v.length>0?v[v.length-1].acc:0,k=Number.isFinite(x.ratio)?x.ratio:0,w=Math.max(0,Math.min(k,1-y));return v.push({color:x.color,rotate:-90+y*360,dash:C*w,acc:y+w}),v},[]);return n.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:m,cy:m,r:f,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),h.map((v,x)=>v.dash>0&&n.jsx("circle",{cx:m,cy:m,r:f,fill:"none",stroke:v.color,strokeWidth:p,strokeDasharray:`${v.dash} ${C}`,strokeLinecap:"round",transform:`rotate(${v.rotate} ${m} ${m})`},x))]})})}const g=(t??0)>0?Math.min((e??0)/t,1):0,b=C*g,_=C-b;return n.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:m,cy:m,r:f,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),g>0&&n.jsx("circle",{cx:m,cy:m,r:f,fill:"none",stroke:r,strokeWidth:p,strokeDasharray:`${b} ${_}`,strokeLinecap:g<.02||g>.98?"butt":"round",transform:`rotate(-90 ${m} ${m})`})]}),!c&&n.jsxs("div",{className:`ring-chart__center${u?"":` ${d<=96?"ring-chart__center--small":s==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[n.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:Vl(g)}),!u&&n.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||s==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function O4({titleKey:e,headRight:t,icon:a,showTotal:r,totalLabelKey:s,legend:i,loading:l,className:c,inGrid:u=!1,...d}){const{t:p}=ge.useTranslation();if(!e)return n.jsx(zl,{...d});const m=(d.total??0)>0?Vl(Math.min((d.done??0)/d.total,1)):0,f=d.size==="small",C=d.size==="large",g=[c,f?"manager-section--compact":C?"manager-section--full":""].filter(Boolean).join(" ")||void 0,b=a&&n.jsx("span",{className:"chart-section-icon",children:n.jsx(qe,{icon:a,className:"chart-section-icon-inner"})});return n.jsx(ro,{className:g,inGrid:u,title:p(e),titleClassName:f?"h5 chart-section-title--small":void 0,headRight:b||(f?void 0:t),subRow:(r||i)&&n.jsxs(n.Fragment,{children:[r?n.jsxs(Za,{label:!f&&s?p(s):void 0,children:[n.jsx("span",{className:"barchart-total__num h0",children:m}),n.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):n.jsx("span",{}),i&&n.jsx(ao,{items:i})]}),children:l?n.jsx("div",{className:"manager-bar-chart-loading",children:n.jsx(Da,{size:32})}):n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx(zl,{...d,hideCenter:d.hideCenter??f})})})}function H4({label:e,value:t,change:a,changeType:r,icon:s,tooltip:i,onClick:l}){const c=o.useRef(null),{anchorRect:u,openAt:d,close:p}=qa(),m=o.useCallback(()=>{i&&c.current&&d(c.current)},[i,d]),f=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),C=a===void 0?void 0:a>0?`+${a}`:`${a}`,g=o.useCallback(b=>{l&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),l())},[l]);return n.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?g:void 0,onPointerEnter:m,onPointerLeave:p,onFocus:m,onBlur:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,t,C].filter(b=>b!==void 0&&b!=="").join(" "):void 0,children:[i&&u&&n.jsx(Dn,{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(qe,{icon:s,className:"manager-stat-card__icon-inner"})})]}),n.jsx("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}),C&&n.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${f??"neutral"} caption-1`,children:C})]})})]})}function Wl({value:e,onChange:t,min:a=0,max:r=100,step:s=1,orientation:i="horizontal",size:l=24,disabled:c=!1,ariaLabel:u,length:d,className:p,label:m,formatValue:f,labelPos:C,labelAlign:g="right",showMinMax:b=!1,minLabel:_,maxLabel:h,showBgTick:v=!1,showFillTick:x=!1,tickStep:y,tickShape:k="dot"}){t&&!u&&kn("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 w=Math.min(r,Math.max(a,e)),N=r>a?(w-a)/(r-a):0,B=i==="vertical",A=!t,D=T=>t?.(Number(T.target.value)),$=typeof d=="number"?`${d}px`:d,F={"--slider-ratio":String(N),"--slider-thumb":`${l}px`,...$?B?{height:$}:{width:$}:{}},P=y??s,G=(v||x)&&P>0&&r>a?Math.floor((r-a)/P+1e-6):0;if(G>0&&G<=100){const T=k!=="dash",O=Z=>T?`radial-gradient(circle, ${Z} 0.5px, transparent 1px)`:B?`linear-gradient(to bottom, transparent calc(50% - 2px), ${Z} calc(50% - 2px), ${Z} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${Z} calc(50% - 2px), ${Z} calc(50% + 2px), transparent calc(50% + 2px))`,R=T?"2px":"4px",S=[],L=[],K=[];for(let Z=0;Z<=G;Z++){const Q=Z*P/(r-a);if(Q>1+1e-6)break;const pe=`${((B?1-Q:Q)*100).toFixed(4)}%`,Te=Q<=N+1e-6;if(Te?!x:!v)continue;const ke=Te?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";S.push(O(ke)),L.push(B?`${R} var(--slider-thumb)`:`var(--slider-thumb) ${R}`),K.push(B?`center ${pe}`:`${pe} center`)}S.push(B?"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"),F.backgroundImage=S.join(", "),F.backgroundSize=L.join(", "),F.backgroundPosition=K.join(", "),F.backgroundRepeat="no-repeat"}const E=f?f(w):m==="percent"?`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`:m==="count"?`${w} / ${r}`:w===a&&_?_:w===r&&h?h:void 0,M=n.jsx("input",{type:"range",className:De("slider",`slider--${i}`,A&&"slider--static",!m&&!b&&p),min:a,max:r,step:s,value:w,disabled:c,readOnly:A,tabIndex:A?-1:void 0,"aria-label":u,"aria-valuetext":E,"aria-orientation":i,onChange:D,style:F});if(!m&&!b)return M;const H=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:_??a}),ee=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:h??r}),q=b?n.jsxs("div",{className:De("slider-track-group",`slider-track-group--${i}`,!m&&p),children:[B?ee:H,M,B?H:ee]}):M;if(!m)return q;const U=C??(B?"bottom":"right"),W=`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`,J=f?f(w):m==="percent"?W:m==="count"?`${w} / ${r}`:String(w),I=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-${U}`,`slider-wrap--align-${g}`,p),children:[q,I]})}const V4=.86,z4=250,so=(e,t,a,r)=>Math.round(Math.min(r,Math.max(a,e-t))),io=(e,t,a,r)=>{const s=so(e,t,a,r);return`${s<0?"-":"+"}${Math.abs(s)} dB`};function lo({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:s,labelPos:i,labelAlign:l="right",floorDb:c=-60,refDb:u=-35,displayMin:d=-5,displayMax:p=25,className:m,ariaLabel:f}){const C=o.useRef(null),g=o.useRef(null),b=o.useRef(null),_=o.useRef(null),[h,v]=o.useState(null);o.useEffect(()=>{const w=M=>{const H=io(M,u,d,p);b.current&&(b.current.textContent=H);const ee=C.current;ee&&(ee.setAttribute("aria-valuenow",String(so(M,u,d,p))),ee.setAttribute("aria-valuetext",H))},N=e??Z0(t)??(h&&h.el===t?h.node:null),B=g.current;if(!N||!B){B?.style.setProperty("--meter-level","0"),w(c);let M=!1;return!e&&t&&Ra(t).then(H=>{!M&&H&&v({el:t,node:H})}),()=>{M=!0}}Sr();const A=new Float32Array(N.fftSize);let D=0,$=0,F=0,P=0,G=null;const E=M=>{const H=X0(N,A);D=H>D?H:D*V4;const ee=D>1e-5?20*Math.log10(D):-1/0,q=Math.max(c,ee),U=q-u,W=Math.min(1,Math.max(0,(U-d)/(p-d)));if(B.style.setProperty("--meter-level",W.toFixed(3)),$+=q,F+=1,M-P>=z4){const J=$/F;G=G==null?J:G*.6+J*.4,w(G),$=0,F=0,P=M}_.current=requestAnimationFrame(E)};return _.current=requestAnimationFrame(E),()=>{_.current!=null&&cancelAnimationFrame(_.current),_.current=null}},[e,t,h,c,u,d,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:g,className:"audio-meter__fill"})}),k=i??(a==="vertical"?"bottom":"right");return n.jsxs("div",{ref:C,className:De("audio-meter",`audio-meter--${a}`,s&&`audio-meter--label-${k}`,s&&`audio-meter--align-${l}`,m),role:"meter","aria-label":f,"aria-valuemin":d,"aria-valuemax":p,"aria-valuenow":so(c,u,d,p),"aria-valuetext":io(c,u,d,p),children:[y,s&&n.jsx("span",{ref:b,className:"audio-meter__value caption-2",children:io(c,u,d,p)})]})}const ql=260;function Ul({message:e,position:t,duration:a,onClose:r}){const[s,i]=o.useState(!1),[l,c]=o.useState(!1),u=o.useRef(l),d=o.useRef(s);o.useEffect(()=>{u.current=l},[l]),o.useEffect(()=>{d.current=s},[s]);const p=o.useRef(null),m=o.useRef(""),f=o.useRef(r);o.useEffect(()=>{f.current=r});const C=a,g=o.useRef(null),b=o.useRef(0),_=o.useRef(0),h=o.useRef(!1),v=o.useRef(null),x=o.useRef(null),y=o.useRef(null),k=o.useRef(null),w=o.useRef(()=>{});w.current=A=>{A<0||(b.current=Date.now(),_.current=A,g.current=setTimeout(()=>{g.current=null,i(!1),v.current=setTimeout(()=>{c(!1);try{f.current()}catch{}},ql)},A))};const N=o.useCallback(()=>{h.current||!g.current||(h.current=!0,clearTimeout(g.current),g.current=null,_.current=Math.max(0,_.current-(Date.now()-b.current)))},[]),B=o.useCallback(()=>{h.current&&(h.current=!1,w.current(_.current))},[]);return o.useEffect(()=>{if(e!==m.current&&(g.current&&(clearTimeout(g.current),g.current=null),v.current&&(clearTimeout(v.current),v.current=null)),e){if(d.current)return C>0&&!g.current&&(h.current?_.current=C:w.current(C)),m.current=e,()=>{g.current&&(clearTimeout(g.current),g.current=null),v.current&&(clearTimeout(v.current),v.current=null)};const A=()=>{const D=p.current;if(D)try{D.classList.remove("is-visible"),D.style.transition="none",t==="top"?D.style.transform="translateX(-50%) translateY(-16px)":D.style.transform="translateX(-50%) translateY(16px)",D.style.opacity="0",D.offsetWidth,D.style.transition="",D.classList.add("is-visible"),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{k.current=null;try{D.style.opacity="",D.style.transform="",D.style.transition=""}catch{}},60)}catch{}};u.current?(A(),i(!0)):(c(!0),x.current=requestAnimationFrame(()=>{y.current=requestAnimationFrame(()=>{A(),i(!0)})})),C>0&&(h.current=!1,w.current(C))}else i(!1),v.current=setTimeout(()=>c(!1),ql);return m.current=e,()=>{g.current&&clearTimeout(g.current),v.current&&clearTimeout(v.current),x.current&&cancelAnimationFrame(x.current),y.current&&cancelAnimationFrame(y.current),k.current&&clearTimeout(k.current),g.current=null,v.current=null,x.current=null,y.current=null,k.current=null}},[e,C,t]),{mounted:l,showing:s,popupRef:p,pause:N,resume:B}}function ta({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:s=2e3}){const{mounted:i,showing:l,popupRef:c,pause:u,resume:d}=Ul({message:e,position:t,duration:s,onClose:r}),p=o.useRef(null),[m,f]=o.useState(!1);if(o.useEffect(()=>{l?f(!0):i||f(!1)},[l,i]),!i)return null;const C=a==="notice"||a==="warning"?a:"normal",g=n.jsx("div",{ref:c,className:`toast toast--${t} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:b=>{p.current=b.pointerType},onMouseEnter:()=>{p.current!=="touch"&&u()},onMouseLeave:d,onFocusCapture:u,onBlurCapture:d,children:n.jsx("div",{className:`toast__inner toast__inner--${C} body-2`,"aria-hidden":m||l?void 0:!0,children:e})});return typeof document<"u"?qt.createPortal(g,document.body):g}const W4=24;function q4({value:e,max:t=100,size:a=8,color:r,trackColor:s,label:i,formatValue:l,labelPos:c,labelAlign:u="right",ariaLabel:d,className:p}){const m=Number.isFinite(t)&&t>0?t:1,f=Math.max(0,Math.min(Number.isFinite(e)?e:0,m)),C=f/m*100,g=Number.isFinite(t)&&t>0?t:0,b=c??(a>=W4?"inside":"bottom"),_=b==="center"?"inside":b,h=_==="inside"&&(u==="left"?C>=15:u==="center"?C>=50:C>=85),v={};return r&&(v["--progress-bar-fill"]=r),s&&(v["--progress-bar-track"]=s),n.jsxs("div",{className:De("progress-bar",`progress-bar--${a}`,`progress-bar--label-${_}`,i&&`progress-bar--align-${u}`,i&&h&&"progress-bar--label-on-fill",p),style:v,children:[n.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":g,"aria-valuetext":i?l?l(f):i==="percent"?void 0:i==="raw"?String(f):`${f} / ${g}`:void 0,"aria-label":d,children:n.jsx("div",{className:"progress-bar__fill",style:{width:`${C}%`}})}),i&&n.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(f):i==="percent"?`${Math.round(C)}%`:i==="raw"?String(f):`${f} / ${g}`})]})}const Gl={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},U4="rgba(255, 255, 255, 0.16)";function Kl({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:s,variant:i="numbered",announce:l=!1,ariaLabel:c}){const{t:u}=ge.useTranslation(),d=tn("(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??u("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),f={};if(a&&(f["--pi-inactive-bg"]=a),r&&(f["--pi-inactive-color"]=r),s&&(a||(f["--pi-inactive-bg"]=U4),r||(f["--pi-inactive-color"]="var(--color-white)")),i==="dot")return n.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:f,role:l?"status":"img","aria-label":l?void 0:m,children:[l&&n.jsx("span",{style:Gl,children:m}),Array.from({length:e}).map((g,b)=>n.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${b<p?" done":b===p?" active":""}`},b))]});const C=l?n.jsx("span",{role:"status",style:Gl,children:m}):null;return d?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:f,role:"list","aria-label":m,children:n.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[p+1," / ",e]})}),C]}):n.jsxs(n.Fragment,{children:[C,n.jsx("div",{className:"progress-indicator",style:f,role:"list","aria-label":m,children:Array.from({length:e}).map((g,b)=>n.jsx("span",{role:"listitem","aria-current":b===p?"step":void 0,className:`progress-indicator-dot ${b<p?" done":b===p?" active":""} body-3`,children:b+1},b))})]})}function G4(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 K4({children:e,className:t,style:a}){return n.jsx("div",{className:t?`table-cell ${t}`:"table-cell",style:a,children:e})}function co({variant:e="default",children:t,className:a,draggable:r,onClick:s,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:u,expandedContent:d}){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(Da,{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:u,role:s?"button":void 0,tabIndex:s?0:void 0,children:t}),d&&n.jsx("div",{className:"table-row-expand",children:d})]})}function Y4({dir:e}){return n.jsx(e==="asc"?ms:ps,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Z4({children:e,onClick:t,className:a,sortDir:r,ariaSort:s,onResizeStart:i}){const l=n.jsxs(n.Fragment,{children:[e,r&&n.jsx(Y4,{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 uo({fields:e=[],headerGroups:t,items:a=[],renderRow:r,onRowClick:s,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:c,onRowDragStart:u,onRowDragEnd:d,draggingId:p,gridTemplateColumns:m,mobileGridTemplateColumns:f,resizable:C=!1,resizeMode:g="grow",resizeStorageKey:b,size:_="small",title:h,icon:v,count:x,collapsed:y=!1,onToggleCollapse:k,headerActions:w,empty:N,loading:B,dragOver:A=!1,onDragOver:D,onDragLeave:$,onDrop:F,renderExpandedRow:P,expandedId:G}){const{t:E}=ge.useTranslation(),M=tn("(max-width: 767px)"),H=f&&M?f:null,ee=C&&!H,q=48,U=b?`table-cols:${b}`:null,W=o.useRef(null),J=o.useRef(()=>!1),I=o.useRef([]),T=o.useRef(null),O=se=>{if(!se||typeof window>"u")return null;try{const te=JSON.parse(window.localStorage.getItem(se)??"null");return Array.isArray(te)&&te.length>0&&te.every(me=>typeof me=="number"&&Number.isFinite(me)&&me>0)?te:null}catch{return null}},[R,S]=o.useState(()=>O(U)),[L,K]=o.useState(U);L!==U&&(K(U),S(O(U)));const Z=o.useRef(R);o.useEffect(()=>{Z.current=R},[R]);const Q=o.useCallback(se=>{const te=T.current;if(!te)return;const me=Z.current;if(me){const ne=[...me];if(te.next!=null&&te.startWNext!=null){const Ce=se.clientX-te.startX,ve=Math.max(q-te.startW,Math.min(te.startWNext-q,Ce));ne[te.index]=te.startW+ve,ne[te.next]=te.startWNext-ve}else ne[te.index]=Math.max(q,te.startW+(se.clientX-te.startX));Z.current=ne,S(ne)}},[]),pe=o.useCallback(()=>{if(T.current=null,window.removeEventListener("pointermove",Q),window.removeEventListener("pointerup",pe),window.removeEventListener("pointercancel",pe),document.body.style.cursor="",document.body.style.userSelect="",U&&Z.current)try{window.localStorage.setItem(U,JSON.stringify(Z.current))}catch{}},[Q,U]),Te=o.useCallback((se,te)=>{te.preventDefault(),te.stopPropagation();const me=W.current;if(!me)return;const ne=Array.from(me.children).map(ve=>ve.getBoundingClientRect().width),Ce=g==="fit"?e.findIndex((ve,Ye)=>Ye>se&&ve.resizable!==!1):-1;T.current=Ce>=0?{index:se,startX:te.clientX,startW:ne[se],next:Ce,startWNext:ne[Ce]}:{index:se,startX:te.clientX,startW:ne[se]},Z.current=ne,S(ne),window.addEventListener("pointermove",Q),window.addEventListener("pointerup",pe),window.addEventListener("pointercancel",pe),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[Q,pe,g,e]),ke=o.useCallback(()=>{const se=W.current,te=se?.closest(".table-wrap");if(!se||!te)return;const me=te.style.getPropertyValue("--table-grid-cols");te.style.setProperty("--table-grid-cols",e.map(($e,Ie)=>J.current(Ie)?I.current[Ie]:"max-content").join(" "));const ne=Array.from(te.querySelectorAll(".table-row")).filter($e=>!$e.classList.contains("table-row--loading")&&!$e.classList.contains("table-row--empty")),Ce=e.map(($e,Ie)=>{let Ve=se.children[Ie]?.getBoundingClientRect().width??0;for(const ot of ne){const We=ot.children[Ie];We&&(Ve=Math.max(Ve,We.getBoundingClientRect().width))}const at=J.current(Ie)?parseFloat(I.current[Ie]):NaN;return Number.isFinite(at)?at:Math.max(q,Math.ceil(Ve))}),ve=window.getComputedStyle(se),Ye=se.clientWidth-(parseFloat(ve.paddingLeft)||0)-(parseFloat(ve.paddingRight)||0);me?te.style.setProperty("--table-grid-cols",me):te.style.removeProperty("--table-grid-cols");let He=Ce;const Ue=Ce.reduce(($e,Ie,Ve)=>$e+(J.current(Ve)?Ie:0),0),Se=Ce.reduce(($e,Ie,Ve)=>$e+(J.current(Ve)?0:Ie),0),Ge=Ye-Ue;if(Ye>0&&Se>0&&Ge>0){const $e=Ge/Se;He=Ce.map((Ve,at)=>J.current(at)?Ve:Math.max(q,Math.round(Ve*$e)));const Ie=Math.round(Ge-He.reduce((Ve,at,ot)=>Ve+(J.current(ot)?0:at),0));if(Ie!==0){let Ve=-1;He.forEach((at,ot)=>{!J.current(ot)&&(Ve<0||at>He[Ve])&&(Ve=ot)}),Ve>=0&&(He[Ve]=Math.max(q,He[Ve]+Ie))}}if(S(He),U)try{window.localStorage.setItem(U,JSON.stringify(He))}catch{}},[e,g,U]);o.useEffect(()=>()=>{T.current&&(window.removeEventListener("pointermove",Q),window.removeEventListener("pointerup",pe),window.removeEventListener("pointercancel",pe),document.body.style.cursor="",document.body.style.userSelect="")},[Q,pe]);const oe=G4(m),z=oe.filter(se=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(se));z.length>0&&kn(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${z.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 re=e.findIndex(se=>!!se.sortDir);e.filter(se=>!!se.sortDir).length>1&&kn("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 ce=se=>se===re?e[se].sortDir==="asc"?"ascending":"descending":e[se].onClick?"none":void 0,fe=se=>/^\d+(\.\d+)?px$/.test(oe[se]??"");J.current=fe,I.current=oe;const ye=se=>g==="fit"&&!fe(se)?"fr":"px",Ne=R&&R.length===e.length&&(g==="fit"||a.length>0),we=H??(Ne?e.map((se,te)=>se.resizable===!1&&oe[te]?oe[te]:`${R[te]}${ye(te)}`).join(" "):m),Be=we?{"--table-grid-cols":we}:void 0,je=h!==void 0;return n.jsx("div",{className:`table-wrap table-wrap--${_}${ee?" table-wrap--resizable":""}${A?" table-wrap--dragover":""}${y?" table-wrap--collapsed":""}`,style:Be,onDragOver:D,onDragLeave:$,onDrop:F,children:n.jsxs("div",{className:"table body-2",children:[je&&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?se=>{se.target===se.currentTarget&&(se.key==="Enter"||se.key===" ")&&(se.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"}),v&&n.jsx(qe,{icon:v,label:typeof h=="string"?h:void 0,className:"table-header__icon"}),n.jsx("span",{className:"table-header__title h5b",children:h}),x!==void 0&&n.jsx("span",{className:"table-header__count body-3b",children:x}),w&&n.jsx("span",{className:"table-header__actions",onClick:se=>se.stopPropagation(),children:w})]}),!y&&n.jsxs(n.Fragment,{children:[t&&t.length>0&&n.jsx("div",{className:"table-fields table-fields--groups",children:t.map((se,te)=>n.jsx("div",{className:De("table-field body-3",se.className),style:{gridColumn:`span ${se.span}`},children:se.label},te))}),n.jsxs("div",{className:De("table-fields-strip",ee&&"table-fields-strip--resizable"),children:[n.jsx("div",{className:"table-fields",ref:W,children:e.map((se,te)=>n.jsx(Z4,{onClick:se.onClick,className:se.className,sortDir:se.sortDir,ariaSort:ce(te),onResizeStart:ee&&te<e.length-1&&se.resizable!==!1&&(g!=="fit"||e.some((me,ne)=>ne>te&&me.resizable!==!1))?me=>Te(te,me):void 0,children:se.label},te))}),ee&&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:ke})]}),n.jsx("div",{className:"table-body",children:B?n.jsx(co,{variant:"loading"}):a.length===0&&N?n.jsx(co,{variant:"empty",children:N}):a.map((se,te)=>{const me=p!=null&&se.id===p,ne=!!s&&(i?i(se):!0),Ce=G!=null&&se.id!=null&&(G instanceof Set?G.has(se.id)||[...G].some(ve=>String(ve)===String(se.id)):String(se.id)===String(G));return n.jsx(co,{className:`${ne?" table-row--clickable":""}${u?" table-row--draggable":""}${me?" table-row--dragging":""}`.trim(),draggable:!!u,onClick:ne?()=>s(se):void 0,onMouseEnter:l?ve=>l(se,ve):void 0,onMouseLeave:c?ve=>c(se,ve):void 0,onDragStart:u?ve=>u(se,ve):void 0,onDragEnd:d?ve=>d(se,ve):void 0,expandedContent:Ce&&P?P(se):void 0,children:r(se).map((ve,Ye)=>n.jsx(K4,{className:ve.className,style:ve.style,children:ve.content},Ye))},se.id!=null?`${typeof se.id}:${se.id}`:`__idx:${te}`)})})]})]})})}function Yl(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const na=e=>e==null?"":String(e).trim();function po(e,t,a){const r=[na(e),na(t),na(a)];for(;r.length>0&&r[r.length-1]==="";)r.pop();return r.join(".")}function X4(e,t,a){const r=na(e);return r?`${r}-${na(t).padStart(2,"0")}-${na(a).padStart(2,"0")}`:""}const J4={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function Q4(e,t){const a=J4[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}function Zl(e,t){return t!=="wornAt"?String(e[t]??""):X4(e.wornYear,e.wornMonth,e.wornDay)}function ey({rows:e,onSelect:t,onDelete:a,onWear:r,onRelease:s,onAdd:i}){const{t:l}=ge.useTranslation(),c=g=>g==="\uC88C"?l("device.direction.left","\uC88C"):l("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:d}=zg(),p=o.useMemo(()=>{if(!u)return e;const{key:g,asc:b}=u;return[...e].sort((_,h)=>{if(g==="worn"){const v=Number(h.worn)-Number(_.worn);return b?v:-v}return Kr(Zl(_,g),Zl(h,g),b)})},[e,u]),{pageRows:m,pageSizeProps:f,paginationProps:C}=Vg(p,u);return n.jsxs("div",{className:"dlp-side-table",children:[n.jsx(no,{count:{value:e.length,unit:l("customers.device.unit","\uAC1C")},pageSize:f,pagination:C,actions:i&&n.jsx(le,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:l("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),n.jsx(uo,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...d(l("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},d(l("device.direction.label","\uBC29\uD5A5"),"side"),d(l("device.deviceType","\uC885\uB958"),"device"),d(l("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),d(l("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),d(l("device.productName","\uC81C\uD488\uBA85"),"productName"),d(l("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:m.map((g,b)=>({id:g.id??`${g.side}-${b}`,row:g})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:g})=>[{content:n.jsx("span",{className:"dlp-worn-check",onClick:b=>b.stopPropagation(),children:n.jsx(Ml,{checked:g.worn,disabled:g.worn?!s:!r,ariaLabel:g.worn?l("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):l("customers.device.wear","\uCC29\uC6A9"),onChange:b=>{b?r?.(g):s?.(g)}})})},{content:n.jsx("span",{children:c(g.side)})},{content:g.device?n.jsx(mt,{size:"small",variant:Yl(g.device),fill:"soft",label:Q4(g.device,l)}):n.jsx("span",{})},{content:n.jsx("span",{children:g.brand})},{content:n.jsx("span",{children:g.fitType||"-"})},{content:n.jsx("span",{children:g.productName||"-"})},{content:n.jsx("span",{className:"dlp-date",children:po(g.wornYear,g.wornMonth,g.wornDay)||"-"})},...a?[{content:n.jsx("span",{className:"dlp-row-actions",children:n.jsx(le,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:l("common.delete","\uC0AD\uC81C"),onClick:b=>{b?.stopPropagation(),a(g)}})})}]:[]],onRowClick:({row:g})=>t(g),empty:l("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function Xl(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 ty(e,t){return new Date(e,t+1,0).getDate()}function ny(e,t){return new Date(e,t,1).getDay()}function ay({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),[u,d]=o.useState(()=>Number(c.slice(0,4))),[p,m]=o.useState(()=>Number(c.slice(5,7))-1),[f,C]=o.useState(null),g=o.useRef(null),b=o.useMemo(()=>{const k={};return e.forEach(w=>{k[w.date]||(k[w.date]=[]),k[w.date].push(w)}),k},[e]),_=o.useMemo(()=>{const k=ty(u,p),w=ny(u,p),N=[];for(let B=0;B<w;B++)N.push(null);for(let B=1;B<=k;B++)N.push(B);for(;N.length<35;)N.push(null);return N},[u,p]),h=o.useCallback(()=>{p===0?(d(k=>k-1),m(11)):m(k=>k-1)},[p]),v=o.useCallback(()=>{p===11?(d(k=>k+1),m(0)):m(k=>k+1)},[p]),x=k=>`${u}-${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:h,"aria-label":i("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(qe,{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:u,month:p+1})}),n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:v,"aria-label":i("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(qe,{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)),_.map((k,w)=>{if(k===null)return n.jsx("div",{className:"calendar-cell empty"},`empty-${w}`);const N=k,B=x(N),A=b[B]??[],D=f===B;return n.jsxs("div",{className:`calendar-cell${y(N)?" today":""}${D?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?i("calendar.addOnDate",{date:B}):void 0,"aria-current":y(N)?"date":void 0,onClick:r?()=>r(B):void 0,onKeyDown:r?$=>{$.target===$.currentTarget&&($.key!=="Enter"&&$.key!==" "||($.preventDefault(),r(B)))}:void 0,onDragOver:a?$=>{$.preventDefault(),C(B)}:void 0,onDragLeave:a?$=>{$.currentTarget.contains($.relatedTarget)||C(null)}:void 0,onDrop:a?$=>{$.preventDefault(),g.current!=null&&(a(g.current,B),g.current=null),C(null)}:void 0,children:[n.jsx("div",{className:"calendar-cell__number body-3",children:N}),n.jsx("div",{className:"calendar-cell__badges",children:A.map(($,F)=>n.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${$.status==="noVisit"?" calendar-visit-badge--no-visit":$.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?P=>{g.current=$.id,P.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{g.current=null,C(null)}:void 0,onClick:t?P=>{P.stopPropagation(),t($)}:void 0,...Xl(t?()=>t($):void 0),"aria-label":[$.time?si($.time,i):null,$.customer,i($.status==="noVisit"?"calendar.legend.noVisit":$.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[$.time&&n.jsx("span",{className:"calendar-visit-badge__time body-3",children:si($.time,i)}),n.jsx("span",{className:"calendar-visit-badge__name body-3",children:$.customer}),$.status==="noVisit"&&n.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},$.id??F))})]},N)})]})]})}const ry={page:"h3",pagePopup:"h4",popup:"h5"};function aa({type:e="page",title:t,headingLevel:a,icon:r,action:s,disc:i,children:l,className:c,style:u}){const d=ry[e],p=t||i||s||r,m=a?`h${a}`:"div";return n.jsxs("div",{className:De("section",`section--${e}`,c),style:u,children:[p&&n.jsxs("div",{className:"section__header",children:[n.jsxs("div",{className:"section__title-row",children:[r&&n.jsx(qe,{icon:r,label:typeof t=="string"?t:void 0,className:"section__icon"}),n.jsxs("div",{className:"section__title-group",children:[t&&n.jsx(m,{className:`section__title ${d}`,children:t}),i&&n.jsx("div",{className:"section__disc body-3",children:i})]})]}),s&&n.jsx("div",{className:"section__action",children:s})]}),l]})}function Jl({icon:e,label:t,tooltip:a,wrapperStyle:r,color:s,bgColor:i,useHover:l=!0,iconSize:c="medium"}){const u=c==="small",d=De("category-icon",u?"category-icon--small":""),p=u?16:20,m=o.useRef(null),[f,C]=o.useState(!1),g=o.useMemo(()=>{const w=r&&typeof r=="object"?{...r}:{};return!s&&!i?w:{...w,...s?{color:s,"--t-item-fg":s}:{},...i?{"--t-item-bg":i}:{}}},[r,s,i]),b=a||t,[_,h]=o.useState(null);o.useLayoutEffect(()=>{f&&h(m.current?.getBoundingClientRect()??null)},[f]),o.useEffect(()=>{if(!l&&f)try{C(!1)}catch{}},[l,f]),o.useEffect(()=>{if(!f)return;const w=N=>{const B=m.current;if(!B)return;const A=N.target;A&&!B.contains(A)&&C(!1)};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[f]);const v=o.useCallback(()=>{l&&C(!0)},[l]),x=o.useCallback(()=>{l&&C(!1)},[l]),y=o.useCallback(()=>C(!1),[]),k=o.useCallback(w=>{if(w.key==="Escape"){C(!1);return}(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),C(N=>!N))},[]);return n.jsxs("span",{ref:m,className:"category-icon__wrap",onPointerEnter:v,onPointerLeave:x,onFocus:v,onBlur:x,onKeyDown:k,role:"button",tabIndex:0,"aria-label":typeof b=="string"?b:void 0,"aria-haspopup":!!b,"aria-expanded":f,"data-tooltip-ignore":!0,children:[n.jsx(qe,{icon:e,label:t,className:d,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:g,size:p}),f&&b&&n.jsx(Dn,{anchorRect:_,text:typeof b=="string"?b:void 0,offset:8,onClose:y,className:"category-icon__tooltip",ariaLabel:typeof b=="string"?b:void 0})]})}let En=null;function Xa(e){if(En&&En!==e)try{En()}catch{}return En=e,()=>{En===e&&(En=null)}}function Ja(e){if(En===e){En=null;try{e()}catch{}}}function oy(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 sy(e,t){const[a,r]=o.useState(!1),[s,i]=o.useState(-1),[l,c]=o.useState({key:"",urls:[]}),u=o.useRef(null),d=o.useRef(!1),p=o.useRef(null),m=o.useRef(null),[f,C]=o.useState(!1),g=o.useRef([]),{previewCodes:b,previewBucket:_}=oy(e,t),h=`${b.join(",")}|${_??""}`,v=o.useMemo(()=>l.key===h?l.urls:[],[l,h]);o.useEffect(()=>{if(!b.length)return;let y=!1;return(async()=>{const k=[],w=[];for(const N of b)try{const B=Is(N,_);if(!B){k.push("");continue}let A=null;try{A=await Fs(B)}catch{}if(!A)try{const D=await Os(B);D&&(A=URL.createObjectURL(D),w.push(A))}catch{}k.push(A??"")}catch{k.push("")}y?w.forEach(N=>{try{URL.revokeObjectURL(N)}catch{}}):(g.current.forEach(N=>{try{URL.revokeObjectURL(N)}catch{}}),g.current=w,c({key:h,urls:k}))})(),()=>{y=!0}},[b.join(","),_]),o.useEffect(()=>()=>{g.current.forEach(y=>{try{URL.revokeObjectURL(y)}catch{}}),g.current=[]},[]);const x=o.useCallback(async y=>{if(y.stopPropagation(),y.preventDefault(),d.current){p.current&&Ja(p.current),d.current=!1;try{u.current?.pause()}catch{}r(!1),i(-1);return}if(!v.filter(Boolean).length)return;let k=null;const w=()=>{d.current=!1;try{u.current?.pause()}catch{}k?.()};p.current=w;const N=Xa(w);d.current=!0,r(!0);for(let B=0;B<v.length&&d.current;B++){const A=v[B];if(A){i(B);try{await new Promise((D,$)=>{k=D;const F=new Audio(A);u.current=F,F.onended=()=>D(),F.onerror=()=>$(),F.play().catch($)})}catch{break}}}N(),p.current===w&&(p.current=null,d.current=!1,r(!1),i(-1))},[v]);return o.useEffect(()=>()=>{p.current&&Ja(p.current),d.current=!1;try{u.current?.pause()}catch{}u.current=null},[]),{playing:a,playingIndex:s,previewUrls:v,previewHover:f,setPreviewHover:C,previewBtnRef:m,handlePreview:x}}const iy=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 mo(e){const{index:t,type:a,trainingData:r,ariaLabel:s,depth:i,renderPopup:l,completed:c,completedIds:u,selectedIds:d,tooltipText:p,useDescriptionTooltip:m=!1,onRemove:f,hideCheckBadge:C=!1,showTypeLabel:g=!1,onComplete:b,onSelect:_,onMore:h,countLabelOverride:v,size:x="square"}=e||{},{t:y}=ge.useTranslation(),[k,w]=o.useState(!1),N=o.useRef(null),[B,A]=o.useState(!1);o.useEffect(()=>{N.current?.matches(":hover")&&A(!0)},[]);const{playing:D,playingIndex:$,previewUrls:F,previewHover:P,setPreviewHover:G,previewBtnRef:E,handlePreview:M}=sy(r,a?.key),H=o.useCallback(()=>{_?_():w(!0)},[_]),ee=o.useCallback(()=>w(!1),[]),q=o.useCallback(()=>A(!0),[]),U=o.useCallback(()=>A(!1),[]),W=o.useCallback(()=>G(!0),[G]),J=o.useCallback(()=>G(!1),[G]),[I,T]=o.useState(null);o.useLayoutEffect(()=>{P&&T(E.current?.getBoundingClientRect()??null)},[P,E]);const[O,R]=o.useState(null);o.useLayoutEffect(()=>{B&&!k&&m&&R(N.current?.getBoundingClientRect()??null)},[B,k,m]);const S=o.useCallback(Se=>{Se.target===Se.currentTarget&&(Se.key==="Enter"||Se.key===" ")&&(Se.preventDefault(),H())},[H]),L=r||null,K=o.useMemo(()=>{if(!m)return null;const Se=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,Ge=Se&&Se.length>0?Se:iy(L);return Ge&&Ge.length>0?Ge:null},[m,p,L]),Z=o.useCallback(Se=>{Se.stopPropagation(),f?.()},[f]),Q=o.useCallback(Se=>Se.stopPropagation(),[]),pe=o.useCallback(Se=>{typeof b=="function"&&b(Se)},[b]),Te=c||(u&&r?.id!=null?u.has(String(r.id)):!1),ke=!Te&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);Zi("speechear.popup.close",ee);const oe=ii(),z=`${a?.label||""} ${t+1}`,re=L?.title||L?.name||z;let ce=a?.icon,fe,ye="",Ne="";try{const Se=L?.category_0||L?.category_main_code||L?.category_main,Ge=L?.category_1||L?.category_sub_code||L?.category_sub,$e=oe.find(Ie=>Ie.key===Se);$e?.icon&&(ce=$e.icon),!fe&&$e?.color&&(fe={"--t-item-fg":$e.color}),!fe&&L?.iconColor&&(fe={"--t-item-fg":L.iconColor}),ye=$e?y(`topic.${$e.key}`,{defaultValue:$e.label||""}):"";try{const Ie=$e?.subs?.find(Ve=>Ve.key===Ge);Ne=Ie?y(`topic.sub.${Ie.key}`,{defaultValue:Ie.label||""}):""}catch{}}catch{}const we=Ne?`${ye} / ${Ne}`:ye||a?.label||re,Be=Se=>y("training.countQuestions",{n:Se}),je=Se=>y("training.countSentences",{n:Se});let se="";try{if(L)if(a?.key==="LISTEN_IN_NOISE"){let Se=0;Array.isArray(L.items)&&L.items.length>0?Se=L.items.length:Array.isArray(L.sentences)&&L.sentences.length>0?Se=L.sentences.length:L.sentences&&(Se=1),se=je(Se)}else if(a?.key==="SHORT_STORY"){let Se=1;Array.isArray(r?.items)?Se=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?Se=r.raw.items.length:Array.isArray(L?.questions)?Se=L.questions.length:Array.isArray(L?.sentences)&&(Se=L.sentences.length),se=Be(Se)}else if(a?.key==="LONG_STORY"){let Se=1;if(Array.isArray(L.items)&&L.items.length>0){const Ge=L.items.reduce(($e,Ie)=>{const Ve=Ie.questionItems;return Array.isArray(Ve)?$e+Ve.length:Array.isArray(Ie.questions)?$e+Ie.questions.length:$e},0);Se=Ge>0?Ge:L.items.length}else Array.isArray(L.questions)&&L.questions.length>0?Se=L.questions.length:Array.isArray(L.sentences)&&L.sentences.length>0&&(Se=L.sentences.length);se=Be(Se)}else if(a?.key==="ORDERING_SENTENCE"){let Se=1;Array.isArray(L.items)&&L.items.length>0?Se=L.items.length:Array.isArray(L.sentences)&&L.sentences.length>0&&(Se=L.sentences.length),se=je(Se)}else Array.isArray(L.items)&&(se=L.items.length>0?Be(L.items.length):"")}catch{}const te=x==="row",me=x==="list"||te,ne=x==="compact",Ce=x==="small",ve=Ce&&a?.key?E2().find(Se=>Se.key===a.key):void 0,Ye=ve?li[ve.key]:void 0,He=ve?Ye?y(`trainingType.${Ye}.title`,{defaultValue:ve.label}):ve.label??"":"",Ue=!!g&&!!a?.label&&a.label!==String(re)||Ce&&!!He&&He!==String(re);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:N,className:`training-block-button${me?" training-block-button--list":""}${te?" training-block-button--row":""}${ne?" training-block-button--compact":""}${Ce?" training-block-button--small":""}${Te?" training-block-button--completed":""}${ke?" training-block-button--selected":""}${Ue&&!Ce?" training-block-button--withType":""}${Ce&&!Ue?" training-block-button--no-type-label":""}`,onClick:H,onPointerEnter:q,onPointerLeave:U,role:"button",tabIndex:0,onKeyDown:S,"aria-label":typeof s=="string"?s:typeof re=="string"?re:void 0,title:!m&&p&&(Array.isArray(p)?p.filter(Boolean).join(`
859
- `):p)||void 0,children:[n.jsxs("div",{className:"training-block-button__left",children:[g&&a?.label&&a.label!==String(re)&&n.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ce&&He&&He!==String(re)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:He}),n.jsx(Jl,{icon:ce,label:re,tooltip:we,wrapperStyle:fe,iconSize:Ce||ne?"small":"medium"}),!C&&(Te||ke)&&!(f&&B)&&n.jsx(mt,{className:f?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":Te?y("training.completed","\uD6C8\uB828 \uC644\uB8CC"):y("training.selected","\uC120\uD0DD\uB428")}),f&&n.jsx(mt,{className:`training-block-button__remove${B?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":y("common.remove","\uC81C\uAC70"),onClick:Z}),n.jsx("div",{className:`training-block-button__title ${ne?"body-3":Ce?"body-3b":"h3"}`,children:String(re)}),n.jsxs("div",{className:"training-block-button__description",children:[(()=>{const Se=v!==void 0?v:se;return Se?n.jsx("div",{className:`training-block-button__count ${Ce?"caption-2":"caption-1"}`,children:Se}):null})(),n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(qe,{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:Ce?12:20})})]}),(me&&!te||Ce)&&F.length>0&&n.jsx("div",{ref:E,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:Q,onPointerEnter:W,onPointerLeave:J,children:n.jsx(le,{htmlType:"button",size:Ce?28:32,type:"dot",icon:D?"pause":"play",variant:Ce?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:D?y("training.stop","\uC815\uC9C0"):y("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:M})})]}),h&&n.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:Se=>{Se.stopPropagation(),h(Se)},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")})})]}),P&&n.jsx(Dn,{anchorRect:I,text:D?y("training.stop","\uC815\uC9C0"):y("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:J}),B&&!k&&m&&(K?n.jsx(Fn,{anchorRect:O,items:K,activeIndex:$,onClose:U}):L?.subTitle?n.jsx(Dn,{anchorRect:O,text:L.subTitle,offset:8,onClose:U}):null),k&&l&&l({trainingData:L,typeKey:a?.key??"",onClose:ee,onComplete:pe,popupTitle:String(re),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:ce,popupIconTooltip:String(we),popupWrapperStyle:fe})]})}let ho=null,Ql=!1;function ec(){if(Ql||typeof document>"u")return;Ql=!0,document.addEventListener("keydown",t=>{t.metaKey||t.ctrlKey||t.altKey||(ho="keyboard")},!0);const e=()=>{ho="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}ec();function Qa(){return ec(),ho==="keyboard"}const er=20;function ly(e){const{t}=ge.useTranslation(),{type:a,trainingDatas:r,depth:s,renderPopup:i,completedIds:l,selectedIds:c,onItemComplete:u,size:d,useDescriptionTooltip:p,onRemove:m,onMore:f,sectionType:C="page"}=e||{},[,g]=o.useState(0),b=typeof r<"u"?Array.isArray(r)?r:[]:[],_=b.length,[h,v]=o.useState(Math.min(_,er)),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(()=>{v(Math.min(_,er))},[_]),Zi("speechear.data.updated",()=>g(N=>N+1));const y=o.useRef(null),k=o.useRef(null);function w(){const N=document.activeElement;k.current=Qa()&&N&&N.closest?.(".training-block__more")?h:null,v(B=>Math.min(_,B+er))}return o.useEffect(()=>{const N=k.current;if(N==null)return;k.current=null;const B=document.activeElement;B&&B!==document.body||y.current?.querySelectorAll(".training-block-button")[N]?.focus()},[h]),n.jsxs(aa,{type:C,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[n.jsx("div",{className:"training-list",ref:y,children:(b||[]).slice(0,h).map((N,B)=>{const A=N;return n.jsx(mo,{index:B,type:a,trainingData:A,depth:x,renderPopup:i,completedIds:l,selectedIds:c,size:d,useDescriptionTooltip:p,onRemove:typeof m=="function"&&c!=null&&A?.id!=null&&c.has(String(A.id))?()=>m(A):void 0,onComplete:typeof u=="function"&&A?.id!=null?()=>u(String(A.id)):void 0,onMore:typeof f=="function"?D=>f(A,D):void 0},A?.id!=null?`${a?.key||"t"}-${String(A.id)}`:`${a?.key||"t"}-${B}`)})}),_>er&&h<_&&n.jsx("div",{className:"training-block__more",children:n.jsx(le,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:w,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function fo(e){const t=o.useRef(null),[a,r]=o.useState(!!e),[s,i]=o.useState(!1);o.useEffect(()=>{i(!1);const u=t.current;r(!!e&&!(u?.complete&&u.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 cy='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 uy=cy,Co=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:u=!1,orderRank:d=null},p){const{t:m}=ge.useTranslation(),f=e.word||e.title||"",C=t||!f,g=e.audio??e.sound??e.audioKey,b=e.subLabel||e.pronunciation||"",_=e.colloquialLabel||"",[h,v]=o.useState({label:f,subLabel:b,colloquialLabel:_,homonum:e.homonum});f&&(h.label!==f||h.subLabel!==b||h.colloquialLabel!==_||!Object.is(h.homonum,e.homonum))&&v({label:f,subLabel:b,colloquialLabel:_,homonum:e.homonum});const x=o.useRef(null),y=tn("(max-width: 767px)"),[k,w]=o.useState(!1),N=`${typeof g=="string"?g:g?.src??""}\0${f}`,[B,A]=o.useState({for:"",url:""}),D=B.for===N?B.url:"",$=Js(),F=e.textOnly??(!e.image&&!!h.label&&!!$&&$.entries.length>0&&!$.byWord.has(h.label)),P=F?"":Gn()?.(h.label,h.homonum)??e.image??"",{imgRef:G,loading:E,hasImage:M,onLoad:H,onError:ee}=fo(P);o.useEffect(()=>{let S=!1;return(async()=>{if(g){if(typeof g=="string"){if(g.startsWith("http")||g.includes("/")){A({for:N,url:g});return}}else if(typeof g=="object"&&!Array.isArray(g)){const K=g.src;if(K){A({for:N,url:K});return}}}const L=Br();if(L&&f)try{const K=await Promise.resolve(L(f));!S&&K&&A({for:N,url:K})}catch{}})(),()=>{S=!0}},[g,f,N]);const q=o.useRef(!0),U=o.useRef(null);o.useEffect(()=>(q.current=!0,()=>{q.current=!1,U.current&&Ja(U.current),U.current=null;try{x.current?.pause()}catch{}x.current=null}),[]);const W=o.useCallback(()=>new Promise(S=>{if(typeof window<"u"&&window.speechSynthesis&&f){w(!0),window.speechSynthesis.cancel();const L=new SpeechSynthesisUtterance(f);L.lang="ko-KR",L.onend=()=>{w(!1);try{a?.()}catch{}S()},L.onerror=()=>{w(!1),S()},window.speechSynthesis.speak(L)}else S()}),[f,a]),J=o.useCallback(S=>new Promise(L=>{let K=!1;const Z=()=>{K||(K=!0,w(!1),L(!1))};try{const Q=new Audio(S);x.current=Q,Q.onended=()=>{if(!K){K=!0,w(!1);try{a?.()}catch{}L(!0)}},Q.onerror=Z,Q.play().catch(Z)}catch{Z()}}),[a]),I=o.useCallback(async()=>{if(t||!q.current)return;const S=()=>{U.current===S&&(U.current=null);try{x.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1)},L=Xa(S);U.current=S;try{window.speechSynthesis?.cancel()}catch{}try{if(D&&(w(!0),await J(D)))return;const K=U0();if(K&&f)try{const Z=await Promise.resolve(K(f));if(!q.current||U.current!==S||Z&&(w(!0),await J(Z)))return}catch{}if(!q.current||U.current!==S)return;await W()}finally{L(),U.current===S&&(U.current=null)}},[t,D,f,J,W]);o.useImperativeHandle(p,()=>({play:()=>I()}),[I]);const T=S=>S.stopPropagation(),O=o.useCallback(S=>{if(S.stopPropagation(),!t){if(k){try{x.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1);return}I()}},[t,k,I]),R=De("training-word-card",t?"training-word-card--disabled":"",C?"training-word-card--flipped":"",r?"training-word-card--selectable":"",s?"training-word-card--selected":"");return n.jsx("div",{className:R,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?S=>{S.target===S.currentTarget&&(S.key==="Enter"||S.key===" "||S.key==="Spacebar")&&(S.preventDefault(),i?.())}:void 0,children:n.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:C?"0ms":`${l}ms`},children:[n.jsxs("div",{className:"training-word-card__front",children:[s&&n.jsx("div",{className:"training-word-card__selected-badge",onClick:T,children:n.jsx(mt,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?m("training.nthSelected",{n:d}):m("training.selected","\uC120\uD0DD\uB428")})}),n.jsx("div",{className:"training-word-card__image-wrap",children:F?n.jsx("div",{className:"training-word-card__text-face",children:h.label}):M?n.jsxs(n.Fragment,{children:[E&&n.jsx("div",{className:"training-word-card__spinner"}),n.jsx("img",{ref:G,className:"training-word-card__image",src:P,alt:h.label||m("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:E?0:1},onLoad:H,onError:ee})]}):n.jsx("div",{className:"training-word-card__placeholder"})}),!c&&n.jsxs("div",{className:"training-word-card__body",children:[!F&&n.jsx("div",{className:"training-word-card__word",children:h.label}),h.subLabel&&n.jsxs("div",{className:"training-word-card__pronunciation",children:["[",h.subLabel,"]"]}),h.colloquialLabel&&n.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",h.colloquialLabel,"]"]})]}),!u&&n.jsx("div",{className:"training-word-card__bottom",onClick:r?T: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:O,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:uy,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),dy=260;function Tn(e){const{t}=ge.useTranslation(),{title:a,subtitle:r,headerActions:s,children:i,buttons:l,footer:c,footerClassName:u="",onClose:d,closeDisabled:p=!1,beforeClose:m,closeOnBackdrop:f=!0,className:C="",ariaLabel:g,useTitle:b=!0,inline:_=!1,size:h,layer:v="modal",height:x,fillBody:y=!1,resetScrollKey:k}=e||{},[w,N]=o.useState(!1),B=o.useRef(!1),A=o.useRef(null),D=o.useId(),$=o.useRef(null);o.useEffect(()=>{},[_,a,g,C]),o.useEffect(()=>{k!==void 0&&$.current&&($.current.scrollTop=0)},[k]);const[F,P]=o.useState(!1);o.useEffect(()=>{const S=$.current;if(!S)return;const L=()=>P(S.scrollHeight>S.clientHeight+1);if(L(),typeof ResizeObserver>"u")return;const K=new ResizeObserver(L);K.observe(S);const Z=S.firstElementChild;return Z&&K.observe(Z),()=>K.disconnect()},[i,k]),o.useEffect(()=>{if(!_)return Nl()},[_]),o.useEffect(()=>{if(_)return;const S=document.activeElement,L=A.current;return Fr(L,S),L&&!L.contains(document.activeElement)&&(L.querySelector(fn)??L).focus(),()=>{const K=document.activeElement;(!K||K===document.body||L&&L.contains(K))&&Or(S)?.focus?.()}},[_]),Pr(A,!_);const G=o.useRef(!0),E=Hr(),M=o.useRef(null);o.useEffect(()=>(G.current=!0,()=>{G.current=!1,M.current&&(clearTimeout(M.current),M.current=null)}),[]);const H=o.useCallback(()=>{!G.current||!B.current||(B.current=!1,N(!1))},[]),ee=o.useCallback((S,L=!1)=>{if(L&&!G.current||B.current)return;B.current=!0,N(!0);const K=setTimeout(()=>{M.current===K&&(M.current=null);let Z;try{Z=S?S():void 0}catch{H();return}Z&&typeof Z.then=="function"&&Z.then(()=>{setTimeout(H,120)},H)},E?0:dy);L&&(M.current=K)},[H,E]),q=o.useCallback(()=>{p||m&&m()===!1||ee(d,!0)},[ee,d,p,m]),U=o.useRef(q);o.useEffect(()=>{U.current=q});const W=!_&&!!d;o.useEffect(()=>{if(W)return In(()=>U.current())},[W]);const J=W&&f,I=o.useRef(!1),T=S=>{I.current=S.target===S.currentTarget},O=S=>{const L=I.current;I.current=!1,L&&S.target===S.currentTarget&&q()},R=n.jsx("div",{className:`popup ${_?"popup--inline":""} ${v==="belowPagePopup"?"popup--below-page-popup":""} ${w?"popup--closing":""} ${C}`,onPointerDown:J?T:void 0,onClick:J?O:void 0,onMouseDown:_?void 0:S=>{S.target===S.currentTarget&&S.preventDefault()},children:n.jsxs("div",{ref:A,className:`popup-panel${h?` popup-panel--${h}`:""}${x!=null?" popup-panel--has-height":""}${y?" popup-panel--fill-body":""}`,style:x!=null?{"--popup-height":typeof x=="number"?`${x}px`:x}:void 0,tabIndex:-1,role:_?void 0:"dialog","aria-modal":_?void 0:!0,"aria-labelledby":!_&&b&&a?D:void 0,"aria-label":!_&&!(b&&a)?g??(typeof a=="string"?a:void 0):void 0,children:[!b&&(s||d)?n.jsxs("div",{className:"popup-close-float",children:[s,d&&n.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:q,disabled:p,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||s||d?n.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[n.jsxs("div",{className:"popup-header-main",children:[n.jsx("span",{id:D,className:"popup-title popup-title--left h2",children:a}),r&&n.jsx("span",{className:"popup-subtitle body-3",children:r})]}),n.jsxs("div",{className:"popup-header-actions",children:[s,d&&n.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:q,disabled:p,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,n.jsx("div",{className:"popup-content",ref:$,tabIndex:F?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:ee,closeWithAnimation:q}):i})}),l?.length?n.jsx("div",{className:"popup-footer popup-footer--buttons",children:l.map((S,L)=>n.jsx(le,{htmlType:"button",size:48,variant:S.variant??"default",label:S.label,disabled:S.disabled,onClick:()=>S.onClick?.({animateThen:ee,closeWithAnimation:q})},L))}):c?n.jsx("div",{className:`popup-footer${u?` ${u}`:""}`,children:typeof c=="function"?c({animateThen:ee,closeWithAnimation:q}):c}):null]})});return _||typeof document>"u"?R:qt.createPortal(R,document.body)}function tr(e){return String(e)}const tc=["o","triangle","x"];function nc(e,t){return e===t?null:t}const ac={o:"circle",triangle:"triangle",x:"x"},rc={o:"main",triangle:"warn",x:"danger"};function py(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 go(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function oc(e){const t=[];let a=0;for(const r of e)t.push(a),a+=r;return t}function my(e,t){return!t&&e>0}const ra={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 hy(e="landscape"){kn("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}=ra[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 sc(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 fy={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 Cy(e,t){const a=fy[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 gy={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},ic={\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"},lc={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function bo(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function cc(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 u="#ddd",d=C=>`repeating-linear-gradient(to ${C}, ${u} 0, ${u} 5px, transparent 5px, transparent 10px)`,p=[],m=[],f=[];return l&&(p.push(d("bottom")),m.push("1px 100%"),f.push("right center")),c&&(p.push(d("right")),m.push("100% 1px"),f.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:m.join(", "),backgroundPosition:f.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const by=280,yy=240,vy=280,xy=400,_y=120,wy=280;function uc(e,t){const a=o.useRef(null),[r,s]=o.useState(1),[i,l]=o.useState(0),c=o.useCallback((u,d)=>{const p=u/e,m=t?d/t:1/0,f=Math.min(1,p,m);s(f),l(Math.max(0,(u-e*f)/2))},[e,t]);return o.useEffect(()=>{const u=a.current;if(!u)return;const d=t?u.parentElement??u:u;if(c(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([m])=>c(m.contentRect.width,m.contentRect.height));return p.observe(d),()=>p.disconnect()},[c,t]),{scalerRef:a,scale:r,offset:i}}const ky={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Ay=400,dc=8;function pc({label:e,subLabel:t,colloquialLabel:a,homonum:r,showWord:s=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:c=!0,buttonSize:u=40,wordInfo:d}){const{t:p}=ge.useTranslation(),m=o.useRef(null),f=o.useRef(null),C=o.useRef(null),[g,b]=o.useState(1),[_,h]=o.useState(!1),[v,x]=o.useState({for:"",url:""}),[y,k]=o.useState(null),w=t&&t.length>0?t:K0()?.(e,r)??"",N=Gn()?.(e,r)??"",{imgRef:B,loading:A,failed:D,onLoad:$,onError:F}=fo(N),P=o.useCallback(()=>k(f.current?.getBoundingClientRect()??null),[]),G=o.useCallback(()=>k(null),[]),E=zr(!!y,O=>{O?P():G()},f),M=o.useMemo(()=>{if(!d)return null;const O=[];return d.grade&&O.push(p("wordTable.info.grade",{n:d.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),d.syllables&&O.push(p("wordTable.info.syllables",{n:d.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),d.pos&&O.push(p("wordTable.info.pos",{v:bo(d.pos,By(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),d.wordType&&O.push(p("wordTable.info.wordType",{v:bo(d.wordType,Ny(p)),defaultValue:"\uC720\uD615: {{v}}"})),O.length?O:null},[d,p]),H=w||e,ee=v.for===H?v.url:"";o.useEffect(()=>{const O=Br(),R=w||e;if(!O||!R)return;let S=!1;return Promise.resolve(O(R)).then(L=>{!S&&L&&x({for:R,url:L})}),()=>{S=!0}},[w,e]);const q=o.useRef(null),U=o.useRef(null);o.useEffect(()=>()=>{C.current?.pause(),U.current?.()},[]);const W=o.useCallback(async O=>{if(O.stopPropagation(),_){q.current?.();return}if(ee){h(!0);try{const R=new Audio(ee);C.current=R;const S=()=>{h(!1),U.current?.()},L=()=>{R.pause(),S()};q.current=L;const K=Xa(L);U.current=K,R.onended=S,R.onerror=S,await R.play()}catch{h(!1),U.current?.()}}},[_,ee]),J=i&&!!N&&!D,I=J&&s?by:J?vy:yy,T=J&&s?xy:J?wy:_y;return o.useEffect(()=>{const O=m.current;if(!O||typeof ResizeObserver>"u")return;const R=new ResizeObserver(([S])=>{const{width:L,height:K}=S.contentRect;b(Math.min(L/I,K/T))});return R.observe(O),()=>R.disconnect()},[I,T]),n.jsxs("div",{ref:m,className:"word-table-cell",children:[n.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${g})`},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:B,className:"word-table-cell__image",src:N,alt:e,draggable:!1,style:{opacity:A?0:1},onLoad:$,onError:F})]}),s&&n.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&w&&n.jsxs("span",{className:"word-table-cell__sub h3",children:["[",w,"]"]}),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":ee,children:[n.jsx("span",{"data-play-state":"play",style:{display:_?"none":void 0},children:n.jsx(le,{htmlType:"button",size:u,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:W})}),n.jsx("span",{"data-play-state":"pause",style:{display:_?void 0:"none"},children:n.jsx(le,{htmlType:"button",size:u,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:W})})]}),d&&n.jsxs("div",{ref:f,className:"word-table-cell__info-button",onPointerEnter:O=>{Xn(O)||P()},onPointerLeave:O=>{Xn(O)||G()},onFocus:()=>{Jn()||P()},onBlur:G,children:[n.jsx(le,{htmlType:"button",size:u,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:O=>{O.stopPropagation(),E.touchPress()}}),y&&M&&n.jsx(Fn,{anchorRect:y,items:M,showIndex:!1})]})]})}const mc={\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"},hc={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function By(e){return Object.fromEntries(Object.entries(ic).map(([t,a])=>[t,mc[t]?e(`wordTable.pos.${mc[t]}`,{defaultValue:a}):a]))}function Ny(e){return Object.fromEntries(Object.entries(lc).map(([t,a])=>[t,hc[t]?e(`wordSearch.filter.type.${hc[t]}`,{defaultValue:a}):a]))}function oa({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:u=!0,items:d,editCells:p,count:m,activeCell:f=null,onActivateCell:C,onRemoveCell:g,onRemoveItem:b,onReorder:_,showFillerAdd:h=!1,contentRef:v,buttonSize:x=40,pageNumber:y,pageNumberPosition:k="right",fitHeight:w=!1,scoring:N=!1,marks:B,onMarkClick:A,scoreIndexOffset:D=0}){const $=o.useCallback((te,me)=>{A?.(D+te,me)},[A,D]),F=(te,me)=>{const ne=B?.[tr(D+te)]??null;return n.jsx("div",{className:De("word-table-cell__score",ne?"word-table-cell__score--marked":""),children:tc.map(Ce=>n.jsx("span",{className:De("word-table-cell__score-slot",ne===Ce?"word-table-cell__score-slot--on":""),children:n.jsx(le,{htmlType:"button",size:x,type:"dot",icon:ac[Ce],variant:ne===Ce?rc[Ce]:"default",selected:ne===Ce,useBorder:!1,showTooltipInfo:!1,ariaLabel:P(`wordTable.scoring.${Ce}`,{word:me,defaultValue:`${me} ${Ce}`}),onClick:ve=>{ve.stopPropagation(),$(te,Ce)}})},Ce))})},{t:P}=ge.useTranslation(),G=p!==void 0,E=e!=null||!!t||!!a,M=o.useRef(null),[H,ee]=o.useState(null),q=d?.length??0,[U,W]=o.useState(null),[J,I]=o.useState(""),T=o.useRef(null),O=o.useRef(null),R=o.useRef(null),S=o.useRef(null),L=o.useCallback(te=>{O.current=te,typeof v=="function"?v(te):v&&(v.current=te)},[v]),K=o.useCallback((te,me)=>{T.current=me,_?.(te,me),I(P("wordTable.reorder.moved",{n:me+1,total:q,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[_,P,q]);o.useEffect(()=>{const te=T.current;te!=null&&(T.current=null,O.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler)")?.[te]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{S.current?.()},[]);const Z=o.useCallback((te,me)=>{if(!_||!te.altKey||te.ctrlKey||te.metaKey)return;const ne=te.key==="ArrowRight";if(!ne&&te.key!=="ArrowLeft")return;te.preventDefault();const Ce=me+(ne?1:-1);Ce<0||Ce>=q||K(me,Ce)},[_,q,K]),Q=o.useCallback((te,me)=>{if(!_||te.pointerType==="mouse")return;const ne=te.target.closest?.("button");if(ne&&!ne.closest(".word-table-block__card-handle"))return;S.current?.();const Ce={x:te.clientX,y:te.clientY};let ve=!1;const Ye=$e=>{ve&&$e.cancelable&&$e.preventDefault()},He=$e=>{if(!ve){(Math.abs($e.clientX-Ce.x)>dc||Math.abs($e.clientY-Ce.y)>dc)&&Ge();return}const Ie=document.elementFromPoint?.($e.clientX,$e.clientY)?.closest?.("[data-wordtable-cell]"),Ve=Ie?Number(Ie.dataset.wordtableCell):NaN,at=Number.isInteger(Ve)?Ve:null;R.current=at,ee(at)},Ue=()=>{const $e=R.current,Ie=ve;Ge(),Ie&&$e!=null&&$e!==me&&K(me,$e)},Se=setTimeout(()=>{ve=!0,W(me),R.current=me,ee(me),window.addEventListener("touchmove",Ye,{passive:!1})},Ay);function Ge(){clearTimeout(Se),window.removeEventListener("pointermove",He),window.removeEventListener("pointerup",Ue),window.removeEventListener("pointercancel",Ue),window.removeEventListener("touchmove",Ye),ve=!1,R.current=null,S.current=null,W(null),ee(null)}S.current=Ge,window.addEventListener("pointermove",He),window.addEventListener("pointerup",Ue),window.addEventListener("pointercancel",Ue)},[_,K]),{width:pe,height:Te}=ra[s],{scalerRef:ke,scale:oe,offset:z}=uc(pe,w?Te:void 0),re=G?p?.length??0:d?.length??0,ce=Math.max(m??re,1),{cols:fe,rows:ye}=Cy(s,ce),Ne={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")},we=G?(p??[]).some(te=>te!==null&&te.length>1):(d??[]).some(te=>(te.words??[]).length>1),Be=De("word-table-block__content",gy[l],c&&"word-table-block__content--outline",u&&we&&"word-table-block__content--div-line"),je={transform:`scale(${1/oe})`,transformOrigin:"center center"},se=n.jsxs("div",{ref:ke,className:"word-table__scaler",style:{height:Te*oe},children:[n.jsx("div",{className:De("word-table",!E&&r),style:{width:pe,height:Te,transform:`scale(${oe})`,transformOrigin:"top left",marginLeft:z},children:n.jsxs("div",{ref:L,className:Be,style:{gridTemplateColumns:`repeat(${fe}, 1fr)`,gridTemplateRows:`repeat(${ye}, 1fr)`},children:[G?n.jsx(n.Fragment,{children:(p??[]).map((te,me)=>n.jsx("div",{className:De("word-table-block__edit-cell",te?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",f===me?"word-table-block__edit-cell--active":""),style:cc(me,fe,ye,l),children:te?n.jsxs(n.Fragment,{children:[te.map((ne,Ce)=>n.jsxs(o.Fragment,{children:[Ce>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(pc,{label:ne.word,subLabel:ne.pronunciation,colloquialLabel:ne.colloquialPronunciation,homonum:ne.homonum,showWord:Ne.word,showImage:Ne.image,showPronunciation:Ne.pron,showColloquial:Ne.colloq,buttonSize:x})]},Ce)),N&&F(me,te.map(ne=>ne.word).join(" / ")),g&&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:te.length>1?P("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):P("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:te.length>1?P("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):P("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>g(me)})})]}):C&&n.jsx("div",{style:je,children:n.jsx(le,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:P("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C(me)})})},me))}):n.jsxs(n.Fragment,{children:[(d??[]).map((te,me)=>n.jsxs("div",{"data-wordtable-cell":_?me:void 0,className:`word-table-block__card${_?" word-table-block__card--draggable":""}${H===me?" word-table-block__card--drag-over":""}${U===me?" word-table-block__card--dragging":""}`,style:cc(me,fe,ye,l),draggable:!!_,onPointerDown:_?ne=>Q(ne,me):void 0,onKeyDown:_?ne=>Z(ne,me):void 0,onDragStart:_?()=>{M.current=me}:void 0,onDragOver:_?ne=>{ne.preventDefault(),ee(me)}:void 0,onDragLeave:_?()=>ee(null):void 0,onDrop:_?ne=>{ne.preventDefault(),M.current!==null&&M.current!==me&&_(M.current,me),M.current=null,ee(null)}:void 0,onDragEnd:_?()=>{M.current=null,ee(null)}:void 0,children:[(te.words??[]).map((ne,Ce)=>n.jsxs(o.Fragment,{children:[Ce>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(pc,{label:ne.label,subLabel:ne.subLabel,colloquialLabel:ne.colloquialLabel,homonum:ne.homonum,showWord:Ne.word,showImage:Ne.image,showPronunciation:Ne.pron,showColloquial:Ne.colloq,buttonSize:x,wordInfo:ne.grade||ne.syllables!=null||ne.pos||ne.wordType?{grade:ne.grade,syllables:ne.syllables,pos:ne.pos,wordType:ne.wordType}:void 0})]},Ce)),N&&F(me,(te.words??[]).map(ne=>ne.label).join(" / ")),_&&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:P("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:P("wordTable.reorder.handle",{word:(te.words??[]).map(ne=>ne.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})}),b&&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:(te.words??[]).length>1?P("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):P("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(te.words??[]).length>1?P("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):P("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>b(te.id)})})]},te.id)),Array.from({length:Math.max(0,fe*ye-(d?.length??0))}).map((te,me)=>{const ne=(d?.length??0)+me<ce;return n.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:h&&C&&ne&&n.jsx("div",{style:je,children:n.jsx(le,{htmlType:"button",size:x,type:"bar",icon:"plus",label:P("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C((d?.length??0)+me)})})},`filler-${me}`)})]}),y&&k!=="none"&&n.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${k}`,children:P("wordTable.filter.pageIndicator",{current:y.current,total:y.total})})]})}),_&&n.jsx("span",{role:"status",style:ky,children:J})]});return E?n.jsx(aa,{type:"page",icon:t,title:e,disc:a,className:De("word-table-block",r),children:se}):se}function xn({title:e,headerAction:t,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:s,onCollapsedChange:i,footer:l,sections:c,selected:u={},onSelect:d,align:p,sectionAlign:m,className:f}){const C=(p??(m==="vertical"?"newline":"inline"))==="inline",{t:g}=ge.useTranslation(),[b,_]=o.useState(r),h=s??b,v=()=>{const y=!h;_(y),i?.(y)},x=e||t||a;return n.jsxs("div",{className:De("filter-panel",a?"filter-panel--collapsible":"",h?"filter-panel--collapsed":"",f),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:h?"chevron-down":"chevron-up",ariaLabel:h?g("common.expand","\uD3BC\uCE58\uAE30"):g("common.collapse","\uC811\uAE30"),"aria-expanded":!h,onClick:v}),e&&n.jsx("span",{className:"filter-panel__title h4",children:e})]}),n.jsx("div",{className:"filter-panel__header-actions",children:!h&&t})]}),!h&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:De("filter-panel__sections",C?"filter-panel__sections--row":""),children:c.map(y=>{const k=u[y.label],w=k===void 0||(Array.isArray(k)?k.length===0:!1),N=(y.items??[]).filter(A=>A!=null);y.allOption&&N.some(A=>(typeof A=="string"?A:A.value)===rn)&&kn(`filter-panel-all-value:${y.label}`,`[FilterPanel] '${y.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${rn}' \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 B=A=>{const D=typeof A=="string"?A:A.value,$=typeof A!="string"&&!!A.disabled,F=typeof A!="string"?A.labels:void 0,P=typeof A!="string"?A.displayLabel:void 0,G=typeof A!="string"?A.tooltip:void 0,E=typeof A!="string"?A.descriptionTooltip:void 0,M=typeof A!="string"?A.shape:void 0,H=Array.isArray(k)?k.includes(D):k===D;return n.jsx(le,{htmlType:"button",size:"keyboard",label:F??P??D,type:y.itemType??(F?"bar":D.length===1?"dot":void 0),selected:H,disabled:$,shape:M,showTooltipInfo:!!G,tooltipInfoText:G,tooltipDescription:E,onClick:()=>d?.(D,y.label)},D)};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(Vn,{className:"filter-panel__textfield",placeholder:y.placeholder,ariaLabel:y.displayLabel??y.label,value:u[y.label]??"",onChange:A=>d?.(A,y.label),error:y.error}):!y.multiple&&y.display==="segmented"?n.jsx(Sn,{ariaLabel:y.displayLabel??y.label,options:[...y.allOption?[{key:rn,label:y.allLabel??g("common.all","\uC804\uCCB4"),disabled:y.allOptionDisabled}]:[],...N.map(A=>{const D=typeof A=="string"?A:A.value,$=typeof A!="string"?A.displayLabel:void 0,F=typeof A!="string"?A.disabled:void 0;return{key:D,label:$??D,disabled:F}})],value:w&&y.allOption?rn:u[y.label]??"",onChange:A=>d?.(A,y.label),size:40}):!y.multiple&&y.display==="dropdown"?n.jsx(nn,{className:"filter-panel__dropdown",size:40,options:[...y.allOption?[{value:rn,label:y.allLabel??g("common.all","\uC804\uCCB4"),disabled:y.allOptionDisabled}]:[],...N.map(A=>{const D=typeof A=="string"?A:A.value,$=typeof A!="string"?A.displayLabel:void 0,F=typeof A!="string"?A.disabled:void 0;return{value:D,label:$??D,disabled:F}})],value:w&&y.allOption?rn:u[y.label],onChange:A=>d?.(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??g("common.all","\uC804\uCCB4"),selected:w,disabled:y.allOptionDisabled,onClick:()=>d?.(rn,y.label)}),y.groups?y.groups.map((A,D)=>n.jsxs("div",{className:"filter-panel__item-group",children:[D===0&&y.allOption&&n.jsx(le,{htmlType:"button",size:"keyboard",label:y.allLabel??g("common.all","\uC804\uCCB4"),selected:w,disabled:y.allOptionDisabled,onClick:()=>d?.(rn,y.label)}),A.filter($=>$!=null).map(B)]},D)):N.map(B)]})]})]},y.label)})}),l!=null&&l!==!1&&n.jsx("div",{className:"filter-panel__footer body-3",children:l})]})]})}const Dy=[1,2,3,4,5,6,7,8,9,10,11,12],fc=[8,4,2,1];function Cc(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 gc(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 bc(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 yc(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 vc(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 xc(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...fc.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function _c(e,t){return e===t||!fc.includes(e)?Number.POSITIVE_INFINITY:e}function wc(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 kc={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Ac(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Bc(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 Nc(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===rn?(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 Sy(e){return"sections"in e}function yo(e){const{t}=ge.useTranslation(),{title:a,className:r}=e;if(Sy(e))return n.jsx(xn,{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:u,cutLine:d,showDivLine:p,setters:m,showCutLine:f=!1,showDivLine2:C=!1,middleSections:g=[],extraSelected:b={},onExtraSelect:_}=e,h=[Cc(t,{hasImage:s,hasColloquial:i}),gc(t),...g,bc(t),...f?[yc(t)]:[],...C?[vc(t)]:[]],v={...Bc(t,{contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p}),...b},x=(y,k)=>{Nc(t,y,k,m)||_?.(y,k)};return n.jsx(xn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:h,selected:v,onSelect:x,sectionAlign:"horizontal"})}function Dc(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function vo(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let nr=null,sa=null;function Ey(e,t,a,r="",s=""){if(e.length===0||sa&&sa.iframe.isConnected&&Date.now()-sa.at<1e4)return;const i=r?vo(r):"";nr?.();let l=null;if(i){const d=document.title;document.title=i,l=()=>{document.title=d,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 u=c.contentDocument;if(!u){c.remove();return}sa={iframe:c,at:Date.now()},u.open(),u.write(xo(e,t,a,!0,i,s)),u.close(),c.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{c.remove(),sa?.iframe===c&&(sa=null)},0)})}function xo(e,t,a,r=!1,s="",i=""){s=s?vo(s):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(m=>m.cssText)}catch{return[]}}).join(`
857
+ `),y=g===-1?a:a.slice(0,g);i("comment",y),a=a.slice(y.length);continue}if(s&&a.startsWith("#")){const g=a.indexOf(`
858
+ `),y=g===-1?a:a.slice(0,g);i("comment",y),a=a.slice(y.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),a=a.slice(c[0].length);continue}const u=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(u){i("string",u[0]),a=a.slice(u[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){i("number",d[0]),a=a.slice(d[0].length);continue}const p=a.match(w4);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 g=m[0];i(s&&_4.has(g)?"command":"identifier",g),a=a.slice(g.length);continue}const f=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(f){i("operator",f[0]),a=a.slice(f[0].length);continue}const C=a.match(/^[()[\]{};.,]/);if(C){i("punctuation",C[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function A4({children:e,language:t="bash",title:a="",showCopy:r=!0,size:s="default",className:i=""}){const{t:l}=ge.useTranslation(),[c,u]=o.useState(!1),d=x4(Tl(e)),p=o.useRef(null);o.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=async()=>{try{if(!await k2(d))return;u(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>u(!1),2e3)}catch{}},f=k4(d,t),C=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:f.map((g,y)=>n.jsx("span",{className:`code-token ${g.type} ${C}`,children:g.content},y))})})]})}const B4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function Da(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 u=s==null||!Number.isFinite(Number(s)),d=u?0:Math.max(0,Math.min(100,Number(s)));return n.jsx("div",{className:`loader-bar${u?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u?void 0:d,"aria-label":l,children:n.jsx("div",{className:"loader-bar__inner",style:u?void 0:{width:`${d}%`}})})}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:B4,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 jl({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:s,labelPosition:i="right",className:l="",id:c}){const u=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"&&u,n.jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>t?.(d.target.checked),"aria-label":!r&&s?s:void 0}),n.jsx("span",{className:"toggle__slider"}),i==="right"&&u]})}function Ml({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:s,size:i="medium",className:l,title:c,ariaLabel:u}){const d=o.useRef(null),p=o.useId(),m=o.useRef(!!r);return m.current=!!r,o.useEffect(()=>{d.current&&(d.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:d,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:f=>{t?.(f.target.checked),d.current&&(d.current.indeterminate=m.current)},disabled:a,"aria-label":!s&&u?u:void 0}),n.jsx("span",{className:"checkbox__box"}),s&&n.jsx("span",{className:"checkbox__label body-3",children:s})]})}function N4({count:e,actions:t,onClear:a,clearLabel:r,visible:s,content:i,max:l}){const{t:c}=ge.useTranslation(),u=s!==void 0?s:e>0,d=r??c("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=o.useRef(null),m=o.useRef(null),f=o.useRef(null),C=o.useRef(u);o.useLayoutEffect(()=>{const v=m.current,x=C.current;if(C.current=u,u&&!x){const b=typeof document<"u"?document.activeElement:null;f.current=b&&b!==document.body&&!v?.contains(b)?b:null}else!u&&x&&v&&v.contains(document.activeElement)&&Va(v,f.current)},[u]);const[g,y]=o.useState(!1),_=o.useRef(!1),h=o.useRef(null);return o.useEffect(()=>{const v=p.current;if(!v)return;const x=A=>{_.current=A,y(A)},b=()=>{const A=v.firstElementChild??v,D=Array.from(A.children);if(D.length<2){x(!1);return}const $=D[0].offsetTop,O=D.some(H=>H.offsetTop!==$);if(!_.current){h.current=v.clientWidth,O&&x(!0);return}if(O)return;const P=D[0],K=D[D.length-1],S=K.offsetLeft+K.offsetWidth-P.offsetLeft,L=h.current;(L==null||S<=L)&&x(!1)};if(b(),typeof ResizeObserver>"u")return;const k=new ResizeObserver(b);k.observe(v);const w=v.parentElement;let N=w?.clientWidth??0;const B=new ResizeObserver(()=>{const A=w?.clientWidth??0;A!==N&&(N=A,h.current=null,b())});return w&&B.observe(w),()=>{k.disconnect(),B.disconnect()}},[i,e]),n.jsxs("div",{ref:m,className:`bulk-bar ${u?"bulk-bar--visible":""}`,inert:!u||void 0,"aria-hidden":u?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(mt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),n.jsxs("div",{className:`bulk-bar__actions${g?" bulk-bar__actions--stacked":""}`,children:[n.jsx(le,{htmlType:"button",size:40,label:d,onClick:a}),t.map((v,x)=>n.jsx(le,{htmlType:"button",size:40,variant:v.variant??"default",icon:v.icon,label:v.label,onClick:v.onClick},x))]})]})}function Ll(e,t){const a=()=>{if(e){const[y,_]=e.split("-");return{y:+y,m:+_-1}}const[C,g]=Lr(t).split("-");return{y:+C,m:+g-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 C=a();s(C.y),l(C.m)},[e]);const u=o.useRef({y:r,m:i});o.useEffect(()=>{u.current={y:r,m:i}},[r,i]);const d=o.useCallback(C=>{const g=u.current.y*12+u.current.m+C,y=Math.floor(g/12),_=g-y*12;u.current={y,m:_},s(y),l(_)},[]),p=o.useCallback(()=>d(-1),[d]),m=o.useCallback(()=>d(1),[d]),f=o.useCallback((C,g)=>{u.current={y:C,m:g},s(C),l(g)},[]);return{viewY:r,viewM:i,prevMonth:p,nextMonth:m,setViewYM:f}}function Ka(e,t){return new Date(e,t+1,0).getDate()}function D4(e,t){return new Date(e,t,1).getDay()}function Ya(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function S4(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function E4(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 u=0;u<12;u++){const d=`${c}-${String(u+1).padStart(2,"0")}`;a&&d<a.slice(0,7)||r&&d>r.slice(0,7)||l.push({value:d,label:t(c,u+1)})}return l}function T4({value:e,onChange:t,size:a=48,min:r,max:s,disabled:i,placeholder:l,className:c,today:u}){const{t:d}=ge.useTranslation(),p=l??d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),m=o.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),f=Lr(u),{viewY:C,viewM:g,prevMonth:y,nextMonth:_,setViewYM:h}=Ll(e,u),v=o.useId(),x=o.useCallback((E,F)=>{const R=window.innerHeight,T=window.innerWidth,M=typeof document<"u"?document.getElementById(v):null,G=M?.offsetHeight||300,Y=Math.max(E.width,M?.offsetWidth||0,260),Q=R-E.bottom<G&&E.top>G,de=8,Te=(ke,oe)=>Math.min(Math.max(de,ke),Math.max(de,oe));return{position:"fixed",left:Te(E.left,T-Y-de),width:E.width,minWidth:260,...Q?{bottom:Te(R-E.top+6,R-G-de)}:{top:Te(E.bottom+6,R-G-de)},zIndex:va(F)}},[v]),{open:b,setOpen:k,toggle:w,style:N,triggerRef:B,menuRef:A}=xa({computeStyle:x,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!b)return;const E=A.current;return(E?.querySelector(".date-picker__day--selected:not(:disabled)")??E?.querySelector(".date-picker__day--today:not(:disabled)")??E?.querySelector(".date-picker__day:not(:disabled)")??E?.querySelector(fn)??E)?.focus?.(),()=>{const F=document.activeElement;(!F||F===document.body)&&B.current?.focus?.()}},[b,A,B]);const[D,$]=o.useState(1),O=o.useRef(null),P=o.useRef(null);o.useEffect(()=>{if(!b)return;const E=e&&e.slice(0,7)===`${C}-${String(g+1).padStart(2,"0")}`?+e.slice(8):f.slice(0,7)===`${C}-${String(g+1).padStart(2,"0")}`?+f.slice(8):1;$(E)},[b]),o.useEffect(()=>{if(P.current==null)return;const E=P.current;P.current=null,O.current?.querySelector(`[data-day="${E}"]`)?.focus()}),o.useEffect(()=>{$(E=>Math.min(E,Ka(C,g)))},[C,g]);const K=o.useCallback(E=>{let F=Ya(E.getFullYear(),E.getMonth(),E.getDate());r&&F<r&&(F=r),s&&F>s&&(F=s);const[R,T,M]=F.split("-").map(Number);(R!==C||T-1!==g)&&h(R,T-1),$(M),P.current=M},[r,s,C,g,h]),S=o.useCallback(E=>{const F=new Date(C,g,D),R=M=>{F.setDate(F.getDate()+M),K(F)},T=M=>{const G=F.getFullYear()*12+F.getMonth()+M,Y=Math.floor(G/12),Q=G-Y*12;K(new Date(Y,Q,Math.min(F.getDate(),Ka(Y,Q))))};switch(E.key){case"ArrowLeft":R(-1);break;case"ArrowRight":R(1);break;case"ArrowUp":R(-7);break;case"ArrowDown":R(7);break;case"Home":R(-F.getDay());break;case"End":R(6-F.getDay());break;case"PageUp":E.shiftKey?T(-12):T(-1);break;case"PageDown":E.shiftKey?T(12):T(1);break;default:return}E.preventDefault()},[C,g,D,K]),L=o.useCallback(E=>{i||(t(Ya(C,g,E)),k(!1))},[C,g,t,k,i]);o.useEffect(()=>{i&&k(!1)},[i,k]);const H=E=>{const F=Ya(C,g,E);return!!(r&&F<r||s&&F>s)},ee=(()=>{const E=Ka(C,g);if(D>=1&&D<=E&&!H(D))return D;for(let F=1;F<=E;F++)if(!H(F))return F;return-1})(),U=[];for(let E=0;E<D4(C,g);E++)U.push(null);for(let E=1;E<=Ka(C,g);E++)U.push(E);const q=a===64?20:a===40?16:18,W=E4(C,(E,F)=>d("calendar.yearMonth",{year:E,month:F,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,s),J=`${C}-${String(g+1).padStart(2,"0")}`,I=b?qt.createPortal(n.jsxs("div",{ref:A,id:v,className:"date-picker__dropdown",style:N,"data-tooltip-ignore":!0,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[n.jsxs("div",{className:"date-picker__nav",children:[n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:y,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(ts,{size:16,strokeWidth:2})}),n.jsx(nn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:W,value:J,onChange:E=>{const[F,R]=E.split("-");h(+F,+R-1)},block:!0,size:40}),n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:_,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(ns,{size:16,strokeWidth:2})})]}),n.jsxs("div",{className:"date-picker__grid",ref:O,onKeyDown:S,children:[m.map(E=>n.jsx("div",{className:"date-picker__dow caption-1",children:E},E)),U.map((E,F)=>{if(E===null)return n.jsx("div",{},`e${F}`);const R=Ya(C,g,E),T=R===e,M=R===f,G=H(E),Y=F%7;return n.jsx("button",{type:"button",disabled:G,"data-day":E,tabIndex:E===ee?0:-1,"aria-current":M?"date":void 0,onClick:()=>!G&&L(E),className:De("date-picker__day caption-1",T&&"date-picker__day--selected",M&&!T&&"date-picker__day--today",G&&"date-picker__day--disabled",Y===0&&"date-picker__day--sun",Y===6&&"date-picker__day--sat"),children:E},E)})]})]}),document.body):null;return n.jsxs("div",{className:De("date-picker",`date-picker--s${a}`,b&&"date-picker--open",c),children:[n.jsxs("button",{ref:B,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&w(),disabled:i,"aria-haspopup":"true","aria-expanded":b,children:[n.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?S4(e):p}),n.jsx(ds,{size:q,className:"date-picker__icon",strokeWidth:1.5})]}),I]})}function ao({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 Za({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 ro({title:e,titleClassName:t="h3",icon:a,disc:r,headRight:s,headSegment:i,headMenuItems:l,collapseBelow:c=420,subRow:u,className:d,inGrid:p=!1,children:m}){const{t:f}=ge.useTranslation(),C=o.useRef(null),[g,y]=o.useState(!1);o.useEffect(()=>{const B=C.current;if(!B||!i)return;const A=$=>y($>0&&$<c);if(A(B.clientWidth),typeof ResizeObserver>"u")return;const D=new ResizeObserver($=>A($[0].contentRect.width));return D.observe(B),()=>D.disconnect()},[i,c]);const[_,h]=o.useState(null),v=o.useCallback(()=>h(null),[]),x=o.useCallback(B=>{const A=B.currentTarget.getBoundingClientRect();h(D=>D?null:{left:A.left,right:A.right,top:A.top,bottom:A.bottom,width:A.width,height:A.height,x:A.x,y:A.y})},[]),b=!!i&&g;o.useEffect(()=>{b||h(null)},[b]);const k=i?[...i.options.map(B=>({label:B.label,icon:B.icon,selected:B.key===i.value,disabled:B.disabled,onClick:()=>i.onChange(B.key),closeOnSelect:!0})),...(l??[]).map((B,A)=>A===0?{...B,separatorBefore:!0}:B)]:[],w=typeof s=="function"?s({collapsed:b}):s,N=w||i?n.jsxs("div",{className:"manager-section__head-right",children:[w,i&&(b?n.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"ellipsis",ariaLabel:i.ariaLabel??f("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:i.ariaLabel??f("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!_,onClick:x}):n.jsx(Sn,{size:32,ariaLabel:i.ariaLabel,options:i.options.map(B=>({key:B.key,label:B.label,disabled:B.disabled})),value:i.value,onChange:i.onChange}))]}):null;return n.jsxs("section",{ref:C,className:["manager-section",p&&"manager-section--grid",d].filter(Boolean).join(" "),children:[n.jsxs("div",{className:"manager-section__head",children:[n.jsxs("div",{className:"manager-section__title-row",children:[a&&n.jsx(qe,{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})]}),N,r&&n.jsx("div",{className:"manager-section__disc body-3",children:r})]}),u&&n.jsx("div",{className:"barchart-sub-row",children:u}),m,_&&n.jsx(Cn,{anchorRect:_,onClose:v,ariaLabel:i?.ariaLabel??f("tooltip.menu","\uBA54\uB274"),children:n.jsx(_a,{columns:[{items:k}],onClose:v,size:"small"})})]})}function on(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function j4(){const e=Kn();let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<on(t,a)){const l=new Date(t,a,0);t=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const s=Math.floor((r-on(t,a))/7),i=`${t}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${s}`}}function M4(e){const t=Kn(),a=`${t.getFullYear()}\uB144 ${t.getMonth()+1}\uC6D4`,r=(u,d)=>`${u}\uB144 ${d+1}\uC6D4`,s=new Map;s.set(a,[]);for(const u of e){if(isNaN(u.date.getTime()))continue;const d=r(u.date.getFullYear(),u.date.getMonth());s.has(d)||s.set(d,[]),s.get(d).push(u)}for(const[u,d]of[...s.entries()]){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),f=Number(p[2])-1,C=on(m,f);if(!(u===a&&t.getDate()<C)&&!d.some(_=>_.date.getDate()<C))continue;const g=new Date(m,f,0),y=r(g.getFullYear(),g.getMonth());s.has(y)||s.set(y,[])}const i=new Map;for(const[u,d]of s){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),f=Number(p[2])-1,C=new Date(m,f+1,0).getDate(),g=d.reduce((b,k)=>Math.max(b,k.parts?.length??0,k.partsB?.length??0),0),y=d.some(b=>b.partsB),_=new Array(C+1).fill(0),h=new Array(C+1).fill(0),v=Array.from({length:C+1},()=>new Array(g).fill(0)),x=Array.from({length:C+1},()=>new Array(g).fill(0));for(const b of d){const k=b.date.getDate();if(_[k]+=b.a,h[k]+=b.b,b.parts)for(let w=0;w<g;w++)v[k][w]+=b.parts[w]??0;if(b.partsB)for(let w=0;w<g;w++)x[k][w]+=b.partsB[w]??0}i.set(u,{year:m,month:f,daysInMonth:C,partsLen:g,hasPartsB:y,dayA:_,dayB:h,dayParts:v,dayPartsB:x})}const l=(u,d,p)=>new Date(u,d,p).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),c={};for(const[u,d]of i){const{year:p,month:m,daysInMonth:f,dayA:C,dayB:g,dayParts:y,dayPartsB:_}=d,h=p===t.getFullYear()&&m===t.getMonth(),v=t.getDate(),x=i.get(r(m===11?p+1:p,(m+1)%12)),b=d.partsLen,k=[];for(let N=1;N<=f;N++){const B=h&&N>v;k.push({label:String(N),...B&&C[N]===0&&g[N]===0?{future:!0}:{},a:B&&C[N]===0&&g[N]===0?-1:C[N],b:g[N],...b?{parts:y[N]}:{},...b&&d.hasPartsB?{partsB:_[N]}:{}})}const w=[];for(let N=on(p,m);N<=f;N+=7){const B=Math.max(0,N+6-f),A=B&&x?Math.max(b,x.partsLen):b,D=d.hasPartsB||!!(B&&x?.hasPartsB);let $=0,O=0;const P=new Array(A).fill(0),K=new Array(A).fill(0);for(let L=N;L<=Math.min(N+6,f);L++){$+=C[L],O+=g[L];for(let H=0;H<b;H++)P[H]+=y[L][H],K[H]+=_[L][H]}if(B&&x)for(let L=1;L<=B&&!l(x.year,x.month,L);L++){$+=x.dayA[L],O+=x.dayB[L];for(let H=0;H<x.partsLen;H++)P[H]+=x.dayParts[L][H],K[H]+=x.dayPartsB[L][H]}const S=B?`${(m+1)%12+1}/${B}`:`${N+6}`;w.push({label:`${w.length+1}\uC8FC`,sublabel:`[${N}\uC77C~${S}\uC77C]`,a:$,b:O,...A?{parts:P}:{},...A&&D?{partsB:K}:{}})}c[u]={weekly:w,daily:k}}return c}function $l(){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()}$l();function L4(){return $l()}const Rl=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function Pl(e){const{t,i18n:a}=ge.useTranslation(),[r,s]=o.useState("week"),i=o.useMemo(()=>L4().filter(A=>A.value in e),[e]),l=o.useMemo(()=>{const A=[];for(const D of i){const $=new Date(D.year,D.month,0).getDate(),O=on(D.year,D.month-1),P=Math.ceil(($-O+1)/7);for(let K=P-1;K>=0;K--)A.push({value:`${D.value}#${K}`,monthKey:D.value,year:D.year,month:D.month,week:K})}return A},[i]),c=o.useCallback(A=>{const D=t("calendar.yearMonth",{year:A.year,month:A.month});return a.language?.startsWith("ko")?`${D} ${Rl[A.week]??`${A.week+1}`}\uC8FC`:`${D} Week ${A.week+1}`},[t,a.language]),u=o.useMemo(()=>i.map(A=>({value:A.value,label:t("calendar.yearMonth",{year:A.year,month:A.month})})),[t,i]),d=o.useMemo(()=>l.map(A=>({value:A.value,label:c(A)})),[l,c]),p=o.useMemo(()=>j4(),[e]),m=o.useMemo(()=>i.find(A=>A.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),f=o.useMemo(()=>l.find(A=>A.value===p.value)?.value??l[0]?.value??"",[l,p]),[C,g]=o.useState(""),[y,_]=o.useState("");o.useEffect(()=>{i.find(A=>A.value===C)||g(m)},[i,C,m]),o.useEffect(()=>{l.find(A=>A.value===y)||_(f)},[l,y,f]);const h=r==="month"?u:d,v=r==="month"?C:y,x=r==="month"?g:_,b=o.useMemo(()=>{const A=t("calendar.dow",{returnObjects:!0});return Array.isArray(A)?A:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),k=h.findIndex(A=>A.value===v),w=o.useCallback(()=>{const A=h.findIndex(D=>D.value===v);A<h.length-1&&x(h[A+1].value)},[h,v,x]),N=o.useCallback(()=>{const A=h.findIndex(D=>D.value===v);A>0&&x(h[A-1].value)},[h,v,x]),B=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:v,setRange:x,activeOptions:h,activeIdx:k,handlePrev:w,handleNext:N,periodOptions:B,monthRange:C,weekRange:y,weekRanges:l,DOW:b}}const lt=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function vn(e,t=!0){return e.future===!0||t&&e.a===-1}function $4({data:e,colorA:t,colorB:a,labelA:r,labelB:s,barWidth:i=10,barGap:l=1,height:c=140,maxOverride:u,tightMax:d,seriesColors:p,seriesLabels:m,rateLabels:f,grouped:C=!1,baseline:g}){const y=!a,_=!!(p&&p.length>0),h=g,v=o.useMemo(()=>_?Math.max(0,...e.filter(L=>!vn(L,h==null)).map(L=>C?Math.max(0,...(L.parts??[]).map(lt)):(L.parts??[]).reduce((H,ee)=>H+Math.max(0,lt(ee)),0))):Math.max(0,...e.filter(L=>!vn(L,h==null)).flatMap(L=>y?[lt(L.a)]:[lt(L.a),lt(L.b)])),[e,y,_,C]),x=o.useMemo(()=>{if(h==null)return 0;const L=e.filter(H=>!vn(H,h==null)).flatMap(H=>_?(H.parts??[]).map(lt):y?[lt(H.a)]:[lt(H.a),lt(H.b)]);return Math.max(0,...L.map(H=>Math.abs(H-h)))},[e,h,_,y]),b=o.useMemo(()=>{const L=h!=null?x:v;return u??(d?L>0?L:10:Math.ceil(L/10)*10||10)},[v,x,h,u,d]),k=c,w=_?C?Math.max(1,p.length):1:y?1:2,N={"--bar-width":`${o.useMemo(()=>{const L=Math.max(1,e.length);return Math.max(2,Math.min(i,Math.round(120/(L*w)+6)))},[e.length,w,i])}px`},B={"--bar-group-gap":`${Math.max(0,l)}px`},A=o.useMemo(()=>{const L=Math.round(b/2);return h!=null?[h+b,...L!==b?[h+L]:[],h,...L!==b?[h-L]:[],h-b]:L!==b?[b,L,0]:[b,0]},[b,h]),D=L=>h!=null?1-(L-(h-b))/(2*b):1-L/b,[$,O]=o.useState(null),P=o.useCallback(()=>O(null),[]),K=L=>h!=null&&L>h?`+${L}`:`${L}`,S=$!=null;return o.useEffect(()=>{if(!S)return;const L=()=>O(null),H=ee=>{const U=ee.target;U&&typeof U.closest=="function"&&U.closest(".manager-bar-chart-col")||O(null)};return window.addEventListener("scroll",L,!0),document.addEventListener("pointerdown",H,!0),()=>{window.removeEventListener("scroll",L,!0),document.removeEventListener("pointerdown",H,!0)}},[S]),n.jsxs("div",{className:"manager-bar-chart-wrap",style:B,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((L,H)=>n.jsx("div",{className:`manager-bar-chart-gridline${h!=null&&L===h?" manager-bar-chart-gridline--baseline":""}`,style:{top:D(L)*k},children:n.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:L})},H)),e.map((L,H)=>{const ee=vn(L,h==null),U=k/2,q=E=>h!=null?Math.min(U,Math.abs(lt(E)-h)/b*U):Math.min(k,Math.max(0,lt(E)/b*k)),W=ee?0:q(L.a),J=ee?0:q(L.b),I=(L.parts??[]).map(lt);return n.jsx("div",{className:`manager-bar-chart-col${C&&_?" manager-bar-chart-col--group":""}`,style:{cursor:ee?"default":"pointer"},onMouseEnter:ee?void 0:E=>{const F=E.currentTarget.getBoundingClientRect(),R=[L.label,L.sublabel].filter(Boolean).join(" ");let T;if(_&&C&&L.rawPartsB)T=(m??[]).map((M,G)=>{const Y=L.rawPartsB[G]??0;return{text:Y>0?`${M}: ${I[G]??0}% (${L.rawParts?.[G]??0}/${Y})`:`${M}: -`,color:(p??[])[G]}});else if(_&&C)T=(m??[]).map((M,G)=>({text:`${M}: ${K(I[G]??0)}`,color:(p??[])[G]}));else if(_){const M=(m??[]).map((Y,Q)=>({text:`${Y}: ${I[Q]??0}`,color:(p??[])[Q]})),G=M.filter((Y,Q)=>(I[Q]??0)>0);T=G.length?G:M}else f&&!y?T=[{text:`${r} ${lt(L.a)}%`,color:t},{text:`${s} ${lt(L.b)}%`,color:a}]:f&&L.rawB!==void 0?T=[{text:`${f.total} ${L.rawB}`},{text:`${f.done} ${L.rawA??0}`,color:t}]:y?T=[{text:`${r}: ${lt(L.a)}`,color:t}]:T=[{text:`${r}: ${lt(L.a)}`,color:t},{text:`${s}: ${lt(L.b)}`,color:a}];O({rect:{left:F.left,top:F.top,right:F.right,bottom:F.bottom,width:F.width,height:F.height},title:R,items:T})},onMouseLeave:P,children:!ee&&(_&&C?(p??[]).map((E,F)=>{const R=I[F]??0;if(h==null)return n.jsx("div",{className:"manager-bar-chart-bar",style:{...N,height:q(R),background:E}},F);const T=lt(R)<h;return n.jsxs("div",{className:"manager-bar-chart-slot",style:N,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!T&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:q(R),background:E}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:T&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:q(R),background:E}})})]},F)}):_?n.jsx("div",{className:"manager-bar-chart-stack",style:N,children:(()=>{const E=I.reduce((R,T,M)=>T>0?M:R,-1);let F=k;return I.map((R,T)=>{if(R<=0)return null;const M=Math.min(F,R/b*k);return F-=M,n.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:M,background:(p??[])[T],borderRadius:T===E?"6px 6px 0 0":void 0}},T)})})()}):h!=null?n.jsx(n.Fragment,{children:[{v:lt(L.a),c:t},...y?[]:[{v:lt(L.b),c:a}]].map(({v:E,c:F},R)=>n.jsxs("div",{className:"manager-bar-chart-slot",style:N,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:E>=h&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:q(E),background:F}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:E<h&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:q(E),background:F}})})]},R))}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"manager-bar-chart-bar",style:{...N,height:W,background:t}}),!y&&n.jsx("div",{className:"manager-bar-chart-bar",style:{...N,height:J,background:a}})]}))},H)})]}),n.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((L,H)=>{const ee=vn(L,h==null);return n.jsxs("span",{className:`manager-bar-chart-x-axis__label${ee?" manager-bar-chart-x-axis__label--future":""}`,children:[n.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[L.isToday&&n.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),L.label]}),L.sublabel&&n.jsx("span",{className:"caption-1",children:L.sublabel})]},H)})})]})})}),$&&n.jsx(Fn,{anchorRect:$.rect,title:$.title,items:$.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Il({control:e}){const{t}=ge.useTranslation(),{activeOptions:a,activeIdx:r,range:s,setRange:i,handlePrev:l,handleNext:c,periodOptions:u,period:d,setPeriod:p}=e,m=d==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),f=d==="week"?t("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):t("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return n.jsxs("div",{className:"manager-section-controls",children:[n.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:m,showTooltipInfo:m,disabled:r===a.length-1,onClick:l}),n.jsx(nn,{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:f,showTooltipInfo:f,disabled:r<=0,onClick:c}),n.jsx(Sn,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:u,value:d,onChange:C=>p(C),size:40})]})}function oo(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 u=(e[`${c.getFullYear()}\uB144 ${c.getMonth()+1}\uC6D4`]?.daily??[])[c.getDate()-1],d=u!=null&&vn(u,r)||c>s;return{dt:c,entry:u,isFuture:d}})}function R4(e,t,a,r,s=!0){const{period:i,monthRange:l,weekRange:c,weekRanges:u,DOW:d}=t,p=r?.startsWith("ko"),m=Kn(),f=m.getFullYear(),C=m.getMonth()+1,g=m.getDate();if(i==="month"){const h=e[l]??{weekly:[],daily:[]},v=l.match(/^(\d+)년 (\d+)월$/),x=v?Number(v[1]):null,b=v?Number(v[2]):null,k=x&&b?on(x,b-1):1;return h.weekly.map((w,N)=>{const B=N+1;let A=w.label,D=!1,$=!1;if(x&&b){const O=k+N*7,P=new Date(x,b-1,O+6),K=P.getMonth()+1,S=P.getDate(),L=K===b?`${S}`:`${K}/${S}`;A=a("manager.chart.weekRange",{start:O,end:L});const H=new Date(f,C-1,g).getTime();D=H>=new Date(x,b-1,O).getTime()&&H<=P.getTime(),$=x>f||x===f&&(b>C||b===C&&O>g)}return{...w,label:A,sublabel:p?`${Rl[B-1]??B}\uC8FC`:`Week ${B}`,isToday:D,future:w.future===!0||$||void 0,a:$?-1:w.a,b:$?0:w.b}})}const y=u.find(h=>h.value===c);if(!y)return[];const _=new Date(y.year,y.month-1,on(y.year,y.month-1)+y.week*7);return oo(e,_,m,s).map(({dt:h,entry:v,isFuture:x})=>{const b=h.getMonth()+1,k=h.getDate(),w=h.getFullYear();return{label:b===y.month&&w===y.year?`${k}`:`${b}/${k}`,sublabel:d[h.getDay()]??"",future:x||void 0,a:x?-1:v&&v.a>0?v.a:0,b:x?0:v&&v.b>0?v.b:0,isToday:w===f&&b===C&&k===g,...v?.parts?{parts:x?v.parts.map(()=>0):v.parts}:{},...v?.partsB?{partsB:x?v.partsB.map(()=>0):v.partsB}:{}}})}const P4={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function I4({size:e="medium",barWidth:t,titleKey:a,data:r,colorA:s,colorB:i,labelAKey:l,labelBKey:c,showTotal:u=!1,totalUnitKey:d,totalLabelKey:p,control:m,hideControls:f=!1,rate:C=!1,rateAgg:g="dayMean",tightMax:y=!1,avgMode:_=!1,totalFormat:h,series:v,seriesMode:x="stack",loading:b=!1,onDetail:k,headExtra:w,headSegment:N,icon:B,disc:A,detailSize:D=32,barGap:$,baseline:O,className:P,inGrid:K=!1}){const{t:S,i18n:L}=ge.useTranslation(),H=P4[e],ee=Pl(r),U=m??ee,q=o.useMemo(()=>R4(r,U,S,L.language,O==null),[r,U,S,L.language,O]),W=x==="group"&&!!v&&v.length>0;$!=null&&!W&&kn("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 J=o.useMemo(()=>{if(!C)return q;const T=U.period==="month"?U.monthRange.match(/^(\d+)년 (\d+)월$/):null,M=Kn(),G=v?.length??0,Y=Q=>{const de=[],Te=[],ke=[];for(let oe=0;oe<G;oe++){let z=0,re=0,ce=0;for(const fe of Q){const ye=lt(fe.a[oe]),Ne=lt(fe.b[oe]);Ne<=0||(z+=ye,re+=Ne,ce+=ye/Ne*100)}de.push(g==="weighted"?re>0?Math.round(z/re*100):0:Q.length?Math.round(ce/Q.length):0),Te.push(z),ke.push(re)}return{pct:de,ra:Te,rb:ke}};return q.map((Q,de)=>{let Te=Q.a===-1?-1:Q.b>0?Math.round(Q.a/Q.b*100):0;if(T&&!vn(Q)){const oe=Number(T[1]),z=Number(T[2])-1,re=oo(r,new Date(oe,z,on(oe,z)+de*7),M).filter(ce=>!ce.isFuture);if(g==="weighted"){let ce=0,fe=0;for(const{entry:ye}of re)ye&&ye.b>0&&(ce+=ye.a,fe+=ye.b);Te=fe>0?Math.round(ce/fe*100):0}else Te=re.length?Math.round(re.reduce((ce,{entry:fe})=>ce+(fe&&fe.b>0?fe.a/fe.b*100:0),0)/re.length):0}let ke=null;if(W&&!vn(Q)){let oe;if(T){const re=Number(T[1]),ce=Number(T[2])-1;oe=oo(r,new Date(re,ce,on(re,ce)+de*7),M).filter(fe=>!fe.isFuture).map(({entry:fe})=>({a:fe?.parts??[],b:fe?.partsB??[]}))}else oe=[{a:Q.parts??[],b:Q.partsB??[]}];const z=Y(oe);ke={parts:z.pct,rawParts:z.ra,rawPartsB:z.rb}}return{...Q,a:Te,b:Q.a===-1?0:c&&Q.parts&&Q.parts[1]>0?Math.round(Q.parts[0]/Q.parts[1]*100):0,rawA:Q.a===-1?-1:Q.a,rawB:Q.b,...ke??{}}})},[q,C,g,c,U.period,U.monthRange,r,W,v?.length]),I=o.useMemo(()=>{if(C||_){const M=(U.period==="week"?q:r[U.monthRange]?.daily??[]).filter(Y=>Y.a!==-1);if(M.length===0)return 0;if(C&&g==="weighted"){let Y=0,Q=0;for(const de of M)de.b>0&&(Y+=de.a,Q+=de.b);return Q>0?Math.round(Y/Q*100):0}const G=C?M.reduce((Y,Q)=>Y+(Q.b>0?Q.a/Q.b*100:0),0):M.reduce((Y,Q)=>Y+(Q.a>0?Q.a:0),0);return Math.round(G/M.length)}const T=U.period==="month"?r[U.monthRange]?.daily??[]:J;return O!=null?T.reduce((M,G)=>M+(vn(G,!1)?0:lt(G.a)+(c?lt(G.b):0)),0):T.reduce((M,G)=>M+(G.a>0?G.a:0)+(c&&G.b>0?G.b:0),0)},[J,q,C,g,_,O,c,U.period,U.monthRange,r]),E=v&&v.length>0?v.map(T=>({color:T.color,label:T.label})):[{color:s,label:S(l)},...c?[{color:i,label:S(c)}]:[]],F=e==="small",R=[F?"manager-section--compact":e==="large"?"manager-section--full":void 0,P].filter(Boolean).join(" ")||void 0;return n.jsx(ro,{className:R,inGrid:K,icon:B,disc:A,headSegment:N,headMenuItems:k?[{label:S("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),icon:"list",onClick:k,closeOnSelect:!0}]:void 0,title:S(a),titleClassName:F?"h5 chart-section-title--small":void 0,headRight:F?w??void 0:({collapsed:T})=>n.jsxs(n.Fragment,{children:[!f&&n.jsx(Il,{control:U}),w,k&&!T&&n.jsx("span",{className:"manager-bar-chart-detail-btn",children:n.jsx(le,{htmlType:"button",size:D,type:"dot",icon:"list",ariaLabel:S("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),showTooltipInfo:S("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:k})})]}),subRow:n.jsxs(n.Fragment,{children:[u?C||_||p&&h?n.jsx(Za,{label:F?void 0:`${S(U.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${S(p??l)}`,children:h?(h(I).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((T,M)=>/\d/.test(T)?n.jsx("span",{className:"barchart-total__num h0",children:T},M):n.jsx("span",{className:"barchart-total__unit h5",children:T},M)):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"barchart-total__num h0",children:I}),d&&n.jsx("span",{className:"barchart-total__unit h5",children:S(d)})]})}):n.jsxs(Za,{children:[n.jsx("span",{className:"barchart-total__num h0",children:I}),n.jsx("span",{className:"barchart-total__unit h5",children:S(l)}),d&&n.jsx("span",{className:"barchart-total__unit h5",children:S(d)})]}):n.jsx("span",{}),n.jsx(ao,{items:E,className:"caption-1"})]}),children:b?n.jsx("div",{className:"manager-bar-chart-loading",children:n.jsx(Da,{size:32})}):n.jsx($4,{data:J,colorA:s,colorB:c?i:void 0,labelA:S(l),labelB:c?S(c):void 0,barWidth:t??H.barWidth,barGap:$,baseline:O,height:H.height,maxOverride:C?100:void 0,tightMax:y,seriesColors:v?.map(T=>T.color),seriesLabels:v?.map(T=>T.label),rateLabels:C?{total:S("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:S("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:W})})}const Fl=(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")}`},Ol=(e,t,a,r)=>({from:ai(e,t,a),to:new Date(ai(e,t,a+r).getTime()-1),fromYmd:Fl(e,t,a),toYmd:Fl(e,t,a+r-1)});function F4(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,u=new Date(Date.UTC(l,c+1,0)).getUTCDate();return Ol(l,c,1,u)}const a=e.weekRanges.find(s=>s.value===e.weekRange);if(!a){const s=new Date,i=ga();return{from:s,to:s,fromYmd:i,toYmd:i}}const r=on(a.year,a.month-1);return Ol(a.year,a.month-1,r+(a.week+t)*7,7)}const Hl={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Vl(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function zl({done:e,total:t,segments:a,color:r="var(--color-main)",size:s="medium",strokeWidth:i,label:l="%",hideCenter:c=!1,hideLabel:u=!1}){const d=typeof s=="number"?s:Hl[s].diameter,p=i??(typeof s=="number"?12:Hl[s].strokeWidth),m=d/2,f=(d-p)/2,C=2*Math.PI*f;if(a&&a.length>0){const h=a.reduce((v,x)=>{const b=v.length>0?v[v.length-1].acc:0,k=Number.isFinite(x.ratio)?x.ratio:0,w=Math.max(0,Math.min(k,1-b));return v.push({color:x.color,rotate:-90+b*360,dash:C*w,acc:b+w}),v},[]);return n.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:m,cy:m,r:f,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),h.map((v,x)=>v.dash>0&&n.jsx("circle",{cx:m,cy:m,r:f,fill:"none",stroke:v.color,strokeWidth:p,strokeDasharray:`${v.dash} ${C}`,strokeLinecap:"round",transform:`rotate(${v.rotate} ${m} ${m})`},x))]})})}const g=(t??0)>0?Math.min((e??0)/t,1):0,y=C*g,_=C-y;return n.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:m,cy:m,r:f,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),g>0&&n.jsx("circle",{cx:m,cy:m,r:f,fill:"none",stroke:r,strokeWidth:p,strokeDasharray:`${y} ${_}`,strokeLinecap:g<.02||g>.98?"butt":"round",transform:`rotate(-90 ${m} ${m})`})]}),!c&&n.jsxs("div",{className:`ring-chart__center${u?"":` ${d<=96?"ring-chart__center--small":s==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[n.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:Vl(g)}),!u&&n.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||s==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function O4({titleKey:e,headRight:t,icon:a,showTotal:r,totalLabelKey:s,legend:i,loading:l,className:c,inGrid:u=!1,...d}){const{t:p}=ge.useTranslation();if(!e)return n.jsx(zl,{...d});const m=(d.total??0)>0?Vl(Math.min((d.done??0)/d.total,1)):0,f=d.size==="small",C=d.size==="large",g=[c,f?"manager-section--compact":C?"manager-section--full":""].filter(Boolean).join(" ")||void 0,y=a&&n.jsx("span",{className:"chart-section-icon",children:n.jsx(qe,{icon:a,className:"chart-section-icon-inner"})});return n.jsx(ro,{className:g,inGrid:u,title:p(e),titleClassName:f?"h5 chart-section-title--small":void 0,headRight:y||(f?void 0:t),subRow:(r||i)&&n.jsxs(n.Fragment,{children:[r?n.jsxs(Za,{label:!f&&s?p(s):void 0,children:[n.jsx("span",{className:"barchart-total__num h0",children:m}),n.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):n.jsx("span",{}),i&&n.jsx(ao,{items:i})]}),children:l?n.jsx("div",{className:"manager-bar-chart-loading",children:n.jsx(Da,{size:32})}):n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx(zl,{...d,hideCenter:d.hideCenter??f})})})}function H4({label:e,value:t,change:a,changeType:r,icon:s,tooltip:i,onClick:l}){const c=o.useRef(null),{anchorRect:u,openAt:d,close:p}=qa(),m=o.useCallback(()=>{i&&c.current&&d(c.current)},[i,d]),f=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),C=a===void 0?void 0:a>0?`+${a}`:`${a}`,g=o.useCallback(y=>{l&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),l())},[l]);return n.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?g:void 0,onPointerEnter:m,onPointerLeave:p,onFocus:m,onBlur:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,t,C].filter(y=>y!==void 0&&y!=="").join(" "):void 0,children:[i&&u&&n.jsx(Dn,{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(qe,{icon:s,className:"manager-stat-card__icon-inner"})})]}),n.jsx("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}),C&&n.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${f??"neutral"} caption-1`,children:C})]})})]})}function Wl({value:e,onChange:t,min:a=0,max:r=100,step:s=1,orientation:i="horizontal",size:l=24,disabled:c=!1,ariaLabel:u,length:d,className:p,label:m,formatValue:f,labelPos:C,labelAlign:g="right",showMinMax:y=!1,minLabel:_,maxLabel:h,showBgTick:v=!1,showFillTick:x=!1,tickStep:b,tickShape:k="dot"}){t&&!u&&kn("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 w=Math.min(r,Math.max(a,e)),N=r>a?(w-a)/(r-a):0,B=i==="vertical",A=!t,D=E=>t?.(Number(E.target.value)),$=typeof d=="number"?`${d}px`:d,O={"--slider-ratio":String(N),"--slider-thumb":`${l}px`,...$?B?{height:$}:{width:$}:{}},P=b??s,K=(v||x)&&P>0&&r>a?Math.floor((r-a)/P+1e-6):0;if(K>0&&K<=100){const E=k!=="dash",F=Y=>E?`radial-gradient(circle, ${Y} 0.5px, transparent 1px)`:B?`linear-gradient(to bottom, transparent calc(50% - 2px), ${Y} calc(50% - 2px), ${Y} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${Y} calc(50% - 2px), ${Y} calc(50% + 2px), transparent calc(50% + 2px))`,R=E?"2px":"4px",T=[],M=[],G=[];for(let Y=0;Y<=K;Y++){const Q=Y*P/(r-a);if(Q>1+1e-6)break;const de=`${((B?1-Q:Q)*100).toFixed(4)}%`,Te=Q<=N+1e-6;if(Te?!x:!v)continue;const ke=Te?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";T.push(F(ke)),M.push(B?`${R} var(--slider-thumb)`:`var(--slider-thumb) ${R}`),G.push(B?`center ${de}`:`${de} center`)}T.push(B?"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))"),M.push("100% 100%"),G.push("0 0"),O.backgroundImage=T.join(", "),O.backgroundSize=M.join(", "),O.backgroundPosition=G.join(", "),O.backgroundRepeat="no-repeat"}const S=f?f(w):m==="percent"?`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`:m==="count"?`${w} / ${r}`:w===a&&_?_:w===r&&h?h:void 0,L=n.jsx("input",{type:"range",className:De("slider",`slider--${i}`,A&&"slider--static",!m&&!y&&p),min:a,max:r,step:s,value:w,disabled:c,readOnly:A,tabIndex:A?-1:void 0,"aria-label":u,"aria-valuetext":S,"aria-orientation":i,onChange:D,style:O});if(!m&&!y)return L;const H=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:_??a}),ee=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:h??r}),U=y?n.jsxs("div",{className:De("slider-track-group",`slider-track-group--${i}`,!m&&p),children:[B?ee:H,L,B?H:ee]}):L;if(!m)return U;const q=C??(B?"bottom":"right"),W=`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`,J=f?f(w):m==="percent"?W:m==="count"?`${w} / ${r}`:String(w),I=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-${q}`,`slider-wrap--align-${g}`,p),children:[U,I]})}const V4=.86,z4=250,so=(e,t,a,r)=>Math.round(Math.min(r,Math.max(a,e-t))),io=(e,t,a,r)=>{const s=so(e,t,a,r);return`${s<0?"-":"+"}${Math.abs(s)} dB`};function lo({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:s,labelPos:i,labelAlign:l="right",floorDb:c=-60,refDb:u=-35,displayMin:d=-5,displayMax:p=25,className:m,ariaLabel:f}){const C=o.useRef(null),g=o.useRef(null),y=o.useRef(null),_=o.useRef(null),[h,v]=o.useState(null);o.useEffect(()=>{const w=L=>{const H=io(L,u,d,p);y.current&&(y.current.textContent=H);const ee=C.current;ee&&(ee.setAttribute("aria-valuenow",String(so(L,u,d,p))),ee.setAttribute("aria-valuetext",H))},N=e??Z0(t)??(h&&h.el===t?h.node:null),B=g.current;if(!N||!B){B?.style.setProperty("--meter-level","0"),w(c);let L=!1;return!e&&t&&Ra(t).then(H=>{!L&&H&&v({el:t,node:H})}),()=>{L=!0}}Sr();const A=new Float32Array(N.fftSize);let D=0,$=0,O=0,P=0,K=null;const S=L=>{const H=X0(N,A);D=H>D?H:D*V4;const ee=D>1e-5?20*Math.log10(D):-1/0,U=Math.max(c,ee),q=U-u,W=Math.min(1,Math.max(0,(q-d)/(p-d)));if(B.style.setProperty("--meter-level",W.toFixed(3)),$+=U,O+=1,L-P>=z4){const J=$/O;K=K==null?J:K*.6+J*.4,w(K),$=0,O=0,P=L}_.current=requestAnimationFrame(S)};return _.current=requestAnimationFrame(S),()=>{_.current!=null&&cancelAnimationFrame(_.current),_.current=null}},[e,t,h,c,u,d,p]);const x=typeof r=="number"?`${r}px`:r,b=n.jsx("div",{className:"audio-meter__track",style:x?a==="vertical"?{height:x}:{width:x}:{},children:n.jsx("div",{ref:g,className:"audio-meter__fill"})}),k=i??(a==="vertical"?"bottom":"right");return n.jsxs("div",{ref:C,className:De("audio-meter",`audio-meter--${a}`,s&&`audio-meter--label-${k}`,s&&`audio-meter--align-${l}`,m),role:"meter","aria-label":f,"aria-valuemin":d,"aria-valuemax":p,"aria-valuenow":so(c,u,d,p),"aria-valuetext":io(c,u,d,p),children:[b,s&&n.jsx("span",{ref:y,className:"audio-meter__value caption-2",children:io(c,u,d,p)})]})}const ql=260;function Ul({message:e,position:t,duration:a,onClose:r}){const[s,i]=o.useState(!1),[l,c]=o.useState(!1),u=o.useRef(l),d=o.useRef(s);o.useEffect(()=>{u.current=l},[l]),o.useEffect(()=>{d.current=s},[s]);const p=o.useRef(null),m=o.useRef(""),f=o.useRef(r);o.useEffect(()=>{f.current=r});const C=a,g=o.useRef(null),y=o.useRef(0),_=o.useRef(0),h=o.useRef(!1),v=o.useRef(null),x=o.useRef(null),b=o.useRef(null),k=o.useRef(null),w=o.useRef(()=>{});w.current=A=>{A<0||(y.current=Date.now(),_.current=A,g.current=setTimeout(()=>{g.current=null,i(!1),v.current=setTimeout(()=>{c(!1);try{f.current()}catch{}},ql)},A))};const N=o.useCallback(()=>{h.current||!g.current||(h.current=!0,clearTimeout(g.current),g.current=null,_.current=Math.max(0,_.current-(Date.now()-y.current)))},[]),B=o.useCallback(()=>{h.current&&(h.current=!1,w.current(_.current))},[]);return o.useEffect(()=>{if(e!==m.current&&(g.current&&(clearTimeout(g.current),g.current=null),v.current&&(clearTimeout(v.current),v.current=null)),e){if(d.current)return C>0&&!g.current&&(h.current?_.current=C:w.current(C)),m.current=e,()=>{g.current&&(clearTimeout(g.current),g.current=null),v.current&&(clearTimeout(v.current),v.current=null)};const A=()=>{const D=p.current;if(D)try{D.classList.remove("is-visible"),D.style.transition="none",t==="top"?D.style.transform="translateX(-50%) translateY(-16px)":D.style.transform="translateX(-50%) translateY(16px)",D.style.opacity="0",D.offsetWidth,D.style.transition="",D.classList.add("is-visible"),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{k.current=null;try{D.style.opacity="",D.style.transform="",D.style.transition=""}catch{}},60)}catch{}};u.current?(A(),i(!0)):(c(!0),x.current=requestAnimationFrame(()=>{b.current=requestAnimationFrame(()=>{A(),i(!0)})})),C>0&&(h.current=!1,w.current(C))}else i(!1),v.current=setTimeout(()=>c(!1),ql);return m.current=e,()=>{g.current&&clearTimeout(g.current),v.current&&clearTimeout(v.current),x.current&&cancelAnimationFrame(x.current),b.current&&cancelAnimationFrame(b.current),k.current&&clearTimeout(k.current),g.current=null,v.current=null,x.current=null,b.current=null,k.current=null}},[e,C,t]),{mounted:l,showing:s,popupRef:p,pause:N,resume:B}}function ta({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:s=2e3}){const{mounted:i,showing:l,popupRef:c,pause:u,resume:d}=Ul({message:e,position:t,duration:s,onClose:r}),p=o.useRef(null),[m,f]=o.useState(!1);if(o.useEffect(()=>{l?f(!0):i||f(!1)},[l,i]),!i)return null;const C=a==="notice"||a==="warning"?a:"normal",g=n.jsx("div",{ref:c,className:`toast toast--${t} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:y=>{p.current=y.pointerType},onMouseEnter:()=>{p.current!=="touch"&&u()},onMouseLeave:d,onFocusCapture:u,onBlurCapture:d,children:n.jsx("div",{className:`toast__inner toast__inner--${C} body-2`,"aria-hidden":m||l?void 0:!0,children:e})});return typeof document<"u"?qt.createPortal(g,document.body):g}const W4=24;function q4({value:e,max:t=100,size:a=8,color:r,trackColor:s,label:i,formatValue:l,labelPos:c,labelAlign:u="right",ariaLabel:d,className:p}){const m=Number.isFinite(t)&&t>0?t:1,f=Math.max(0,Math.min(Number.isFinite(e)?e:0,m)),C=f/m*100,g=Number.isFinite(t)&&t>0?t:0,y=c??(a>=W4?"inside":"bottom"),_=y==="center"?"inside":y,h=_==="inside"&&(u==="left"?C>=15:u==="center"?C>=50:C>=85),v={};return r&&(v["--progress-bar-fill"]=r),s&&(v["--progress-bar-track"]=s),n.jsxs("div",{className:De("progress-bar",`progress-bar--${a}`,`progress-bar--label-${_}`,i&&`progress-bar--align-${u}`,i&&h&&"progress-bar--label-on-fill",p),style:v,children:[n.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":g,"aria-valuetext":i?l?l(f):i==="percent"?void 0:i==="raw"?String(f):`${f} / ${g}`:void 0,"aria-label":d,children:n.jsx("div",{className:"progress-bar__fill",style:{width:`${C}%`}})}),i&&n.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(f):i==="percent"?`${Math.round(C)}%`:i==="raw"?String(f):`${f} / ${g}`})]})}const Gl={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},U4="rgba(255, 255, 255, 0.16)";function Kl({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:s,variant:i="numbered",announce:l=!1,ariaLabel:c}){const{t:u}=ge.useTranslation(),d=tn("(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??u("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),f={};if(a&&(f["--pi-inactive-bg"]=a),r&&(f["--pi-inactive-color"]=r),s&&(a||(f["--pi-inactive-bg"]=U4),r||(f["--pi-inactive-color"]="var(--color-white)")),i==="dot")return n.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:f,role:l?"status":"img","aria-label":l?void 0:m,children:[l&&n.jsx("span",{style:Gl,children:m}),Array.from({length:e}).map((g,y)=>n.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${y<p?" done":y===p?" active":""}`},y))]});const C=l?n.jsx("span",{role:"status",style:Gl,children:m}):null;return d?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:f,role:"list","aria-label":m,children:n.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[p+1," / ",e]})}),C]}):n.jsxs(n.Fragment,{children:[C,n.jsx("div",{className:"progress-indicator",style:f,role:"list","aria-label":m,children:Array.from({length:e}).map((g,y)=>n.jsx("span",{role:"listitem","aria-current":y===p?"step":void 0,className:`progress-indicator-dot ${y<p?" done":y===p?" active":""} body-3`,children:y+1},y))})]})}function G4(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 K4({children:e,className:t,style:a}){return n.jsx("div",{className:t?`table-cell ${t}`:"table-cell",style:a,children:e})}function co({variant:e="default",children:t,className:a,draggable:r,onClick:s,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:u,expandedContent:d}){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(Da,{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:u,role:s?"button":void 0,tabIndex:s?0:void 0,children:t}),d&&n.jsx("div",{className:"table-row-expand",children:d})]})}function Y4({dir:e}){return n.jsx(e==="asc"?ms:ps,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Z4({children:e,onClick:t,className:a,sortDir:r,ariaSort:s,onResizeStart:i}){const l=n.jsxs(n.Fragment,{children:[e,r&&n.jsx(Y4,{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 uo({fields:e=[],headerGroups:t,items:a=[],renderRow:r,onRowClick:s,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:c,onRowDragStart:u,onRowDragEnd:d,draggingId:p,gridTemplateColumns:m,mobileGridTemplateColumns:f,resizable:C=!1,resizeMode:g="grow",resizeStorageKey:y,size:_="small",title:h,icon:v,count:x,collapsed:b=!1,onToggleCollapse:k,headerActions:w,empty:N,loading:B,dragOver:A=!1,onDragOver:D,onDragLeave:$,onDrop:O,renderExpandedRow:P,expandedId:K}){const{t:S}=ge.useTranslation(),L=tn("(max-width: 767px)"),H=f&&L?f:null,ee=C&&!H,U=48,q=y?`table-cols:${y}`:null,W=o.useRef(null),J=o.useRef(()=>!1),I=o.useRef([]),E=o.useRef(null),F=se=>{if(!se||typeof window>"u")return null;try{const te=JSON.parse(window.localStorage.getItem(se)??"null");return Array.isArray(te)&&te.length>0&&te.every(me=>typeof me=="number"&&Number.isFinite(me)&&me>0)?te:null}catch{return null}},[R,T]=o.useState(()=>F(q)),[M,G]=o.useState(q);M!==q&&(G(q),T(F(q)));const Y=o.useRef(R);o.useEffect(()=>{Y.current=R},[R]);const Q=o.useCallback(se=>{const te=E.current;if(!te)return;const me=Y.current;if(me){const ne=[...me];if(te.next!=null&&te.startWNext!=null){const Ce=se.clientX-te.startX,ve=Math.max(U-te.startW,Math.min(te.startWNext-U,Ce));ne[te.index]=te.startW+ve,ne[te.next]=te.startWNext-ve}else ne[te.index]=Math.max(U,te.startW+(se.clientX-te.startX));Y.current=ne,T(ne)}},[]),de=o.useCallback(()=>{if(E.current=null,window.removeEventListener("pointermove",Q),window.removeEventListener("pointerup",de),window.removeEventListener("pointercancel",de),document.body.style.cursor="",document.body.style.userSelect="",q&&Y.current)try{window.localStorage.setItem(q,JSON.stringify(Y.current))}catch{}},[Q,q]),Te=o.useCallback((se,te)=>{te.preventDefault(),te.stopPropagation();const me=W.current;if(!me)return;const ne=Array.from(me.children).map(ve=>ve.getBoundingClientRect().width),Ce=g==="fit"?e.findIndex((ve,Ye)=>Ye>se&&ve.resizable!==!1):-1;E.current=Ce>=0?{index:se,startX:te.clientX,startW:ne[se],next:Ce,startWNext:ne[Ce]}:{index:se,startX:te.clientX,startW:ne[se]},Y.current=ne,T(ne),window.addEventListener("pointermove",Q),window.addEventListener("pointerup",de),window.addEventListener("pointercancel",de),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[Q,de,g,e]),ke=o.useCallback(()=>{const se=W.current,te=se?.closest(".table-wrap");if(!se||!te)return;const me=te.style.getPropertyValue("--table-grid-cols");te.style.setProperty("--table-grid-cols",e.map(($e,Ie)=>J.current(Ie)?I.current[Ie]:"max-content").join(" "));const ne=Array.from(te.querySelectorAll(".table-row")).filter($e=>!$e.classList.contains("table-row--loading")&&!$e.classList.contains("table-row--empty")),Ce=e.map(($e,Ie)=>{let Ve=se.children[Ie]?.getBoundingClientRect().width??0;for(const ot of ne){const We=ot.children[Ie];We&&(Ve=Math.max(Ve,We.getBoundingClientRect().width))}const at=J.current(Ie)?parseFloat(I.current[Ie]):NaN;return Number.isFinite(at)?at:Math.max(U,Math.ceil(Ve))}),ve=window.getComputedStyle(se),Ye=se.clientWidth-(parseFloat(ve.paddingLeft)||0)-(parseFloat(ve.paddingRight)||0);me?te.style.setProperty("--table-grid-cols",me):te.style.removeProperty("--table-grid-cols");let He=Ce;const Ue=Ce.reduce(($e,Ie,Ve)=>$e+(J.current(Ve)?Ie:0),0),Se=Ce.reduce(($e,Ie,Ve)=>$e+(J.current(Ve)?0:Ie),0),Ge=Ye-Ue;if(Ye>0&&Se>0&&Ge>0){const $e=Ge/Se;He=Ce.map((Ve,at)=>J.current(at)?Ve:Math.max(U,Math.round(Ve*$e)));const Ie=Math.round(Ge-He.reduce((Ve,at,ot)=>Ve+(J.current(ot)?0:at),0));if(Ie!==0){let Ve=-1;He.forEach((at,ot)=>{!J.current(ot)&&(Ve<0||at>He[Ve])&&(Ve=ot)}),Ve>=0&&(He[Ve]=Math.max(U,He[Ve]+Ie))}}if(T(He),q)try{window.localStorage.setItem(q,JSON.stringify(He))}catch{}},[e,g,q]);o.useEffect(()=>()=>{E.current&&(window.removeEventListener("pointermove",Q),window.removeEventListener("pointerup",de),window.removeEventListener("pointercancel",de),document.body.style.cursor="",document.body.style.userSelect="")},[Q,de]);const oe=G4(m),z=oe.filter(se=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(se));z.length>0&&kn(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${z.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 re=e.findIndex(se=>!!se.sortDir);e.filter(se=>!!se.sortDir).length>1&&kn("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 ce=se=>se===re?e[se].sortDir==="asc"?"ascending":"descending":e[se].onClick?"none":void 0,fe=se=>/^\d+(\.\d+)?px$/.test(oe[se]??"");J.current=fe,I.current=oe;const ye=se=>g==="fit"&&!fe(se)?"fr":"px",Ne=R&&R.length===e.length&&(g==="fit"||a.length>0),we=H??(Ne?e.map((se,te)=>se.resizable===!1&&oe[te]?oe[te]:`${R[te]}${ye(te)}`).join(" "):m),Be=we?{"--table-grid-cols":we}:void 0,je=h!==void 0;return n.jsx("div",{className:`table-wrap table-wrap--${_}${ee?" table-wrap--resizable":""}${A?" table-wrap--dragover":""}${b?" table-wrap--collapsed":""}`,style:Be,onDragOver:D,onDragLeave:$,onDrop:O,children:n.jsxs("div",{className:"table body-2",children:[je&&n.jsxs("div",{className:"table-header",onClick:k,role:k?"button":void 0,tabIndex:k?0:void 0,"aria-expanded":k?!b:void 0,onKeyDown:k?se=>{se.target===se.currentTarget&&(se.key==="Enter"||se.key===" ")&&(se.preventDefault(),k())}:void 0,children:[k&&n.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:b?"chevron-right":"chevron-down",ariaLabel:b?S("common.expand","\uD3BC\uCE58\uAE30"):S("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),v&&n.jsx(qe,{icon:v,label:typeof h=="string"?h:void 0,className:"table-header__icon"}),n.jsx("span",{className:"table-header__title h5b",children:h}),x!==void 0&&n.jsx("span",{className:"table-header__count body-3b",children:x}),w&&n.jsx("span",{className:"table-header__actions",onClick:se=>se.stopPropagation(),children:w})]}),!b&&n.jsxs(n.Fragment,{children:[t&&t.length>0&&n.jsx("div",{className:"table-fields table-fields--groups",children:t.map((se,te)=>n.jsx("div",{className:De("table-field body-3",se.className),style:{gridColumn:`span ${se.span}`},children:se.label},te))}),n.jsxs("div",{className:De("table-fields-strip",ee&&"table-fields-strip--resizable"),children:[n.jsx("div",{className:"table-fields",ref:W,children:e.map((se,te)=>n.jsx(Z4,{onClick:se.onClick,className:se.className,sortDir:se.sortDir,ariaSort:ce(te),onResizeStart:ee&&te<e.length-1&&se.resizable!==!1&&(g!=="fit"||e.some((me,ne)=>ne>te&&me.resizable!==!1))?me=>Te(te,me):void 0,children:se.label},te))}),ee&&n.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:S("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:S("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:ke})]}),n.jsx("div",{className:"table-body",children:B?n.jsx(co,{variant:"loading"}):a.length===0&&N?n.jsx(co,{variant:"empty",children:N}):a.map((se,te)=>{const me=p!=null&&se.id===p,ne=!!s&&(i?i(se):!0),Ce=K!=null&&se.id!=null&&(K instanceof Set?K.has(se.id)||[...K].some(ve=>String(ve)===String(se.id)):String(se.id)===String(K));return n.jsx(co,{className:`${ne?" table-row--clickable":""}${u?" table-row--draggable":""}${me?" table-row--dragging":""}`.trim(),draggable:!!u,onClick:ne?()=>s(se):void 0,onMouseEnter:l?ve=>l(se,ve):void 0,onMouseLeave:c?ve=>c(se,ve):void 0,onDragStart:u?ve=>u(se,ve):void 0,onDragEnd:d?ve=>d(se,ve):void 0,expandedContent:Ce&&P?P(se):void 0,children:r(se).map((ve,Ye)=>n.jsx(K4,{className:ve.className,style:ve.style,children:ve.content},Ye))},se.id!=null?`${typeof se.id}:${se.id}`:`__idx:${te}`)})})]})]})})}function Yl(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const na=e=>e==null?"":String(e).trim();function po(e,t,a){const r=[na(e),na(t),na(a)];for(;r.length>0&&r[r.length-1]==="";)r.pop();return r.join(".")}function X4(e,t,a){const r=na(e);return r?`${r}-${na(t).padStart(2,"0")}-${na(a).padStart(2,"0")}`:""}const J4={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function Q4(e,t){const a=J4[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}function Zl(e,t){return t!=="wornAt"?String(e[t]??""):X4(e.wornYear,e.wornMonth,e.wornDay)}function ey({rows:e,onSelect:t,onDelete:a,onWear:r,onRelease:s,onAdd:i}){const{t:l}=ge.useTranslation(),c=g=>g==="\uC88C"?l("device.direction.left","\uC88C"):l("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:d}=zg(),p=o.useMemo(()=>{if(!u)return e;const{key:g,asc:y}=u;return[...e].sort((_,h)=>{if(g==="worn"){const v=Number(h.worn)-Number(_.worn);return y?v:-v}return Kr(Zl(_,g),Zl(h,g),y)})},[e,u]),{pageRows:m,pageSizeProps:f,paginationProps:C}=Vg(p,u);return n.jsxs("div",{className:"dlp-side-table",children:[n.jsx(no,{count:{value:e.length,unit:l("customers.device.unit","\uAC1C")},pageSize:f,pagination:C,actions:i&&n.jsx(le,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:l("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),n.jsx(uo,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...d(l("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},d(l("device.direction.label","\uBC29\uD5A5"),"side"),d(l("device.deviceType","\uC885\uB958"),"device"),d(l("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),d(l("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),d(l("device.productName","\uC81C\uD488\uBA85"),"productName"),d(l("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:m.map((g,y)=>({id:g.id??`${g.side}-${y}`,row:g})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:g})=>[{content:n.jsx("span",{className:"dlp-worn-check",onClick:y=>y.stopPropagation(),children:n.jsx(Ml,{checked:g.worn,disabled:g.worn?!s:!r,ariaLabel:g.worn?l("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):l("customers.device.wear","\uCC29\uC6A9"),onChange:y=>{y?r?.(g):s?.(g)}})})},{content:n.jsx("span",{children:c(g.side)})},{content:g.device?n.jsx(mt,{size:"small",variant:Yl(g.device),fill:"soft",label:Q4(g.device,l)}):n.jsx("span",{})},{content:n.jsx("span",{children:g.brand})},{content:n.jsx("span",{children:g.fitType||"-"})},{content:n.jsx("span",{children:g.productName||"-"})},{content:n.jsx("span",{className:"dlp-date",children:po(g.wornYear,g.wornMonth,g.wornDay)||"-"})},...a?[{content:n.jsx("span",{className:"dlp-row-actions",children:n.jsx(le,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:l("common.delete","\uC0AD\uC81C"),onClick:y=>{y?.stopPropagation(),a(g)}})})}]:[]],onRowClick:({row:g})=>t(g),empty:l("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function Xl(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 ty(e,t){return new Date(e,t+1,0).getDate()}function ny(e,t){return new Date(e,t,1).getDay()}function ay({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),[u,d]=o.useState(()=>Number(c.slice(0,4))),[p,m]=o.useState(()=>Number(c.slice(5,7))-1),[f,C]=o.useState(null),g=o.useRef(null),y=o.useMemo(()=>{const k={};return e.forEach(w=>{k[w.date]||(k[w.date]=[]),k[w.date].push(w)}),k},[e]),_=o.useMemo(()=>{const k=ty(u,p),w=ny(u,p),N=[];for(let B=0;B<w;B++)N.push(null);for(let B=1;B<=k;B++)N.push(B);for(;N.length<35;)N.push(null);return N},[u,p]),h=o.useCallback(()=>{p===0?(d(k=>k-1),m(11)):m(k=>k-1)},[p]),v=o.useCallback(()=>{p===11?(d(k=>k+1),m(0)):m(k=>k+1)},[p]),x=k=>`${u}-${String(p+1).padStart(2,"0")}-${String(k).padStart(2,"0")}`,b=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:h,"aria-label":i("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(qe,{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:u,month:p+1})}),n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:v,"aria-label":i("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(qe,{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)),_.map((k,w)=>{if(k===null)return n.jsx("div",{className:"calendar-cell empty"},`empty-${w}`);const N=k,B=x(N),A=y[B]??[],D=f===B;return n.jsxs("div",{className:`calendar-cell${b(N)?" today":""}${D?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?i("calendar.addOnDate",{date:B}):void 0,"aria-current":b(N)?"date":void 0,onClick:r?()=>r(B):void 0,onKeyDown:r?$=>{$.target===$.currentTarget&&($.key!=="Enter"&&$.key!==" "||($.preventDefault(),r(B)))}:void 0,onDragOver:a?$=>{$.preventDefault(),C(B)}:void 0,onDragLeave:a?$=>{$.currentTarget.contains($.relatedTarget)||C(null)}:void 0,onDrop:a?$=>{$.preventDefault(),g.current!=null&&(a(g.current,B),g.current=null),C(null)}:void 0,children:[n.jsx("div",{className:"calendar-cell__number body-3",children:N}),n.jsx("div",{className:"calendar-cell__badges",children:A.map(($,O)=>n.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${$.status==="noVisit"?" calendar-visit-badge--no-visit":$.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?P=>{g.current=$.id,P.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{g.current=null,C(null)}:void 0,onClick:t?P=>{P.stopPropagation(),t($)}:void 0,...Xl(t?()=>t($):void 0),"aria-label":[$.time?si($.time,i):null,$.customer,i($.status==="noVisit"?"calendar.legend.noVisit":$.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[$.time&&n.jsx("span",{className:"calendar-visit-badge__time body-3",children:si($.time,i)}),n.jsx("span",{className:"calendar-visit-badge__name body-3",children:$.customer}),$.status==="noVisit"&&n.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},$.id??O))})]},N)})]})]})}const ry={page:"h3",pagePopup:"h4",popup:"h5"};function aa({type:e="page",title:t,headingLevel:a,icon:r,action:s,disc:i,children:l,className:c,style:u}){const d=ry[e],p=t||i||s||r,m=a?`h${a}`:"div";return n.jsxs("div",{className:De("section",`section--${e}`,c),style:u,children:[p&&n.jsxs("div",{className:"section__header",children:[n.jsxs("div",{className:"section__title-row",children:[r&&n.jsx(qe,{icon:r,label:typeof t=="string"?t:void 0,className:"section__icon"}),n.jsxs("div",{className:"section__title-group",children:[t&&n.jsx(m,{className:`section__title ${d}`,children:t}),i&&n.jsx("div",{className:"section__disc body-3",children:i})]})]}),s&&n.jsx("div",{className:"section__action",children:s})]}),l]})}function Jl({icon:e,label:t,tooltip:a,wrapperStyle:r,color:s,bgColor:i,useHover:l=!0,iconSize:c="medium"}){const u=c==="small",d=De("category-icon",u?"category-icon--small":""),p=u?16:20,m=o.useRef(null),[f,C]=o.useState(!1),g=o.useMemo(()=>{const w=r&&typeof r=="object"?{...r}:{};return!s&&!i?w:{...w,...s?{color:s,"--t-item-fg":s}:{},...i?{"--t-item-bg":i}:{}}},[r,s,i]),y=a||t,[_,h]=o.useState(null);o.useLayoutEffect(()=>{f&&h(m.current?.getBoundingClientRect()??null)},[f]),o.useEffect(()=>{if(!l&&f)try{C(!1)}catch{}},[l,f]),o.useEffect(()=>{if(!f)return;const w=N=>{const B=m.current;if(!B)return;const A=N.target;A&&!B.contains(A)&&C(!1)};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[f]);const v=o.useCallback(()=>{l&&C(!0)},[l]),x=o.useCallback(()=>{l&&C(!1)},[l]),b=o.useCallback(()=>C(!1),[]),k=o.useCallback(w=>{if(w.key==="Escape"){C(!1);return}(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),C(N=>!N))},[]);return n.jsxs("span",{ref:m,className:"category-icon__wrap",onPointerEnter:v,onPointerLeave:x,onFocus:v,onBlur:x,onKeyDown:k,role:"button",tabIndex:0,"aria-label":typeof y=="string"?y:void 0,"aria-haspopup":!!y,"aria-expanded":f,"data-tooltip-ignore":!0,children:[n.jsx(qe,{icon:e,label:t,className:d,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:g,size:p}),f&&y&&n.jsx(Dn,{anchorRect:_,text:typeof y=="string"?y:void 0,offset:8,onClose:b,className:"category-icon__tooltip",ariaLabel:typeof y=="string"?y:void 0})]})}let En=null;function Xa(e){if(En&&En!==e)try{En()}catch{}return En=e,()=>{En===e&&(En=null)}}function Ja(e){if(En===e){En=null;try{e()}catch{}}}function oy(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 sy(e,t){const[a,r]=o.useState(!1),[s,i]=o.useState(-1),[l,c]=o.useState({key:"",urls:[]}),u=o.useRef(null),d=o.useRef(!1),p=o.useRef(null),m=o.useRef(null),[f,C]=o.useState(!1),g=o.useRef([]),{previewCodes:y,previewBucket:_}=oy(e,t),h=`${y.join(",")}|${_??""}`,v=o.useMemo(()=>l.key===h?l.urls:[],[l,h]);o.useEffect(()=>{if(!y.length)return;let b=!1;return(async()=>{const k=[],w=[];for(const N of y)try{const B=Is(N,_);if(!B){k.push("");continue}let A=null;try{A=await Fs(B)}catch{}if(!A)try{const D=await Os(B);D&&(A=URL.createObjectURL(D),w.push(A))}catch{}k.push(A??"")}catch{k.push("")}b?w.forEach(N=>{try{URL.revokeObjectURL(N)}catch{}}):(g.current.forEach(N=>{try{URL.revokeObjectURL(N)}catch{}}),g.current=w,c({key:h,urls:k}))})(),()=>{b=!0}},[y.join(","),_]),o.useEffect(()=>()=>{g.current.forEach(b=>{try{URL.revokeObjectURL(b)}catch{}}),g.current=[]},[]);const x=o.useCallback(async b=>{if(b.stopPropagation(),b.preventDefault(),d.current){p.current&&Ja(p.current),d.current=!1;try{u.current?.pause()}catch{}r(!1),i(-1);return}if(!v.filter(Boolean).length)return;let k=null;const w=()=>{d.current=!1;try{u.current?.pause()}catch{}k?.()};p.current=w;const N=Xa(w);d.current=!0,r(!0);for(let B=0;B<v.length&&d.current;B++){const A=v[B];if(A){i(B);try{await new Promise((D,$)=>{k=D;const O=new Audio(A);u.current=O,O.onended=()=>D(),O.onerror=()=>$(),O.play().catch($)})}catch{break}}}N(),p.current===w&&(p.current=null,d.current=!1,r(!1),i(-1))},[v]);return o.useEffect(()=>()=>{p.current&&Ja(p.current),d.current=!1;try{u.current?.pause()}catch{}u.current=null},[]),{playing:a,playingIndex:s,previewUrls:v,previewHover:f,setPreviewHover:C,previewBtnRef:m,handlePreview:x}}const iy=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 mo(e){const{index:t,type:a,trainingData:r,ariaLabel:s,depth:i,renderPopup:l,completed:c,completedIds:u,selectedIds:d,tooltipText:p,useDescriptionTooltip:m=!1,onRemove:f,hideCheckBadge:C=!1,showTypeLabel:g=!1,onComplete:y,onSelect:_,onMore:h,countLabelOverride:v,size:x="square"}=e||{},{t:b}=ge.useTranslation(),[k,w]=o.useState(!1),N=o.useRef(null),[B,A]=o.useState(!1);o.useEffect(()=>{N.current?.matches(":hover")&&A(!0)},[]);const{playing:D,playingIndex:$,previewUrls:O,previewHover:P,setPreviewHover:K,previewBtnRef:S,handlePreview:L}=sy(r,a?.key),H=o.useCallback(()=>{_?_():w(!0)},[_]),ee=o.useCallback(()=>w(!1),[]),U=o.useCallback(()=>A(!0),[]),q=o.useCallback(()=>A(!1),[]),W=o.useCallback(()=>K(!0),[K]),J=o.useCallback(()=>K(!1),[K]),[I,E]=o.useState(null);o.useLayoutEffect(()=>{P&&E(S.current?.getBoundingClientRect()??null)},[P,S]);const[F,R]=o.useState(null);o.useLayoutEffect(()=>{B&&!k&&m&&R(N.current?.getBoundingClientRect()??null)},[B,k,m]);const T=o.useCallback(Se=>{Se.target===Se.currentTarget&&(Se.key==="Enter"||Se.key===" ")&&(Se.preventDefault(),H())},[H]),M=r||null,G=o.useMemo(()=>{if(!m)return null;const Se=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,Ge=Se&&Se.length>0?Se:iy(M);return Ge&&Ge.length>0?Ge:null},[m,p,M]),Y=o.useCallback(Se=>{Se.stopPropagation(),f?.()},[f]),Q=o.useCallback(Se=>Se.stopPropagation(),[]),de=o.useCallback(Se=>{typeof y=="function"&&y(Se)},[y]),Te=c||(u&&r?.id!=null?u.has(String(r.id)):!1),ke=!Te&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);Zi("speechear.popup.close",ee);const oe=ii(),z=`${a?.label||""} ${t+1}`,re=M?.title||M?.name||z;let ce=a?.icon,fe,ye="",Ne="";try{const Se=M?.category_0||M?.category_main_code||M?.category_main,Ge=M?.category_1||M?.category_sub_code||M?.category_sub,$e=oe.find(Ie=>Ie.key===Se);$e?.icon&&(ce=$e.icon),!fe&&$e?.color&&(fe={"--t-item-fg":$e.color}),!fe&&M?.iconColor&&(fe={"--t-item-fg":M.iconColor}),ye=$e?b(`topic.${$e.key}`,{defaultValue:$e.label||""}):"";try{const Ie=$e?.subs?.find(Ve=>Ve.key===Ge);Ne=Ie?b(`topic.sub.${Ie.key}`,{defaultValue:Ie.label||""}):""}catch{}}catch{}const we=Ne?`${ye} / ${Ne}`:ye||a?.label||re,Be=Se=>b("training.countQuestions",{n:Se}),je=Se=>b("training.countSentences",{n:Se});let se="";try{if(M)if(a?.key==="LISTEN_IN_NOISE"){let Se=0;Array.isArray(M.items)&&M.items.length>0?Se=M.items.length:Array.isArray(M.sentences)&&M.sentences.length>0?Se=M.sentences.length:M.sentences&&(Se=1),se=je(Se)}else if(a?.key==="SHORT_STORY"){let Se=1;Array.isArray(r?.items)?Se=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?Se=r.raw.items.length:Array.isArray(M?.questions)?Se=M.questions.length:Array.isArray(M?.sentences)&&(Se=M.sentences.length),se=Be(Se)}else if(a?.key==="LONG_STORY"){let Se=1;if(Array.isArray(M.items)&&M.items.length>0){const Ge=M.items.reduce(($e,Ie)=>{const Ve=Ie.questionItems;return Array.isArray(Ve)?$e+Ve.length:Array.isArray(Ie.questions)?$e+Ie.questions.length:$e},0);Se=Ge>0?Ge:M.items.length}else Array.isArray(M.questions)&&M.questions.length>0?Se=M.questions.length:Array.isArray(M.sentences)&&M.sentences.length>0&&(Se=M.sentences.length);se=Be(Se)}else if(a?.key==="ORDERING_SENTENCE"){let Se=1;Array.isArray(M.items)&&M.items.length>0?Se=M.items.length:Array.isArray(M.sentences)&&M.sentences.length>0&&(Se=M.sentences.length),se=je(Se)}else Array.isArray(M.items)&&(se=M.items.length>0?Be(M.items.length):"")}catch{}const te=x==="row",me=x==="list"||te,ne=x==="compact",Ce=x==="small",ve=Ce&&a?.key?E2().find(Se=>Se.key===a.key):void 0,Ye=ve?li[ve.key]:void 0,He=ve?Ye?b(`trainingType.${Ye}.title`,{defaultValue:ve.label}):ve.label??"":"",Ue=!!g&&!!a?.label&&a.label!==String(re)||Ce&&!!He&&He!==String(re);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:N,className:`training-block-button${me?" training-block-button--list":""}${te?" training-block-button--row":""}${ne?" training-block-button--compact":""}${Ce?" training-block-button--small":""}${Te?" training-block-button--completed":""}${ke?" training-block-button--selected":""}${Ue&&!Ce?" training-block-button--withType":""}${Ce&&!Ue?" training-block-button--no-type-label":""}`,onClick:H,onPointerEnter:U,onPointerLeave:q,role:"button",tabIndex:0,onKeyDown:T,"aria-label":typeof s=="string"?s:typeof re=="string"?re:void 0,title:!m&&p&&(Array.isArray(p)?p.filter(Boolean).join(`
859
+ `):p)||void 0,children:[n.jsxs("div",{className:"training-block-button__left",children:[g&&a?.label&&a.label!==String(re)&&n.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ce&&He&&He!==String(re)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:He}),n.jsx(Jl,{icon:ce,label:re,tooltip:we,wrapperStyle:fe,iconSize:Ce||ne?"small":"medium"}),!C&&(Te||ke)&&!(f&&B)&&n.jsx(mt,{className:f?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":Te?b("training.completed","\uD6C8\uB828 \uC644\uB8CC"):b("training.selected","\uC120\uD0DD\uB428")}),f&&n.jsx(mt,{className:`training-block-button__remove${B?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":b("common.remove","\uC81C\uAC70"),onClick:Y}),n.jsx("div",{className:`training-block-button__title ${ne?"body-3":Ce?"body-3b":"h3"}`,children:String(re)}),n.jsxs("div",{className:"training-block-button__description",children:[(()=>{const Se=v!==void 0?v:se;return Se?n.jsx("div",{className:`training-block-button__count ${Ce?"caption-2":"caption-1"}`,children:Se}):null})(),n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(qe,{icon:"chevron-right",label:b("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Ce?12:20})})]}),(me&&!te||Ce)&&O.length>0&&n.jsx("div",{ref:S,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:Q,onPointerEnter:W,onPointerLeave:J,children:n.jsx(le,{htmlType:"button",size:Ce?28:32,type:"dot",icon:D?"pause":"play",variant:Ce?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:D?b("training.stop","\uC815\uC9C0"):b("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:L})})]}),h&&n.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:Se=>{Se.stopPropagation(),h(Se)},children:n.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:b("common.more","\uB354\uBCF4\uAE30")})})]}),P&&n.jsx(Dn,{anchorRect:I,text:D?b("training.stop","\uC815\uC9C0"):b("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:J}),B&&!k&&m&&(G?n.jsx(Fn,{anchorRect:F,items:G,activeIndex:$,onClose:q}):M?.subTitle?n.jsx(Dn,{anchorRect:F,text:M.subTitle,offset:8,onClose:q}):null),k&&l&&l({trainingData:M,typeKey:a?.key??"",onClose:ee,onComplete:de,popupTitle:String(re),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:ce,popupIconTooltip:String(we),popupWrapperStyle:fe})]})}let ho=null,Ql=!1;function ec(){if(Ql||typeof document>"u")return;Ql=!0,document.addEventListener("keydown",t=>{t.metaKey||t.ctrlKey||t.altKey||(ho="keyboard")},!0);const e=()=>{ho="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}ec();function Qa(){return ec(),ho==="keyboard"}const er=20;function ly(e){const{t}=ge.useTranslation(),{type:a,trainingDatas:r,depth:s,renderPopup:i,completedIds:l,selectedIds:c,onItemComplete:u,size:d,useDescriptionTooltip:p,onRemove:m,onMore:f,sectionType:C="page"}=e||{},[,g]=o.useState(0),y=typeof r<"u"?Array.isArray(r)?r:[]:[],_=y.length,[h,v]=o.useState(Math.min(_,er)),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(()=>{v(Math.min(_,er))},[_]),Zi("speechear.data.updated",()=>g(N=>N+1));const b=o.useRef(null),k=o.useRef(null);function w(){const N=document.activeElement;k.current=Qa()&&N&&N.closest?.(".training-block__more")?h:null,v(B=>Math.min(_,B+er))}return o.useEffect(()=>{const N=k.current;if(N==null)return;k.current=null;const B=document.activeElement;B&&B!==document.body||b.current?.querySelectorAll(".training-block-button")[N]?.focus()},[h]),n.jsxs(aa,{type:C,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[n.jsx("div",{className:"training-list",ref:b,children:(y||[]).slice(0,h).map((N,B)=>{const A=N;return n.jsx(mo,{index:B,type:a,trainingData:A,depth:x,renderPopup:i,completedIds:l,selectedIds:c,size:d,useDescriptionTooltip:p,onRemove:typeof m=="function"&&c!=null&&A?.id!=null&&c.has(String(A.id))?()=>m(A):void 0,onComplete:typeof u=="function"&&A?.id!=null?()=>u(String(A.id)):void 0,onMore:typeof f=="function"?D=>f(A,D):void 0},A?.id!=null?`${a?.key||"t"}-${String(A.id)}`:`${a?.key||"t"}-${B}`)})}),_>er&&h<_&&n.jsx("div",{className:"training-block__more",children:n.jsx(le,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:w,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function fo(e){const t=o.useRef(null),[a,r]=o.useState(!!e),[s,i]=o.useState(!1);o.useEffect(()=>{i(!1);const u=t.current;r(!!e&&!(u?.complete&&u.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 cy='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 uy=cy,Co=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:u=!1,orderRank:d=null},p){const{t:m}=ge.useTranslation(),f=e.word||e.title||"",C=t||!f,g=e.audio??e.sound??e.audioKey,y=e.subLabel||e.pronunciation||"",_=e.colloquialLabel||"",[h,v]=o.useState({label:f,subLabel:y,colloquialLabel:_,homonum:e.homonum});f&&(h.label!==f||h.subLabel!==y||h.colloquialLabel!==_||!Object.is(h.homonum,e.homonum))&&v({label:f,subLabel:y,colloquialLabel:_,homonum:e.homonum});const x=o.useRef(null),b=tn("(max-width: 767px)"),[k,w]=o.useState(!1),N=`${typeof g=="string"?g:g?.src??""}\0${f}`,[B,A]=o.useState({for:"",url:""}),D=B.for===N?B.url:"",$=Js(),O=e.textOnly??(!e.image&&!!h.label&&!!$&&$.entries.length>0&&!$.byWord.has(h.label)),P=O?"":Gn()?.(h.label,h.homonum)??e.image??"",{imgRef:K,loading:S,hasImage:L,onLoad:H,onError:ee}=fo(P);o.useEffect(()=>{let T=!1;return(async()=>{if(g){if(typeof g=="string"){if(g.startsWith("http")||g.includes("/")){A({for:N,url:g});return}}else if(typeof g=="object"&&!Array.isArray(g)){const G=g.src;if(G){A({for:N,url:G});return}}}const M=Br();if(M&&f)try{const G=await Promise.resolve(M(f));!T&&G&&A({for:N,url:G})}catch{}})(),()=>{T=!0}},[g,f,N]);const U=o.useRef(!0),q=o.useRef(null);o.useEffect(()=>(U.current=!0,()=>{U.current=!1,q.current&&Ja(q.current),q.current=null;try{x.current?.pause()}catch{}x.current=null}),[]);const W=o.useCallback(()=>new Promise(T=>{if(typeof window<"u"&&window.speechSynthesis&&f){w(!0),window.speechSynthesis.cancel();const M=new SpeechSynthesisUtterance(f);M.lang="ko-KR",M.onend=()=>{w(!1);try{a?.()}catch{}T()},M.onerror=()=>{w(!1),T()},window.speechSynthesis.speak(M)}else T()}),[f,a]),J=o.useCallback(T=>new Promise(M=>{let G=!1;const Y=()=>{G||(G=!0,w(!1),M(!1))};try{const Q=new Audio(T);x.current=Q,Q.onended=()=>{if(!G){G=!0,w(!1);try{a?.()}catch{}M(!0)}},Q.onerror=Y,Q.play().catch(Y)}catch{Y()}}),[a]),I=o.useCallback(async()=>{if(t||!U.current)return;const T=()=>{q.current===T&&(q.current=null);try{x.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1)},M=Xa(T);q.current=T;try{window.speechSynthesis?.cancel()}catch{}try{if(D&&(w(!0),await J(D)))return;const G=U0();if(G&&f)try{const Y=await Promise.resolve(G(f));if(!U.current||q.current!==T||Y&&(w(!0),await J(Y)))return}catch{}if(!U.current||q.current!==T)return;await W()}finally{M(),q.current===T&&(q.current=null)}},[t,D,f,J,W]);o.useImperativeHandle(p,()=>({play:()=>I()}),[I]);const E=T=>T.stopPropagation(),F=o.useCallback(T=>{if(T.stopPropagation(),!t){if(k){try{x.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1);return}I()}},[t,k,I]),R=De("training-word-card",t?"training-word-card--disabled":"",C?"training-word-card--flipped":"",r?"training-word-card--selectable":"",s?"training-word-card--selected":"");return n.jsx("div",{className:R,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?T=>{T.target===T.currentTarget&&(T.key==="Enter"||T.key===" "||T.key==="Spacebar")&&(T.preventDefault(),i?.())}:void 0,children:n.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:C?"0ms":`${l}ms`},children:[n.jsxs("div",{className:"training-word-card__front",children:[s&&n.jsx("div",{className:"training-word-card__selected-badge",onClick:E,children:n.jsx(mt,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?m("training.nthSelected",{n:d}):m("training.selected","\uC120\uD0DD\uB428")})}),n.jsx("div",{className:"training-word-card__image-wrap",children:O?n.jsx("div",{className:"training-word-card__text-face",children:h.label}):L?n.jsxs(n.Fragment,{children:[S&&n.jsx("div",{className:"training-word-card__spinner"}),n.jsx("img",{ref:K,className:"training-word-card__image",src:P,alt:h.label||m("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:S?0:1},onLoad:H,onError:ee})]}):n.jsx("div",{className:"training-word-card__placeholder"})}),!c&&n.jsxs("div",{className:"training-word-card__body",children:[!O&&n.jsx("div",{className:"training-word-card__word",children:h.label}),h.subLabel&&n.jsxs("div",{className:"training-word-card__pronunciation",children:["[",h.subLabel,"]"]}),h.colloquialLabel&&n.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",h.colloquialLabel,"]"]})]}),!u&&n.jsx("div",{className:"training-word-card__bottom",onClick:r?E:void 0,children:n.jsx(le,{htmlType:"button",size:b?40:48,type:b?"dot":"bar",icon:k?"pause":"play",label:b?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:uy,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),dy=260;function Tn(e){const{t}=ge.useTranslation(),{title:a,subtitle:r,headerActions:s,children:i,buttons:l,footer:c,footerClassName:u="",onClose:d,closeDisabled:p=!1,beforeClose:m,closeOnBackdrop:f=!0,className:C="",ariaLabel:g,useTitle:y=!0,inline:_=!1,size:h,layer:v="modal",height:x,fillBody:b=!1,resetScrollKey:k}=e||{},[w,N]=o.useState(!1),B=o.useRef(!1),A=o.useRef(null),D=o.useId(),$=o.useRef(null);o.useEffect(()=>{},[_,a,g,C]),o.useEffect(()=>{k!==void 0&&$.current&&($.current.scrollTop=0)},[k]);const[O,P]=o.useState(!1);o.useEffect(()=>{const T=$.current;if(!T)return;const M=()=>P(T.scrollHeight>T.clientHeight+1);if(M(),typeof ResizeObserver>"u")return;const G=new ResizeObserver(M);G.observe(T);const Y=T.firstElementChild;return Y&&G.observe(Y),()=>G.disconnect()},[i,k]),o.useEffect(()=>{if(!_)return Nl()},[_]),o.useEffect(()=>{if(_)return;const T=document.activeElement,M=A.current;return Fr(M,T),M&&!M.contains(document.activeElement)&&(M.querySelector(fn)??M).focus(),()=>{const G=document.activeElement;(!G||G===document.body||M&&M.contains(G))&&Or(T)?.focus?.()}},[_]),Pr(A,!_);const K=o.useRef(!0),S=Hr(),L=o.useRef(null);o.useEffect(()=>(K.current=!0,()=>{K.current=!1,L.current&&(clearTimeout(L.current),L.current=null)}),[]);const H=o.useCallback(()=>{!K.current||!B.current||(B.current=!1,N(!1))},[]),ee=o.useCallback((T,M=!1)=>{if(M&&!K.current||B.current)return;B.current=!0,N(!0);const G=setTimeout(()=>{L.current===G&&(L.current=null);let Y;try{Y=T?T():void 0}catch{H();return}Y&&typeof Y.then=="function"&&Y.then(()=>{setTimeout(H,120)},H)},S?0:dy);M&&(L.current=G)},[H,S]),U=o.useCallback(()=>{p||m&&m()===!1||ee(d,!0)},[ee,d,p,m]),q=o.useRef(U);o.useEffect(()=>{q.current=U});const W=!_&&!!d;o.useEffect(()=>{if(W)return In(()=>q.current())},[W]);const J=W&&f,I=o.useRef(!1),E=T=>{I.current=T.target===T.currentTarget},F=T=>{const M=I.current;I.current=!1,M&&T.target===T.currentTarget&&U()},R=n.jsx("div",{className:`popup ${_?"popup--inline":""} ${v==="belowPagePopup"?"popup--below-page-popup":""} ${w?"popup--closing":""} ${C}`,onPointerDown:J?E:void 0,onClick:J?F:void 0,onMouseDown:_?void 0:T=>{T.target===T.currentTarget&&T.preventDefault()},children:n.jsxs("div",{ref:A,className:`popup-panel${h?` popup-panel--${h}`:""}${x!=null?" popup-panel--has-height":""}${b?" popup-panel--fill-body":""}`,style:x!=null?{"--popup-height":typeof x=="number"?`${x}px`:x}:void 0,tabIndex:-1,role:_?void 0:"dialog","aria-modal":_?void 0:!0,"aria-labelledby":!_&&y&&a?D:void 0,"aria-label":!_&&!(y&&a)?g??(typeof a=="string"?a:void 0):void 0,children:[!y&&(s||d)?n.jsxs("div",{className:"popup-close-float",children:[s,d&&n.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:U,disabled:p,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||s||d?n.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[n.jsxs("div",{className:"popup-header-main",children:[n.jsx("span",{id:D,className:"popup-title popup-title--left h2",children:a}),r&&n.jsx("span",{className:"popup-subtitle body-3",children:r})]}),n.jsxs("div",{className:"popup-header-actions",children:[s,d&&n.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:U,disabled:p,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,n.jsx("div",{className:"popup-content",ref:$,tabIndex:O?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:ee,closeWithAnimation:U}):i})}),l?.length?n.jsx("div",{className:"popup-footer popup-footer--buttons",children:l.map((T,M)=>n.jsx(le,{htmlType:"button",size:48,variant:T.variant??"default",label:T.label,disabled:T.disabled,onClick:()=>T.onClick?.({animateThen:ee,closeWithAnimation:U})},M))}):c?n.jsx("div",{className:`popup-footer${u?` ${u}`:""}`,children:typeof c=="function"?c({animateThen:ee,closeWithAnimation:U}):c}):null]})});return _||typeof document>"u"?R:qt.createPortal(R,document.body)}function tr(e){return String(e)}const tc=["o","triangle","x"];function nc(e,t){return e===t?null:t}const ac={o:"circle",triangle:"triangle",x:"x"},rc={o:"main",triangle:"warn",x:"danger"};function py(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 go(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function oc(e){const t=[];let a=0;for(const r of e)t.push(a),a+=r;return t}function my(e,t){return!t&&e>0}const ra={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 hy(e="landscape"){kn("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}=ra[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 sc(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 fy={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 Cy(e,t){const a=fy[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 gy={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},ic={\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"},lc={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function bo(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function cc(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 u="#ddd",d=C=>`repeating-linear-gradient(to ${C}, ${u} 0, ${u} 5px, transparent 5px, transparent 10px)`,p=[],m=[],f=[];return l&&(p.push(d("bottom")),m.push("1px 100%"),f.push("right center")),c&&(p.push(d("right")),m.push("100% 1px"),f.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:m.join(", "),backgroundPosition:f.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const by=280,yy=240,vy=280,xy=400,_y=120,wy=280;function uc(e,t){const a=o.useRef(null),[r,s]=o.useState(1),[i,l]=o.useState(0),c=o.useCallback((u,d)=>{const p=u/e,m=t?d/t:1/0,f=Math.min(1,p,m);s(f),l(Math.max(0,(u-e*f)/2))},[e,t]);return o.useEffect(()=>{const u=a.current;if(!u)return;const d=t?u.parentElement??u:u;if(c(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([m])=>c(m.contentRect.width,m.contentRect.height));return p.observe(d),()=>p.disconnect()},[c,t]),{scalerRef:a,scale:r,offset:i}}const ky={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Ay=400,dc=8;function pc({label:e,subLabel:t,colloquialLabel:a,homonum:r,showWord:s=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:c=!0,buttonSize:u=40,wordInfo:d}){const{t:p}=ge.useTranslation(),m=o.useRef(null),f=o.useRef(null),C=o.useRef(null),[g,y]=o.useState(1),[_,h]=o.useState(!1),[v,x]=o.useState({for:"",url:""}),[b,k]=o.useState(null),w=t&&t.length>0?t:K0()?.(e,r)??"",N=Gn()?.(e,r)??"",{imgRef:B,loading:A,failed:D,onLoad:$,onError:O}=fo(N),P=o.useCallback(()=>k(f.current?.getBoundingClientRect()??null),[]),K=o.useCallback(()=>k(null),[]),S=zr(!!b,F=>{F?P():K()},f),L=o.useMemo(()=>{if(!d)return null;const F=[];return d.grade&&F.push(p("wordTable.info.grade",{n:d.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),d.syllables&&F.push(p("wordTable.info.syllables",{n:d.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),d.pos&&F.push(p("wordTable.info.pos",{v:bo(d.pos,By(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),d.wordType&&F.push(p("wordTable.info.wordType",{v:bo(d.wordType,Ny(p)),defaultValue:"\uC720\uD615: {{v}}"})),F.length?F:null},[d,p]),H=w||e,ee=v.for===H?v.url:"";o.useEffect(()=>{const F=Br(),R=w||e;if(!F||!R)return;let T=!1;return Promise.resolve(F(R)).then(M=>{!T&&M&&x({for:R,url:M})}),()=>{T=!0}},[w,e]);const U=o.useRef(null),q=o.useRef(null);o.useEffect(()=>()=>{C.current?.pause(),q.current?.()},[]);const W=o.useCallback(async F=>{if(F.stopPropagation(),_){U.current?.();return}if(ee){h(!0);try{const R=new Audio(ee);C.current=R;const T=()=>{h(!1),q.current?.()},M=()=>{R.pause(),T()};U.current=M;const G=Xa(M);q.current=G,R.onended=T,R.onerror=T,await R.play()}catch{h(!1),q.current?.()}}},[_,ee]),J=i&&!!N&&!D,I=J&&s?by:J?vy:yy,E=J&&s?xy:J?wy:_y;return o.useEffect(()=>{const F=m.current;if(!F||typeof ResizeObserver>"u")return;const R=new ResizeObserver(([T])=>{const{width:M,height:G}=T.contentRect;y(Math.min(M/I,G/E))});return R.observe(F),()=>R.disconnect()},[I,E]),n.jsxs("div",{ref:m,className:"word-table-cell",children:[n.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${g})`},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:B,className:"word-table-cell__image",src:N,alt:e,draggable:!1,style:{opacity:A?0:1},onLoad:$,onError:O})]}),s&&n.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&w&&n.jsxs("span",{className:"word-table-cell__sub h3",children:["[",w,"]"]}),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":ee,children:[n.jsx("span",{"data-play-state":"play",style:{display:_?"none":void 0},children:n.jsx(le,{htmlType:"button",size:u,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:W})}),n.jsx("span",{"data-play-state":"pause",style:{display:_?void 0:"none"},children:n.jsx(le,{htmlType:"button",size:u,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:W})})]}),d&&n.jsxs("div",{ref:f,className:"word-table-cell__info-button",onPointerEnter:F=>{Xn(F)||P()},onPointerLeave:F=>{Xn(F)||K()},onFocus:()=>{Jn()||P()},onBlur:K,children:[n.jsx(le,{htmlType:"button",size:u,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(),S.touchPress()}}),b&&L&&n.jsx(Fn,{anchorRect:b,items:L,showIndex:!1})]})]})}const mc={\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"},hc={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function By(e){return Object.fromEntries(Object.entries(ic).map(([t,a])=>[t,mc[t]?e(`wordTable.pos.${mc[t]}`,{defaultValue:a}):a]))}function Ny(e){return Object.fromEntries(Object.entries(lc).map(([t,a])=>[t,hc[t]?e(`wordSearch.filter.type.${hc[t]}`,{defaultValue:a}):a]))}function oa({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:u=!0,items:d,editCells:p,count:m,activeCell:f=null,onActivateCell:C,onRemoveCell:g,onRemoveItem:y,onReorder:_,showFillerAdd:h=!1,contentRef:v,buttonSize:x=40,pageNumber:b,pageNumberPosition:k="right",fitHeight:w=!1,scoring:N=!1,marks:B,onMarkClick:A,scoreIndexOffset:D=0}){const $=o.useCallback((te,me)=>{A?.(D+te,me)},[A,D]),O=(te,me)=>{const ne=B?.[tr(D+te)]??null;return n.jsx("div",{className:De("word-table-cell__score",ne?"word-table-cell__score--marked":""),children:tc.map(Ce=>n.jsx("span",{className:De("word-table-cell__score-slot",ne===Ce?"word-table-cell__score-slot--on":""),children:n.jsx(le,{htmlType:"button",size:x,type:"dot",icon:ac[Ce],variant:ne===Ce?rc[Ce]:"default",selected:ne===Ce,useBorder:!1,showTooltipInfo:!1,ariaLabel:P(`wordTable.scoring.${Ce}`,{word:me,defaultValue:`${me} ${Ce}`}),onClick:ve=>{ve.stopPropagation(),$(te,Ce)}})},Ce))})},{t:P}=ge.useTranslation(),K=p!==void 0,S=e!=null||!!t||!!a,L=o.useRef(null),[H,ee]=o.useState(null),U=d?.length??0,[q,W]=o.useState(null),[J,I]=o.useState(""),E=o.useRef(null),F=o.useRef(null),R=o.useRef(null),T=o.useRef(null),M=o.useCallback(te=>{F.current=te,typeof v=="function"?v(te):v&&(v.current=te)},[v]),G=o.useCallback((te,me)=>{E.current=me,_?.(te,me),I(P("wordTable.reorder.moved",{n:me+1,total:U,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[_,P,U]);o.useEffect(()=>{const te=E.current;te!=null&&(E.current=null,F.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler)")?.[te]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{T.current?.()},[]);const Y=o.useCallback((te,me)=>{if(!_||!te.altKey||te.ctrlKey||te.metaKey)return;const ne=te.key==="ArrowRight";if(!ne&&te.key!=="ArrowLeft")return;te.preventDefault();const Ce=me+(ne?1:-1);Ce<0||Ce>=U||G(me,Ce)},[_,U,G]),Q=o.useCallback((te,me)=>{if(!_||te.pointerType==="mouse")return;const ne=te.target.closest?.("button");if(ne&&!ne.closest(".word-table-block__card-handle"))return;T.current?.();const Ce={x:te.clientX,y:te.clientY};let ve=!1;const Ye=$e=>{ve&&$e.cancelable&&$e.preventDefault()},He=$e=>{if(!ve){(Math.abs($e.clientX-Ce.x)>dc||Math.abs($e.clientY-Ce.y)>dc)&&Ge();return}const Ie=document.elementFromPoint?.($e.clientX,$e.clientY)?.closest?.("[data-wordtable-cell]"),Ve=Ie?Number(Ie.dataset.wordtableCell):NaN,at=Number.isInteger(Ve)?Ve:null;R.current=at,ee(at)},Ue=()=>{const $e=R.current,Ie=ve;Ge(),Ie&&$e!=null&&$e!==me&&G(me,$e)},Se=setTimeout(()=>{ve=!0,W(me),R.current=me,ee(me),window.addEventListener("touchmove",Ye,{passive:!1})},Ay);function Ge(){clearTimeout(Se),window.removeEventListener("pointermove",He),window.removeEventListener("pointerup",Ue),window.removeEventListener("pointercancel",Ue),window.removeEventListener("touchmove",Ye),ve=!1,R.current=null,T.current=null,W(null),ee(null)}T.current=Ge,window.addEventListener("pointermove",He),window.addEventListener("pointerup",Ue),window.addEventListener("pointercancel",Ue)},[_,G]),{width:de,height:Te}=ra[s],{scalerRef:ke,scale:oe,offset:z}=uc(de,w?Te:void 0),re=K?p?.length??0:d?.length??0,ce=Math.max(m??re,1),{cols:fe,rows:ye}=Cy(s,ce),Ne={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")},we=K?(p??[]).some(te=>te!==null&&te.length>1):(d??[]).some(te=>(te.words??[]).length>1),Be=De("word-table-block__content",gy[l],c&&"word-table-block__content--outline",u&&we&&"word-table-block__content--div-line"),je={transform:`scale(${1/oe})`,transformOrigin:"center center"},se=n.jsxs("div",{ref:ke,className:"word-table__scaler",style:{height:Te*oe},children:[n.jsx("div",{className:De("word-table",!S&&r),style:{width:de,height:Te,transform:`scale(${oe})`,transformOrigin:"top left",marginLeft:z},children:n.jsxs("div",{ref:M,className:Be,style:{gridTemplateColumns:`repeat(${fe}, 1fr)`,gridTemplateRows:`repeat(${ye}, 1fr)`},children:[K?n.jsx(n.Fragment,{children:(p??[]).map((te,me)=>n.jsx("div",{className:De("word-table-block__edit-cell",te?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",f===me?"word-table-block__edit-cell--active":""),style:cc(me,fe,ye,l),children:te?n.jsxs(n.Fragment,{children:[te.map((ne,Ce)=>n.jsxs(o.Fragment,{children:[Ce>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(pc,{label:ne.word,subLabel:ne.pronunciation,colloquialLabel:ne.colloquialPronunciation,homonum:ne.homonum,showWord:Ne.word,showImage:Ne.image,showPronunciation:Ne.pron,showColloquial:Ne.colloq,buttonSize:x})]},Ce)),N&&O(me,te.map(ne=>ne.word).join(" / ")),g&&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:te.length>1?P("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):P("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:te.length>1?P("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):P("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>g(me)})})]}):C&&n.jsx("div",{style:je,children:n.jsx(le,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:P("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C(me)})})},me))}):n.jsxs(n.Fragment,{children:[(d??[]).map((te,me)=>n.jsxs("div",{"data-wordtable-cell":_?me:void 0,className:`word-table-block__card${_?" word-table-block__card--draggable":""}${H===me?" word-table-block__card--drag-over":""}${q===me?" word-table-block__card--dragging":""}`,style:cc(me,fe,ye,l),draggable:!!_,onPointerDown:_?ne=>Q(ne,me):void 0,onKeyDown:_?ne=>Y(ne,me):void 0,onDragStart:_?()=>{L.current=me}:void 0,onDragOver:_?ne=>{ne.preventDefault(),ee(me)}:void 0,onDragLeave:_?()=>ee(null):void 0,onDrop:_?ne=>{ne.preventDefault(),L.current!==null&&L.current!==me&&_(L.current,me),L.current=null,ee(null)}:void 0,onDragEnd:_?()=>{L.current=null,ee(null)}:void 0,children:[(te.words??[]).map((ne,Ce)=>n.jsxs(o.Fragment,{children:[Ce>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(pc,{label:ne.label,subLabel:ne.subLabel,colloquialLabel:ne.colloquialLabel,homonum:ne.homonum,showWord:Ne.word,showImage:Ne.image,showPronunciation:Ne.pron,showColloquial:Ne.colloq,buttonSize:x,wordInfo:ne.grade||ne.syllables!=null||ne.pos||ne.wordType?{grade:ne.grade,syllables:ne.syllables,pos:ne.pos,wordType:ne.wordType}:void 0})]},Ce)),N&&O(me,(te.words??[]).map(ne=>ne.label).join(" / ")),_&&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:P("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:P("wordTable.reorder.handle",{word:(te.words??[]).map(ne=>ne.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})}),y&&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:(te.words??[]).length>1?P("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):P("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(te.words??[]).length>1?P("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):P("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>y(te.id)})})]},te.id)),Array.from({length:Math.max(0,fe*ye-(d?.length??0))}).map((te,me)=>{const ne=(d?.length??0)+me<ce;return n.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:h&&C&&ne&&n.jsx("div",{style:je,children:n.jsx(le,{htmlType:"button",size:x,type:"bar",icon:"plus",label:P("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C((d?.length??0)+me)})})},`filler-${me}`)})]}),b&&k!=="none"&&n.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${k}`,children:P("wordTable.filter.pageIndicator",{current:b.current,total:b.total})})]})}),_&&n.jsx("span",{role:"status",style:ky,children:J})]});return S?n.jsx(aa,{type:"page",icon:t,title:e,disc:a,className:De("word-table-block",r),children:se}):se}function xn({title:e,headerAction:t,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:s,onCollapsedChange:i,footer:l,sections:c,selected:u={},onSelect:d,align:p,sectionAlign:m,className:f}){const C=(p??(m==="vertical"?"newline":"inline"))==="inline",{t:g}=ge.useTranslation(),[y,_]=o.useState(r),h=s??y,v=()=>{const b=!h;_(b),i?.(b)},x=e||t||a;return n.jsxs("div",{className:De("filter-panel",a?"filter-panel--collapsible":"",h?"filter-panel--collapsed":"",f),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:h?"chevron-down":"chevron-up",ariaLabel:h?g("common.expand","\uD3BC\uCE58\uAE30"):g("common.collapse","\uC811\uAE30"),"aria-expanded":!h,onClick:v}),e&&n.jsx("span",{className:"filter-panel__title h4",children:e})]}),n.jsx("div",{className:"filter-panel__header-actions",children:!h&&t})]}),!h&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:De("filter-panel__sections",C?"filter-panel__sections--row":""),children:c.map(b=>{const k=u[b.label],w=k===void 0||(Array.isArray(k)?k.length===0:!1),N=(b.items??[]).filter(A=>A!=null);b.allOption&&N.some(A=>(typeof A=="string"?A:A.value)===rn)&&kn(`filter-panel-all-value:${b.label}`,`[FilterPanel] '${b.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${rn}' \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 B=A=>{const D=typeof A=="string"?A:A.value,$=typeof A!="string"&&!!A.disabled,O=typeof A!="string"?A.labels:void 0,P=typeof A!="string"?A.displayLabel:void 0,K=typeof A!="string"?A.tooltip:void 0,S=typeof A!="string"?A.descriptionTooltip:void 0,L=typeof A!="string"?A.shape:void 0,H=Array.isArray(k)?k.includes(D):k===D;return n.jsx(le,{htmlType:"button",size:"keyboard",label:O??P??D,type:b.itemType??(O?"bar":D.length===1?"dot":void 0),selected:H,disabled:$,shape:L,showTooltipInfo:!!K,tooltipInfoText:K,tooltipDescription:S,onClick:()=>d?.(D,b.label)},D)};return n.jsxs(o.Fragment,{children:[b.groupLabel&&n.jsxs("div",{className:"filter-panel__group-label-row",children:[n.jsx("div",{className:"filter-panel__group-label body-2",children:b.groupLabel}),b.groupAction]}),n.jsxs("div",{className:De("filter-panel__section",b.layout==="row"?"filter-panel__section--row":"",b.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:b.displayLabel??b.label}),b.labelAction??(b.labelInfo?n.jsx(Aa,{...b.labelInfo}):null)]}),b.type==="note"?n.jsx("div",{className:"filter-panel__note body-3",children:b.content}):b.type==="input"?n.jsx(Vn,{className:"filter-panel__textfield",placeholder:b.placeholder,ariaLabel:b.displayLabel??b.label,value:u[b.label]??"",onChange:A=>d?.(A,b.label),error:b.error}):!b.multiple&&b.display==="segmented"?n.jsx(Sn,{ariaLabel:b.displayLabel??b.label,options:[...b.allOption?[{key:rn,label:b.allLabel??g("common.all","\uC804\uCCB4"),disabled:b.allOptionDisabled}]:[],...N.map(A=>{const D=typeof A=="string"?A:A.value,$=typeof A!="string"?A.displayLabel:void 0,O=typeof A!="string"?A.disabled:void 0;return{key:D,label:$??D,disabled:O}})],value:w&&b.allOption?rn:u[b.label]??"",onChange:A=>d?.(A,b.label),size:40}):!b.multiple&&b.display==="dropdown"?n.jsx(nn,{className:"filter-panel__dropdown",size:40,options:[...b.allOption?[{value:rn,label:b.allLabel??g("common.all","\uC804\uCCB4"),disabled:b.allOptionDisabled}]:[],...N.map(A=>{const D=typeof A=="string"?A:A.value,$=typeof A!="string"?A.displayLabel:void 0,O=typeof A!="string"?A.disabled:void 0;return{value:D,label:$??D,disabled:O}})],value:w&&b.allOption?rn:u[b.label],onChange:A=>d?.(A,b.label)}):n.jsxs("div",{className:b.groups?"filter-panel__item-groups":"filter-panel__items",children:[b.allOption&&!b.groups&&n.jsx(le,{htmlType:"button",size:"keyboard",label:b.allLabel??g("common.all","\uC804\uCCB4"),selected:w,disabled:b.allOptionDisabled,onClick:()=>d?.(rn,b.label)}),b.groups?b.groups.map((A,D)=>n.jsxs("div",{className:"filter-panel__item-group",children:[D===0&&b.allOption&&n.jsx(le,{htmlType:"button",size:"keyboard",label:b.allLabel??g("common.all","\uC804\uCCB4"),selected:w,disabled:b.allOptionDisabled,onClick:()=>d?.(rn,b.label)}),A.filter($=>$!=null).map(B)]},D)):N.map(B)]})]})]},b.label)})}),l!=null&&l!==!1&&n.jsx("div",{className:"filter-panel__footer body-3",children:l})]})]})}const Dy=[1,2,3,4,5,6,7,8,9,10,11,12],fc=[8,4,2,1];function Cc(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 gc(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 bc(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 yc(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 vc(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 xc(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...fc.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function _c(e,t){return e===t||!fc.includes(e)?Number.POSITIVE_INFINITY:e}function wc(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 kc={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Ac(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Bc(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 Nc(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===rn?(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 Sy(e){return"sections"in e}function yo(e){const{t}=ge.useTranslation(),{title:a,className:r}=e;if(Sy(e))return n.jsx(xn,{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:u,cutLine:d,showDivLine:p,setters:m,showCutLine:f=!1,showDivLine2:C=!1,middleSections:g=[],extraSelected:y={},onExtraSelect:_}=e,h=[Cc(t,{hasImage:s,hasColloquial:i}),gc(t),...g,bc(t),...f?[yc(t)]:[],...C?[vc(t)]:[]],v={...Bc(t,{contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p}),...y},x=(b,k)=>{Nc(t,b,k,m)||_?.(b,k)};return n.jsx(xn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:h,selected:v,onSelect:x,sectionAlign:"horizontal"})}function Dc(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function vo(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let nr=null,sa=null;function Ey(e,t,a,r="",s=""){if(e.length===0||sa&&sa.iframe.isConnected&&Date.now()-sa.at<1e4)return;const i=r?vo(r):"";nr?.();let l=null;if(i){const d=document.title;document.title=i,l=()=>{document.title=d,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 u=c.contentDocument;if(!u){c.remove();return}sa={iframe:c,at:Date.now()},u.open(),u.write(xo(e,t,a,!0,i,s)),u.close(),c.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{c.remove(),sa?.iframe===c&&(sa=null)},0)})}function xo(e,t,a,r=!1,s="",i=""){s=s?vo(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",u=i?`<div class="paper-head">${Dc(i)}</div>`:"",d=e.map(p=>{const m=p.cloneNode(!0);return m.querySelectorAll('[data-play-state="play"]').forEach(f=>f.style.display=""),m.querySelectorAll('[data-play-state="pause"]').forEach(f=>f.style.display="none"),m.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(f=>f.remove()),m.querySelectorAll(".word-table-cell__spinner").forEach(f=>f.remove()),m.querySelectorAll("img").forEach(f=>{f.style.opacity==="0"&&(f.setAttribute("onload","this.style.opacity=''"),f.setAttribute("onerror","this.style.visibility='hidden'"))}),`<div class="paper-wrap">${u}${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(w&&u(y.code))return null;if(!y.badge&&!p)return m(
1000
1000
  `:""}
1001
1001
  <\/script>
1002
1002
  </body>
1003
- </html>`}const Ty=1e3;function _o({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:s,header:i=""}){const{t:l}=ge.useTranslation(),c=o.useCallback(()=>{Ey(e(),t,a,r,i)},[e,t,a,r,i]),u=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=window.open("","_blank");if(!m){s?.();return}m.document.write(xo(p,t,a,!1,r,i)),m.document.close()},[e,t,a,r,s,i]),d=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=xo(p,t,a,!1,r,i),f=new Blob([m],{type:"text/html;charset=utf-8"}),C=URL.createObjectURL(f),g=(r?vo(r):"")||l("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),b=Object.assign(document.createElement("a"),{href:C,download:`${g}.html`});document.body.appendChild(b),b.click(),document.body.removeChild(b),setTimeout(()=>URL.revokeObjectURL(C),Ty)},[e,t,a,r,i,l]);return{print:c,openNewWindow:u,downloadHtml:d}}function Sc(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"),[u,d]=o.useState(!0),[p,m]=o.useState(!0),[f,C]=o.useState(8),[g,b]=o.useState("right"),_=e.length,h=e.some(F=>(F.words??[]).length>1),v=e.some(F=>(F.words??[]).some(P=>!!P.colloquialLabel)),x=Math.min(f,Math.max(_,1)),y=o.useMemo(()=>sc(e,x),[e,x]),k=y.length>1,w=x,[N,B]=o.useState(!1);o.useEffect(()=>{let F=!1;if(!Gn()){B(!1);return}return Promise.all(e.flatMap(P=>(P.words??[]).map(G=>Gs(G.label,G.homonum)))).then(P=>{F||B(P.some(Boolean))},()=>{}),()=>{F=!0}},[e]);const A=o.useMemo(()=>[Cc(t,{hasImage:N,hasColloquial:v}),gc(t),..._>0?[xc(t,{hasPairs:h,itemCount:_})]:[],...k?[wc(t)]:[],bc(t),...w>1?[yc(t)]:[],...h?[vc(t)]:[]],[t,N,v,_,h,k,w]),D={...Bc(t,{contentTypes:s,orientation:a,showOutline:u,cutLine:l,showDivLine:p}),..._>0?{[t(h?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${x}\uAC1C`}:{},...k?{[t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:kc[g]}:{}},$=o.useCallback((F,P)=>{Nc(t,F,P,{setContentTypes:i,setOrientation:r,setShowOutline:d,setCutLine:c,setShowDivLine:m})||(P===t("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||P===t("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?C(_c(parseInt(F),_)):P===t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&b(Ac(F)))},[t,_]);return{settings:{orientation:a,contentTypes:s,cutLine:l,showOutline:u,showDivLine:p,count:w},filterSections:A,filterSelected:D,handleSelect:$,pages:y,isPaginated:k,pageNumberPosition:g}}function jy({items:e,words:t,title:a,subtitle:r,emptyText:s,buttons:i,renderButtons:l,renderFooter:c,footerClassName:u,printFileName:d,showSettings:p,autoPrint:m,className:f,onClose:C,scoring:g=!1,onScoreChange:b,printHeader:_,beforeClose:h}){const{t:v}=ge.useTranslation(),x=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(Q=>typeof Q=="string"&&Q.length>0).map((Q,pe)=>({id:`${Q}-${pe}`,words:[{label:Q}]})),[e,t]),{settings:y,filterSections:k,filterSelected:w,handleSelect:N,pages:B,isPaginated:A,pageNumberPosition:D}=Sc(x),$=o.useMemo(()=>oc(B.map(Q=>Q.length)),[B]),[F,P]=o.useState({}),G=o.useCallback((Q,pe)=>{P(Te=>({...Te,[tr(Q)]:nc(Te[tr(Q)]??null,pe)}))},[]),E=o.useRef(b);o.useEffect(()=>{E.current=b});const M=o.useRef(F);o.useEffect(()=>{M.current!==F&&(M.current=F,E.current?.(go(F)))},[F]);const H=o.useMemo(()=>go(F),[F]),ee=o.useRef(null),{toastMessage:q,toastKey:U,showWarning:W,clearToast:J}=al("warning"),I=o.useRef([]),T=o.useCallback(()=>A?I.current.filter(Q=>Q!==null):ee.current?[ee.current]:[],[A]),{print:O,openNewWindow:R}=_o({getElements:T,paperW:ra[y.orientation].width,paperH:ra[y.orientation].height,fileName:d??"",header:_??"",onPopupBlocked:()=>W(v("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."))}),S=o.useMemo(()=>c?void 0:l?l({print:O,openNewWindow:R}):d?[{label:v("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>R()},{label:v("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>O()},...i??[]]:i,[c,l,d,i,v,O,R]),L=o.useMemo(()=>c?c({print:O,openNewWindow:R}):void 0,[c,O,R]),K=o.useRef(!1),Z=o.useRef(O);return o.useEffect(()=>{Z.current=O},[O]),o.useEffect(()=>{if(!m||K.current)return;const Q=window.setTimeout(()=>{K.current=!0,Z.current()},100);return()=>window.clearTimeout(Q)},[m]),n.jsxs(Tn,{title:a??v("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:De("word-table-popup",f),buttons:S,footer:L,footerClassName:u,beforeClose:h,onClose:C,children:[x.length>0?n.jsxs("div",{className:"word-table-popup__body",children:[p&&n.jsx(yo,{sections:k,selected:w,onSelect:N}),A?n.jsx("div",{className:"word-table-popup__pages",children:B.map((Q,pe)=>n.jsx(oa,{items:Q,orientation:y.orientation,contentTypes:y.contentTypes,cutLine:y.cutLine,showOutline:y.showOutline,showDivLine:y.showDivLine,count:y.count,contentRef:Te=>{I.current[pe]=Te},pageNumber:{current:pe+1,total:B.length},pageNumberPosition:D,scoring:g,scoreIndexOffset:$[pe],marks:H,onMarkClick:G},pe))}):n.jsx("div",{className:"word-table-popup__table",children:n.jsx(oa,{items:x,orientation:y.orientation,contentTypes:y.contentTypes,cutLine:y.cutLine,showOutline:y.showOutline,showDivLine:y.showDivLine,count:y.count,contentRef:ee,fitHeight:!0,scoring:g,marks:H,onMarkClick:G})})]}):n.jsx("p",{className:"word-table-popup__empty body-3",children:s??v("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsx(ta,{message:q,position:"top",onClose:J},U)]})}const My=new Set(["x","triangle"]);function Ly(e,t){const a=[];for(let r=0;r<e.length;r++){const s=t[String(r)];s&&My.has(s)&&a.push(e[r])}return a}const $y=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function Ec(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=$y.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 Ry(e,t){const[,a,r]=$r(t).split("-"),s=`${a}.${r}`,{\uBC14\uD0D5:i,\uD68C\uCC28:l}=Ec(typeof e=="string"?{name:e}:e),c=l>=2?`${l}\uCC28 `:"";return`${i||"\uB2E8\uC5B4\uD45C"} ${c}\uBCF5\uC2B5 ${s}`}function Py(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:Ec(e).\uD68C\uCC28}}function Iy(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 Fy(e){return e.map(t=>t.label).join(" / ")}function Oy(e){return e.map(t=>t.homonum!=null?`${t.label}#${t.homonum}`:t.label).join(" / ")}function Tc(e){return e.split(" / ").map(t=>t.replace(/#\d+$/,"")).join(" / ")}function Hy(e,t,a){const r=oi(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}function jc(e,t,a){return a===0?0:(e+t*.5)/a}function Vy(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 u=t.get(c)??{o:0,triangle:0,x:0,latest:l,latestAt:s.scoredAt};if(l==="o")u.o++;else if(l==="triangle")u.triangle++;else if(l==="x")u.x++;else continue;u.latest=l,u.latestAt=s.scoredAt,t.set(c,u)}const r=[];for(const[s,i]of t){const l=i.o+i.triangle+i.x;r.push({label:Tc(s),key:s,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:jc(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 zy(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(u=>u==="o"||u==="triangle"||u==="x").length,i=r.rows.filter(c=>s(c)>0).sort((c,u)=>c.scoredAt.localeCompare(u.scoredAt));if(i.length===0)continue;const l=i.map(c=>{const u=Object.values(c.marks),d=u.filter(m=>m==="o").length,p=u.filter(m=>m==="triangle").length;return jc(d,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 Wy(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function qy(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 Uy(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)||qy(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 u=l.itemId?.trim()||c,d=`${l.trainingType}|${u}`,p=t.get(d)??{trainingType:l.trainingType,itemId:u,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(d,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 Gy(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function Ky(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 wo=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function Yy(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}`,u=t.get(c)??{setId:l,trainingType:i.trainingType,pending:0};u.pending++,t.set(c,u)}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=>wo.includes(i.trainingType)).sort(r),word:s.filter(i=>!wo.includes(i.trainingType)).sort(r),noSet:a}}function Zy(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 u of i.cellLabels)r.has(u)&&!l.has(u)&&(l.add(u),c.push(u));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 Xy(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function Jy(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 ko(e,t,a){return typeof e=="string"&&e?e:t.replace(/\{\{(\w+)\}\}/g,(r,s)=>String(a[s]))}function Qy(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?ko(kt.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?ko(kt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):ko(kt.t("customers.duration.sec",{s,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s})}function e5(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 t5(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function n5(e,t){return e.filter(a=>a.key!==t)}function a5(e,t,a){const r=e.filter(d=>d.pinned),s=new Set(r.map(d=>d.key)),i=e.length-r.length,l=[],c=new Set(s);for(const d of t){if(l.length>=i)break;const p=a(d);c.has(p)||(c.add(p),l.push({key:p,value:d,pinned:!1}))}const u=[...l];return e.map(d=>d.pinned?d:u.shift()).filter(d=>d!==void 0)}function r5(e){return e.map(t=>t.value)}function o5(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},s=t?.key?` icon-grid-menu__button--${t.key}`:"",i=o.useId();return n.jsxs("div",{className:`icon-grid-menu__button-wrapper${s}`,children:[n.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":t?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,children:n.jsx(qe,{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 s5(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),u=i?a:l,d=o.useRef(r);o.useEffect(()=>{d.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 C=l??m;l==null&&c(C),d.current?.(C)},[i,m]);const f=o.useCallback(C=>{const g=u===C?null:C;p.current=!0,i||c(g),r?.(g)},[u,i,r]);return n.jsx("div",{className:`icon-grid-menu icon-grid-menu--${s}`,children:(t||[]).map(C=>n.jsx(o5,{category:C,isSelected:u===C.key,onClick:()=>f(C.key)},C.key))})}function i5({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 l5({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 Ty=1e3;function _o({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:s,header:i=""}){const{t:l}=ge.useTranslation(),c=o.useCallback(()=>{Ey(e(),t,a,r,i)},[e,t,a,r,i]),u=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=window.open("","_blank");if(!m){s?.();return}m.document.write(xo(p,t,a,!1,r,i)),m.document.close()},[e,t,a,r,s,i]),d=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=xo(p,t,a,!1,r,i),f=new Blob([m],{type:"text/html;charset=utf-8"}),C=URL.createObjectURL(f),g=(r?vo(r):"")||l("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),y=Object.assign(document.createElement("a"),{href:C,download:`${g}.html`});document.body.appendChild(y),y.click(),document.body.removeChild(y),setTimeout(()=>URL.revokeObjectURL(C),Ty)},[e,t,a,r,i,l]);return{print:c,openNewWindow:u,downloadHtml:d}}function Sc(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"),[u,d]=o.useState(!0),[p,m]=o.useState(!0),[f,C]=o.useState(8),[g,y]=o.useState("right"),_=e.length,h=e.some(O=>(O.words??[]).length>1),v=e.some(O=>(O.words??[]).some(P=>!!P.colloquialLabel)),x=Math.min(f,Math.max(_,1)),b=o.useMemo(()=>sc(e,x),[e,x]),k=b.length>1,w=x,[N,B]=o.useState(!1);o.useEffect(()=>{let O=!1;if(!Gn()){B(!1);return}return Promise.all(e.flatMap(P=>(P.words??[]).map(K=>Gs(K.label,K.homonum)))).then(P=>{O||B(P.some(Boolean))},()=>{}),()=>{O=!0}},[e]);const A=o.useMemo(()=>[Cc(t,{hasImage:N,hasColloquial:v}),gc(t),..._>0?[xc(t,{hasPairs:h,itemCount:_})]:[],...k?[wc(t)]:[],bc(t),...w>1?[yc(t)]:[],...h?[vc(t)]:[]],[t,N,v,_,h,k,w]),D={...Bc(t,{contentTypes:s,orientation:a,showOutline:u,cutLine:l,showDivLine:p}),..._>0?{[t(h?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${x}\uAC1C`}:{},...k?{[t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:kc[g]}:{}},$=o.useCallback((O,P)=>{Nc(t,O,P,{setContentTypes:i,setOrientation:r,setShowOutline:d,setCutLine:c,setShowDivLine:m})||(P===t("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||P===t("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?C(_c(parseInt(O),_)):P===t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&y(Ac(O)))},[t,_]);return{settings:{orientation:a,contentTypes:s,cutLine:l,showOutline:u,showDivLine:p,count:w},filterSections:A,filterSelected:D,handleSelect:$,pages:b,isPaginated:k,pageNumberPosition:g}}function jy({items:e,words:t,title:a,subtitle:r,emptyText:s,buttons:i,renderButtons:l,renderFooter:c,footerClassName:u,printFileName:d,showSettings:p,autoPrint:m,className:f,onClose:C,scoring:g=!1,onScoreChange:y,printHeader:_,beforeClose:h}){const{t:v}=ge.useTranslation(),x=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(Q=>typeof Q=="string"&&Q.length>0).map((Q,de)=>({id:`${Q}-${de}`,words:[{label:Q}]})),[e,t]),{settings:b,filterSections:k,filterSelected:w,handleSelect:N,pages:B,isPaginated:A,pageNumberPosition:D}=Sc(x),$=o.useMemo(()=>oc(B.map(Q=>Q.length)),[B]),[O,P]=o.useState({}),K=o.useCallback((Q,de)=>{P(Te=>({...Te,[tr(Q)]:nc(Te[tr(Q)]??null,de)}))},[]),S=o.useRef(y);o.useEffect(()=>{S.current=y});const L=o.useRef(O);o.useEffect(()=>{L.current!==O&&(L.current=O,S.current?.(go(O)))},[O]);const H=o.useMemo(()=>go(O),[O]),ee=o.useRef(null),{toastMessage:U,toastKey:q,showWarning:W,clearToast:J}=al("warning"),I=o.useRef([]),E=o.useCallback(()=>A?I.current.filter(Q=>Q!==null):ee.current?[ee.current]:[],[A]),{print:F,openNewWindow:R}=_o({getElements:E,paperW:ra[b.orientation].width,paperH:ra[b.orientation].height,fileName:d??"",header:_??"",onPopupBlocked:()=>W(v("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."))}),T=o.useMemo(()=>c?void 0:l?l({print:F,openNewWindow:R}):d?[{label:v("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>R()},{label:v("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>F()},...i??[]]:i,[c,l,d,i,v,F,R]),M=o.useMemo(()=>c?c({print:F,openNewWindow:R}):void 0,[c,F,R]),G=o.useRef(!1),Y=o.useRef(F);return o.useEffect(()=>{Y.current=F},[F]),o.useEffect(()=>{if(!m||G.current)return;const Q=window.setTimeout(()=>{G.current=!0,Y.current()},100);return()=>window.clearTimeout(Q)},[m]),n.jsxs(Tn,{title:a??v("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:De("word-table-popup",f),buttons:T,footer:M,footerClassName:u,beforeClose:h,onClose:C,children:[x.length>0?n.jsxs("div",{className:"word-table-popup__body",children:[p&&n.jsx(yo,{sections:k,selected:w,onSelect:N}),A?n.jsx("div",{className:"word-table-popup__pages",children:B.map((Q,de)=>n.jsx(oa,{items:Q,orientation:b.orientation,contentTypes:b.contentTypes,cutLine:b.cutLine,showOutline:b.showOutline,showDivLine:b.showDivLine,count:b.count,contentRef:Te=>{I.current[de]=Te},pageNumber:{current:de+1,total:B.length},pageNumberPosition:D,scoring:g,scoreIndexOffset:$[de],marks:H,onMarkClick:K},de))}):n.jsx("div",{className:"word-table-popup__table",children:n.jsx(oa,{items:x,orientation:b.orientation,contentTypes:b.contentTypes,cutLine:b.cutLine,showOutline:b.showOutline,showDivLine:b.showDivLine,count:b.count,contentRef:ee,fitHeight:!0,scoring:g,marks:H,onMarkClick:K})})]}):n.jsx("p",{className:"word-table-popup__empty body-3",children:s??v("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsx(ta,{message:U,position:"top",onClose:J},q)]})}const My=new Set(["x","triangle"]);function Ly(e,t){const a=[];for(let r=0;r<e.length;r++){const s=t[String(r)];s&&My.has(s)&&a.push(e[r])}return a}const $y=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function Ec(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=$y.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 Ry(e,t){const[,a,r]=$r(t).split("-"),s=`${a}.${r}`,{\uBC14\uD0D5:i,\uD68C\uCC28:l}=Ec(typeof e=="string"?{name:e}:e),c=l>=2?`${l}\uCC28 `:"";return`${i||"\uB2E8\uC5B4\uD45C"} ${c}\uBCF5\uC2B5 ${s}`}function Py(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:Ec(e).\uD68C\uCC28}}function Iy(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 Fy(e){return e.map(t=>t.label).join(" / ")}function Oy(e){return e.map(t=>t.homonum!=null?`${t.label}#${t.homonum}`:t.label).join(" / ")}function Tc(e){return e.split(" / ").map(t=>t.replace(/#\d+$/,"")).join(" / ")}function Hy(e,t,a){const r=oi(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}function jc(e,t,a){return a===0?0:(e+t*.5)/a}function Vy(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 u=t.get(c)??{o:0,triangle:0,x:0,latest:l,latestAt:s.scoredAt};if(l==="o")u.o++;else if(l==="triangle")u.triangle++;else if(l==="x")u.x++;else continue;u.latest=l,u.latestAt=s.scoredAt,t.set(c,u)}const r=[];for(const[s,i]of t){const l=i.o+i.triangle+i.x;r.push({label:Tc(s),key:s,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:jc(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 zy(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(u=>u==="o"||u==="triangle"||u==="x").length,i=r.rows.filter(c=>s(c)>0).sort((c,u)=>c.scoredAt.localeCompare(u.scoredAt));if(i.length===0)continue;const l=i.map(c=>{const u=Object.values(c.marks),d=u.filter(m=>m==="o").length,p=u.filter(m=>m==="triangle").length;return jc(d,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 Wy(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function qy(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 Uy(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)||qy(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 u=l.itemId?.trim()||c,d=`${l.trainingType}|${u}`,p=t.get(d)??{trainingType:l.trainingType,itemId:u,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(d,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 Gy(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function Ky(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 wo=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function Yy(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}`,u=t.get(c)??{setId:l,trainingType:i.trainingType,pending:0};u.pending++,t.set(c,u)}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=>wo.includes(i.trainingType)).sort(r),word:s.filter(i=>!wo.includes(i.trainingType)).sort(r),noSet:a}}function Zy(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 u of i.cellLabels)r.has(u)&&!l.has(u)&&(l.add(u),c.push(u));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 Xy(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function Jy(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 ko(e,t,a){return typeof e=="string"&&e?e:t.replace(/\{\{(\w+)\}\}/g,(r,s)=>String(a[s]))}function Qy(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?ko(kt.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?ko(kt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):ko(kt.t("customers.duration.sec",{s,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s})}function e5(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 t5(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function n5(e,t){return e.filter(a=>a.key!==t)}function a5(e,t,a){const r=e.filter(d=>d.pinned),s=new Set(r.map(d=>d.key)),i=e.length-r.length,l=[],c=new Set(s);for(const d of t){if(l.length>=i)break;const p=a(d);c.has(p)||(c.add(p),l.push({key:p,value:d,pinned:!1}))}const u=[...l];return e.map(d=>d.pinned?d:u.shift()).filter(d=>d!==void 0)}function r5(e){return e.map(t=>t.value)}function o5(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},s=t?.key?` icon-grid-menu__button--${t.key}`:"",i=o.useId();return n.jsxs("div",{className:`icon-grid-menu__button-wrapper${s}`,children:[n.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":t?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,children:n.jsx(qe,{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 s5(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),u=i?a:l,d=o.useRef(r);o.useEffect(()=>{d.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 C=l??m;l==null&&c(C),d.current?.(C)},[i,m]);const f=o.useCallback(C=>{const g=u===C?null:C;p.current=!0,i||c(g),r?.(g)},[u,i,r]);return n.jsx("div",{className:`icon-grid-menu icon-grid-menu--${s}`,children:(t||[]).map(C=>n.jsx(o5,{category:C,isSelected:u===C.key,onClick:()=>f(C.key)},C.key))})}function i5({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 l5({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
1004
1004
  \uC2E0\uB8B0\uB97C \uC313\uACE0
1005
1005
  \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
1006
- `).map((l,c,u)=>n.jsxs(o.Fragment,{children:[l,c<u.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:eo,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 c5({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:s,className:i,containerClassName:l,renderLink:c,menuLabel:u}){const{t:d}=ge.useTranslation(),p=u??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[m,f]=o.useState(!1),C=o.useId(),g=o.useRef(null);o.useEffect(()=>{if(!m)return;const h=In(()=>{const y=document.getElementById(C);y&&y.contains(document.activeElement)&&g.current?.focus(),f(!1)}),v=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,x=y=>{y.matches&&f(!1)};return v&&(v.matches&&f(!1),v.addEventListener?.("change",x)),()=>{h(),v?.removeEventListener?.("change",x)}},[m,C]);const b=l?`${l} landing-header__inner`:"landing-header__inner",_=(h,v)=>c?c(h,{onClick:v}):n.jsx("a",{href:h.href,onClick:v,"aria-current":h.current?"page":void 0,children:h.label});return n.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[n.jsxs("div",{className:b,children:[e!=null&&(()=>{const h=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:h}):n.jsx("div",{className:"landing-header__brand",children:h})})(),r.length>0&&n.jsx("nav",{className:"landing-header__links",children:r.map((h,v)=>n.jsx("span",{children:_(h)},`${v}:${h.href}`))}),n.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&n.jsx("button",{ref:g,type:"button",onClick:()=>f(h=>!h),"aria-expanded":m,"aria-controls":C,"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:C,hidden:!m,className:"landing-header__drawer",children:n.jsx("div",{className:l??void 0,children:r.map((h,v)=>n.jsx("span",{className:"landing-header__drawer-item",children:_(h,()=>f(!1))},`${v}:${h.href}`))})})]})}function u5({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,...Xl(a),children:[n.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}const ia=9,d5=e=>Math.round(Math.min(ia,Math.max(0,e))/ia*100),p5=e=>e/100*ia,Sa=2,Mc=.1,m5=e=>Math.min(Sa,Math.max(0,e)),h5=.1,f5=e=>Math.round(e*1e6)/1e6;function Ea(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return m5(t);const a=Math.min(ia,Math.max(0,Number(e.level)||0))/ia,r=Number(e.mainVolume);return r>0?a>0?f5(Math.min(Sa,Math.max(h5,a/r))):0:1}const Lc=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function $c(e){return Lc(e)}function Ao(e){return Lc(e)*Ea(e)}function Bo(e,t=Hs()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,Ao(e)/a)}function Ta(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=Ea({level:a.level,mainVolume:a.mainVolume})),a}const ja={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},No=o.createContext(null);function ar(){return o.useContext(No)}const Do=e=>`${W0()}/${e}`,Rc=e=>Array.from({length:10},(t,a)=>Do(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),rr={get defaultNoise(){return Do("noise1.mp3")},get street(){return Rc("noise2")},get restaurant(){return Rc("noise3")},get buzz(){return Do("noise4.mp3")}};function C5(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 g5({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),u=o.useRef(null),d=o.useRef(null),p=o.useRef(null),m=o.useRef(0),f=o.useRef(null),C=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),f.current!==null&&(clearTimeout(f.current),f.current=null)},[]),g=o.useCallback((x,y=250)=>{const k=s.current;if(!k)return;const w=u.current;if(w){u.current=null;try{k.pause()}catch{}k.src=w,k.load()}if(!k.src)return;m.current+=1,C();try{Sr(),Ra(k).then(D=>{if(s.current===k)try{r.current?.("noise",D)}catch{}})}catch{}const N=k.paused?0:Pa(k);k.paused&&Nn(k,0),k.play().catch(()=>{});const B=performance.now(),A=()=>{const D=Math.min(1,(performance.now()-B)/y);try{Nn(k,N+(x-N)*D)}catch{}D<1?p.current=requestAnimationFrame(A):p.current=null};p.current=requestAnimationFrame(A)},[C]),b=o.useCallback((x=250,y)=>{const k=s.current;if(!k||k.paused){y?.();return}const w=++m.current;C();const N=performance.now(),B=Pa(k),A=()=>{const D=Math.min(1,(performance.now()-N)/x);try{Nn(k,B*(1-D))}catch{}if(D<1)p.current=requestAnimationFrame(A);else{p.current=null,f.current!==null&&(clearTimeout(f.current),f.current=null);try{k.pause()}catch{}y?.()}};p.current=requestAnimationFrame(A),f.current=setTimeout(()=>{if(f.current=null,m.current===w){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{k.paused||(Nn(k,0),k.pause(),y?.())}catch{}}},x+150)},[C]);o.useEffect(()=>{const x=document.createElement("audio");return x.loop=!0,x.crossOrigin="anonymous",s.current=x,()=>{C();try{x.pause(),x.src=""}catch{}s.current=null,c.current=null,u.current=null}},[C]);const _=e?Bo(e.settings):0,h=!!e?.settings.enabled&&_>0;o.useEffect(()=>{if(!h)return;let x=0;const y=setInterval(()=>{const k=s.current;if(!k||k.paused){x=0;return}const w=t.current;if(w&&!w.paused&&!w.ended||a.current==="playing"){x=0;return}x+=1,x>=2&&(x=0,b())},400);return()=>clearInterval(y)},[b,h,t,a]),o.useEffect(()=>{const x=()=>{const y=s.current;if(document.hidden){if(y&&!y.paused){C();try{y.pause()}catch{}}return}if(!y||!y.paused)return;const k=t.current,w=!!k&&!k.paused&&!k.ended||a.current==="playing",N=d.current;w&&N?.enabled&&N.volume>0&&g(N.volume)};return document.addEventListener("visibilitychange",x),()=>document.removeEventListener("visibilitychange",x)},[C,g,t,a]),o.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,volume:_,type:e.settings.type}:null},[e,e?.settings.enabled,_,e?.settings.type]);const v=o.useRef(null);return o.useEffect(()=>()=>{v.current?.(),v.current=null},[]),o.useEffect(()=>{const x=e?.settings,y=s.current;if(!y)return;const k=x?Bo(x):0;if(!x||!x.enabled||k===0){b();return}if(c.current!==x.type){const w=C5(x.type);w&&(c.current=x.type,l(w),u.current=w,b(150,()=>{if(u.current!==w)return;u.current=null,y.src=w,y.load();const N=t.current;if(N&&!N.paused){v.current?.();const B=()=>{y.removeEventListener("canplay",B),v.current===A&&(v.current=null);const D=t.current,$=d.current;D&&!D.paused&&!D.ended&&$?.enabled&&$.volume>0&&g($.volume)},A=()=>y.removeEventListener("canplay",B);v.current=A,y.addEventListener("canplay",B)}}))}else{const w=t.current,N=!!w&&!w.paused&&!w.ended||a.current==="playing";if(N&&u.current)g(k);else if(N&&y.paused&&y.src)g(k);else if(!y.paused)if(!N)b();else{C();const B=Pa(y),A=performance.now(),D=()=>{const $=Math.min(1,(performance.now()-A)/150);try{Nn(y,B+(k-B)*$)}catch{}$<1?p.current=requestAnimationFrame(D):p.current=null};p.current=requestAnimationFrame(D)}}},[e?.settings,e?.settings.enabled,_,e?.settings.type,C,g,b,t,a,d]),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:d,cancelNoiseFade:C,fadeInNoise:g,fadeOutNoise:b}}function b5({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:i,setPlaybackState:l,setStateLocal:c,fadeInNoise:u,fadeOutNoise:d,noiseSettingsRef:p,onDoneRef:m,handleEndRef:f}){const C=o.useRef(null),g=o.useRef(0),b=o.useRef(null),_=o.useRef(0),h=o.useRef(!1);o.useEffect(()=>()=>{_.current++;try{if(b.current&&(cancelAnimationFrame(b.current),b.current=null),h.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}h.current=!1}}catch{}},[]);const v=(k,w=1)=>{try{const N=(k||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(k||"").length);return Math.max(700,Math.round(N*300/Math.max(.25,w)))}catch{return 1200}},x=o.useCallback(k=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!1)}catch{}return}const w=window.speechSynthesis,N=++_.current;try{try{w.cancel()}catch{}const B=k??e,A=Array.isArray(B)?B.filter(E=>!!E):[B||""];A.length===0&&A.push("");const D=Math.max(.3,Math.min(3,t));g.current=A.reduce((E,M)=>E+v(M,D||1),0),C.current=performance.now(),i(0),l("playing"),c("playMode");const $=p.current;$?.enabled&&($?.volume??0)>0&&u($.volume);const F=()=>{try{const E=C.current||performance.now(),M=performance.now()-E,H=g.current||1200,ee=Math.min(1,M/H);try{r.current&&(r.current.style.left=`${ee*100}%`),s.current&&s.current.style.setProperty("--progress",String(ee))}catch{}ee<1&&(b.current=requestAnimationFrame(F))}catch{}},P=()=>{if(N===_.current)try{b.current&&(cancelAnimationFrame(b.current),b.current=null),i(1),l("stopped");try{f.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},G=E=>{const M=new SpeechSynthesisUtterance(A[E]);try{M.rate=D}catch{}try{M.volume=Math.max(0,Math.min(1,a))}catch{}M.onend=()=>{if(N===_.current){if(E<A.length-1){try{G(E+1)}catch{P()}return}P()}},M.onerror=()=>{P()},M.onstart=()=>{if(!(E>0))try{b.current&&(cancelAnimationFrame(b.current),b.current=null),b.current=requestAnimationFrame(F)}catch{}},h.current=!0,w.speak(M)};try{G(0)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,t,a,u,r,s,i,l,c,p,m,f]),y=o.useCallback(()=>{_.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}b.current&&(cancelAnimationFrame(b.current),b.current=null),d(),C.current=null}catch{}l("stopped"),c("active"),i(0)},[d,l,c,i]);return{startTTS:x,stopTTS:y}}async function y5(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,u=Math.max(t,c),d=Math.floor(u/t)||1;return new Array(t).fill(0).map((p,m)=>{const f=m*d,C=Math.min(f+d,u);let g=0;for(let b=f;b<C;b++){const _=Math.abs(l[b]);_>g&&(g=_)}return g})}catch{return null}finally{try{r?.close?.()}catch{}}}async function Pc(e,t,a){try{const r=await fetch(e);if(r.ok===!1)return null;const s=await r.arrayBuffer();return await y5(s,t,a)}catch(r){try{const s=Xs(r)}catch{}return null}}const Ic=45,v5=74,x5=2;function Ma(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function So(e){return Ma(e)/45}const Fc=4;function _5(e){const{src:t,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:i,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:u=0,mainVolume:d=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,f=o.useRef(null),C=o.useRef(null),[g,b]=o.useState(null),[_,h]=o.useState(!1),[v,x]=o.useState(null),[y,k]=o.useState(2),[w,N]=o.useState(0),[B,A]=o.useState(null),[D,$]=o.useState(!1),[F,P]=o.useState(!1),G=3,E=3,M=1,H=300,ee=o.useRef(0),q=o.useCallback(()=>{const oe=f.current,z=C&&C.current?C.current:oe?oe.closest(".audio-player__wave"):null,re=z?z.getBoundingClientRect():oe?oe.getBoundingClientRect():null,ce=re?re.width:0,fe=re?Math.max(100,re.width):320,ye=re?re.height:0,Ne=Math.max(M,Math.min(H,Math.floor((fe+E)/(G+E)))),we=Ne*G,Be=Math.max(0,Ne-1),je=Math.max(0,Be>0?(fe-we)/Be:E);return{bars:Ne,gap:je,height:ye,width:ce}},[]),U=o.useRef(void 0),W=o.useRef(null),J=o.useCallback(async(oe,z,{quiet:re=!1}={})=>{const ce=++ee.current,fe=()=>ee.current===ce;try{if(re||h(!1),U.current=oe,!oe){fe()&&b(null);return}let ye=z;if(!ye)try{for(let Be=0;Be<4&&!(f.current||C.current);Be++)await new Promise(je=>requestAnimationFrame(je));await new Promise(Be=>requestAnimationFrame(Be));const we=q();we.height>0&&N(we.height),ye=we.bars,k(we.gap)}catch{ye=120}W.current=ye;const Ne=await Pc(oe,ye);if(!fe())return;if(!Ne){b(null),h(!1);return}b(Ne),x(ye),h(!0)}catch{if(!fe())return;b(null),h(!1)}},[h,b,N,k,x,q]);o.useEffect(()=>{const oe=C.current;if(!oe||typeof ResizeObserver>"u")return;let z=null;const re=new ResizeObserver(()=>{z!==null&&cancelAnimationFrame(z),z=requestAnimationFrame(()=>{z=null;try{const ce=q();if(ce.width<=0||(ce.height>0&&N(ce.height),W.current===null||ce.bars===W.current))return;const fe=U.current;k(ce.gap),fe?J(fe,ce.bars,{quiet:!0}).catch(()=>{}):W.current=ce.bars}catch{}})});return re.observe(oe),()=>{re.disconnect(),z!==null&&cancelAnimationFrame(z)}},[q,J]),o.useEffect(()=>{const oe=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;J(typeof oe=="string"?oe:void 0).catch(()=>{}),P(!1)},[t,a,J]),o.useEffect(()=>{let oe=!1;if($(!1),!i||!v){A(null);return}const z=u>0?u*(c||1):void 0;return Pc(i,v,z).then(re=>{oe||(A(re),re||$(!0))}).catch(()=>{oe||(A(null),$(!0))}),()=>{oe=!0}},[i,v,u,c]);const I=Math.max(0,Math.min(1,d)),T=o.useMemo(()=>g&&g.length&&Math.max(...g)||1,[g]),O=v||40,R=o.useMemo(()=>Array.from({length:O}).map((oe,z)=>{const re=g&&g[z]!=null?g[z]:null,ce=re==null?null:Math.min(1,re/T*I),fe=ce!=null&&w>0&&Ma(ce)<=Fc,ye=ce==null?.15:fe?0:So(ce),Ne=O>1?z/(O-1):0;return n.jsx("div",{className:fe?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ye,"--i":z,"--mix":Ne}},z)}),[O,g,T,I,w]),S={"--progress":String(Math.max(0,Math.min(1,r)))},L=i?Math.max(1,l):1,K={"--bar-gap":`${y}px`,"--wave-h":`${Ma(L)}px`,"--wave-h1":`${Ic}px`},Z=I*Math.max(0,l)/Hs(),Q=_&&(i?!!B||D:!0);o.useEffect(()=>{Q&&P(!0)},[Q]);const pe=F?_:Q;o.useEffect(()=>{p?.(pe)},[pe,p]);const Te=v||40,ke=o.useMemo(()=>Array.from({length:Te}).map((oe,z)=>{const re=B&&B[z]!=null?B[z]:null,ce=re==null?0:re/T*Z,fe=w>0&&Ma(ce)<=Fc,ye=fe?0:So(ce),Ne=Te>1?z/(Te-1):0;return n.jsx("div",{className:fe?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ye,"--i":z,"--mix":Ne}},z)}),[Te,B,T,Z,w]);return n.jsxs("div",{className:"audio-player__wave",ref:C,style:K,children:[i&&n.jsx("div",{className:`audio-player__wave-noise ${Q?"is-ready":""}`,"aria-hidden":"true",children:ke}),m&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${pe?"is-ready":""}`,ref:f,children:R}),n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${pe?"is-ready":""}`,ref:s,style:S,children:R})]})]})}const w5={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 Eo(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 d=isFinite(s.duration)&&s.duration||0;l(),a(d)},u=d=>{i||(i=!0,l(),t.rejectOnError?r(new Error(d)):a(0))};s.addEventListener("loadedmetadata",c),s.addEventListener("error",()=>u("audio load failed")),setTimeout(()=>u("audio load timeout"),t.timeoutMs),s.src=e})}const k5=2e3;function Oc(e,t=k5){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 A5({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=o.useRef(!1),s=o.useRef([]),i=o.useCallback(u=>{if(r.current=u,!u||!s.current.length)return;const d=s.current;s.current=[];for(const p of d)p(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),c=o.useCallback(()=>!e&&!t||r.current?Promise.resolve(!0):new Promise(u=>{const d=m=>{clearTimeout(p),s.current=s.current.filter(f=>f!==d),u(m)},p=setTimeout(()=>d(!0),a);s.current.push(d)}),[e,t,a]);return o.useEffect(()=>()=>{const u=s.current;s.current=[];for(const d of u)d(!1)},[]),{onReadyChange:i,waitForReady:c,markNotReady:l}}function B5(){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 N5({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 D5({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 S5(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function E5({ended:e,completedByEnd:t}){return!!e||!!t}function T5(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function j5(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function M5(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 L5(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 $5({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 d=()=>{try{const p=e.current,m=Array.isArray(r.current)?r.current[s.current||0]:void 0,f=m&&Number.isFinite(m.duration)&&(m.duration??0)>0?0:L5(p),C=t.current;if(f===null)try{C&&C.style.visibility!=="hidden"&&(C.style.visibility="hidden")}catch{}else{const g=D5({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:s.current,audioDuration:f});try{C&&(C.style.visibility&&(C.style.visibility=""),C.style.left=`${g*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(g))}catch{}}}catch{}i.current=requestAnimationFrame(d)};i.current=requestAnimationFrame(d)},[e,t,a,r,s]),u=o.useCallback(d=>{l();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[l,t,a]);return o.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:u}}function To({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:s=!1,ttsText:i=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:u=!0}){const{t:d}=ge.useTranslation(),p=e,m=ar(),f=o.useRef(m?.registerAnalyser);o.useEffect(()=>{f.current=m?.registerAnalyser});const C=o.useRef(null),g=o.useRef(null),b=o.useRef(null),_=B5(),h=o.useRef(null),v=o.useRef(!1),x=o.useRef(0),y=o.useRef(null),{ref:k,rect:w,show:N,hide:B}=N5();o.useEffect(()=>()=>{f.current?.("main",null),f.current?.("noise",null)},[]);const[A,D]=o.useState(!1),[$,F]=o.useState("idle"),[P,G]=o.useState("stopped"),E=o.useRef("stopped");o.useEffect(()=>{E.current=P},[P]);const[M,H]=o.useState(0),[ee,q]=o.useState("active"),U=o.useRef(!1);o.useEffect(()=>{if(ee!=="playMode"||!U.current)return;U.current=!1;const V=typeof document<"u"?document.activeElement:null;if(V&&V!==document.body)return;const ie=b.current?.querySelectorAll("button")[1];try{ie?.focus()}catch{}},[ee]);const[W,J]=o.useState(null),[I,T]=o.useState(null),[O,R]=o.useState(0),[S,L]=o.useState(!1),[K,Z]=o.useState(0),Q=m?.playbackRate??1,pe=m?.mainVolume??1,Te=m?Ao(m.settings):0,ke=m?$c(m.settings):pe,[oe,z]=o.useState("idle"),[re,ce]=o.useState(""),[fe]=o.useState("top"),ye=o.useRef(null),Ne=o.useRef(0),we=o.useRef(null),{start:Be,stop:je,settleTo:se}=$5({audioRef:C,fillRef:g,waveProgressRef:we,sourcesRef:ye,currentIndexRef:Ne}),{onReadyChange:te,waitForReady:me,markNotReady:ne}=A5({showSoundWaveForm:c,showNoiseWaveForm:u}),Ce=o.useRef(null),ve=o.useRef(s),Ye=o.useRef(r),He=o.useRef(null),Ue=o.useRef(!1),[Se,Ge]=o.useState(!1),$e=o.useCallback(V=>{Ue.current=V,Ge(V)},[]),Ie=o.useRef(null),{activeNoiseUrl:Ve,noiseSettingsRef:at,fadeInNoise:ot,fadeOutNoise:We}=g5({noisePlayer:m,audioRef:C,playbackStateRef:E}),{startTTS:Xe,stopTTS:gt}=b5({ttsText:i,playbackRate:Q,mainVolume:ke,fillRef:g,waveProgressRef:we,setProgress:H,setPlaybackState:G,setStateLocal:q,fadeInNoise:ot,fadeOutNoise:We,noiseSettingsRef:at,onDoneRef:Ye,handleEndRef:Ie});o.useEffect(()=>{yt.current=gt});const Bt=V=>{if(typeof window>"u"||!window.speechSynthesis){try{ce(d("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}Xe(V);return}Dt("tts"),Xe(V)},Tt=Array.isArray(t)?t.filter(Boolean):t?[t]:[],dt=(!Tt||Tt.length===0)&&!!i,Qe=Array.isArray(W)&&W.length>0?W:Array.isArray(I)&&I.length>0?I:null,Ze=Math.max(Array.isArray(Qe)?Qe.length:0,Tt.length),Oe=o.useRef(!0);o.useEffect(()=>(Oe.current=!0,()=>{Oe.current=!1}),[]);const rt=o.useRef(0),et=()=>{rt.current+=1,x.current+=1},yt=o.useRef(null),ze=o.useRef(null),it=o.useRef(null),Nt=o.useRef(null);Nt.current||(Nt.current=()=>{it.current=null;const V=C.current;if(ze.current==="audio"&&V&&!V.paused){rt.current+=1,x.current+=1;try{V.pause()}catch{}Oe.current&&G("paused")}else if(ze.current==="tts")try{yt.current?.()}catch{}});const Dt=V=>{ze.current=V,it.current=Xa(Nt.current)},Le=()=>{it.current?.(),it.current=null};o.useEffect(()=>()=>{Nt.current&&Ja(Nt.current)},[]);const Ke=o.useCallback(async(V,ie=3,ue=50)=>{const xe=rt.current;for(let _e=0;_e<ie;_e++){if(!Oe.current||xe!==rt.current)return!1;try{return Dt("audio"),await V.play(),!0}catch(Me){if((Me instanceof Error||typeof Me=="object"&&Me&&"name"in Me?Me.name:void 0)==="AbortError"){if(xe!==rt.current)return!1;await new Promise(nt=>setTimeout(nt,ue));continue}try{ce(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{ce(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),St=o.useCallback(()=>{const V=C.current;if(!V)return;const ie=()=>{G("playing"),q("playMode"),L(!0),Be();try{Sr(),Ra(V).then(Me=>{if(Oe.current)try{f.current?.("main",Me)}catch{}})}catch{}const _e=at.current;_e?.enabled&&(_e?.volume??0)>0&&ot(_e.volume)},ue=()=>{E5({ended:!!V?.ended,completedByEnd:Ue.current})||(G("paused"),je(),We())},xe=()=>{try{const _e=ye.current,Me=S5(_e,Ne.current);if(Me!==null){Ne.current=Me,R(Me),L(!0);const nt=_e?.[Me]&&_e[Me].src;if(nt&&V){V.src=nt,V.load(),Ke(V).catch(()=>{});return}}}catch{}G("stopped"),H(1);try{if(V)try{V.currentTime=0}catch{}}catch{}je(),L(!1),We();try{!ve.current&&Ie.current&&Ie.current()}catch{}};return V.addEventListener("play",ie),V.addEventListener("pause",ue),V.addEventListener("ended",xe),()=>{try{V.removeEventListener("play",ie),V.removeEventListener("pause",ue),V.removeEventListener("ended",xe),je()}catch{}}},[ot,We,Ke,at,Be,je]);o.useEffect(()=>St(),[St]),o.useEffect(()=>{ve.current=s},[s]),o.useEffect(()=>{Ye.current=r},[r]),o.useEffect(()=>{if(s||ee!=="active")return;const V=y.current;if(!V)return;let ie=null;const ue=requestAnimationFrame(()=>{try{const xe=V.getTotalLength();if(!xe)return;const _e=xe*.2;V.style.strokeDasharray=`${xe-_e} ${_e}`;const Me="triFlow_"+Math.random().toString(36).slice(2);ie=document.createElement("style"),ie.textContent=`@keyframes ${Me}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${xe}}}`,document.head.appendChild(ie),V.style.animation=`${Me} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(ue),ie?.remove()}},[ee,s]),o.useEffect(()=>{ye.current=W},[W]),o.useEffect(()=>{Ne.current=O},[O]),o.useEffect(()=>{const V=b.current,ie=h.current;if(!V||!ie)return;let ue=null;const xe=32,_e=60,Me=()=>{try{const ft=Array.from(V.querySelectorAll(":scope > .button"));let ct=0;ft.forEach(mn=>{if(mn===ie)return;const dr=mn.getBoundingClientRect();ct+=dr.width});const wt=V.getBoundingClientRect().width,Wt=Math.max(0,Math.floor(wt-ct-8)),Pt=Ze;if(!Pt||Wt<=0){Array.from(ie.children).forEach(mn=>{try{mn.style.width=""}catch{}});return}let pn=Math.floor(Wt/Pt);pn>_e&&(pn=_e),pn<xe&&(pn=Math.max(xe,Math.floor(Wt/Pt))),Array.from(ie.querySelectorAll(".button")).forEach(mn=>{try{mn.style.width=`${pn}px`}catch{}})}catch{}},nt=requestAnimationFrame(Me);try{ue=new ResizeObserver(()=>{requestAnimationFrame(Me)}),ue.observe(V),ue.observe(ie),window.addEventListener("resize",Me)}catch{}return()=>{try{cancelAnimationFrame(nt)}catch{}try{ue&&(ue.disconnect(),ue=null)}catch{}try{window.removeEventListener("resize",Me)}catch{}}},[W,I,Ze]),o.useEffect(()=>()=>{try{Ce.current&&(clearTimeout(Ce.current),Ce.current=null),He.current&&(clearTimeout(He.current),He.current=null)}catch{}},[]);const xt=(V,ie)=>{J(V),Z(ie),ne(),T(T5(V)),ye.current=V},jt=async(V,ie)=>{$e(!1),v.current=!1,V.src=ie,V.load(),await Oc(V),await me()!==!1&&(D(!1),await Ke(V),q("playMode"),R(0),L(!0))},sn=async(V,ie=!1)=>{const ue=C.current;D(!0),F("measuring_duration");try{const xe=await Eo(V,{timeoutMs:1e4,rejectOnError:!0});xt([{src:V,objectUrl:null,duration:xe}],xe),F("ready"),ie&&ue&&await jt(ue,V)}finally{v.current=!1,D(!1)}},tt=async(V,ie=!1)=>{const ue=C.current;D(!0),F("measuring_duration");try{const xe=await Promise.all(V.map(Me=>Eo(Me,{timeoutMs:1e4})));if(!Oe.current)return;const _e=V.map((Me,nt)=>({src:Me,objectUrl:null,duration:xe[nt]||0}));xt(_e,j5(_e)),F("ready"),ie&&ue&&_e.length>0&&await jt(ue,_e[0].src)}finally{v.current=!1,D(!1)}},Kt=async(V=!1,ie=!0)=>{const ue=C.current,xe=t?Array.isArray(t)?t:[t]:[];if(!xe||xe.length===0||!xe.some(Boolean))return!1;if(v.current)return null;v.current=!0,ie&&D(!0),F("resolving");try{const _e=M5(t,a,Is),Me=[];let nt=0;for(const ft of _e){let ct=ft.src??null,wt=null;if(!ct&&ft.resolvedPath){try{F("getting_signed_url"),ct=await Fs(ft.resolvedPath)}catch{ct=null}if(!Oe.current)return!1;if(!ct)try{F("downloading");const Pt=await Os(ft.resolvedPath);if(!Oe.current)return!1;if(Pt){const pn=Pt instanceof Blob?Pt:new Blob([Pt]);wt=_.track(URL.createObjectURL(pn)),ct=wt}}catch{F("error");try{ce(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),q("active")}catch{}}}if(!ct)continue;let Wt=0;try{F("measuring_duration"),Wt=await Eo(ct,{timeoutMs:3e3})}catch{Wt=0}if(!Oe.current){if(wt)try{URL.revokeObjectURL(wt)}catch{}for(const Pt of Me)if(Pt.objectUrl)try{URL.revokeObjectURL(Pt.objectUrl)}catch{}return!1}nt+=Wt||0,Me.push({...ft,src:ct,objectUrl:wt,duration:Wt})}if(xt(Me,nt),Me.length>0&&V&&ue){const ft=Me[0];$e(!1);try{_.keepOnly(Me.map(ct=>ct.objectUrl))}catch{}if(F("ready"),v.current=!1,ft.src&&ue)try{if(ue.src=ft.src,ue.load(),await Oc(ue),await me()===!1)return!1;ie&&D(!1),ue&&await Ke(ue)}catch{ie&&D(!1)}else ie&&D(!1);q("playMode"),R(0),L(!0)}return Me.length>0}finally{v.current=!1,ie&&D(!1),F(_e=>_e==="ready"?"ready":"idle")}},_n=async()=>{const V=C.current;if(!(!V&&!dt)){if(dt){const ie=window.speechSynthesis;if(ee==="active"){const ue=Br(),xe=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(ue&&xe.length>0){q("load"),D(!0),F("resolving"),v.current=!0;try{const _e=await Promise.all(xe.map(Me=>Promise.resolve(ue(Me))));_e.length>1?await tt(_e,!0):await sn(_e[0],!0)}catch{v.current=!1,D(!1),q("active"),Bt(xe.length>0?xe:void 0)}return}Bt(xe.length>0?xe:void 0);return}if(ee==="playMode"){const ue=!!ie&&(ie.speaking||ie.paused)&&!(V&&(V.currentSrc||V.getAttribute("src")));if(V&&!ue){if(V.paused){if(Ue.current){await _t();return}await Ke(V),G("playing")}else et(),V.pause(),G("paused");return}try{if(ie&&ie.paused)try{Dt("tts"),ie.resume(),G("playing")}catch{}else try{ie.pause(),G("paused")}catch{}}catch{}}return}if(ee==="active"){if(s&&Array.isArray(ye.current)&&ye.current.length>0){const ue=ye.current[0];try{if(ue.src&&V)try{V.src=ue.src,V.load(),V&&await Ke(V)}catch{}q("playMode"),R(0),L(!0);return}catch{}}q("load");let ie;try{ie=await Kt(!0)}catch{ie=!1}if(ie===!1&&Oe.current){try{ce(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}q("active")}return}if(ee!=="load"&&(ee==="playMode"||ee==="active"))try{if(V&&V.paused){if(Ue.current){await _t();return}V&&await Ke(V),G("playing")}else V&&(et(),V.pause(),G("paused"))}catch(ie){(ie instanceof Error||typeof ie=="object"&&ie&&"name"in ie)&&ie.name}}},_t=async()=>{const V=C.current;if(V)try{const ie=ye.current;if(Array.isArray(ie)&&ie.length>1){await Yt(0);return}$e(!1);try{V.currentTime=0}catch{}V&&await Ke(V),G("playing"),q("playMode")}catch{}},zt=()=>{if(et(),Le(),dt){gt();return}const V=C.current;try{if(V){try{V.pause()}catch{}try{V.currentTime=0}catch{}}}catch{}We(),G("stopped"),q("active"),H(0),L(!1)},Jt=async(V,{sameSegment:ie=!1}={})=>{const ue=++x.current,xe=C.current,_e=ye.current?.[V]?.src;try{if($e(!1),R(V),L(!0),Ne.current=V,!_e||!xe||(ie||ne(),xe.src=_e,xe.load(),!ie&&await me()===!1)||ue!==x.current||(await Ke(xe),ue!==x.current))return;G("playing"),q("playMode")}catch{}},an=async()=>{const V=ye.current,ie=Ne.current||0;if(!V||ie<=0){await _t();return}await Jt(ie-1)},ln=async()=>{const V=ye.current,ie=Ne.current||0;if(!V||ie>=V.length-1){zt();return}await Jt(ie+1)},Qt=()=>{if(Ue.current)return;const V=200,ie=340;$e(!0),et(),Le();try{H(1)}catch{}se(1);try{z("hold")}catch{}try{const ue=C.current,xe=dt&&!!ue?.src;if(!dt||xe){if(ue){ue.pause();try{ue.currentTime=0}catch{}}}else gt();We()}catch{}try{G("stopped")}catch{}if(L(!1),!ve.current)try{He.current&&(clearTimeout(He.current),He.current=null),He.current=setTimeout(()=>{try{z("out")}catch{}He.current=setTimeout(()=>{try{typeof Ye.current=="function"&&Ye.current(!0)}catch{}try{z("idle")}catch{}He.current=null},ie)},V)}catch{}};o.useEffect(()=>{Ie.current=Qt});const wn=o.useCallback(()=>ce(""),[]),Yt=async V=>{(ye.current||[])[V]&&await Jt(V,{sameSegment:V===Ne.current})},ht=P==="playing",cn=o.useMemo(()=>{if(!I||I.length<=1)return I;const V=I[O];return V?[V]:I},[I,O]),Zt=s===!0;o.useEffect(()=>{try{const V=C.current;V&&typeof V.playbackRate=="number"&&(V.playbackRate=Q||1)}catch{}},[Q]);const Mt=o.useRef({raf:null,timer:null});o.useEffect(()=>{const V=C.current;if(!V)return;const ie=Math.max(0,Math.min(1,ke)),ue=Mt.current,xe=()=>{ue.raf!==null&&(cancelAnimationFrame(ue.raf),ue.raf=null),ue.timer!==null&&(clearTimeout(ue.timer),ue.timer=null)};xe();const _e=Pa(V);if(V.paused||Math.abs(_e-ie)<.001||typeof requestAnimationFrame!="function"){try{Nn(V,ie)}catch{}return}const Me=performance.now(),nt=()=>{const ft=Math.min(1,(performance.now()-Me)/150);try{Nn(V,_e+(ie-_e)*ft)}catch{}ue.raf=ft<1?requestAnimationFrame(nt):null};return ue.raf=requestAnimationFrame(nt),ue.timer=setTimeout(()=>{xe();try{Nn(V,ie)}catch{}},200),xe},[ke]);const un=oe==="hold",Xt=oe==="out",dn=ee==="playMode"&&!A&&!Se||un||Xt,Ae=P!=="stopped"||un||Xt,Pe=P==="paused",ae=Math.max(0,Math.min(100,(M||0)*100)),he=De("audio-player__fill",dn?"is-visible":"",Ae?"is-expanded":"",Pe?"is-paused":"",Xt?"is-out":"");return n.jsxs("div",{className:`audio-player ${Zt?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[n.jsxs("div",{className:`audio-player__panel ${ht?"is-playing":""} ${A?"is-loading":""} ${ee!=="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:d(`training.audioStatus.${$}`,{defaultValue:w5[$]})})]}):null,ee==="active"?n.jsx("button",{className:"audio-player__button",type:"button",disabled:Zt,onClick:()=>{U.current=Qa(),B(),_n()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:N,onMouseLeave:B,onFocus:N,onBlur:B,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,w&&n.jsx(Dn,{anchorRect:w,text:typeof p=="string"&&p?p:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),n.jsxs("div",{className:`audio-player__play ${ee==="playMode"||ht?"is-visible":""}`,inert:!(ee==="playMode"||ht)||void 0,children:[n.jsxs("div",{ref:b,className:"audio-player__buttons",children:[n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:an,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:ee!=="playMode"}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:ht?"pause":"play",onClick:_n,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":ht,width:"60px",variant:"transparent-white",disabled:ee!=="playMode"}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:zt,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:ee!=="playMode"}),Ze>1?n.jsx("div",{ref:h,className:"audio-player__source-buttons",children:Array.from({length:Ze}).map((V,ie)=>n.jsx(le,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(ie+1),onClick:()=>{try{Yt(ie)}catch{}},ariaLabel:d("training.sourcePlay",{n:ie+1}),variant:"transparent-white",selected:S&&O===ie,disabled:ee!=="playMode"||!(Array.isArray(W)&&W[ie]),showTooltipInfo:!0},ie))}):null,!Array.isArray(W)||W.length<=1?n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:_t,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:ee!=="playMode"}):null,n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:ln,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:ee!=="playMode"}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:Qt,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:ee!=="playMode"})]}),n.jsxs("div",{className:"audio-player__slider",children:[n.jsx("div",{className:he,ref:g,style:{left:`${ae}%`},"aria-hidden":"true"}),(c||u)&&n.jsx(_5,{segments:cn,progress:M,totalDuration:K,waveProgressRef:we,showSoundWaveForm:c,noiseSrc:u&&m?.settings.enabled&&Te>0?Ve:null,noiseRatio:m?Ea(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:pe,onReadyChange:te})]})]}),n.jsx("audio",{ref:C,crossOrigin:"anonymous",preload:"auto"})]}),!c&&n.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[n.jsx(qe,{icon:"triangle-alert",size:14}),d("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),n.jsx(ta,{message:re,position:fe,onClose:wn})]})}function or(e){const{t}=ge.useTranslation(),{text:a,label:r,anchorRect:s=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[u,d]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",u)}catch{}},[u]);const{increase:p,decrease:m,canIncrease:f,canDecrease:C,fontSize:g,lineHeight:b}=Yi({storageKey:"tooltip-fontScale"}),_=o.useCallback(()=>d(k=>k==="dark"?"light":"dark"),[]),h=o.useCallback(k=>{try{k.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),v=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],x={fontSize:`${g}px`,lineHeight:`${b}px`,"--tt-line-height":`${b}px`,"--tt-marker-size":"28px"},y=n.jsxs("div",{className:`tooltip-textbox__root ${u==="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:v.map((k,w)=>n.jsxs("div",{className:"tooltip-textbox__line",children:[v.length>1?n.jsx("div",{className:"tooltip-textbox__marker",children:n.jsx("span",{className:"tooltip-textbox__line-number button-1",children:w+1})}):null,n.jsx("span",{className:"tooltip-textbox__line-text",children:k})]},w))})]}),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:u==="dark"?"transparent-white":"transparent-gray",disabled:!C}),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:u==="dark"?"transparent-white":"transparent-gray",disabled:!f}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:u==="dark"?"moon":"sun-medium",onClick:_,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:u==="dark"?"transparent-white":"transparent-gray"}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:h,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:u==="dark"?"transparent-white":"transparent-gray"})]})]});return s?n.jsx(Cn,{anchorRect:s,className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:y}):n.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:y})}function Hc({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(qe,{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 Vc(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 u=r.current(),d=u?Array.from(u.querySelectorAll(fn)).find(p=>!p.closest('[aria-hidden="true"]')):void 0;if(d){try{d.focus()}catch{}if(document.activeElement===d)return}--l>0&&(i=requestAnimationFrame(c))};return i=requestAnimationFrame(c),()=>{i!==null&&cancelAnimationFrame(i);const u=document.activeElement;if(!u||u===document.body||!document.contains(u)||u.closest(".tooltip-content")){const d=s.current();if(d)try{d.focus()}catch{}}}},[e])}function zc({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:c,usePlayAllBtn:u=!1,onPlayAll:d,playAllActive:p=!1}){const{t:m}=ge.useTranslation(),f=tn("(max-width: 767px)"),C=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),g=`training-step__title-row training-step__title-row--${r}`.trim(),b=o.useRef(null),[_,h]=o.useState(!1),[v,x]=o.useState(null),[y,k]=o.useState(null);Vc(_&&!!v,()=>{if(typeof document>"u")return null;const D=Array.from(document.querySelectorAll(".tooltip-content"));for(let $=D.length-1;$>=0;$--)if(D[$].querySelector(".tooltip-textbox__root"))return D[$];return null},()=>b.current?.querySelector("button")??null);const w=o.useRef(i);o.useEffect(()=>{w.current=i});const N=o.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(D=>typeof D=="string"||typeof D=="number")?l.join(""):"",[l]),B=o.useCallback(()=>{h(!1),x(null),k(null)},[]);o.useEffect(()=>{if(!_)return;let D;try{typeof w.current=="function"&&(D=w.current())}catch{}if(D===!1){B();return}k(typeof D<"u"&&D!==null?D:null)},[N]);const A=o.useCallback(()=>{let D;try{typeof i=="function"&&(D=i())}catch{}if(D!==!1){if(k(typeof D<"u"&&D!==null?D:l),!b.current){h($=>!$);return}if(_)h(!1),x(null),k(null);else{const $=b.current.getBoundingClientRect();x($),h(!0)}}},[i,l,_]);return n.jsxs("div",{className:g,children:[n.jsx("p",{className:C,children:n.jsx("span",{className:"training-step__title-text",children:e??t})}),s||u?n.jsxs("div",{className:"title-controls",children:[n.jsxs("div",{className:"title-buttons",children:[u&&n.jsx(le,{htmlType:"button",size:32,type:f?"dot":"bar",icon:"play-circle",label:f?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),s&&n.jsx("div",{ref:b,children:n.jsx(le,{htmlType:"button",size:32,type:f?"dot":"bar",icon:"eye",label:f?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:A,className:_?"is-selected":void 0,"aria-expanded":_,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),_&&n.jsx(or,{text:y??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:v,onClose:B,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function jo(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function zn({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:s={},children:i,className:l="",onDone:c=void 0,useTitleFaded:u=void 0}){const{t:d}=ge.useTranslation(),[p,m]=o.useState(()=>jo(e,t));o.useEffect(()=>{const k=jo(e,t);if(k!==p){const w=setTimeout(()=>m(k),0);return()=>clearTimeout(w)}},[e,t,p]);const f=o.useCallback((...k)=>{jo(e,t)==="done"||p==="done"||typeof c=="function"&&c(...k)},[e,t,p,c]),[C,g]=o.useState(!1),[b,_]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),h=o.useCallback(k=>{if(!k)return null;try{const w=k;if(typeof k=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const A=w.currentTarget??w.target;if(A&&typeof A.getBoundingClientRect=="function")return A.getBoundingClientRect()}if(k instanceof DOMRect)return k;const N=k;if(N&&typeof N.getBoundingClientRect=="function")return N.getBoundingClientRect();const B=k?.current;return B&&typeof B.getBoundingClientRect=="function"?B.getBoundingClientRect():null}catch{return null}},[]),v=o.useCallback((k,{text:w="",label:N="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:B=!1,alignX:A="center",alignY:D="top"}={})=>{const $=h(k);_({text:w,label:N,anchorRect:$,backdrop:B,alignX:A,alignY:D}),g(!0)},[h]),x=o.useCallback(()=>{g(!1),_(k=>({...k,anchorRect:null}))},[]),y=o.Children.map(i,k=>{if(o.isValidElement(k)){const w=k;if(typeof w.type=="string")return w;const N=w.props??{},B=typeof N.onDone=="function"?N.onDone:f,A=typeof N.disabled=="boolean";let D=p==="disabled";return A&&(D=!!N.disabled),o.cloneElement(w,{onDone:B,disabled:D,showTooltip:v,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(Hc,{state:p}),n.jsxs("div",{className:"training-step__content",children:[n.jsx(zc,{state:p,title:r,...s,useFaded:u}),y]}),C?n.jsx(Cn,{anchorRect:b.anchorRect,backdrop:b.backdrop,onClose:x,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:n.jsx(or,{text:b.text,onClose:x})}):null]})}function Wc({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 u=()=>c(P=>P==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:m,canDecrease:f,fontSize:C,lineHeight:g}=Yi({storageKey:"textbox_fontScale"}),[b,_]=o.useState(""),h=o.useRef(null),v=o.useRef(!1),x=o.useCallback(()=>{v.current=Qa()&&!!h.current&&h.current.contains(document.activeElement),i("active")},[]),y=o.useCallback(()=>_(""),[]),k=P=>{try{_(P)}catch{}},w=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(t!=="disabled"){const P=setTimeout(()=>i(t),0);return()=>clearTimeout(P)}},[t]);const N=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[B,A]=o.useState(N);B!==N&&(A(N),i("disabled"));const D=t==="disabled"?s:t,$=D==="disabled"?"training-text-box--disabled":D==="active"?"training-text-box--active":D==="done"?"training-text-box--done":"",F=o.useMemo(()=>({fontSize:`${C}px`,lineHeight:`${g}px`}),[C,g]);return o.useEffect(()=>{if(D==="disabled"||!v.current)return;v.current=!1;const P=document.activeElement;P&&P!==document.body||h.current?.querySelector(".training-text-box__buttons button")?.focus()},[D]),n.jsxs("div",{ref:h,className:`training-text-box ${$} ${D!=="disabled"&&l==="dark"?"is-dark":""}`,children:[D==="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":D==="disabled",children:n.jsx("span",{className:"training-text-box__inner h3",style:F,children:N})}),D!=="disabled"&&n.jsxs("div",{className:"training-text-box__buttons","aria-hidden":D==="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:!f,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),n.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:d,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,...!w&&{width:"60px"}}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),n.jsx(ta,{message:b,position:"top",onClose:y})]})}function Mo({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:s,onDone:i,onChange:l,answer:c,wrongAnswers:u,choices:d,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:f=!1,choiceIcons:C,shuffleChoices:g=!0}){const{t:b}=ge.useTranslation(),_=r??b("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),h=typeof e=="number"?e:-1,v=typeof t!="number"?"disabled":h<t?"done":h===t?"active":"disabled",x=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,y=u?u.join("||"):"",k=d?d.join("||"):"",[w,N]=o.useState(()=>Array.isArray(x)?g?Ca(x):x.slice():void 0);o.useEffect(()=>{Array.isArray(x)&&x.length?N(g?Ca(x):x.slice()):N(void 0)},[c,y,k,g]);const[B,A]=o.useState(null),[D,$]=o.useState(()=>new Set);o.useEffect(()=>{A(null),$(new Set)},[k,c,y]);const F=o.useRef(void 0);o.useEffect(()=>{const E=F.current;typeof E=="number"&&typeof t=="number"&&typeof e=="number"&&E>=e&&t<e&&(A(null),$(new Set)),F.current=t},[t,e]);const P=o.useCallback(E=>{if(v!=="active")return;const M=w?.[E];if(M==null)return;const H=M,ee=v==="active"||v==="done";if(p){const q=new Set(D),U=q.has(H);U?q.delete(H):q.add(H),$(q),typeof l=="function"&&l({selectedValues:[...q],__ts:Date.now()}),ee&&(typeof m=="number"&&m>0?q.size>=m:!U)&&typeof i=="function"&&v==="active"&&i({selectedValues:[...q],__ts:Date.now()})}else A(H),typeof l=="function"&&l({selectedIndex:E,selectedValue:H,__ts:Date.now()}),ee&&typeof i=="function"&&v==="active"&&i({selectedIndex:E,selectedValue:H,__ts:Date.now()})},[w,v,p,l,i,m,D]),G=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return n.jsx(zn,{index:e,stepIndex:t,isLast:a,title:_,useTitleFaded:s,children:n.jsx("div",{className:G,children:Array.isArray(w)&&w.length>0?w.map((E,M)=>n.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:()=>P(M),ariaLabel:String(E),label:E,useLabel:!0,icon:C?C[String(E)]:void 0,variant:"default",disabled:v==="disabled",selected:p?D.has(E):B===E,useDisabledCovered:f,minWidth:0},String(E))):null})})}function Lo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l,demoSelected:c}){const{t:u}=ge.useTranslation(),d=r??u("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",f=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",C=l&&typeof l=="object"?l.choices:void 0,[g,b]=o.useState(c??null),_=`${String(f)}\0${JSON.stringify(C??null)}`,[h,v]=o.useState(_);h!==_&&(v(_),c==null&&b(null));const[x,y]=o.useState(c);Object.is(x,c)||(y(c),b(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&&b(null),k.current=t},[t,e,c]);const w=o.useCallback(A=>{const D=typeof A=="object"&&A!==null?Object.assign({},A,{__ts:Date.now()}):{value:A,__ts:Date.now()};typeof i=="function"&&i(D),m==="active"&&typeof s=="function"&&s(D)},[i,m,s]),N=o.useCallback(()=>{m==="active"&&(b(!1),w(!1))},[w,m]),B=o.useCallback(()=>{m==="active"&&(b(!0),w(!0))},[w,m]);return n.jsxs(zn,{index:e,stepIndex:t,isLast:a,title:d,onDone:s,useTitleFaded:!1,children:[n.jsx(Wc,{context:l,state:m}),n.jsx("div",{className:"training-step__buttons",children:Array.isArray(C)&&C.length>0?C.slice(0,6).map((A,D)=>n.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(b(D),w&&w(D))},disabled:m==="disabled",ariaLabel:String(A),label:A,variant:m,selected:g===D},D)):n.jsxs(n.Fragment,{children:[n.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:N,disabled:m==="disabled",icon:"x",ariaLabel:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:g===!1}),n.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:B,disabled:m==="disabled",icon:"circle",ariaLabel:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:g===!0})]})})]})}function $o({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,btnLabel:i,soundSrc:l,bucketPath:c,usePreviewTextBtn:u,previewText:d=null,onPreviewTextBtn:p,disabled:m,_pageIndex:f,showSoundWaveForm:C,showNoiseWaveForm:g}){const{t:b}=ge.useTranslation(),_=r??b("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),h=m??(typeof t=="number"&&typeof e=="number"?e>t:!1);return n.jsx(zn,{index:e,stepIndex:t,isLast:a,title:_,onDone:s,titleProps:{usePreviewTextBtn:u,previewText:d,onPreviewTextBtn:p},children:n.jsx(To,{soundSrc:l,ttsText:l?null:d??_,bucketPath:c,btnLabel:i||b("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:h,className:"training-step__listen-sticky",showSoundWaveForm:C,showNoiseWaveForm:g},`audio-p${f??0}-s${e}`)})}const R5=[];function Ro({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=R5}){const{t:c}=ge.useTranslation(),u=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=I=>typeof I=="string"?I:I&&(I.context||I.sentence||I.question||"")||"",[p,m]=o.useState(Array.isArray(l)?l:[]),[f,C]=o.useState(()=>(p||[]).map((I,T)=>({id:T,text:d(I)}))),g=o.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]),b=g!=="disabled",_=o.useRef(void 0);o.useEffect(()=>{if(_.current===l)return;_.current=l;const I=Array.isArray(l)?l:[];m(I);const T=(O=>{const R=(O||[]).map((Z,Q)=>({id:Q,text:d(Z)}));if(R.length<=1)return R;const S=(Z,Q)=>{if(Z.length!==Q.length)return!1;for(let pe=0;pe<Z.length;pe++)if(Z[pe].text!==Q[pe].text)return!1;return!0};let L=Ca(R),K=0;for(;S(L,R)&&K<20;)L=Ca(R),K+=1;return L})(I);C(T);try{if(typeof i=="function"){const O=T.filter((R,S)=>R.text===d(I[S])).length;i({shuffled:T,score:O,total:(I||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&g==="active"){const O=T.filter((R,S)=>R.text===d(I[S])).length;s({shuffled:T,score:O,total:(I||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const h=(I,T)=>{const O=[...f],R=I+T;if(R<0||R>=O.length)return;const S=O[R];O[R]=O[I],O[I]=S,M(O);try{if(typeof s=="function"&&g==="active"){const L=O.filter((K,Z)=>K.text===d(p[Z])).length;s({shuffled:O,score:L,total:(p||[]).length,__ts:Date.now()})}}catch{}},[v,x]=o.useState(null),y=o.useRef(null),k=o.useRef(null),w=o.useRef(null),N=o.useRef(null),B=o.useRef(null),A=o.useRef({x:0,y:0}),D=o.useRef(null),$=o.useRef({dx:0,dy:0}),F=()=>{if(D.current!==null)return;const I=()=>{if(!y.current){D.current=null;return}D.current=requestAnimationFrame(I);const T=A.current,O=$.current||{dx:0,dy:0};y.current&&(y.current.style.transform=`translate3d(${T.x-O.dx}px, ${T.y-O.dy}px, 0)`)};D.current=requestAnimationFrame(I)},P=o.useRef(new Map),G=o.useRef(new Map),E=()=>{const I=new Map;return P.current.forEach((T,O)=>{T&&T.getBoundingClientRect&&I.set(O,T.getBoundingClientRect())}),I},M=I=>{const T=E();C(I);try{if(typeof i=="function"){const O=I.filter((R,S)=>R.text===d(p[S])).length;i({shuffled:I,score:O,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const O=E();I.forEach(R=>{const S=T.get(R.id),L=O.get(R.id),K=P.current.get(R.id);if(!K||!S||!L)return;const Z=S.top-L.top;Z&&(K.style.transition="none",K.style.transform=`translateY(${Z}px)`,requestAnimationFrame(()=>{K.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",K.style.transform="";const Q=()=>{K.style.transition="",K.removeEventListener("transitionend",Q)};K.addEventListener("transitionend",Q)}))})})},H=(I,T)=>{try{try{T.dataTransfer?.setData("text/plain",String(I))}catch{}try{T.dataTransfer&&(T.dataTransfer.effectAllowed="move")}catch{}try{const O=document.createElement("div");O.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(O),T.dataTransfer?.setDragImage(O,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(O)}catch{}})}catch{}}catch{}x(I);try{const O=f[I],R=document.createElement("div");R.className="order-list__dragging-object order-list__dragging-object--visible",R.textContent=O&&O.text?O.text:"",document.body.appendChild(R),y.current=R;const S=P.current.get(O.id);let L=T.clientX||0,K=T.clientY||0;try{if(S&&S.getBoundingClientRect){const oe=S.getBoundingClientRect();L=oe.left+oe.width/2,K=oe.top+oe.height/2}}catch{}const Z=R.getBoundingClientRect(),Q=Z.width/2,pe=Z.height/2;$.current={dx:Q,dy:pe},R.style.transition="none",A.current={x:L,y:K},R.style.transform=`translate3d(${L-Q}px, ${K-pe}px, 0)`,requestAnimationFrame(()=>{try{R.style.transition=""}catch{}F()});const Te=oe=>{const z=oe;A.current={x:z.clientX,y:z.clientY},F()};w.current=Te,document.addEventListener("mousemove",Te);const ke=oe=>{const z=oe;A.current={x:z.clientX,y:z.clientY},F()};k.current=ke,document.addEventListener("dragover",ke);try{T.dataTransfer?.setData("text/plain",String(I));try{T.dataTransfer?.setData("application/json",JSON.stringify({idx:I}))}catch{}}catch{}}catch{}},ee=(I,T)=>{T.preventDefault();try{T.dataTransfer&&(T.dataTransfer.dropEffect="move")}catch{}try{B.current!==null&&(clearTimeout(B.current),B.current=null);const O=T.currentTarget&&T.currentTarget.closest?T.currentTarget.closest(".order-list__item"):null;if(O&&N.current!==O){if(N.current)try{N.current.classList.remove("drag-over")}catch{}try{O.classList.add("drag-over")}catch{}N.current=O}}catch{}},q=(I,T)=>{T.preventDefault();const O=T.dataTransfer?.getData("text/plain")||"",R=O?parseInt(O,10):v,S=I;if(typeof R!="number"||isNaN(R)||R===S){x(null),J(),U();return}const L=C2(f,R,S);M(L),x(null),U();try{if(typeof s=="function"&&g==="active"){const K=L.filter((Z,Q)=>Z.text===d(p[Q])).length;s({shuffled:L,score:K,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const K=document.querySelectorAll(".order-list .order-list__item")[S];if(!K)return;const Z=K.querySelector(".order-list__slot")||K;try{Z.classList.add("pulse"),Z.offsetHeight,Z.classList.add("to-dark");const Q=()=>{Z.classList.remove("pulse","to-dark"),Z.removeEventListener("transitionend",Q)};Z.addEventListener("transitionend",Q)}catch{}})}catch{}J()},U=()=>{if(y.current){try{document.body.removeChild(y.current)}catch{}y.current=null}k.current&&(document.removeEventListener("dragover",k.current),k.current=null),w.current&&(document.removeEventListener("mousemove",w.current),w.current=null),D.current!==null&&(cancelAnimationFrame(D.current),D.current=null)},W=()=>{x(null),J(),U()};o.useEffect(()=>()=>U(),[]);const J=()=>{try{if(B.current!==null&&(clearTimeout(B.current),B.current=null),N.current){try{N.current.classList.remove("drag-over")}catch{}N.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(I=>I.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const I=Math.max(1,(f||[]).length);f.forEach((T,O)=>{const R=G.current.get(T.id);if(!R)return;let S=50;I>1&&(S=Math.round(O/(I-1)*100));try{R.style.setProperty("--marker-pos",S+"%")}catch{}})}catch{}},[f]),o.useEffect(()=>()=>{U(),B.current!==null&&(clearTimeout(B.current),B.current=null)},[]),n.jsx(zn,{index:e,stepIndex:t,isLast:a,title:u,children:n.jsx("div",{className:"order-list",children:f.map((I,T)=>{const O=Math.max(1,(f||[]).length),R=O>1?Math.round(T/(O-1)*100):50;return n.jsx("div",{className:"order-list__item",children:n.jsxs("div",{className:"order-list__slot","data-disabled":g==="disabled","aria-disabled":g==="disabled",children:[g!=="disabled"?n.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":R+"%"},ref:S=>{const L=G.current;S?L.set(I.id,S):L.delete(I.id)},children:n.jsx("span",{className:"order-list__slot-number button-1",children:T+1})}):null,n.jsxs("div",{ref:S=>{const L=P.current;S?L.set(I.id,S):L.delete(I.id)},className:`order-list__draggable ${v===T?"dragging":""}`,"data-disabled":g==="disabled","aria-disabled":g==="disabled",tabIndex:g==="disabled"?-1:0,draggable:b,onDragStart:b?S=>H(T,S):void 0,onDragEnter:b?S=>ee(T,S):void 0,onDragOver:b?S=>ee(T,S):void 0,onDragLeave:b?()=>{try{B.current!==null&&clearTimeout(B.current),B.current=setTimeout(()=>{try{const S=document.querySelectorAll(".order-list .order-list__item");S&&S[T]&&(S[T].classList.remove("drag-over"),N.current===S[T]&&(N.current=null))}catch{}},80)}catch{}}:void 0,onDrop:b?S=>q(T,S):void 0,onDragEnd:b?W:void 0,children:[n.jsx("span",{className:"order-list__item-text body-2",children:I.text}),b?n.jsxs("span",{className:"order-list__item-buttons",children:[n.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:()=>h(T,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:T===0,useBorder:!1,useDisabledInvisible:!0}),n.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:()=>h(T,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:T===f.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},I.id)})})})}const P5=8e3;function I5(e,t){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,t)})}function qc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=[],selectable:c=!1,hideLabel:u=!1,hideAudio:d=!1,maxCards:p}){const{t:m}=ge.useTranslation(),f=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),C=o.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),g=p??3,b=(C||[]).slice(0,g);(C||[]).length>g&&console.warn(`TrainingStepCard: ${C.length} items passed but only ${g} shown`);const _=typeof e=="number"?e:-1,h=typeof t!="number"?"disabled":_<t?"done":_===t?"active":"disabled",[v,x]=o.useState(null),y=o.useRef([]),[k,w]=o.useState(!1),N=o.useRef(null),B=o.useRef(!0);o.useEffect(()=>(B.current=!0,()=>{B.current=!1}),[]);const A=o.useMemo(()=>C.map(G=>G?.id??G?.word??"").join("|"),[C]);o.useEffect(()=>{x(null)},[A]);const D=o.useRef(void 0);o.useEffect(()=>{const G=D.current;typeof G=="number"&&typeof t=="number"&&typeof e=="number"&&G>=e&&t<e&&x(null),D.current=t},[t,e]);const $=o.useCallback((G,E)=>{if(c)return;const M={item:G,index:E,__ts:Date.now()};try{typeof i=="function"&&i(M)}catch{}if(h==="active"&&typeof s=="function")try{s(M)}catch{}},[c,i,h,s]),F=o.useCallback(async()=>{if(k||h==="disabled")return;w(!0);let G=!1;const E=new Promise(M=>{N.current=()=>{G=!0,M()}});try{for(let M=0;M<b.length&&!(!B.current||G);M++){const H=y.current[M];H&&await Promise.race([I5(H.play(),P5),E])}}finally{N.current=null,w(!1)}},[k,h,b.length]),P=o.useCallback((G,E)=>{if(h!=="active")return;x(E);const M={selectedValue:G.word||G.title||"",selectedIndex:E,item:G,__ts:Date.now()};try{typeof i=="function"&&i(M)}catch{}if(h==="active"&&typeof s=="function")try{s(M)}catch{}},[i,h,s]);return n.jsx(zn,{index:e,stepIndex:t,isLast:a,title:f,onDone:s,titleProps:{usePlayAllBtn:!d&&b.length>0,onPlayAll:F,playAllActive:k},children:n.jsx("div",{className:"training-step__cards",onClickCapture:G=>{const E=N.current;if(!E)return;const M=G.target;M&&typeof M.closest=="function"&&M.closest(".training-word-card__bottom")&&E()},children:b.length===0?n.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):b.map((G,E)=>n.jsx(Co,{ref:M=>{y.current[E]=M},item:G,disabled:h==="disabled",onPlayDone:()=>$(G,E),selectable:c,selected:c&&v===E,onSelect:c?()=>P(G,E):void 0,flipDelay:E*120,hideLabel:u,hideAudio:d},G&&G.id||E))})})}const F5=160,O5={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function H5(e,t){const a=O5[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}const Uc=()=>{};function jn(e){const t=o.useId();if(!("variant"in e)){const{label:h,sub:v,onClick:x,children:y,align:k="horizontal",icon:w}=e,N=B=>{x&&B.target===B.currentTarget&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),x())};return n.jsxs("div",{className:De("panel-row",k==="vertical"?"panel-row--vertical":"",x?"panel-row--clickable":""),onClick:x,onKeyDown:x?N:void 0,role:x?"button":void 0,tabIndex:x?0:void 0,children:[w!=null&&n.jsx("div",{className:"panel-row__icon",children:w}),h!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:h}),v&&n.jsx("div",{className:"panel-row__sub caption-1",children:v})]}),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(Da,{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:u="horizontal",useFullWidth:d=!1,icon:p}=e,m=a==="button"?void 0:i;let f=null;const C=a==="toggle"?`panel-toggle-${t}`:void 0,g=c?`panel-error-${t}`:void 0;if(a==="toggle"){const h=e;f=n.jsx(jl,{checked:h.checked,onChange:h.onChange,id:C})}else if(a==="segmented"){const h=e;f=n.jsx(Sn,{options:h.options,value:h.value,onChange:h.onChange,size:h.size??40,ariaLabel:r})}else if(a==="dropdown"){const h=e,v=h.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:h.dropdowns.map((x,y)=>n.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:n.jsx(nn,{options:x.options,value:x.value,onChange:x.onChange,placeholder:x.placeholder,block:d,error:!!c,ariaDescribedBy:g,ariaLabel:x.ariaLabel??([r,x.placeholder].filter(Boolean).join(" ")||void 0)})},y))}):n.jsx(nn,{options:h.options??[],value:h.value??"",onChange:h.onChange??Uc,block:d,error:!!c,ariaLabel:r,ariaDescribedBy:g});f=c?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[v,n.jsx("span",{id:g,className:"caption-1 panel-row__error",role:"alert",children:c})]}):v}else if(a==="button"){const h=e;h.buttons?.length?f=n.jsx("div",{className:"panel-row__button-group",children:h.buttons.map((v,x)=>n.jsx(le,{htmlType:"button",size:v.btnSize??40,variant:v.btnVariant??"default",disabled:v.disabled,onClick:v.onClick,children:v.label},x))}):f=n.jsx(le,{htmlType:"button",size:h.btnSize??40,variant:h.btnVariant??"default",disabled:h.disabled,onClick:h.onClick,children:h.buttonLabel})}else if(a==="text"){const h=e;f=n.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:h.valueColor?{color:h.valueColor}:void 0,children:h.value})}else if(a==="input"){const h=e;f=n.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[n.jsx(Vn,{value:h.value,onChange:h.onChange??Uc,onKeyDown:h.onKeyDown,onEnter:h.onEnter,placeholder:h.placeholder,inputMode:h.inputMode,readOnly:h.readOnly,disabled:h.disabled,type:h.type,autoComplete:h.autoComplete,maxLength:h.maxLength,showCount:h.showCount,multiline:h.multiline,rows:h.rows,fullWidth:d,error:c,ariaLabel:r,required:l}),h.helperText&&n.jsx("div",{className:"panel-row__helper caption-1",children:h.helperText})]})}else a==="custom"&&(f=e.children);c&&a!=="input"&&a!=="dropdown"&&(f=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[f,n.jsx("span",{id:g,className:"caption-1 panel-row__error",role:"alert",children:c})]}));const b=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,_=h=>{m&&h.target===h.currentTarget&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),m())};return n.jsxs("div",{className:De("panel-row",u==="vertical"?"panel-row--vertical":"",b?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",m?"panel-row--clickable":""),onClick:m,onKeyDown:m?_: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:[C?n.jsxs("label",{htmlFor:C,className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}):n.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}),s&&n.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),n.jsx("div",{className:"panel-row__right",children:f})]})}function Gc(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function V5({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(mt,{size:"small",variant:Yl(i.device),fill:"soft",label:H5(i.device,r)}),Gc(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:Gc(i)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),po(i.wornYear,i.wornMonth,i.wornDay)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:po(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:u,scrollbarGutter:d="auto",compactRows:p=!1,useBorder:m=!0,useBg:f=!0,useRowBorder:C=!0,labelWidth:g,form:b=!1,loading:_,empty:h,children:v}){const x=De("panel",`panel--${s}`,b?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",f?"":"panel--no-bg",C?"":"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),g!==void 0&&(y["--panel-label-width"]=typeof g=="number"?`${g}px`:g),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(qe,{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})]}),_?n.jsx(jn,{variant:"loading"}):h!=null&&o.Children.toArray(v).length===0?n.jsx(jn,{variant:"empty",children:h}):u?n.jsx("div",{className:De("panel__body--scroll",d==="stable"&&"panel__body--gutter-stable"),children:v}):v]})}function z5({cols:e=2,children:t}){return n.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:t})}function W5(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 Kc(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"}]}W5(kt.t.bind(kt)),Kc(kt.t.bind(kt));const Po="none",q5=.5,U5=1.5,G5=.25;function Io({title:e,valueLabel:t,value:a,min:r,max:s,step:i,tickStep:l,size:c,onChange:u}){return n.jsxs(jn,{variant:"custom",label:e,useFullWidth:!0,children:[n.jsx(Wl,{value:a,onChange:u,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 Yc({anchorRect:e,onClose:t}){const{t:a}=ge.useTranslation(),r=tn("(max-width: 767px)")?40:24,s=ar(),i=Ea(s?.settings??ja),l=s?.settings.type??"defaultNoise",c=s?.settings.enabled??!0,u=s?.playbackRate??1,d=s?.mainVolume??1,p=Math.round(d*100),m=o.useCallback(b=>{try{s?.setMainVolume(Math.max(0,Math.min(1,b/100)))}catch{}},[s]),f=o.useCallback(b=>{try{s?.setPlaybackRate(b)}catch{}},[s]),C=o.useCallback(b=>{const _=Math.min(Sa,Math.max(0,Math.round(b*10)/10));try{s?.setSettings({noiseRatio:_})}catch{}},[s]),g=o.useCallback(b=>{try{b===Po?s?.setSettings({enabled:!1}):s?.setSettings({type:b,enabled:!0})}catch{}},[s]);return n.jsx(Cn,{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(Io,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),n.jsx(Io,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:q5,max:U5,step:G5,size:r,onChange:f}),n.jsx(jn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:n.jsx(Sn,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Po,label:a("training.noise.type.none","\uC5C6\uC74C")},...Kc(a).map(b=>({key:b.value,label:b.label}))],value:c?l:Po,onChange:g})}),n.jsx(Io,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:Sa,step:Mc,size:r,onChange:C})]})})}function Zc({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:s=0,stepCount:i=0,pageIndex:l=0,pageCount:c=1}){const{t:u}=ge.useTranslation(),[d,p]=o.useState(!1),[m,f]=o.useState(null),[C,g]=o.useState(!1),b=o.useRef(null),_=o.useRef(null),h=ar(),v=c>0,x=v&&l<c-1,y=!v||l>=c-1,k=s===Math.max(0,i);o.useEffect(()=>{e||(p(!1),f(null))},[e]);const w=o.useCallback(()=>{p(!1),f(null)},[]),N=o.useCallback(()=>{if(d){p(!1),f(null);return}const D=b?.current?.getBoundingClientRect();D&&f(D),t?.(),p(!0)},[d,t]),B=o.useCallback(()=>{if(d){p(!1),f(null);return}const D=_?.current?.getBoundingClientRect();D&&f(D),t?.(),p(!0)},[d,t]),A=o.useCallback(()=>g(D=>!D),[]);return Vc(e&&d,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[b.current,_.current].map(D=>D?.querySelector("button")??null).find(D=>!!D&&D.getClientRects().length>0)??b.current?.querySelector("button")??null),n.jsxs("div",{className:"pp-bottom",children:[n.jsxs("div",{className:"pp-bottom__left",children:[e?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pp-bottom__settings--desktop",children:n.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(le,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:N,className:d?"is-selected":void 0,"aria-expanded":d,"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:_,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(le,{htmlType:"button",size:56,type:"dot",icon:"settings",onClick:B,className:d?"is-selected":void 0,"aria-expanded":d,"aria-haspopup":"dialog",ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&n.jsx(le,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:A,selected:C,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&C&&n.jsxs("div",{className:"pp-bottom__meters",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(lo,{analyser:h?.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(lo,{analyser:h?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]})]}),n.jsxs("div",{className:"pp-bottom__right",children:[y&&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:!k}),x&&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:!k})]}),e&&d&&n.jsx(Yc,{anchorRect:m,onClose:w})]})}function Xc({title:e,subtitle:t,desc:a,depth:r,icon:s,wrapperStyle:i,iconTooltip:l,pageIndex:c,pageCount:u,progressMax:d,progressIndex:p,onBack:m,onClose:f}){const{t:C}=ge.useTranslation(),g=tn("(max-width: 767px)"),b=Number.isInteger(p)?p:c||0,_=Number.isInteger(d)?d:u||0,h=m||f,v=Array.isArray(r)?g?r[r.length-1]:r.join(" / "):r,x=typeof e=="string"?e.trim():e,y=typeof t=="string"?t.trim():t,k=!!(x||y),w=k?x||y:C("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),N=v||(x?t:void 0),B=g&&typeof N=="string"&&(N.includes(" \xB7 ")||N.includes(" / "))?N.split(/\s[·/]\s/).pop():N,A=o.useMemo(()=>{const D=i&&typeof i=="object"?{...i}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[i]);return n.jsxs("header",{className:"pp-title training-popup-title",children:[n.jsxs("div",{className:"pp-title__left",children:[h?n.jsx(le,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:C("common.back","\uB4A4\uB85C"),onClick:h,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:[B?n.jsx("span",{className:"pp-title__depth caption-1",children:B}):null,n.jsx("span",{className:`pp-title__title h2${k?"":" pp-title__title--empty"}`,children:w}),a?n.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),n.jsx(Kl,{max:Math.max(0,_??0),index:Math.max(0,b??0)})]})}function K5(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Y5(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 Jc=(e,t)=>{if(!t)return t;const a=typeof kt?.t=="function"?kt.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function Qc(e,t,a){const r=e,s=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=ii().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?Jc(`topic.${i.key}`,i.label):void 0,l?Jc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function Fo(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function Z5(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function X5({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:i,buildResults:l,metaPatch:c}){const u=Qc(t,a,r),d=typeof c=="function"?c(u)||{}:c||{},p=t?.id||t?.title||s.length;return{id:`${e}:${p}`,meta:{...u,...d},pages:s,emptyMessage:i,buildResults:l}}function J5(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function Q5(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 e3(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 eu(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function t3(e,t,a,r){return eu(e,t*a+r)}function n3({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 a3(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 tu=o.createContext(null);function r3(){const e=o.useContext(tu);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function o3({index:e,stepIndex:t,isLast:a=!1,title:r,choices:s=[],onDone:i,onChange:l}){const{t:c}=ge.useTranslation(),u=typeof e=="number"?e:-1,d=typeof t!="number"?"disabled":u<t?"done":u===t?"active":"disabled",[p,m]=o.useState(()=>s.map(()=>null)),f=JSON.stringify(s),C=s.length;o.useEffect(()=>{m(Array.from({length:C},()=>null))},[f]);const g=o.useRef(void 0);o.useEffect(()=>{const v=g.current;typeof v=="number"&&typeof t=="number"&&typeof e=="number"&&v>=e&&t<e&&m(Array.from({length:C},()=>null)),g.current=t},[t,e,C]);const b=o.useMemo(()=>p.filter(v=>v!==null).length+1,[p]),_=o.useCallback(v=>{if(d!=="active")return;const x=p;let y;if(x[v]!=null){const w=x[v];y=x.map(N=>N!==null&&N>=w?null:N)}else y=[...x],y[v]=b;m(y);const k={selectedOrder:y,words:s,__ts:Date.now()};try{typeof l=="function"&&l(k)}catch{}if(x[v]==null&&y.length>0&&y.every(w=>w!==null))try{typeof i=="function"&&i(k)}catch{}},[d,p,b,l,i,s]),h=r??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return n.jsx(zn,{index:e,stepIndex:t,isLast:a,title:h,onDone:i,children:n.jsx("div",{className:"training-step__cards",children:s.map((v,x)=>n.jsx(Co,{item:{word:v},disabled:d==="disabled",selectable:!0,selected:p[x]!==null,orderRank:p[x],onSelect:()=>_(x),flipDelay:x*120,hideLabel:!1,hideAudio:!0},`${v}-${x}`))})})}function ir(e){return null}ir.__isTrainingPage=!0;function la(e,t){const a=r3();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 nu({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l}=la(e,t);return n.jsx($o,{...a,index:r,stepIndex:s,isLast:i,onDone:l})}function au({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=la(e,t);return n.jsx(Mo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function ru({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=la(e,t);return n.jsx(Lo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function ou({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=la(e,t);return n.jsx(Ro,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function su({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=la(e,t);return n.jsx(qc,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function s3({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=la(e,t);return n.jsx(o3,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function Oo(...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 i3(e){return Oo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function iu(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=Oo(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 lu(e){const{score:t,contextsLength:a,results:r=[],subtitle:s,onReplay:i,onClose:l,inline:c=!1,pending:u=!1}=e||{},{t:d}=ge.useTranslation(),p=o.useId(),m=o.useCallback(()=>!u,[u]);o.useEffect(()=>{const v=a??0;if(t!=null&&v>0&&t/v>.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 f=o.useCallback(v=>{const x=iu(v),y=Oo(v?.wording,v?.label);return x===!0?{variant:"main",label:y??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:x===!1?{variant:"danger",label:y??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:y??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),C=a??0,g=t??0,b=o.useMemo(()=>Array.isArray(r)?r:[],[r]),_=o.useMemo(()=>b.map(v=>{const x=v??{},y=i3(x)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:k,label:w}=f(x),N=Array.isArray(x.corrects)?x.corrects:[],B=N.length?N.join(", "):x.answer!=null&&x.answer!==""?String(x.answer):null,A=typeof x.selectedText=="string"?x.selectedText:null,D=iu(x)===!0;return{problem:y,variant:k,label:w,answer:B,selectedText:A,isCorrect:D}}),[b,f,d]),h=o.useMemo(()=>_.some(v=>v.answer!==null||v.selectedText!==null),[_]);return n.jsx(Tn,{onClose:l,closeOnBackdrop:!1,inline:c,ariaLabel:d("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:v,closeWithAnimation:x})=>n.jsxs(n.Fragment,{children:[u&&n.jsx("p",{id:p,className:"trp-actions__reason caption-1",role:"status",children:d("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsxs("div",{className:"trp-actions",children:[n.jsx(le,{htmlType:"button",size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>v(i)}),n.jsx(le,{htmlType:"button",size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:x,disabled:u,onDisabledClick:u?()=>{}:void 0,"aria-describedby":u?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:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),n.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),s&&n.jsx("p",{className:"trp-result__subtitle body-3",children:s}),n.jsx("div",{className:"trp-score",children:n.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:g,total:C}),children:[n.jsx("span",{className:"trp-score__big",children:g}),n.jsx("span",{className:"trp-score__sep",children:"/"}),n.jsx("span",{className:"trp-score__total",children:C})]})})]}),_.length>0&&n.jsx("section",{className:"trp-result__body",children:n.jsxs("div",{className:`result-table${h?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[n.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[n.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),h&&n.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),n.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),_.map((v,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:v.problem})]}),h&&n.jsxs("div",{className:"trp-row__answers",children:[v.answer!==null&&n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),n.jsx("span",{className:"trp-row__answer-value body-2",children:v.answer})]}),n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${v.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),n.jsx("span",{className:`trp-row__answer-value body-2 ${v.isCorrect?"is-correct":"is-wrong"}`,children:v.selectedText??"\u2014"})]})]}),n.jsx("div",{className:"trp-row__judge",children:n.jsx(mt,{variant:v.variant,label:v.label,fill:"soft",minWidth:80})})]},x))]})})]})})}function l3(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 u=()=>{if(c(),a==null||s-i<1e3||i===0&&s<5e3)return;const p=a+i;i=s,y2({trainingType:e,startedAt:new Date(p).toISOString(),endedAt:new Date(a+s).toISOString()})},d=()=>{t()?l():u()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",u),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",u),u()}},[e])}function Ho(e,t){return e&&e.id||`page-${t??0}`}function Vo(e,t){return e&&e.key||`step-${t??0}`}function lr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function c3(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const u3=300,d3=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Mn=Object.freeze({}),cu=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function uu(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 p3=e=>n.jsx(lu,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function m3(e){const{scenario:t,title:a,subTitle:r,depth:s,icon:i,wrapperStyle:l,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:p,stepCount:m,onBack:f,onComplete:C,onNext:g,onSettings:b,useNoiseSetting:_=!0,children:h,ariaLabel:v,label:x,buildResults:y,onResult:k,typeKey:w,entryPoint:N,dailyTotal:B,itemRef:A,renderResultPopup:D,noiseOverride:$}=e;l3(w&&!cu.has(w)?w:"");const F=o.useRef(0);o.useEffect(()=>{F.current=Date.now()},[]);const{t:P}=ge.useTranslation(),G=k,E=!!t,M=t?.id||null,H=t?.meta||{},ee=Array.isArray(t?.pages)?t.pages:[],q=Array.isArray(h)||o.isValidElement(h)&&typeof h!="function"?o.Children.toArray(h).filter(o.isValidElement):[],U=q.length>0,W=ae=>ae===ir||ae?.__isTrainingPage===!0,J=U&&q.some(ae=>W(ae.type)),I=J?q.filter(ae=>W(ae.type)).map((ae,he)=>{const V=ae.props||{};return{id:`children-page-${he}`,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:q}],T=U&&!E&&typeof h!="function",O=T?Math.max(1,I.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 ae=document.body;return ae.dataset.ihabTrainingPopupCount=String(Number(ae.dataset.ihabTrainingPopupCount||"0")+1),ae.classList.add("ihab-training-popup-open"),()=>{const he=Number(ae.dataset.ihabTrainingPopupCount||"1")-1;he>0?ae.dataset.ihabTrainingPopupCount=String(he):(delete ae.dataset.ihabTrainingPopupCount,ae.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return d4()},[]);const[R,S]=o.useState({...ja,enabled:!1}),L=o.useRef(R);o.useEffect(()=>{L.current=R},[R]);const K=o.useRef($),Z=o.useRef(!1),Q=o.useRef(null);o.useEffect(()=>{let ae=!1;const he=V=>{if(ae)return;Z.current=!0;const ie=V?Ta({...ja,enabled:!1},V):{...ja},ue=Q.current;Q.current=null;const xe=ue?Ta(ie,ue):ie;L.current=xe,S(xe),ue&&!K.current&&ti(xe),Oa(xe);const _e=K.current;if(_e){const Me=typeof _e=="function"?_e(xe):_e,nt=Ta(xe,Me);L.current=nt,S(nt),Oa(nt)}};return w2().then(he),()=>{ae=!0}},[]);const[pe,Te]=o.useState(null),[ke,oe]=o.useState(null),z=o.useCallback((ae,he)=>{ae==="main"?Te(he):oe(he)},[]),re=o.useRef(null),ce=o.useRef(null),fe=o.useCallback(()=>{ce.current!==null&&(clearTimeout(ce.current),ce.current=null);const ae=re.current;re.current=null,ae&&ti(ae)},[]);o.useEffect(()=>{if(typeof window>"u")return;const ae=()=>{document.visibilityState==="hidden"&&fe()};return window.addEventListener("pagehide",fe),document.addEventListener("visibilitychange",ae),()=>{window.removeEventListener("pagehide",fe),document.removeEventListener("visibilitychange",ae),fe()}},[fe]);const ye=o.useCallback(ae=>{const he=Ta(L.current,ae);if(L.current=he,S(he),!Z.current){Q.current={...Q.current??{},...ae},Oa(he);return}K.current||(re.current=he,ce.current!==null&&clearTimeout(ce.current),ce.current=setTimeout(fe,u3)),Oa(he)},[fe]),Ne=R.mainSpeed,we=R.mainVolume,Be=o.useCallback(ae=>ye({mainSpeed:ae}),[ye]),je=o.useCallback(ae=>ye({mainVolume:ae}),[ye]),se=o.useMemo(()=>({settings:R,setSettings:ye,registerAnalyser:z,mainAnalyser:pe,noiseAnalyser:ke,playbackRate:Ne,setPlaybackRate:Be,mainVolume:we,setMainVolume:je}),[R,ye,z,pe,ke,Ne,Be,we,je]),te=o.useRef(null),[me,ne]=o.useState(0),Ce=o.useRef([]),[ve,Ye]=o.useState("center"),[He,Ue]=o.useState(!1),Se=o.useRef(!1),Ge=o.useRef(null),$e=o.useCallback(ae=>{Se.current||(Se.current=!0,Ue(!0),Ge.current=setTimeout(()=>{try{ae()}catch{Se.current=!1,Ue(!1)}},d3()?0:F5))},[]);o.useEffect(()=>()=>{Ge.current&&clearTimeout(Ge.current)},[]);const Ie=o.useRef(f);o.useEffect(()=>{Ie.current=f}),o.useEffect(()=>{const ae=te.current,he=document.activeElement;if(Fr(ae,he),ae){const V=Array.from(ae.querySelectorAll(fn)).filter(ie=>!ie.closest('[aria-hidden="true"]'))[0];if(V)try{V.focus()}catch{}}return()=>{const V=document.activeElement;if(!V||V===document.body||ae&&ae.contains(V))try{Or(he)?.focus?.()}catch{}}},[]),o.useEffect(()=>In(()=>$e(()=>{const ae=Ie.current;typeof ae=="function"&&ae()})),[$e]),Pr(te,!0);const[Ve,at]=o.useState(!1),ot=o.useRef(!1),[We,Xe]=o.useState(null),gt=o.useRef(0),Bt=()=>{gt.current+=1,Xe(null)},[Tt,dt]=o.useState(""),[Qe,Ze]=o.useState(()=>lr()),Oe=o.useRef(typeof u=="number"?u:null);o.useEffect(()=>{!E&&!T||(Ze(lr()),Bt())},[E,M,T]),o.useEffect(()=>{T&&Ze(ae=>{const he=Math.max(0,Math.min(ae.pageIndex,Math.max(0,O-1)));return he!==ae.pageIndex?{...ae,pageIndex:he,stepIndex:0}:ae})},[T,O]);const rt=T?Math.max(0,Math.min(Qe.pageIndex,O-1)):0,et=T?I[rt]:null,yt=T&&et&&Array.isArray(et.steps)?et.steps:[],ze=E?Qe.pageIndex:T?rt:typeof u=="number"?u:0,it=E?ee[Math.max(0,Math.min(Qe.pageIndex,Math.max(0,ee.length-1)))]:null,Nt=E&&it&&Array.isArray(it.steps)?it.steps:[],Dt=E?Nt.length:T?yt.length:typeof m=="number"?m:0,Le=E||T?Math.max(0,Math.min(Qe.stepIndex,Math.max(0,Dt))):typeof p=="number"?p:0,Ke=E?ee.length:T?O:typeof d=="number"?d:0;o.useLayoutEffect(()=>{const ae=Oe.current;if(typeof ze=="number"&&ae!==null&&ze!==ae&&ze>ae)try{dt(P("training.problemNotice",{n:ze+1}))}catch{}Oe.current=typeof ze=="number"?ze:Oe.current},[ze,u,P]),o.useLayoutEffect(()=>{const ae=te.current;if(!ae)return;const he=()=>ae.querySelector(".page-popup__scroll");let V=null,ie=null,ue=null;const xe=ct=>{const wt=he();if(!wt)return;const Wt=wt.scrollHeight<=wt.clientHeight;if(Ye(Wt?"center":"top"),ct&&!ot.current){ot.current=!0;try{at(!0)}catch{}try{nt.disconnect()}catch{}}},_e=()=>{V!==null&&cancelAnimationFrame(V),V=requestAnimationFrame(()=>{ie!==null&&clearTimeout(ie),ie=setTimeout(()=>xe(!0),60)})},Me=()=>{ue!==null&&cancelAnimationFrame(ue),ue=requestAnimationFrame(()=>xe(!1))};_e(),window.addEventListener("resize",Me);const nt=new MutationObserver(_e);nt.observe(ae,{childList:!0,subtree:!0,attributes:!0});const ft=setTimeout(()=>{ot.current||xe(!0)},400);return()=>{window.removeEventListener("resize",Me),V!==null&&cancelAnimationFrame(V),ie!==null&&clearTimeout(ie),ue!==null&&cancelAnimationFrame(ue),clearTimeout(ft);try{nt.disconnect()}catch{}}},[te]);const St=o.useCallback(ae=>{te.current&&(te.current._childOnNext=ae)},[]),xt=o.useCallback(ae=>{te.current&&(te.current._childOnResult=ae)},[]),jt=o.useCallback((ae,he,V)=>{Ze(ie=>{const ue=ie.answersByPage[ae]||{},xe=ue[he],_e=Fo(V),Me=Fo(xe);return xe&&Me>_e?ie:{...ie,answersByPage:{...ie.answersByPage,[ae]:{...ue,[he]:V}}}})},[Ze]),sn=o.useCallback((ae,he,V)=>{const ie=Ho(it,ze),ue=Vo(ae,he);jt(ie,ue,V)},[it,ze,jt]),tt=o.useCallback((ae,he,V)=>{const ie=Ho(it,ze),ue=Vo(ae,he);jt(ie,ue,V),!V?.allowChange&&ae?.autoAdvance!==!1&&Ze(xe=>({...xe,stepIndex:Math.max(xe.stepIndex,he+1)}))},[it,ze,jt,Ze]),Kt=o.useCallback((ae,he)=>{const V=et?.id||`children-page-${ze??0}`,ie=typeof he=="number"?he:Le??0,ue=`step-${ie}`;jt(V,ue,ae),ae?.allowChange||Ze(xe=>({...xe,stepIndex:Math.max(xe.stepIndex,ie+1)}))},[et,ze,Le,jt,Ze]),_n=o.useCallback((ae,he)=>{const V=et?.id||`children-page-${ze??0}`,ie=`step-${typeof he=="number"?he:Le??0}`;jt(V,ie,ae)},[et,ze,Le,jt]),_t=T?{currentPageIndex:ze??0,currentStepIndex:Le??0,totalStepsInPage:yt.length,handleStepDone:Kt,handleStepChange:_n}:null,zt=async()=>{const ae=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:ee,flowState:Qe,answersByPage:Qe.answersByPage})):null;return typeof G=="function"&&await Promise.resolve(G(ae))||ae},Jt=async()=>{const ae=et?.id||`children-page-${Qe.pageIndex}`,he=Qe.answersByPage[ae]||{},V=J?(()=>{const xe={};let _e=0;return I.forEach(Me=>{const nt=Qe.answersByPage[Me.id]||{},ft=Array.isArray(Me.steps)?Me.steps.length:0;for(let ct=0;ct<ft;ct+=1){const wt=nt[`step-${ct}`];typeof wt<"u"&&(xe[`step-${_e+ct}`]=wt)}_e+=ft}),xe})():he;if(typeof y=="function"){const xe=await Promise.resolve(y(V,{pageAnswers:he,answersByPage:Qe.answersByPage,pages:I,currentPageId:ae}));return typeof G=="function"&&await Promise.resolve(G(xe))||xe}const ie=Object.entries(he).map(([xe,_e],Me)=>({index:Me,key:xe,payload:_e})),ue={results:ie,answers:ie,score:0};return typeof G=="function"&&await Promise.resolve(G(ue))||ue},an=()=>{const ae=++gt.current,he=()=>ae!==gt.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=zt();Xe(Mn);const xe=ue;Promise.resolve(xe).then(_e=>{he()||Xe(_e||{isEmpty:!0})}).catch(_e=>{!he()&&Xe({isEmpty:!0})});return}if(T){const ue=Jt();Xe(Mn);const xe=ue;Promise.resolve(xe).then(_e=>{he()||Xe(_e||{isEmpty:!0})}).catch(_e=>{!he()&&Xe({isEmpty:!0})});return}const V=te.current&&te.current._childOnResult,ie=ue=>{try{return ue?ue():void 0}catch{return}};if(typeof V=="function"){const ue=ie(V);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:hn&&hn.tagName.toUpperCase()==="SCRIPT"&&hn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ue&&typeof ue.then!="function"?Xe(ue):Xe(ue&&typeof ue.then=="function"?Mn:{});const xe=()=>{he()||Xe(_e=>_e===Mn?{}:_e)};Promise.resolve(ue).then(_e=>{_e&&!he()?Xe(_e):xe()}).catch(_e=>{xe()});return}if(typeof G=="function"){const ue=ie(G);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:hn&&hn.tagName.toUpperCase()==="SCRIPT"&&hn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ue&&typeof ue.then!="function"?Xe(ue):Xe(ue&&typeof ue.then=="function"?Mn:{});const xe=()=>{he()||Xe(_e=>_e===Mn?{}:_e)};Promise.resolve(ue).then(_e=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:hn&&hn.tagName.toUpperCase()==="SCRIPT"&&hn.src||new URL("components.cjs.js",document.baseURI).href}catch{}_e&&!he()?Xe(_e):xe()}).catch(_e=>{console.error("viewResults external handler failed",_e),xe()});return}},ln=()=>{if(E){if(typeof ze=="number"&&typeof Ke=="number"&&ze<Ke-1){Ze(he=>({...he,pageIndex:he.pageIndex+1,stepIndex:0}));return}return an()}if(T){const he=yt.length;if(typeof Le=="number"&&Le<he-1){Ze(V=>({...V,stepIndex:V.stepIndex+1}));return}if(typeof ze=="number"&&typeof Ke=="number"&&ze<Ke-1){Ze(V=>({...V,pageIndex:V.pageIndex+1,stepIndex:0}));return}return an()}if(typeof g=="function"){try{g()}catch{}return}const ae=te.current&&te.current._childOnNext;if(typeof ae=="function"){try{ae()}catch{}return}},Qt=E?H.title||H.label||v||P("common.popup","\uD31D\uC5C5"):a||x||(Array.isArray(s)?s[s.length-1]:void 0)||v||P("common.popup","\uD31D\uC5C5"),wn=v||Qt,Yt=E?H.title??H.label??Qt:a??x??Qt,ht=(ae,he)=>{const V=Ho(it,ze),ie=Vo(ae,he),ue=Qe.answersByPage[V]?.[ie],xe=c3(ae,{page:it,pageIndex:ze,step:ae,stepIndex:he,storedPayload:ue,answersByPage:Qe.answersByPage,flowState:Qe}),_e={key:ie,index:he,stepIndex:Le,isLast:he===Nt.length-1};switch(ae?.type){case"listen":return n.jsx($o,{..._e,...xe,onDone:Me=>tt(ae,he,Me)});case"confirm":return n.jsx(Mo,{..._e,...xe,onDone:Me=>tt(ae,he,Me),onChange:Me=>sn(ae,he,Me)});case"confirmWithText":return n.jsx(Lo,{..._e,...xe,onDone:Me=>tt(ae,he,Me),onChange:Me=>sn(ae,he,Me)});case"orderList":return n.jsx(Ro,{..._e,...xe,onDone:Me=>tt(ae,he,Me),onChange:Me=>sn(ae,he,Me)});default:return null}},cn=o.useRef(void 0);o.useEffect(()=>{const ae=cn.current;if(cn.current=ze,ae===void 0||ae===ze||!Qa())return;const he=te.current;if(!he)return;const V=document.activeElement;if(!(!V||V===document.body||!he.contains(V)||V.disabled===!0))return;const ie=he.querySelector(`.training-steps ${fn.split(", ").join(", .training-steps ")}`)??Array.from(he.querySelectorAll(fn)).find(ue=>!ue.closest('[aria-hidden="true"]'));try{ie?.focus()}catch{}},[ze]);const Zt=E?ee.length>0?n.jsx("div",{className:"training-steps",children:Nt.map((ae,he)=>ht(ae,he))},`replay-${me}`):n.jsx("div",{className:"page-popup__content page-popup__content--center",children:n.jsx("div",{className:"pp-empty",children:t?.emptyMessage||P("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Mt=T?n.jsxs(tu.Provider,{value:_t,children:[et?.pageTop?n.jsx("div",{className:"training-page-top",children:et.pageTop}):null,n.jsx("div",{className:"training-steps",children:yt.map((ae,he)=>{const V=ae;return o.cloneElement(V,{...V.props,_stepIndex:he,_totalSteps:yt.length,_stepKey:`step-${he}`,_pageIndex:ze})})},`replay-${me}`),et?.pageBottom?n.jsx("div",{className:"training-page-bottom",children:et.pageBottom}):null]}):null,un=o.useCallback(()=>{let ae;if(w){const he=We,{results:V,correct:ie,total:ue}=uu(We);v2({items:_2(V),category:cu.has(w)?"sentence":"word",trainingType:w,entryPoint:N??"sentence",itemRef:A??null,correct:ie,total:ue,score:typeof he?.score=="number"?he.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-F.current)/1e3)),dailyTotal:B??null}),ae={correct:ie,total:ue,attempt:Ce.current.length+1,previousAttempts:[...Ce.current]}}Bt(),$e(()=>{typeof C=="function"&&C(ae),typeof f=="function"&&f()})},[C,f,w,N,B,A,We,Xe,$e]),Xt=o.useCallback(()=>dt(""),[dt]),dn=o.useCallback(()=>{$e(()=>{typeof f=="function"&&f()})},[f,$e]),Ae=n.jsxs("div",{className:`page-popup${He?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":wn,children:[n.jsxs("div",{ref:te,className:`page-popup__panel ${Ve?"":"page-popup__panel--measuring"} ${ve==="center"?"page-popup__panel--center":ve==="top"?"page-popup__panel--top":""}`,children:[n.jsx(Xc,{title:Yt,subtitle:E?H.subtitle||H.label:Array.isArray(s)?s.join(" / "):void 0,desc:E?void 0:r,depth:E?H.depth:s,icon:E?H.icon:i,wrapperStyle:E?H.wrapperStyle:l,iconTooltip:E?H.iconTooltip:c,progressMax:Ke,progressIndex:ze,pageIndex:ze,pageCount:Ke,onBack:dn,onClose:dn}),n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content ${ve==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:T?Mt:E?Zt:typeof h=="function"?h({registerOnNext:St,registerOnResult:xt,panelRef:te,setResultOverlay:Xe}):h})}),n.jsx(Zc,{onSettings:b,onNext:ln,onResult:an,useNoiseSettingBtn:!!(E?H.useNoiseSetting??!0:_),stepIndex:Le,stepCount:Dt,pageIndex:ze,pageCount:Ke})]}),We&&!We.isEmpty&&(D??p3)({score:We.score,results:We.results||We.answers||[],contextsLength:We.results?We.results.length:We.answers?We.answers.length:0,onReplay:()=>{if(F.current=Date.now(),We!==Mn){const{correct:ae,total:he}=uu(We);Ce.current.push({correct:ae,total:he})}if(Bt(),ne(ae=>ae+1),E){if(Ze(lr()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(T){Ze(lr());return}try{const ae=te.current&&te.current._childOnResult;typeof ae=="function"&&ae({replay:!0})}catch{}},onClose:un,pending:We===Mn}),We?.isEmpty&&n.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":P("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",children:n.jsx("div",{className:"page-popup__empty",children:P("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:un,label:P("training.result.done","\uC644\uB8CC")})})]})}),n.jsx(ta,{message:Tt,position:"top",onClose:Xt})]}),Pe=n.jsx(No.Provider,{value:se,children:Ae});return typeof document<"u"&&document.body?qt.createPortal(Pe,document.body):Pe}const Ln=m3;Ln.Page=ir,Ln.ListenStep=nu,Ln.ConfirmStep=au,Ln.ConfirmWithTextStep=ru,Ln.OrderListStep=ou,Ln.CardStep=su,Ln.CardOrderStep=s3;function h3({label:e,homonum:t}){const a=Gn()?.(e,t)??"",{imgRef:r,loading:s,hasImage:i,onLoad:l,onError:c}=fo(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 du({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 u=t.left+t.width/2-i/2,d=t.top-l-8;d<8&&(d=t.bottom+8),u=Math.max(8,Math.min(u,c-i-8)),s({left:u,top:d})},[t]),!t||e.length===0?null:qt.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(h3,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const f3=new Intl.Collator("ko");function C3({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:s,groups:i,selected:l=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:p,onPrintEmpty:m,className:f,emptyHint:C,sectionType:g="page",disc:b,notice:_}){const{t:h,i18n:v}=ge.useTranslation(),x=v.language?.startsWith("ko")??!1,{anchorRect:y,openAt:k,close:w}=qa(),[N,B]=o.useState(null),A=o.useCallback(()=>{w(),B(null)},[w]);Jg(A,!!N);const D=(r??"").trim(),$=/^[^,[\]\s]+$/.test(D)?D:"",F=$.length>0,P=r===void 0&&t===void 0,G=F?"match":P?"original":"ganada",[E,M]=o.useState(()=>G),[H,ee]=o.useState("50"),[q,U]=o.useState(1),[W,J]=o.useState(F);W!==F&&(J(F),M(G));const I=E==="match"&&!F||E==="original"&&!P?G:E,T=o.useMemo(()=>[...F?[{value:"match",label:h("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...P?[{value:"original",label:h("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:h("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:h("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:h("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:h("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:h("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:h("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[h,F,P]),O=o.useMemo(()=>["10","25","50","100"].map(we=>({value:we,label:h("wordSearch.pageSize",{count:Number(we),defaultValue:`${we}\uAC1C\uC529 \uBCF4\uAE30`})})),[h]),R=we=>we.words?.[0],S=o.useMemo(()=>{const we=[...$].length,Be=r2($),je=new Map;return se=>{let te=je.get(se);return te===void 0&&(te=Be((se.words?.[0]?.label??"").slice(0,we))?0:1,je.set(se,te)),te}},[$]),L=o.useCallback((we,Be)=>{const je=me=>R(me)?.label??"",se=me=>R(me)?.syllables??[...je(me)].length,te=me=>(me.words??[]).reduce((ne,Ce)=>{const ve=parseInt(Ce.grade??"",10);return Number.isFinite(ve)&&ve<ne?ve:ne},999);switch(I){case"match":return S(we)-S(Be)||f3.compare(je(we),je(Be));case"ganada":return je(we).localeCompare(je(Be),"ko");case"ganada_desc":return je(Be).localeCompare(je(we),"ko");case"syllable":return se(we)-se(Be)||je(we).localeCompare(je(Be),"ko");case"syllable_desc":return se(Be)-se(we)||je(we).localeCompare(je(Be),"ko");case"grade":return te(we)-te(Be)||je(we).localeCompare(je(Be),"ko");case"grade_desc":return te(Be)-te(we)||je(we).localeCompare(je(Be),"ko");default:return 0}},[I,S]),K=o.useMemo(()=>s.slice().sort(L),[s,L]),Z=Number(H)||10,Q=o.useMemo(()=>(i??[]).flatMap(we=>we.items.slice().sort(L).map(Be=>({item:Be,label:we.label}))),[i,L]),pe=i?Q.length:K.length,Te=Math.max(1,Math.ceil(pe/Z)),ke=Math.min(q,Te),oe=o.useMemo(()=>K.slice((ke-1)*Z,ke*Z),[K,ke,Z]),z=o.useMemo(()=>{if(!i)return null;const we=Q.slice((ke-1)*Z,ke*Z),Be=new Map;for(const{item:je,label:se}of we)Be.has(se)||Be.set(se,[]),Be.get(se).push(je);return[...Be.entries()].map(([je,se])=>({label:je,items:se}))},[i,Q,ke,Z]);o.useEffect(()=>{U(1)},[E,H,pe,r]);const re=pe>0?n.jsxs("div",{className:"word-search-result-block__toolbar",children:[n.jsx(nn,{size:40,options:T,value:I,onChange:M,ariaLabel:h("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),n.jsx(nn,{size:40,options:O,value:H,onChange:ee,ariaLabel:h("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),n.jsx(Ga,{page:ke,totalPages:Te,onChange:U})]}):void 0,ce=we=>{c&&c(we)},fe=t!==void 0&&a?n.jsxs(n.Fragment,{children:[h("wordSearch.resultTitlePrefix","\uCD1D "),n.jsx("span",{style:{color:"var(--color-main)"},children:t}),h("wordSearch.resultTitleSuffix",{unit:x?m2(a):a})]}):void 0,ye=t!==void 0&&t>0&&u!==void 0&&a?h("wordSearch.resultDisc",{unit:x?f2(a):a,max:u,selected:l.length}):void 0,Ne=b??(_?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"word-search-result-block__notice",children:_}),ye?n.jsx("span",{className:"word-search-result-block__disc",children:ye}):null]}):ye);return n.jsxs(aa,{type:g,icon:e,title:fe,action:re,disc:Ne,className:De("word-search-result-block",f),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:h("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),C&&n.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:C})]}),i?(z??[]).map(we=>n.jsx("div",{className:"word-search-result-block__group",children:n.jsx("div",{className:"word-search-result-block__items",children:we.items.map(Be=>{const je=l.includes(Be.id);return n.jsx("div",{onMouseEnter:se=>{k(se.currentTarget),B(Be.words??[])},onMouseLeave:A,children:n.jsx(le,{htmlType:"button",size:"word",align:"grid",label:(Be.words??[]).map(se=>se.label),subLabel:(Be.words??[]).some(se=>se.subLabel)?(Be.words??[]).map(se=>se.subLabel):void 0,selected:je,onClick:()=>ce(Be.id),minWidth:200})},Be.id)})})},we.label)):n.jsx("div",{className:"word-search-result-block__items",children:oe.map(we=>{const Be=l.includes(we.id);return n.jsx("div",{onMouseEnter:je=>{k(je.currentTarget),B(we.words??[])},onMouseLeave:A,children:n.jsx(le,{htmlType:"button",size:"word",align:"grid",label:(we.words??[]).map(je=>je.label),subLabel:(we.words??[]).some(je=>je.subLabel)?(we.words??[]).map(je=>je.subLabel):void 0,selected:Be,onClick:()=>ce(we.id),minWidth:200})},we.id)})}),N&&y&&n.jsx(du,{words:N,anchorRect:y})]}),Te>1&&n.jsx("div",{className:"word-search-result-block__pagination-bottom",children:n.jsx(Ga,{page:ke,totalPages:Te,onChange:U})}),(d||p)&&n.jsxs("div",{className:"word-search-result-block__actions",children:[d&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:h("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),p&&n.jsx("div",{onClick:l.length===0?m:void 0,children:n.jsx(le,{htmlType:"button",size:"56",type:"bar",variant:"main",label:h("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function g3(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 b3({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:s=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:p,title:m,titleIcon:f,disc:C,showInfoButton:g=!0,onClearPhoneme:b,onSearch:_,onSearchEmpty:h,searchDisabled:v=!1,searchLabel:x,searchChecking:y=!1,pairMode:k=!1,sectionType:w="page",beforeSearchContent:N,beforeContent:B,afterContent:A,hideCountControl:D=!1,ordinal:$=!1}){const{t:F}=ge.useTranslation(),P=o.useMemo(()=>F("wordPairs.infoNotes",{returnObjects:!0}),[F]),G=o.useMemo(()=>Array.from({length:s-i+1},(R,S)=>{const L=i+S;return{key:String(L),label:F("wordPairs.count",{n:L})}}),[F,s,i]),E=o.useMemo(()=>F("wordPairs.ordinals",{returnObjects:!0}),[F]),M=o.useCallback(R=>$?F("wordPairs.phonemeOrdinalLabel",{ordinal:E[R-1]??R}):a===1?F("wordPairs.phonemeSingleLabel","\uC74C\uC808"):F("wordPairs.phonemeN",{n:R}),[$,E,a,F]),H=o.useCallback(R=>$?F("wordPairs.phonemeContrastOrdinalLabel",{ordinal:E[R-1]??R}):a===1?F("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):F("wordPairs.phonemeContrast",{n:R}),[$,E,a,F]),ee=o.useCallback((R,S)=>S?n.jsxs(n.Fragment,{children:[R,n.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):R,[]),{anchorRect:q,toggleAt:U,close:W}=qa(),J=o.useCallback(R=>r(Number(R)),[r]),I=tn("(max-width: 767px)"),T=o.useCallback(R=>g3(R,e).map(({label:S,value:L,displayLabel:K})=>{const Z=!!L&&L!=="\uC5C6\uC74C";return n.jsxs("span",{className:De("phoneme-select-block__cell-jamo-part",L?"":"phoneme-select-block__cell-jamo-part--empty",Z?"":"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||d}),Z&&n.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:K??S})]},S)}),[e,d]),O=n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-tooltip-ignore":!0,children:n.jsx(le,{htmlType:"button",size:40,type:I?"dot":void 0,icon:"info",label:I?void 0:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:q?"is-selected":void 0,"aria-expanded":!!q,"aria-haspopup":"dialog",onClick:R=>U(R.currentTarget)})}),q&&n.jsx(Fn,{title:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:P,anchorRect:q,onClose:W})]});return n.jsxs(aa,{type:w,title:m,icon:f,disc:C,action:g?O:void 0,className:De("phoneme-select-block",p),children:[B,!D&&n.jsx("div",{className:"phoneme-select-block__controls",children:n.jsx(Sn,{options:G,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((R,S)=>{const L=t[S*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:T(L)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:M(S+1)})]},S)})}),n.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:F("wordPairs.phonemeSelect.vs","\uB300")}),n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((R,S)=>{const L=t[S*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:T(L)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:H(S+1)})]},S)})})]}):t.map((R,S)=>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:T(R)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:M(S+1)})]},S))}),(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((R,S)=>{const L=t[S*2]??{};return n.jsx(xn,{title:ee(M(S+1),S===0),sections:c?c(L,S*2):l,selected:L,onSelect:u?.(S*2),align:"newline"},S)})}),n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((R,S)=>{const L=t[S*2+1]??{};return n.jsx(xn,{title:H(S+1),sections:c?c(L,S*2+1):l,selected:L,onSelect:u?.(S*2+1),align:"newline"},S)})})]}):t.map((R,S)=>n.jsx(xn,{title:ee(M(S+1),S===0),sections:c?c(R,S):l,selected:R,onSelect:u?.(S),align:"newline"},S))})}),N&&n.jsx("div",{className:"phoneme-select-block__before-search",children:N}),(b||_||y)&&(()=>{const R=t.every(S=>Object.entries(S).every(([L,K])=>!K||L==="\uC885\uC131"&&K==="\uC5C6\uC74C"));return n.jsxs("div",{className:"phoneme-select-block__search-row",onClick:R?h:void 0,children:[b&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:F("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:R,onClick:R?void 0:b}),_?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??F("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:R||v||y,onDisabledClick:y?()=>{}:void 0,"aria-busy":y||void 0,onClick:_}):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??F("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),A]})}function y3({title:e,sections:t,selected:a,onSelect:r,className:s}){const{t:i}=ge.useTranslation();return n.jsx(xn,{className:s,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,align:"inline"})}function v3({title:e,headerAction:t,sections:a,selected:r,onSelect:s,className:i}){const{t:l}=ge.useTranslation();return a.length===0?null:n.jsx(xn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:s,align:"newline"})}function x3({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:i,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){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")},f=_=>p("wordPairs.count",{n:_}),C=[{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:[f(1),f(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.")]})}],g={[m.searchMode]:t==="explicit"?m.explicit:t==="pick"?m.pick:m.include,[m.phonemeOrder]:r==="ordered"?m.orderMatch:m.orderAny,[m.count]:f(i),[m.inputMode]:c==="phoneme"?m.pronInput:m.charInput},b=(_,h)=>{h===m.searchMode?a(_===m.explicit?"explicit":_===m.pick?"pick":"include"):h===m.phonemeOrder?s(_===m.orderMatch?"ordered":"unordered"):h===m.count?l(_===f(2)?2:1):h===m.inputMode&&u(_===m.pronInput?"phoneme":"word")};return n.jsx(xn,{className:d,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:C,selected:g,onSelect:b,align:"inline"})}function _3(e){const{title:t,items:a,columns:r,gridTemplateColumns:s,searchPlaceholder:i,searchFn:l,defaultSortKey:c,defaultSortAsc:u=!0,selectedId:d,selectedIds:p,onSelect:m,onClose:f,pageSizeOptions:C=[10,25,50,100],initialPageSize:g,emptyText:b,countLabel:_,topContent:h,className:v=""}=e,{t:x}=ge.useTranslation(),y=i??x("common.search","\uAC80\uC0C9"),k=b??x("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[w,N]=o.useState(""),[B,A]=o.useState(c??r[0]?.key??""),[D,$]=o.useState(u),[F,P]=o.useState(String(g??C[0]??10)),[G,E]=o.useState(1);o.useEffect(()=>{E(1)},[w,F]);const M=l!==null,H=o.useCallback((S,L)=>{if(!L)return!0;const K=L.toLowerCase();return r.some(Z=>{const Q=S[Z.key];return Q==null?!1:String(Q).toLowerCase().includes(K)})},[r]),ee=l??H,q=o.useMemo(()=>{const S=M?a.filter(L=>ee(L,w)):a;return B?[...S].sort((L,K)=>{const Z=L[B],Q=K[B];return Z===Q?0:Kr(Z,Q,D)}):S},[a,w,B,D,M,ee]),U=Math.max(1,Math.ceil(q.length/Number(F)));G>U&&E(U);const W=Math.min(G,U),J=q.slice((W-1)*Number(F),W*Number(F)),I=o.useCallback(S=>{B===S?$(L=>!L):(A(S),$(!0)),E(1)},[B]),T=o.useMemo(()=>{if(typeof _=="function"){const S=q.length,L=_(S);if(typeof L=="string"){const K=L.lastIndexOf(String(S));if(K>=0)return{prefix:L.slice(0,K),suffix:L.slice(K+String(S).length)}}return{label:L}}if(typeof _=="string"&&_.includes("{n}")){const[S,L]=_.split("{n}");return{prefix:S,suffix:L}}return{prefix:x("common.totalCountPrefix","\uCD1D "),suffix:x("common.totalCountSuffix","\uAC1C")}},[_,q.length,x]),O=o.useMemo(()=>r.map(S=>({label:S.label,onClick:S.sortable!==!1?()=>I(S.key):void 0,className:S.className,sortDir:S.sortable!==!1&&B===S.key?D?"asc":"desc":null})),[r,B,D,I]),R=o.useMemo(()=>C.map(S=>({value:String(S),label:x("common.pageSizeLabel",{n:S})})),[C,x]);return n.jsxs(Tn,{className:`popup-list ${v}`,title:t,onClose:f,children:[h,"label"in T&&n.jsx("p",{className:"toolbar__count body-1",children:T.label}),n.jsx(no,{count:"label"in T?void 0:{value:q.length,prefix:T.prefix,suffix:T.suffix},search:M?{value:w,onChange:N,placeholder:y}:void 0,pageSize:{options:R,value:F,onChange:P},pagination:{page:W,total:U,onChange:E}}),n.jsx(uo,{size:"medium",gridTemplateColumns:s,resizable:!0,fields:O,items:J,onRowClick:m,renderRow:S=>{const L=p!=null?S.id!=null&&p.has(S.id):d!=null&&S.id===d;return r.map(K=>({content:K.render?K.render(S):S[K.key]??"",className:De(K.className,L&&"popup-list__row--selected")}))},empty:k})]})}function w3(e){const{title:t,message:a,topContent:r,details:s,children:i,confirmLabel:l,cancelLabel:c,hideCancel:u=!1,extraAction:d,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:f,closeOnConfirm:C=!0,onClose:g,inline:b,size:_="small",className:h,initialFocus:v="close"}=e,{t:x}=ge.useTranslation(),y=o.useRef(null);o.useEffect(()=>{if(b||v==="close")return;const D=y.current?.closest(".popup-panel"),$=Array.from(D?.querySelectorAll(".popup-footer--buttons button")??[]),F=v==="confirm"?$[$.length-1]:u?void 0:$[d?1:0];F&&!F.disabled&&F.focus()},[]);const k=o.useRef(!1),[w,N]=o.useState(!1),B=D=>{let $=!1;return{close:()=>{$=!0,D()},\uB2EB\uC558\uB098:()=>$}},A=async D=>{if(k.current)return;k.current=!0;const $=typeof document<"u"?document.activeElement:null;N(!0);let F=!1;try{F=await D()}catch(P){typeof console<"u"&&console.error(P)}finally{F||(k.current=!1,N(!1),requestAnimationFrame(()=>{const P=document.activeElement;(!P||P===document.body)&&$?.isConnected&&$.focus()}))}};return n.jsxs(Tn,{title:t,onClose:g,closeDisabled:w,inline:b,size:_,className:De("confirm-popup",h),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||w,onClick:async({closeWithAnimation:D})=>{await A(async()=>{const $=B(D);await d.onClick($.close);const F=d.closeOnClick??!0;return F&&D(),F||$.\uB2EB\uC558\uB098()})}}]:[],...u?[]:[{label:c??x("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:w,onClick:({closeWithAnimation:D})=>D()}],{label:l??x("common.confirm","\uD655\uC778"),variant:p,disabled:m||w,onClick:async({closeWithAnimation:D})=>{await A(async()=>{const $=B(D);return await f($.close),C&&D(),C||$.\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((D,$)=>n.jsx(jn,{label:D.label,children:n.jsx("span",{className:"panel-row__text body-2",children:D.value})},$))}),n.jsx("p",{ref:y,className:"body-2 confirm-popup__message",children:a}),i]})}function k3({onApply:e,onCancel:t}){const{t:a}=ge.useTranslation(),[r,s]=o.useState(""),[i,l]=o.useState(!1),[c,u]=o.useState(null),d=o.useRef(null);o.useEffect(()=>{d.current?.focus()},[]);const p=o.useCallback(async C=>{const g=r.trim();if(g){l(!0),u(null);try{await e(g),C()}catch(b){u(Xs(b)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),m=o.useCallback((C,g)=>{C.key==="Enter"&&!C.nativeEvent.isComposing&&p(g)},[p]),f=C=>{s(C.target.value),u(null)};return n.jsx(Tn,{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:C})=>C()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:C})=>{p(C)}}],children:({closeWithAnimation:C})=>n.jsxs(n.Fragment,{children:[n.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:f,onKeyDown:g=>m(g,C),disabled:i,autoComplete:"off",spellCheck:!1}),c&&n.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const A3=200;function B3(e){return e.itemId?($2()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function N3({plan:e,anchorRect:t,offset:a=12,onClose:r}){const{t:s}=ge.useTranslation(),i=o.useMemo(()=>P2(s).map(c=>({type:c,items:(e.items??[]).filter(u=>u.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:u},d)=>[d>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:u.map((p,m)=>{const f=B3(p);return f?n.jsx(mo,{index:m,type:c,trainingData:f,size:"compact",hideCheckBadge:!0},p.itemId??m):null})})]},c.key)])})});return t?n.jsx(Cn,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:s("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const pu=["var(--color-main)","var(--color-sub)"],D3=2e3;function S3(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 zo({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:s,trigger:i=0}){const l=o.useMemo(()=>{const b=Math.floor(t/2),_=t-b,h=(v,x)=>Array.from({length:v}).map((y,k)=>{const w=6+Math.random()*12,N=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),B=pu[Math.floor(Math.random()*pu.length)],A=Math.random()*300,D=(360+Math.random()*260)*r*1.2,$=(x==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,F=Math.cos($)*D,P=Math.sin($)*D*1.35,G=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:N,color:B,delay:A,vx:F,vy:P,angularVel:G,life:E,borderRadius:M}});return[...h(b,"left"),...h(_,"right")]},[t,r]),c=o.useRef(null),u=o.useRef({}),d=o.useRef(null),p=o.useRef(s);o.useEffect(()=>{p.current=s},[s]);const m=o.useRef(null),f=o.useRef(null),C=()=>{if(typeof document>"u")return null;let b=document.querySelector("[data-ihab-effect-root]");return b||(b=document.createElement("div"),b.className="app-effect",b.dataset.ihabEffectRoot="",b.style.position="fixed",b.style.inset="0",b.style.pointerEvents="none",b.style.zIndex="99998",document.body.appendChild(b)),b};if(typeof document<"u"&&f.current==null&&(f.current=C()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const W=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(W)}const b=1200,_=performance.now(),h=f.current&&f.current!==document.body?f.current.getBoundingClientRect():null,v=Math.max(60,(window.innerHeight||800)*.05),x=W=>Math.max(40,(W||window.innerWidth)*.02),y=h?.width||window.innerWidth||375,k=h?.height||window.innerHeight||812,w=W=>{const J=[...W].sort((I,T)=>I-T);return J[Math.floor(J.length/2)]||1},N=w(l.map(W=>Math.abs(W.vy))),B=w(l.map(W=>Math.abs(W.vx))),A=Math.sqrt(2*b*(k*.72+v))/N,D=N*A/b,$=y*.5/(B*D),F=(W,J,I)=>Math.min(I,Math.max(J,W)),P=F(A,.8,2.4),G=F($,.7,2.2),E=a>0?a/D3:1,M=l.map(W=>({...W,life:W.life*E,vx:W.vx*G,vy:W.vy*P,startTime:_+W.delay,ended:!1})),H=h?{x:h.left-x(h.width),y:h.top+h.height+v}:{x:-x(window.innerWidth),y:window.innerHeight+v},ee=h?{x:h.left+h.width+x(h.width),y:h.top+h.height+v}:{x:window.innerWidth+x(window.innerWidth),y:window.innerHeight+v},q=W=>{let J=!1;for(const I of M){const T=u.current[I.id];if(!T||!T)continue;if(W<I.startTime){T.style.display="none",J=!0;continue}if(!I._inited){const ke=I.side==="left"?H.x:ee.x,oe=I.side==="left"?H.y:ee.y;T.style.left=`${ke}px`,T.style.top=`${oe}px`,T.style.transform="translate3d(0px, 0px, 0)",T.style.display="block",T.style.zIndex="100000",typeof I.color=="string"&&I.color.startsWith("var(")&&(T.style.background=S3(T,I.color)??"#FF0060"),I._inited=!0}const O=(W-I.startTime)/1e3;if(O<0)continue;const R=I.life/1e3;if(O>=R){T.style.opacity="0",T.style.display="none",I.ended=!0;continue}J=!0;const S=I.side==="left"?H.x:ee.x,L=I.side==="left"?H.y:ee.y,K=S+I.vx*O,Z=L+I.vy*O+.5*b*O*O,Q=(I.angularVel||0)*O,pe=K-S,Te=Z-L;T.style.transform=`translate3d(${pe}px, ${Te}px, 0) rotate(${Q}deg)`,T.style.opacity=`${Math.max(0,1-O/R)}`}J?d.current=requestAnimationFrame(q):p.current?.()};d.current=requestAnimationFrame(q);const U=setTimeout(()=>{try{if((f.current?f.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const W=document.createElement("div");W.className="party-container",W.style.position="fixed",W.style.inset="0",W.style.pointerEvents="none",W.style.overflow="visible",W.style.zIndex="2147483647";for(const J of l){const I=document.createElement("span");I.className=`confetti confetti--${J.side}`,I.setAttribute("aria-hidden","true"),I.style.display="none",I.style.position="fixed",I.style.left="0px",I.style.top="0px",I.style.width=`${J.size}px`,I.style.height=`${Math.max(4,J.size*.6)}px`,I.style.background=J.color,I.style.borderRadius=J.borderRadius,I.style.transform="translate3d(0,0,0)",I.style.opacity="0",W.appendChild(I),u.current[J.id]=I}(document.body||f.current).appendChild(W),m.current=W}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(U),m.current){try{m.current.remove()}catch{}m.current=null}}},[e,a,i,l]),!e)return null;const g=n.jsx("div",{className:"party-container",ref:c,children:l.map(b=>n.jsx("span",{"aria-hidden":!0,ref:_=>{u.current[b.id]=_},className:`confetti confetti--${b.side}`,style:{width:`${b.size}px`,height:`${Math.max(4,b.size*.6)}px`,background:b.color,borderRadius:b.borderRadius}},`${b.id}-${i}`))});return typeof document<"u"?qt.createPortal(g,f.current||document.body):g}const Wo=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function E3({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(u=>({n:(u?.n??0)+1,count:Wo(c.count),strength:Wo(c.strength),duration:Wo(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(zo,{active:t,trigger:e}),a&&n.jsx(zo,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function T3({title:e,sub:t,rightAction:a,titleAction:r,badge:s,badgeVariant:i="default",documentTitle:l,onBack:c,backLabel:u,wrap:d=!1}){const{t:p}=ge.useTranslation();Pg(typeof e=="string"?e:l??null);const m=u??p("common.back","\uB4A4\uB85C");return n.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[n.jsxs("div",{className:"page-title__main",children:[n.jsxs("div",{className:"page-title__title-row",children:[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(mt,{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 j3(e){return e??""}const mu=o.createContext({words:[],loading:!1});function M3(){return o.useContext(mu)}function L3({words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return n.jsx(mu.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u},children:d})}function $3({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,u)=>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})]},u))}),t&&n.jsx("div",{className:"summary-strip__actions",children:t})]})})}const R3=(e,t)=>`${e} / ${t}`;function P3({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:s=R3,pageWidth:i,pageHeight:l,margin:c,className:u,style:d}){const{t:p}=ge.useTranslation(),m=o.useRef(null),f=o.useRef(null),C=o.useRef(null),g=o.useRef(null),[b,_]=o.useState(null),[h,v]=o.useState(!1);o.useEffect(()=>{const E=m.current;if(!E)return;const M=()=>v(E.scrollWidth>E.clientWidth+1);if(M(),typeof ResizeObserver>"u")return;const H=new ResizeObserver(M);return H.observe(E),()=>H.disconnect()},[b]);const x=e.map(E=>`${E.id}\0${E.section??""}\0${E.group??""}`).join(""),y=b&&b.shape===x?b.pages:null,[k,w]=o.useState(0);o.useEffect(()=>{const E=g.current;if(!E||typeof ResizeObserver>"u")return;const M=new ResizeObserver(()=>w(E.offsetHeight));return M.observe(E),()=>M.disconnect()},[]);const[N,B]=o.useState(0);o.useEffect(()=>{const E=f.current;if(!E||typeof ResizeObserver>"u")return;let M=null;const H=typeof requestAnimationFrame=="function"?U=>requestAnimationFrame(U):U=>setTimeout(U,16),ee=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:U=>clearTimeout(U),q=new ResizeObserver(()=>{M==null&&(M=H(()=>{M=null,B(U=>U+1)}))});return Array.from(E.children).forEach(U=>q.observe(U)),()=>{q.disconnect(),M!=null&&ee(M)}},[x]),o.useLayoutEffect(()=>{const E=f.current,M=g.current;if(!E||!M)return;const H=R=>R.getBoundingClientRect().height||R.offsetHeight,ee=new Map;C.current?.querySelectorAll("[data-chrome-section]").forEach(R=>{ee.set(R.dataset.chromeSection??"",H(R))});const q=R=>H(M)-(ee.get(R??"")??0),U=Array.from(E.children).map(R=>H(R)),W=[];e.forEach((R,S)=>{const L=W[W.length-1],K=L?e[L[0]]:void 0;K&&R.group!=null&&K.group===R.group&&K.section===R.section?L.push(S):W.push([S])});const J=[];let I=[],T=0;const O=()=>{I.length&&J.push(I),I=[],T=0};W.forEach(R=>{const S=R.reduce((K,Z)=>K+U[Z],0),L=q(e[R[0]].section);I.length&&e[I[0]].section!==e[R[0]].section&&O(),S>L?R.forEach(K=>{I.length&&T+U[K]>L+.01&&O(),I.push(K),T+=U[K]}):(I.length&&T+S>L+.01&&O(),R.forEach(K=>I.push(K)),T+=S)}),O(),_(R=>R&&R.shape===x&&JSON.stringify(R.pages)===JSON.stringify(J)?R:{shape:x,pages:J})},[x,k,i,l,c,N]);const A=eo,D=A,$=r??n.jsxs(n.Fragment,{children:[n.jsx("img",{src:D,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),F=(E,M,H)=>({header:n.jsxs("div",{className:"report-doc__header",children:[n.jsx("h2",{className:"report-doc__title h3b",children:H!=null&&t?.[H]||null}),a]}),footer:n.jsxs("div",{className:"report-doc__footer caption-1",children:[n.jsx("span",{className:"report-doc__footer-left",children:$}),n.jsx("span",{className:"report-doc__page-no",children:s(E,M)})]})}),P=Array.from(new Set(e.map(E=>E.section??""))),G={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...d};return n.jsxs("div",{ref:m,className:De("report-doc",u),style:G,tabIndex:h?0:void 0,role:h?"group":void 0,"aria-label":h?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:g,className:"report-doc__ruler"}),n.jsx("div",{ref:C,children:P.map(E=>{const M=F(1,1,E||void 0);return n.jsxs("div",{"data-chrome-section":E,children:[M.header,M.footer]},E)})}),n.jsx("div",{ref:f,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:H,footer:ee}=F(M+1,y.length,e[E[0]].section);return n.jsxs("section",{className:"report-doc__page",children:[H,E.map(q=>n.jsx("div",{children:e[q].content},e[q].id)),ee]},M)})})]})}function I3({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 F3=12;function O3(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=O3(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+F3)}}}function H3(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 V3({title:e,message:t,actionLabel:a,onAction:r,icon:s,onClose:i,className:l=""}){const{t:c}=ge.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8"),d=o.useRef(null),p=o.useRef(!1);return o.useLayoutEffect(()=>{const m=d.current,f=m?.parentElement?.closest(".update-alert-stack")??m,C=f?H3(f):null;return()=>{C?.(),p.current&&m&&m.contains(document.activeElement)&&Va(m)}},[]),n.jsxs("div",{ref:d,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(rs,{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:u})]})}function z3({title:e,description:t,topActions:a,children:r,footerLeft:s,footerRight:i,onClick:l,draggable:c,onDragStart:u,onDragEnd:d,className:p}){const m=s!=null||i!=null,f=r!=null&&r!==!1,C=o.useCallback(g=>{l&&g.target===g.currentTarget&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),l())},[l]);return n.jsxs("div",{className:De("training-card",l?"training-card--clickable":"",p),onClick:l,onKeyDown:l?C:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:c,onDragStart:u,onDragEnd:d,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:g=>g.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:" "})]}),f&&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 W3({title:e,count:t,collapsed:a=!1,onToggle:r,sort:s,actions:i,empty:l=!1,emptyContent:c,dragOver:u=!1,onDragOver:d,onDragLeave:p,onDrop:m,children:f,className:C}){const{t:g}=ge.useTranslation(),b=r!=null,_=De("training-card-group",u&&"training-card-group--dragover",a&&"training-card-group--collapsed",b&&"training-card-group--collapsible",C);return n.jsxs("div",{className:_,onDragOver:d,onDragLeave:p,onDrop:m,children:[n.jsxs("header",{className:"training-card-group__header",children:[b&&n.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?g("common.expand","\uD3BC\uCE58\uAE30"):g("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:h=>h.stopPropagation(),children:[s&&n.jsx(nn,{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:f}))]})}const q3="speechear:saved_word_tables";function U3(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 G3(){try{const e=localStorage.getItem(q3);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(U3):[]}catch{return[]}}function hu(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 qo(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function K3(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 Y3({title:e,titleIcon:t,disc:a,items:r,onSaveComplete:s,onLoad:i,onRemoveItem:l,onReset:c,resetLabel:u,saveButtonLabel:d,secondarySaveButtonLabel:p,onReorder:m,showCellCount:f,onAddItem:C,className:g,renderSavePopup:b,renderWordSearch:_,hideControls:h,saveOnly:v,tableName:x,nameValue:y,onNameChange:k,descriptionValue:w,onDescriptionChange:N,namePlaceholder:B,descriptionPlaceholder:A,existingNames:D,editingName:$,onCancel:F}){const{t:P}=ge.useTranslation(),G=u??P("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),E=r===void 0,M=!!k,[H,ee]=o.useState([]),q=(y??"").trim(),U=q||(B??"").trim(),W=(w??"").trim()||(A??"").trim(),J=(D??[]).map(Ae=>Ae.trim().toLowerCase()),I=[$?.trim().toLowerCase(),...H].filter(Ae=>!!Ae),T=[...J];for(const Ae of I){const Pe=T.indexOf(Ae);Pe!==-1&&T.splice(Pe,1)}const O=q!==""&&T.includes(q.toLowerCase()),[R,S]=o.useState(Array(4).fill(null)),[L,K]=o.useState(4),[Z,Q]=o.useState(null),pe=R.slice(0,L),[Te,ke]=o.useState("landscape"),[oe,z]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[re,ce]=o.useState("\uD45C\uC2DC"),[fe,ye]=o.useState(!0),[Ne,we]=o.useState(!0),Be=o.useRef(null),je=o.useRef([]),[se,te]=o.useState(8),[me,ne]=o.useState("right"),[Ce,ve]=o.useState(!1),[Ye,He]=o.useState(!1),{toastMessage:Ue,toastType:Se,showWarning:Ge,clearToast:$e}=al("warning"),Ie=o.useCallback(()=>Q(null),[Q]);C&&!E&&!f&&kn("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[Ve,at]=o.useState(()=>Math.max(r?.length??1,1)),ot=E?L:f?Math.max(Ve,r?.length??1,1):Math.max(r?.length??0,1),{width:We,height:Xe}=ra[Te],gt=!E&&!f,Bt=r?.length??0,Tt=Math.min(se,Math.max(Bt,1)),dt=gt?Tt:ot,Qe=gt?sc(r??[],dt):null,Ze=!!Qe&&Qe.length>1,Oe=E?pe.some(Ae=>Ae!==null&&Ae.length>1):(r??[]).some(Ae=>(Ae.words??[]).length>1),rt=x?.trim()||`${oi(ga())} ${Oe?P("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):P("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,et=o.useCallback(()=>Ze?je.current.filter(Ae=>Ae!==null):Be.current?[Be.current]:[],[Ze]),{print:yt,openNewWindow:ze,downloadHtml:it}=_o({getElements:et,paperW:We,paperH:Xe,fileName:rt,onPopupBlocked:()=>{Ge(P("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."))}}),Nt=Ae=>{K(Ae),S(Pe=>Pe.length>=Ae?Pe:[...Pe,...Array(Ae-Pe.length).fill(null)]),Q(null)},Dt=Ae=>{S(Pe=>{const ae=[...Pe];return ae[Ae]=null,ae}),Z===Ae&&Q(null)},Le=Ae=>{if(Z===null)return;const Pe=Z;S(he=>{const V=[...he];return V[Pe]=Ae.length>0?Ae:null,V});const ae=pe.findIndex((he,V)=>V>Pe&&he===null);Q(ae!==-1?ae:null)},Ke=E?pe.some(Ae=>Ae?.some(Pe=>!!Pe.colloquialPronunciation)):(r??[]).some(Ae=>(Ae.words??[]).some(Pe=>!!Pe.colloquialLabel)),St=o.useMemo(()=>Gn()?E?R.slice(0,L).flatMap(Ae=>(Ae??[]).map(Pe=>[Pe.word,Pe.homonum])):(r??[]).flatMap(Ae=>(Ae.words??[]).map(Pe=>[Pe.label,Pe.homonum])):[],[E,R,L,r]),[xt,jt]=o.useState(!1);o.useEffect(()=>{if(St.length===0)return;let Ae=!1;return Promise.all(St.map(([Pe,ae])=>Gs(Pe,ae))).then(Pe=>{Ae||jt(Pe.some(Boolean))},()=>{}),()=>{Ae=!0}},[St]);const sn=St.length>0&&xt,tt=o.useMemo(()=>[...E||f?[{label:P("wordTable.filter.columns","\uCE78 \uC218"),items:Dy.map(Ae=>({value:`${Ae}\uCE78`,displayLabel:P("wordTable.filter.column",{count:Ae})})),display:"segmented"}]:[],...gt&&(r?.length??0)>0?[xc(P,{hasPairs:Oe,itemCount:Bt})]:[],...Ze?[wc(P)]:[]],[P,E,f,gt,r?.length,Oe,Bt,Ze]),Kt={...E||f?{[P("wordTable.filter.columns","\uCE78 \uC218")]:`${ot}\uCE78`}:{},...gt&&(r?.length??0)>0?{[P(Oe?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Tt}\uAC1C`}:{},...Ze?{[P("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:kc[me]}:{}},_n=(Ae,Pe)=>{Pe===P("wordTable.filter.columns","\uCE78 \uC218")?E?Nt(parseInt(Ae)):at(parseInt(Ae)):Pe===P(Oe?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?te(_c(parseInt(Ae),Bt)):Pe===P("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&ne(Ac(Ae))},_t=E?K3(pe.filter(Ae=>Ae!==null&&Ae.length>0).map(Ae=>({id:qo(Ae),words:Ae.map(hu)}))):r??[],zt=()=>{E&&S(Ae=>Ae.length>L?Ae.slice(0,L):Ae)},Jt=(Ae=!1)=>{if(He(Ae),M&&s){const Pe=U.trim().toLowerCase();Pe&&ee(ae=>ae.includes(Pe)?ae:[...ae,Pe]),s(U,_t,W||void 0,Ae),zt();return}if(v&&s){s("",_t,void 0,Ae),zt();return}if(s){ve(!0);return}it()},[an,ln]=o.useState(!1),[Qt,wn]=o.useState(""),Yt=Qt.trim(),ht=Yt!==""&&J.includes(Yt.toLowerCase()),cn=()=>{wn(U?P("wordTable.save.copyName",{name:U,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),ln(!0)},Zt=()=>{!Yt||ht||!s||(s(Yt,_t,W||void 0,!0),zt(),ln(!1))},Mt=_t.length===0,un=Mt||M&&(U===""||O),Xt=()=>{if(Mt){Ge(P("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(M&&U===""){Ge(P("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}M&&O&&Ge(P("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},dn=n.jsx(oa,{items:_t,orientation:Te,contentTypes:oe,cutLine:re,showOutline:fe,showDivLine:Ne,count:ot});return n.jsxs(n.Fragment,{children:[n.jsxs(aa,{type:"page",icon:t,title:e,disc:a,className:De("word-table-block",g),children:[an&&n.jsx(Tn,{size:"small",title:p??P("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>ln(!1),footer:({closeWithAnimation:Ae})=>n.jsxs(n.Fragment,{children:[n.jsx(le,{htmlType:"button",size:48,type:"bar",label:P("common.cancel","\uCDE8\uC18C"),onClick:Ae}),n.jsx(le,{htmlType:"button",size:48,type:"bar",variant:"main",label:P("common.save","\uC800\uC7A5"),disabled:!Yt||ht,onClick:Zt})]}),children:n.jsx(Vn,{label:P("wordTable.save.nameLabel","\uC774\uB984"),value:Qt,onChange:wn,placeholder:P("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:Zt,error:ht?P("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Ce&&s&&b?.({defaultName:typeof e=="string"?e:P("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:dn,previewW:We,previewH:Xe,items:_t,existingNames:G3().map(Ae=>Ae.name),saveAsNew:Ye,onSave:(Ae,Pe)=>{s(Ae,_t,Pe,Ye),zt(),ve(!1)},onCancel:()=>ve(!1)}),(E||C)&&Z!==null&&_?.({cellIndex:Z,onConfirm:E?Le:Ae=>{if(C){const Pe=Ae[0];if(Pe){const ae=new Set((r??[]).map(V=>V.id));let he=qo([Pe]);for(let V=2;ae.has(he);V++)he=`${qo([Pe])}~${V}`;C({id:he,words:[hu(Pe)]})}}Q(null)},onClose:Ie}),!h&&n.jsx(yo,{hasImage:sn,hasColloquial:Ke,contentTypes:oe,orientation:Te,showOutline:fe,cutLine:re,showDivLine:Ne,setters:{setContentTypes:z,setOrientation:ke,setShowOutline:ye,setCutLine:ce,setShowDivLine:we},showCutLine:(gt?dt:ot)>1,showDivLine2:Oe,middleSections:tt,extraSelected:Kt,onExtraSelect:_n}),Ze&&Qe?n.jsx("div",{className:"word-table-block__pages",children:Qe.map((Ae,Pe)=>n.jsx(oa,{orientation:Te,contentTypes:oe,cutLine:re,showOutline:fe,showDivLine:Ne,count:dt,items:Ae,onRemoveItem:l,onReorder:m&&((ae,he)=>m(ae+Pe*dt,he+Pe*dt)),contentRef:ae=>{je.current[Pe]=ae},pageNumber:{current:Pe+1,total:Qe.length},pageNumberPosition:me},Pe))}):n.jsx(oa,{orientation:Te,contentTypes:oe,cutLine:re,showOutline:fe,showDivLine:Ne,count:ot,items:E?void 0:r??[],editCells:E?pe:void 0,activeCell:Z,onActivateCell:E||C?Q:void 0,onRemoveCell:E?Dt:void 0,onRemoveItem:E?void 0:l,onReorder:E?void 0:m,showFillerAdd:!!C,contentRef:Be}),M&&!h&&n.jsxs(sr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[n.jsx(jn,{variant:"custom",label:P("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:n.jsx(Vn,{required:!0,value:y??"",onChange:k,placeholder:B?B+P("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):P("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:P("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:O?P("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:Ae=>{(Ae.key==="Tab"&&!Ae.shiftKey||Ae.key===" ")&&!(y??"").trim()&&(B??"").trim()&&(Ae.preventDefault(),k?.(B??""))}})}),n.jsx(jn,{variant:"custom",label:P("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:n.jsx(Vn,{value:w??"",onChange:N,placeholder:A?A+P("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):P("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:P("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:Ae=>{(Ae.key==="Tab"&&!Ae.shiftKey||Ae.key===" ")&&!(w??"").trim()&&(A??"").trim()&&(Ae.preventDefault(),N?.(A??""))}})})]})]}),!h&&n.jsxs("div",{className:"word-table-block__actions",children:[n.jsxs("div",{className:"word-table-block__actions-left",children:[!v&&c&&n.jsx(le,{htmlType:"button",size:40,type:"bar",label:G,onClick:c}),!v&&i&&n.jsx(le,{htmlType:"button",size:40,type:"bar",label:P("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!v&&n.jsx(le,{htmlType:"button",size:40,type:"bar",label:P("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:ze})]}),n.jsxs("div",{className:"word-table-block__actions-right",children:[F&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:P("common.cancel","\uCDE8\uC18C"),onClick:F}),!v&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:P("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:yt}),p&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:p,onClick:()=>M?cn():Jt(!0),disabled:Mt,onDisabledClick:()=>{Ge(P("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:d??P("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Jt(!1),disabled:un,onDisabledClick:Xt})]})]}),n.jsx(ta,{message:Ue,type:Se,onClose:$e})]})}function fu({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 u=e[c];return u?n.jsx("div",{className:"word-table-thumb__cell",children:(u.words?.length?u.words:[{label:u.id}]).map((d,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:d.label})]},p))},c):n.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function Z3({items:e,name:t,description:a,createdAt:r,published:s,publishedLabel:i,shared:l,sharedLabel:c,isNew:u,publisherName:d,publishedAt:p,likeCount:m,downloadCount:f,onPublisherClick:C,selected:g,onClick:b,onMore:_,titleNode:h,className:v}){const{t:x}=ge.useTranslation(),y=h!=null,k=d!=null||p!=null||m!=null||f!=null,w=N=>{N.target===N.currentTarget&&!y&&(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),b?.())};return n.jsxs("div",{className:De("word-table-button",g?"word-table-button--selected":"",k?"":"word-table-button--no-footer",v),role:"button",tabIndex:0,"aria-label":t,onClick:y?void 0:b,onKeyDown:w,children:[u&&n.jsx("span",{className:"word-table-button__new-dot","aria-label":x("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),n.jsx(fu,{items:e,className:"word-table-button__thumb"}),n.jsxs("div",{className:"word-table-button__info",children:[n.jsxs("div",{className:"word-table-button__info-text",children:[h??n.jsx("div",{className:"word-table-button__title h4",children:t}),a&&n.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),_&&!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:N=>{N.stopPropagation(),_(N)}})]}),(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?ri(r,x):""}),n.jsxs("span",{className:"word-table-button__badges",children:[s&&n.jsx(mt,{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(mt,{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:[d&&n.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:N=>{N.stopPropagation(),C?.()},children:d}),p&&n.jsx("span",{className:"training-card__date body-4",children:ri(p,x)})]}),n.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&n.jsx(mt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m)}),f!=null&&n.jsx(mt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(f)})]})]})]})}/**
1006
+ `).map((l,c,u)=>n.jsxs(o.Fragment,{children:[l,c<u.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:eo,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 c5({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:s,className:i,containerClassName:l,renderLink:c,menuLabel:u}){const{t:d}=ge.useTranslation(),p=u??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[m,f]=o.useState(!1),C=o.useId(),g=o.useRef(null);o.useEffect(()=>{if(!m)return;const h=In(()=>{const b=document.getElementById(C);b&&b.contains(document.activeElement)&&g.current?.focus(),f(!1)}),v=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,x=b=>{b.matches&&f(!1)};return v&&(v.matches&&f(!1),v.addEventListener?.("change",x)),()=>{h(),v?.removeEventListener?.("change",x)}},[m,C]);const y=l?`${l} landing-header__inner`:"landing-header__inner",_=(h,v)=>c?c(h,{onClick:v}):n.jsx("a",{href:h.href,onClick:v,"aria-current":h.current?"page":void 0,children:h.label});return n.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[n.jsxs("div",{className:y,children:[e!=null&&(()=>{const h=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:h}):n.jsx("div",{className:"landing-header__brand",children:h})})(),r.length>0&&n.jsx("nav",{className:"landing-header__links",children:r.map((h,v)=>n.jsx("span",{children:_(h)},`${v}:${h.href}`))}),n.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&n.jsx("button",{ref:g,type:"button",onClick:()=>f(h=>!h),"aria-expanded":m,"aria-controls":C,"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:C,hidden:!m,className:"landing-header__drawer",children:n.jsx("div",{className:l??void 0,children:r.map((h,v)=>n.jsx("span",{className:"landing-header__drawer-item",children:_(h,()=>f(!1))},`${v}:${h.href}`))})})]})}function u5({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,...Xl(a),children:[n.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}const ia=9,d5=e=>Math.round(Math.min(ia,Math.max(0,e))/ia*100),p5=e=>e/100*ia,Sa=2,Mc=.1,m5=e=>Math.min(Sa,Math.max(0,e)),h5=.1,f5=e=>Math.round(e*1e6)/1e6;function Ea(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return m5(t);const a=Math.min(ia,Math.max(0,Number(e.level)||0))/ia,r=Number(e.mainVolume);return r>0?a>0?f5(Math.min(Sa,Math.max(h5,a/r))):0:1}const Lc=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function $c(e){return Lc(e)}function Ao(e){return Lc(e)*Ea(e)}function Bo(e,t=Hs()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,Ao(e)/a)}function Ta(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=Ea({level:a.level,mainVolume:a.mainVolume})),a}const ja={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},No=o.createContext(null);function ar(){return o.useContext(No)}const Do=e=>`${W0()}/${e}`,Rc=e=>Array.from({length:10},(t,a)=>Do(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),rr={get defaultNoise(){return Do("noise1.mp3")},get street(){return Rc("noise2")},get restaurant(){return Rc("noise3")},get buzz(){return Do("noise4.mp3")}};function C5(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 g5({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),u=o.useRef(null),d=o.useRef(null),p=o.useRef(null),m=o.useRef(0),f=o.useRef(null),C=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),f.current!==null&&(clearTimeout(f.current),f.current=null)},[]),g=o.useCallback((x,b=250)=>{const k=s.current;if(!k)return;const w=u.current;if(w){u.current=null;try{k.pause()}catch{}k.src=w,k.load()}if(!k.src)return;m.current+=1,C();try{Sr(),Ra(k).then(D=>{if(s.current===k)try{r.current?.("noise",D)}catch{}})}catch{}const N=k.paused?0:Pa(k);k.paused&&Nn(k,0),k.play().catch(()=>{});const B=performance.now(),A=()=>{const D=Math.min(1,(performance.now()-B)/b);try{Nn(k,N+(x-N)*D)}catch{}D<1?p.current=requestAnimationFrame(A):p.current=null};p.current=requestAnimationFrame(A)},[C]),y=o.useCallback((x=250,b)=>{const k=s.current;if(!k||k.paused){b?.();return}const w=++m.current;C();const N=performance.now(),B=Pa(k),A=()=>{const D=Math.min(1,(performance.now()-N)/x);try{Nn(k,B*(1-D))}catch{}if(D<1)p.current=requestAnimationFrame(A);else{p.current=null,f.current!==null&&(clearTimeout(f.current),f.current=null);try{k.pause()}catch{}b?.()}};p.current=requestAnimationFrame(A),f.current=setTimeout(()=>{if(f.current=null,m.current===w){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{k.paused||(Nn(k,0),k.pause(),b?.())}catch{}}},x+150)},[C]);o.useEffect(()=>{const x=document.createElement("audio");return x.loop=!0,x.crossOrigin="anonymous",s.current=x,()=>{C();try{x.pause(),x.src=""}catch{}s.current=null,c.current=null,u.current=null}},[C]);const _=e?Bo(e.settings):0,h=!!e?.settings.enabled&&_>0;o.useEffect(()=>{if(!h)return;let x=0;const b=setInterval(()=>{const k=s.current;if(!k||k.paused){x=0;return}const w=t.current;if(w&&!w.paused&&!w.ended||a.current==="playing"){x=0;return}x+=1,x>=2&&(x=0,y())},400);return()=>clearInterval(b)},[y,h,t,a]),o.useEffect(()=>{const x=()=>{const b=s.current;if(document.hidden){if(b&&!b.paused){C();try{b.pause()}catch{}}return}if(!b||!b.paused)return;const k=t.current,w=!!k&&!k.paused&&!k.ended||a.current==="playing",N=d.current;w&&N?.enabled&&N.volume>0&&g(N.volume)};return document.addEventListener("visibilitychange",x),()=>document.removeEventListener("visibilitychange",x)},[C,g,t,a]),o.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,volume:_,type:e.settings.type}:null},[e,e?.settings.enabled,_,e?.settings.type]);const v=o.useRef(null);return o.useEffect(()=>()=>{v.current?.(),v.current=null},[]),o.useEffect(()=>{const x=e?.settings,b=s.current;if(!b)return;const k=x?Bo(x):0;if(!x||!x.enabled||k===0){y();return}if(c.current!==x.type){const w=C5(x.type);w&&(c.current=x.type,l(w),u.current=w,y(150,()=>{if(u.current!==w)return;u.current=null,b.src=w,b.load();const N=t.current;if(N&&!N.paused){v.current?.();const B=()=>{b.removeEventListener("canplay",B),v.current===A&&(v.current=null);const D=t.current,$=d.current;D&&!D.paused&&!D.ended&&$?.enabled&&$.volume>0&&g($.volume)},A=()=>b.removeEventListener("canplay",B);v.current=A,b.addEventListener("canplay",B)}}))}else{const w=t.current,N=!!w&&!w.paused&&!w.ended||a.current==="playing";if(N&&u.current)g(k);else if(N&&b.paused&&b.src)g(k);else if(!b.paused)if(!N)y();else{C();const B=Pa(b),A=performance.now(),D=()=>{const $=Math.min(1,(performance.now()-A)/150);try{Nn(b,B+(k-B)*$)}catch{}$<1?p.current=requestAnimationFrame(D):p.current=null};p.current=requestAnimationFrame(D)}}},[e?.settings,e?.settings.enabled,_,e?.settings.type,C,g,y,t,a,d]),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:d,cancelNoiseFade:C,fadeInNoise:g,fadeOutNoise:y}}function b5({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:i,setPlaybackState:l,setStateLocal:c,fadeInNoise:u,fadeOutNoise:d,noiseSettingsRef:p,onDoneRef:m,handleEndRef:f}){const C=o.useRef(null),g=o.useRef(0),y=o.useRef(null),_=o.useRef(0),h=o.useRef(!1);o.useEffect(()=>()=>{_.current++;try{if(y.current&&(cancelAnimationFrame(y.current),y.current=null),h.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}h.current=!1}}catch{}},[]);const v=(k,w=1)=>{try{const N=(k||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(k||"").length);return Math.max(700,Math.round(N*300/Math.max(.25,w)))}catch{return 1200}},x=o.useCallback(k=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!1)}catch{}return}const w=window.speechSynthesis,N=++_.current;try{try{w.cancel()}catch{}const B=k??e,A=Array.isArray(B)?B.filter(S=>!!S):[B||""];A.length===0&&A.push("");const D=Math.max(.3,Math.min(3,t));g.current=A.reduce((S,L)=>S+v(L,D||1),0),C.current=performance.now(),i(0),l("playing"),c("playMode");const $=p.current;$?.enabled&&($?.volume??0)>0&&u($.volume);const O=()=>{try{const S=C.current||performance.now(),L=performance.now()-S,H=g.current||1200,ee=Math.min(1,L/H);try{r.current&&(r.current.style.left=`${ee*100}%`),s.current&&s.current.style.setProperty("--progress",String(ee))}catch{}ee<1&&(y.current=requestAnimationFrame(O))}catch{}},P=()=>{if(N===_.current)try{y.current&&(cancelAnimationFrame(y.current),y.current=null),i(1),l("stopped");try{f.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},K=S=>{const L=new SpeechSynthesisUtterance(A[S]);try{L.rate=D}catch{}try{L.volume=Math.max(0,Math.min(1,a))}catch{}L.onend=()=>{if(N===_.current){if(S<A.length-1){try{K(S+1)}catch{P()}return}P()}},L.onerror=()=>{P()},L.onstart=()=>{if(!(S>0))try{y.current&&(cancelAnimationFrame(y.current),y.current=null),y.current=requestAnimationFrame(O)}catch{}},h.current=!0,w.speak(L)};try{K(0)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,t,a,u,r,s,i,l,c,p,m,f]),b=o.useCallback(()=>{_.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}y.current&&(cancelAnimationFrame(y.current),y.current=null),d(),C.current=null}catch{}l("stopped"),c("active"),i(0)},[d,l,c,i]);return{startTTS:x,stopTTS:b}}async function y5(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,u=Math.max(t,c),d=Math.floor(u/t)||1;return new Array(t).fill(0).map((p,m)=>{const f=m*d,C=Math.min(f+d,u);let g=0;for(let y=f;y<C;y++){const _=Math.abs(l[y]);_>g&&(g=_)}return g})}catch{return null}finally{try{r?.close?.()}catch{}}}async function Pc(e,t,a){try{const r=await fetch(e);if(r.ok===!1)return null;const s=await r.arrayBuffer();return await y5(s,t,a)}catch(r){try{const s=Xs(r)}catch{}return null}}const Ic=45,v5=74,x5=2;function Ma(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function So(e){return Ma(e)/45}const Fc=4;function _5(e){const{src:t,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:i,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:u=0,mainVolume:d=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,f=o.useRef(null),C=o.useRef(null),[g,y]=o.useState(null),[_,h]=o.useState(!1),[v,x]=o.useState(null),[b,k]=o.useState(2),[w,N]=o.useState(0),[B,A]=o.useState(null),[D,$]=o.useState(!1),[O,P]=o.useState(!1),K=3,S=3,L=1,H=300,ee=o.useRef(0),U=o.useCallback(()=>{const oe=f.current,z=C&&C.current?C.current:oe?oe.closest(".audio-player__wave"):null,re=z?z.getBoundingClientRect():oe?oe.getBoundingClientRect():null,ce=re?re.width:0,fe=re?Math.max(100,re.width):320,ye=re?re.height:0,Ne=Math.max(L,Math.min(H,Math.floor((fe+S)/(K+S)))),we=Ne*K,Be=Math.max(0,Ne-1),je=Math.max(0,Be>0?(fe-we)/Be:S);return{bars:Ne,gap:je,height:ye,width:ce}},[]),q=o.useRef(void 0),W=o.useRef(null),J=o.useCallback(async(oe,z,{quiet:re=!1}={})=>{const ce=++ee.current,fe=()=>ee.current===ce;try{if(re||h(!1),q.current=oe,!oe){fe()&&y(null);return}let ye=z;if(!ye)try{for(let Be=0;Be<4&&!(f.current||C.current);Be++)await new Promise(je=>requestAnimationFrame(je));await new Promise(Be=>requestAnimationFrame(Be));const we=U();we.height>0&&N(we.height),ye=we.bars,k(we.gap)}catch{ye=120}W.current=ye;const Ne=await Pc(oe,ye);if(!fe())return;if(!Ne){y(null),h(!1);return}y(Ne),x(ye),h(!0)}catch{if(!fe())return;y(null),h(!1)}},[h,y,N,k,x,U]);o.useEffect(()=>{const oe=C.current;if(!oe||typeof ResizeObserver>"u")return;let z=null;const re=new ResizeObserver(()=>{z!==null&&cancelAnimationFrame(z),z=requestAnimationFrame(()=>{z=null;try{const ce=U();if(ce.width<=0||(ce.height>0&&N(ce.height),W.current===null||ce.bars===W.current))return;const fe=q.current;k(ce.gap),fe?J(fe,ce.bars,{quiet:!0}).catch(()=>{}):W.current=ce.bars}catch{}})});return re.observe(oe),()=>{re.disconnect(),z!==null&&cancelAnimationFrame(z)}},[U,J]),o.useEffect(()=>{const oe=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;J(typeof oe=="string"?oe:void 0).catch(()=>{}),P(!1)},[t,a,J]),o.useEffect(()=>{let oe=!1;if($(!1),!i||!v){A(null);return}const z=u>0?u*(c||1):void 0;return Pc(i,v,z).then(re=>{oe||(A(re),re||$(!0))}).catch(()=>{oe||(A(null),$(!0))}),()=>{oe=!0}},[i,v,u,c]);const I=Math.max(0,Math.min(1,d)),E=o.useMemo(()=>g&&g.length&&Math.max(...g)||1,[g]),F=v||40,R=o.useMemo(()=>Array.from({length:F}).map((oe,z)=>{const re=g&&g[z]!=null?g[z]:null,ce=re==null?null:Math.min(1,re/E*I),fe=ce!=null&&w>0&&Ma(ce)<=Fc,ye=ce==null?.15:fe?0:So(ce),Ne=F>1?z/(F-1):0;return n.jsx("div",{className:fe?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ye,"--i":z,"--mix":Ne}},z)}),[F,g,E,I,w]),T={"--progress":String(Math.max(0,Math.min(1,r)))},M=i?Math.max(1,l):1,G={"--bar-gap":`${b}px`,"--wave-h":`${Ma(M)}px`,"--wave-h1":`${Ic}px`},Y=I*Math.max(0,l)/Hs(),Q=_&&(i?!!B||D:!0);o.useEffect(()=>{Q&&P(!0)},[Q]);const de=O?_:Q;o.useEffect(()=>{p?.(de)},[de,p]);const Te=v||40,ke=o.useMemo(()=>Array.from({length:Te}).map((oe,z)=>{const re=B&&B[z]!=null?B[z]:null,ce=re==null?0:re/E*Y,fe=w>0&&Ma(ce)<=Fc,ye=fe?0:So(ce),Ne=Te>1?z/(Te-1):0;return n.jsx("div",{className:fe?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ye,"--i":z,"--mix":Ne}},z)}),[Te,B,E,Y,w]);return n.jsxs("div",{className:"audio-player__wave",ref:C,style:G,children:[i&&n.jsx("div",{className:`audio-player__wave-noise ${Q?"is-ready":""}`,"aria-hidden":"true",children:ke}),m&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${de?"is-ready":""}`,ref:f,children:R}),n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${de?"is-ready":""}`,ref:s,style:T,children:R})]})]})}const w5={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 Eo(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 d=isFinite(s.duration)&&s.duration||0;l(),a(d)},u=d=>{i||(i=!0,l(),t.rejectOnError?r(new Error(d)):a(0))};s.addEventListener("loadedmetadata",c),s.addEventListener("error",()=>u("audio load failed")),setTimeout(()=>u("audio load timeout"),t.timeoutMs),s.src=e})}const k5=2e3;function Oc(e,t=k5){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 A5({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=o.useRef(!1),s=o.useRef([]),i=o.useCallback(u=>{if(r.current=u,!u||!s.current.length)return;const d=s.current;s.current=[];for(const p of d)p(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),c=o.useCallback(()=>!e&&!t||r.current?Promise.resolve(!0):new Promise(u=>{const d=m=>{clearTimeout(p),s.current=s.current.filter(f=>f!==d),u(m)},p=setTimeout(()=>d(!0),a);s.current.push(d)}),[e,t,a]);return o.useEffect(()=>()=>{const u=s.current;s.current=[];for(const d of u)d(!1)},[]),{onReadyChange:i,waitForReady:c,markNotReady:l}}function B5(){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 N5({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 D5({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 S5(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function E5({ended:e,completedByEnd:t}){return!!e||!!t}function T5(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function j5(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function M5(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 L5(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 $5({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 d=()=>{try{const p=e.current,m=Array.isArray(r.current)?r.current[s.current||0]:void 0,f=m&&Number.isFinite(m.duration)&&(m.duration??0)>0?0:L5(p),C=t.current;if(f===null)try{C&&C.style.visibility!=="hidden"&&(C.style.visibility="hidden")}catch{}else{const g=D5({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:s.current,audioDuration:f});try{C&&(C.style.visibility&&(C.style.visibility=""),C.style.left=`${g*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(g))}catch{}}}catch{}i.current=requestAnimationFrame(d)};i.current=requestAnimationFrame(d)},[e,t,a,r,s]),u=o.useCallback(d=>{l();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[l,t,a]);return o.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:u}}function To({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:s=!1,ttsText:i=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:u=!0}){const{t:d}=ge.useTranslation(),p=e,m=ar(),f=o.useRef(m?.registerAnalyser);o.useEffect(()=>{f.current=m?.registerAnalyser});const C=o.useRef(null),g=o.useRef(null),y=o.useRef(null),_=B5(),h=o.useRef(null),v=o.useRef(!1),x=o.useRef(0),b=o.useRef(null),{ref:k,rect:w,show:N,hide:B}=N5();o.useEffect(()=>()=>{f.current?.("main",null),f.current?.("noise",null)},[]);const[A,D]=o.useState(!1),[$,O]=o.useState("idle"),[P,K]=o.useState("stopped"),S=o.useRef("stopped");o.useEffect(()=>{S.current=P},[P]);const[L,H]=o.useState(0),[ee,U]=o.useState("active"),q=o.useRef(!1);o.useEffect(()=>{if(ee!=="playMode"||!q.current)return;q.current=!1;const V=typeof document<"u"?document.activeElement:null;if(V&&V!==document.body)return;const ie=y.current?.querySelectorAll("button")[1];try{ie?.focus()}catch{}},[ee]);const[W,J]=o.useState(null),[I,E]=o.useState(null),[F,R]=o.useState(0),[T,M]=o.useState(!1),[G,Y]=o.useState(0),Q=m?.playbackRate??1,de=m?.mainVolume??1,Te=m?Ao(m.settings):0,ke=m?$c(m.settings):de,[oe,z]=o.useState("idle"),[re,ce]=o.useState(""),[fe]=o.useState("top"),ye=o.useRef(null),Ne=o.useRef(0),we=o.useRef(null),{start:Be,stop:je,settleTo:se}=$5({audioRef:C,fillRef:g,waveProgressRef:we,sourcesRef:ye,currentIndexRef:Ne}),{onReadyChange:te,waitForReady:me,markNotReady:ne}=A5({showSoundWaveForm:c,showNoiseWaveForm:u}),Ce=o.useRef(null),ve=o.useRef(s),Ye=o.useRef(r),He=o.useRef(null),Ue=o.useRef(!1),[Se,Ge]=o.useState(!1),$e=o.useCallback(V=>{Ue.current=V,Ge(V)},[]),Ie=o.useRef(null),{activeNoiseUrl:Ve,noiseSettingsRef:at,fadeInNoise:ot,fadeOutNoise:We}=g5({noisePlayer:m,audioRef:C,playbackStateRef:S}),{startTTS:Xe,stopTTS:gt}=b5({ttsText:i,playbackRate:Q,mainVolume:ke,fillRef:g,waveProgressRef:we,setProgress:H,setPlaybackState:K,setStateLocal:U,fadeInNoise:ot,fadeOutNoise:We,noiseSettingsRef:at,onDoneRef:Ye,handleEndRef:Ie});o.useEffect(()=>{yt.current=gt});const Bt=V=>{if(typeof window>"u"||!window.speechSynthesis){try{ce(d("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}Xe(V);return}Dt("tts"),Xe(V)},Tt=Array.isArray(t)?t.filter(Boolean):t?[t]:[],dt=(!Tt||Tt.length===0)&&!!i,Qe=Array.isArray(W)&&W.length>0?W:Array.isArray(I)&&I.length>0?I:null,Ze=Math.max(Array.isArray(Qe)?Qe.length:0,Tt.length),Oe=o.useRef(!0);o.useEffect(()=>(Oe.current=!0,()=>{Oe.current=!1}),[]);const rt=o.useRef(0),et=()=>{rt.current+=1,x.current+=1},yt=o.useRef(null),ze=o.useRef(null),it=o.useRef(null),Nt=o.useRef(null);Nt.current||(Nt.current=()=>{it.current=null;const V=C.current;if(ze.current==="audio"&&V&&!V.paused){rt.current+=1,x.current+=1;try{V.pause()}catch{}Oe.current&&K("paused")}else if(ze.current==="tts")try{yt.current?.()}catch{}});const Dt=V=>{ze.current=V,it.current=Xa(Nt.current)},Le=()=>{it.current?.(),it.current=null};o.useEffect(()=>()=>{Nt.current&&Ja(Nt.current)},[]);const Ke=o.useCallback(async(V,ie=3,ue=50)=>{const xe=rt.current;for(let _e=0;_e<ie;_e++){if(!Oe.current||xe!==rt.current)return!1;try{return Dt("audio"),await V.play(),!0}catch(Me){if((Me instanceof Error||typeof Me=="object"&&Me&&"name"in Me?Me.name:void 0)==="AbortError"){if(xe!==rt.current)return!1;await new Promise(nt=>setTimeout(nt,ue));continue}try{ce(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{ce(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),St=o.useCallback(()=>{const V=C.current;if(!V)return;const ie=()=>{K("playing"),U("playMode"),M(!0),Be();try{Sr(),Ra(V).then(Me=>{if(Oe.current)try{f.current?.("main",Me)}catch{}})}catch{}const _e=at.current;_e?.enabled&&(_e?.volume??0)>0&&ot(_e.volume)},ue=()=>{E5({ended:!!V?.ended,completedByEnd:Ue.current})||(K("paused"),je(),We())},xe=()=>{try{const _e=ye.current,Me=S5(_e,Ne.current);if(Me!==null){Ne.current=Me,R(Me),M(!0);const nt=_e?.[Me]&&_e[Me].src;if(nt&&V){V.src=nt,V.load(),Ke(V).catch(()=>{});return}}}catch{}K("stopped"),H(1);try{if(V)try{V.currentTime=0}catch{}}catch{}je(),M(!1),We();try{!ve.current&&Ie.current&&Ie.current()}catch{}};return V.addEventListener("play",ie),V.addEventListener("pause",ue),V.addEventListener("ended",xe),()=>{try{V.removeEventListener("play",ie),V.removeEventListener("pause",ue),V.removeEventListener("ended",xe),je()}catch{}}},[ot,We,Ke,at,Be,je]);o.useEffect(()=>St(),[St]),o.useEffect(()=>{ve.current=s},[s]),o.useEffect(()=>{Ye.current=r},[r]),o.useEffect(()=>{if(s||ee!=="active")return;const V=b.current;if(!V)return;let ie=null;const ue=requestAnimationFrame(()=>{try{const xe=V.getTotalLength();if(!xe)return;const _e=xe*.2;V.style.strokeDasharray=`${xe-_e} ${_e}`;const Me="triFlow_"+Math.random().toString(36).slice(2);ie=document.createElement("style"),ie.textContent=`@keyframes ${Me}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${xe}}}`,document.head.appendChild(ie),V.style.animation=`${Me} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(ue),ie?.remove()}},[ee,s]),o.useEffect(()=>{ye.current=W},[W]),o.useEffect(()=>{Ne.current=F},[F]),o.useEffect(()=>{const V=y.current,ie=h.current;if(!V||!ie)return;let ue=null;const xe=32,_e=60,Me=()=>{try{const ft=Array.from(V.querySelectorAll(":scope > .button"));let ct=0;ft.forEach(mn=>{if(mn===ie)return;const dr=mn.getBoundingClientRect();ct+=dr.width});const wt=V.getBoundingClientRect().width,Wt=Math.max(0,Math.floor(wt-ct-8)),Pt=Ze;if(!Pt||Wt<=0){Array.from(ie.children).forEach(mn=>{try{mn.style.width=""}catch{}});return}let pn=Math.floor(Wt/Pt);pn>_e&&(pn=_e),pn<xe&&(pn=Math.max(xe,Math.floor(Wt/Pt))),Array.from(ie.querySelectorAll(".button")).forEach(mn=>{try{mn.style.width=`${pn}px`}catch{}})}catch{}},nt=requestAnimationFrame(Me);try{ue=new ResizeObserver(()=>{requestAnimationFrame(Me)}),ue.observe(V),ue.observe(ie),window.addEventListener("resize",Me)}catch{}return()=>{try{cancelAnimationFrame(nt)}catch{}try{ue&&(ue.disconnect(),ue=null)}catch{}try{window.removeEventListener("resize",Me)}catch{}}},[W,I,Ze]),o.useEffect(()=>()=>{try{Ce.current&&(clearTimeout(Ce.current),Ce.current=null),He.current&&(clearTimeout(He.current),He.current=null)}catch{}},[]);const xt=(V,ie)=>{J(V),Y(ie),ne(),E(T5(V)),ye.current=V},jt=async(V,ie)=>{$e(!1),v.current=!1,V.src=ie,V.load(),await Oc(V),await me()!==!1&&(D(!1),await Ke(V),U("playMode"),R(0),M(!0))},sn=async(V,ie=!1)=>{const ue=C.current;D(!0),O("measuring_duration");try{const xe=await Eo(V,{timeoutMs:1e4,rejectOnError:!0});xt([{src:V,objectUrl:null,duration:xe}],xe),O("ready"),ie&&ue&&await jt(ue,V)}finally{v.current=!1,D(!1)}},tt=async(V,ie=!1)=>{const ue=C.current;D(!0),O("measuring_duration");try{const xe=await Promise.all(V.map(Me=>Eo(Me,{timeoutMs:1e4})));if(!Oe.current)return;const _e=V.map((Me,nt)=>({src:Me,objectUrl:null,duration:xe[nt]||0}));xt(_e,j5(_e)),O("ready"),ie&&ue&&_e.length>0&&await jt(ue,_e[0].src)}finally{v.current=!1,D(!1)}},Kt=async(V=!1,ie=!0)=>{const ue=C.current,xe=t?Array.isArray(t)?t:[t]:[];if(!xe||xe.length===0||!xe.some(Boolean))return!1;if(v.current)return null;v.current=!0,ie&&D(!0),O("resolving");try{const _e=M5(t,a,Is),Me=[];let nt=0;for(const ft of _e){let ct=ft.src??null,wt=null;if(!ct&&ft.resolvedPath){try{O("getting_signed_url"),ct=await Fs(ft.resolvedPath)}catch{ct=null}if(!Oe.current)return!1;if(!ct)try{O("downloading");const Pt=await Os(ft.resolvedPath);if(!Oe.current)return!1;if(Pt){const pn=Pt instanceof Blob?Pt:new Blob([Pt]);wt=_.track(URL.createObjectURL(pn)),ct=wt}}catch{O("error");try{ce(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),U("active")}catch{}}}if(!ct)continue;let Wt=0;try{O("measuring_duration"),Wt=await Eo(ct,{timeoutMs:3e3})}catch{Wt=0}if(!Oe.current){if(wt)try{URL.revokeObjectURL(wt)}catch{}for(const Pt of Me)if(Pt.objectUrl)try{URL.revokeObjectURL(Pt.objectUrl)}catch{}return!1}nt+=Wt||0,Me.push({...ft,src:ct,objectUrl:wt,duration:Wt})}if(xt(Me,nt),Me.length>0&&V&&ue){const ft=Me[0];$e(!1);try{_.keepOnly(Me.map(ct=>ct.objectUrl))}catch{}if(O("ready"),v.current=!1,ft.src&&ue)try{if(ue.src=ft.src,ue.load(),await Oc(ue),await me()===!1)return!1;ie&&D(!1),ue&&await Ke(ue)}catch{ie&&D(!1)}else ie&&D(!1);U("playMode"),R(0),M(!0)}return Me.length>0}finally{v.current=!1,ie&&D(!1),O(_e=>_e==="ready"?"ready":"idle")}},_n=async()=>{const V=C.current;if(!(!V&&!dt)){if(dt){const ie=window.speechSynthesis;if(ee==="active"){const ue=Br(),xe=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(ue&&xe.length>0){U("load"),D(!0),O("resolving"),v.current=!0;try{const _e=await Promise.all(xe.map(Me=>Promise.resolve(ue(Me))));_e.length>1?await tt(_e,!0):await sn(_e[0],!0)}catch{v.current=!1,D(!1),U("active"),Bt(xe.length>0?xe:void 0)}return}Bt(xe.length>0?xe:void 0);return}if(ee==="playMode"){const ue=!!ie&&(ie.speaking||ie.paused)&&!(V&&(V.currentSrc||V.getAttribute("src")));if(V&&!ue){if(V.paused){if(Ue.current){await _t();return}await Ke(V),K("playing")}else et(),V.pause(),K("paused");return}try{if(ie&&ie.paused)try{Dt("tts"),ie.resume(),K("playing")}catch{}else try{ie.pause(),K("paused")}catch{}}catch{}}return}if(ee==="active"){if(s&&Array.isArray(ye.current)&&ye.current.length>0){const ue=ye.current[0];try{if(ue.src&&V)try{V.src=ue.src,V.load(),V&&await Ke(V)}catch{}U("playMode"),R(0),M(!0);return}catch{}}U("load");let ie;try{ie=await Kt(!0)}catch{ie=!1}if(ie===!1&&Oe.current){try{ce(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}U("active")}return}if(ee!=="load"&&(ee==="playMode"||ee==="active"))try{if(V&&V.paused){if(Ue.current){await _t();return}V&&await Ke(V),K("playing")}else V&&(et(),V.pause(),K("paused"))}catch(ie){(ie instanceof Error||typeof ie=="object"&&ie&&"name"in ie)&&ie.name}}},_t=async()=>{const V=C.current;if(V)try{const ie=ye.current;if(Array.isArray(ie)&&ie.length>1){await Yt(0);return}$e(!1);try{V.currentTime=0}catch{}V&&await Ke(V),K("playing"),U("playMode")}catch{}},zt=()=>{if(et(),Le(),dt){gt();return}const V=C.current;try{if(V){try{V.pause()}catch{}try{V.currentTime=0}catch{}}}catch{}We(),K("stopped"),U("active"),H(0),M(!1)},Jt=async(V,{sameSegment:ie=!1}={})=>{const ue=++x.current,xe=C.current,_e=ye.current?.[V]?.src;try{if($e(!1),R(V),M(!0),Ne.current=V,!_e||!xe||(ie||ne(),xe.src=_e,xe.load(),!ie&&await me()===!1)||ue!==x.current||(await Ke(xe),ue!==x.current))return;K("playing"),U("playMode")}catch{}},an=async()=>{const V=ye.current,ie=Ne.current||0;if(!V||ie<=0){await _t();return}await Jt(ie-1)},ln=async()=>{const V=ye.current,ie=Ne.current||0;if(!V||ie>=V.length-1){zt();return}await Jt(ie+1)},Qt=()=>{if(Ue.current)return;const V=200,ie=340;$e(!0),et(),Le();try{H(1)}catch{}se(1);try{z("hold")}catch{}try{const ue=C.current,xe=dt&&!!ue?.src;if(!dt||xe){if(ue){ue.pause();try{ue.currentTime=0}catch{}}}else gt();We()}catch{}try{K("stopped")}catch{}if(M(!1),!ve.current)try{He.current&&(clearTimeout(He.current),He.current=null),He.current=setTimeout(()=>{try{z("out")}catch{}He.current=setTimeout(()=>{try{typeof Ye.current=="function"&&Ye.current(!0)}catch{}try{z("idle")}catch{}He.current=null},ie)},V)}catch{}};o.useEffect(()=>{Ie.current=Qt});const wn=o.useCallback(()=>ce(""),[]),Yt=async V=>{(ye.current||[])[V]&&await Jt(V,{sameSegment:V===Ne.current})},ht=P==="playing",cn=o.useMemo(()=>{if(!I||I.length<=1)return I;const V=I[F];return V?[V]:I},[I,F]),Zt=s===!0;o.useEffect(()=>{try{const V=C.current;V&&typeof V.playbackRate=="number"&&(V.playbackRate=Q||1)}catch{}},[Q]);const Mt=o.useRef({raf:null,timer:null});o.useEffect(()=>{const V=C.current;if(!V)return;const ie=Math.max(0,Math.min(1,ke)),ue=Mt.current,xe=()=>{ue.raf!==null&&(cancelAnimationFrame(ue.raf),ue.raf=null),ue.timer!==null&&(clearTimeout(ue.timer),ue.timer=null)};xe();const _e=Pa(V);if(V.paused||Math.abs(_e-ie)<.001||typeof requestAnimationFrame!="function"){try{Nn(V,ie)}catch{}return}const Me=performance.now(),nt=()=>{const ft=Math.min(1,(performance.now()-Me)/150);try{Nn(V,_e+(ie-_e)*ft)}catch{}ue.raf=ft<1?requestAnimationFrame(nt):null};return ue.raf=requestAnimationFrame(nt),ue.timer=setTimeout(()=>{xe();try{Nn(V,ie)}catch{}},200),xe},[ke]);const un=oe==="hold",Xt=oe==="out",dn=ee==="playMode"&&!A&&!Se||un||Xt,Ae=P!=="stopped"||un||Xt,Pe=P==="paused",ae=Math.max(0,Math.min(100,(L||0)*100)),he=De("audio-player__fill",dn?"is-visible":"",Ae?"is-expanded":"",Pe?"is-paused":"",Xt?"is-out":"");return n.jsxs("div",{className:`audio-player ${Zt?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[n.jsxs("div",{className:`audio-player__panel ${ht?"is-playing":""} ${A?"is-loading":""} ${ee!=="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:d(`training.audioStatus.${$}`,{defaultValue:w5[$]})})]}):null,ee==="active"?n.jsx("button",{className:"audio-player__button",type:"button",disabled:Zt,onClick:()=>{q.current=Qa(),B(),_n()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:N,onMouseLeave:B,onFocus:N,onBlur:B,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:b,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,w&&n.jsx(Dn,{anchorRect:w,text:typeof p=="string"&&p?p:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),n.jsxs("div",{className:`audio-player__play ${ee==="playMode"||ht?"is-visible":""}`,inert:!(ee==="playMode"||ht)||void 0,children:[n.jsxs("div",{ref:y,className:"audio-player__buttons",children:[n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:an,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:ee!=="playMode"}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:ht?"pause":"play",onClick:_n,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":ht,width:"60px",variant:"transparent-white",disabled:ee!=="playMode"}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:zt,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:ee!=="playMode"}),Ze>1?n.jsx("div",{ref:h,className:"audio-player__source-buttons",children:Array.from({length:Ze}).map((V,ie)=>n.jsx(le,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(ie+1),onClick:()=>{try{Yt(ie)}catch{}},ariaLabel:d("training.sourcePlay",{n:ie+1}),variant:"transparent-white",selected:T&&F===ie,disabled:ee!=="playMode"||!(Array.isArray(W)&&W[ie]),showTooltipInfo:!0},ie))}):null,!Array.isArray(W)||W.length<=1?n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:_t,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:ee!=="playMode"}):null,n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:ln,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:ee!=="playMode"}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:Qt,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:ee!=="playMode"})]}),n.jsxs("div",{className:"audio-player__slider",children:[n.jsx("div",{className:he,ref:g,style:{left:`${ae}%`},"aria-hidden":"true"}),(c||u)&&n.jsx(_5,{segments:cn,progress:L,totalDuration:G,waveProgressRef:we,showSoundWaveForm:c,noiseSrc:u&&m?.settings.enabled&&Te>0?Ve:null,noiseRatio:m?Ea(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:de,onReadyChange:te})]})]}),n.jsx("audio",{ref:C,crossOrigin:"anonymous",preload:"auto"})]}),!c&&n.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[n.jsx(qe,{icon:"triangle-alert",size:14}),d("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),n.jsx(ta,{message:re,position:fe,onClose:wn})]})}function or(e){const{t}=ge.useTranslation(),{text:a,label:r,anchorRect:s=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[u,d]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",u)}catch{}},[u]);const{increase:p,decrease:m,canIncrease:f,canDecrease:C,fontSize:g,lineHeight:y}=Yi({storageKey:"tooltip-fontScale"}),_=o.useCallback(()=>d(k=>k==="dark"?"light":"dark"),[]),h=o.useCallback(k=>{try{k.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),v=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],x={fontSize:`${g}px`,lineHeight:`${y}px`,"--tt-line-height":`${y}px`,"--tt-marker-size":"28px"},b=n.jsxs("div",{className:`tooltip-textbox__root ${u==="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:v.map((k,w)=>n.jsxs("div",{className:"tooltip-textbox__line",children:[v.length>1?n.jsx("div",{className:"tooltip-textbox__marker",children:n.jsx("span",{className:"tooltip-textbox__line-number button-1",children:w+1})}):null,n.jsx("span",{className:"tooltip-textbox__line-text",children:k})]},w))})]}),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:u==="dark"?"transparent-white":"transparent-gray",disabled:!C}),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:u==="dark"?"transparent-white":"transparent-gray",disabled:!f}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:u==="dark"?"moon":"sun-medium",onClick:_,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:u==="dark"?"transparent-white":"transparent-gray"}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:h,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:u==="dark"?"transparent-white":"transparent-gray"})]})]});return s?n.jsx(Cn,{anchorRect:s,className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:b}):n.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:b})}function Hc({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(qe,{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 Vc(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 u=r.current(),d=u?Array.from(u.querySelectorAll(fn)).find(p=>!p.closest('[aria-hidden="true"]')):void 0;if(d){try{d.focus()}catch{}if(document.activeElement===d)return}--l>0&&(i=requestAnimationFrame(c))};return i=requestAnimationFrame(c),()=>{i!==null&&cancelAnimationFrame(i);const u=document.activeElement;if(!u||u===document.body||!document.contains(u)||u.closest(".tooltip-content")){const d=s.current();if(d)try{d.focus()}catch{}}}},[e])}function zc({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:c,usePlayAllBtn:u=!1,onPlayAll:d,playAllActive:p=!1}){const{t:m}=ge.useTranslation(),f=tn("(max-width: 767px)"),C=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),g=`training-step__title-row training-step__title-row--${r}`.trim(),y=o.useRef(null),[_,h]=o.useState(!1),[v,x]=o.useState(null),[b,k]=o.useState(null);Vc(_&&!!v,()=>{if(typeof document>"u")return null;const D=Array.from(document.querySelectorAll(".tooltip-content"));for(let $=D.length-1;$>=0;$--)if(D[$].querySelector(".tooltip-textbox__root"))return D[$];return null},()=>y.current?.querySelector("button")??null);const w=o.useRef(i);o.useEffect(()=>{w.current=i});const N=o.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(D=>typeof D=="string"||typeof D=="number")?l.join(""):"",[l]),B=o.useCallback(()=>{h(!1),x(null),k(null)},[]);o.useEffect(()=>{if(!_)return;let D;try{typeof w.current=="function"&&(D=w.current())}catch{}if(D===!1){B();return}k(typeof D<"u"&&D!==null?D:null)},[N]);const A=o.useCallback(()=>{let D;try{typeof i=="function"&&(D=i())}catch{}if(D!==!1){if(k(typeof D<"u"&&D!==null?D:l),!y.current){h($=>!$);return}if(_)h(!1),x(null),k(null);else{const $=y.current.getBoundingClientRect();x($),h(!0)}}},[i,l,_]);return n.jsxs("div",{className:g,children:[n.jsx("p",{className:C,children:n.jsx("span",{className:"training-step__title-text",children:e??t})}),s||u?n.jsxs("div",{className:"title-controls",children:[n.jsxs("div",{className:"title-buttons",children:[u&&n.jsx(le,{htmlType:"button",size:32,type:f?"dot":"bar",icon:"play-circle",label:f?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),s&&n.jsx("div",{ref:y,children:n.jsx(le,{htmlType:"button",size:32,type:f?"dot":"bar",icon:"eye",label:f?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:A,className:_?"is-selected":void 0,"aria-expanded":_,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),_&&n.jsx(or,{text:b??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:v,onClose:B,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function jo(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function zn({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:s={},children:i,className:l="",onDone:c=void 0,useTitleFaded:u=void 0}){const{t:d}=ge.useTranslation(),[p,m]=o.useState(()=>jo(e,t));o.useEffect(()=>{const k=jo(e,t);if(k!==p){const w=setTimeout(()=>m(k),0);return()=>clearTimeout(w)}},[e,t,p]);const f=o.useCallback((...k)=>{jo(e,t)==="done"||p==="done"||typeof c=="function"&&c(...k)},[e,t,p,c]),[C,g]=o.useState(!1),[y,_]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),h=o.useCallback(k=>{if(!k)return null;try{const w=k;if(typeof k=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const A=w.currentTarget??w.target;if(A&&typeof A.getBoundingClientRect=="function")return A.getBoundingClientRect()}if(k instanceof DOMRect)return k;const N=k;if(N&&typeof N.getBoundingClientRect=="function")return N.getBoundingClientRect();const B=k?.current;return B&&typeof B.getBoundingClientRect=="function"?B.getBoundingClientRect():null}catch{return null}},[]),v=o.useCallback((k,{text:w="",label:N="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:B=!1,alignX:A="center",alignY:D="top"}={})=>{const $=h(k);_({text:w,label:N,anchorRect:$,backdrop:B,alignX:A,alignY:D}),g(!0)},[h]),x=o.useCallback(()=>{g(!1),_(k=>({...k,anchorRect:null}))},[]),b=o.Children.map(i,k=>{if(o.isValidElement(k)){const w=k;if(typeof w.type=="string")return w;const N=w.props??{},B=typeof N.onDone=="function"?N.onDone:f,A=typeof N.disabled=="boolean";let D=p==="disabled";return A&&(D=!!N.disabled),o.cloneElement(w,{onDone:B,disabled:D,showTooltip:v,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(Hc,{state:p}),n.jsxs("div",{className:"training-step__content",children:[n.jsx(zc,{state:p,title:r,...s,useFaded:u}),b]}),C?n.jsx(Cn,{anchorRect:y.anchorRect,backdrop:y.backdrop,onClose:x,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:n.jsx(or,{text:y.text,onClose:x})}):null]})}function Wc({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 u=()=>c(P=>P==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:m,canDecrease:f,fontSize:C,lineHeight:g}=Yi({storageKey:"textbox_fontScale"}),[y,_]=o.useState(""),h=o.useRef(null),v=o.useRef(!1),x=o.useCallback(()=>{v.current=Qa()&&!!h.current&&h.current.contains(document.activeElement),i("active")},[]),b=o.useCallback(()=>_(""),[]),k=P=>{try{_(P)}catch{}},w=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(t!=="disabled"){const P=setTimeout(()=>i(t),0);return()=>clearTimeout(P)}},[t]);const N=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[B,A]=o.useState(N);B!==N&&(A(N),i("disabled"));const D=t==="disabled"?s:t,$=D==="disabled"?"training-text-box--disabled":D==="active"?"training-text-box--active":D==="done"?"training-text-box--done":"",O=o.useMemo(()=>({fontSize:`${C}px`,lineHeight:`${g}px`}),[C,g]);return o.useEffect(()=>{if(D==="disabled"||!v.current)return;v.current=!1;const P=document.activeElement;P&&P!==document.body||h.current?.querySelector(".training-text-box__buttons button")?.focus()},[D]),n.jsxs("div",{ref:h,className:`training-text-box ${$} ${D!=="disabled"&&l==="dark"?"is-dark":""}`,children:[D==="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":D==="disabled",children:n.jsx("span",{className:"training-text-box__inner h3",style:O,children:N})}),D!=="disabled"&&n.jsxs("div",{className:"training-text-box__buttons","aria-hidden":D==="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:!f,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),n.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:d,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,...!w&&{width:"60px"}}),n.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),n.jsx(ta,{message:y,position:"top",onClose:b})]})}function Mo({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:s,onDone:i,onChange:l,answer:c,wrongAnswers:u,choices:d,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:f=!1,choiceIcons:C,shuffleChoices:g=!0}){const{t:y}=ge.useTranslation(),_=r??y("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),h=typeof e=="number"?e:-1,v=typeof t!="number"?"disabled":h<t?"done":h===t?"active":"disabled",x=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,b=u?u.join("||"):"",k=d?d.join("||"):"",[w,N]=o.useState(()=>Array.isArray(x)?g?Ca(x):x.slice():void 0);o.useEffect(()=>{Array.isArray(x)&&x.length?N(g?Ca(x):x.slice()):N(void 0)},[c,b,k,g]);const[B,A]=o.useState(null),[D,$]=o.useState(()=>new Set);o.useEffect(()=>{A(null),$(new Set)},[k,c,b]);const O=o.useRef(void 0);o.useEffect(()=>{const S=O.current;typeof S=="number"&&typeof t=="number"&&typeof e=="number"&&S>=e&&t<e&&(A(null),$(new Set)),O.current=t},[t,e]);const P=o.useCallback(S=>{if(v!=="active")return;const L=w?.[S];if(L==null)return;const H=L,ee=v==="active"||v==="done";if(p){const U=new Set(D),q=U.has(H);q?U.delete(H):U.add(H),$(U),typeof l=="function"&&l({selectedValues:[...U],__ts:Date.now()}),ee&&(typeof m=="number"&&m>0?U.size>=m:!q)&&typeof i=="function"&&v==="active"&&i({selectedValues:[...U],__ts:Date.now()})}else A(H),typeof l=="function"&&l({selectedIndex:S,selectedValue:H,__ts:Date.now()}),ee&&typeof i=="function"&&v==="active"&&i({selectedIndex:S,selectedValue:H,__ts:Date.now()})},[w,v,p,l,i,m,D]),K=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return n.jsx(zn,{index:e,stepIndex:t,isLast:a,title:_,useTitleFaded:s,children:n.jsx("div",{className:K,children:Array.isArray(w)&&w.length>0?w.map((S,L)=>n.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:()=>P(L),ariaLabel:String(S),label:S,useLabel:!0,icon:C?C[String(S)]:void 0,variant:"default",disabled:v==="disabled",selected:p?D.has(S):B===S,useDisabledCovered:f,minWidth:0},String(S))):null})})}function Lo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l,demoSelected:c}){const{t:u}=ge.useTranslation(),d=r??u("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",f=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",C=l&&typeof l=="object"?l.choices:void 0,[g,y]=o.useState(c??null),_=`${String(f)}\0${JSON.stringify(C??null)}`,[h,v]=o.useState(_);h!==_&&(v(_),c==null&&y(null));const[x,b]=o.useState(c);Object.is(x,c)||(b(c),y(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&&y(null),k.current=t},[t,e,c]);const w=o.useCallback(A=>{const D=typeof A=="object"&&A!==null?Object.assign({},A,{__ts:Date.now()}):{value:A,__ts:Date.now()};typeof i=="function"&&i(D),m==="active"&&typeof s=="function"&&s(D)},[i,m,s]),N=o.useCallback(()=>{m==="active"&&(y(!1),w(!1))},[w,m]),B=o.useCallback(()=>{m==="active"&&(y(!0),w(!0))},[w,m]);return n.jsxs(zn,{index:e,stepIndex:t,isLast:a,title:d,onDone:s,useTitleFaded:!1,children:[n.jsx(Wc,{context:l,state:m}),n.jsx("div",{className:"training-step__buttons",children:Array.isArray(C)&&C.length>0?C.slice(0,6).map((A,D)=>n.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(y(D),w&&w(D))},disabled:m==="disabled",ariaLabel:String(A),label:A,variant:m,selected:g===D},D)):n.jsxs(n.Fragment,{children:[n.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:N,disabled:m==="disabled",icon:"x",ariaLabel:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:g===!1}),n.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:B,disabled:m==="disabled",icon:"circle",ariaLabel:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:g===!0})]})})]})}function $o({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,btnLabel:i,soundSrc:l,bucketPath:c,usePreviewTextBtn:u,previewText:d=null,onPreviewTextBtn:p,disabled:m,_pageIndex:f,showSoundWaveForm:C,showNoiseWaveForm:g}){const{t:y}=ge.useTranslation(),_=r??y("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),h=m??(typeof t=="number"&&typeof e=="number"?e>t:!1);return n.jsx(zn,{index:e,stepIndex:t,isLast:a,title:_,onDone:s,titleProps:{usePreviewTextBtn:u,previewText:d,onPreviewTextBtn:p},children:n.jsx(To,{soundSrc:l,ttsText:l?null:d??_,bucketPath:c,btnLabel:i||y("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:h,className:"training-step__listen-sticky",showSoundWaveForm:C,showNoiseWaveForm:g},`audio-p${f??0}-s${e}`)})}const R5=[];function Ro({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=R5}){const{t:c}=ge.useTranslation(),u=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=I=>typeof I=="string"?I:I&&(I.context||I.sentence||I.question||"")||"",[p,m]=o.useState(Array.isArray(l)?l:[]),[f,C]=o.useState(()=>(p||[]).map((I,E)=>({id:E,text:d(I)}))),g=o.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]),y=g!=="disabled",_=o.useRef(void 0);o.useEffect(()=>{if(_.current===l)return;_.current=l;const I=Array.isArray(l)?l:[];m(I);const E=(F=>{const R=(F||[]).map((Y,Q)=>({id:Q,text:d(Y)}));if(R.length<=1)return R;const T=(Y,Q)=>{if(Y.length!==Q.length)return!1;for(let de=0;de<Y.length;de++)if(Y[de].text!==Q[de].text)return!1;return!0};let M=Ca(R),G=0;for(;T(M,R)&&G<20;)M=Ca(R),G+=1;return M})(I);C(E);try{if(typeof i=="function"){const F=E.filter((R,T)=>R.text===d(I[T])).length;i({shuffled:E,score:F,total:(I||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&g==="active"){const F=E.filter((R,T)=>R.text===d(I[T])).length;s({shuffled:E,score:F,total:(I||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const h=(I,E)=>{const F=[...f],R=I+E;if(R<0||R>=F.length)return;const T=F[R];F[R]=F[I],F[I]=T,L(F);try{if(typeof s=="function"&&g==="active"){const M=F.filter((G,Y)=>G.text===d(p[Y])).length;s({shuffled:F,score:M,total:(p||[]).length,__ts:Date.now()})}}catch{}},[v,x]=o.useState(null),b=o.useRef(null),k=o.useRef(null),w=o.useRef(null),N=o.useRef(null),B=o.useRef(null),A=o.useRef({x:0,y:0}),D=o.useRef(null),$=o.useRef({dx:0,dy:0}),O=()=>{if(D.current!==null)return;const I=()=>{if(!b.current){D.current=null;return}D.current=requestAnimationFrame(I);const E=A.current,F=$.current||{dx:0,dy:0};b.current&&(b.current.style.transform=`translate3d(${E.x-F.dx}px, ${E.y-F.dy}px, 0)`)};D.current=requestAnimationFrame(I)},P=o.useRef(new Map),K=o.useRef(new Map),S=()=>{const I=new Map;return P.current.forEach((E,F)=>{E&&E.getBoundingClientRect&&I.set(F,E.getBoundingClientRect())}),I},L=I=>{const E=S();C(I);try{if(typeof i=="function"){const F=I.filter((R,T)=>R.text===d(p[T])).length;i({shuffled:I,score:F,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const F=S();I.forEach(R=>{const T=E.get(R.id),M=F.get(R.id),G=P.current.get(R.id);if(!G||!T||!M)return;const Y=T.top-M.top;Y&&(G.style.transition="none",G.style.transform=`translateY(${Y}px)`,requestAnimationFrame(()=>{G.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",G.style.transform="";const Q=()=>{G.style.transition="",G.removeEventListener("transitionend",Q)};G.addEventListener("transitionend",Q)}))})})},H=(I,E)=>{try{try{E.dataTransfer?.setData("text/plain",String(I))}catch{}try{E.dataTransfer&&(E.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),E.dataTransfer?.setDragImage(F,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(F)}catch{}})}catch{}}catch{}x(I);try{const F=f[I],R=document.createElement("div");R.className="order-list__dragging-object order-list__dragging-object--visible",R.textContent=F&&F.text?F.text:"",document.body.appendChild(R),b.current=R;const T=P.current.get(F.id);let M=E.clientX||0,G=E.clientY||0;try{if(T&&T.getBoundingClientRect){const oe=T.getBoundingClientRect();M=oe.left+oe.width/2,G=oe.top+oe.height/2}}catch{}const Y=R.getBoundingClientRect(),Q=Y.width/2,de=Y.height/2;$.current={dx:Q,dy:de},R.style.transition="none",A.current={x:M,y:G},R.style.transform=`translate3d(${M-Q}px, ${G-de}px, 0)`,requestAnimationFrame(()=>{try{R.style.transition=""}catch{}O()});const Te=oe=>{const z=oe;A.current={x:z.clientX,y:z.clientY},O()};w.current=Te,document.addEventListener("mousemove",Te);const ke=oe=>{const z=oe;A.current={x:z.clientX,y:z.clientY},O()};k.current=ke,document.addEventListener("dragover",ke);try{E.dataTransfer?.setData("text/plain",String(I));try{E.dataTransfer?.setData("application/json",JSON.stringify({idx:I}))}catch{}}catch{}}catch{}},ee=(I,E)=>{E.preventDefault();try{E.dataTransfer&&(E.dataTransfer.dropEffect="move")}catch{}try{B.current!==null&&(clearTimeout(B.current),B.current=null);const F=E.currentTarget&&E.currentTarget.closest?E.currentTarget.closest(".order-list__item"):null;if(F&&N.current!==F){if(N.current)try{N.current.classList.remove("drag-over")}catch{}try{F.classList.add("drag-over")}catch{}N.current=F}}catch{}},U=(I,E)=>{E.preventDefault();const F=E.dataTransfer?.getData("text/plain")||"",R=F?parseInt(F,10):v,T=I;if(typeof R!="number"||isNaN(R)||R===T){x(null),J(),q();return}const M=C2(f,R,T);L(M),x(null),q();try{if(typeof s=="function"&&g==="active"){const G=M.filter((Y,Q)=>Y.text===d(p[Q])).length;s({shuffled:M,score:G,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const G=document.querySelectorAll(".order-list .order-list__item")[T];if(!G)return;const Y=G.querySelector(".order-list__slot")||G;try{Y.classList.add("pulse"),Y.offsetHeight,Y.classList.add("to-dark");const Q=()=>{Y.classList.remove("pulse","to-dark"),Y.removeEventListener("transitionend",Q)};Y.addEventListener("transitionend",Q)}catch{}})}catch{}J()},q=()=>{if(b.current){try{document.body.removeChild(b.current)}catch{}b.current=null}k.current&&(document.removeEventListener("dragover",k.current),k.current=null),w.current&&(document.removeEventListener("mousemove",w.current),w.current=null),D.current!==null&&(cancelAnimationFrame(D.current),D.current=null)},W=()=>{x(null),J(),q()};o.useEffect(()=>()=>q(),[]);const J=()=>{try{if(B.current!==null&&(clearTimeout(B.current),B.current=null),N.current){try{N.current.classList.remove("drag-over")}catch{}N.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(I=>I.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const I=Math.max(1,(f||[]).length);f.forEach((E,F)=>{const R=K.current.get(E.id);if(!R)return;let T=50;I>1&&(T=Math.round(F/(I-1)*100));try{R.style.setProperty("--marker-pos",T+"%")}catch{}})}catch{}},[f]),o.useEffect(()=>()=>{q(),B.current!==null&&(clearTimeout(B.current),B.current=null)},[]),n.jsx(zn,{index:e,stepIndex:t,isLast:a,title:u,children:n.jsx("div",{className:"order-list",children:f.map((I,E)=>{const F=Math.max(1,(f||[]).length),R=F>1?Math.round(E/(F-1)*100):50;return n.jsx("div",{className:"order-list__item",children:n.jsxs("div",{className:"order-list__slot","data-disabled":g==="disabled","aria-disabled":g==="disabled",children:[g!=="disabled"?n.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":R+"%"},ref:T=>{const M=K.current;T?M.set(I.id,T):M.delete(I.id)},children:n.jsx("span",{className:"order-list__slot-number button-1",children:E+1})}):null,n.jsxs("div",{ref:T=>{const M=P.current;T?M.set(I.id,T):M.delete(I.id)},className:`order-list__draggable ${v===E?"dragging":""}`,"data-disabled":g==="disabled","aria-disabled":g==="disabled",tabIndex:g==="disabled"?-1:0,draggable:y,onDragStart:y?T=>H(E,T):void 0,onDragEnter:y?T=>ee(E,T):void 0,onDragOver:y?T=>ee(E,T):void 0,onDragLeave:y?()=>{try{B.current!==null&&clearTimeout(B.current),B.current=setTimeout(()=>{try{const T=document.querySelectorAll(".order-list .order-list__item");T&&T[E]&&(T[E].classList.remove("drag-over"),N.current===T[E]&&(N.current=null))}catch{}},80)}catch{}}:void 0,onDrop:y?T=>U(E,T):void 0,onDragEnd:y?W:void 0,children:[n.jsx("span",{className:"order-list__item-text body-2",children:I.text}),y?n.jsxs("span",{className:"order-list__item-buttons",children:[n.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:()=>h(E,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:E===0,useBorder:!1,useDisabledInvisible:!0}),n.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:()=>h(E,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:E===f.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},I.id)})})})}const P5=8e3;function I5(e,t){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,t)})}function qc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=[],selectable:c=!1,hideLabel:u=!1,hideAudio:d=!1,maxCards:p}){const{t:m}=ge.useTranslation(),f=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),C=o.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),g=p??3,y=(C||[]).slice(0,g);(C||[]).length>g&&console.warn(`TrainingStepCard: ${C.length} items passed but only ${g} shown`);const _=typeof e=="number"?e:-1,h=typeof t!="number"?"disabled":_<t?"done":_===t?"active":"disabled",[v,x]=o.useState(null),b=o.useRef([]),[k,w]=o.useState(!1),N=o.useRef(null),B=o.useRef(!0);o.useEffect(()=>(B.current=!0,()=>{B.current=!1}),[]);const A=o.useMemo(()=>C.map(K=>K?.id??K?.word??"").join("|"),[C]);o.useEffect(()=>{x(null)},[A]);const D=o.useRef(void 0);o.useEffect(()=>{const K=D.current;typeof K=="number"&&typeof t=="number"&&typeof e=="number"&&K>=e&&t<e&&x(null),D.current=t},[t,e]);const $=o.useCallback((K,S)=>{if(c)return;const L={item:K,index:S,__ts:Date.now()};try{typeof i=="function"&&i(L)}catch{}if(h==="active"&&typeof s=="function")try{s(L)}catch{}},[c,i,h,s]),O=o.useCallback(async()=>{if(k||h==="disabled")return;w(!0);let K=!1;const S=new Promise(L=>{N.current=()=>{K=!0,L()}});try{for(let L=0;L<y.length&&!(!B.current||K);L++){const H=b.current[L];H&&await Promise.race([I5(H.play(),P5),S])}}finally{N.current=null,w(!1)}},[k,h,y.length]),P=o.useCallback((K,S)=>{if(h!=="active")return;x(S);const L={selectedValue:K.word||K.title||"",selectedIndex:S,item:K,__ts:Date.now()};try{typeof i=="function"&&i(L)}catch{}if(h==="active"&&typeof s=="function")try{s(L)}catch{}},[i,h,s]);return n.jsx(zn,{index:e,stepIndex:t,isLast:a,title:f,onDone:s,titleProps:{usePlayAllBtn:!d&&y.length>0,onPlayAll:O,playAllActive:k},children:n.jsx("div",{className:"training-step__cards",onClickCapture:K=>{const S=N.current;if(!S)return;const L=K.target;L&&typeof L.closest=="function"&&L.closest(".training-word-card__bottom")&&S()},children:y.length===0?n.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):y.map((K,S)=>n.jsx(Co,{ref:L=>{b.current[S]=L},item:K,disabled:h==="disabled",onPlayDone:()=>$(K,S),selectable:c,selected:c&&v===S,onSelect:c?()=>P(K,S):void 0,flipDelay:S*120,hideLabel:u,hideAudio:d},K&&K.id||S))})})}const F5=160,O5={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function H5(e,t){const a=O5[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}const Uc=()=>{};function jn(e){const t=o.useId();if(!("variant"in e)){const{label:h,sub:v,onClick:x,children:b,align:k="horizontal",icon:w}=e,N=B=>{x&&B.target===B.currentTarget&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),x())};return n.jsxs("div",{className:De("panel-row",k==="vertical"?"panel-row--vertical":"",x?"panel-row--clickable":""),onClick:x,onKeyDown:x?N:void 0,role:x?"button":void 0,tabIndex:x?0:void 0,children:[w!=null&&n.jsx("div",{className:"panel-row__icon",children:w}),h!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:h}),v&&n.jsx("div",{className:"panel-row__sub caption-1",children:v})]}),n.jsx("div",{className:"panel-row__right",children:b})]})}if(e.variant==="description")return n.jsx("div",{className:"panel-row panel-row--block",children:n.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return n.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return n.jsx("div",{className:"panel-row panel-row--loading",children:n.jsx(Da,{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:u="horizontal",useFullWidth:d=!1,icon:p}=e,m=a==="button"?void 0:i;let f=null;const C=a==="toggle"?`panel-toggle-${t}`:void 0,g=c?`panel-error-${t}`:void 0;if(a==="toggle"){const h=e;f=n.jsx(jl,{checked:h.checked,onChange:h.onChange,id:C})}else if(a==="segmented"){const h=e;f=n.jsx(Sn,{options:h.options,value:h.value,onChange:h.onChange,size:h.size??40,ariaLabel:r})}else if(a==="dropdown"){const h=e,v=h.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:h.dropdowns.map((x,b)=>n.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:n.jsx(nn,{options:x.options,value:x.value,onChange:x.onChange,placeholder:x.placeholder,block:d,error:!!c,ariaDescribedBy:g,ariaLabel:x.ariaLabel??([r,x.placeholder].filter(Boolean).join(" ")||void 0)})},b))}):n.jsx(nn,{options:h.options??[],value:h.value??"",onChange:h.onChange??Uc,block:d,error:!!c,ariaLabel:r,ariaDescribedBy:g});f=c?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[v,n.jsx("span",{id:g,className:"caption-1 panel-row__error",role:"alert",children:c})]}):v}else if(a==="button"){const h=e;h.buttons?.length?f=n.jsx("div",{className:"panel-row__button-group",children:h.buttons.map((v,x)=>n.jsx(le,{htmlType:"button",size:v.btnSize??40,variant:v.btnVariant??"default",disabled:v.disabled,onClick:v.onClick,children:v.label},x))}):f=n.jsx(le,{htmlType:"button",size:h.btnSize??40,variant:h.btnVariant??"default",disabled:h.disabled,onClick:h.onClick,children:h.buttonLabel})}else if(a==="text"){const h=e;f=n.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:h.valueColor?{color:h.valueColor}:void 0,children:h.value})}else if(a==="input"){const h=e;f=n.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[n.jsx(Vn,{value:h.value,onChange:h.onChange??Uc,onKeyDown:h.onKeyDown,onEnter:h.onEnter,placeholder:h.placeholder,inputMode:h.inputMode,readOnly:h.readOnly,disabled:h.disabled,type:h.type,autoComplete:h.autoComplete,maxLength:h.maxLength,showCount:h.showCount,multiline:h.multiline,rows:h.rows,fullWidth:d,error:c,ariaLabel:r,required:l}),h.helperText&&n.jsx("div",{className:"panel-row__helper caption-1",children:h.helperText})]})}else a==="custom"&&(f=e.children);c&&a!=="input"&&a!=="dropdown"&&(f=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[f,n.jsx("span",{id:g,className:"caption-1 panel-row__error",role:"alert",children:c})]}));const y=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,_=h=>{m&&h.target===h.currentTarget&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),m())};return n.jsxs("div",{className:De("panel-row",u==="vertical"?"panel-row--vertical":"",y?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",m?"panel-row--clickable":""),onClick:m,onKeyDown:m?_: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:[C?n.jsxs("label",{htmlFor:C,className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}):n.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}),s&&n.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),n.jsx("div",{className:"panel-row__right",children:f})]})}function Gc(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function V5({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(mt,{size:"small",variant:Yl(i.device),fill:"soft",label:H5(i.device,r)}),Gc(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:Gc(i)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),po(i.wornYear,i.wornMonth,i.wornDay)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:po(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:u,scrollbarGutter:d="auto",compactRows:p=!1,useBorder:m=!0,useBg:f=!0,useRowBorder:C=!0,labelWidth:g,form:y=!1,loading:_,empty:h,children:v}){const x=De("panel",`panel--${s}`,y?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",f?"":"panel--no-bg",C?"":"panel--no-row-border",p?"panel--compact-rows":"",c),b={};return i!==void 0&&(b.minHeight=i),l!==void 0&&(b.maxWidth=typeof l=="number"?`${l}px`:l),g!==void 0&&(b["--panel-label-width"]=typeof g=="number"?`${g}px`:g),n.jsxs("div",{className:x,style:Object.keys(b).length?b:void 0,children:[(e!=null||a!=null)&&n.jsxs("div",{className:De("panel__header",a!=null?"panel__header--with-disc":""),children:[t&&n.jsx(qe,{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})]}),_?n.jsx(jn,{variant:"loading"}):h!=null&&o.Children.toArray(v).length===0?n.jsx(jn,{variant:"empty",children:h}):u?n.jsx("div",{className:De("panel__body--scroll",d==="stable"&&"panel__body--gutter-stable"),children:v}):v]})}function z5({cols:e=2,children:t}){return n.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:t})}function W5(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 Kc(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"}]}W5(kt.t.bind(kt)),Kc(kt.t.bind(kt));const Po="none",q5=.5,U5=1.5,G5=.25;function Io({title:e,valueLabel:t,value:a,min:r,max:s,step:i,tickStep:l,size:c,onChange:u}){return n.jsxs(jn,{variant:"custom",label:e,useFullWidth:!0,children:[n.jsx(Wl,{value:a,onChange:u,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 Yc({anchorRect:e,onClose:t}){const{t:a}=ge.useTranslation(),r=tn("(max-width: 767px)")?40:24,s=ar(),i=Ea(s?.settings??ja),l=s?.settings.type??"defaultNoise",c=s?.settings.enabled??!0,u=s?.playbackRate??1,d=s?.mainVolume??1,p=Math.round(d*100),m=o.useCallback(y=>{try{s?.setMainVolume(Math.max(0,Math.min(1,y/100)))}catch{}},[s]),f=o.useCallback(y=>{try{s?.setPlaybackRate(y)}catch{}},[s]),C=o.useCallback(y=>{const _=Math.min(Sa,Math.max(0,Math.round(y*10)/10));try{s?.setSettings({noiseRatio:_})}catch{}},[s]),g=o.useCallback(y=>{try{y===Po?s?.setSettings({enabled:!1}):s?.setSettings({type:y,enabled:!0})}catch{}},[s]);return n.jsx(Cn,{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(Io,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),n.jsx(Io,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:q5,max:U5,step:G5,size:r,onChange:f}),n.jsx(jn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:n.jsx(Sn,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Po,label:a("training.noise.type.none","\uC5C6\uC74C")},...Kc(a).map(y=>({key:y.value,label:y.label}))],value:c?l:Po,onChange:g})}),n.jsx(Io,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:Sa,step:Mc,size:r,onChange:C})]})})}function Zc({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:s=0,stepCount:i=0,pageIndex:l=0,pageCount:c=1}){const{t:u}=ge.useTranslation(),[d,p]=o.useState(!1),[m,f]=o.useState(null),[C,g]=o.useState(!1),y=o.useRef(null),_=o.useRef(null),h=ar(),v=c>0,x=v&&l<c-1,b=!v||l>=c-1,k=s===Math.max(0,i);o.useEffect(()=>{e||(p(!1),f(null))},[e]);const w=o.useCallback(()=>{p(!1),f(null)},[]),N=o.useCallback(()=>{if(d){p(!1),f(null);return}const D=y?.current?.getBoundingClientRect();D&&f(D),t?.(),p(!0)},[d,t]),B=o.useCallback(()=>{if(d){p(!1),f(null);return}const D=_?.current?.getBoundingClientRect();D&&f(D),t?.(),p(!0)},[d,t]),A=o.useCallback(()=>g(D=>!D),[]);return Vc(e&&d,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[y.current,_.current].map(D=>D?.querySelector("button")??null).find(D=>!!D&&D.getClientRects().length>0)??y.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:y,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(le,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:N,className:d?"is-selected":void 0,"aria-expanded":d,"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:_,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(le,{htmlType:"button",size:56,type:"dot",icon:"settings",onClick:B,className:d?"is-selected":void 0,"aria-expanded":d,"aria-haspopup":"dialog",ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&n.jsx(le,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:A,selected:C,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&C&&n.jsxs("div",{className:"pp-bottom__meters",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(lo,{analyser:h?.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(lo,{analyser:h?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]})]}),n.jsxs("div",{className:"pp-bottom__right",children:[b&&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:!k}),x&&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:!k})]}),e&&d&&n.jsx(Yc,{anchorRect:m,onClose:w})]})}function Xc({title:e,subtitle:t,desc:a,depth:r,icon:s,wrapperStyle:i,iconTooltip:l,pageIndex:c,pageCount:u,progressMax:d,progressIndex:p,onBack:m,onClose:f}){const{t:C}=ge.useTranslation(),g=tn("(max-width: 767px)"),y=Number.isInteger(p)?p:c||0,_=Number.isInteger(d)?d:u||0,h=m||f,v=Array.isArray(r)?g?r[r.length-1]:r.join(" / "):r,x=typeof e=="string"?e.trim():e,b=typeof t=="string"?t.trim():t,k=!!(x||b),w=k?x||b:C("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),N=v||(x?t:void 0),B=g&&typeof N=="string"&&(N.includes(" \xB7 ")||N.includes(" / "))?N.split(/\s[·/]\s/).pop():N,A=o.useMemo(()=>{const D=i&&typeof i=="object"?{...i}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[i]);return n.jsxs("header",{className:"pp-title training-popup-title",children:[n.jsxs("div",{className:"pp-title__left",children:[h?n.jsx(le,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:C("common.back","\uB4A4\uB85C"),onClick:h,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:[B?n.jsx("span",{className:"pp-title__depth caption-1",children:B}):null,n.jsx("span",{className:`pp-title__title h2${k?"":" pp-title__title--empty"}`,children:w}),a?n.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),n.jsx(Kl,{max:Math.max(0,_??0),index:Math.max(0,y??0)})]})}function K5(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Y5(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 Jc=(e,t)=>{if(!t)return t;const a=typeof kt?.t=="function"?kt.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function Qc(e,t,a){const r=e,s=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=ii().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?Jc(`topic.${i.key}`,i.label):void 0,l?Jc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function Fo(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function Z5(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function X5({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:i,buildResults:l,metaPatch:c}){const u=Qc(t,a,r),d=typeof c=="function"?c(u)||{}:c||{},p=t?.id||t?.title||s.length;return{id:`${e}:${p}`,meta:{...u,...d},pages:s,emptyMessage:i,buildResults:l}}function J5(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function Q5(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 e3(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 eu(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function t3(e,t,a,r){return eu(e,t*a+r)}function n3({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 a3(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 tu=o.createContext(null);function r3(){const e=o.useContext(tu);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function o3({index:e,stepIndex:t,isLast:a=!1,title:r,choices:s=[],onDone:i,onChange:l}){const{t:c}=ge.useTranslation(),u=typeof e=="number"?e:-1,d=typeof t!="number"?"disabled":u<t?"done":u===t?"active":"disabled",[p,m]=o.useState(()=>s.map(()=>null)),f=JSON.stringify(s),C=s.length;o.useEffect(()=>{m(Array.from({length:C},()=>null))},[f]);const g=o.useRef(void 0);o.useEffect(()=>{const v=g.current;typeof v=="number"&&typeof t=="number"&&typeof e=="number"&&v>=e&&t<e&&m(Array.from({length:C},()=>null)),g.current=t},[t,e,C]);const y=o.useMemo(()=>p.filter(v=>v!==null).length+1,[p]),_=o.useCallback(v=>{if(d!=="active")return;const x=p;let b;if(x[v]!=null){const w=x[v];b=x.map(N=>N!==null&&N>=w?null:N)}else b=[...x],b[v]=y;m(b);const k={selectedOrder:b,words:s,__ts:Date.now()};try{typeof l=="function"&&l(k)}catch{}if(x[v]==null&&b.length>0&&b.every(w=>w!==null))try{typeof i=="function"&&i(k)}catch{}},[d,p,y,l,i,s]),h=r??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return n.jsx(zn,{index:e,stepIndex:t,isLast:a,title:h,onDone:i,children:n.jsx("div",{className:"training-step__cards",children:s.map((v,x)=>n.jsx(Co,{item:{word:v},disabled:d==="disabled",selectable:!0,selected:p[x]!==null,orderRank:p[x],onSelect:()=>_(x),flipDelay:x*120,hideLabel:!1,hideAudio:!0},`${v}-${x}`))})})}function ir(e){return null}ir.__isTrainingPage=!0;function la(e,t){const a=r3();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 nu({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l}=la(e,t);return n.jsx($o,{...a,index:r,stepIndex:s,isLast:i,onDone:l})}function au({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=la(e,t);return n.jsx(Mo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function ru({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=la(e,t);return n.jsx(Lo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function ou({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=la(e,t);return n.jsx(Ro,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function su({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=la(e,t);return n.jsx(qc,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function s3({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=la(e,t);return n.jsx(o3,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function Oo(...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 i3(e){return Oo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function iu(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=Oo(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 lu(e){const{score:t,contextsLength:a,results:r=[],subtitle:s,onReplay:i,onClose:l,inline:c=!1,pending:u=!1}=e||{},{t:d}=ge.useTranslation(),p=o.useId(),m=o.useCallback(()=>!u,[u]);o.useEffect(()=>{const v=a??0;if(t!=null&&v>0&&t/v>.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 f=o.useCallback(v=>{const x=iu(v),b=Oo(v?.wording,v?.label);return x===!0?{variant:"main",label:b??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:x===!1?{variant:"danger",label:b??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:b??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),C=a??0,g=t??0,y=o.useMemo(()=>Array.isArray(r)?r:[],[r]),_=o.useMemo(()=>y.map(v=>{const x=v??{},b=i3(x)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:k,label:w}=f(x),N=Array.isArray(x.corrects)?x.corrects:[],B=N.length?N.join(", "):x.answer!=null&&x.answer!==""?String(x.answer):null,A=typeof x.selectedText=="string"?x.selectedText:null,D=iu(x)===!0;return{problem:b,variant:k,label:w,answer:B,selectedText:A,isCorrect:D}}),[y,f,d]),h=o.useMemo(()=>_.some(v=>v.answer!==null||v.selectedText!==null),[_]);return n.jsx(Tn,{onClose:l,closeOnBackdrop:!1,inline:c,ariaLabel:d("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:v,closeWithAnimation:x})=>n.jsxs(n.Fragment,{children:[u&&n.jsx("p",{id:p,className:"trp-actions__reason caption-1",role:"status",children:d("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsxs("div",{className:"trp-actions",children:[n.jsx(le,{htmlType:"button",size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>v(i)}),n.jsx(le,{htmlType:"button",size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:x,disabled:u,onDisabledClick:u?()=>{}:void 0,"aria-describedby":u?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:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),n.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),s&&n.jsx("p",{className:"trp-result__subtitle body-3",children:s}),n.jsx("div",{className:"trp-score",children:n.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:g,total:C}),children:[n.jsx("span",{className:"trp-score__big",children:g}),n.jsx("span",{className:"trp-score__sep",children:"/"}),n.jsx("span",{className:"trp-score__total",children:C})]})})]}),_.length>0&&n.jsx("section",{className:"trp-result__body",children:n.jsxs("div",{className:`result-table${h?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[n.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[n.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),h&&n.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),n.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),_.map((v,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:v.problem})]}),h&&n.jsxs("div",{className:"trp-row__answers",children:[v.answer!==null&&n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),n.jsx("span",{className:"trp-row__answer-value body-2",children:v.answer})]}),n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${v.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),n.jsx("span",{className:`trp-row__answer-value body-2 ${v.isCorrect?"is-correct":"is-wrong"}`,children:v.selectedText??"\u2014"})]})]}),n.jsx("div",{className:"trp-row__judge",children:n.jsx(mt,{variant:v.variant,label:v.label,fill:"soft",minWidth:80})})]},x))]})})]})})}function l3(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 u=()=>{if(c(),a==null||s-i<1e3||i===0&&s<5e3)return;const p=a+i;i=s,y2({trainingType:e,startedAt:new Date(p).toISOString(),endedAt:new Date(a+s).toISOString()})},d=()=>{t()?l():u()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",u),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",u),u()}},[e])}function Ho(e,t){return e&&e.id||`page-${t??0}`}function Vo(e,t){return e&&e.key||`step-${t??0}`}function lr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function c3(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const u3=300,d3=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Mn=Object.freeze({}),cu=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function uu(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 p3=e=>n.jsx(lu,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function m3(e){const{scenario:t,title:a,subTitle:r,depth:s,icon:i,wrapperStyle:l,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:p,stepCount:m,onBack:f,onComplete:C,onNext:g,onSettings:y,useNoiseSetting:_=!0,children:h,ariaLabel:v,label:x,buildResults:b,onResult:k,typeKey:w,entryPoint:N,dailyTotal:B,itemRef:A,renderResultPopup:D,noiseOverride:$}=e;l3(w&&!cu.has(w)?w:"");const O=o.useRef(0);o.useEffect(()=>{O.current=Date.now()},[]);const{t:P}=ge.useTranslation(),K=k,S=!!t,L=t?.id||null,H=t?.meta||{},ee=Array.isArray(t?.pages)?t.pages:[],U=Array.isArray(h)||o.isValidElement(h)&&typeof h!="function"?o.Children.toArray(h).filter(o.isValidElement):[],q=U.length>0,W=ae=>ae===ir||ae?.__isTrainingPage===!0,J=q&&U.some(ae=>W(ae.type)),I=J?U.filter(ae=>W(ae.type)).map((ae,he)=>{const V=ae.props||{};return{id:`children-page-${he}`,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:U}],E=q&&!S&&typeof h!="function",F=E?Math.max(1,I.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 ae=document.body;return ae.dataset.ihabTrainingPopupCount=String(Number(ae.dataset.ihabTrainingPopupCount||"0")+1),ae.classList.add("ihab-training-popup-open"),()=>{const he=Number(ae.dataset.ihabTrainingPopupCount||"1")-1;he>0?ae.dataset.ihabTrainingPopupCount=String(he):(delete ae.dataset.ihabTrainingPopupCount,ae.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return d4()},[]);const[R,T]=o.useState({...ja,enabled:!1}),M=o.useRef(R);o.useEffect(()=>{M.current=R},[R]);const G=o.useRef($),Y=o.useRef(!1),Q=o.useRef(null);o.useEffect(()=>{let ae=!1;const he=V=>{if(ae)return;Y.current=!0;const ie=V?Ta({...ja,enabled:!1},V):{...ja},ue=Q.current;Q.current=null;const xe=ue?Ta(ie,ue):ie;M.current=xe,T(xe),ue&&!G.current&&ti(xe),Oa(xe);const _e=G.current;if(_e){const Me=typeof _e=="function"?_e(xe):_e,nt=Ta(xe,Me);M.current=nt,T(nt),Oa(nt)}};return w2().then(he),()=>{ae=!0}},[]);const[de,Te]=o.useState(null),[ke,oe]=o.useState(null),z=o.useCallback((ae,he)=>{ae==="main"?Te(he):oe(he)},[]),re=o.useRef(null),ce=o.useRef(null),fe=o.useCallback(()=>{ce.current!==null&&(clearTimeout(ce.current),ce.current=null);const ae=re.current;re.current=null,ae&&ti(ae)},[]);o.useEffect(()=>{if(typeof window>"u")return;const ae=()=>{document.visibilityState==="hidden"&&fe()};return window.addEventListener("pagehide",fe),document.addEventListener("visibilitychange",ae),()=>{window.removeEventListener("pagehide",fe),document.removeEventListener("visibilitychange",ae),fe()}},[fe]);const ye=o.useCallback(ae=>{const he=Ta(M.current,ae);if(M.current=he,T(he),!Y.current){Q.current={...Q.current??{},...ae},Oa(he);return}G.current||(re.current=he,ce.current!==null&&clearTimeout(ce.current),ce.current=setTimeout(fe,u3)),Oa(he)},[fe]),Ne=R.mainSpeed,we=R.mainVolume,Be=o.useCallback(ae=>ye({mainSpeed:ae}),[ye]),je=o.useCallback(ae=>ye({mainVolume:ae}),[ye]),se=o.useMemo(()=>({settings:R,setSettings:ye,registerAnalyser:z,mainAnalyser:de,noiseAnalyser:ke,playbackRate:Ne,setPlaybackRate:Be,mainVolume:we,setMainVolume:je}),[R,ye,z,de,ke,Ne,Be,we,je]),te=o.useRef(null),[me,ne]=o.useState(0),Ce=o.useRef([]),[ve,Ye]=o.useState("center"),[He,Ue]=o.useState(!1),Se=o.useRef(!1),Ge=o.useRef(null),$e=o.useCallback(ae=>{Se.current||(Se.current=!0,Ue(!0),Ge.current=setTimeout(()=>{try{ae()}catch{Se.current=!1,Ue(!1)}},d3()?0:F5))},[]);o.useEffect(()=>()=>{Ge.current&&clearTimeout(Ge.current)},[]);const Ie=o.useRef(f);o.useEffect(()=>{Ie.current=f}),o.useEffect(()=>{const ae=te.current,he=document.activeElement;if(Fr(ae,he),ae){const V=Array.from(ae.querySelectorAll(fn)).filter(ie=>!ie.closest('[aria-hidden="true"]'))[0];if(V)try{V.focus()}catch{}}return()=>{const V=document.activeElement;if(!V||V===document.body||ae&&ae.contains(V))try{Or(he)?.focus?.()}catch{}}},[]),o.useEffect(()=>In(()=>$e(()=>{const ae=Ie.current;typeof ae=="function"&&ae()})),[$e]),Pr(te,!0);const[Ve,at]=o.useState(!1),ot=o.useRef(!1),[We,Xe]=o.useState(null),gt=o.useRef(0),Bt=()=>{gt.current+=1,Xe(null)},[Tt,dt]=o.useState(""),[Qe,Ze]=o.useState(()=>lr()),Oe=o.useRef(typeof u=="number"?u:null);o.useEffect(()=>{!S&&!E||(Ze(lr()),Bt())},[S,L,E]),o.useEffect(()=>{E&&Ze(ae=>{const he=Math.max(0,Math.min(ae.pageIndex,Math.max(0,F-1)));return he!==ae.pageIndex?{...ae,pageIndex:he,stepIndex:0}:ae})},[E,F]);const rt=E?Math.max(0,Math.min(Qe.pageIndex,F-1)):0,et=E?I[rt]:null,yt=E&&et&&Array.isArray(et.steps)?et.steps:[],ze=S?Qe.pageIndex:E?rt:typeof u=="number"?u:0,it=S?ee[Math.max(0,Math.min(Qe.pageIndex,Math.max(0,ee.length-1)))]:null,Nt=S&&it&&Array.isArray(it.steps)?it.steps:[],Dt=S?Nt.length:E?yt.length:typeof m=="number"?m:0,Le=S||E?Math.max(0,Math.min(Qe.stepIndex,Math.max(0,Dt))):typeof p=="number"?p:0,Ke=S?ee.length:E?F:typeof d=="number"?d:0;o.useLayoutEffect(()=>{const ae=Oe.current;if(typeof ze=="number"&&ae!==null&&ze!==ae&&ze>ae)try{dt(P("training.problemNotice",{n:ze+1}))}catch{}Oe.current=typeof ze=="number"?ze:Oe.current},[ze,u,P]),o.useLayoutEffect(()=>{const ae=te.current;if(!ae)return;const he=()=>ae.querySelector(".page-popup__scroll");let V=null,ie=null,ue=null;const xe=ct=>{const wt=he();if(!wt)return;const Wt=wt.scrollHeight<=wt.clientHeight;if(Ye(Wt?"center":"top"),ct&&!ot.current){ot.current=!0;try{at(!0)}catch{}try{nt.disconnect()}catch{}}},_e=()=>{V!==null&&cancelAnimationFrame(V),V=requestAnimationFrame(()=>{ie!==null&&clearTimeout(ie),ie=setTimeout(()=>xe(!0),60)})},Me=()=>{ue!==null&&cancelAnimationFrame(ue),ue=requestAnimationFrame(()=>xe(!1))};_e(),window.addEventListener("resize",Me);const nt=new MutationObserver(_e);nt.observe(ae,{childList:!0,subtree:!0,attributes:!0});const ft=setTimeout(()=>{ot.current||xe(!0)},400);return()=>{window.removeEventListener("resize",Me),V!==null&&cancelAnimationFrame(V),ie!==null&&clearTimeout(ie),ue!==null&&cancelAnimationFrame(ue),clearTimeout(ft);try{nt.disconnect()}catch{}}},[te]);const St=o.useCallback(ae=>{te.current&&(te.current._childOnNext=ae)},[]),xt=o.useCallback(ae=>{te.current&&(te.current._childOnResult=ae)},[]),jt=o.useCallback((ae,he,V)=>{Ze(ie=>{const ue=ie.answersByPage[ae]||{},xe=ue[he],_e=Fo(V),Me=Fo(xe);return xe&&Me>_e?ie:{...ie,answersByPage:{...ie.answersByPage,[ae]:{...ue,[he]:V}}}})},[Ze]),sn=o.useCallback((ae,he,V)=>{const ie=Ho(it,ze),ue=Vo(ae,he);jt(ie,ue,V)},[it,ze,jt]),tt=o.useCallback((ae,he,V)=>{const ie=Ho(it,ze),ue=Vo(ae,he);jt(ie,ue,V),!V?.allowChange&&ae?.autoAdvance!==!1&&Ze(xe=>({...xe,stepIndex:Math.max(xe.stepIndex,he+1)}))},[it,ze,jt,Ze]),Kt=o.useCallback((ae,he)=>{const V=et?.id||`children-page-${ze??0}`,ie=typeof he=="number"?he:Le??0,ue=`step-${ie}`;jt(V,ue,ae),ae?.allowChange||Ze(xe=>({...xe,stepIndex:Math.max(xe.stepIndex,ie+1)}))},[et,ze,Le,jt,Ze]),_n=o.useCallback((ae,he)=>{const V=et?.id||`children-page-${ze??0}`,ie=`step-${typeof he=="number"?he:Le??0}`;jt(V,ie,ae)},[et,ze,Le,jt]),_t=E?{currentPageIndex:ze??0,currentStepIndex:Le??0,totalStepsInPage:yt.length,handleStepDone:Kt,handleStepChange:_n}:null,zt=async()=>{const ae=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:ee,flowState:Qe,answersByPage:Qe.answersByPage})):null;return typeof K=="function"&&await Promise.resolve(K(ae))||ae},Jt=async()=>{const ae=et?.id||`children-page-${Qe.pageIndex}`,he=Qe.answersByPage[ae]||{},V=J?(()=>{const xe={};let _e=0;return I.forEach(Me=>{const nt=Qe.answersByPage[Me.id]||{},ft=Array.isArray(Me.steps)?Me.steps.length:0;for(let ct=0;ct<ft;ct+=1){const wt=nt[`step-${ct}`];typeof wt<"u"&&(xe[`step-${_e+ct}`]=wt)}_e+=ft}),xe})():he;if(typeof b=="function"){const xe=await Promise.resolve(b(V,{pageAnswers:he,answersByPage:Qe.answersByPage,pages:I,currentPageId:ae}));return typeof K=="function"&&await Promise.resolve(K(xe))||xe}const ie=Object.entries(he).map(([xe,_e],Me)=>({index:Me,key:xe,payload:_e})),ue={results:ie,answers:ie,score:0};return typeof K=="function"&&await Promise.resolve(K(ue))||ue},an=()=>{const ae=++gt.current,he=()=>ae!==gt.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(S){const ue=zt();Xe(Mn);const xe=ue;Promise.resolve(xe).then(_e=>{he()||Xe(_e||{isEmpty:!0})}).catch(_e=>{!he()&&Xe({isEmpty:!0})});return}if(E){const ue=Jt();Xe(Mn);const xe=ue;Promise.resolve(xe).then(_e=>{he()||Xe(_e||{isEmpty:!0})}).catch(_e=>{!he()&&Xe({isEmpty:!0})});return}const V=te.current&&te.current._childOnResult,ie=ue=>{try{return ue?ue():void 0}catch{return}};if(typeof V=="function"){const ue=ie(V);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:hn&&hn.tagName.toUpperCase()==="SCRIPT"&&hn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ue&&typeof ue.then!="function"?Xe(ue):Xe(ue&&typeof ue.then=="function"?Mn:{});const xe=()=>{he()||Xe(_e=>_e===Mn?{}:_e)};Promise.resolve(ue).then(_e=>{_e&&!he()?Xe(_e):xe()}).catch(_e=>{xe()});return}if(typeof K=="function"){const ue=ie(K);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:hn&&hn.tagName.toUpperCase()==="SCRIPT"&&hn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ue&&typeof ue.then!="function"?Xe(ue):Xe(ue&&typeof ue.then=="function"?Mn:{});const xe=()=>{he()||Xe(_e=>_e===Mn?{}:_e)};Promise.resolve(ue).then(_e=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:hn&&hn.tagName.toUpperCase()==="SCRIPT"&&hn.src||new URL("components.cjs.js",document.baseURI).href}catch{}_e&&!he()?Xe(_e):xe()}).catch(_e=>{console.error("viewResults external handler failed",_e),xe()});return}},ln=()=>{if(S){if(typeof ze=="number"&&typeof Ke=="number"&&ze<Ke-1){Ze(he=>({...he,pageIndex:he.pageIndex+1,stepIndex:0}));return}return an()}if(E){const he=yt.length;if(typeof Le=="number"&&Le<he-1){Ze(V=>({...V,stepIndex:V.stepIndex+1}));return}if(typeof ze=="number"&&typeof Ke=="number"&&ze<Ke-1){Ze(V=>({...V,pageIndex:V.pageIndex+1,stepIndex:0}));return}return an()}if(typeof g=="function"){try{g()}catch{}return}const ae=te.current&&te.current._childOnNext;if(typeof ae=="function"){try{ae()}catch{}return}},Qt=S?H.title||H.label||v||P("common.popup","\uD31D\uC5C5"):a||x||(Array.isArray(s)?s[s.length-1]:void 0)||v||P("common.popup","\uD31D\uC5C5"),wn=v||Qt,Yt=S?H.title??H.label??Qt:a??x??Qt,ht=(ae,he)=>{const V=Ho(it,ze),ie=Vo(ae,he),ue=Qe.answersByPage[V]?.[ie],xe=c3(ae,{page:it,pageIndex:ze,step:ae,stepIndex:he,storedPayload:ue,answersByPage:Qe.answersByPage,flowState:Qe}),_e={key:ie,index:he,stepIndex:Le,isLast:he===Nt.length-1};switch(ae?.type){case"listen":return n.jsx($o,{..._e,...xe,onDone:Me=>tt(ae,he,Me)});case"confirm":return n.jsx(Mo,{..._e,...xe,onDone:Me=>tt(ae,he,Me),onChange:Me=>sn(ae,he,Me)});case"confirmWithText":return n.jsx(Lo,{..._e,...xe,onDone:Me=>tt(ae,he,Me),onChange:Me=>sn(ae,he,Me)});case"orderList":return n.jsx(Ro,{..._e,...xe,onDone:Me=>tt(ae,he,Me),onChange:Me=>sn(ae,he,Me)});default:return null}},cn=o.useRef(void 0);o.useEffect(()=>{const ae=cn.current;if(cn.current=ze,ae===void 0||ae===ze||!Qa())return;const he=te.current;if(!he)return;const V=document.activeElement;if(!(!V||V===document.body||!he.contains(V)||V.disabled===!0))return;const ie=he.querySelector(`.training-steps ${fn.split(", ").join(", .training-steps ")}`)??Array.from(he.querySelectorAll(fn)).find(ue=>!ue.closest('[aria-hidden="true"]'));try{ie?.focus()}catch{}},[ze]);const Zt=S?ee.length>0?n.jsx("div",{className:"training-steps",children:Nt.map((ae,he)=>ht(ae,he))},`replay-${me}`):n.jsx("div",{className:"page-popup__content page-popup__content--center",children:n.jsx("div",{className:"pp-empty",children:t?.emptyMessage||P("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Mt=E?n.jsxs(tu.Provider,{value:_t,children:[et?.pageTop?n.jsx("div",{className:"training-page-top",children:et.pageTop}):null,n.jsx("div",{className:"training-steps",children:yt.map((ae,he)=>{const V=ae;return o.cloneElement(V,{...V.props,_stepIndex:he,_totalSteps:yt.length,_stepKey:`step-${he}`,_pageIndex:ze})})},`replay-${me}`),et?.pageBottom?n.jsx("div",{className:"training-page-bottom",children:et.pageBottom}):null]}):null,un=o.useCallback(()=>{let ae;if(w){const he=We,{results:V,correct:ie,total:ue}=uu(We);v2({items:_2(V),category:cu.has(w)?"sentence":"word",trainingType:w,entryPoint:N??"sentence",itemRef:A??null,correct:ie,total:ue,score:typeof he?.score=="number"?he.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-O.current)/1e3)),dailyTotal:B??null}),ae={correct:ie,total:ue,attempt:Ce.current.length+1,previousAttempts:[...Ce.current]}}Bt(),$e(()=>{typeof C=="function"&&C(ae),typeof f=="function"&&f()})},[C,f,w,N,B,A,We,Xe,$e]),Xt=o.useCallback(()=>dt(""),[dt]),dn=o.useCallback(()=>{$e(()=>{typeof f=="function"&&f()})},[f,$e]),Ae=n.jsxs("div",{className:`page-popup${He?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":wn,children:[n.jsxs("div",{ref:te,className:`page-popup__panel ${Ve?"":"page-popup__panel--measuring"} ${ve==="center"?"page-popup__panel--center":ve==="top"?"page-popup__panel--top":""}`,children:[n.jsx(Xc,{title:Yt,subtitle:S?H.subtitle||H.label:Array.isArray(s)?s.join(" / "):void 0,desc:S?void 0:r,depth:S?H.depth:s,icon:S?H.icon:i,wrapperStyle:S?H.wrapperStyle:l,iconTooltip:S?H.iconTooltip:c,progressMax:Ke,progressIndex:ze,pageIndex:ze,pageCount:Ke,onBack:dn,onClose:dn}),n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content ${ve==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:E?Mt:S?Zt:typeof h=="function"?h({registerOnNext:St,registerOnResult:xt,panelRef:te,setResultOverlay:Xe}):h})}),n.jsx(Zc,{onSettings:y,onNext:ln,onResult:an,useNoiseSettingBtn:!!(S?H.useNoiseSetting??!0:_),stepIndex:Le,stepCount:Dt,pageIndex:ze,pageCount:Ke})]}),We&&!We.isEmpty&&(D??p3)({score:We.score,results:We.results||We.answers||[],contextsLength:We.results?We.results.length:We.answers?We.answers.length:0,onReplay:()=>{if(O.current=Date.now(),We!==Mn){const{correct:ae,total:he}=uu(We);Ce.current.push({correct:ae,total:he})}if(Bt(),ne(ae=>ae+1),S){if(Ze(lr()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(E){Ze(lr());return}try{const ae=te.current&&te.current._childOnResult;typeof ae=="function"&&ae({replay:!0})}catch{}},onClose:un,pending:We===Mn}),We?.isEmpty&&n.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":P("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",children:n.jsx("div",{className:"page-popup__empty",children:P("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:un,label:P("training.result.done","\uC644\uB8CC")})})]})}),n.jsx(ta,{message:Tt,position:"top",onClose:Xt})]}),Pe=n.jsx(No.Provider,{value:se,children:Ae});return typeof document<"u"&&document.body?qt.createPortal(Pe,document.body):Pe}const Ln=m3;Ln.Page=ir,Ln.ListenStep=nu,Ln.ConfirmStep=au,Ln.ConfirmWithTextStep=ru,Ln.OrderListStep=ou,Ln.CardStep=su,Ln.CardOrderStep=s3;function h3({label:e,homonum:t}){const a=Gn()?.(e,t)??"",{imgRef:r,loading:s,hasImage:i,onLoad:l,onError:c}=fo(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 du({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 u=t.left+t.width/2-i/2,d=t.top-l-8;d<8&&(d=t.bottom+8),u=Math.max(8,Math.min(u,c-i-8)),s({left:u,top:d})},[t]),!t||e.length===0?null:qt.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(h3,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const f3=new Intl.Collator("ko");function C3({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:s,groups:i,selected:l=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:p,onPrintEmpty:m,className:f,emptyHint:C,sectionType:g="page",disc:y,notice:_}){const{t:h,i18n:v}=ge.useTranslation(),x=v.language?.startsWith("ko")??!1,{anchorRect:b,openAt:k,close:w}=qa(),[N,B]=o.useState(null),A=o.useCallback(()=>{w(),B(null)},[w]);Jg(A,!!N);const D=(r??"").trim(),$=/^[^,[\]\s]+$/.test(D)?D:"",O=$.length>0,P=r===void 0&&t===void 0,K=O?"match":P?"original":"ganada",[S,L]=o.useState(()=>K),[H,ee]=o.useState("50"),[U,q]=o.useState(1),[W,J]=o.useState(O);W!==O&&(J(O),L(K));const I=S==="match"&&!O||S==="original"&&!P?K:S,E=o.useMemo(()=>[...O?[{value:"match",label:h("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...P?[{value:"original",label:h("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:h("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:h("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:h("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:h("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:h("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:h("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[h,O,P]),F=o.useMemo(()=>["10","25","50","100"].map(we=>({value:we,label:h("wordSearch.pageSize",{count:Number(we),defaultValue:`${we}\uAC1C\uC529 \uBCF4\uAE30`})})),[h]),R=we=>we.words?.[0],T=o.useMemo(()=>{const we=[...$].length,Be=r2($),je=new Map;return se=>{let te=je.get(se);return te===void 0&&(te=Be((se.words?.[0]?.label??"").slice(0,we))?0:1,je.set(se,te)),te}},[$]),M=o.useCallback((we,Be)=>{const je=me=>R(me)?.label??"",se=me=>R(me)?.syllables??[...je(me)].length,te=me=>(me.words??[]).reduce((ne,Ce)=>{const ve=parseInt(Ce.grade??"",10);return Number.isFinite(ve)&&ve<ne?ve:ne},999);switch(I){case"match":return T(we)-T(Be)||f3.compare(je(we),je(Be));case"ganada":return je(we).localeCompare(je(Be),"ko");case"ganada_desc":return je(Be).localeCompare(je(we),"ko");case"syllable":return se(we)-se(Be)||je(we).localeCompare(je(Be),"ko");case"syllable_desc":return se(Be)-se(we)||je(we).localeCompare(je(Be),"ko");case"grade":return te(we)-te(Be)||je(we).localeCompare(je(Be),"ko");case"grade_desc":return te(Be)-te(we)||je(we).localeCompare(je(Be),"ko");default:return 0}},[I,T]),G=o.useMemo(()=>s.slice().sort(M),[s,M]),Y=Number(H)||10,Q=o.useMemo(()=>(i??[]).flatMap(we=>we.items.slice().sort(M).map(Be=>({item:Be,label:we.label}))),[i,M]),de=i?Q.length:G.length,Te=Math.max(1,Math.ceil(de/Y)),ke=Math.min(U,Te),oe=o.useMemo(()=>G.slice((ke-1)*Y,ke*Y),[G,ke,Y]),z=o.useMemo(()=>{if(!i)return null;const we=Q.slice((ke-1)*Y,ke*Y),Be=new Map;for(const{item:je,label:se}of we)Be.has(se)||Be.set(se,[]),Be.get(se).push(je);return[...Be.entries()].map(([je,se])=>({label:je,items:se}))},[i,Q,ke,Y]);o.useEffect(()=>{q(1)},[S,H,de,r]);const re=de>0?n.jsxs("div",{className:"word-search-result-block__toolbar",children:[n.jsx(nn,{size:40,options:E,value:I,onChange:L,ariaLabel:h("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),n.jsx(nn,{size:40,options:F,value:H,onChange:ee,ariaLabel:h("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),n.jsx(Ga,{page:ke,totalPages:Te,onChange:q})]}):void 0,ce=we=>{c&&c(we)},fe=t!==void 0&&a?n.jsxs(n.Fragment,{children:[h("wordSearch.resultTitlePrefix","\uCD1D "),n.jsx("span",{style:{color:"var(--color-main)"},children:t}),h("wordSearch.resultTitleSuffix",{unit:x?m2(a):a})]}):void 0,ye=t!==void 0&&t>0&&u!==void 0&&a?h("wordSearch.resultDisc",{unit:x?f2(a):a,max:u,selected:l.length}):void 0,Ne=y??(_?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"word-search-result-block__notice",children:_}),ye?n.jsx("span",{className:"word-search-result-block__disc",children:ye}):null]}):ye);return n.jsxs(aa,{type:g,icon:e,title:fe,action:re,disc:Ne,className:De("word-search-result-block",f),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:h("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),C&&n.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:C})]}),i?(z??[]).map(we=>n.jsx("div",{className:"word-search-result-block__group",children:n.jsx("div",{className:"word-search-result-block__items",children:we.items.map(Be=>{const je=l.includes(Be.id);return n.jsx("div",{onMouseEnter:se=>{k(se.currentTarget),B(Be.words??[])},onMouseLeave:A,children:n.jsx(le,{htmlType:"button",size:"word",align:"grid",label:(Be.words??[]).map(se=>se.label),subLabel:(Be.words??[]).some(se=>se.subLabel)?(Be.words??[]).map(se=>se.subLabel):void 0,selected:je,onClick:()=>ce(Be.id),minWidth:200})},Be.id)})})},we.label)):n.jsx("div",{className:"word-search-result-block__items",children:oe.map(we=>{const Be=l.includes(we.id);return n.jsx("div",{onMouseEnter:je=>{k(je.currentTarget),B(we.words??[])},onMouseLeave:A,children:n.jsx(le,{htmlType:"button",size:"word",align:"grid",label:(we.words??[]).map(je=>je.label),subLabel:(we.words??[]).some(je=>je.subLabel)?(we.words??[]).map(je=>je.subLabel):void 0,selected:Be,onClick:()=>ce(we.id),minWidth:200})},we.id)})}),N&&b&&n.jsx(du,{words:N,anchorRect:b})]}),Te>1&&n.jsx("div",{className:"word-search-result-block__pagination-bottom",children:n.jsx(Ga,{page:ke,totalPages:Te,onChange:q})}),(d||p)&&n.jsxs("div",{className:"word-search-result-block__actions",children:[d&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:h("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),p&&n.jsx("div",{onClick:l.length===0?m:void 0,children:n.jsx(le,{htmlType:"button",size:"56",type:"bar",variant:"main",label:h("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function g3(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 b3({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:s=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:p,title:m,titleIcon:f,disc:C,showInfoButton:g=!0,onClearPhoneme:y,onSearch:_,onSearchEmpty:h,searchDisabled:v=!1,searchLabel:x,searchChecking:b=!1,pairMode:k=!1,sectionType:w="page",beforeSearchContent:N,beforeContent:B,afterContent:A,hideCountControl:D=!1,ordinal:$=!1}){const{t:O}=ge.useTranslation(),P=o.useMemo(()=>O("wordPairs.infoNotes",{returnObjects:!0}),[O]),K=o.useMemo(()=>Array.from({length:s-i+1},(R,T)=>{const M=i+T;return{key:String(M),label:O("wordPairs.count",{n:M})}}),[O,s,i]),S=o.useMemo(()=>O("wordPairs.ordinals",{returnObjects:!0}),[O]),L=o.useCallback(R=>$?O("wordPairs.phonemeOrdinalLabel",{ordinal:S[R-1]??R}):a===1?O("wordPairs.phonemeSingleLabel","\uC74C\uC808"):O("wordPairs.phonemeN",{n:R}),[$,S,a,O]),H=o.useCallback(R=>$?O("wordPairs.phonemeContrastOrdinalLabel",{ordinal:S[R-1]??R}):a===1?O("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):O("wordPairs.phonemeContrast",{n:R}),[$,S,a,O]),ee=o.useCallback((R,T)=>T?n.jsxs(n.Fragment,{children:[R,n.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):R,[]),{anchorRect:U,toggleAt:q,close:W}=qa(),J=o.useCallback(R=>r(Number(R)),[r]),I=tn("(max-width: 767px)"),E=o.useCallback(R=>g3(R,e).map(({label:T,value:M,displayLabel:G})=>{const Y=!!M&&M!=="\uC5C6\uC74C";return n.jsxs("span",{className:De("phoneme-select-block__cell-jamo-part",M?"":"phoneme-select-block__cell-jamo-part--empty",Y?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[n.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${M==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:M==="\uC5C6\uC74C"?"x":M||d}),Y&&n.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:G??T})]},T)}),[e,d]),F=n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-tooltip-ignore":!0,children:n.jsx(le,{htmlType:"button",size:40,type:I?"dot":void 0,icon:"info",label:I?void 0:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:U?"is-selected":void 0,"aria-expanded":!!U,"aria-haspopup":"dialog",onClick:R=>q(R.currentTarget)})}),U&&n.jsx(Fn,{title:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:P,anchorRect:U,onClose:W})]});return n.jsxs(aa,{type:w,title:m,icon:f,disc:C,action:g?F:void 0,className:De("phoneme-select-block",p),children:[B,!D&&n.jsx("div",{className:"phoneme-select-block__controls",children:n.jsx(Sn,{options:K,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((R,T)=>{const M=t[T*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:E(M)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(T+1)})]},T)})}),n.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:O("wordPairs.phonemeSelect.vs","\uB300")}),n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((R,T)=>{const M=t[T*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:E(M)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:H(T+1)})]},T)})})]}):t.map((R,T)=>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:E(R)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(T+1)})]},T))}),(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((R,T)=>{const M=t[T*2]??{};return n.jsx(xn,{title:ee(L(T+1),T===0),sections:c?c(M,T*2):l,selected:M,onSelect:u?.(T*2),align:"newline"},T)})}),n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((R,T)=>{const M=t[T*2+1]??{};return n.jsx(xn,{title:H(T+1),sections:c?c(M,T*2+1):l,selected:M,onSelect:u?.(T*2+1),align:"newline"},T)})})]}):t.map((R,T)=>n.jsx(xn,{title:ee(L(T+1),T===0),sections:c?c(R,T):l,selected:R,onSelect:u?.(T),align:"newline"},T))})}),N&&n.jsx("div",{className:"phoneme-select-block__before-search",children:N}),(y||_||b)&&(()=>{const R=t.every(T=>Object.entries(T).every(([M,G])=>!G||M==="\uC885\uC131"&&G==="\uC5C6\uC74C"));return n.jsxs("div",{className:"phoneme-select-block__search-row",onClick:R?h:void 0,children:[y&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:O("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:R,onClick:R?void 0:y}),_?n.jsx(le,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:b?n.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:x??O("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:R||v||b,onDisabledClick:b?()=>{}:void 0,"aria-busy":b||void 0,onClick:_}):b?n.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[n.jsx("div",{className:"phoneme-select-block__spinner"}),n.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:x??O("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),A]})}function y3({title:e,sections:t,selected:a,onSelect:r,className:s}){const{t:i}=ge.useTranslation();return n.jsx(xn,{className:s,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,align:"inline"})}function v3({title:e,headerAction:t,sections:a,selected:r,onSelect:s,className:i}){const{t:l}=ge.useTranslation();return a.length===0?null:n.jsx(xn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:s,align:"newline"})}function x3({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:i,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){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")},f=_=>p("wordPairs.count",{n:_}),C=[{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:[f(1),f(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.")]})}],g={[m.searchMode]:t==="explicit"?m.explicit:t==="pick"?m.pick:m.include,[m.phonemeOrder]:r==="ordered"?m.orderMatch:m.orderAny,[m.count]:f(i),[m.inputMode]:c==="phoneme"?m.pronInput:m.charInput},y=(_,h)=>{h===m.searchMode?a(_===m.explicit?"explicit":_===m.pick?"pick":"include"):h===m.phonemeOrder?s(_===m.orderMatch?"ordered":"unordered"):h===m.count?l(_===f(2)?2:1):h===m.inputMode&&u(_===m.pronInput?"phoneme":"word")};return n.jsx(xn,{className:d,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:C,selected:g,onSelect:y,align:"inline"})}function _3(e){const{title:t,items:a,columns:r,gridTemplateColumns:s,mobileGridTemplateColumns:i,searchPlaceholder:l,searchFn:c,defaultSortKey:u,defaultSortAsc:d=!0,selectedId:p,selectedIds:m,onSelect:f,onClose:C,pageSizeOptions:g=[10,25,50,100],initialPageSize:y,emptyText:_,countLabel:h,topContent:v,className:x=""}=e,{t:b}=ge.useTranslation(),k=l??b("common.search","\uAC80\uC0C9"),w=_??b("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[N,B]=o.useState(""),[A,D]=o.useState(u??r[0]?.key??""),[$,O]=o.useState(d),[P,K]=o.useState(String(y??g[0]??10)),[S,L]=o.useState(1);o.useEffect(()=>{L(1)},[N,P]);const H=c!==null,ee=o.useCallback((M,G)=>{if(!G)return!0;const Y=G.toLowerCase();return r.some(Q=>{const de=M[Q.key];return de==null?!1:String(de).toLowerCase().includes(Y)})},[r]),U=c??ee,q=o.useMemo(()=>{const M=H?a.filter(G=>U(G,N)):a;return A?[...M].sort((G,Y)=>{const Q=G[A],de=Y[A];return Q===de?0:Kr(Q,de,$)}):M},[a,N,A,$,H,U]),W=Math.max(1,Math.ceil(q.length/Number(P)));S>W&&L(W);const J=Math.min(S,W),I=q.slice((J-1)*Number(P),J*Number(P)),E=o.useCallback(M=>{A===M?O(G=>!G):(D(M),O(!0)),L(1)},[A]),F=o.useMemo(()=>{if(typeof h=="function"){const M=q.length,G=h(M);if(typeof G=="string"){const Y=G.lastIndexOf(String(M));if(Y>=0)return{prefix:G.slice(0,Y),suffix:G.slice(Y+String(M).length)}}return{label:G}}if(typeof h=="string"&&h.includes("{n}")){const[M,G]=h.split("{n}");return{prefix:M,suffix:G}}return{prefix:b("common.totalCountPrefix","\uCD1D "),suffix:b("common.totalCountSuffix","\uAC1C")}},[h,q.length,b]),R=o.useMemo(()=>r.map(M=>({label:M.label,onClick:M.sortable!==!1?()=>E(M.key):void 0,className:M.className,sortDir:M.sortable!==!1&&A===M.key?$?"asc":"desc":null})),[r,A,$,E]),T=o.useMemo(()=>g.map(M=>({value:String(M),label:b("common.pageSizeLabel",{n:M})})),[g,b]);return n.jsxs(Tn,{className:`popup-list ${x}`,title:t,onClose:C,children:[v,"label"in F&&n.jsx("p",{className:"toolbar__count body-1",children:F.label}),n.jsx(no,{count:"label"in F?void 0:{value:q.length,prefix:F.prefix,suffix:F.suffix},search:H?{value:N,onChange:B,placeholder:k}:void 0,pageSize:{options:T,value:P,onChange:K},pagination:{page:J,total:W,onChange:L}}),n.jsx(uo,{size:"medium",gridTemplateColumns:s,mobileGridTemplateColumns:i,resizable:!0,fields:R,items:I,onRowClick:f,renderRow:M=>{const G=m!=null?M.id!=null&&m.has(M.id):p!=null&&M.id===p;return r.map(Y=>({content:Y.render?Y.render(M):M[Y.key]??"",className:De(Y.className,G&&"popup-list__row--selected")}))},empty:w})]})}function w3(e){const{title:t,message:a,topContent:r,details:s,children:i,confirmLabel:l,cancelLabel:c,hideCancel:u=!1,extraAction:d,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:f,closeOnConfirm:C=!0,onClose:g,inline:y,size:_="small",className:h,initialFocus:v="close"}=e,{t:x}=ge.useTranslation(),b=o.useRef(null);o.useEffect(()=>{if(y||v==="close")return;const D=b.current?.closest(".popup-panel"),$=Array.from(D?.querySelectorAll(".popup-footer--buttons button")??[]),O=v==="confirm"?$[$.length-1]:u?void 0:$[d?1:0];O&&!O.disabled&&O.focus()},[]);const k=o.useRef(!1),[w,N]=o.useState(!1),B=D=>{let $=!1;return{close:()=>{$=!0,D()},\uB2EB\uC558\uB098:()=>$}},A=async D=>{if(k.current)return;k.current=!0;const $=typeof document<"u"?document.activeElement:null;N(!0);let O=!1;try{O=await D()}catch(P){typeof console<"u"&&console.error(P)}finally{O||(k.current=!1,N(!1),requestAnimationFrame(()=>{const P=document.activeElement;(!P||P===document.body)&&$?.isConnected&&$.focus()}))}};return n.jsxs(Tn,{title:t,onClose:g,closeDisabled:w,inline:y,size:_,className:De("confirm-popup",h),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||w,onClick:async({closeWithAnimation:D})=>{await A(async()=>{const $=B(D);await d.onClick($.close);const O=d.closeOnClick??!0;return O&&D(),O||$.\uB2EB\uC558\uB098()})}}]:[],...u?[]:[{label:c??x("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:w,onClick:({closeWithAnimation:D})=>D()}],{label:l??x("common.confirm","\uD655\uC778"),variant:p,disabled:m||w,onClick:async({closeWithAnimation:D})=>{await A(async()=>{const $=B(D);return await f($.close),C&&D(),C||$.\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((D,$)=>n.jsx(jn,{label:D.label,children:n.jsx("span",{className:"panel-row__text body-2",children:D.value})},$))}),n.jsx("p",{ref:b,className:"body-2 confirm-popup__message",children:a}),i]})}function k3({onApply:e,onCancel:t}){const{t:a}=ge.useTranslation(),[r,s]=o.useState(""),[i,l]=o.useState(!1),[c,u]=o.useState(null),d=o.useRef(null);o.useEffect(()=>{d.current?.focus()},[]);const p=o.useCallback(async C=>{const g=r.trim();if(g){l(!0),u(null);try{await e(g),C()}catch(y){u(Xs(y)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),m=o.useCallback((C,g)=>{C.key==="Enter"&&!C.nativeEvent.isComposing&&p(g)},[p]),f=C=>{s(C.target.value),u(null)};return n.jsx(Tn,{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:C})=>C()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:C})=>{p(C)}}],children:({closeWithAnimation:C})=>n.jsxs(n.Fragment,{children:[n.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:f,onKeyDown:g=>m(g,C),disabled:i,autoComplete:"off",spellCheck:!1}),c&&n.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const A3=200;function B3(e){return e.itemId?($2()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function N3({plan:e,anchorRect:t,offset:a=12,onClose:r}){const{t:s}=ge.useTranslation(),i=o.useMemo(()=>P2(s).map(c=>({type:c,items:(e.items??[]).filter(u=>u.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:u},d)=>[d>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:u.map((p,m)=>{const f=B3(p);return f?n.jsx(mo,{index:m,type:c,trainingData:f,size:"compact",hideCheckBadge:!0},p.itemId??m):null})})]},c.key)])})});return t?n.jsx(Cn,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:s("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const pu=["var(--color-main)","var(--color-sub)"],D3=2e3;function S3(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 zo({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:s,trigger:i=0}){const l=o.useMemo(()=>{const y=Math.floor(t/2),_=t-y,h=(v,x)=>Array.from({length:v}).map((b,k)=>{const w=6+Math.random()*12,N=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),B=pu[Math.floor(Math.random()*pu.length)],A=Math.random()*300,D=(360+Math.random()*260)*r*1.2,$=(x==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,O=Math.cos($)*D,P=Math.sin($)*D*1.35,K=Math.random()*720-360,S=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),L=Math.random()>.7?"50%":"3px";return{id:`${x}-${k}`,side:x,size:N,color:B,delay:A,vx:O,vy:P,angularVel:K,life:S,borderRadius:L}});return[...h(y,"left"),...h(_,"right")]},[t,r]),c=o.useRef(null),u=o.useRef({}),d=o.useRef(null),p=o.useRef(s);o.useEffect(()=>{p.current=s},[s]);const m=o.useRef(null),f=o.useRef(null),C=()=>{if(typeof document>"u")return null;let y=document.querySelector("[data-ihab-effect-root]");return y||(y=document.createElement("div"),y.className="app-effect",y.dataset.ihabEffectRoot="",y.style.position="fixed",y.style.inset="0",y.style.pointerEvents="none",y.style.zIndex="99998",document.body.appendChild(y)),y};if(typeof document<"u"&&f.current==null&&(f.current=C()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const W=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(W)}const y=1200,_=performance.now(),h=f.current&&f.current!==document.body?f.current.getBoundingClientRect():null,v=Math.max(60,(window.innerHeight||800)*.05),x=W=>Math.max(40,(W||window.innerWidth)*.02),b=h?.width||window.innerWidth||375,k=h?.height||window.innerHeight||812,w=W=>{const J=[...W].sort((I,E)=>I-E);return J[Math.floor(J.length/2)]||1},N=w(l.map(W=>Math.abs(W.vy))),B=w(l.map(W=>Math.abs(W.vx))),A=Math.sqrt(2*y*(k*.72+v))/N,D=N*A/y,$=b*.5/(B*D),O=(W,J,I)=>Math.min(I,Math.max(J,W)),P=O(A,.8,2.4),K=O($,.7,2.2),S=a>0?a/D3:1,L=l.map(W=>({...W,life:W.life*S,vx:W.vx*K,vy:W.vy*P,startTime:_+W.delay,ended:!1})),H=h?{x:h.left-x(h.width),y:h.top+h.height+v}:{x:-x(window.innerWidth),y:window.innerHeight+v},ee=h?{x:h.left+h.width+x(h.width),y:h.top+h.height+v}:{x:window.innerWidth+x(window.innerWidth),y:window.innerHeight+v},U=W=>{let J=!1;for(const I of L){const E=u.current[I.id];if(!E||!E)continue;if(W<I.startTime){E.style.display="none",J=!0;continue}if(!I._inited){const ke=I.side==="left"?H.x:ee.x,oe=I.side==="left"?H.y:ee.y;E.style.left=`${ke}px`,E.style.top=`${oe}px`,E.style.transform="translate3d(0px, 0px, 0)",E.style.display="block",E.style.zIndex="100000",typeof I.color=="string"&&I.color.startsWith("var(")&&(E.style.background=S3(E,I.color)??"#FF0060"),I._inited=!0}const F=(W-I.startTime)/1e3;if(F<0)continue;const R=I.life/1e3;if(F>=R){E.style.opacity="0",E.style.display="none",I.ended=!0;continue}J=!0;const T=I.side==="left"?H.x:ee.x,M=I.side==="left"?H.y:ee.y,G=T+I.vx*F,Y=M+I.vy*F+.5*y*F*F,Q=(I.angularVel||0)*F,de=G-T,Te=Y-M;E.style.transform=`translate3d(${de}px, ${Te}px, 0) rotate(${Q}deg)`,E.style.opacity=`${Math.max(0,1-F/R)}`}J?d.current=requestAnimationFrame(U):p.current?.()};d.current=requestAnimationFrame(U);const q=setTimeout(()=>{try{if((f.current?f.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const W=document.createElement("div");W.className="party-container",W.style.position="fixed",W.style.inset="0",W.style.pointerEvents="none",W.style.overflow="visible",W.style.zIndex="2147483647";for(const J of l){const I=document.createElement("span");I.className=`confetti confetti--${J.side}`,I.setAttribute("aria-hidden","true"),I.style.display="none",I.style.position="fixed",I.style.left="0px",I.style.top="0px",I.style.width=`${J.size}px`,I.style.height=`${Math.max(4,J.size*.6)}px`,I.style.background=J.color,I.style.borderRadius=J.borderRadius,I.style.transform="translate3d(0,0,0)",I.style.opacity="0",W.appendChild(I),u.current[J.id]=I}(document.body||f.current).appendChild(W),m.current=W}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(q),m.current){try{m.current.remove()}catch{}m.current=null}}},[e,a,i,l]),!e)return null;const g=n.jsx("div",{className:"party-container",ref:c,children:l.map(y=>n.jsx("span",{"aria-hidden":!0,ref:_=>{u.current[y.id]=_},className:`confetti confetti--${y.side}`,style:{width:`${y.size}px`,height:`${Math.max(4,y.size*.6)}px`,background:y.color,borderRadius:y.borderRadius}},`${y.id}-${i}`))});return typeof document<"u"?qt.createPortal(g,f.current||document.body):g}const Wo=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function E3({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(u=>({n:(u?.n??0)+1,count:Wo(c.count),strength:Wo(c.strength),duration:Wo(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(zo,{active:t,trigger:e}),a&&n.jsx(zo,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function T3({title:e,sub:t,rightAction:a,titleAction:r,badge:s,badgeVariant:i="default",documentTitle:l,onBack:c,backLabel:u,wrap:d=!1}){const{t:p}=ge.useTranslation();Pg(typeof e=="string"?e:l??null);const m=u??p("common.back","\uB4A4\uB85C");return n.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[n.jsxs("div",{className:"page-title__main",children:[n.jsxs("div",{className:"page-title__title-row",children:[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(mt,{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 j3(e){return e??""}const mu=o.createContext({words:[],loading:!1});function M3(){return o.useContext(mu)}function L3({words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return n.jsx(mu.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u},children:d})}function $3({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,u)=>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})]},u))}),t&&n.jsx("div",{className:"summary-strip__actions",children:t})]})})}const R3=(e,t)=>`${e} / ${t}`;function P3({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:s=R3,pageWidth:i,pageHeight:l,margin:c,className:u,style:d}){const{t:p}=ge.useTranslation(),m=o.useRef(null),f=o.useRef(null),C=o.useRef(null),g=o.useRef(null),[y,_]=o.useState(null),[h,v]=o.useState(!1);o.useEffect(()=>{const S=m.current;if(!S)return;const L=()=>v(S.scrollWidth>S.clientWidth+1);if(L(),typeof ResizeObserver>"u")return;const H=new ResizeObserver(L);return H.observe(S),()=>H.disconnect()},[y]);const x=e.map(S=>`${S.id}\0${S.section??""}\0${S.group??""}`).join(""),b=y&&y.shape===x?y.pages:null,[k,w]=o.useState(0);o.useEffect(()=>{const S=g.current;if(!S||typeof ResizeObserver>"u")return;const L=new ResizeObserver(()=>w(S.offsetHeight));return L.observe(S),()=>L.disconnect()},[]);const[N,B]=o.useState(0);o.useEffect(()=>{const S=f.current;if(!S||typeof ResizeObserver>"u")return;let L=null;const H=typeof requestAnimationFrame=="function"?q=>requestAnimationFrame(q):q=>setTimeout(q,16),ee=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:q=>clearTimeout(q),U=new ResizeObserver(()=>{L==null&&(L=H(()=>{L=null,B(q=>q+1)}))});return Array.from(S.children).forEach(q=>U.observe(q)),()=>{U.disconnect(),L!=null&&ee(L)}},[x]),o.useLayoutEffect(()=>{const S=f.current,L=g.current;if(!S||!L)return;const H=R=>R.getBoundingClientRect().height||R.offsetHeight,ee=new Map;C.current?.querySelectorAll("[data-chrome-section]").forEach(R=>{ee.set(R.dataset.chromeSection??"",H(R))});const U=R=>H(L)-(ee.get(R??"")??0),q=Array.from(S.children).map(R=>H(R)),W=[];e.forEach((R,T)=>{const M=W[W.length-1],G=M?e[M[0]]:void 0;G&&R.group!=null&&G.group===R.group&&G.section===R.section?M.push(T):W.push([T])});const J=[];let I=[],E=0;const F=()=>{I.length&&J.push(I),I=[],E=0};W.forEach(R=>{const T=R.reduce((G,Y)=>G+q[Y],0),M=U(e[R[0]].section);I.length&&e[I[0]].section!==e[R[0]].section&&F(),T>M?R.forEach(G=>{I.length&&E+q[G]>M+.01&&F(),I.push(G),E+=q[G]}):(I.length&&E+T>M+.01&&F(),R.forEach(G=>I.push(G)),E+=T)}),F(),_(R=>R&&R.shape===x&&JSON.stringify(R.pages)===JSON.stringify(J)?R:{shape:x,pages:J})},[x,k,i,l,c,N]);const A=eo,D=A,$=r??n.jsxs(n.Fragment,{children:[n.jsx("img",{src:D,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),O=(S,L,H)=>({header:n.jsxs("div",{className:"report-doc__header",children:[n.jsx("h2",{className:"report-doc__title h3b",children:H!=null&&t?.[H]||null}),a]}),footer:n.jsxs("div",{className:"report-doc__footer caption-1",children:[n.jsx("span",{className:"report-doc__footer-left",children:$}),n.jsx("span",{className:"report-doc__page-no",children:s(S,L)})]})}),P=Array.from(new Set(e.map(S=>S.section??""))),K={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...d};return n.jsxs("div",{ref:m,className:De("report-doc",u),style:K,tabIndex:h?0:void 0,role:h?"group":void 0,"aria-label":h?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:g,className:"report-doc__ruler"}),n.jsx("div",{ref:C,children:P.map(S=>{const L=O(1,1,S||void 0);return n.jsxs("div",{"data-chrome-section":S,children:[L.header,L.footer]},S)})}),n.jsx("div",{ref:f,className:"report-doc__measure-blocks",children:e.map(S=>n.jsx("div",{children:S.content},S.id))})]}),b&&n.jsx("div",{className:"report-doc__pages",children:b.map((S,L)=>{const{header:H,footer:ee}=O(L+1,b.length,e[S[0]].section);return n.jsxs("section",{className:"report-doc__page",children:[H,S.map(U=>n.jsx("div",{children:e[U].content},e[U].id)),ee]},L)})})]})}function I3({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 F3=12;function O3(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=O3(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+F3)}}}function H3(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 V3({title:e,message:t,actionLabel:a,onAction:r,icon:s,onClose:i,className:l=""}){const{t:c}=ge.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8"),d=o.useRef(null),p=o.useRef(!1);return o.useLayoutEffect(()=>{const m=d.current,f=m?.parentElement?.closest(".update-alert-stack")??m,C=f?H3(f):null;return()=>{C?.(),p.current&&m&&m.contains(document.activeElement)&&Va(m)}},[]),n.jsxs("div",{ref:d,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(rs,{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:u})]})}function z3({title:e,description:t,topActions:a,children:r,footerLeft:s,footerRight:i,onClick:l,draggable:c,onDragStart:u,onDragEnd:d,className:p}){const m=s!=null||i!=null,f=r!=null&&r!==!1,C=o.useCallback(g=>{l&&g.target===g.currentTarget&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),l())},[l]);return n.jsxs("div",{className:De("training-card",l?"training-card--clickable":"",p),onClick:l,onKeyDown:l?C:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:c,onDragStart:u,onDragEnd:d,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:g=>g.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:" "})]}),f&&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 W3({title:e,count:t,collapsed:a=!1,onToggle:r,sort:s,actions:i,empty:l=!1,emptyContent:c,dragOver:u=!1,onDragOver:d,onDragLeave:p,onDrop:m,children:f,className:C}){const{t:g}=ge.useTranslation(),y=r!=null,_=De("training-card-group",u&&"training-card-group--dragover",a&&"training-card-group--collapsed",y&&"training-card-group--collapsible",C);return n.jsxs("div",{className:_,onDragOver:d,onDragLeave:p,onDrop:m,children:[n.jsxs("header",{className:"training-card-group__header",children:[y&&n.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?g("common.expand","\uD3BC\uCE58\uAE30"):g("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:h=>h.stopPropagation(),children:[s&&n.jsx(nn,{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:f}))]})}const q3="speechear:saved_word_tables";function U3(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 G3(){try{const e=localStorage.getItem(q3);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(U3):[]}catch{return[]}}function hu(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 qo(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function K3(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 Y3({title:e,titleIcon:t,disc:a,items:r,onSaveComplete:s,onLoad:i,onRemoveItem:l,onReset:c,resetLabel:u,saveButtonLabel:d,secondarySaveButtonLabel:p,onReorder:m,showCellCount:f,onAddItem:C,className:g,renderSavePopup:y,renderWordSearch:_,hideControls:h,saveOnly:v,tableName:x,nameValue:b,onNameChange:k,descriptionValue:w,onDescriptionChange:N,namePlaceholder:B,descriptionPlaceholder:A,existingNames:D,editingName:$,onCancel:O}){const{t:P}=ge.useTranslation(),K=u??P("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),S=r===void 0,L=!!k,[H,ee]=o.useState([]),U=(b??"").trim(),q=U||(B??"").trim(),W=(w??"").trim()||(A??"").trim(),J=(D??[]).map(Ae=>Ae.trim().toLowerCase()),I=[$?.trim().toLowerCase(),...H].filter(Ae=>!!Ae),E=[...J];for(const Ae of I){const Pe=E.indexOf(Ae);Pe!==-1&&E.splice(Pe,1)}const F=U!==""&&E.includes(U.toLowerCase()),[R,T]=o.useState(Array(4).fill(null)),[M,G]=o.useState(4),[Y,Q]=o.useState(null),de=R.slice(0,M),[Te,ke]=o.useState("landscape"),[oe,z]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[re,ce]=o.useState("\uD45C\uC2DC"),[fe,ye]=o.useState(!0),[Ne,we]=o.useState(!0),Be=o.useRef(null),je=o.useRef([]),[se,te]=o.useState(8),[me,ne]=o.useState("right"),[Ce,ve]=o.useState(!1),[Ye,He]=o.useState(!1),{toastMessage:Ue,toastType:Se,showWarning:Ge,clearToast:$e}=al("warning"),Ie=o.useCallback(()=>Q(null),[Q]);C&&!S&&!f&&kn("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[Ve,at]=o.useState(()=>Math.max(r?.length??1,1)),ot=S?M:f?Math.max(Ve,r?.length??1,1):Math.max(r?.length??0,1),{width:We,height:Xe}=ra[Te],gt=!S&&!f,Bt=r?.length??0,Tt=Math.min(se,Math.max(Bt,1)),dt=gt?Tt:ot,Qe=gt?sc(r??[],dt):null,Ze=!!Qe&&Qe.length>1,Oe=S?de.some(Ae=>Ae!==null&&Ae.length>1):(r??[]).some(Ae=>(Ae.words??[]).length>1),rt=x?.trim()||`${oi(ga())} ${Oe?P("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):P("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,et=o.useCallback(()=>Ze?je.current.filter(Ae=>Ae!==null):Be.current?[Be.current]:[],[Ze]),{print:yt,openNewWindow:ze,downloadHtml:it}=_o({getElements:et,paperW:We,paperH:Xe,fileName:rt,onPopupBlocked:()=>{Ge(P("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."))}}),Nt=Ae=>{G(Ae),T(Pe=>Pe.length>=Ae?Pe:[...Pe,...Array(Ae-Pe.length).fill(null)]),Q(null)},Dt=Ae=>{T(Pe=>{const ae=[...Pe];return ae[Ae]=null,ae}),Y===Ae&&Q(null)},Le=Ae=>{if(Y===null)return;const Pe=Y;T(he=>{const V=[...he];return V[Pe]=Ae.length>0?Ae:null,V});const ae=de.findIndex((he,V)=>V>Pe&&he===null);Q(ae!==-1?ae:null)},Ke=S?de.some(Ae=>Ae?.some(Pe=>!!Pe.colloquialPronunciation)):(r??[]).some(Ae=>(Ae.words??[]).some(Pe=>!!Pe.colloquialLabel)),St=o.useMemo(()=>Gn()?S?R.slice(0,M).flatMap(Ae=>(Ae??[]).map(Pe=>[Pe.word,Pe.homonum])):(r??[]).flatMap(Ae=>(Ae.words??[]).map(Pe=>[Pe.label,Pe.homonum])):[],[S,R,M,r]),[xt,jt]=o.useState(!1);o.useEffect(()=>{if(St.length===0)return;let Ae=!1;return Promise.all(St.map(([Pe,ae])=>Gs(Pe,ae))).then(Pe=>{Ae||jt(Pe.some(Boolean))},()=>{}),()=>{Ae=!0}},[St]);const sn=St.length>0&&xt,tt=o.useMemo(()=>[...S||f?[{label:P("wordTable.filter.columns","\uCE78 \uC218"),items:Dy.map(Ae=>({value:`${Ae}\uCE78`,displayLabel:P("wordTable.filter.column",{count:Ae})})),display:"segmented"}]:[],...gt&&(r?.length??0)>0?[xc(P,{hasPairs:Oe,itemCount:Bt})]:[],...Ze?[wc(P)]:[]],[P,S,f,gt,r?.length,Oe,Bt,Ze]),Kt={...S||f?{[P("wordTable.filter.columns","\uCE78 \uC218")]:`${ot}\uCE78`}:{},...gt&&(r?.length??0)>0?{[P(Oe?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Tt}\uAC1C`}:{},...Ze?{[P("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:kc[me]}:{}},_n=(Ae,Pe)=>{Pe===P("wordTable.filter.columns","\uCE78 \uC218")?S?Nt(parseInt(Ae)):at(parseInt(Ae)):Pe===P(Oe?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?te(_c(parseInt(Ae),Bt)):Pe===P("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&ne(Ac(Ae))},_t=S?K3(de.filter(Ae=>Ae!==null&&Ae.length>0).map(Ae=>({id:qo(Ae),words:Ae.map(hu)}))):r??[],zt=()=>{S&&T(Ae=>Ae.length>M?Ae.slice(0,M):Ae)},Jt=(Ae=!1)=>{if(He(Ae),L&&s){const Pe=q.trim().toLowerCase();Pe&&ee(ae=>ae.includes(Pe)?ae:[...ae,Pe]),s(q,_t,W||void 0,Ae),zt();return}if(v&&s){s("",_t,void 0,Ae),zt();return}if(s){ve(!0);return}it()},[an,ln]=o.useState(!1),[Qt,wn]=o.useState(""),Yt=Qt.trim(),ht=Yt!==""&&J.includes(Yt.toLowerCase()),cn=()=>{wn(q?P("wordTable.save.copyName",{name:q,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),ln(!0)},Zt=()=>{!Yt||ht||!s||(s(Yt,_t,W||void 0,!0),zt(),ln(!1))},Mt=_t.length===0,un=Mt||L&&(q===""||F),Xt=()=>{if(Mt){Ge(P("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(L&&q===""){Ge(P("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}L&&F&&Ge(P("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},dn=n.jsx(oa,{items:_t,orientation:Te,contentTypes:oe,cutLine:re,showOutline:fe,showDivLine:Ne,count:ot});return n.jsxs(n.Fragment,{children:[n.jsxs(aa,{type:"page",icon:t,title:e,disc:a,className:De("word-table-block",g),children:[an&&n.jsx(Tn,{size:"small",title:p??P("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>ln(!1),footer:({closeWithAnimation:Ae})=>n.jsxs(n.Fragment,{children:[n.jsx(le,{htmlType:"button",size:48,type:"bar",label:P("common.cancel","\uCDE8\uC18C"),onClick:Ae}),n.jsx(le,{htmlType:"button",size:48,type:"bar",variant:"main",label:P("common.save","\uC800\uC7A5"),disabled:!Yt||ht,onClick:Zt})]}),children:n.jsx(Vn,{label:P("wordTable.save.nameLabel","\uC774\uB984"),value:Qt,onChange:wn,placeholder:P("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:Zt,error:ht?P("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Ce&&s&&y?.({defaultName:typeof e=="string"?e:P("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:dn,previewW:We,previewH:Xe,items:_t,existingNames:G3().map(Ae=>Ae.name),saveAsNew:Ye,onSave:(Ae,Pe)=>{s(Ae,_t,Pe,Ye),zt(),ve(!1)},onCancel:()=>ve(!1)}),(S||C)&&Y!==null&&_?.({cellIndex:Y,onConfirm:S?Le:Ae=>{if(C){const Pe=Ae[0];if(Pe){const ae=new Set((r??[]).map(V=>V.id));let he=qo([Pe]);for(let V=2;ae.has(he);V++)he=`${qo([Pe])}~${V}`;C({id:he,words:[hu(Pe)]})}}Q(null)},onClose:Ie}),!h&&n.jsx(yo,{hasImage:sn,hasColloquial:Ke,contentTypes:oe,orientation:Te,showOutline:fe,cutLine:re,showDivLine:Ne,setters:{setContentTypes:z,setOrientation:ke,setShowOutline:ye,setCutLine:ce,setShowDivLine:we},showCutLine:(gt?dt:ot)>1,showDivLine2:Oe,middleSections:tt,extraSelected:Kt,onExtraSelect:_n}),Ze&&Qe?n.jsx("div",{className:"word-table-block__pages",children:Qe.map((Ae,Pe)=>n.jsx(oa,{orientation:Te,contentTypes:oe,cutLine:re,showOutline:fe,showDivLine:Ne,count:dt,items:Ae,onRemoveItem:l,onReorder:m&&((ae,he)=>m(ae+Pe*dt,he+Pe*dt)),contentRef:ae=>{je.current[Pe]=ae},pageNumber:{current:Pe+1,total:Qe.length},pageNumberPosition:me},Pe))}):n.jsx(oa,{orientation:Te,contentTypes:oe,cutLine:re,showOutline:fe,showDivLine:Ne,count:ot,items:S?void 0:r??[],editCells:S?de:void 0,activeCell:Y,onActivateCell:S||C?Q:void 0,onRemoveCell:S?Dt:void 0,onRemoveItem:S?void 0:l,onReorder:S?void 0:m,showFillerAdd:!!C,contentRef:Be}),L&&!h&&n.jsxs(sr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[n.jsx(jn,{variant:"custom",label:P("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:n.jsx(Vn,{required:!0,value:b??"",onChange:k,placeholder:B?B+P("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):P("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:P("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:F?P("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:Ae=>{(Ae.key==="Tab"&&!Ae.shiftKey||Ae.key===" ")&&!(b??"").trim()&&(B??"").trim()&&(Ae.preventDefault(),k?.(B??""))}})}),n.jsx(jn,{variant:"custom",label:P("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:n.jsx(Vn,{value:w??"",onChange:N,placeholder:A?A+P("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):P("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:P("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:Ae=>{(Ae.key==="Tab"&&!Ae.shiftKey||Ae.key===" ")&&!(w??"").trim()&&(A??"").trim()&&(Ae.preventDefault(),N?.(A??""))}})})]})]}),!h&&n.jsxs("div",{className:"word-table-block__actions",children:[n.jsxs("div",{className:"word-table-block__actions-left",children:[!v&&c&&n.jsx(le,{htmlType:"button",size:40,type:"bar",label:K,onClick:c}),!v&&i&&n.jsx(le,{htmlType:"button",size:40,type:"bar",label:P("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!v&&n.jsx(le,{htmlType:"button",size:40,type:"bar",label:P("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:ze})]}),n.jsxs("div",{className:"word-table-block__actions-right",children:[O&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:P("common.cancel","\uCDE8\uC18C"),onClick:O}),!v&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:P("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:yt}),p&&n.jsx(le,{htmlType:"button",size:"56",type:"bar",label:p,onClick:()=>L?cn():Jt(!0),disabled:Mt,onDisabledClick:()=>{Ge(P("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:d??P("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Jt(!1),disabled:un,onDisabledClick:Xt})]})]}),n.jsx(ta,{message:Ue,type:Se,onClose:$e})]})}function fu({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 u=e[c];return u?n.jsx("div",{className:"word-table-thumb__cell",children:(u.words?.length?u.words:[{label:u.id}]).map((d,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:d.label})]},p))},c):n.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function Z3({items:e,name:t,description:a,createdAt:r,published:s,publishedLabel:i,shared:l,sharedLabel:c,isNew:u,publisherName:d,publishedAt:p,likeCount:m,downloadCount:f,onPublisherClick:C,selected:g,onClick:y,onMore:_,titleNode:h,className:v}){const{t:x}=ge.useTranslation(),b=h!=null,k=d!=null||p!=null||m!=null||f!=null,w=N=>{N.target===N.currentTarget&&!b&&(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),y?.())};return n.jsxs("div",{className:De("word-table-button",g?"word-table-button--selected":"",k?"":"word-table-button--no-footer",v),role:"button",tabIndex:0,"aria-label":t,onClick:b?void 0:y,onKeyDown:w,children:[u&&n.jsx("span",{className:"word-table-button__new-dot","aria-label":x("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),n.jsx(fu,{items:e,className:"word-table-button__thumb"}),n.jsxs("div",{className:"word-table-button__info",children:[n.jsxs("div",{className:"word-table-button__info-text",children:[h??n.jsx("div",{className:"word-table-button__title h4",children:t}),a&&n.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),_&&!b&&n.jsx(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:N=>{N.stopPropagation(),_(N)}})]}),(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?ri(r,x):""}),n.jsxs("span",{className:"word-table-button__badges",children:[s&&n.jsx(mt,{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(mt,{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:[d&&n.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:N=>{N.stopPropagation(),C?.()},children:d}),p&&n.jsx("span",{className:"training-card__date body-4",children:ri(p,x)})]}),n.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&n.jsx(mt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m)}),f!=null&&n.jsx(mt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(f)})]})]})]})}/**
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(w&&u(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 Q3=[["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"}]],e7=X("circle-x",Q3);function t7(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Uo({icon:e,label:t,state:a,pct:r,subText:s}){const{t:i}=ge.useTranslation(),l=a==="done",c=a==="pending",u=a==="error",d=l?100:r??0;return n.jsxs("div",{className:"wdup-phase-card",children:[n.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":u?" wdup-phase-card__icon--error":""}`,children:l?n.jsx(ls,{size:22,color:"white",strokeWidth:2.5}):u?n.jsx(e7,{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(mt,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):u?n.jsx(mt,{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":u?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||u?`${u?100:d}%`:void 0}})})]})]})}function n7({title:e,progress:t,onDone:a,onRetry:r,onClose:s,inline:i}){const{t:l}=ge.useTranslation(),{phase:c,error:u,wordCount:d,imagePage:p,imageDone:m,imageTotal:f,pairPercent:C}=t,g=t7(c),b=c==="done",_=!!u;function h(N){return _&&g===N?"error":g>N?"done":g===N?"active":"pending"}const v=h(1),x=h(2),y=h(3),k=c==="image-match"&&f?Math.round((m??0)/f*100):void 0,w=o.useMemo(()=>{if(x!=="done"){if(c==="image-list")return l("wordData.checkingPage",{page:p??1});if(c==="image-match"&&f)return l("wordData.imageCount",{done:Rr(m),total:Rr(f)})}},[x,c,p,f,m,l]);return n.jsx(Tn,{inline:i,className:"popup--word-data-update",title:e,footer:_&&r?n.jsx(le,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):_?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:!b,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:n.jsxs("div",{className:"wdup-cards",children:[n.jsx(Uo,{icon:n.jsx(as,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:v,subText:v==="active"?l("wordData.downloadingCount",{n:Rr(d)}):void 0}),n.jsx(Uo,{icon:n.jsx(J3,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:x,pct:k,subText:w}),n.jsx(Uo,{icon:n.jsx(ss,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:y,pct:y==="active"?C??0:void 0,subText:void 0})]})})}function a7({enabled:e=!1,renderResultPopup:t}={}){const{t:a}=ge.useTranslation(),[r,s]=o.useState(null),[i,l]=o.useState(null),c=C=>{let g=null;C==="noise"?g={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}]}:C==="short"?g={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}]}:C==="long"?g={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}]}:C==="order"&&(g={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(g),s(C)},u=o.useCallback(()=>{s(null),l(null)},[]),d=o.useCallback(()=>c("noise"),[]),p=o.useCallback(()=>c("short"),[]),m=o.useCallback(()=>c("long"),[]),f=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:d,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:f,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&i?t?.({score:i.score,contextsLength:i.contextsLength,results:i.results,onReplay:u,onClose:u}):null]}):null}exports.Accordion=ab,exports.ActionCard=q2,exports.Alert=Kb,exports.AppHeader=cb,exports.AudioMeter=lo,exports.AudioPlayer=To,exports.Avatar=t4,exports.Badge=mt,exports.BarChart=I4,exports.BarChartControls=Il,exports.Board=h4,exports.BottomNav=ol,exports.BrandIdentity=ul,exports.Breadcrumb=r4,exports.BulkBar=N4,exports.Button=le,exports.CORE_VERSION=F2,exports.Calendar=ay,exports.CardStep=su,exports.ChartLegend=ao,exports.ChartSection=ro,exports.ChartTotal=Za,exports.Checkbox=Ml,exports.ChoiceChips=i5,exports.CircleBadge=Wb,exports.CodeBox=A4,exports.ColorPicker=c4,exports.CompanyMeta=v4,exports.ConfirmPopup=w3,exports.ConfirmStep=au,exports.ConfirmWithTextStep=ru,exports.ContrastFilterPanel=x3,exports.CoreScope=U2,exports.CountTile=u4,exports.CouponInputPopup=k3,exports.DEFAULT_NOISE_SETTINGS=ja,exports.DatePicker=T4,exports.DebugResultLauncher=a7,exports.DescriptionTooltip=Fn,exports.DeviceSideTable=ey,exports.Dialog=m4,exports.Divider=qb,exports.Dropdown=nn,exports.EffectPartyPopper=zo,exports.EffectPartyPopperHost=E3,exports.EmptyState=z2,exports.ErrorState=W2,exports.FILTER_ALL_VALUE=rn,exports.FileUpload=a4,exports.FilterPanel=xn,exports.FilterSectionInfo=Aa,exports.Footer=l5,exports.Header=dl,exports.Icon=qe,exports.IconGridMenu=s5,exports.IconRenderer=qe,exports.InfoTooltip=Dn,exports.LEVEL_MAX=ia,exports.LandingBottomSticky=u5,exports.LandingHeader=c5,exports.ListPopup=_3,exports.ListenStep=nu,exports.Loader=Da,exports.MARKS=tc,exports.MARK_ICON=ac,exports.MARK_VARIANT=rc,exports.MediaQueryOverrideContext=hi,exports.MenuTooltip=_a,exports.NOISE_RATIO_MAX=Sa,exports.NOISE_RATIO_STEP=Mc,exports.NoisePlayerContext=No,exports.NoiseSettingsTooltip=Yc,exports.NoticeBox=G2,exports.OrderListStep=ou,exports.PASS_CARD_BG_VARS=Hn,exports.POS_LABEL=ic,exports.PROMO_BANNER_BG_COMPONENTS=Ki,exports.PROMO_BANNER_BG_OPTIONS=$g,exports.PROMO_BANNER_BG_VARS=ya,exports.Page=ir,exports.PageTitle=T3,exports.Pagination=Ga,exports.Panel=sr,exports.PanelGrid=z5,exports.PanelRow=jn,exports.PanelRowDevice=V5,exports.PassCard=xl,exports.PassCardBg=Ob,exports.PassCardBgIHAB=Hb,exports.PassCardBgLeftColorGrid=Vb,exports.PassCardBgTwoCircle=Cl,exports.PaymentPlan=Fb,exports.PersonCard=f4,exports.PhonemeFilterPanel=v3,exports.PhonemeSelectBlock=b3,exports.Popup=Tn,exports.ProgressBar=q4,exports.ProgressIndicator=Kl,exports.PromoBanner=eb,exports.PromoBannerBgDark=Mi,exports.PromoBannerBgDeep=Ni,exports.PromoBannerBgDiagonal=Pi,exports.PromoBannerBgDots=Fi,exports.PromoBannerBgInstagram=Gi,exports.PromoBannerBgMain=xi,exports.PromoBannerBgNaver=qi,exports.PromoBannerBgOutline=Hi,exports.PromoBannerBgRadial=$i,exports.PromoBannerBgSoft=wi,exports.PromoBannerBgSoftSub=Si,exports.PromoBannerBgSub=Ai,exports.PromoBannerBgSuccess=zi,exports.PromoBannerBgWarm=Ti,exports.PublicationCard=g4,exports.Radio=Al,exports.RadioGroup=Ub,exports.Rating=s4,exports.ReportDocument=P3,exports.ReportInfoPanel=I3,exports.RingChart=O4,exports.SENTENCE_TRAINING_TYPES=wo,exports.SearchSummary=Xb,exports.Section=aa,exports.SectionHeader=y4,exports.SegmentedControl=Sn,exports.ShortcutBadge=kl,exports.SideNav=cl,exports.Slider=Wl,exports.SoundCompass=zb,exports.SplashLogo=b4,exports.StatChart=H4,exports.SummaryStrip=$3,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=A3,exports.Table=uo,exports.TableFilterPanel=yo,exports.Tabs=Jb,exports.TextBoxTooltip=or,exports.TextField=Vn,exports.Timeline=C4,exports.Toast=ta,exports.Toggle=jl,exports.Toolbar=no,exports.Tooltip=Cn,exports.TooltipInfo=Dn,exports.TooltipTextBox=or,exports.TopBanner=tb,exports.TrainingBlock=ly,exports.TrainingBlockButton=mo,exports.TrainingCard=z3,exports.TrainingCardGroup=W3,exports.TrainingPagePopup=Ln,exports.TrainingPagePopupBottom=Zc,exports.TrainingPagePopupTitle=Xc,exports.TrainingResultPopup=lu,exports.TrainingStep=zn,exports.TrainingStepAudioPlayer=To,exports.TrainingStepBullet=Hc,exports.TrainingStepCard=qc,exports.TrainingStepConfirm=Mo,exports.TrainingStepConfirmWithText=Lo,exports.TrainingStepListen=$o,exports.TrainingStepOrderList=Ro,exports.TrainingStepTextBox=Wc,exports.TrainingStepTitle=zc,exports.TrainingTooltip=N3,exports.TrainingWordCard=Co,exports.UpdateAlert=V3,exports.WAVE_A_MAX=x5,exports.WAVE_H1_PX=Ic,exports.WAVE_HMAX_PX=v5,exports.WORD_TABLE_PAPER=ra,exports.WORD_TYPE_LABEL=lc,exports.WordDataProvider=L3,exports.WordDataUpdatePopup=n7,exports.WordImageTooltip=du,exports.WordSearchFilterPanel=y3,exports.WordSearchResultBlock=C3,exports.WordTable=oa,exports.WordTableBlock=Y3,exports.WordTableButton=Z3,exports.WordTablePopup=jy,exports.WordTableThumbnail=fu,exports.buildMonthChartData=M4,exports.cellKey=Oy,exports.cellLabel=Fy,exports.cellsForLabels=Jy,exports.clearPassCardBgTheme=yn,exports.clearPromoBannerBgTheme=Rt,exports.closeTrainingPopup=K5,exports.companyTypeLabel=j3,exports.createTrainingScenario=X5,exports.cx=De,exports.deriveNoiseContexts=a3,exports.derivePassCard=ml,exports.draftValues=r5,exports.effectiveNoiseVolume=Ao,exports.effectiveSpeechVolume=$c,exports.expandSlashLabel=bo,exports.formatDuration=Qy,exports.getControlDateRange=F4,exports.getPayloadTimestamp=Fo,exports.getPromoBannerBgTheme=Ur,exports.getSelectedFromPayload=Q5,exports.getSelectedText=e3,exports.getStepPayload=eu,exports.getSteppedPayload=t3,exports.injectPassCardBgTheme=bn,exports.injectPromoBannerBgTheme=$t,exports.isSelectionCorrect=n3,exports.labelOfCellKey=Tc,exports.labelsForSave=Iy,exports.levelToPct=d5,exports.markAfterClick=nc,exports.marksForSave=go,exports.mergeNoiseSettings=Ta,exports.missesByType=Ky,exports.nextFocus=Wy,exports.nextMisses=Gy,exports.noiseElementVolume=Bo,exports.noiseRatioOf=Ea,exports.pageStartIndexes=oc,exports.passCardBgIhabTheme=_l,exports.passCardBgLeftColorGridTheme=wl,exports.passCardBgTwoCircleTheme=fl,exports.pctToLevel=p5,exports.printWordTable=hy,exports.promoBannerBgDarkTheme=ji,exports.promoBannerBgDeepTheme=Bi,exports.promoBannerBgDiagonalTheme=Ri,exports.promoBannerBgDotsTheme=Ii,exports.promoBannerBgInstagramTheme=Ui,exports.promoBannerBgMainTheme=vi,exports.promoBannerBgNaverTheme=Wi,exports.promoBannerBgOutlineTheme=Oi,exports.promoBannerBgRadialTheme=Li,exports.promoBannerBgSoftSubTheme=Di,exports.promoBannerBgSoftTheme=_i,exports.promoBannerBgSubTheme=ki,exports.promoBannerBgSuccessTheme=Vi,exports.promoBannerBgWarmTheme=Ei,exports.recommendTables=Zy,exports.regenerateUnpinned=a5,exports.removeItem=n5,exports.resolveTrainingItems=Z5,exports.resolveTrainingPopupMeta=Qc,exports.reviewCells=Ly,exports.reviewMeta=Py,exports.reviewSetPlan=Yy,exports.reviewTableName=Ry,exports.scoreKey=tr,exports.scoreSheetHeader=Hy,exports.shouldConfirmDiscard=my,exports.splitTrainingVariants=Y5,exports.summarize=py,exports.summarizeMisses=Uy,exports.tableTrends=zy,exports.toDraft=e5,exports.toTrainingText=J5,exports.togglePin=t5,exports.uncoveredLabels=Xy,exports.useAnchoredMenu=xa,exports.useBarChartControl=Pl,exports.useCalendarMonth=Ll,exports.useComboboxSuggestions=Sl,exports.useFitScale=uc,exports.useNoisePlayer=ar,exports.useSoundCompassExam=Qg,exports.useToastLifecycle=Ul,exports.useWordData=M3,exports.useWordTableDisplaySettings=Sc,exports.useWordTablePrint=_o,exports.waveBarPx=Ma,exports.waveBarVal=So,exports.weakItems=Vy;
1016
+ */const Q3=[["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"}]],e7=X("circle-x",Q3);function t7(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Uo({icon:e,label:t,state:a,pct:r,subText:s}){const{t:i}=ge.useTranslation(),l=a==="done",c=a==="pending",u=a==="error",d=l?100:r??0;return n.jsxs("div",{className:"wdup-phase-card",children:[n.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":u?" wdup-phase-card__icon--error":""}`,children:l?n.jsx(ls,{size:22,color:"white",strokeWidth:2.5}):u?n.jsx(e7,{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(mt,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):u?n.jsx(mt,{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":u?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||u?`${u?100:d}%`:void 0}})})]})]})}function n7({title:e,progress:t,onDone:a,onRetry:r,onClose:s,inline:i}){const{t:l}=ge.useTranslation(),{phase:c,error:u,wordCount:d,imagePage:p,imageDone:m,imageTotal:f,pairPercent:C}=t,g=t7(c),y=c==="done",_=!!u;function h(N){return _&&g===N?"error":g>N?"done":g===N?"active":"pending"}const v=h(1),x=h(2),b=h(3),k=c==="image-match"&&f?Math.round((m??0)/f*100):void 0,w=o.useMemo(()=>{if(x!=="done"){if(c==="image-list")return l("wordData.checkingPage",{page:p??1});if(c==="image-match"&&f)return l("wordData.imageCount",{done:Rr(m),total:Rr(f)})}},[x,c,p,f,m,l]);return n.jsx(Tn,{inline:i,className:"popup--word-data-update",title:e,footer:_&&r?n.jsx(le,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):_?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:!y,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:n.jsxs("div",{className:"wdup-cards",children:[n.jsx(Uo,{icon:n.jsx(as,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:v,subText:v==="active"?l("wordData.downloadingCount",{n:Rr(d)}):void 0}),n.jsx(Uo,{icon:n.jsx(J3,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:x,pct:k,subText:w}),n.jsx(Uo,{icon:n.jsx(ss,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:b,pct:b==="active"?C??0:void 0,subText:void 0})]})})}function a7({enabled:e=!1,renderResultPopup:t}={}){const{t:a}=ge.useTranslation(),[r,s]=o.useState(null),[i,l]=o.useState(null),c=C=>{let g=null;C==="noise"?g={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}]}:C==="short"?g={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}]}:C==="long"?g={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}]}:C==="order"&&(g={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(g),s(C)},u=o.useCallback(()=>{s(null),l(null)},[]),d=o.useCallback(()=>c("noise"),[]),p=o.useCallback(()=>c("short"),[]),m=o.useCallback(()=>c("long"),[]),f=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:d,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:f,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&i?t?.({score:i.score,contextsLength:i.contextsLength,results:i.results,onReplay:u,onClose:u}):null]}):null}exports.Accordion=ab,exports.ActionCard=q2,exports.Alert=Kb,exports.AppHeader=cb,exports.AudioMeter=lo,exports.AudioPlayer=To,exports.Avatar=t4,exports.Badge=mt,exports.BarChart=I4,exports.BarChartControls=Il,exports.Board=h4,exports.BottomNav=ol,exports.BrandIdentity=ul,exports.Breadcrumb=r4,exports.BulkBar=N4,exports.Button=le,exports.CORE_VERSION=F2,exports.Calendar=ay,exports.CardStep=su,exports.ChartLegend=ao,exports.ChartSection=ro,exports.ChartTotal=Za,exports.Checkbox=Ml,exports.ChoiceChips=i5,exports.CircleBadge=Wb,exports.CodeBox=A4,exports.ColorPicker=c4,exports.CompanyMeta=v4,exports.ConfirmPopup=w3,exports.ConfirmStep=au,exports.ConfirmWithTextStep=ru,exports.ContrastFilterPanel=x3,exports.CoreScope=U2,exports.CountTile=u4,exports.CouponInputPopup=k3,exports.DEFAULT_NOISE_SETTINGS=ja,exports.DatePicker=T4,exports.DebugResultLauncher=a7,exports.DescriptionTooltip=Fn,exports.DeviceSideTable=ey,exports.Dialog=m4,exports.Divider=qb,exports.Dropdown=nn,exports.EffectPartyPopper=zo,exports.EffectPartyPopperHost=E3,exports.EmptyState=z2,exports.ErrorState=W2,exports.FILTER_ALL_VALUE=rn,exports.FileUpload=a4,exports.FilterPanel=xn,exports.FilterSectionInfo=Aa,exports.Footer=l5,exports.Header=dl,exports.Icon=qe,exports.IconGridMenu=s5,exports.IconRenderer=qe,exports.InfoTooltip=Dn,exports.LEVEL_MAX=ia,exports.LandingBottomSticky=u5,exports.LandingHeader=c5,exports.ListPopup=_3,exports.ListenStep=nu,exports.Loader=Da,exports.MARKS=tc,exports.MARK_ICON=ac,exports.MARK_VARIANT=rc,exports.MediaQueryOverrideContext=hi,exports.MenuTooltip=_a,exports.NOISE_RATIO_MAX=Sa,exports.NOISE_RATIO_STEP=Mc,exports.NoisePlayerContext=No,exports.NoiseSettingsTooltip=Yc,exports.NoticeBox=G2,exports.OrderListStep=ou,exports.PASS_CARD_BG_VARS=Hn,exports.POS_LABEL=ic,exports.PROMO_BANNER_BG_COMPONENTS=Ki,exports.PROMO_BANNER_BG_OPTIONS=$g,exports.PROMO_BANNER_BG_VARS=ya,exports.Page=ir,exports.PageTitle=T3,exports.Pagination=Ga,exports.Panel=sr,exports.PanelGrid=z5,exports.PanelRow=jn,exports.PanelRowDevice=V5,exports.PassCard=xl,exports.PassCardBg=Ob,exports.PassCardBgIHAB=Hb,exports.PassCardBgLeftColorGrid=Vb,exports.PassCardBgTwoCircle=Cl,exports.PaymentPlan=Fb,exports.PersonCard=f4,exports.PhonemeFilterPanel=v3,exports.PhonemeSelectBlock=b3,exports.Popup=Tn,exports.ProgressBar=q4,exports.ProgressIndicator=Kl,exports.PromoBanner=eb,exports.PromoBannerBgDark=Mi,exports.PromoBannerBgDeep=Ni,exports.PromoBannerBgDiagonal=Pi,exports.PromoBannerBgDots=Fi,exports.PromoBannerBgInstagram=Gi,exports.PromoBannerBgMain=xi,exports.PromoBannerBgNaver=qi,exports.PromoBannerBgOutline=Hi,exports.PromoBannerBgRadial=$i,exports.PromoBannerBgSoft=wi,exports.PromoBannerBgSoftSub=Si,exports.PromoBannerBgSub=Ai,exports.PromoBannerBgSuccess=zi,exports.PromoBannerBgWarm=Ti,exports.PublicationCard=g4,exports.Radio=Al,exports.RadioGroup=Ub,exports.Rating=s4,exports.ReportDocument=P3,exports.ReportInfoPanel=I3,exports.RingChart=O4,exports.SENTENCE_TRAINING_TYPES=wo,exports.SearchSummary=Xb,exports.Section=aa,exports.SectionHeader=y4,exports.SegmentedControl=Sn,exports.ShortcutBadge=kl,exports.SideNav=cl,exports.Slider=Wl,exports.SoundCompass=zb,exports.SplashLogo=b4,exports.StatChart=H4,exports.SummaryStrip=$3,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=A3,exports.Table=uo,exports.TableFilterPanel=yo,exports.Tabs=Jb,exports.TextBoxTooltip=or,exports.TextField=Vn,exports.Timeline=C4,exports.Toast=ta,exports.Toggle=jl,exports.Toolbar=no,exports.Tooltip=Cn,exports.TooltipInfo=Dn,exports.TooltipTextBox=or,exports.TopBanner=tb,exports.TrainingBlock=ly,exports.TrainingBlockButton=mo,exports.TrainingCard=z3,exports.TrainingCardGroup=W3,exports.TrainingPagePopup=Ln,exports.TrainingPagePopupBottom=Zc,exports.TrainingPagePopupTitle=Xc,exports.TrainingResultPopup=lu,exports.TrainingStep=zn,exports.TrainingStepAudioPlayer=To,exports.TrainingStepBullet=Hc,exports.TrainingStepCard=qc,exports.TrainingStepConfirm=Mo,exports.TrainingStepConfirmWithText=Lo,exports.TrainingStepListen=$o,exports.TrainingStepOrderList=Ro,exports.TrainingStepTextBox=Wc,exports.TrainingStepTitle=zc,exports.TrainingTooltip=N3,exports.TrainingWordCard=Co,exports.UpdateAlert=V3,exports.WAVE_A_MAX=x5,exports.WAVE_H1_PX=Ic,exports.WAVE_HMAX_PX=v5,exports.WORD_TABLE_PAPER=ra,exports.WORD_TYPE_LABEL=lc,exports.WordDataProvider=L3,exports.WordDataUpdatePopup=n7,exports.WordImageTooltip=du,exports.WordSearchFilterPanel=y3,exports.WordSearchResultBlock=C3,exports.WordTable=oa,exports.WordTableBlock=Y3,exports.WordTableButton=Z3,exports.WordTablePopup=jy,exports.WordTableThumbnail=fu,exports.buildMonthChartData=M4,exports.cellKey=Oy,exports.cellLabel=Fy,exports.cellsForLabels=Jy,exports.clearPassCardBgTheme=yn,exports.clearPromoBannerBgTheme=Rt,exports.closeTrainingPopup=K5,exports.companyTypeLabel=j3,exports.createTrainingScenario=X5,exports.cx=De,exports.deriveNoiseContexts=a3,exports.derivePassCard=ml,exports.draftValues=r5,exports.effectiveNoiseVolume=Ao,exports.effectiveSpeechVolume=$c,exports.expandSlashLabel=bo,exports.formatDuration=Qy,exports.getControlDateRange=F4,exports.getPayloadTimestamp=Fo,exports.getPromoBannerBgTheme=Ur,exports.getSelectedFromPayload=Q5,exports.getSelectedText=e3,exports.getStepPayload=eu,exports.getSteppedPayload=t3,exports.injectPassCardBgTheme=bn,exports.injectPromoBannerBgTheme=$t,exports.isSelectionCorrect=n3,exports.labelOfCellKey=Tc,exports.labelsForSave=Iy,exports.levelToPct=d5,exports.markAfterClick=nc,exports.marksForSave=go,exports.mergeNoiseSettings=Ta,exports.missesByType=Ky,exports.nextFocus=Wy,exports.nextMisses=Gy,exports.noiseElementVolume=Bo,exports.noiseRatioOf=Ea,exports.pageStartIndexes=oc,exports.passCardBgIhabTheme=_l,exports.passCardBgLeftColorGridTheme=wl,exports.passCardBgTwoCircleTheme=fl,exports.pctToLevel=p5,exports.printWordTable=hy,exports.promoBannerBgDarkTheme=ji,exports.promoBannerBgDeepTheme=Bi,exports.promoBannerBgDiagonalTheme=Ri,exports.promoBannerBgDotsTheme=Ii,exports.promoBannerBgInstagramTheme=Ui,exports.promoBannerBgMainTheme=vi,exports.promoBannerBgNaverTheme=Wi,exports.promoBannerBgOutlineTheme=Oi,exports.promoBannerBgRadialTheme=Li,exports.promoBannerBgSoftSubTheme=Di,exports.promoBannerBgSoftTheme=_i,exports.promoBannerBgSubTheme=ki,exports.promoBannerBgSuccessTheme=Vi,exports.promoBannerBgWarmTheme=Ei,exports.recommendTables=Zy,exports.regenerateUnpinned=a5,exports.removeItem=n5,exports.resolveTrainingItems=Z5,exports.resolveTrainingPopupMeta=Qc,exports.reviewCells=Ly,exports.reviewMeta=Py,exports.reviewSetPlan=Yy,exports.reviewTableName=Ry,exports.scoreKey=tr,exports.scoreSheetHeader=Hy,exports.shouldConfirmDiscard=my,exports.splitTrainingVariants=Y5,exports.summarize=py,exports.summarizeMisses=Uy,exports.tableTrends=zy,exports.toDraft=e5,exports.toTrainingText=J5,exports.togglePin=t5,exports.uncoveredLabels=Xy,exports.useAnchoredMenu=xa,exports.useBarChartControl=Pl,exports.useCalendarMonth=Ll,exports.useComboboxSuggestions=Sl,exports.useFitScale=uc,exports.useNoisePlayer=ar,exports.useSoundCompassExam=Qg,exports.useToastLifecycle=Ul,exports.useWordData=M3,exports.useWordTableDisplaySettings=Sc,exports.useWordTablePrint=_o,exports.waveBarPx=Ma,exports.waveBarVal=So,exports.weakItems=Vy;