@ihabdevteam/core 0.336.0 → 0.337.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.
@@ -1,4 +1,4 @@
1
- "use strict";var n=require("react/jsx-runtime"),o=require("react"),Rt=require("i18next"),xe=require("react-i18next"),en=require("react-dom"),wn=typeof document<"u"?document.currentScript:null;function td(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(a){if(a!=="default"){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,Object.freeze(t)}var ws=td(o);function we(...e){return e.filter(Boolean).join(" ")}const Bs=new Set,ea=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function St(e,...t){!ea||Bs.has(e)||(Bs.add(e),console.warn(...t))}/**
1
+ "use strict";var n=require("react/jsx-runtime"),o=require("react"),Rt=require("i18next"),xe=require("react-i18next"),en=require("react-dom"),wn=typeof document<"u"?document.currentScript:null;function td(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(a){if(a!=="default"){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,Object.freeze(t)}var ws=td(o);function we(...e){return e.filter(Boolean).join(" ")}const Bs=new Set,Ln=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function St(e,...t){!Ln||Bs.has(e)||(Bs.add(e),console.warn(...t))}/**
2
2
  * @license lucide-react v1.38.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -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 rd=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},od=o.createContext({}),sd=()=>o.useContext(od),id=o.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:i="",children:s,iconNode:l,...u},c)=>{const{size:d=24,strokeWidth:m=2,absoluteStrokeWidth:p=!1,color:C="currentColor",className:y=""}=sd()??{},v=r??p?Number(a??m)*24/Number(t??d):a??m;return o.createElement("svg",{ref:c,...Mr,width:t??d??Mr.width,height:t??d??Mr.height,stroke:e??C,strokeWidth:v,className:As("lucide",y,i),...!s&&!rd(u)&&{"aria-hidden":"true"},...u},[...l.map(([f,h])=>o.createElement(f,h)),...Array.isArray(s)?s:[s]])});/**
31
+ */const rd=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},od=o.createContext({}),sd=()=>o.useContext(od),id=o.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:i="",children:s,iconNode:l,...u},c)=>{const{size:d=24,strokeWidth:m=2,absoluteStrokeWidth:p=!1,color:C="currentColor",className:y=""}=sd()??{},x=r??p?Number(a??m)*24/Number(t??d):a??m;return o.createElement("svg",{ref:c,...Mr,width:t??d??Mr.width,height:t??d??Mr.height,stroke:e??C,strokeWidth:x,className:As("lucide",y,i),...!s&&!rd(u)&&{"aria-hidden":"true"},...u},[...l.map(([f,h])=>o.createElement(f,h)),...Array.isArray(s)?s:[s]])});/**
32
32
  * @license lucide-react v1.38.0 - ISC
33
33
  *
34
34
  * This source code is licensed under the ISC license.
@@ -823,9 +823,9 @@
823
823
  *
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
- */const R0=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],P0=ee("thumbs-up",R0),Vs={"alert-triangle":Ns,"align-start-vertical":cd,anchor:Wh,armchair:Uh,"arrow-down":pd,"arrow-left":hd,"arrow-right":fd,"arrow-right-left":bd,"arrow-up-a-z":Kh,"audio-lines":vd,baby:_d,ban:Bd,"bar-chart-2":Zh,bell:kd,"book-marked":Ed,"book-open":Sd,"bow-arrow":jd,braces:Ld,bug:Rd,calendar:Is,"calendar-check":Fd,"calendar-days":Od,camera:Vd,car:Qh,"chart-column":Wd,"chart-line":Ud,"chart-pie":Kd,check:Es,"chevron-down":Os,"chevron-left":Ds,"chevron-right":Ss,"chevron-up":Hs,circle:D0,"clipboard-list":Qd,coffee:t0,combine:tp,copy:ap,"chevrons-left-right-ellipsis":op,"credit-card":ip,database:Ts,diff:cp,download:js,ear:mp,edit:Cp,"edit-2":gp,"edit-3":yp,ellipsis:Ms,eraser:_p,"external-link":Bp,eye:kp,"file-text":Ep,"flip-horizontal":Sp,"folder-open":jp,"folder-plus":Lp,gamepad:Rp,"gamepad-2":a0,clock:o0,target:i0,percent:u0,gavel:Fp,"git-merge":Ls,globe:Hp,"grip-vertical":zp,headphones:qp,heart:Gp,home:Yp,inbox:d0,info:Xp,"key-round":Qp,landmark:t1,layers:a1,"layout-dashboard":o1,leaf:i1,lightbulb:u1,link:d1,"link-2":m1,"link-2-off":C1,list:g1,"list-checks":y1,"list-ordered":x1,"list-tree":m0,loader:w1,lock:A1,"log-out":N1,mail:D1,"map-pin":T1,menu:M0,"message-circle":M1,"message-circle-question-mark":$1,"message-square":P1,"message-square-more":C0,"message-square-text":I1,minus:g0,"minus-circle":H1,moon:$0,"more-horizontal":Ms,package:z1,palette:q1,"party-popper":G1,pause:Y1,pencil:X1,phone:Q1,play:tm,"play-circle":am,plus:om,printer:im,"refresh-cw":um,repeat:dm,replace:mm,rocket:Cm,"rotate-ccw":gm,"rotate-cw":ym,salad:xm,"scan-search":wm,search:Nm,"circle-alert":$s,"alert-circle":$s,"check-circle":Rs,scissors:Dm,"search-x":Tm,send:Mm,settings:$m,"share-2":y0,"shield-check":Pm,"shopping-cart":Im,shuffle:Hm,"skip-back":zm,"skip-forward":qm,sparkles:x0,square:Gm,star:Ym,store:Xm,"sun-medium":Qm,table:th,"table-2":ah,tag:oh,terminal:ih,"text-cursor-input":uh,"text-initial":dh,"thumbs-up":P0,ticket:mh,trash:gh,triangle:T0,"trash-2":Ch,"trending-up":yh,"triangle-alert":Ns,trophy:xh,type:w0,unlink:wh,upload:Ah,user:Lr,"user-plus":Eh,"user-round":Sh,"user-round-check":jh,users:Lh,"users-round":Rh,volume:A0,"volume-2":Ps,wrench:Ih,x:Fs,zap:Vh};function F0(e){return Vs[e]??null}const zs=new Set;function I0(e){return ea&&!(e in Vs)&&!zs.has(e)&&(zs.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 O0=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 H0(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?O0(a):null}const Ws=new Map;function V0(e){const t=typeof e=="string"?H0(e):null,a=t?F0(t)??Ws.get(t)??null:null,[r,i]=o.useState(null);return o.useEffect(()=>{if(!t||a)return;let s=!1;return I0(t).then(l=>{Ws.set(t,l),s||i(l)}),()=>{s=!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 qs(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 z0(e){if(Array.isArray(e))return e}function W0(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,i,s,l,u=[],c=!0,d=!1;try{if(s=(a=a.call(e)).next,t!==0)for(;!(c=(r=s.call(a)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(m){d=!0,i=m}finally{try{if(!c&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(d)throw i}}return u}}function q0(){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 U0(e,t){return z0(e)||W0(e,t)||G0(e,t)||q0()}function G0(e,t){if(e){if(typeof e=="string")return qs(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)?qs(e,t):void 0}}const Us=Object.entries,Gs=Object.setPrototypeOf,K0=Object.isFrozen,Y0=Object.getPrototypeOf,Z0=Object.getOwnPropertyDescriptor;let Tt=Object.freeze,Mt=Object.seal,ta=Object.create,Ks=typeof Reflect<"u"&&Reflect,$r=Ks.apply,Rr=Ks.construct;Tt||(Tt=function(t){return t}),Mt||(Mt=function(t){return t}),$r||($r=function(t,a){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];return t.apply(a,i)}),Rr||(Rr=function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];return new t(...r)});const zn=Et(Array.prototype.forEach),X0=Et(Array.prototype.lastIndexOf),Ys=Et(Array.prototype.pop),ba=Et(Array.prototype.push),J0=Et(Array.prototype.splice),na=Array.isArray,ya=Et(String.prototype.toLowerCase),Pr=Et(String.prototype.toString),Zs=Et(String.prototype.match),va=Et(String.prototype.replace),Xs=Et(String.prototype.indexOf),Q0=Et(String.prototype.trim),eC=Et(Number.prototype.toString),tC=Et(Boolean.prototype.toString),Js=typeof BigInt>"u"?null:Et(BigInt.prototype.toString),Qs=typeof Symbol>"u"?null:Et(Symbol.prototype.toString),Xt=Et(Object.prototype.hasOwnProperty),xa=Et(Object.prototype.toString),Ht=Et(RegExp.prototype.test),Wn=nC(TypeError);function Et(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];return $r(e,t,r)}}function nC(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return Rr(e,a)}}function pt(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ya;if(Gs&&Gs(e,null),!na(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const s=a(i);s!==i&&(K0(t)||(t[r]=s),i=s)}e[i]=!0}return e}function aC(e){for(let t=0;t<e.length;t++)Xt(e,t)||(e[t]=null);return e}function tn(e){const t=ta(null);for(const r of Us(e)){var a=U0(r,2);const i=a[0],s=a[1];Xt(e,i)&&(na(s)?t[i]=aC(s):s&&typeof s=="object"&&s.constructor===Object?t[i]=tn(s):t[i]=s)}return t}function rC(e){switch(typeof e){case"string":return e;case"number":return eC(e);case"boolean":return tC(e);case"bigint":return Js?Js(e):"0";case"symbol":return Qs?Qs(e):"Symbol()";case"undefined":return xa(e);case"function":case"object":{if(e===null)return xa(e);const t=e,a=un(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:xa(r)}return xa(e)}default:return xa(e)}}function un(e,t){for(;e!==null;){const r=Z0(e,t);if(r){if(r.get)return Et(r.get);if(typeof r.value=="function")return Et(r.value)}e=Y0(e)}function a(){return null}return a}function oC(e){try{return Ht(e,""),!0}catch{return!1}}const ei=Tt(["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"]),Fr=Tt(["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"]),Ir=Tt(["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"]),sC=Tt(["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"]),Or=Tt(["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"]),iC=Tt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ti=Tt(["#text"]),ni=Tt(["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"]),Hr=Tt(["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"]),ai=Tt(["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"]),Ga=Tt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),lC=Mt(/{{[\w\W]*|^[\w\W]*}}/g),uC=Mt(/<%[\w\W]*|^[\w\W]*%>/g),cC=Mt(/\${[\w\W]*/g),dC=Mt(/^data-[\-\w.\u00B7-\uFFFF]+$/),pC=Mt(/^aria-[\-\w]+$/),ri=Mt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),mC=Mt(/^(?:\w+script|data):/i),hC=Mt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),CC=Mt(/^html$/i),fC=Mt(/^[a-z][.\w]*(-[.\w]+)+$/i),oi=Mt(/<[/\w!]/g),si=Mt(/<[/\w]/g),gC=Mt(/<\/no(script|embed|frames)/i),bC=Mt(/\/>/i),nn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ii=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],yC=Tt(pt({},ii)),vC=(function(){const e={};return zn(ii,t=>{e[t]=Mt(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Tt(e)})(),xC=function(){return typeof window>"u"?null:window},_C=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";a&&a.hasAttribute(i)&&(r=a.getAttribute(i));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},li=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ln=function(t,a,r,i){return Xt(t,a)&&na(t[a])?pt(i.base?tn(i.base):{},t[a],i.transform):r},Vr=function(t,a,r){const i=Xt(t,a)?t[a]:void 0;return i&&typeof i=="object"?tn(i):r()};function ui(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xC();const t=he=>ui(he);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==nn.document||!e.Element)return t.isSupported=!1,t;let a=e.document;const r=a,i=r.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,l=e.Node,u=e.Element,c=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const m=e.DOMParser,p=e.trustedTypes,C=u.prototype,y=un(C,"cloneNode"),v=un(C,"remove"),f=un(C,"nextSibling"),h=un(C,"childNodes"),_=un(C,"parentNode"),g=un(C,"shadowRoot"),k=un(C,"attributes"),b=l&&l.prototype?un(l.prototype,"nodeType"):null,N=l&&l.prototype?un(l.prototype,"nodeName"):null,x=l&&l.prototype?un(l.prototype,"ownerDocument"):null,B=function(T){return b?b(T):T.nodeType},w=function(T){return N?N(T):T.nodeName};if(typeof s=="function"){const he=a.createElement("template");he.content&&he.content.ownerDocument&&(a=he.content.ownerDocument)}let A,D="",E,O=!1,R=0;const K=function(){if(R>0)throw Wn('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.')},M=function(T){K(),R++;try{return A.createHTML(T)}finally{R--}},L=function(T){K(),R++;try{return A.createScriptURL(T)}finally{R--}},$=function(){return O||(E=_C(p,i),O=!0),E},G=a,W=G.implementation,H=G.createNodeIterator,U=G.createDocumentFragment,P=G.getElementsByTagName,z=r.importNode;let V=li();t.isSupported=typeof Us=="function"&&typeof _=="function"&&W&&W.createHTMLDocument!==void 0;const F=lC,S=uC,j=cC,I=dC,q=pC,re=mC,ne=hC,le=fC;let Y=ri,oe=null;const ke=pt({},[...ei,...Fr,...Ir,...Or,...ti]);let Z=null;const Q=pt({},[...ni,...Hr,...ai,...Ga]);let me=Object.seal(ta(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),De=null,be=null;const te=Object.seal(ta(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ue=!0,Ce=!0,ge=!1,fe=!0,$e=!1,ze=!0,Te=!1,Fe=!1,qe=null,mt=null,ct=!1,rt=!1,Ct=!1,Ae=!1,We=!0,_e=!1;const Ue="user-content-";let Be=!0,je=!1,Se={},Xe=null;const Qe=pt({},["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 dt=null;const ht=pt({},["audio","video","img","source","image","track"]);let wt=null;const ft=pt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nt="http://www.w3.org/1998/Math/MathML",gt="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml";let Ke=it,se=!1,Ne=null;const Ve=pt({},[Nt,gt,it],Pr),nt=Tt(["mi","mo","mn","ms","mtext"]);let Ie=pt({},nt);const Ge=Tt(["annotation-xml"]);let bt=pt({},Ge);const Re=pt({},["title","style","font","a","script"]);let tt=null;const xt=["application/xhtml+xml","text/html"],Lt="text/html";let et=null,ot=null;const lt=a.createElement("form"),st=function(T){return T instanceof RegExp||T instanceof Function},jt=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ot&&ot===T)return;(!T||typeof T!="object")&&(T={}),T=tn(T),tt=xt.indexOf(T.PARSER_MEDIA_TYPE)===-1?Lt:T.PARSER_MEDIA_TYPE,et=tt==="application/xhtml+xml"?Pr:ya,oe=Ln(T,"ALLOWED_TAGS",ke,{transform:et}),Z=Ln(T,"ALLOWED_ATTR",Q,{transform:et}),Ne=Ln(T,"ALLOWED_NAMESPACES",Ve,{transform:Pr}),wt=Ln(T,"ADD_URI_SAFE_ATTR",ft,{transform:et,base:ft}),dt=Ln(T,"ADD_DATA_URI_TAGS",ht,{transform:et,base:ht}),Xe=Ln(T,"FORBID_CONTENTS",Qe,{transform:et}),De=Ln(T,"FORBID_TAGS",tn({}),{transform:et}),be=Ln(T,"FORBID_ATTR",tn({}),{transform:et}),Se=Xt(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?tn(T.USE_PROFILES):T.USE_PROFILES:!1,ue=T.ALLOW_ARIA_ATTR!==!1,Ce=T.ALLOW_DATA_ATTR!==!1,ge=T.ALLOW_UNKNOWN_PROTOCOLS||!1,fe=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$e=T.SAFE_FOR_TEMPLATES||!1,ze=T.SAFE_FOR_XML!==!1,Te=T.WHOLE_DOCUMENT||!1,rt=T.RETURN_DOM||!1,Ct=T.RETURN_DOM_FRAGMENT||!1,Ae=T.RETURN_TRUSTED_TYPE||!1,ct=T.FORCE_BODY||!1,We=T.SANITIZE_DOM!==!1,_e=T.SANITIZE_NAMED_PROPS||!1,Be=T.KEEP_CONTENT!==!1,je=T.IN_PLACE||!1,Y=oC(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:ri,Ke=typeof T.NAMESPACE=="string"?T.NAMESPACE:it,Ie=Vr(T,"MATHML_TEXT_INTEGRATION_POINTS",()=>pt({},nt)),bt=Vr(T,"HTML_INTEGRATION_POINTS",()=>pt({},Ge));const X=Vr(T,"CUSTOM_ELEMENT_HANDLING",()=>ta(null));if(me=ta(null),Xt(X,"tagNameCheck")&&st(X.tagNameCheck)&&(me.tagNameCheck=X.tagNameCheck),Xt(X,"attributeNameCheck")&&st(X.attributeNameCheck)&&(me.attributeNameCheck=X.attributeNameCheck),Xt(X,"allowCustomizedBuiltInElements")&&typeof X.allowCustomizedBuiltInElements=="boolean"&&(me.allowCustomizedBuiltInElements=X.allowCustomizedBuiltInElements),Mt(me),$e&&(Ce=!1),Ct&&(rt=!0),Se&&(oe=pt({},ti),Z=ta(null),Se.html===!0&&(pt(oe,ei),pt(Z,ni)),Se.svg===!0&&(pt(oe,Fr),pt(Z,Hr),pt(Z,Ga)),Se.svgFilters===!0&&(pt(oe,Ir),pt(Z,Hr),pt(Z,Ga)),Se.mathMl===!0&&(pt(oe,Or),pt(Z,ai),pt(Z,Ga))),te.tagCheck=null,te.attributeCheck=null,Xt(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?te.tagCheck=T.ADD_TAGS:na(T.ADD_TAGS)&&(oe===ke&&(oe=tn(oe)),pt(oe,T.ADD_TAGS,et))),Xt(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?te.attributeCheck=T.ADD_ATTR:na(T.ADD_ATTR)&&(Z===Q&&(Z=tn(Z)),pt(Z,T.ADD_ATTR,et))),Xt(T,"ADD_FORBID_CONTENTS")&&na(T.ADD_FORBID_CONTENTS)&&(Xe===Qe&&(Xe=tn(Xe)),pt(Xe,T.ADD_FORBID_CONTENTS,et)),Be&&(oe["#text"]=!0),Te&&pt(oe,["html","head","body"]),oe.table&&(pt(oe,["tbody"]),delete De.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw Wn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Wn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ce=A;A=T.TRUSTED_TYPES_POLICY;try{D=M("")}catch(Ee){throw A=ce,Ee}}else T.TRUSTED_TYPES_POLICY===null?(A=void 0,D=""):(A===void 0&&(A=$()),A&&typeof D=="string"&&(D=M("")));Tt&&Tt(T),ot=T},Vt=pt({},[...Fr,...Ir,...sC]),mn=pt({},[...Or,...iC]),hn=function(T,X,ce){return X.namespaceURI===it?T==="svg":X.namespaceURI===Nt?T==="svg"&&(ce==="annotation-xml"||Ie[ce]):!!Vt[T]},jn=function(T,X,ce){return X.namespaceURI===it?T==="math":X.namespaceURI===gt?T==="math"&&bt[ce]:!!mn[T]},On=function(T,X,ce){return X.namespaceURI===gt&&!bt[ce]||X.namespaceURI===Nt&&!Ie[ce]?!1:!mn[T]&&(Re[T]||!Vt[T])},Hn=function(T){let X=_(T);(!X||!X.tagName)&&(X={namespaceURI:Ke,tagName:"template"});const ce=ya(T.tagName),Ee=ya(X.tagName);return Ne[T.namespaceURI]?T.namespaceURI===gt?hn(ce,X,Ee):T.namespaceURI===Nt?jn(ce,X,Ee):T.namespaceURI===it?On(ce,X,Ee):!!(tt==="application/xhtml+xml"&&Ne[T.namespaceURI]):!1},Ft=function(T){ba(t.removed,{element:T});try{_(T).removeChild(T)}catch{if(v(T),!_(T))throw Wn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},vn=function(T,X,ce){try{T.removeAttributeNode(X)}catch{try{T.removeAttribute(ce)}catch{}}},It=function(T){on(T);const X=h(T);if(X){const Ee=[];zn(X,Pe=>{ba(Ee,Pe)}),zn(Ee,Pe=>{try{v(Pe)}catch{}})}const ce=k(T);if(ce)for(let Ee=ce.length-1;Ee>=0;--Ee){const Pe=ce[Ee],Ze=Pe&&Pe.name;typeof Ze=="string"&&vn(T,Pe,Ze)}},zt=function(T,X,ce){if(!ce)try{ce=X.getAttributeNode(T)}catch{ce=null}ba(t.removed,{attribute:ce||null,from:X});try{ce?X.removeAttributeNode(ce):X.removeAttribute(T)}catch{try{X.removeAttribute(T)}catch{}}if(T==="is")if(rt||Ct)try{Ft(X)}catch{}else try{X.setAttribute(T,"")}catch{}},Mn=function(T){const X=k(T);if(X)for(let ce=X.length-1;ce>=0;--ce){const Ee=X[ce],Pe=Ee&&Ee.name;typeof Pe!="string"||Z[et(Pe)]||vn(T,Ee,Pe)}},on=function(T){const X=[T];for(;X.length>0;){const ce=X.pop();B(ce)===nn.element&&Mn(ce);const Pe=h(ce);if(Pe)for(let Ze=Pe.length-1;Ze>=0;--Ze)X.push(Pe[Ze])}},xn=function(T,X){return ze?T==="patchsrc"?!0:T==="for"&&X!=="label"&&X!=="output":!1},Vn=function(T){if(!ze)return;const X=[T];for(;X.length>0;){const ce=X.pop(),Ee=B(ce);if(Ee===nn.processingInstruction||Ee===nn.comment&&Ht(si,ce.data)){try{v(ce)}catch{}continue}if(Ee===nn.element){const Ze=ce,vt=et(w(ce));try{Ze.hasAttribute&&Ze.hasAttribute("patchsrc")&&Ze.removeAttribute("patchsrc"),Ze.hasAttribute&&Ze.hasAttribute("for")&&xn("for",vt)&&Ze.removeAttribute("for")}catch{}}const Pe=h(ce);if(Pe)for(let Ze=Pe.length-1;Ze>=0;--Ze)X.push(Pe[Ze])}},_n=function(T){let X=null,ce=null;if(ct)T="<remove></remove>"+T;else{const Ze=Zs(T,/^[\r\n\t ]+/);ce=Ze&&Ze[0]}tt==="application/xhtml+xml"&&Ke===it&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const Ee=A?M(T):T;if(Ke===it)try{X=new m().parseFromString(Ee,tt)}catch{}if(!X||!X.documentElement){X=W.createDocument(Ke,"template",null);try{X.documentElement.innerHTML=se?D:Ee}catch{}}const Pe=X.body||X.documentElement;return T&&ce&&Pe.insertBefore(a.createTextNode(ce),Pe.childNodes[0]||null),Ke===it?P.call(X,Te?"html":"body")[0]:Te?X.documentElement:Pe},Wt=function(T){const X=x?x(T):T.ownerDocument;return H.call(X||T,T,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},$t=function(T){return T=va(T,F," "),T=va(T,S," "),T=va(T,j," "),T},qt=function(T){var X;T.normalize();const ce=x?x(T):T.ownerDocument,Ee=H.call(ce||T,T,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Pe=Ee.nextNode();for(;Pe;)Pe.data=$t(Pe.data),Pe=Ee.nextNode();const Ze=(X=T.querySelectorAll)===null||X===void 0?void 0:X.call(T,"template");Ze&&zn(Ze,vt=>{Ot(vt.content)&&qt(vt.content)})},Cn=function(T){const X=N?N(T):null;return typeof X!="string"||et(X)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==k(T)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function"||T.nodeType!==b(T)||T.childNodes!==h(T)},Ot=function(T){if(!b||typeof T!="object"||T===null)return!1;try{return b(T)===nn.documentFragment}catch{return!1}},sn=function(T){if(!b||typeof T!="object"||T===null)return!1;try{return typeof b(T)=="number"}catch{return!1}};function Dt(he,T,X){he.length!==0&&zn(he,ce=>{ce.call(t,T,X,ot)})}const ie=function(T,X){return!!(ze&&T.hasChildNodes()&&!sn(T.firstElementChild)&&Ht(oi,T.textContent)&&Ht(oi,T.innerHTML)||ze&&T.namespaceURI===it&&yC[X]&&(sn(T.firstElementChild)||typeof T.textContent=="string"&&Ht(vC[X],T.textContent))||T.nodeType===nn.processingInstruction||ze&&T.nodeType===nn.comment&&Ht(si,T.data))},ve=function(T,X){if(T instanceof RegExp)return Ht(T,X);if(T instanceof Function){for(var ce=arguments.length,Ee=new Array(ce>2?ce-2:0),Pe=2;Pe<ce;Pe++)Ee[Pe-2]=arguments[Pe];return!!T(X,...Ee)}return!1},Me=function(T,X,ce){if(!De[X]&&ae(X)&&ve(me.tagNameCheck,X))return!1;if(Be&&!Xe[X]){const Ee=_(T),Pe=h(T);if(Pe&&Ee){const Ze=Pe.length;for(let vt=Ze-1;vt>=0;--vt){const Bt=T===ce?y(Pe[vt],!0):Pe[vt];Ee.insertBefore(Bt,f(T))}}}return Ft(T),!0},Je=function(T,X,ce,Ee){return T.length===0?X:X===ce||X===Ee?tn(X):X},Oe=function(T,X){return T===X||_(T)!==null?!1:(je&&on(T),!0)},Ye=function(T,X){if(Dt(V.beforeSanitizeElements,T,null),Oe(T,X))return!0;if(Cn(T))return Ft(T),!0;const ce=et(w(T));if(oe=Je(V.uponSanitizeElement,oe,ke,qe),Dt(V.uponSanitizeElement,T,{tagName:ce,allowedTags:oe}),Oe(T,X))return!0;if(ie(T,ce))return Ft(T),!0;if(De[ce]||!(te.tagCheck instanceof Function&&te.tagCheck(ce))&&!oe[ce]){const Pe=Me(T,ce,X);return Pe===!1&&Dt(V.afterSanitizeElements,T,null),Pe}if(B(T)===nn.element&&!Hn(T)||(ce==="noscript"||ce==="noembed"||ce==="noframes")&&Ht(gC,T.innerHTML))return Ft(T),!0;if($e&&T.nodeType===nn.text){const Pe=$t(T.textContent);T.textContent!==Pe&&(ba(t.removed,{element:T.cloneNode()}),T.textContent=Pe)}return Dt(V.afterSanitizeElements,T,null),!1},J=function(T,X,ce){if(be[X]||xn(X,T)||We&&(X==="id"||X==="name")&&(ce in a||ce in lt))return!1;const Ee=Z[X]||te.attributeCheck instanceof Function&&te.attributeCheck(X,T);return Ce&&Ht(I,X)||ue&&Ht(q,X)?!0:Ee?wt[X]||Ht(Y,va(ce,ne,""))||(X==="src"||X==="xlink:href"||X==="href")&&T!=="script"&&Xs(ce,"data:")===0&&dt[T]||ge&&!Ht(re,va(ce,ne,""))?!0:!ce:ae(T)&&ve(me.tagNameCheck,T)&&ve(me.attributeNameCheck,X,T)||X==="is"&&me.allowCustomizedBuiltInElements&&ve(me.tagNameCheck,ce)},de=pt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ae=function(T){return!de[ya(T)]&&Ht(le,T)},ye=function(T,X,ce,Ee){if(A&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!ce)switch(p.getAttributeType(T,X)){case"TrustedHTML":return M(Ee);case"TrustedScriptURL":return L(Ee)}return Ee},Le=function(T,X,ce,Ee){try{ce?T.setAttributeNS(ce,X,Ee):T.setAttribute(X,Ee),Cn(T)?Ft(T):Ys(t.removed)}catch{zt(X,T)}},He=function(T){Dt(V.beforeSanitizeAttributes,T,null);const X=T.attributes;if(!X||Cn(T))return;Z=Je(V.uponSanitizeAttribute,Z,Q,mt);const ce={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Z,forceKeepAttr:void 0};let Ee=X.length;const Pe=et(T.nodeName);for(;Ee--;){const Ze=X[Ee],vt=Ze.name,Bt=Ze.namespaceURI,Yt=Ze.value,Zt=et(vt),jr=Yt;let Ut=vt==="value"?jr:Q0(jr);if(ce.attrName=Zt,ce.attrValue=Ut,ce.keepAttr=!0,ce.forceKeepAttr=void 0,Dt(V.uponSanitizeAttribute,T,ce),Ut=ce.attrValue,_e&&(Zt==="id"||Zt==="name")&&Xs(Ut,Ue)!==0&&(zt(vt,T,Ze),Ut=Ue+Ut),ze&&Ht(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ut)){zt(vt,T,Ze);continue}if(Zt==="attributename"&&Zs(Ut,"href")){zt(vt,T,Ze);continue}if(!ce.forceKeepAttr){if(!ce.keepAttr){zt(vt,T,Ze);continue}if(!fe&&Ht(bC,Ut)){zt(vt,T,Ze);continue}if($e&&(Ut=$t(Ut)),!J(Pe,Zt,Ut)){zt(vt,T,Ze);continue}Ut=ye(Pe,Zt,Bt,Ut),Ut!==jr&&Le(T,vt,Bt,Ut)}}Dt(V.afterSanitizeAttributes,T,null)},ut=function(T){let X=null;const ce=Wt(T);for(Dt(V.beforeSanitizeShadowDOM,T,null);X=ce.nextNode();)if(Dt(V.uponSanitizeShadowNode,X,null),Ye(X,T),He(X),Ot(X.content)&&ut(X.content),B(X)===nn.element){const Ee=g(X);Ot(Ee)&&(yt(Ee),ut(Ee))}Dt(V.afterSanitizeShadowDOM,T,null)},yt=function(T){const X=[{node:T,shadow:null}];for(;X.length>0;){const ce=X.pop();if(ce.shadow){ut(ce.shadow);continue}const Ee=ce.node,Ze=B(Ee)===nn.element,vt=h(Ee);if(vt)for(let Bt=vt.length-1;Bt>=0;--Bt)X.push({node:vt[Bt],shadow:null});if(Ze){const Bt=N?N(Ee):null;if(typeof Bt=="string"&&et(Bt)==="template"){const Yt=Ee.content;Ot(Yt)&&X.push({node:Yt,shadow:null})}}if(Ze){const Bt=g(Ee);Ot(Bt)&&X.push({node:null,shadow:Bt},{node:Bt,shadow:null})}}};return t.sanitize=function(he){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,ce=null,Ee=null,Pe=null;if(se=!he,se&&(he="<!-->"),typeof he!="string"&&!sn(he)&&(he=rC(he),typeof he!="string"))throw Wn("dirty is not a string, aborting");if(!t.isSupported)return he;Fe?(oe=qe,Z=mt):jt(T),(V.uponSanitizeElement.length>0||V.uponSanitizeAttribute.length>0)&&(oe=tn(oe)),V.uponSanitizeAttribute.length>0&&(Z=tn(Z)),t.removed=[];const Ze=je&&typeof he!="string"&&sn(he);if(Ze){Vn(he);const Yt=w(he);if(typeof Yt=="string"){const Zt=et(Yt);if(!oe[Zt]||De[Zt])throw It(he),Wn("root node is forbidden and cannot be sanitized in-place")}if(Cn(he))throw It(he),Wn("root node is clobbered and cannot be sanitized in-place");try{yt(he)}catch(Zt){throw It(he),Zt}}else if(sn(he))X=_n("<!---->"),ce=X.ownerDocument.importNode(he,!0),ce.nodeType===nn.element&&ce.nodeName==="BODY"||ce.nodeName==="HTML"?X=ce:X.appendChild(ce),yt(ce);else{if(!rt&&!$e&&!Te&&he.indexOf("<")===-1)return A&&Ae?M(he):he;if(X=_n(he),!X)return rt?null:Ae?D:""}X&&ct&&Ft(X.firstChild);const vt=Ze?he:X;try{const Yt=Wt(vt);for(;Ee=Yt.nextNode();)Ye(Ee,vt),He(Ee),Ot(Ee.content)&&ut(Ee.content)}catch(Yt){throw Ze&&(It(he),zn(t.removed,Zt=>{Zt.element&&on(Zt.element)})),Yt}if(Ze)return zn(t.removed,Yt=>{Yt.element&&on(Yt.element)}),$e&&qt(he),he;if(rt){if($e&&qt(X),Ct)for(Pe=U.call(X.ownerDocument);X.firstChild;)Pe.appendChild(X.firstChild);else Pe=X;return(Z.shadowroot||Z.shadowrootmode)&&(Pe=z.call(r,Pe,!0)),Pe}let Bt=Te?X.outerHTML:X.innerHTML;return Te&&oe["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Ht(CC,X.ownerDocument.doctype.name)&&(Bt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
828
- `+Bt),$e&&(Bt=$t(Bt)),A&&Ae?M(Bt):Bt},t.setConfig=function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};jt(he),Fe=!0,qe=oe,mt=Z},t.clearConfig=function(){ot=null,Fe=!1,qe=null,mt=null,A=E,D=""},t.isValidAttribute=function(he,T,X){ot||jt({});const ce=et(he),Ee=et(T);return J(ce,Ee,X)},t.addHook=function(he,T){typeof T=="function"&&Xt(V,he)&&ba(V[he],T)},t.removeHook=function(he,T){if(Xt(V,he)){if(T!==void 0){const X=X0(V[he],T);return X===-1?void 0:J0(V[he],X,1)[0]}return Ys(V[he])}},t.removeHooks=function(he){Xt(V,he)&&(V[he]=[])},t.removeAllHooks=function(){V=li()},t}var zr=ui();let Wr=null;const wC=1500;function qr(){Wr?.clear(),Wr=null}function BC(e,{onEnd:t,rate:a=.9}={}){if(typeof window>"u"||typeof SpeechSynthesisUtterance>"u"||!("speechSynthesis"in window)){t?.();return}const r=window.speechSynthesis;qr();const i=()=>{qr(),r.cancel();const l=new SpeechSynthesisUtterance(e),u=r.getVoices().find(c=>c.lang.startsWith("ko"));u&&(l.voice=u),l.rate=a,l.onend=t?function(c){try{t()}catch{}}:null,l.onerror=t?function(){try{t()}catch{}}:null,r.speak(l)};if(r.getVoices().length>0){i();return}const s=setTimeout(i,wC);r.addEventListener("voiceschanged",i,{once:!0}),Wr={clear:()=>{clearTimeout(s),r.removeEventListener("voiceschanged",i)}}}function Ur(){qr(),typeof window<"u"&&"speechSynthesis"in window&&window.speechSynthesis.cancel()}const AC=/^(?:[a-z]+:)?\/\//i,kC="__ihab_core_asset_base_url__";function NC(){return globalThis[kC]??""}function Gr(e){const t=String(e||"").trim();if(!t)return"";if(AC.test(t)||t.startsWith("data:")||t.startsWith("blob:"))return t;const a=t.startsWith("/")?t:`/${t}`,r=NC();return r?`${r}${a}`:a}const ci="__ihab_core_storage_resolvers__";function _a(){return globalThis[ci]??null}function EC(e){globalThis[ci]=e}let di=class extends Error{constructor(t){super(`
826
+ */const R0=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],P0=ee("thumbs-up",R0),Vs={"alert-triangle":Ns,"align-start-vertical":cd,anchor:Wh,armchair:Uh,"arrow-down":pd,"arrow-left":hd,"arrow-right":fd,"arrow-right-left":bd,"arrow-up-a-z":Kh,"audio-lines":vd,baby:_d,ban:Bd,"bar-chart-2":Zh,bell:kd,"book-marked":Ed,"book-open":Sd,"bow-arrow":jd,braces:Ld,bug:Rd,calendar:Is,"calendar-check":Fd,"calendar-days":Od,camera:Vd,car:Qh,"chart-column":Wd,"chart-line":Ud,"chart-pie":Kd,check:Es,"chevron-down":Os,"chevron-left":Ds,"chevron-right":Ss,"chevron-up":Hs,circle:D0,"clipboard-list":Qd,coffee:t0,combine:tp,copy:ap,"chevrons-left-right-ellipsis":op,"credit-card":ip,database:Ts,diff:cp,download:js,ear:mp,edit:Cp,"edit-2":gp,"edit-3":yp,ellipsis:Ms,eraser:_p,"external-link":Bp,eye:kp,"file-text":Ep,"flip-horizontal":Sp,"folder-open":jp,"folder-plus":Lp,gamepad:Rp,"gamepad-2":a0,clock:o0,target:i0,percent:u0,gavel:Fp,"git-merge":Ls,globe:Hp,"grip-vertical":zp,headphones:qp,heart:Gp,home:Yp,inbox:d0,info:Xp,"key-round":Qp,landmark:t1,layers:a1,"layout-dashboard":o1,leaf:i1,lightbulb:u1,link:d1,"link-2":m1,"link-2-off":C1,list:g1,"list-checks":y1,"list-ordered":x1,"list-tree":m0,loader:w1,lock:A1,"log-out":N1,mail:D1,"map-pin":T1,menu:M0,"message-circle":M1,"message-circle-question-mark":$1,"message-square":P1,"message-square-more":C0,"message-square-text":I1,minus:g0,"minus-circle":H1,moon:$0,"more-horizontal":Ms,package:z1,palette:q1,"party-popper":G1,pause:Y1,pencil:X1,phone:Q1,play:tm,"play-circle":am,plus:om,printer:im,"refresh-cw":um,repeat:dm,replace:mm,rocket:Cm,"rotate-ccw":gm,"rotate-cw":ym,salad:xm,"scan-search":wm,search:Nm,"circle-alert":$s,"alert-circle":$s,"check-circle":Rs,scissors:Dm,"search-x":Tm,send:Mm,settings:$m,"share-2":y0,"shield-check":Pm,"shopping-cart":Im,shuffle:Hm,"skip-back":zm,"skip-forward":qm,sparkles:x0,square:Gm,star:Ym,store:Xm,"sun-medium":Qm,table:th,"table-2":ah,tag:oh,terminal:ih,"text-cursor-input":uh,"text-initial":dh,"thumbs-up":P0,ticket:mh,trash:gh,triangle:T0,"trash-2":Ch,"trending-up":yh,"triangle-alert":Ns,trophy:xh,type:w0,unlink:wh,upload:Ah,user:Lr,"user-plus":Eh,"user-round":Sh,"user-round-check":jh,users:Lh,"users-round":Rh,volume:A0,"volume-2":Ps,wrench:Ih,x:Fs,zap:Vh};function F0(e){return Vs[e]??null}const zs=new Set;function I0(e){return Ln&&!(e in Vs)&&!zs.has(e)&&(zs.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 O0=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 H0(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?O0(a):null}const Ws=new Map;function V0(e){const t=typeof e=="string"?H0(e):null,a=t?F0(t)??Ws.get(t)??null:null,[r,i]=o.useState(null);return o.useEffect(()=>{if(!t||a)return;let s=!1;return I0(t).then(l=>{Ws.set(t,l),s||i(l)}),()=>{s=!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 qs(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 z0(e){if(Array.isArray(e))return e}function W0(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,i,s,l,u=[],c=!0,d=!1;try{if(s=(a=a.call(e)).next,t!==0)for(;!(c=(r=s.call(a)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(m){d=!0,i=m}finally{try{if(!c&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(d)throw i}}return u}}function q0(){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 U0(e,t){return z0(e)||W0(e,t)||G0(e,t)||q0()}function G0(e,t){if(e){if(typeof e=="string")return qs(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)?qs(e,t):void 0}}const Us=Object.entries,Gs=Object.setPrototypeOf,K0=Object.isFrozen,Y0=Object.getPrototypeOf,Z0=Object.getOwnPropertyDescriptor;let Tt=Object.freeze,Mt=Object.seal,ta=Object.create,Ks=typeof Reflect<"u"&&Reflect,$r=Ks.apply,Rr=Ks.construct;Tt||(Tt=function(t){return t}),Mt||(Mt=function(t){return t}),$r||($r=function(t,a){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];return t.apply(a,i)}),Rr||(Rr=function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];return new t(...r)});const Wn=Et(Array.prototype.forEach),X0=Et(Array.prototype.lastIndexOf),Ys=Et(Array.prototype.pop),ba=Et(Array.prototype.push),J0=Et(Array.prototype.splice),na=Array.isArray,ya=Et(String.prototype.toLowerCase),Pr=Et(String.prototype.toString),Zs=Et(String.prototype.match),va=Et(String.prototype.replace),Xs=Et(String.prototype.indexOf),Q0=Et(String.prototype.trim),eC=Et(Number.prototype.toString),tC=Et(Boolean.prototype.toString),Js=typeof BigInt>"u"?null:Et(BigInt.prototype.toString),Qs=typeof Symbol>"u"?null:Et(Symbol.prototype.toString),Xt=Et(Object.prototype.hasOwnProperty),xa=Et(Object.prototype.toString),Ht=Et(RegExp.prototype.test),qn=nC(TypeError);function Et(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];return $r(e,t,r)}}function nC(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return Rr(e,a)}}function pt(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ya;if(Gs&&Gs(e,null),!na(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const s=a(i);s!==i&&(K0(t)||(t[r]=s),i=s)}e[i]=!0}return e}function aC(e){for(let t=0;t<e.length;t++)Xt(e,t)||(e[t]=null);return e}function tn(e){const t=ta(null);for(const r of Us(e)){var a=U0(r,2);const i=a[0],s=a[1];Xt(e,i)&&(na(s)?t[i]=aC(s):s&&typeof s=="object"&&s.constructor===Object?t[i]=tn(s):t[i]=s)}return t}function rC(e){switch(typeof e){case"string":return e;case"number":return eC(e);case"boolean":return tC(e);case"bigint":return Js?Js(e):"0";case"symbol":return Qs?Qs(e):"Symbol()";case"undefined":return xa(e);case"function":case"object":{if(e===null)return xa(e);const t=e,a=un(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:xa(r)}return xa(e)}default:return xa(e)}}function un(e,t){for(;e!==null;){const r=Z0(e,t);if(r){if(r.get)return Et(r.get);if(typeof r.value=="function")return Et(r.value)}e=Y0(e)}function a(){return null}return a}function oC(e){try{return Ht(e,""),!0}catch{return!1}}const ei=Tt(["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"]),Fr=Tt(["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"]),Ir=Tt(["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"]),sC=Tt(["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"]),Or=Tt(["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"]),iC=Tt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ti=Tt(["#text"]),ni=Tt(["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"]),Hr=Tt(["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"]),ai=Tt(["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"]),Ga=Tt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),lC=Mt(/{{[\w\W]*|^[\w\W]*}}/g),uC=Mt(/<%[\w\W]*|^[\w\W]*%>/g),cC=Mt(/\${[\w\W]*/g),dC=Mt(/^data-[\-\w.\u00B7-\uFFFF]+$/),pC=Mt(/^aria-[\-\w]+$/),ri=Mt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),mC=Mt(/^(?:\w+script|data):/i),hC=Mt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),CC=Mt(/^html$/i),fC=Mt(/^[a-z][.\w]*(-[.\w]+)+$/i),oi=Mt(/<[/\w!]/g),si=Mt(/<[/\w]/g),gC=Mt(/<\/no(script|embed|frames)/i),bC=Mt(/\/>/i),nn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ii=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],yC=Tt(pt({},ii)),vC=(function(){const e={};return Wn(ii,t=>{e[t]=Mt(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Tt(e)})(),xC=function(){return typeof window>"u"?null:window},_C=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";a&&a.hasAttribute(i)&&(r=a.getAttribute(i));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},li=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},$n=function(t,a,r,i){return Xt(t,a)&&na(t[a])?pt(i.base?tn(i.base):{},t[a],i.transform):r},Vr=function(t,a,r){const i=Xt(t,a)?t[a]:void 0;return i&&typeof i=="object"?tn(i):r()};function ui(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xC();const t=he=>ui(he);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==nn.document||!e.Element)return t.isSupported=!1,t;let a=e.document;const r=a,i=r.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,l=e.Node,u=e.Element,c=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const m=e.DOMParser,p=e.trustedTypes,C=u.prototype,y=un(C,"cloneNode"),x=un(C,"remove"),f=un(C,"nextSibling"),h=un(C,"childNodes"),_=un(C,"parentNode"),g=un(C,"shadowRoot"),k=un(C,"attributes"),b=l&&l.prototype?un(l.prototype,"nodeType"):null,A=l&&l.prototype?un(l.prototype,"nodeName"):null,v=l&&l.prototype?un(l.prototype,"ownerDocument"):null,w=function(T){return b?b(T):T.nodeType},B=function(T){return A?A(T):T.nodeName};if(typeof s=="function"){const he=a.createElement("template");he.content&&he.content.ownerDocument&&(a=he.content.ownerDocument)}let E,D="",N,O=!1,P=0;const G=function(){if(P>0)throw qn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},L=function(T){G(),P++;try{return E.createHTML(T)}finally{P--}},M=function(T){G(),P++;try{return E.createScriptURL(T)}finally{P--}},$=function(){return O||(N=_C(p,i),O=!0),N},Z=a,q=Z.implementation,H=Z.createNodeIterator,W=Z.createDocumentFragment,R=Z.getElementsByTagName,z=r.importNode;let V=li();t.isSupported=typeof Us=="function"&&typeof _=="function"&&q&&q.createHTMLDocument!==void 0;const F=lC,S=uC,j=cC,I=dC,U=pC,re=mC,ne=hC,le=fC;let K=ri,oe=null;const ke=pt({},[...ei,...Fr,...Ir,...Or,...ti]);let Y=null;const Q=pt({},[...ni,...Hr,...ai,...Ga]);let me=Object.seal(ta(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),De=null,be=null;const te=Object.seal(ta(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ue=!0,Ce=!0,ge=!1,fe=!0,$e=!1,ze=!0,Te=!1,Fe=!1,qe=null,mt=null,ct=!1,rt=!1,Ct=!1,Ae=!1,We=!0,_e=!1;const Ue="user-content-";let Be=!0,je=!1,Se={},Xe=null;const Qe=pt({},["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 dt=null;const ht=pt({},["audio","video","img","source","image","track"]);let wt=null;const ft=pt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nt="http://www.w3.org/1998/Math/MathML",gt="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml";let Ke=it,se=!1,Ne=null;const Ve=pt({},[Nt,gt,it],Pr),nt=Tt(["mi","mo","mn","ms","mtext"]);let Ie=pt({},nt);const Ge=Tt(["annotation-xml"]);let bt=pt({},Ge);const Re=pt({},["title","style","font","a","script"]);let tt=null;const xt=["application/xhtml+xml","text/html"],Lt="text/html";let et=null,ot=null;const lt=a.createElement("form"),st=function(T){return T instanceof RegExp||T instanceof Function},jt=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ot&&ot===T)return;(!T||typeof T!="object")&&(T={}),T=tn(T),tt=xt.indexOf(T.PARSER_MEDIA_TYPE)===-1?Lt:T.PARSER_MEDIA_TYPE,et=tt==="application/xhtml+xml"?Pr:ya,oe=$n(T,"ALLOWED_TAGS",ke,{transform:et}),Y=$n(T,"ALLOWED_ATTR",Q,{transform:et}),Ne=$n(T,"ALLOWED_NAMESPACES",Ve,{transform:Pr}),wt=$n(T,"ADD_URI_SAFE_ATTR",ft,{transform:et,base:ft}),dt=$n(T,"ADD_DATA_URI_TAGS",ht,{transform:et,base:ht}),Xe=$n(T,"FORBID_CONTENTS",Qe,{transform:et}),De=$n(T,"FORBID_TAGS",tn({}),{transform:et}),be=$n(T,"FORBID_ATTR",tn({}),{transform:et}),Se=Xt(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?tn(T.USE_PROFILES):T.USE_PROFILES:!1,ue=T.ALLOW_ARIA_ATTR!==!1,Ce=T.ALLOW_DATA_ATTR!==!1,ge=T.ALLOW_UNKNOWN_PROTOCOLS||!1,fe=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$e=T.SAFE_FOR_TEMPLATES||!1,ze=T.SAFE_FOR_XML!==!1,Te=T.WHOLE_DOCUMENT||!1,rt=T.RETURN_DOM||!1,Ct=T.RETURN_DOM_FRAGMENT||!1,Ae=T.RETURN_TRUSTED_TYPE||!1,ct=T.FORCE_BODY||!1,We=T.SANITIZE_DOM!==!1,_e=T.SANITIZE_NAMED_PROPS||!1,Be=T.KEEP_CONTENT!==!1,je=T.IN_PLACE||!1,K=oC(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:ri,Ke=typeof T.NAMESPACE=="string"?T.NAMESPACE:it,Ie=Vr(T,"MATHML_TEXT_INTEGRATION_POINTS",()=>pt({},nt)),bt=Vr(T,"HTML_INTEGRATION_POINTS",()=>pt({},Ge));const X=Vr(T,"CUSTOM_ELEMENT_HANDLING",()=>ta(null));if(me=ta(null),Xt(X,"tagNameCheck")&&st(X.tagNameCheck)&&(me.tagNameCheck=X.tagNameCheck),Xt(X,"attributeNameCheck")&&st(X.attributeNameCheck)&&(me.attributeNameCheck=X.attributeNameCheck),Xt(X,"allowCustomizedBuiltInElements")&&typeof X.allowCustomizedBuiltInElements=="boolean"&&(me.allowCustomizedBuiltInElements=X.allowCustomizedBuiltInElements),Mt(me),$e&&(Ce=!1),Ct&&(rt=!0),Se&&(oe=pt({},ti),Y=ta(null),Se.html===!0&&(pt(oe,ei),pt(Y,ni)),Se.svg===!0&&(pt(oe,Fr),pt(Y,Hr),pt(Y,Ga)),Se.svgFilters===!0&&(pt(oe,Ir),pt(Y,Hr),pt(Y,Ga)),Se.mathMl===!0&&(pt(oe,Or),pt(Y,ai),pt(Y,Ga))),te.tagCheck=null,te.attributeCheck=null,Xt(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?te.tagCheck=T.ADD_TAGS:na(T.ADD_TAGS)&&(oe===ke&&(oe=tn(oe)),pt(oe,T.ADD_TAGS,et))),Xt(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?te.attributeCheck=T.ADD_ATTR:na(T.ADD_ATTR)&&(Y===Q&&(Y=tn(Y)),pt(Y,T.ADD_ATTR,et))),Xt(T,"ADD_FORBID_CONTENTS")&&na(T.ADD_FORBID_CONTENTS)&&(Xe===Qe&&(Xe=tn(Xe)),pt(Xe,T.ADD_FORBID_CONTENTS,et)),Be&&(oe["#text"]=!0),Te&&pt(oe,["html","head","body"]),oe.table&&(pt(oe,["tbody"]),delete De.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ce=E;E=T.TRUSTED_TYPES_POLICY;try{D=L("")}catch(Ee){throw E=ce,Ee}}else T.TRUSTED_TYPES_POLICY===null?(E=void 0,D=""):(E===void 0&&(E=$()),E&&typeof D=="string"&&(D=L("")));Tt&&Tt(T),ot=T},Vt=pt({},[...Fr,...Ir,...sC]),mn=pt({},[...Or,...iC]),hn=function(T,X,ce){return X.namespaceURI===it?T==="svg":X.namespaceURI===Nt?T==="svg"&&(ce==="annotation-xml"||Ie[ce]):!!Vt[T]},jn=function(T,X,ce){return X.namespaceURI===it?T==="math":X.namespaceURI===gt?T==="math"&&bt[ce]:!!mn[T]},Hn=function(T,X,ce){return X.namespaceURI===gt&&!bt[ce]||X.namespaceURI===Nt&&!Ie[ce]?!1:!mn[T]&&(Re[T]||!Vt[T])},Vn=function(T){let X=_(T);(!X||!X.tagName)&&(X={namespaceURI:Ke,tagName:"template"});const ce=ya(T.tagName),Ee=ya(X.tagName);return Ne[T.namespaceURI]?T.namespaceURI===gt?hn(ce,X,Ee):T.namespaceURI===Nt?jn(ce,X,Ee):T.namespaceURI===it?Hn(ce,X,Ee):!!(tt==="application/xhtml+xml"&&Ne[T.namespaceURI]):!1},Ft=function(T){ba(t.removed,{element:T});try{_(T).removeChild(T)}catch{if(x(T),!_(T))throw qn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},vn=function(T,X,ce){try{T.removeAttributeNode(X)}catch{try{T.removeAttribute(ce)}catch{}}},It=function(T){on(T);const X=h(T);if(X){const Ee=[];Wn(X,Pe=>{ba(Ee,Pe)}),Wn(Ee,Pe=>{try{x(Pe)}catch{}})}const ce=k(T);if(ce)for(let Ee=ce.length-1;Ee>=0;--Ee){const Pe=ce[Ee],Ze=Pe&&Pe.name;typeof Ze=="string"&&vn(T,Pe,Ze)}},zt=function(T,X,ce){if(!ce)try{ce=X.getAttributeNode(T)}catch{ce=null}ba(t.removed,{attribute:ce||null,from:X});try{ce?X.removeAttributeNode(ce):X.removeAttribute(T)}catch{try{X.removeAttribute(T)}catch{}}if(T==="is")if(rt||Ct)try{Ft(X)}catch{}else try{X.setAttribute(T,"")}catch{}},Mn=function(T){const X=k(T);if(X)for(let ce=X.length-1;ce>=0;--ce){const Ee=X[ce],Pe=Ee&&Ee.name;typeof Pe!="string"||Y[et(Pe)]||vn(T,Ee,Pe)}},on=function(T){const X=[T];for(;X.length>0;){const ce=X.pop();w(ce)===nn.element&&Mn(ce);const Pe=h(ce);if(Pe)for(let Ze=Pe.length-1;Ze>=0;--Ze)X.push(Pe[Ze])}},xn=function(T,X){return ze?T==="patchsrc"?!0:T==="for"&&X!=="label"&&X!=="output":!1},zn=function(T){if(!ze)return;const X=[T];for(;X.length>0;){const ce=X.pop(),Ee=w(ce);if(Ee===nn.processingInstruction||Ee===nn.comment&&Ht(si,ce.data)){try{x(ce)}catch{}continue}if(Ee===nn.element){const Ze=ce,vt=et(B(ce));try{Ze.hasAttribute&&Ze.hasAttribute("patchsrc")&&Ze.removeAttribute("patchsrc"),Ze.hasAttribute&&Ze.hasAttribute("for")&&xn("for",vt)&&Ze.removeAttribute("for")}catch{}}const Pe=h(ce);if(Pe)for(let Ze=Pe.length-1;Ze>=0;--Ze)X.push(Pe[Ze])}},_n=function(T){let X=null,ce=null;if(ct)T="<remove></remove>"+T;else{const Ze=Zs(T,/^[\r\n\t ]+/);ce=Ze&&Ze[0]}tt==="application/xhtml+xml"&&Ke===it&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const Ee=E?L(T):T;if(Ke===it)try{X=new m().parseFromString(Ee,tt)}catch{}if(!X||!X.documentElement){X=q.createDocument(Ke,"template",null);try{X.documentElement.innerHTML=se?D:Ee}catch{}}const Pe=X.body||X.documentElement;return T&&ce&&Pe.insertBefore(a.createTextNode(ce),Pe.childNodes[0]||null),Ke===it?R.call(X,Te?"html":"body")[0]:Te?X.documentElement:Pe},Wt=function(T){const X=v?v(T):T.ownerDocument;return H.call(X||T,T,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},$t=function(T){return T=va(T,F," "),T=va(T,S," "),T=va(T,j," "),T},qt=function(T){var X;T.normalize();const ce=v?v(T):T.ownerDocument,Ee=H.call(ce||T,T,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Pe=Ee.nextNode();for(;Pe;)Pe.data=$t(Pe.data),Pe=Ee.nextNode();const Ze=(X=T.querySelectorAll)===null||X===void 0?void 0:X.call(T,"template");Ze&&Wn(Ze,vt=>{Ot(vt.content)&&qt(vt.content)})},Cn=function(T){const X=A?A(T):null;return typeof X!="string"||et(X)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==k(T)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function"||T.nodeType!==b(T)||T.childNodes!==h(T)},Ot=function(T){if(!b||typeof T!="object"||T===null)return!1;try{return b(T)===nn.documentFragment}catch{return!1}},sn=function(T){if(!b||typeof T!="object"||T===null)return!1;try{return typeof b(T)=="number"}catch{return!1}};function Dt(he,T,X){he.length!==0&&Wn(he,ce=>{ce.call(t,T,X,ot)})}const ie=function(T,X){return!!(ze&&T.hasChildNodes()&&!sn(T.firstElementChild)&&Ht(oi,T.textContent)&&Ht(oi,T.innerHTML)||ze&&T.namespaceURI===it&&yC[X]&&(sn(T.firstElementChild)||typeof T.textContent=="string"&&Ht(vC[X],T.textContent))||T.nodeType===nn.processingInstruction||ze&&T.nodeType===nn.comment&&Ht(si,T.data))},ve=function(T,X){if(T instanceof RegExp)return Ht(T,X);if(T instanceof Function){for(var ce=arguments.length,Ee=new Array(ce>2?ce-2:0),Pe=2;Pe<ce;Pe++)Ee[Pe-2]=arguments[Pe];return!!T(X,...Ee)}return!1},Me=function(T,X,ce){if(!De[X]&&ae(X)&&ve(me.tagNameCheck,X))return!1;if(Be&&!Xe[X]){const Ee=_(T),Pe=h(T);if(Pe&&Ee){const Ze=Pe.length;for(let vt=Ze-1;vt>=0;--vt){const Bt=T===ce?y(Pe[vt],!0):Pe[vt];Ee.insertBefore(Bt,f(T))}}}return Ft(T),!0},Je=function(T,X,ce,Ee){return T.length===0?X:X===ce||X===Ee?tn(X):X},Oe=function(T,X){return T===X||_(T)!==null?!1:(je&&on(T),!0)},Ye=function(T,X){if(Dt(V.beforeSanitizeElements,T,null),Oe(T,X))return!0;if(Cn(T))return Ft(T),!0;const ce=et(B(T));if(oe=Je(V.uponSanitizeElement,oe,ke,qe),Dt(V.uponSanitizeElement,T,{tagName:ce,allowedTags:oe}),Oe(T,X))return!0;if(ie(T,ce))return Ft(T),!0;if(De[ce]||!(te.tagCheck instanceof Function&&te.tagCheck(ce))&&!oe[ce]){const Pe=Me(T,ce,X);return Pe===!1&&Dt(V.afterSanitizeElements,T,null),Pe}if(w(T)===nn.element&&!Vn(T)||(ce==="noscript"||ce==="noembed"||ce==="noframes")&&Ht(gC,T.innerHTML))return Ft(T),!0;if($e&&T.nodeType===nn.text){const Pe=$t(T.textContent);T.textContent!==Pe&&(ba(t.removed,{element:T.cloneNode()}),T.textContent=Pe)}return Dt(V.afterSanitizeElements,T,null),!1},J=function(T,X,ce){if(be[X]||xn(X,T)||We&&(X==="id"||X==="name")&&(ce in a||ce in lt))return!1;const Ee=Y[X]||te.attributeCheck instanceof Function&&te.attributeCheck(X,T);return Ce&&Ht(I,X)||ue&&Ht(U,X)?!0:Ee?wt[X]||Ht(K,va(ce,ne,""))||(X==="src"||X==="xlink:href"||X==="href")&&T!=="script"&&Xs(ce,"data:")===0&&dt[T]||ge&&!Ht(re,va(ce,ne,""))?!0:!ce:ae(T)&&ve(me.tagNameCheck,T)&&ve(me.attributeNameCheck,X,T)||X==="is"&&me.allowCustomizedBuiltInElements&&ve(me.tagNameCheck,ce)},de=pt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ae=function(T){return!de[ya(T)]&&Ht(le,T)},ye=function(T,X,ce,Ee){if(E&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!ce)switch(p.getAttributeType(T,X)){case"TrustedHTML":return L(Ee);case"TrustedScriptURL":return M(Ee)}return Ee},Le=function(T,X,ce,Ee){try{ce?T.setAttributeNS(ce,X,Ee):T.setAttribute(X,Ee),Cn(T)?Ft(T):Ys(t.removed)}catch{zt(X,T)}},He=function(T){Dt(V.beforeSanitizeAttributes,T,null);const X=T.attributes;if(!X||Cn(T))return;Y=Je(V.uponSanitizeAttribute,Y,Q,mt);const ce={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let Ee=X.length;const Pe=et(T.nodeName);for(;Ee--;){const Ze=X[Ee],vt=Ze.name,Bt=Ze.namespaceURI,Yt=Ze.value,Zt=et(vt),jr=Yt;let Ut=vt==="value"?jr:Q0(jr);if(ce.attrName=Zt,ce.attrValue=Ut,ce.keepAttr=!0,ce.forceKeepAttr=void 0,Dt(V.uponSanitizeAttribute,T,ce),Ut=ce.attrValue,_e&&(Zt==="id"||Zt==="name")&&Xs(Ut,Ue)!==0&&(zt(vt,T,Ze),Ut=Ue+Ut),ze&&Ht(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ut)){zt(vt,T,Ze);continue}if(Zt==="attributename"&&Zs(Ut,"href")){zt(vt,T,Ze);continue}if(!ce.forceKeepAttr){if(!ce.keepAttr){zt(vt,T,Ze);continue}if(!fe&&Ht(bC,Ut)){zt(vt,T,Ze);continue}if($e&&(Ut=$t(Ut)),!J(Pe,Zt,Ut)){zt(vt,T,Ze);continue}Ut=ye(Pe,Zt,Bt,Ut),Ut!==jr&&Le(T,vt,Bt,Ut)}}Dt(V.afterSanitizeAttributes,T,null)},ut=function(T){let X=null;const ce=Wt(T);for(Dt(V.beforeSanitizeShadowDOM,T,null);X=ce.nextNode();)if(Dt(V.uponSanitizeShadowNode,X,null),Ye(X,T),He(X),Ot(X.content)&&ut(X.content),w(X)===nn.element){const Ee=g(X);Ot(Ee)&&(yt(Ee),ut(Ee))}Dt(V.afterSanitizeShadowDOM,T,null)},yt=function(T){const X=[{node:T,shadow:null}];for(;X.length>0;){const ce=X.pop();if(ce.shadow){ut(ce.shadow);continue}const Ee=ce.node,Ze=w(Ee)===nn.element,vt=h(Ee);if(vt)for(let Bt=vt.length-1;Bt>=0;--Bt)X.push({node:vt[Bt],shadow:null});if(Ze){const Bt=A?A(Ee):null;if(typeof Bt=="string"&&et(Bt)==="template"){const Yt=Ee.content;Ot(Yt)&&X.push({node:Yt,shadow:null})}}if(Ze){const Bt=g(Ee);Ot(Bt)&&X.push({node:null,shadow:Bt},{node:Bt,shadow:null})}}};return t.sanitize=function(he){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,ce=null,Ee=null,Pe=null;if(se=!he,se&&(he="<!-->"),typeof he!="string"&&!sn(he)&&(he=rC(he),typeof he!="string"))throw qn("dirty is not a string, aborting");if(!t.isSupported)return he;Fe?(oe=qe,Y=mt):jt(T),(V.uponSanitizeElement.length>0||V.uponSanitizeAttribute.length>0)&&(oe=tn(oe)),V.uponSanitizeAttribute.length>0&&(Y=tn(Y)),t.removed=[];const Ze=je&&typeof he!="string"&&sn(he);if(Ze){zn(he);const Yt=B(he);if(typeof Yt=="string"){const Zt=et(Yt);if(!oe[Zt]||De[Zt])throw It(he),qn("root node is forbidden and cannot be sanitized in-place")}if(Cn(he))throw It(he),qn("root node is clobbered and cannot be sanitized in-place");try{yt(he)}catch(Zt){throw It(he),Zt}}else if(sn(he))X=_n("<!---->"),ce=X.ownerDocument.importNode(he,!0),ce.nodeType===nn.element&&ce.nodeName==="BODY"||ce.nodeName==="HTML"?X=ce:X.appendChild(ce),yt(ce);else{if(!rt&&!$e&&!Te&&he.indexOf("<")===-1)return E&&Ae?L(he):he;if(X=_n(he),!X)return rt?null:Ae?D:""}X&&ct&&Ft(X.firstChild);const vt=Ze?he:X;try{const Yt=Wt(vt);for(;Ee=Yt.nextNode();)Ye(Ee,vt),He(Ee),Ot(Ee.content)&&ut(Ee.content)}catch(Yt){throw Ze&&(It(he),Wn(t.removed,Zt=>{Zt.element&&on(Zt.element)})),Yt}if(Ze)return Wn(t.removed,Yt=>{Yt.element&&on(Yt.element)}),$e&&qt(he),he;if(rt){if($e&&qt(X),Ct)for(Pe=W.call(X.ownerDocument);X.firstChild;)Pe.appendChild(X.firstChild);else Pe=X;return(Y.shadowroot||Y.shadowrootmode)&&(Pe=z.call(r,Pe,!0)),Pe}let Bt=Te?X.outerHTML:X.innerHTML;return Te&&oe["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Ht(CC,X.ownerDocument.doctype.name)&&(Bt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
828
+ `+Bt),$e&&(Bt=$t(Bt)),E&&Ae?L(Bt):Bt},t.setConfig=function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};jt(he),Fe=!0,qe=oe,mt=Y},t.clearConfig=function(){ot=null,Fe=!1,qe=null,mt=null,E=N,D=""},t.isValidAttribute=function(he,T,X){ot||jt({});const ce=et(he),Ee=et(T);return J(ce,Ee,X)},t.addHook=function(he,T){typeof T=="function"&&Xt(V,he)&&ba(V[he],T)},t.removeHook=function(he,T){if(Xt(V,he)){if(T!==void 0){const X=X0(V[he],T);return X===-1?void 0:J0(V[he],X,1)[0]}return Ys(V[he])}},t.removeHooks=function(he){Xt(V,he)&&(V[he]=[])},t.removeAllHooks=function(){V=li()},t}var zr=ui();let Wr=null;const wC=1500;function qr(){Wr?.clear(),Wr=null}function BC(e,{onEnd:t,rate:a=.9}={}){if(typeof window>"u"||typeof SpeechSynthesisUtterance>"u"||!("speechSynthesis"in window)){t?.();return}const r=window.speechSynthesis;qr();const i=()=>{qr(),r.cancel();const l=new SpeechSynthesisUtterance(e),u=r.getVoices().find(c=>c.lang.startsWith("ko"));u&&(l.voice=u),l.rate=a,l.onend=t?function(c){try{t()}catch{}}:null,l.onerror=t?function(){try{t()}catch{}}:null,r.speak(l)};if(r.getVoices().length>0){i();return}const s=setTimeout(i,wC);r.addEventListener("voiceschanged",i,{once:!0}),Wr={clear:()=>{clearTimeout(s),r.removeEventListener("voiceschanged",i)}}}function Ur(){qr(),typeof window<"u"&&"speechSynthesis"in window&&window.speechSynthesis.cancel()}const AC=/^(?:[a-z]+:)?\/\//i,kC="__ihab_core_asset_base_url__";function NC(){return globalThis[kC]??""}function Gr(e){const t=String(e||"").trim();if(!t)return"";if(AC.test(t)||t.startsWith("data:")||t.startsWith("blob:"))return t;const a=t.startsWith("/")?t:`/${t}`,r=NC();return r?`${r}${a}`:a}const ci="__ihab_core_storage_resolvers__";function _a(){return globalThis[ci]??null}function EC(e){globalThis[ci]=e}let di=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 DC(e){EC(e)}function pi(e,t){if(!e)return null;const a=_a();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function mi(e){if(!e)return null;const t=_a();if(!t)throw new di("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function hi(e){const t=_a();if(!t)throw new di("downloadSound");return t.download(e)}function SC(){return _a()?.noiseBaseUrl??"/sounds/noise"}function TC(){const e=Number(_a()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function jC(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 Ci="__ihab_core_tts_config__";function wa(){return globalThis[Ci]?.urlResolver??null}function Kr(){return globalThis[Ci]?.fallbackUrlResolver??null}const MC="__ihab_core_pronunciation_resolver__";function LC(){return globalThis[MC]??null}let $n=null;const Ba=new WeakMap,Yr=new WeakMap,Zr=new WeakMap;let fi=!1;const gi=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function $C(){if(fi||typeof document>"u")return;fi=!0;const e=()=>{try{$n&&$n.state!=="running"&&$n.resume()}catch{}};for(const t of["pointerdown","touchend","keydown"])document.addEventListener(t,e,{capture:!0,passive:!0})}function bi(){if($n)return $n;try{const e=window.AudioContext||window.webkitAudioContext;return e?($n=new e,$C(),$n):null}catch{return null}}function Xr(){try{$n?.resume()}catch{}}function Jr(e,t){const a=Ba.get(t);if(a)return a;try{const r=e.createMediaElementSource(t),i=e.createGain(),s=e.createAnalyser();s.fftSize=1024,s.smoothingTimeConstant=.6,i.gain.value=gi(Yr.get(t)??t.volume),r.connect(i),i.connect(s),i.connect(e.destination);try{t.volume=1}catch{}const l={gain:i,analyser:s};return Ba.set(t,l),l}catch{return null}}function Ka(e){if(!e)return Promise.resolve(null);const t=Ba.get(e);if(t)return Promise.resolve(t.analyser);const a=bi();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Jr(a,e)?.analyser??null);const r=Zr.get(e);if(r)return r;const i=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Jr(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Zr.delete(e)});return Zr.set(e,i),i}function RC(e){if(!e)return null;const t=Ba.get(e);if(t)return t.analyser;const a=bi();return a?a.state==="running"?Jr(a,e)?.analyser??null:(Ka(e),null):null}function Rn(e,t){const a=gi(t);Yr.set(e,a);const r=Ba.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const i=r.gain.gain;try{const s=r.gain.context.currentTime;i.cancelScheduledValues(s),i.setTargetAtTime(a,s,.01)}catch{try{i.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function Ya(e){return Yr.get(e)??e.volume}function PC(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const i=t[r];a+=i*i}return Math.sqrt(a/t.length)}const FC="__ihab_core_image_config__";function aa(){return globalThis[FC]??null}const yi="word_image_existence_map_v1";let qn=null;const Za=new Map;function IC(){if(qn)return qn;try{const e=typeof localStorage<"u"?localStorage.getItem(yi):null,t=e?JSON.parse(e):null;qn=t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{qn={}}return qn}let Qr=null;function OC(){Qr||(Qr=setTimeout(()=>{Qr=null;try{typeof localStorage<"u"&&qn&&localStorage.setItem(yi,JSON.stringify(qn))}catch{}},200))}function HC(e,t){return`${e}_${t??1}`}async function vi(e,t){const a=IC(),r=HC(e,t);if(r in a)return a[r];if(Za.has(r))return Za.get(r);const i=aa();if(!i)return!1;const s=i(e,t);if(!s)return!1;const l=fetch(s,{method:"HEAD",signal:jC(8e3)}).then(u=>u.status>=500?null:u.ok,()=>null).then(u=>(Za.delete(r),u===null?!1:(a[r]=u,OC(),u)));return Za.set(r,l),l}const VC=["onset","vowel","coda","glide"],xi="none",zC={\uCD08\uC131:"onset",\uBAA8\uC74C:"vowel",\uC885\uC131:"coda",\uD65C\uC74C:"glide"},WC="\uC5C6\uC74C";function qC(e){return VC.includes(e)}function UC(e){const t={};for(const[a,r]of Object.entries(e)){const i=qC(a)?a:zC[a];i&&(t[i]=r===WC?xi:r)}return t}const GC={\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"}},_i=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],wi=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],KC=["","\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 Aa(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 YC(e){const t=Aa(e[0]||"");return t?_i[t.cho]:""}function ZC(e){if(!e)return()=>!0;e=e.normalize("NFC");const t=[...e],a=l=>_i.includes(l),r=l=>wi.includes(l),i=t.map(l=>a(l)?"cho":r(l)?"jung":Aa(l)?"syl":"other"),s=t.map(l=>Aa(l));if(i.includes("other")){const l=e.toLowerCase();return u=>u.normalize("NFC").toLowerCase().includes(l)}return l=>{const u=[...l.normalize("NFC")];for(let c=0;c+t.length<=u.length;c++){let d=!0;for(let m=0;m<t.length;m++){const p=u[c+m],C=i[m];if(C==="cho"){if(YC(p)!==t[m]){d=!1;break}}else if(C==="jung"){const y=Aa(p);if(!y||wi[y.jung]!==t[m]){d=!1;break}}else{const y=s[m];if(y&&y.jong===0){const v=Aa(p);if(!v||v.cho!==y.cho||v.jung!==y.jung){d=!1;break}}else if(p!==t[m]){d=!1;break}}}if(d)return!0}return!1}}const XC={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(XC).map(([e,t])=>[t.join(""),KC[Number(e)]]));const JC="word_pair_index_v2",QC="word_pair_index_sig_v2";let Xa=null;function ef(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(JC),t=localStorage.getItem(QC);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function tf(){if(Xa)return Xa;const e=ef();return e?(Xa=e.index,e.sig,Xa):null}function nf(e,t,a){return!(e>0)||!(t>0)?1:Math.max(1,Math.floor((e+a)/(t+a)))}function af(e,t){if(!(e>0))return 1;const a=Math.max(1,Math.floor(t));if(e<=a)return e;const r=Math.ceil(e/a);return Math.max(1,Math.ceil(e/r))}const eo=/[ㄱ-ㅎ]/,rf=/[ㅏ-ㅣ]/;function Bi(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||eo.test(a)||rf.test(a))return a}return null}function of(e){const t=Bi(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":eo.test(t)?"\uC774":"\uAC00"}function sf(e){return`${e}${of(e)}`}function lf(e){const t=Bi(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":eo.test(t)?"\uC744":"\uB97C"}function uf(e){return`${e}${lf(e)}`}function cf(e,t,a){const r=e.slice(),[i]=r.splice(t,1);return r.splice(a,0,i),r}function ka(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const i=Math.floor(t()*(r+1));[a[r],a[i]]=[a[i],a[r]]}return a}const df=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof Rt?.t=="function"?Rt.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function Ai(e,t){if(t===void 0&&(t=df()),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 pf="__ihab_core_word_pool__";function ki(){return globalThis[pf]??null}const Ni=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 mf(e){Ei("time",()=>Ni.__ihabTrainingTimeLogger?.(e))}function hf(e){Ei("completion",()=>Ni.__ihabTrainingCompletionLogger?.(e))}function Ja(e){if(typeof e=="string"){const t=e.trim();return t?Number.isNaN(new Date(t).getTime())?null:t:null}if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.toISOString();if(typeof e=="number"&&Number.isFinite(e)){const t=new Date(e);return Number.isNaN(t.getTime())?null:t.toISOString()}return null}function Jt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function Cf(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 ff(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Jt(r.contextCode)??Jt(r.itemId)??Jt(r.itemCode)??Jt(r.id),question:Jt(r.question)??Jt(r.q)??Jt(r.sentence)??Jt(r.text)??Jt(r.prompt)??Jt(r.word)??Jt(r.targetSyllable),answer:Jt(r.answer),selected:Jt(r.selectedText)??Jt(r.selected),correct:Cf(r),shownAt:Ja(r.shownAt)??Ja(r.shown_at),answeredAt:Ja(r.answeredAt)??Ja(r.answered_at)}}):[]}const to=globalThis;async function gf(){try{return await to.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function Di(e){const t=a=>{};try{const a=to.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function Qa(e){try{to.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function bf(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 yf="Asia/Seoul",vf=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function no(e){let t;if(e instanceof Date)t=e;else if(typeof e=="string"){const a=e.trim(),r=vf.exec(a);t=new Date(r?`${r[1]}T${r[2]}:${r[3]??"00"}${r[4]?`.${r[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:a)}else t=new Date(e);return Number.isNaN(t.getTime())?null:t}const xf=e=>no(e);function Si(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US",r=xf(e);return r?r.toLocaleDateString(a,{timeZone:yf,year:"numeric",month:"short",day:"numeric"}):""}function _f(e,t,a){if(!Number.isFinite(e)||!Number.isFinite(t)||t<1||t>12)return`${e}-${t}`;const r=a&&a.startsWith("ko")?"ko-KR":a||"en-US";return new Intl.DateTimeFormat(r,{year:"numeric",month:"long"}).format(new Date(e,t-1,1))}function er(e,t,a,r){return e("calendar.yearMonth",{year:a,month:r,defaultValue:""})||_f(a,r,t)}function Na(){return ro(new Date)}function ao(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:Na()}function ra(){return Bf(Na())}const wf=540*60*1e3;function Ti(e,t,a){return new Date(Date.UTC(e,t,a)-wf)}function Bf(e){const[t,a,r]=e.split("-").map(Number);return new Date(t,(a||1)-1,r||1)}function ro(e){if(e==null||e==="")return"";const t=no(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function ji(e,t){if(!e)return"";const a=no(e);if(!a)return"";const r=a.getTime(),i=Math.max(0,Math.floor((Date.now()-r)/1e3)),s=Math.floor(i/60),l=Math.floor(s/60),u=Math.floor(l/24),c=Math.floor(u/7),d=Math.floor(u/30),m=Math.floor(u/365);return s<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):s<60?t("store.time.minutesAgo",{n:s}):l<24?t("store.time.hoursAgo",{n:l}):u<7?t("store.time.daysAgo",{n:u}):c<5?t("store.time.weeksAgo",{n:c}):u<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:m})}function Mi(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:i=!1,fallback:s="\u2014"}=t;if(!e)return s;const l=ro(e instanceof Date?e:String(e));if(!l)return s;const[u,c,d]=l.split("-"),m=r?c:String(Number(c)),p=r?d:String(Number(d));return`${u}${a}${m}${a}${p}${i?".":""}`}function oa(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function Li(e,t){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),i=Number(a[2]),s=a[1].padStart(2,"0");return i===0?t("date.timeH",{h:r,hh:s,mm:a[2]}):t("date.timeHM",{h:r,hh:s,m:i,mm:a[2]})}function oo(e){return(e??0).toLocaleString("ko-KR")}const Af=[{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"}]}],kf=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"audio-lines",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 $i(){return Af}function Nf(){return kf}const Ef=[],Df=[],Sf=[],Tf=[];function jf(){return{LISTEN_IN_NOISE:Ef,SHORT_STORY:Df,LONG_STORY:Sf,ORDERING_SENTENCE:Tf}}const Mf=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"audio-lines",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."}],Ri={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function Lf(e){return Mf.map(t=>{const a=Ri[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}var $f={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",selectedOfMax:"\uCD5C\uB300 {{max}}\uAC1C \uC911 {{count}}\uAC1C",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",likeCount:"\uC88B\uC544\uC694 {{count}}",downloadCount:"\uAC00\uC838\uAC04 \uC218 {{count}}",descriptionFor:"{{name}} \uC124\uBA85",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",collapseFor:"{{name}} \uC811\uAE30",expandFor:"{{name}} \uD3BC\uCE58\uAE30",sortFor:"{{name}} \uC815\uB82C",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",playFor:"{{name}} \uC7AC\uC0DD",pauseFor:"{{name}} \uBA48\uCDA4",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",noMatches:"\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",networkError:"\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694."},Rf={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],weekOrdinal:["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"],weekLabel:"{{ord}}\uC8FC",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704",visitCount:"\uBC29\uBB38 {{count}}\uAC74",statusCount:"{{label}} {{count}}\uAC74"},Pf={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",expired:"\uB9CC\uB8CC\uB428",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},Ff={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},If={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},Of={selected:"\uC120\uD0DD\uB428"},Hf={placeholder:"\uC120\uD0DD"},Vf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},zf={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"},Wf={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",feedback:"\uBC84\uADF8\uC2E0\uACE0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C",badgeInsideLabel:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"},qf={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."}}},Uf={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."}},Gf={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"}}},Kf={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},Yf={settings:"\uC124\uC815",start:{title:"\uB2E8\uC5B4\uD6C8\uB828 \uC2DC\uC791",description:"\uC544\uB798 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD574 \uC2DC\uC791\uD558\uC138\uC694"},difficulty:{tooltip:"\uAC00\uC7A5 \uC26C\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uBB34\uC791\uC704', \uAC00\uC7A5 \uC5B4\uB824\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uCD08\uC131\uCC28\uC774' \uC785\uB2C8\uB2E4."},contrast:{label:"\uB300\uB9BD",type:"\uB300\uB9BD \uC885\uB958",count:"\uB300\uB9BD \uAC2F\uC218",n:"{{n}}\uAC1C"},filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\uB4F1\uAE09",excludeImageInfo:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4.",sameStructureInfo:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694.",selectSection:"\uC120\uD0DD",excludeImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",sameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},noQuestions:"\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",countQuestions:"{{n}}\uBB38\uC81C",countSentences:"{{n}}\uBB38\uC7A5",comingSoon:"\uC900\uBE44 \uC911",nextQuestion:"\uB2E4\uC74C \uBB38\uC81C",noiseRatioTitle:"\uC18C\uC74C \uBE44\uC728",noiseRatioValue:"{{ratio}}\uBC30",noiseTypeTitle:"\uC18C\uC74C \uC885\uB958",playVolumeTitle:"\uC804\uCCB4 \uC18C\uB9AC",playSpeedTitle:"\uC7AC\uC0DD \uC18D\uB3C4",meter:{sentence:"\uC7AC\uC0DD",noise:"\uC18C\uC74C",toggle:"\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"},viewResult:"\uACB0\uACFC\uBCF4\uAE30",problemNotice:"{{n}}\uBC88 \uBB38\uC81C \uC785\uB2C8\uB2E4.",trainingSettingsTitle:"\uD6C8\uB828 \uC124\uC815",sentencePreview:"\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30",notHeard:"\uC548 \uB4E4\uB838\uC5B4\uC694.",heardWell:"\uC798 \uB4E4\uB838\uC5B4\uC694.",confirmTitle:"\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694.",noSoundWaveform:"\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",noise:{level:{none:"\uC5C6\uC74C",weak:"\uC57D\uD568",medium:"\uBCF4\uD1B5",strong:"\uAC15\uD568",veryStrong:"\uB9E4\uC6B0 \uAC15\uD568"},type:{none:"\uC5C6\uC74C",default:"\uAE30\uBCF8",street:"\uAE38\uAC70\uB9AC",buzz:"\uC640\uAE00\uC640\uAE00",restaurant:"\uC2DD\uB2F9"}},listenTitle:"\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694.",listenButton:"\uBB38\uC7A5 \uB4E3\uAE30",playSound:"\uC18C\uB9AC \uB4E3\uAE30",playAll:"\uBAA8\uB450 \uB4E3\uAE30",selectInOrder:"\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",previewFor:"{{name}} \uBBF8\uB9AC \uB4E3\uAE30",stopFor:"{{name}} \uC815\uC9C0",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ttsUnavailable:"\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{pendingDone:"\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",replaySound:"{{no}}\uBC88 \uB2E4\uC2DC \uB4E3\uAE30",replaySoundStop:"{{no}}\uBC88 \uB4E3\uAE30 \uBA48\uCDA4",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",audioStatus:{idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD",synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026"}},Zf={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"},Xf={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"}},Jf={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"}}}},Qf={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"}},e2={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},t2={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"}},n2={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."}},a2={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},r2={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"},o2={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},s2={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",topInfo:"\uC0C1\uB2E8 \uC815\uBCF4",bottomInfo:"\uD558\uB2E8 \uC815\uBCF4",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",copyName:"{{name}} (\uBCF5\uC0AC)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"{{name}} \uC0AD\uC81C",viewLabel:"\uBCF4\uAE30 \uBC29\uC2DD",sortLabel:"\uC815\uB82C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},publisherFilter:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30",groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",markName:{o:"\uB9DE\uC74C",triangle:"\uC560\uB9E4",x:"\uD2C0\uB9BC"},button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78 \uC544\uB798 \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB20C\uB7EC \uB9E4\uAE30\uC138\uC694. \uB9C8\uC6B0\uC2A4\uB85C\uB294 \uCE78\uC5D0 \uC190\uC744 \uC5B9\uC73C\uBA74, \uC790\uD310\uC73C\uB85C\uB294 \uCE78\uC5D0 \uCD08\uC810\uC774 \uAC00\uBA74 \uB098\uD0C0\uB0A9\uB2C8\uB2E4.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},reorder:{moved:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40",handle:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)",hint:"Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"}},i2={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",gradeNone:"\uC5C6\uC74C",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",field:"\uC758\uBBF8\uBC94\uC8FC",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"}},l2={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},u2={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"}},c2={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"}},d2={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},p2={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},m2={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",other:"\uAE30\uD0C0"}},h2={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"}},C2={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB300\uB9BD\uC30D\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},phonemeSelect:{title:"\uC74C\uC18C \uC120\uD0DD",vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",infoInclude:"\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.",infoPick:"\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694.",infoContrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."},count:"{{n}}\uAC1C",countLabel:"\uC74C\uC18C \uAC1C\uC218",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:["1\uB4F1\uAE09 : \uD559\uB839\uC804\uAE30\uC5D0 \uC2B5\uB4DD\uD558\uC5EC \uD3C9\uC0DD\uC5D0 \uAC78\uCCD0 \uC77C\uC0C1 \uC5B8\uC5B4\uC0DD\uD65C\uC744 \uD558\uB294 \uB370 \uC0AC\uC6A9\uB418\uB294 \uC5B4\uD718","2\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 1-2\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","3\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 3-4\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","4\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 5-6\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","\uB4F1\uAE09\uC5C6\uC74C : \uAD6D\uB9BD\uAD6D\uC5B4\uC6D0 \uD45C\uC900 \uC5B4\uD718 \uC678 \uACE0\uBE48\uB3C4 \uC0DD\uD65C \uC5B4\uD718, \uC2E0\uC870\uC5B4 \uBC0F \uC678\uB798\uC5B4"],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."]},f2={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"}},g2={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
847
+ `),this.name="StorageNotConfiguredError"}};function DC(e){EC(e)}function pi(e,t){if(!e)return null;const a=_a();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function mi(e){if(!e)return null;const t=_a();if(!t)throw new di("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function hi(e){const t=_a();if(!t)throw new di("downloadSound");return t.download(e)}function SC(){return _a()?.noiseBaseUrl??"/sounds/noise"}function TC(){const e=Number(_a()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function jC(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 Ci="__ihab_core_tts_config__";function wa(){return globalThis[Ci]?.urlResolver??null}function Kr(){return globalThis[Ci]?.fallbackUrlResolver??null}const MC="__ihab_core_pronunciation_resolver__";function LC(){return globalThis[MC]??null}let Rn=null;const Ba=new WeakMap,Yr=new WeakMap,Zr=new WeakMap;let fi=!1;const gi=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function $C(){if(fi||typeof document>"u")return;fi=!0;const e=()=>{try{Rn&&Rn.state!=="running"&&Rn.resume()}catch{}};for(const t of["pointerdown","touchend","keydown"])document.addEventListener(t,e,{capture:!0,passive:!0})}function bi(){if(Rn)return Rn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(Rn=new e,$C(),Rn):null}catch{return null}}function Xr(){try{Rn?.resume()}catch{}}function Jr(e,t){const a=Ba.get(t);if(a)return a;try{const r=e.createMediaElementSource(t),i=e.createGain(),s=e.createAnalyser();s.fftSize=1024,s.smoothingTimeConstant=.6,i.gain.value=gi(Yr.get(t)??t.volume),r.connect(i),i.connect(s),i.connect(e.destination);try{t.volume=1}catch{}const l={gain:i,analyser:s};return Ba.set(t,l),l}catch{return null}}function Ka(e){if(!e)return Promise.resolve(null);const t=Ba.get(e);if(t)return Promise.resolve(t.analyser);const a=bi();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Jr(a,e)?.analyser??null);const r=Zr.get(e);if(r)return r;const i=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Jr(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Zr.delete(e)});return Zr.set(e,i),i}function RC(e){if(!e)return null;const t=Ba.get(e);if(t)return t.analyser;const a=bi();return a?a.state==="running"?Jr(a,e)?.analyser??null:(Ka(e),null):null}function Pn(e,t){const a=gi(t);Yr.set(e,a);const r=Ba.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const i=r.gain.gain;try{const s=r.gain.context.currentTime;i.cancelScheduledValues(s),i.setTargetAtTime(a,s,.01)}catch{try{i.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function Ya(e){return Yr.get(e)??e.volume}function PC(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const i=t[r];a+=i*i}return Math.sqrt(a/t.length)}const FC="__ihab_core_image_config__";function aa(){return globalThis[FC]??null}const yi="word_image_existence_map_v1";let Un=null;const Za=new Map;function IC(){if(Un)return Un;try{const e=typeof localStorage<"u"?localStorage.getItem(yi):null,t=e?JSON.parse(e):null;Un=t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{Un={}}return Un}let Qr=null;function OC(){Qr||(Qr=setTimeout(()=>{Qr=null;try{typeof localStorage<"u"&&Un&&localStorage.setItem(yi,JSON.stringify(Un))}catch{}},200))}function HC(e,t){return`${e}_${t??1}`}async function vi(e,t){const a=IC(),r=HC(e,t);if(r in a)return a[r];if(Za.has(r))return Za.get(r);const i=aa();if(!i)return!1;const s=i(e,t);if(!s)return!1;const l=fetch(s,{method:"HEAD",signal:jC(8e3)}).then(u=>u.status>=500?null:u.ok,()=>null).then(u=>(Za.delete(r),u===null?!1:(a[r]=u,OC(),u)));return Za.set(r,l),l}const VC=["onset","vowel","coda","glide"],xi="none",zC={\uCD08\uC131:"onset",\uBAA8\uC74C:"vowel",\uC885\uC131:"coda",\uD65C\uC74C:"glide"},WC="\uC5C6\uC74C";function qC(e){return VC.includes(e)}function UC(e){const t={};for(const[a,r]of Object.entries(e)){const i=qC(a)?a:zC[a];i&&(t[i]=r===WC?xi:r)}return t}const GC={\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"}},_i=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],wi=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],KC=["","\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 Aa(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 YC(e){const t=Aa(e[0]||"");return t?_i[t.cho]:""}function ZC(e){if(!e)return()=>!0;e=e.normalize("NFC");const t=[...e],a=l=>_i.includes(l),r=l=>wi.includes(l),i=t.map(l=>a(l)?"cho":r(l)?"jung":Aa(l)?"syl":"other"),s=t.map(l=>Aa(l));if(i.includes("other")){const l=e.toLowerCase();return u=>u.normalize("NFC").toLowerCase().includes(l)}return l=>{const u=[...l.normalize("NFC")];for(let c=0;c+t.length<=u.length;c++){let d=!0;for(let m=0;m<t.length;m++){const p=u[c+m],C=i[m];if(C==="cho"){if(YC(p)!==t[m]){d=!1;break}}else if(C==="jung"){const y=Aa(p);if(!y||wi[y.jung]!==t[m]){d=!1;break}}else{const y=s[m];if(y&&y.jong===0){const x=Aa(p);if(!x||x.cho!==y.cho||x.jung!==y.jung){d=!1;break}}else if(p!==t[m]){d=!1;break}}}if(d)return!0}return!1}}const XC={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(XC).map(([e,t])=>[t.join(""),KC[Number(e)]]));const JC="word_pair_index_v2",QC="word_pair_index_sig_v2";let Xa=null;function ef(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(JC),t=localStorage.getItem(QC);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function tf(){if(Xa)return Xa;const e=ef();return e?(Xa=e.index,e.sig,Xa):null}function nf(e,t,a){return!(e>0)||!(t>0)?1:Math.max(1,Math.floor((e+a)/(t+a)))}function af(e,t){if(!(e>0))return 1;const a=Math.max(1,Math.floor(t));if(e<=a)return e;const r=Math.ceil(e/a);return Math.max(1,Math.ceil(e/r))}const eo=/[ㄱ-ㅎ]/,rf=/[ㅏ-ㅣ]/;function Bi(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||eo.test(a)||rf.test(a))return a}return null}function of(e){const t=Bi(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":eo.test(t)?"\uC774":"\uAC00"}function sf(e){return`${e}${of(e)}`}function lf(e){const t=Bi(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":eo.test(t)?"\uC744":"\uB97C"}function uf(e){return`${e}${lf(e)}`}function cf(e,t,a){const r=e.slice(),[i]=r.splice(t,1);return r.splice(a,0,i),r}function ka(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const i=Math.floor(t()*(r+1));[a[r],a[i]]=[a[i],a[r]]}return a}const df=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof Rt?.t=="function"?Rt.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function Ai(e,t){if(t===void 0&&(t=df()),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 pf="__ihab_core_word_pool__";function ki(){return globalThis[pf]??null}const Ni=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 mf(e){Ei("time",()=>Ni.__ihabTrainingTimeLogger?.(e))}function hf(e){Ei("completion",()=>Ni.__ihabTrainingCompletionLogger?.(e))}function Ja(e){if(typeof e=="string"){const t=e.trim();return t?Number.isNaN(new Date(t).getTime())?null:t:null}if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.toISOString();if(typeof e=="number"&&Number.isFinite(e)){const t=new Date(e);return Number.isNaN(t.getTime())?null:t.toISOString()}return null}function Jt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function Cf(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 ff(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Jt(r.contextCode)??Jt(r.itemId)??Jt(r.itemCode)??Jt(r.id),question:Jt(r.question)??Jt(r.q)??Jt(r.sentence)??Jt(r.text)??Jt(r.prompt)??Jt(r.word)??Jt(r.targetSyllable),answer:Jt(r.answer),selected:Jt(r.selectedText)??Jt(r.selected),correct:Cf(r),shownAt:Ja(r.shownAt)??Ja(r.shown_at),answeredAt:Ja(r.answeredAt)??Ja(r.answered_at)}}):[]}const to=globalThis;async function gf(){try{return await to.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function Di(e){const t=a=>{};try{const a=to.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function Qa(e){try{to.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function bf(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 yf="Asia/Seoul",vf=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function no(e){let t;if(e instanceof Date)t=e;else if(typeof e=="string"){const a=e.trim(),r=vf.exec(a);t=new Date(r?`${r[1]}T${r[2]}:${r[3]??"00"}${r[4]?`.${r[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:a)}else t=new Date(e);return Number.isNaN(t.getTime())?null:t}const xf=e=>no(e);function Si(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US",r=xf(e);return r?r.toLocaleDateString(a,{timeZone:yf,year:"numeric",month:"short",day:"numeric"}):""}function _f(e,t,a){if(!Number.isFinite(e)||!Number.isFinite(t)||t<1||t>12)return`${e}-${t}`;const r=a&&a.startsWith("ko")?"ko-KR":a||"en-US";return new Intl.DateTimeFormat(r,{year:"numeric",month:"long"}).format(new Date(e,t-1,1))}function er(e,t,a,r){return e("calendar.yearMonth",{year:a,month:r,defaultValue:""})||_f(a,r,t)}function Na(){return ro(new Date)}function ao(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:Na()}function ra(){return Bf(Na())}const wf=540*60*1e3;function Ti(e,t,a){return new Date(Date.UTC(e,t,a)-wf)}function Bf(e){const[t,a,r]=e.split("-").map(Number);return new Date(t,(a||1)-1,r||1)}function ro(e){if(e==null||e==="")return"";const t=no(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function ji(e,t){if(!e)return"";const a=no(e);if(!a)return"";const r=a.getTime(),i=Math.max(0,Math.floor((Date.now()-r)/1e3)),s=Math.floor(i/60),l=Math.floor(s/60),u=Math.floor(l/24),c=Math.floor(u/7),d=Math.floor(u/30),m=Math.floor(u/365);return s<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):s<60?t("store.time.minutesAgo",{n:s}):l<24?t("store.time.hoursAgo",{n:l}):u<7?t("store.time.daysAgo",{n:u}):c<5?t("store.time.weeksAgo",{n:c}):u<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:m})}function Mi(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:i=!1,fallback:s="\u2014"}=t;if(!e)return s;const l=ro(e instanceof Date?e:String(e));if(!l)return s;const[u,c,d]=l.split("-"),m=r?c:String(Number(c)),p=r?d:String(Number(d));return`${u}${a}${m}${a}${p}${i?".":""}`}function oa(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function Li(e,t){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),i=Number(a[2]),s=a[1].padStart(2,"0");return i===0?t("date.timeH",{h:r,hh:s,mm:a[2]}):t("date.timeHM",{h:r,hh:s,m:i,mm:a[2]})}function oo(e){return(e??0).toLocaleString("ko-KR")}const Af=[{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"}]}],kf=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"audio-lines",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 $i(){return Af}function Nf(){return kf}const Ef=[],Df=[],Sf=[],Tf=[];function jf(){return{LISTEN_IN_NOISE:Ef,SHORT_STORY:Df,LONG_STORY:Sf,ORDERING_SENTENCE:Tf}}const Mf=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"audio-lines",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."}],Ri={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function Lf(e){return Mf.map(t=>{const a=Ri[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}var $f={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",selectedOfMax:"\uCD5C\uB300 {{max}}\uAC1C \uC911 {{count}}\uAC1C",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",likeCount:"\uC88B\uC544\uC694 {{count}}",downloadCount:"\uAC00\uC838\uAC04 \uC218 {{count}}",descriptionFor:"{{name}} \uC124\uBA85",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",collapseFor:"{{name}} \uC811\uAE30",expandFor:"{{name}} \uD3BC\uCE58\uAE30",sortFor:"{{name}} \uC815\uB82C",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",playFor:"{{name}} \uC7AC\uC0DD",pauseFor:"{{name}} \uBA48\uCDA4",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",noMatches:"\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",networkError:"\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694."},Rf={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],weekOrdinal:["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"],weekLabel:"{{ord}}\uC8FC",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704",visitCount:"\uBC29\uBB38 {{count}}\uAC74",statusCount:"{{label}} {{count}}\uAC74"},Pf={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",expired:"\uB9CC\uB8CC\uB428",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},Ff={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},If={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},Of={selected:"\uC120\uD0DD\uB428"},Hf={placeholder:"\uC120\uD0DD"},Vf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},zf={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"},Wf={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",feedback:"\uBC84\uADF8\uC2E0\uACE0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C",badgeInsideLabel:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"},qf={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."}}},Uf={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."}},Gf={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"}}},Kf={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},Yf={settings:"\uC124\uC815",start:{title:"\uB2E8\uC5B4\uD6C8\uB828 \uC2DC\uC791",description:"\uC544\uB798 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD574 \uC2DC\uC791\uD558\uC138\uC694"},difficulty:{tooltip:"\uAC00\uC7A5 \uC26C\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uBB34\uC791\uC704', \uAC00\uC7A5 \uC5B4\uB824\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uCD08\uC131\uCC28\uC774' \uC785\uB2C8\uB2E4."},contrast:{label:"\uB300\uB9BD",type:"\uB300\uB9BD \uC885\uB958",count:"\uB300\uB9BD \uAC2F\uC218",n:"{{n}}\uAC1C"},filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\uB4F1\uAE09",excludeImageInfo:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4.",sameStructureInfo:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694.",selectSection:"\uC120\uD0DD",excludeImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",sameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},noQuestions:"\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",countQuestions:"{{n}}\uBB38\uC81C",countSentences:"{{n}}\uBB38\uC7A5",comingSoon:"\uC900\uBE44 \uC911",nextQuestion:"\uB2E4\uC74C \uBB38\uC81C",noiseRatioTitle:"\uC18C\uC74C \uBE44\uC728",noiseRatioValue:"{{ratio}}\uBC30",noiseTypeTitle:"\uC18C\uC74C \uC885\uB958",playVolumeTitle:"\uC804\uCCB4 \uC18C\uB9AC",playSpeedTitle:"\uC7AC\uC0DD \uC18D\uB3C4",meter:{sentence:"\uC7AC\uC0DD",noise:"\uC18C\uC74C",toggle:"\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"},viewResult:"\uACB0\uACFC\uBCF4\uAE30",problemNotice:"{{n}}\uBC88 \uBB38\uC81C \uC785\uB2C8\uB2E4.",trainingSettingsTitle:"\uD6C8\uB828 \uC124\uC815",sentencePreview:"\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30",notHeard:"\uC548 \uB4E4\uB838\uC5B4\uC694.",heardWell:"\uC798 \uB4E4\uB838\uC5B4\uC694.",confirmTitle:"\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694.",noSoundWaveform:"\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",noise:{level:{none:"\uC5C6\uC74C",weak:"\uC57D\uD568",medium:"\uBCF4\uD1B5",strong:"\uAC15\uD568",veryStrong:"\uB9E4\uC6B0 \uAC15\uD568"},type:{none:"\uC5C6\uC74C",default:"\uAE30\uBCF8",street:"\uAE38\uAC70\uB9AC",buzz:"\uC640\uAE00\uC640\uAE00",restaurant:"\uC2DD\uB2F9"}},listenTitle:"\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694.",listenButton:"\uBB38\uC7A5 \uB4E3\uAE30",playSound:"\uC18C\uB9AC \uB4E3\uAE30",playAll:"\uBAA8\uB450 \uB4E3\uAE30",selectInOrder:"\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",previewFor:"{{name}} \uBBF8\uB9AC \uB4E3\uAE30",stopFor:"{{name}} \uC815\uC9C0",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ttsUnavailable:"\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{pendingDone:"\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",replaySound:"{{no}}\uBC88 \uB2E4\uC2DC \uB4E3\uAE30",replaySoundStop:"{{no}}\uBC88 \uB4E3\uAE30 \uBA48\uCDA4",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",audioStatus:{idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD",synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026"}},Zf={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"},Xf={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"}},Jf={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"}}}},Qf={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"}},e2={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},t2={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"}},n2={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."}},a2={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},r2={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"},o2={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},s2={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",topInfo:"\uC0C1\uB2E8 \uC815\uBCF4",bottomInfo:"\uD558\uB2E8 \uC815\uBCF4",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",copyName:"{{name}} (\uBCF5\uC0AC)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"{{name}} \uC0AD\uC81C",viewLabel:"\uBCF4\uAE30 \uBC29\uC2DD",sortLabel:"\uC815\uB82C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},publisherFilter:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30",groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",markName:{o:"\uB9DE\uC74C",triangle:"\uC560\uB9E4",x:"\uD2C0\uB9BC"},button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78 \uC544\uB798 \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB20C\uB7EC \uB9E4\uAE30\uC138\uC694. \uB9C8\uC6B0\uC2A4\uB85C\uB294 \uCE78\uC5D0 \uC190\uC744 \uC5B9\uC73C\uBA74, \uC790\uD310\uC73C\uB85C\uB294 \uCE78\uC5D0 \uCD08\uC810\uC774 \uAC00\uBA74 \uB098\uD0C0\uB0A9\uB2C8\uB2E4.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},reorder:{moved:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40",handle:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)",hint:"Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"}},i2={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",gradeNone:"\uC5C6\uC74C",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",field:"\uC758\uBBF8\uBC94\uC8FC",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"}},l2={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},u2={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"}},c2={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"}},d2={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},p2={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},m2={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",other:"\uAE30\uD0C0"}},h2={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"}},C2={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB300\uB9BD\uC30D\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},phonemeSelect:{title:"\uC74C\uC18C \uC120\uD0DD",vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",infoInclude:"\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.",infoPick:"\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694.",infoContrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."},count:"{{n}}\uAC1C",countLabel:"\uC74C\uC18C \uAC1C\uC218",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:["1\uB4F1\uAE09 : \uD559\uB839\uC804\uAE30\uC5D0 \uC2B5\uB4DD\uD558\uC5EC \uD3C9\uC0DD\uC5D0 \uAC78\uCCD0 \uC77C\uC0C1 \uC5B8\uC5B4\uC0DD\uD65C\uC744 \uD558\uB294 \uB370 \uC0AC\uC6A9\uB418\uB294 \uC5B4\uD718","2\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 1-2\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","3\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 3-4\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","4\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 5-6\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","\uB4F1\uAE09\uC5C6\uC74C : \uAD6D\uB9BD\uAD6D\uC5B4\uC6D0 \uD45C\uC900 \uC5B4\uD718 \uC678 \uACE0\uBE48\uB3C4 \uC0DD\uD65C \uC5B4\uD718, \uC2E0\uC870\uC5B4 \uBC0F \uC678\uB798\uC5B4"],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."]},f2={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"}},g2={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"},b2={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"}}},y2={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},v2={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"}},x2={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},_2={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"},w2={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},B2={ariaLabel:"\uC120\uD0DD \uD0ED"},A2={ariaLabel:"\uD0ED"},k2={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},N2={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},E2={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"}},D2={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",detailFor:"{{name}} \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"}},S2={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"}},T2={manage:{unit:"\uAC74"}},j2={cancelLabel:"\uCDE8\uC18C"},M2={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},L2={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"},$2={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654",scrollRegion:"\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C",rowActionHint:"\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4"},R2={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"},P2={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},F2={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},I2={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},O2={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},H2={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"}},V2={clearSelection:"\uC120\uD0DD \uD574\uC81C"},z2={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},W2={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},q2={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},U2={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},G2={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},K2={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},Y2={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"},Z2={common:$f,calendar:Rf,passCard:Pf,searchField:Ff,rating:If,colorPicker:Of,dropdown:Hf,accordion:Vf,header:zf,nav:Wf,settings:qf,usage:Uf,account:Gf,help:Kf,training:Yf,trainingSettings:Zf,customers:Xf,payment:Jf,coupons:Qf,visits:e2,company:t2,trainingType:n2,myWordTraining:a2,myWordTable:r2,keyWords:o2,wordTable:s2,wordSearch:i2,wordPrint:l2,topic:u2,accessLinkManager:c2,login:d2,trainingPlanRun:p2,device:m2,manager:h2,wordPairs:C2,game:f2,footer:g2,landing:b2,date:y2,trainingSetPage:v2,wordTrainingPreview:x2,wordData:_2,textField:w2,segmentedControl:B2,tabs:A2,fileUpload:k2,avatar:N2,myHomework:E2,trainingStatus:D2,store:S2,homework:T2,inquiry:j2,progress:M2,trainingMiss:L2,table:$2,wordScore:R2,topBanner:P2,datePicker:F2,report:I2,tooltip:O2,phonemeProfile:H2,bulkBar:V2,debug:z2,badge:W2,loader:q2,soundCompass:U2,breadcrumb:G2,board:K2,promoBannerBg:Y2},X2={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",collapseFor:"Collapse {{name}}",expandFor:"Expand {{name}}",sortFor:"Sort {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",likeCount_one:"{{count}} like",likeCount_other:"{{count}} likes",selectedOfMax:"{{count}} of {{max}}",downloadCount_one:"{{count}} download",downloadCount_other:"{{count}} downloads",descriptionFor:"About {{name}}",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",playFor:"Play {{name}}",pauseFor:"Pause {{name}}",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",noMatches:"No matching items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error",networkError:"The network connection is unstable. Check your connection and try again."},J2={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekLabel:"Week {{ord}}",prevMonth:"Previous month",addOnDate:"Add a visit on {{date}}",nextMonth:"Next month",prevWeek:"Previous week",nextWeek:"Next week",legend:{visited:"Visited",scheduled:"Scheduled",noVisit:"No Show"},periodSelect:"Period unit",visitCount_one:"{{count}} visit",visitCount_other:"{{count}} visits",statusCount:"{{count}} {{label}}",weekOrdinal:["1","2","3","4","5","6","7"]},Q2={planSuffix:"Plan",labeledPlan:"{{label}} Plan",couponCode:"Pass Code",specialLabel:"Open Special",unitDay:"d",unitYear:"yr",remainingDay:"{{n}}d left",remainingHour:"{{n}}h left",remainingMinute:"{{n}}m left",remainingSecond:"{{n}}s left",expired:"Expired",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},eg={clearAriaLabel:"Clear search"},tg={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},ng={selected:"selected"},ag={placeholder:"Select"},rg={collapse:"Collapse",expand:"Expand"},og={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},sg={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",feedback:"Report a bug",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu",badgeLabel:"{{label}}, {{count}}",badgeInsideLabel_one:"{{label}}, {{count}} notification inside",badgeInsideLabel_other:"{{label}}, {{count}} notifications inside"},ig={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."}}},lg={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"}},ug={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"}}},cg={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},dg={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_one:"{{n}} question",countQuestions_other:"{{n}} questions",countSentences_one:"{{n}} sentence",countSentences_other:"{{n}} sentences",comingSoon:"Coming Soon",nextQuestion:"Next",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playAll:"Play All",selectInOrder:"Select the cards in the order you heard.",stop:"Stop",preview:"Preview",previewFor:"Preview {{name}}",stopFor:"Stop {{name}}",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",ttsUnavailable:"Speech playback isn't available on this device.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{pendingDone:"Results are still being calculated, so you can't finish yet.",eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",replaySound:"Replay item {{no}}",replaySoundStop:"Stop item {{no}}",done:"Done",viewResult:"View Results",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",audioStatus:{idle:"Idle",resolving:"Resolving\u2026",checking_exists:"Checking file\u2026",getting_signed_url:"Getting URL\u2026",downloading:"Downloading\u2026",measuring_duration:"Measuring length\u2026",ready:"Ready",error:"Error",synthesizing:"Preparing the sound\u2026"}},pg={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"},mg={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"}},hg={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},Cg={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"}},fg={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},gg={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},bg={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."}},yg={comingSoon:"Word training is coming soon."},vg={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"},xg={title:"Key Words",empty:"No key words available."},_g={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",topInfo:"Header",bottomInfo:"Footer",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount_one:"{{count}} word",itemCount_other:"{{count}} words",deleteAriaLabel:"Delete {{name}}",viewLabel:"View as",sortLabel:"Sort by",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},publisherFilter:"Show only tables by {{name}}",groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",markName:{o:"Correct",triangle:"Partial",x:"Incorrect"},button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse they appear when you hover the cell; with a keyboard, when focus reaches it.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved_one:"Saved {{count}} mark for {{name}}.",saved_other:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage_one:"Builds a new table from the {{count}} cell {{name}} got wrong or partial. Correct ones are left out.",reviewMessage_other:"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_one:"Created \u201C{{name}}\u201D \u2014 {{count}} cell.",reviewCreated_other:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage_one:"You marked {{count}} cell but have not saved. Leaving discards it.",discardMessage_other:"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"}},wg={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}}",gradeNone:"None",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",field:"Semantic Category",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}}"}},Bg={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},Ag={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"}},kg={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_one:"Used {{count}} time",uses_other:"Used {{count}} times",expiresAt:"Expires: {{date}}",createdAt:"Created: {{date}}",confirmDelete:"Delete this link?",deactivate:"Deactivate",delete:"Delete",status:{active:"Active",expired:"Expired",inactive:"Inactive"}},Ng={passwordPlaceholder:"Enter password"},Eg={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",validationError:{brandAndProduct:"Please enter brand and product name."},addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove",type:{hearingAid:"Hearing Aid",cochlearImplant:"Cochlear Implant",other:"Other"}},Dg={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"}},Sg={editBanner:{message:"Saving will update the contrast pair table you're editing."},phonemeSelect:{title:"Phoneme Selection",vs:"vs"},caution:"Caution",mode:{include:"Phoneme Include",pick:"Phoneme Contrast",contrast:"Specify Contrast",infoTitle:"Contrast Mode",infoInclude:"Include \u2014 finds words containing all selected phonemes, plus their minimal pair.",infoPick:"Contrast \u2014 matches only if the selected phoneme is the actual point of difference in the pair.",infoContrast:"Specify Contrast \u2014 directly choose phonemes for the base word and the contrasting word to find pairs."},count:"{{n}}",countLabel:"Number of phonemes",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:["Level 1 \u2014 everyday vocabulary acquired before school age and used for life","Level 2 \u2014 difficulty of grades 1\u20132","Level 3 \u2014 difficulty of grades 3\u20134","Level 4 \u2014 difficulty of grades 5\u20136","No level \u2014 frequent everyday words outside the national standard list, plus coinages and loanwords"],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."]},Tg={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"}},jg={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 Sicheong-gil, Chuncheon, Gangwon, Korea"},Mg={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"}}},Lg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},$g={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},Rg={answer:"Answer",distractor:"Distractor"},Pg={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount_one:"Downloading {{n}} word",downloadingCount_other:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},Fg={clearAriaLabel:"Clear input"},Ig={ariaLabel:"Select tab"},Og={ariaLabel:"Tabs"},Hg={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Vg={ariaLabel:"User avatar"},zg={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"}},Wg={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_one:"{{n}} session",countLabel_other:"{{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",detailFor:"{{name}} details",trainingType:{LISTEN_IN_NOISE:"Sentence in Noise",SHORT_STORY:"Short Story",LONG_STORY:"Long Story",ORDERING_SENTENCE:"Sentence Ordering"}},qg={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)"}},Ug={manage:{unit:"item(s)"}},Gg={cancelLabel:"Cancel"},Kg={subtitle:"Select a topic to start listening practice."},Yg={steps:"Step {{current}} of {{total}}"},Zg={panelTitle:"Training misses",viewItems:"Items",viewTypes:"Types",colPending:"Left",colTrend:"Change",colRuns:"Runs",unitItem:" items",skippedOnly_one:"{{n}} older record was excluded \u2014 it does not say what was answered.",skippedOnly_other:"{{n}} older records 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_one:"{{count}} run",runs_other:"{{count}} runs",avgDuration:"{{sec}}s avg"},Xg={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},Jg={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}}"},Qg={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},e4={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},t4={previewRegion:"Report preview \u2014 scrollable sideways"},n4={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},a4={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},r4={clearSelection:"Clear selection"},o4={showResult:"Show {{type}} result"},s4={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},i4={loading:"Loading"},l4={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},u4={ariaLabel:"Breadcrumb"},c4={empty:"No items yet."},d4={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"},p4={common:X2,calendar:J2,passCard:Q2,searchField:eg,rating:tg,colorPicker:ng,dropdown:ag,accordion:rg,header:og,nav:sg,settings:ig,usage:lg,account:ug,help:cg,training:dg,trainingSettings:pg,customers:mg,payment:hg,coupons:Cg,visits:fg,company:gg,trainingType:bg,myWordTraining:yg,myWordTable:vg,keyWords:xg,wordTable:_g,wordSearch:wg,wordPrint:Bg,topic:Ag,accessLinkManager:kg,login:Ng,device:Eg,manager:Dg,wordPairs:Sg,game:Tg,footer:jg,landing:Mg,date:Lg,trainingSetPage:$g,wordTrainingPreview:Rg,wordData:Pg,textField:Fg,segmentedControl:Ig,tabs:Og,fileUpload:Hg,avatar:Vg,myHomework:zg,trainingStatus:Wg,store:qg,homework:Ug,inquiry:Gg,trainingPlanRun:Kg,progress:Yg,trainingMiss:Zg,table:Xg,wordScore:Jg,topBanner:Qg,datePicker:e4,report:t4,tooltip:n4,phonemeProfile:a4,bulkBar:r4,debug:o4,badge:s4,loader:i4,soundCompass:l4,breadcrumb:u4,board:c4,promoBannerBg:d4};const m4="0.336.0",h4=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],so="ko",C4="ihab_display_language";function Pi(){if(typeof window>"u")return so;try{const e=localStorage.getItem(C4);if(e&&h4.some(t=>t.code===e))return e}catch{}return so}function Fi(e){try{document.documentElement.lang=e}catch{}}Rt.on("languageChanged",Fi),Fi(Pi()),Rt.use(xe.initReactI18next).init({resources:{ko:{translation:Z2},en:{translation:p4}},lng:Pi(),fallbackLng:so,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const f4=new Map;try{Rt.store?.on?.("added",()=>f4.clear())}catch{}let tr=null,Ii=null,Oi=null;function g4(){const e=ki();if(e&&e.entries.length>0){const t=tf();if(tr&&Ii===e&&Oi===t)return tr;const a=new Set,r=[];for(const i of e.entries)!i.word||a.has(i.word)||(a.add(i.word),r.push({w:i.word,s:i.syllables,p:t?.[i.word]?[...t[i.word].cho??[],...t[i.word].jung??[],...t[i.word].jong??[]]:[],pron:i.pronunciation||i.word,grade:i.grade}));return tr=r,Ii=e,Oi=t,tr}return[]}new Proxy([],{get(e,t){const a=g4(),r=a[t];return typeof r=="function"?r.bind(a):r}});function b4(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 y4(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&b4(r.attrValue)&&(r.keepAttr=!1)};zr.addHook("uponSanitizeAttribute",t);try{return zr.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{zr.removeHook("uponSanitizeAttribute",t)}}function v4(e){const[t,a]=o.useState(null),[r,i]=o.useState(null),[s,l]=o.useState(null),[u,c]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),i(null),l(null);return}const d=e.split("/").pop();let m=e;d&&(e.startsWith("/")?m=Gr(e):/^(Logo|Symbol)/i.test(d)?m=Gr(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),i(null),l(null),a(m)},[e]),o.useEffect(()=>{if(!t)return;let d=!1;async function m(){try{let p=await fetch(t);p.ok||(p=await fetch(t));const C=p.headers.get("content-type")||"";if(d)return;if(C.includes("svg")){i("mask");return}if(C.startsWith("image/")){i("img");return}const y=await fetch(t);if(!y.ok)throw new Error("not ok");const v=await y.text();if(d)return;if(/^\s*<svg[\s>]/i.test(v)){const f=y4(v);if(!f){i("none");return}l(f),i("inline");return}i("none")}catch{d||i("none")}}return m(),()=>{d=!0}},[t]),o.useEffect(()=>{let d=!1,m=null;return r==="mask"&&t&&fetch(t).then(p=>{if(!p.ok)throw new Error("fetch failed");return p.blob()}).then(p=>{d||(m=URL.createObjectURL(p),c(m))}).catch(()=>{d||i("img")}),()=>{d=!0,m&&URL.revokeObjectURL(m),c(null)}},[r,t]),{iconToUse:t,mode:r,svgText:s,blobUrl:u}}function at(e){const{icon:t,label:a,className:r,imgClassName:i,maskClassName:s,svgClassName:l,wrapperStyle:u,size:c}=e||{},d=r??"iconRenderer-icon",m=i??"iconRenderer-icon-image",p=s??"iconRenderer-icon-mask",C=l??"iconRenderer-icon-svg",y=typeof t=="string"?t:null,v=V0(y),{iconToUse:f,mode:h,svgText:_,blobUrl:g}=v4(y),k=(w,A={})=>n.jsx("span",{className:d,style:u,...A,children:w}),b=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,N=(w,A={})=>n.jsx("img",{src:w,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:m,...A,style:b?{...A.style,...b}:A.style});if(!t)return null;if(typeof t!="string")return k(t);if(t==="none")return k(n.jsx("span",{className:C,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(v)try{return k(o.createElement(v,{className:C,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(f&&f.endsWith(".svg")){if(h==="mask"){const w={"--icon-url":g?`url(${g})`:`url(${f})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return k(n.jsx("span",{className:p,style:w}),{"aria-hidden":"true"})}return h==="img"?k(N(f,{onError:w=>{w.currentTarget.onerror=null,w.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):h==="inline"?k(n.jsx("span",{className:C,dangerouslySetInnerHTML:_?{__html:_}:void 0}),{"aria-hidden":"true"}):k(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return N(Gr(t),{style:u,onError:w=>{w.currentTarget.onerror=null,w.currentTarget.style.display="none"}});const x=typeof c=="number"?c:20,B=`<svg width="${x}" height="${x}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return k(n.jsx("span",{className:C,dangerouslySetInnerHTML:{__html:B}}),{"aria-hidden":"true"})}function Hi(e){const[t,a]=o.useState(!1),r=o.useRef(!1),i=o.useRef(!0);o.useEffect(()=>(i.current=!0,()=>{i.current=!1}),[]);const s=o.useCallback(()=>{if(!e||r.current)return;const l=e();if(l&&typeof l.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,i.current&&a(!1)};l.then(u,u)}},[e]);return{pending:t,press:s}}function x4({icon:e,title:t,message:a,action:r,className:i}){const{pending:s,press:l}=Hi(r?.onClick);return n.jsxs("div",{className:we("empty-state",i),children:[e&&n.jsx(at,{icon:e,size:48,className:"empty-state__icon"}),t&&n.jsx("p",{className:"empty-state__title h4",children:t}),a&&n.jsx("p",{className:"empty-state__message body-3",children:a}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:l,disabled:s,"aria-busy":s||void 0,children:[r.icon&&n.jsx(at,{icon:r.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function _4({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:i,className:s}){const{t:l}=xe.useTranslation(),{pending:u,press:c}=Hi(r);return n.jsxs("div",{className:we("empty-state","error-state",s),role:"alert",children:[n.jsx(at,{icon:a,size:48,className:"empty-state__icon error-state__icon"}),n.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&n.jsx("p",{className:"error-state__hint caption-1",children:t}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:c,disabled:u,"aria-busy":u||void 0,children:[n.jsx(at,{icon:"rotate-cw",className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:i??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function w4({icon:e,title:t,description:a,cta:r,tone:i="main",disabled:s=!1,onClick:l,className:u=""}){const c=o.useId(),d=`${c}-title`,m=`${c}-desc`,p=`${c}-cta`,C=()=>{s||l?.()};return n.jsx("section",{role:"button",tabIndex:s?-1:0,"aria-disabled":s||void 0,"aria-labelledby":d,"aria-describedby":`${m} ${p}`,onClick:C,onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),C())},className:we("action-card",`action-card--${i}`,s&&"action-card--disabled",u),children:n.jsxs("div",{className:"action-card__body",children:[n.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:n.jsx(at,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:d,className:"action-card__title",children:t}),n.jsx("p",{id:m,className:"action-card__desc",children:a})]}),n.jsxs("div",{className:"action-card__cta",children:[n.jsx("span",{id:p,children:r}),n.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:n.jsx(at,{icon:"arrow-right",size:18})})]})]})})}function B4({as:e="div",className:t="",children:a,storage:r,...i}){r&&DC({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 s=we("ihabdevteam-core-scope",t);return n.jsx(e,{className:s,...i,children:a})}function io(e,t=!0){o.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=i=>{if(i.key!=="Tab")return;const s=Array.from(a.querySelectorAll(fn)).filter(m=>!m.closest('[aria-hidden="true"]'));if(!s.length){i.preventDefault();return}const l=s[0],u=s[s.length-1],c=document.activeElement,d=c===a;i.shiftKey&&(c===l||d)?(i.preventDefault(),u.focus()):!i.shiftKey&&c===u&&(i.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"])',lo=new WeakMap;function uo(e,t){e&&lo.set(e,t)}function co(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!lo.has(r);)r=r.parentElement;if(!r)return t;t=lo.get(r)??null}return t}function Vi(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 nr(e,t,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(Vi(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const i=Array.from(document.querySelectorAll(fn)).filter(c=>!(e&&e.contains(c))&&Vi(c));let s=null,l=null;for(const c of i)r.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_PRECEDING?s=c:l||(l=c);const u=s??l;return u?.focus(),u}function A4({title:e="",lines:t=[],notices:a=null,children:r,variant:i="default",dismissible:s=!1,className:l=""}){const{t:u}=xe.useTranslation(),[c,d]=o.useState(!1),m=o.useRef(null),p=o.useCallback(()=>{const f=m.current;f&&f.contains(document.activeElement)&&nr(f),d(!0)},[]);if(c)return null;const C=`notice-box notice-box--${i} body-2 ${l}`.trim(),y=s&&n.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return n.jsxs("div",{className:C,role:"note",children:[a.map((f,h)=>n.jsxs("div",{className:"notice-box__inner",children:[f.title?n.jsx("span",{className:"notice-box__title body-3",children:f.title}):null,n.jsx("div",{className:"notice-box__body",children:f.lines&&f.lines.length?n.jsx("div",{children:f.lines.map((_,g)=>n.jsx("span",{className:"notice-box__line body-3",children:_},g))}):f.children??null})]},h)),y]});const v=e||t.length?n.jsxs("div",{className:"notice-box__inner",children:[e?n.jsx("span",{className:"notice-box__title body-1",children:e}):null,n.jsx("div",{className:"notice-box__body",children:t.length?n.jsx("ul",{children:t.map((f,h)=>n.jsx("li",{className:"notice-box__line",children:f},h))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:m,className:C,role:"note",children:[v,y]})}const sa=[];let ar=!1;function zi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=sa[sa.length-1];t&&(e.stopPropagation(),t())}function Un(e){return sa.push(e),!ar&&typeof document<"u"&&(document.addEventListener("keydown",zi),ar=!0),()=>{const t=sa.lastIndexOf(e);t>=0&&sa.splice(t,1),sa.length===0&&ar&&typeof document<"u"&&(document.removeEventListener("keydown",zi),ar=!1)}}const Wi=o.createContext(null);function k4(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const qi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function N4(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 ws.useSyncExternalStore(t,()=>qi(e),()=>!1)}function E4(e){const[t,a]=o.useState(qi(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),i=l=>a(l.matches),s=r;return s.addEventListener?s.addEventListener("change",i):s.addListener&&s.addListener(i),a(r.matches),()=>{s.removeEventListener?s.removeEventListener("change",i):s.removeListener&&s.removeListener(i)}},[e]),t}const D4=typeof ws.useSyncExternalStore=="function"?N4:E4;function ln(e){const t=o.useContext(Wi),a=D4(e);return t&&typeof t.mobile=="boolean"&&k4(e)?t.mobile:a}const S4="(prefers-reduced-motion: reduce)";function po(){return ln(S4)}function cn(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:i=20,onClose:s,closeOnOutsideClick:l=!0,className:u="",role:c="dialog",ariaLabel:d="",children:m,backdrop:p=!1,isMobilePopup:C=!1,useBorder:y=!0,header:v,focusOnOpen:f}=e||{},h=o.useRef(null),[_,g]=o.useState({position:"fixed",left:0,top:-9999}),[k,b]=o.useState(!1),[N,x]=o.useState("bottom"),[B,w]=o.useState(!1),[A,D]=o.useState(!1),E=!t&&!a,O=o.useCallback((U=!1)=>{if(A&&C)return;const P=a?a.getBoundingClientRect():t;if(!P||!h.current)return;const z=h.current,{offsetWidth:V,offsetHeight:F}=z,S=window.innerWidth,j=window.innerHeight,I=S-P.right,q=P.left,re=P.top,ne=j-P.bottom;let le=0,Y=0,oe="top";if(re>=F+r)oe="top",Y=P.top-r-F,le=P.left+P.width/2-V/2;else if(ne>=F+r)oe="bottom",Y=P.bottom+r,le=P.left+P.width/2-V/2;else if(I>=V+r)oe="right",le=P.right+r,Y=P.top+P.height/2-F/2;else if(q>=V+r)oe="left",le=P.left-r-V,Y=P.top+P.height/2-F/2;else{const me=Math.max(re,ne,I,q);me===re?(oe="top",Y=P.top-r-F,le=P.left+P.width/2-V/2):me===ne?(oe="bottom",Y=P.bottom+r,le=P.left+P.width/2-V/2):me===I?(oe="right",le=P.right+r,Y=P.top+P.height/2-F/2):(oe="left",le=P.left-r-V,Y=P.top+P.height/2-F/2)}const ke=Number.isFinite(Number(i))?Number(i):8;le=Math.min(Math.max(le,ke),S-V-ke),Y=Math.min(Math.max(Y,ke),j-F-ke);const Z=Math.round(le),Q=Math.round(Y);U&&h.current?(h.current.style.left=`${Z}px`,h.current.style.top=`${Q}px`,h.current.dataset.placement=oe):(x(oe||N),g({position:"fixed",left:Z,top:Q}),w(!0))},[A,C,a,t,r,i,N]);o.useLayoutEffect(()=>{if(E)return;if(A&&C){g({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),w(!0);return}O();const U=requestAnimationFrame(()=>O());return()=>cancelAnimationFrame(U)},[t,a,r,m,i,E,A,C,O]),o.useEffect(()=>{if(E||A&&C||!h.current||typeof ResizeObserver>"u")return;const U=new ResizeObserver(()=>{t&&O()});return U.observe(h.current),()=>U.disconnect()},[t,m,i,E,A,C,O]),o.useEffect(()=>{if(E||A&&C)return;let U=null;const P=()=>{if(typeof requestAnimationFrame>"u"){O(!0);return}U===null&&(U=requestAnimationFrame(()=>{U=null,O(!0)}))},z=V=>{if(!a&&s){const F=V.target;if(F&&h.current&&h.current.contains(F))return;try{if(F&&F.closest&&F.closest("[data-tooltip-ignore]"))return}catch{}$.current(!0);return}P()};return window.addEventListener("resize",P),document.addEventListener("scroll",z,{passive:!0,capture:!0}),()=>{U!==null&&cancelAnimationFrame(U),window.removeEventListener("resize",P),document.removeEventListener("scroll",z,{capture:!0})}},[t,a,s,r,m,i,E,A,C,O]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const U=window.matchMedia("(max-width: 768px)"),P=()=>D(!!U.matches);P();try{U.addEventListener?U.addEventListener("change",P):U.addListener(P)}catch{try{U.addListener(P)}catch{}}return()=>{try{U.removeEventListener?U.removeEventListener("change",P):U.removeListener(P)}catch{}}},[]);const R=o.useRef(!1),K=o.useRef(null),M=po(),L=o.useCallback((U=!1)=>{if(s&&!(k||R.current)){if(R.current=!0,U){b(!0);try{s&&s()}catch{R.current=!1,b(!1)}return}b(!0),K.current=setTimeout(()=>{K.current=null;try{s&&s()}catch{R.current=!1,b(!1)}},M?0:200)}},[k,s,b,M]);o.useEffect(()=>()=>{K.current&&clearTimeout(K.current)},[]),o.useEffect(()=>{if(E)return;const U=V=>{const F=h.current;if(!F)return;const S=V.target;if(S&&!F.contains(S)){try{if(S.closest&&S.closest("[data-tooltip-ignore]"))return}catch{}l&&L(!0)}},P=V=>{const F=h.current;if(!F)return;const S=V.target;if(S&&!F.contains(S)){try{if(S.closest&&S.closest("[data-tooltip-ignore]"))return}catch{}l&&L(!0)}},z=V=>{if(V.key==="Tab"){const F=h.current;if(!F)return;const S=F.querySelectorAll(fn);if(!S||S.length===0)return;const j=S[0],I=S[S.length-1],q=document.activeElement;V.shiftKey?q===j&&(V.preventDefault(),I.focus()):q===I&&(V.preventDefault(),j.focus())}};return document.addEventListener("pointerdown",U,!0),document.addEventListener("click",P,!0),document.addEventListener("keydown",z),()=>{document.removeEventListener("pointerdown",U,!0),document.removeEventListener("click",P,!0),document.removeEventListener("keydown",z)}},[s,l,L,E]);const $=o.useRef(L);o.useEffect(()=>{$.current=L});const G=!!s;o.useEffect(()=>{if(!(E||!G))return Un(()=>$.current())},[E,G]),o.useEffect(()=>{const U=()=>{L(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",U),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",U)}},[L]);const W=o.useRef(null);o.useEffect(()=>{if(E||f===!1||!B)return;const U=h.current;if(!U)return;const P=U.querySelector(fn);if(P)return W.current=document.activeElement,P.focus(),()=>{const z=W.current;W.current=null,z&&document.contains(z)&&z.focus()}},[E,f,B]),o.useEffect(()=>{c==="dialog"&&!d&&St("tooltip-no-name",'[ihab/Tooltip] \uC774\uB984 \uC5C6\uB294 role="dialog" \uC785\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. \uB0AD\uB3C5\uAE30\uAC00 "\uB300\uD654\uC0C1\uC790" \uB77C\uACE0\uB9CC \uC77D\uC2B5\uB2C8\uB2E4.')},[c,d]);const H=n.jsxs("div",{ref:h,className:`tooltip-content ${E?"tooltip-content--inline":""} ${y?"tooltip-content--bordered":""} ${k?"is-closing":""} ${u} ${A&&C?"is-mobile":""}`,role:c,"aria-label":d||void 0,style:E?{}:{..._,visibility:B?"visible":"hidden"},tabIndex:-1,"data-placement":N,"data-left":E?"":_.left,"data-top":E?"":_.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[v!=null&&n.jsx("div",{className:"tooltip-content__header h5",children:v}),m]});if(E||typeof document>"u")return H;if(p||A&&C){const U=n.jsxs("div",{className:"tooltip-portal",children:[n.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&L(!0)}}),H]});return en.createPortal(U,document.body)}return en.createPortal(H,document.body)}function Bn(e){const{anchorRect:t,text:a,offset:r=8,onClose:i,className:s="",ariaLabel:l}=e||{};return a?n.jsx(cn,{anchorRect:t,offset:r,onClose:i,closeOnOutsideClick:!1,className:`tooltip-info ${s}`,ariaLabel:l||a,children:n.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Gn(e){const{t}=xe.useTranslation(),{anchorRect:a,title:r,items:i,activeIndex:s=-1,showIndex:l=!0,onClose:u,offset:c=12,closeOnOutsideClick:d=!0}=e||{},m=(Array.isArray(i)?i:i?[i]:[]).map(p=>typeof p=="string"?{text:p}:p);return!m.length&&!r?null:n.jsx(cn,{anchorRect:a,offset:c,onClose:u,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:n.jsxs("div",{className:"tooltip-description__box",children:[r&&n.jsx("span",{className:"tooltip-description__title body-2",children:r}),n.jsx("ol",{className:"tooltip-description__items",children:m.map((p,C)=>n.jsxs("li",{className:`tooltip-description__item body-3${C===s?" tooltip-description__item--active":""}`,children:[l&&m.length>1&&n.jsxs("span",{className:"tooltip-description__index button-1",children:[C+1,"."]}),p.color&&n.jsx("span",{className:"tooltip-description__dot",style:{background:p.color},"aria-hidden":"true"}),n.jsx("span",{children:p.text})]},C))})]})})}function Ea(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let mo=0,Ui=!1;function Gi(){Ui||typeof document>"u"||(Ui=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(mo=Date.now())},!0),document.addEventListener("touchstart",()=>{mo=Date.now()},{capture:!0,passive:!0}))}Gi();function ia(e){return!!e&&e.pointerType==="touch"}function la(e=1e3){return Gi(),Date.now()-mo<e}function ho(e,t,a,{enabled:r=!0,fallbackOnParent:i=!1}={}){const s=Ea(e),l=Ea(t),u=o.useRef(null),c=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const m=p=>{const C=p,y=p.target,v=a.current,f=!!(y&&v&&v.contains(y));if(C.pointerType!=="touch"){f&&(u.current=null);return}if(f){u.current=s.current;return}u.current=null,s.current&&!(y&&y.closest?.(".tooltip-content"))&&l.current(!1,v)};return document.addEventListener("pointerdown",m,!0),()=>document.removeEventListener("pointerdown",m,!0)},[r,a,s,l]);const d=o.useCallback(m=>{const p=u.current;return p===null?!1:(u.current=null,c.current=Date.now(),l.current(!p,m??a.current),!0)},[a,l]);return o.useEffect(()=>{if(!r||!i)return;const m=a.current,p=m?.parentElement;if(!m||!p)return;let C=null;const y=h=>{const _=h.changedTouches?.[0];if(!_)return!1;const g=m.getBoundingClientRect();return _.clientX>=g.left&&_.clientX<=g.right&&_.clientY>=g.top&&_.clientY<=g.bottom},v=h=>{C=y(h)?s.current:null},f=h=>{const _=C;C=null,!(_===null||Date.now()-c.current<700||!y(h))&&(u.current=null,c.current=Date.now(),l.current(!_,m))};return p.addEventListener("touchstart",v,{passive:!0}),p.addEventListener("touchend",f),()=>{p.removeEventListener("touchstart",v),p.removeEventListener("touchend",f)}},[r,i,a,s,l]),{touchPress:d}}function T4(e,t){const{size:a=48,type:r,htmlType:i,href:s,target:l,rel:u,icon:c,rightIcon:d,label:m,count:p,subLabel:C,children:y,ariaLabel:v,variant:f="default",align:h="center",nowrap:_=!1,selected:g,toggleable:k=!1,ariaExpanded:b,ariaControls:N,disabled:x=!1,useLabel:B=!0,useBorder:w=!0,useBG:A=!0,useDisabledCovered:D=!1,useDisabledInvisible:E=!1,width:O,minWidth:R,onClick:K,onDisabledClick:M,showTooltipInfo:L=!1,tooltipInfoText:$=null,tooltipDescription:G=null,tooltipOnly:W=!1,iconSize:H="medium",iconColor:U,shape:P="rounded",color:z,className:V,...F}=e,S=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),j=S.match(/^\d+$/)?`button${S}`:`button-${S}`,I=Number(a),q=!isNaN(I)&&I<40?"button-2":"button-1",re=m??y,ne=x||!!F.disabled,le=ne?D?"disabled-covered":E?"disabled-invisibled":"disabled":f,Y=le?`button--variant-${le}`:"",oe=h?`button--align-${h}`:"",ke=_?"button--nowrap":"",Z=P?`button--shape-${P}`:"",Q=typeof U=="string"&&U.startsWith("--")?`var(${U})`:U,me={...O?{width:typeof O=="number"?`${O}px`:O}:{},...R?{minWidth:typeof R=="number"?`${R}px`:R}:{},...w?{}:{"--button-border":ne?"0":"1px solid transparent"},...Q?{"--button-icon-color":Q}:{},...z?{"--color-main":z}:{}},De=B===!1?"":re,be=Array.isArray(De)?De.length>0:!!De,te=!!d,ue=r??(be||c||te?"bar":"dot"),Ce=`${j}--${ue}`,ge=o.useRef(null);o.useEffect(()=>{!ea||i!==void 0||ge.current?.closest("form")&&St(`button-in-form:${typeof re=="string"?re:""}`,'[ihab/Button] <form> \uC548\uC778\uB370 htmlType \uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uC774 \uB2E8\uCD94\uB294 type="button" \uC774\uB77C \uD3FC\uC744 \uBCF4\uB0B4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uBA74 htmlType="submit" \uC744 \uC8FC\uC138\uC694. \uD3FC\uC5D0 \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uAC00 \uD558\uB098\uB3C4 \uC5C6\uC73C\uBA74 **Enter \uB85C\uB3C4 \uC548 \uBCF4\uB0B4\uC9D1\uB2C8\uB2E4**(\uCE78\uC774 \uB458 \uC774\uC0C1\uC77C \uB54C).'+(typeof re=="string"&&re?` \uB2E8\uCD94: ${re}`:""))},[i,re]);const fe=o.useRef(t);fe.current=t;const $e=o.useCallback(Re=>{ge.current=Re;const tt=fe.current;typeof tt=="function"?tt(Re):tt&&(tt.current=Re)},[]),ze=o.useRef(ne),[Te,Fe]=o.useState(!!g),[qe,mt]=o.useState(!1),[ct,rt]=o.useState(null),Ct=o.useCallback(()=>mt(!1),[]),[Ae,We]=o.useState(!1),_e=o.useId();o.useEffect(()=>{typeof g=="boolean"&&Fe(g)},[g]),o.useEffect(()=>{if(ze.current&&!ne&&ge.current){const Re=ge.current;let tt=!1;try{tt=Re.matches(":focus:not(:focus-visible)")}catch{tt=!1}tt&&Re.blur(),Re.style.pointerEvents="none";const xt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{ge.current&&(ge.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(xt)}ze.current=ne},[ne]);const Ue=typeof g=="boolean"?!!g:Te,Be=typeof b=="boolean"?void 0:k||typeof g=="boolean"?Ue?"true":"false":F["aria-pressed"],je=we("button",j,Ce,Y,oe,ke,Z,Ue?"is-selected":null,A?null:"button--no-bg",W?"button--tooltip-only":null,V),Se=`button__icon button__icon--${H}`,Xe=Array.isArray(C)?C:C!==void 0?[C]:[],Qe=()=>{if(Array.isArray(De))return De.map((tt,xt)=>{const Lt=Xe[xt];return n.jsxs("span",{className:`button__label-text${Lt!==void 0?" button__label-text--has-sub":""}`,children:[tt,Lt!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:Lt})]},xt)});const Re=C!==void 0;return n.jsxs("span",{className:`button__label-text${Re?" button__label-text--has-sub":""}`,children:[De,p!=null&&n.jsx("span",{className:"button__count",children:p}),Re&&n.jsx("span",{className:"button__sub-label-text caption-1",children:C})]})},dt=Re=>{typeof g!="boolean"&&!k&&Fe(!1),Re.currentTarget.blur()},ht=Re=>{ne||(typeof F.onMouseLeave=="function"&&F.onMouseLeave(Re),dt(Re))},wt=Re=>{if(W&&gt&&it.touchPress(Re.currentTarget),ne){gt&&it.touchPress(Re.currentTarget),Re.preventDefault(),M?.(Re);return}typeof g!="boolean"&&k&&Fe(tt=>!tt),K?.(Re)},ft=o.useCallback(()=>{(L||G)&&(mt(!0),rt(ge.current?.getBoundingClientRect()??null))},[L,G]),Nt=o.useCallback(()=>{(L||G)&&(mt(!1),rt(null))},[L,G]),gt=!!(L||G),it=ho(qe,Re=>{Re?ft():Nt()},ge,{enabled:gt&&(ne||W),fallbackOnParent:gt&&ne}),Ke={...F};delete Ke.disabled,delete Ke.className,delete Ke.faded,delete Ke.useFaded,delete Ke.loading,delete Ke.onMouseLeave,delete Ke.onPointerEnter,delete Ke.onPointerLeave,delete Ke.onPointerUp,delete Ke.onFocus,delete Ke.onBlur,ne&&(Object.keys(Ke).forEach(Re=>{/^on[A-Z]/.test(Re)&&typeof Ke[Re]=="function"&&delete Ke[Re]}),Ke["aria-disabled"]="true");const se=(typeof L=="string"?L:null)??(typeof $=="string"?$:null)??(typeof v=="string"?v:null)??(typeof re=="string"?re:null)??void 0,Ne=typeof v=="string"?v:typeof re=="string"?re:se,Ve=G?[G.title,...G.items??[]].filter(Boolean).join(". "):L&&se&&se!==Ne?se:"",nt=[typeof F["aria-describedby"]=="string"?F["aria-describedby"]:void 0,Ve?_e:null].filter(Boolean).join(" ")||void 0,Ie=(Re,tt)=>n.jsx(at,{icon:Re,label:tt??Ne,className:Se,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),Ge=()=>ue==="dot"?n.jsxs(n.Fragment,{children:[Ie(c),be&&n.jsx("span",{className:`button__label ${q}`,children:Qe()})]}):h==="center"&&c?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:Ie(c)}),be&&n.jsx("span",{className:`button__label ${q}`,children:Qe()})]}),te&&n.jsx("span",{className:"button__right",children:Ie(d)})]}):n.jsxs(n.Fragment,{children:[c&&n.jsx("span",{className:"button__left",children:Ie(c,v??re)}),be&&n.jsx("span",{className:`button__label ${q}`,children:Qe()}),te&&n.jsx("span",{className:"button__right",children:Ie(d)})]}),bt=!!s&&!ne;return n.jsxs(n.Fragment,{children:[n.jsxs(bt?"a":"button",{...Ke,ref:$e,...bt?{href:s,target:l,rel:u??(l==="_blank"?"noreferrer":void 0)}:{type:i??"button",disabled:ne&&!M&&!Ae},className:je,"aria-pressed":Be,"aria-expanded":typeof b=="boolean"?b:F["aria-expanded"],"aria-controls":N??F["aria-controls"],"aria-label":Ne,"aria-disabled":ne&&(bt||M||Ae)?!0:void 0,"aria-describedby":nt,style:me,onClick:wt,onMouseLeave:ht,onPointerEnter:Re=>{ia(Re)||ft(),!ne&&typeof F.onPointerEnter=="function"&&F.onPointerEnter(Re)},onPointerLeave:Re=>{ia(Re)||Nt(),!ne&&typeof F.onPointerLeave=="function"&&F.onPointerLeave(Re)},onPointerUp:Re=>{ne&&gt&&it.touchPress(Re.currentTarget),!ne&&typeof F.onPointerUp=="function"&&F.onPointerUp(Re)},onFocus:Re=>{We(!0),la()||ft(),!ne&&typeof F.onFocus=="function"&&F.onFocus(Re)},onBlur:Re=>{We(!1),ne||dt(Re),Nt(),!ne&&typeof F.onBlur=="function"&&F.onBlur(Re)},children:[Ge(),Ve?n.jsx("span",{id:_e,hidden:!0,"aria-label":Ve}):null]}),qe&&G?n.jsx(Gn,{anchorRect:ct,title:G.title,items:G.items,onClose:Ct}):qe&&se?n.jsx(Bn,{anchorRect:ct,text:se,onClose:Ct}):null]})}const pe=o.forwardRef(T4);pe.displayName="Button";function At(e,t,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const i=r.current?.parentElement??null;return t(i,e),()=>a(i)},[e,t,a]),r}const Da={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},Co=new WeakMap;function fo(e){if(e)return Co.get(e)}function Gt(e,t){e&&(e.style.setProperty(Da.title,t.title),e.style.setProperty(Da.description,t.description),Co.set(e,t))}function Kt(e){e&&(e.style.removeProperty(Da.title),e.style.removeProperty(Da.description),Co.delete(e))}const Ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Yi(){const e=At(Ki,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Zi={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Xi(){const e=At(Zi,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Ji={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Qi(){const e=At(Ji,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const el={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function tl(){const e=At(el,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const nl={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function al(){const e=At(nl,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const rl={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function ol(){const e=At(rl,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const sl={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function il(){const e=At(sl,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const ll={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ul(){const e=At(ll,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const cl={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function dl(){const e=At(cl,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const pl={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function ml(){const e=At(pl,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const hl={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Cl(){const e=At(hl,Gt,Kt);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 fl={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function gl(){const e=At(fl,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const bl={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function yl(){const e=At(bl,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const vl={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function xl(){const e=At(vl,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Qt=(e,t,a)=>({key:e,get label(){return Rt.t(`promoBannerBg.${e}`,t)},textTone:a}),j4=[Qt("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Qt("soft","\uC18C\uD504\uD2B8","dark"),Qt("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),Qt("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Qt("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),Qt("warm","\uC6DC(\uAC15\uC870)","dark"),Qt("dark","\uB2E4\uD06C","light"),Qt("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Qt("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),Qt("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),Qt("outline","\uC544\uC6C3\uB77C\uC778","dark"),Qt("success","\uC131\uACF5/\uC644\uB8CC","light"),Qt("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),Qt("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],_l={main:Yi,soft:Xi,sub:Qi,deep:tl,softSub:al,warm:ol,dark:il,radial:ul,diagonal:dl,dots:ml,outline:Cl,success:gl,naver:yl,instagram:xl};function wl({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:i=.1,lineHeightRatio:s=1.4}={}){const l=k=>Math.max(a,Math.min(r,Number(k))),u=k=>{try{const b=localStorage.getItem(k),N=b?Number(b):1;return Number.isFinite(N)?l(N):l(1)}catch{return l(1)}},[c,d]=o.useState(()=>u(e)),[m,p]=o.useState(e);m!==e&&(p(e),d(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const C=k=>{d(typeof k=="function"?b=>l(k(b)):l(k))},y=()=>C(k=>+(k+i).toFixed(6)),v=()=>C(k=>+(k-i).toFixed(6)),f=c<r-Number.EPSILON,h=c>a+Number.EPSILON,_=Math.round(t*c),g=Math.round(_*s);return{scale:c,setScale:C,increase:y,decrease:v,canIncrease:f,canDecrease:h,fontSize:_,lineHeight:g}}function Bl(e,t){const a=Ea(t);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const go=" \xB7 ",Al=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(go)?e.split(go).pop()??e:e})(),M4=o.createContext(!1),Kn=[];let kl=null;function L4(e){const t=o.useContext(M4);o.useEffect(()=>{if(t||typeof e!="string"||!e)return;Kn.length===0&&(kl=document.title);const a={text:Al?`${e}${go}${Al}`:e};return Kn.push(a),document.title=a.text,()=>{const r=Kn.lastIndexOf(a);r>=0&&Kn.splice(r,1),document.title=Kn.length?Kn[Kn.length-1].text:kl??document.title}},[e,t])}const Nl=[{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"}],$4=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function an(e,t){return $4().compare(e,t)}const rr=new Map;function R4(e){const t=rr.get(e);if(t)return t;const a=[],r=/-?\d+(?:\.\d+)?/g;let i=0;for(let s=r.exec(e);s;s=r.exec(e)){let l=s.index,u=s[0];u[0]==="-"&&l>0&&!/\s/.test(e[l-1])&&(l+=1,u=u.slice(1)),l>i&&a.push(e.slice(i,l)),a.push(Number(u)),i=s.index+s[0].length}return i<e.length&&a.push(e.slice(i)),rr.size>5e3&&rr.clear(),rr.set(e,a),a}function P4(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 F4(e,t){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),i=a(t);if(r===i)return 0;const s=(d,m)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const p=P4(m);return p!==null?[p]:R4(m)},l=s(e,r),u=s(t,i),c=Math.min(l.length,u.length);for(let d=0;d<c;d++){const m=l[d],p=u[d];if(typeof m=="number"&&typeof p=="number"){if(m!==p)return m-p;continue}if(typeof m=="number")return-1;if(typeof p=="number")return 1;const C=an(m,p);if(C!==0)return C}return l.length!==u.length?l.length-u.length:an(r,i)}const El=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function bo(e,t,a){const r=El(e),i=El(t);if(r||i)return r===i?0:r?1:-1;const s=F4(e,t);return a?s:-s}function I4(e,t,a){const{t:r}=xe.useTranslation(),[i,s]=o.useState(()=>{const v=a?.initialPageSize;return v&&Nl.some(f=>f.value===v)?v:"25"}),[l,u]=o.useState(1),[c,d]=o.useState(t);Object.is(c,t)||(d(t),l!==1&&u(1));const m=o.useMemo(()=>Nl.map(v=>({...v,label:r("visits.showN",{n:v.value})})),[r]),p=o.useCallback(v=>{s(v),u(1)},[]),C=Math.max(1,Math.ceil(e.length/Number(i)));(l>C||l<1||!Number.isFinite(l))&&u(Math.min(Math.max(1,Number.isFinite(l)?l:1),C));const y=Math.min(Math.max(1,Number.isFinite(l)?l:1),C);return{pageRows:o.useMemo(()=>e.slice((y-1)*Number(i),y*Number(i)),[e,y,i]),pageSizeProps:{options:m,value:i,onChange:p},paginationProps:{page:y,total:C,onChange:u},setPage:u}}function O4(e){const[t,a]=o.useState(null),r=o.useRef(t),i=o.useRef(e?.onSortChange);i.current=e?.onSortChange;const s=o.useCallback(c=>{const d=r.current,m=d?.key===c?{key:c,asc:!d.asc}:{key:c,asc:!0};r.current=m,a(m),i.current?.(m)},[]),l=o.useCallback((c,d)=>({label:c,sortDir:t?.key===d?t.asc?"asc":"desc":null,onClick:()=>s(d)}),[t,s]),u=o.useCallback((c,d)=>{if(!t)return c;const{key:m,asc:p}=t;return[...c].sort((C,y)=>bo(d(C,m),d(y,m),p))},[t]);return{sort:t,field:l,sortRows:u}}const dn="\uC804\uCCB4";Object.fromEntries(Object.entries(GC).map(([e,{nucleus:t}])=>[e,t]));const H4={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"})},V4={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"})},z4={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 W4(e,t){if("place"in t)return H4[t.place](e);const a=V4[t.vowel](e);return t.glide?`${a} \xB7 ${z4[t.glide](e)}`:a}const q4=(e,{defaultValue:t})=>t,Dl=(e,t)=>({jamos:e,phonetic:t,tooltip:W4(q4,t)}),An=(e,t)=>t.map(a=>Dl([a],{place:e})),Pt=(e,t,a)=>Dl([...e],a?{vowel:t,glide:a}:{vowel:t}),yo={cho:[An("labial",["\u3142","\u3143","\u314D","\u3141"]),An("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),An("alveolar",["\u3145","\u3146"]),An("palatal",["\u3148","\u3149","\u314A"]),An("velar",["\u3131","\u3132","\u314B"]),An("glottal",["\u314E"])],jung:[[Pt("\u3163","frontHigh"),Pt("\u315F","frontHigh","w"),Pt("\u3162","frontHigh","velar")],[Pt("\u3161","backHighUnrounded")],[Pt("\u315C","backHighRounded"),Pt("\u3160","backHighRounded","j")],[Pt("\u3154\u3150","frontMid"),Pt("\u3156\u3152","frontMid","j"),Pt("\u3159\u315A\u315E","frontMid","w")],[Pt("\u3153","backMidUnrounded"),Pt("\u3155","backMidUnrounded","j"),Pt("\u315D","backMidUnrounded","w")],[Pt("\u3157","backMidRounded"),Pt("\u315B","backMidRounded","j")],[Pt("\u314F","low"),Pt("\u3151","low","j"),Pt("\u3158","low","w")]],jong:[An("labial",["\u3142","\u3141"]),An("alveolar",["\u3137","\u3134","\u3139"]),An("velar",["\u3131","\u3147"])]},U4=e=>e===G4?[]:Array.from(e),G4="__NO_CODA__",vo=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:i})=>({v:a.join(""),phonetic:r,tooltip:i}))),Sl={cho:vo(yo.cho),jung:vo(yo.jung),jong:vo(yo.jong)};Sl.jung.flat().forEach(({v:e})=>{for(const t of U4(e));}),new Set(Sl.cho.flat().map(e=>e.v));function K4(e,t=!0){const a=Ea(e);o.useEffect(()=>{if(t)return Un(()=>{a.current?.()})},[t,a])}function Sa(){const[e,t]=o.useState(null),a=o.useCallback(s=>t(s.getBoundingClientRect()),[]),r=o.useCallback(()=>t(null),[]),i=o.useCallback(s=>{const l=s.getBoundingClientRect();t(u=>u?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:i}}function Y4(e){const[t,a]=o.useState(null),[r,i]=o.useState(null),s=o.useRef(null);o.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]);const l=o.useCallback((c,d)=>{s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{a(c),i(d)},e)},[e]),u=o.useCallback(()=>{s.current&&clearTimeout(s.current),a(null),i(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:l,close:u}}function Tl(e="warning"){const[t,a]=o.useState(""),[r,i]=o.useState(e),[s,l]=o.useState(0),u=o.useCallback((p,C)=>{i(C),a(p),l(y=>y+1)},[]),c=o.useCallback(p=>u(p,"warning"),[u]),d=o.useCallback(p=>u(p,"normal"),[u]),m=o.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:s,showToast:u,showWarning:c,showNormal:d,clearToast:m}}function Ta(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 ja({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[i,s]=o.useState(!1),[l,u]=o.useState({position:"fixed"}),c=o.useRef(null),d=o.useRef(null),m=o.useCallback(()=>{c.current&&u(e(c.current.getBoundingClientRect(),c.current))},[e]);o.useLayoutEffect(()=>{i&&m()},[i,m]),o.useEffect(()=>{if(!i)return;let y=d.current?.offsetHeight??0;y>0&&m();let v=0,f=null;typeof ResizeObserver<"u"&&d.current&&(f=new ResizeObserver(()=>{const B=d.current?.offsetHeight??0;if(B!==y){if(y=B,++v>4){f?.disconnect(),f=null;return}m()}}),f.observe(d.current));const h=B=>{const w=B.target;r&&w.closest?.(r)||c.current?.contains(w)||d.current?.contains(w)||s(!1)};document.addEventListener("mousedown",h),document.addEventListener("pointerdown",h);let _=null;const g=()=>{if(typeof requestAnimationFrame>"u"){m();return}_===null&&(_=requestAnimationFrame(()=>{_=null,m()}))},k=B=>{d.current?.contains(B.target)||(t==="reposition"?g():t==="close"&&s(!1))};t!=="ignore"&&window.addEventListener("scroll",k,!0);const b=()=>{a==="reposition"?g():a==="close"&&s(!1)};let N=null;const x=()=>{b(),N&&clearTimeout(N),N=setTimeout(()=>{N=null,a==="reposition"&&m()},250)};return a!=="ignore"&&(window.addEventListener("resize",b),window.addEventListener("orientationchange",x)),()=>{_!==null&&cancelAnimationFrame(_),f?.disconnect(),document.removeEventListener("mousedown",h),document.removeEventListener("pointerdown",h),t!=="ignore"&&window.removeEventListener("scroll",k,!0),a!=="ignore"&&(window.removeEventListener("resize",b),window.removeEventListener("orientationchange",x)),N&&clearTimeout(N)}},[i,m,t,a,r]),o.useEffect(()=>{if(i)return Un(()=>s(!1))},[i]);const p=o.useCallback(()=>s(y=>!y),[]),C=o.useCallback(()=>s(!1),[]);return{open:i,setOpen:s,toggle:p,close:C,style:l,triggerRef:c,menuRef:d}}function Z4(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:i,playMs:s=1100,feedbackMs:l=1500}={}){const[u,c]=o.useState([]),[d,m]=o.useState(0),[p,C]=o.useState("idle"),[y,v]=o.useState(null),[f,h]=o.useState([]),[_,g]=o.useState(null),[k,b]=o.useState(0),N=o.useRef(0),x=o.useCallback(P=>{N.current=typeof P=="function"?P(N.current):P,b(N.current)},[]),B=o.useRef(r),w=o.useRef(i);o.useEffect(()=>{B.current=r,w.current=i},[r,i]);const A=o.useRef([]),D=()=>{A.current.forEach(clearTimeout),A.current=[]},E=(P,z)=>{A.current.push(setTimeout(z,P))};o.useEffect(()=>()=>D(),[]);const O=u[d]?.id??null,R=o.useRef(null),K=o.useCallback(()=>{D(),C("playing"),h([]),g(null),x(0);let P=0;e.forEach((z,V)=>{E(P,()=>{m(V),v(z.id),B.current?.(z)}),E(P+1e3,()=>{v(null),h(F=>[...F,z.id])}),P+=1300}),E(P,()=>{C("done"),w.current?.({score:0,total:e.length})})},[e,x]),M=o.useCallback((P,z)=>{if(z>=P.length){C("done"),w.current?.({score:N.current,total:P.length});return}R.current=null,m(z),g(null),C("playing"),v(P[z].id),B.current?.(P[z]),E(s,()=>{v(null),C("waiting")})},[s]),L=o.useCallback(()=>{D();const P=ka(e);c(P),x(0),h([]),M(P,0)},[e,M,x]),$=o.useCallback(()=>{t==="playback"?(c(e),K()):L()},[t,e,K,L]),G=o.useCallback(()=>{D(),C("idle"),v(null),h([]),g(null),m(0),x(0),c([])},[x]),W=e.map(P=>P.id).join("|");o.useEffect(()=>(a?$():G(),()=>D()),[t,W,a]);const H=o.useCallback(P=>{p!=="waiting"||t==="playback"||R.current===d||(R.current=d,g(P),P===u[d]?.id&&x(z=>z+1),t==="exam"?(C("playing"),E(400,()=>M(u,d+1))):(C("feedback"),E(l,()=>M(u,d+1))))},[p,t,u,d,M,l,x]),U=t==="playback"?e.length:u.length;return{bind:{activeSpeakerId:y,playedIds:f,selectedId:_,answerId:O,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:H},index:d,total:U,score:k,phase:p,done:p==="done",start:$,reset:G}}function X4({title:e,description:t,actionLabel:a,onAction:r,bg:i,color:s,size:l="medium",actionVariant:u,titleColor:c,descriptionColor:d,className:m=""}){const p=i??s??"main",C=o.useRef(null),[y,v]=o.useState("main"),f=ln("(max-width: 767px)"),h=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const k=C.current;if(!k)return;const b=fo(k),N=(x,B,w)=>{if(w!==void 0)k.style.setProperty(B,w),h.current[x]=!0;else if(h.current[x]){const A=b?.[x];A?k.style.setProperty(B,A):k.style.removeProperty(B),h.current[x]=!1}};N("title","--promo-banner-bg-title",c),N("description","--promo-banner-bg-description",d)},[c,d,p]),o.useLayoutEffect(()=>{const k=C.current;if(!k)return;const b=fo(k);v(b?.actionVariant??"main")},[p]);const _=we("promo-banner",`promo-banner--${l}`,m),g=_l[p];return n.jsxs("div",{ref:C,className:_,role:"note",children:[n.jsx(g,{}),n.jsxs("div",{className:"promo-banner__text",children:[n.jsx("span",{className:`promo-banner__title ${l==="small"?"body-2":"h2"}`,children:e}),t&&n.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&n.jsx(pe,{htmlType:"button",size:40,variant:u??y,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...f?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function J4({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":i}){const{t:s}=xe.useTranslation(),l=i??s("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),c=u.length,[d,m]=o.useState(0),[p,C]=o.useState(!1),[y,v]=o.useState(!1),[f,h]=o.useState(!1),_=o.useRef(null),g=o.useRef(null),k=o.useRef(null),b=po(),N=p||y||f,x=c>0?Math.min(d,c-1):0;o.useEffect(()=>{if(c<2||t<=0||N||b)return;const w=window.setInterval(()=>m(A=>(Math.min(A,c-1)+1)%c),t);return()=>window.clearInterval(w)},[c,t,N,b]);const B=w=>{g.current!=null&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{g.current=null,h(!1)},w)};return o.useEffect(()=>()=>{g.current!=null&&window.clearTimeout(g.current)},[]),o.useEffect(()=>{if(!f)return;const w=A=>{A.pointerType==="touch"&&(k.current&&k.current.contains(A.target)||(g.current!=null&&(window.clearTimeout(g.current),g.current=null),h(!1)))};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[f]),c===0?null:n.jsxs("section",{ref:k,className:we("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onPointerEnter:w=>{_.current=w.pointerType},onPointerDown:w=>{_.current=w.pointerType,w.pointerType==="touch"&&(g.current!=null&&(window.clearTimeout(g.current),g.current=null),h(!0))},onPointerUp:w=>{w.pointerType==="touch"&&B(5e3)},onPointerCancel:w=>{w.pointerType==="touch"&&B(5e3)},onMouseEnter:()=>{_.current!=="touch"&&C(!0)},onMouseLeave:()=>C(!1),onFocus:w=>{let A=!0;try{A=w.target.matches(":focus-visible")}catch{A=!0}v(A)},onBlur:w=>{w.currentTarget.contains(w.relatedTarget)||v(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${x*100}%)`},children:u.map((w,A)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":A!==x,...A!==x?{inert:!0}:{},children:w},A))})}),c>1&&n.jsx("div",{className:`top-banner__dots${(a?.[x]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((w,A)=>n.jsx("button",{type:"button",className:`top-banner__dot${A===x?" top-banner__dot--active":""}`,"aria-label":s("topBanner.dotAriaLabel",{count:c,index:A+1,defaultValue:`${c}\uAC1C \uC911 ${A+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":A===x,onClick:()=>m(A)},A))})]})}function Q4({title:e,body:t,open:a=!1,onToggle:r,avatar:i,titleClassName:s="body-2",bodyClassName:l="body-2",className:u=""}){const{t:c}=xe.useTranslation();return n.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.trim(),role:"listitem",children:[n.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const m=d.currentTarget.closest('[role="list"]');if(!m)return;const p=Array.from(m.querySelectorAll("[data-accordion-header]")),C=p.indexOf(d.currentTarget);(d.key==="ArrowDown"?p[C+1]:p[C-1])?.focus()}},children:[i&&n.jsx("div",{className:"accordion-item__avatar",children:i}),n.jsx("div",{className:`accordion-item__title ${s}`,children:e}),n.jsx("div",{className:"accordion-item__chevron",children:n.jsx(at,{icon:a?"chevron-up":"chevron-down",label:a?c("accordion.collapse","\uC811\uAE30"):c("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&n.jsx("div",{className:`accordion-item__body ${l}`,children:typeof t=="string"?n.jsx("p",{children:t}):t})]})}function eb({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:i}){const[s,l]=o.useState({index:t}),u=(c,d)=>s.id!=null&&c.id!=null?c.id===s.id:s.id==null&&d===s.index;return n.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>n.jsx(Q4,{title:c.title,body:c.body,avatar:c.avatar,open:u(c,d),onToggle:()=>l(u(c,d)?{index:-1}:{index:d,id:c.id}),bodyClassName:i},c.id??d))})}function tb(){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 nb(){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 ab(){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 kt(e){const{t}=xe.useTranslation(),{type:a="bar",size:r,className:i="","aria-label":s,"aria-hidden":l}=e;if(a==="dot"){const{icon:N,number:x,position:B="top-right",onClick:w,animate:A=!1}=e,D=N??"check",E=x!==void 0?"number":D,O=typeof r=="number"?r:32,R=we("circle-badge",`circle-badge--${E}`,`circle-badge--${B}`,`circle-badge--${O}`,A?"circle-badge--animate":"",w?"circle-badge--clickable":"",i),K=x!==void 0?t("badge.nthSelected",{n:x,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:t("badge.selected","\uC120\uD0DD\uB428"),remove:t("badge.remove","\uC81C\uAC70"),minus:t("badge.exclude","\uC81C\uC678")}[D];return n.jsxs("span",{className:R,onClick:w,onKeyDown:w?M=>{M.key!=="Enter"&&M.key!==" "||(M.preventDefault(),M.currentTarget.click())}:void 0,"aria-label":l?void 0:s??K,"aria-hidden":l||void 0,role:w?"button":l?void 0:"img",tabIndex:w?0:void 0,children:[x!==void 0&&x,x===void 0&&D==="check"&&n.jsx(tb,{}),x===void 0&&D==="remove"&&n.jsx(nb,{}),x===void 0&&D==="minus"&&n.jsx(ab,{})]})}const{label:u,children:c,variant:d="default",fill:m="filled",minWidth:p,iconLeft:C,iconRight:y,color:v}=e,f=typeof r=="number"?"medium":r??"medium",h={small:"caption-2b",medium:"body-3b",large:"body-2b"}[f]??"body-2b",_={small:12,medium:14,large:16}[f]??14,g=we("badge",`badge--${d}`,`badge--${f}`,m!=="filled"?`badge--${m}`:"",h,i),k=v?.startsWith("--")?`var(${v})`:v,b=p!==void 0||k?{...p!==void 0?{minWidth:typeof p=="number"?`${p}px`:p}:{},...k?{"--badge-color":k}:{}}:void 0;return n.jsxs("span",{className:g,style:b,"aria-label":l?void 0:s,role:s&&!l?"img":void 0,"aria-hidden":l||void 0,children:[C&&n.jsx(at,{icon:C,size:_,className:"badge__icon"}),u??c,y&&n.jsx(at,{icon:y,size:_,className:"badge__icon"})]})}function Ma({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:i}=xe.useTranslation(),s=r==="small"?40:48,[l,u]=o.useState([]),c=o.useMemo(()=>{const h=[{title:null,columns:e}];let _=e;for(const g of l){const k=_?.[g.ci]?.items?.[g.ii];if(!k||!Array.isArray(k.children)||!k.children.length)break;_=[{title:null,items:k.children}],h.push({title:k.label||null,columns:_})}return h},[e,l]),d=c[c.length-1],m=c.length-1,p=o.useCallback(()=>u(h=>h.slice(0,Math.max(0,Math.min(h.length,m)-1))),[m]),C=o.useRef(null),y=o.useRef(null),v=c.length;o.useEffect(()=>{y.current||(y.current=document.activeElement);let h=0,_=0;const g=()=>{const k=C.current?.querySelector("button:not([disabled])");if(k&&k.offsetParent){k.focus({preventScroll:!0});return}_++<20&&(h=requestAnimationFrame(g))};return h=requestAnimationFrame(g),()=>cancelAnimationFrame(h)},[v]),o.useEffect(()=>()=>{y.current?.focus?.({preventScroll:!0})},[]);const f=o.useCallback((h,_,g)=>{if(h){if(Array.isArray(h.children)&&h.children.length){u(k=>[...k.slice(0,m),{ci:_,ii:g}]);return}try{typeof h.onClick=="function"&&h.onClick()}catch{}try{h&&h.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t,m]);return n.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(c.length>1||d.title)&&n.jsxs("div",{className:"tooltip-menu__header",children:[c.length>1?n.jsx(pe,{htmlType:"button",size:s,type:"dot",icon:"chevron-left",ariaLabel:i("common.back","\uB4A4\uB85C"),onClick:p,variant:"transparent-gray",useBorder:!1}):null,n.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),n.jsx("div",{className:"tooltip-menu__columns",ref:C,children:d.columns&&d.columns.map((h,_)=>n.jsxs("div",{className:"tooltip-menu__column",children:[h.title?n.jsx("div",{className:"tooltip-menu__column-title body-3",children:h.title}):null,n.jsx("div",{className:"tooltip-menu__items",children:(h.items||[]).map((g,k)=>n.jsxs(o.Fragment,{children:[g.separatorBefore&&k>0&&n.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),n.jsx(pe,{htmlType:"button",className:"tooltip-menu__item",size:s,type:g.label?"bar":"dot",icon:g.selected?"check":g.icon||"none",rightIcon:Array.isArray(g.children)&&g.children.length?"chevron-right":g.badgeCount?n.jsx(kt,{type:"dot",position:"inline",number:Math.min(g.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:g.label,ariaLabel:g.label&&g.badgeCount&&g.badgeCount>0?i("nav.badgeLabel",{label:g.label,count:g.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):g.label,onClick:()=>f(g,_,k),selected:g.selected,disabled:g.disabled,showTooltipInfo:g.tooltip||!1,useBorder:!1,align:"left"})]},k))})]},_))})]})}const jl=".content-area";function xo(e,t="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(jl);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&St("nav-scroll-container",`[${t}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${jl}) \u2014 \uCC3D\uB3C4 \uAD6C\uB97C \uC218 \uC5C6\uC5B4 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4. scrollContainer \uB85C \uD1B5\uC744 \uC54C\uB824 \uC900\uB2E4.`),window.scrollTo({top:0})}catch{}}const _o=52,or=10,Ml=e=>e&&e>0?e:0;function Ll({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:i,moreItems:s=[],scrollContainer:l}){const{t:u}=xe.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",m=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=o.useRef(null),[C,y]=o.useState(0),v=e.length;o.useEffect(()=>{const P=p.current;if(!P)return;const z=()=>{const S=typeof getComputedStyle=="function"?getComputedStyle(P):null,j=P.clientWidth-(parseFloat(S?.paddingLeft??"")||0)-(parseFloat(S?.paddingRight??"")||0),I=P.querySelector(".bottom-nav__left"),q=I?.nextElementSibling,re=(I?.offsetWidth??0)+(I&&q?.classList.contains("bottom-nav__divider")?q.offsetWidth:0);y(Math.max(0,j-re))};if(z(),typeof ResizeObserver>"u")return;const V=new ResizeObserver(z);V.observe(P);const F=P.querySelector(".bottom-nav__left");return F&&V.observe(F),()=>V.disconnect()},[i]);const f=_o+1,h=P=>Math.max(0,Math.floor((P+or)/(_o+or))),_=v*(_o+or)-or<=C,g=C<=0||s.length===0&&_?v:Math.min(v,h(C-f)),k=C>0&&g<v,b=k?g:v,N=e.slice(0,b),x=e.slice(b),B=k||s.length>0,w=o.useCallback((P,z)=>({position:"fixed",bottom:window.innerHeight-P.top+8,right:window.innerWidth-P.right,zIndex:Ta(z)}),[]),A=o.useId(),{open:D,toggle:E,close:O,style:R,triggerRef:K,menuRef:M}=ja({computeStyle:w,onScroll:"ignore",onResize:"reposition"}),L=o.useCallback((P,z)=>z>0?u("nav.badgeLabel",{label:P,count:z,defaultValue:"{{label}}, {{count}}\uAC1C"}):P,[u]),$=o.useCallback((P,z)=>z>0?u("nav.badgeInsideLabel",{label:P,count:z,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):P,[u]),G=o.useCallback(()=>i?.(c),[i,c]),W=o.useMemo(()=>x.find(P=>!!P.key&&P.key===t)??s.find(P=>P.selected||P.key&&P.key===t),[x,t,s]),H=o.useMemo(()=>[{items:[...x.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:!!P.key&&P.key===t,closeOnSelect:!0,disabled:P.state==="disabled",onClick:()=>{P.state!=="disabled"&&(P.key&&a&&(a(P.key),xo(l,"BottomNav")),O())}})),...s.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:P.selected??(!!P.key&&P.key===t),closeOnSelect:!0,onClick:()=>{P.onClick?.(),O()}}))]}],[x,s,t,a,O]),U=[...x,...s].reduce((P,z)=>P+Ml(z.badgeCount),0);return n.jsxs("nav",{className:"bottom-nav",ref:p,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[i&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__left",children:n.jsx(pe,{htmlType:"button",size:52,type:"dot",icon:d,ariaLabel:m,className:"bottom-nav-item",onClick:G})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",children:N.map((P,z)=>{const V=Ml(P.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(pe,{htmlType:"button",size:52,type:"dot",icon:P.icon,ariaLabel:L(P.label,V),selected:!!P.key&&P.key===t,disabled:P.state==="disabled",className:"bottom-nav-item",onClick:()=>{P.key&&(a?.(P.key),xo(l,"BottomNav"))}}),V>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(kt,{type:"dot",position:"top-right",number:Math.min(V,99),size:24})})]},P.key??`__slot-${z}`)})}),B&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),n.jsx("div",{className:"bottom-nav__right",children:n.jsxs("div",{ref:K,className:"bottom-nav__slot",children:[n.jsx(pe,{htmlType:"button",size:52,type:"dot",icon:W?.icon??"ellipsis",ariaLabel:$(W?.label??u("nav.more","\uB354\uBCF4\uAE30"),U),selected:!!W,className:"bottom-nav-item",onClick:E,"aria-expanded":D,"aria-controls":D?A:void 0}),U>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(kt,{type:"dot",position:"top-right",number:Math.min(U,99),size:24})}),D&&en.createPortal(n.jsx("div",{id:A,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:R,ref:M,children:n.jsx(Ma,{columns:H,onClose:O})}),document.body)]})})]})]})}function $l(e){if(typeof e!="string")return!1;let t="";for(const r of e){const i=r.charCodeAt(0);i<=32||i>=127&&i<=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 Rl(e,t,a){return a&&a>0?e("nav.badgeLabel",{label:t,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):t}function rb(e){const{t}=xe.useTranslation(),{activeKey:a,unreadCount:r,onDebug:i,onNotification:s,onSetting:l,onHelp:u,onFeedback:c,onAccount:d}=e||{},m="default";return i||s||l||u||c||d?n.jsxs("div",{className:"side-nav__footer",children:[i&&n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:i,selected:a==="debug"}),s&&n.jsxs("span",{className:"side-nav__notification-wrap",children:[n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"bell",ariaLabel:Rl(t,t("nav.notifications","\uC54C\uB9BC"),r),onClick:s,selected:a==="notifications"}),!!r&&r>0&&n.jsx(kt,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),u&&n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),c&&n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"bug",ariaLabel:t("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:c,selected:a==="feedback"}),d&&n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]}):null}function Pl(e){const{t}=xe.useTranslation(),{item:a,itemKey:r,label:i,icon:s,active:l,onClick:u,style:c,state:d,labelStyle:m}=e||{},p=a?.key??r??"",C=a?.label??i??"",y=a?.icon??s??"",v=a?.badge??0,f=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(at,{icon:y,label:typeof C=="string"?C:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),h=d==="disabled",_=`side-nav__item ${l?"active":""} ${d||""} ${h?"disabled":""} ${a?.child?"side-nav__item--child":""}`,g=o.useCallback(k=>{if(h)return;const b=k.detail>0;if(b)try{k.currentTarget.blur()}catch{}u?.(p,k.currentTarget,b)},[h,p,u]);return n.jsxs("button",{type:"button",className:_,onClick:g,"aria-label":typeof C=="string"?Rl(t,C,v):void 0,"aria-current":l?"page":void 0,style:c,"aria-disabled":h,children:[f,n.jsx("span",{className:"side-nav__label button-1 f",style:m,children:C}),v>0&&n.jsx(kt,{type:"dot",position:"inline",number:Math.min(v,99),size:24,"aria-hidden":!0}),d==="loading"&&n.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":t("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function Fl(e){const{t}=xe.useTranslation(),{items:a=[],activeKey:r,onChange:i,unreadCount:s,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:C,onAppModeChange:y,scrollContainer:v}=e||{},f=C==="manager",h=o.useCallback(()=>y?.(f?"malgwi":"manager"),[y,f]),_=o.useRef(null),[g,k]=o.useState(null);o.useEffect(()=>{const w=_.current;if(!w)return;let A=null;const D=()=>{const{scrollHeight:R,clientHeight:K,scrollTop:M}=w;if(R<=K+1){k(H=>H===null?H:null);return}const L=Math.max(24,K/R*K),$=K-L,G=R-K,W={top:Math.round(M/G*$),height:Math.round(L)};k(H=>H&&H.top===W.top&&H.height===W.height?H:W)},E=()=>{if(typeof requestAnimationFrame>"u"){D();return}A===null&&(A=requestAnimationFrame(()=>{A=null,D()}))};D(),w.addEventListener("scroll",E,{passive:!0});const O=typeof ResizeObserver<"u"?new ResizeObserver(E):null;O?.observe(w);for(const R of Array.from(w.children))O?.observe(R);return()=>{A!==null&&cancelAnimationFrame(A),w.removeEventListener("scroll",E),O?.disconnect()}},[a]);const b=o.useRef(null),N=o.useCallback(w=>{const A=_.current;A&&(w.preventDefault(),b.current={y:w.clientY,top:A.scrollTop},w.currentTarget.setPointerCapture(w.pointerId))},[]),x=o.useCallback(w=>{const A=_.current,D=b.current;!A||!D||(A.scrollTop=D.top+(w.clientY-D.y)*(A.scrollHeight/A.clientHeight))},[]),B=o.useCallback(w=>{b.current=null,w.currentTarget.hasPointerCapture(w.pointerId)&&w.currentTarget.releasePointerCapture(w.pointerId)},[]);return n.jsxs("nav",{ref:_,"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[g&&n.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:n.jsx("div",{className:"side-nav__scroll-thumb",style:{top:g.top,height:g.height},onPointerDown:N,onPointerMove:x,onPointerUp:B,onPointerCancel:B})}),n.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(w=>!w.section&&(w.key||w.label)).map((w,A)=>n.jsxs(o.Fragment,{children:[w.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(Pl,{item:w,active:!!w.key&&w.key===r,state:w.disabled?"disabled":void 0,onClick:(D,E,O)=>{if(w.disabled)return;if(w.href){if($l(w.href)&&window.open(w.href,"_blank","noopener,noreferrer"),O)try{E?.blur()}catch{}return}if(i?.(w.key),xo(v,"SideNav"),!O)return;try{E?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const R=document.querySelector(".header");if(R){const K=typeof R.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&K&&R.matches(":hover"))){R.classList.add("header--force-collapsed");const M=()=>{R.classList.remove("header--force-collapsed"),R.removeEventListener("mouseenter",M)};R.addEventListener("mouseenter",M)}}}})]},w.key??`side-nav__item-${A}`)),y&&n.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),y&&n.jsx(Pl,{item:{key:"__mode-switch__",label:f?t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:f?"arrow-left":"arrow-right"},onClick:h})]}),n.jsx(rb,{activeKey:r,unreadCount:s,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p})]})}var sr='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',wo='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',ob='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 Il({appMode:e}){const{t}=xe.useTranslation(),a=e==="manager",r=a?wo:sr,i=ob;return n.jsxs("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:[n.jsx("img",{src:i,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),n.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image brand-identity__image--logo"})]})}function Ol({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:i,unreadCount:s,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:C,onAppModeChange:y,scrollContainer:v}){const{t:f}=xe.useTranslation(),h=ln("(max-width: 767px)"),_=o.useMemo(()=>(a??[]).filter(R=>!R.section&&(R.key||R.label)).map(R=>({key:R.key,label:typeof R.label=="string"?R.label:void 0,icon:R.icon,state:R.disabled?"disabled":void 0,badgeCount:R.badge})),[a]),g=o.useCallback(R=>{const K=a?.find(M=>M.key===R);if(!K?.disabled){if(K?.href){$l(K.href)&&window.open(K.href,"_blank","noopener,noreferrer");return}t?.(R)}},[a,t]),k=o.useMemo(()=>{const R=[];return l&&R.push({key:"debug",icon:"terminal",label:f("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),u&&R.push({key:"notifications",icon:"bell",label:f("nav.notifications","\uC54C\uB9BC"),badgeCount:s,onClick:u}),d&&R.push({key:"settings",icon:"settings",label:f("nav.settings","\uC124\uC815"),onClick:d}),m&&R.push({key:"help",icon:"message-circle-question-mark",label:f("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:m}),p&&R.push({key:"feedback",icon:"bug",label:f("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:p}),c&&R.push({key:"account",icon:"user-round",label:f("nav.account","\uACC4\uC815"),onClick:c}),R},[f,l,u,d,m,p,c,s]),b=o.useCallback((R,K)=>({position:"fixed",top:R.bottom+8,right:Math.max(8,window.innerWidth-R.right),zIndex:Ta(K)}),[]),N=o.useId(),{open:x,toggle:B,close:w,style:A,triggerRef:D,menuRef:E}=ja({computeStyle:b,onScroll:"ignore",onResize:"reposition"}),O=o.useMemo(()=>[{items:k.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.selected??(!!R.key&&R.key===e),closeOnSelect:!0,onClick:()=>{R.onClick?.(),w()}}))}],[k,e,w]);return n.jsxs("aside",{className:`header${C==="manager"?" header--manager":""}`,children:[n.jsxs("div",{className:"header__bi",children:[n.jsx(Il,{appMode:C}),n.jsxs("div",{className:"header__menu-button",ref:D,children:[n.jsx(pe,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&s&&s>0?f("nav.badgeInsideLabel",{label:f("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:s,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):f("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:B,"aria-expanded":x,"aria-controls":x?N:void 0}),!!u&&!!s&&s>0&&n.jsx(kt,{type:"dot",number:Math.min(s,99),size:24,"aria-hidden":!0}),x&&en.createPortal(n.jsx("div",{id:N,role:"group","aria-label":f("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:A,ref:E,children:n.jsx(Ma,{columns:O,onClose:w})}),document.body)]})]}),n.jsx(Fl,{scrollContainer:v,items:a,activeKey:e??void 0,onChange:t,unreadCount:s,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:C,onAppModeChange:y}),h&&n.jsx(Ll,{items:_,activeKey:e??void 0,onChange:g,scrollContainer:v,appMode:C,onAppModeChange:y})]})}const sb=Ol,ib=()=>Rt.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function Hl(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 oa(`${t.toLocaleString("ko-KR")}\uC6D0`)}return oa(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function lb(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function ub(e){if(e.durationDays&&e.durationDays>0){const s=e.durationDays;return s%365===0?`${s/365}\uB144`:`${s}\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 i=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return i?i[2].toLowerCase()==="year"?`${i[1]}\uB144`:`${i[1]}\uC77C`:a||ib()}function cb(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 Vl(e){return{type:e.type??lb(e),plan:ub(e),label:e.label,price:Hl(e.price),originalPrice:Hl(e.originalPrice),discountLabel:e.discountLabel}}var db='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',pb='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>',mb='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',hb='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',Cb='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>',fb='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',zl='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 Yn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},Bo=new WeakMap;function gb(e){if(e)return Bo.get(e)}function kn(e,t){e&&(e.style.setProperty(Yn.text,t.text),e.style.setProperty(Yn.sub,t.sub),t.copyrightColor&&e.style.setProperty(Yn.copyright,t.copyrightColor),Bo.set(e,t))}function Nn(e){e&&(e.style.removeProperty(Yn.text),e.style.removeProperty(Yn.sub),e.style.removeProperty(Yn.copyright),Bo.delete(e))}const Wl={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function ql(e={}){const t=At(Wl,kn,Nn);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("${zl}")`}})]})}const Ul="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 La='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 bb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},yb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Gl(e={}){const t=At(bb,kn,Nn),a="var(--color-main)",r=270,i=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:yb.map(({scale:s,opacity:l},u)=>n.jsx("g",{transform:`translate(${r} ${i}) scale(${s}) translate(-50 -50)`,opacity:l,children:n.jsx("path",{d:Ul,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${La}")`}})]})}const vb={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},xb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function _b(e={}){const t=At(vb,kn,Nn),a="#ffffff",r=270,i=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:xb.map(({scale:s,opacity:l},u)=>n.jsx("g",{transform:`translate(${r} ${i}) scale(${s}) translate(-50 -50)`,opacity:l,children:n.jsx("path",{d:Ul,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${zl}")`}})]})}const wb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Bb(e={}){const t=At(wb,kn,Nn);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("${La}")`}})]})}const Ab={Logo_speechear_kr:{"":sr,_white:db,_textWhite:pb,_black:mb},Logo_speechearManager_kr:{"":wo,_white:hb,_textWhite:Cb,_black:fb}};function kb(e,t){if(e)return Ab[e]?.[t??""]??void 0}const Nb={speechear:sr,manager:wo},Eb={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},Kl=10;function Db(e){return e<=0?0:e>=86400?Math.floor(e/86400)*86400:e>=3600?Math.floor(e/3600)*3600:e>=60?Math.floor(e/60)*60:Math.floor(e)}function Yl(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 i=Math.floor(e/60);return i>0?t("passCard.remainingMinute",{n:i}):t("passCard.remainingSecond",{n:Math.floor(e)})}function Sb(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),i=a==="\uC624\uD508\uD2B9\uAC00"||a===Rt.t("passCard.specialLabel");return r?n.jsx(Bb,{}):i?n.jsx(_b,{}):n.jsx(Gl,{})}return n.jsx(ql,{})}function Zl({ariaLabel:e,product:t,showPrice:a=!1,plan:r,type:i,endDate:s,remainingSeconds:l,endInclusive:u=!1,state:c="active",bg:d,bgOnly:m=!1,textColor:p,subColor:C,copyrightColor:y,logoSrc:v,label:f,price:h,originalPrice:_,discountLabel:g,onUse:k,onRefund:b,onDelete:N}){const{t:x}=xe.useTranslation(),B=t?Vl(t):void 0,w=i??B?.type??"speechear",A=r??B?.plan??x("passCard.planSuffix","\uC774\uC6A9\uAD8C"),D=f??B?.label,E=h??(a?B?.price:void 0),O=_??(a?B?.originalPrice:void 0),R=g??B?.discountLabel,K=o.useMemo(()=>{if(E)return null;const Z=t?.durationDays??cb(t?.code);if(!Z||Z<=0)return l!=null?{percent:null,remainingLabel:Yl(l,x)}:null;const Q=Z*86400;let me;if(l!=null)me=l;else if((c==="active"||c==="expired")&&s){const te=new Date(s).getTime();if(Number.isNaN(te))return null;const ue=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(s)),Ce=/^(\d{4})-(\d{2})-(\d{2})/.exec(Na()),ge=Math.round(ue&&Ce?(Date.UTC(+ue[1],+ue[2]-1,+ue[3])-Date.UTC(+Ce[1],+Ce[2]-1,+Ce[3]))/864e5:(te-Date.now())/864e5);me=Math.max(0,u?ge+1:ge)*86400}else c==="expired"?me=0:me=Q;const De=Db(me),be=Math.max(0,Math.min(100,Math.floor(Math.min(De,Q)/Q*100)));return c==="pending"&&be>=100?null:{percent:be,remainingLabel:c==="expired"?x("passCard.expired","\uB9CC\uB8CC\uB428"):Yl(me,x)}},[E,c,s,l,u,t?.durationDays,t?.code,x]),M=o.useRef(null),[L,$]=o.useState({}),[G,W]=o.useState(null),H=!!(k||b||N),U=o.useRef(!1),P=o.useRef(void 0),[z,V]=o.useState(v);o.useLayoutEffect(()=>{V(v)},[v]),o.useLayoutEffect(()=>{const Z=M.current;Z&&(p!==void 0&&Z.style.setProperty("--pass-card-text",p),C!==void 0&&Z.style.setProperty("--pass-card-sub",C),y!==void 0&&Z.style.setProperty("--pass-card-copyright",y))},[p,C,y]),o.useLayoutEffect(()=>{const Z=M.current;if(!Z)return;const Q=gb(Z);if(!v){const me=Eb[w],De=c==="expired"?"_black":Q?.logoColor??"",be=kb(me,De);V(be)}},[d,v,w,c]);const F=Z=>{const Q=M.current;if(!Q)return null;const{left:me,top:De,width:be,height:te}=Q.getBoundingClientRect(),ue=(Z.clientX-me)/be-.5;return{rotateX:-((Z.clientY-De)/te-.5)*Kl,rotateY:ue*Kl}},S=(Z,Q)=>{const me=Q*-.7,De=Z*.7+10,be=20+(Math.abs(Z)+Math.abs(Q))*.4;return`${me}px ${De}px ${be}px rgba(0, 0, 0, 0.18)`},j=o.useCallback(Z=>{if(la())return;U.current=!0,clearTimeout(P.current),P.current=setTimeout(()=>{U.current=!1},200);const Q=F(Z);Q&&$({transform:`perspective(800px) rotateX(${Q.rotateX}deg) rotateY(${Q.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:S(Q.rotateX,Q.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),I=o.useCallback(Z=>{if(la())return;const Q=F(Z);if(!Q)return;const me=U.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";$({transform:`perspective(800px) rotateX(${Q.rotateX}deg) rotateY(${Q.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:S(Q.rotateX,Q.rotateY),transition:me})},[]),q=o.useCallback(()=>{clearTimeout(P.current),U.current=!1,$({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)"})},[]),re=o.useCallback(()=>W(null),[]),ne=o.useMemo(()=>{const Z=x("passCard.planSuffix","\uC774\uC6A9\uAD8C"),Q=A.replace("\uC774\uC6A9\uAD8C","").replace(Z==="\uC774\uC6A9\uAD8C"?"":Z,"").trim(),me=Q.match(/^(.*?)(일|년)$/);return me?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"h0 pass-card__plan-number",children:me[1]}),n.jsx("span",{className:"h5b pass-card__plan-unit",children:me[2]==="\uB144"?x("passCard.unitYear","\uB144"):x("passCard.unitDay","\uC77C")})]}):n.jsx("span",{className:"h0",children:Q})},[A,x]),le=o.useMemo(()=>{const Z=oa(E);if(!Z)return null;const Q=Z.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!Q)return n.jsx("span",{className:"h1",children:Z});const[,me,De,be]=Q;return n.jsxs(n.Fragment,{children:[me&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:me}),n.jsx("span",{className:"h1 pass-card__price-amount",children:De}),be.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:be.trim()})]})},[E]),Y=o.useCallback(()=>{H&&W(Z=>{if(Z)return null;const Q=M.current?.getBoundingClientRect();if(!Q)return null;const me=50;return{left:Q.left,right:Q.right,width:Q.width,height:Q.height,x:Q.x,y:Q.y+me,top:Q.top+me,bottom:Q.bottom+me}})},[H]),oe=o.useCallback(Z=>{H&&(Z.key==="Enter"||Z.key===" ")&&(Z.preventDefault(),Y())},[H,Y]),ke=[{items:[...k?[{label:x("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{k(),W(null)},closeOnSelect:!0}]:[],...b?[{label:x("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{b(),W(null)},closeOnSelect:!0}]:[],...N?[{label:x("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{N(),W(null)},closeOnSelect:!0}]:[]]}];return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card-frame",children:n.jsxs("div",{ref:M,className:`pass-card pass-card--${c}${H?" pass-card--clickable":""}`,style:L,onMouseEnter:j,onMouseMove:I,onMouseLeave:q,onPointerUp:Z=>{Z.pointerType==="touch"&&q()},onPointerCancel:Z=>{Z.pointerType==="touch"&&q()},onClick:Y,onKeyDown:H?oe:void 0,role:H?"button":void 0,tabIndex:H?0:void 0,"aria-label":e,"aria-haspopup":H?"menu":void 0,"aria-expanded":H?!!G:void 0,children:[d??Sb(w,A,D),!m&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card__top",children:n.jsxs("div",{className:"pass-card__top-left",children:[n.jsx("img",{src:z??Nb[w],className:"pass-card__logo",alt:w==="manager"?x("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):x("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),n.jsxs("div",{className:"pass-card__plan",children:[n.jsx("div",{children:ne}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:D?x("passCard.labeledPlan",{label:D}):x("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),E?n.jsxs("div",{className:"pass-card__price-area",children:[R&&n.jsx("span",{className:"pass-card__discount body-3",children:R}),n.jsxs("div",{className:"pass-card__price",children:[O&&n.jsx("span",{className:"pass-card__price-original body-3",children:oa(O)}),le]})]}):K?n.jsxs("div",{className:"pass-card__usage",children:[n.jsx("span",{className:"h5b pass-card__usage-remaining",children:K.remainingLabel}),K.percent!=null&&n.jsxs("span",{className:"pass-card__usage-percent",children:[n.jsx("span",{className:"h1 pass-card__usage-value",children:K.percent}),n.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):n.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),G&&n.jsx(cn,{anchorRect:G,onClose:re,ariaLabel:x("tooltip.menu","\uBA54\uB274"),children:n.jsx(Ma,{columns:ke,onClose:re,size:"small"})})]})}const Tb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function jb(e={}){const t=`passcard-sound-line-grad-${o.useId()}`,a=At(Tb,kn,Nn);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("${La}")`}})]})}const Mb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Lb(e={}){const t=At(Mb,kn,Nn);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("${La}")`}})]})}function $b(e,t){if(e){if(t==="manager_pro")return n.jsx(Lb,{});if(t==="manager_standard")return n.jsx(jb,{});if(t==="manager_lite")return n.jsx(Gl,{})}}function Rb(e){const t=oa(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,i,s]=a;return n.jsxs(n.Fragment,{children:[r&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),i,s.trim()&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:s.trim()})]})}function Pb(e){const{t}=xe.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:i,onSelect:s,period:l="monthly",ownedCodes:u}=e||{},c=b=>!!b&&!!u?.includes(b),d=b=>b.onceOnly??/오픈\s*특가/.test(b.label??""),m=(i.tiers||[]).some(b=>d(b)&&c(b.code)),p=b=>{const N=b.prices?b.prices[l]:b.price;return N?(i.tiers||[]).some(x=>!!x.badge&&x.originals?.[l]===N):!1},C=i.colorToken?`var(--color-${i.colorToken})`:"var(--color-gray)",y=t("payment.plan.freePrice","\uBB34\uB8CC"),v=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),f=b=>b.prices?b.prices[l]:b.price,h=(i.tiers||[]).length>0&&(i.tiers||[]).every(b=>{const N=f(b);return N==="\uBB34\uB8CC"||N===y||N==="0\uC6D0"||typeof N=="string"&&/\d/.test(N)&&!/[1-9]/.test(N)}),_=(i.tiers||[]).length>0&&(i.tiers||[]).every(b=>{const N=f(b);return N==="\uBB38\uC758"||N===v}),g=i.group==="org",k=g?"manager":"speechear";return n.jsxs("div",{className:"payment-plan__card",style:{borderColor:C,"--plan-color":C},children:[i.cardBadge&&n.jsx("div",{className:"payment-plan__card-badge",children:n.jsx(kt,{label:i.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:C},children:i.quote||"\xA0"}),n.jsx("h3",{className:"payment-plan__title-heading h1",children:i.tier??i.title}),n.jsx("p",{className:"payment-plan__subtitle body-3",children:i.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:(i.recommendedFor||[]).map((b,N)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(at,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:C}}),b]},N))})]}),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:(i.features||[]).map((b,N)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(at,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:C}}),b]},N))})]}),n.jsx("div",{className:"payment-plan__card-pricing",children:h?null:_?n.jsx(pe,{htmlType:"button",className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>i.tiers?.[0]&&s?.({...i.tiers[0],productId:i.id,productTitle:i.title})}):n.jsx(n.Fragment,{children:n.jsx("div",{className:"payment-plan__pricing-list",children:(i.tiers||[]).map(b=>{const N=b.label||a,x=d(b),B=x||b.openPromo===!0,w=N.replace(/^오픈\s*특가\s*/,"")||a,A=b.prices?b.prices[l]:b.price,D=b.badge?B?`${r}
852
- ${b.badge}`:b.badge:void 0;if(x&&c(b.code))return null;if(!b.badge&&!m)return p(b)?null:n.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${b.highlight?" payment-plan__pricing-row--highlight":""}`,children:[n.jsx("div",{className:"payment-plan__pricing-row-title",children:n.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:b.label})}),n.jsx("div",{className:"payment-plan__pricing-row-price",children:n.jsx("span",{className:"payment-plan__pricing-current h1",children:Rb(A)})})]},b.id);const E=i.tier??(g?i.title:void 0),O=n.jsx(Zl,{showPrice:!0,product:{type:k,code:b.code,name:w,label:E,price:A,originalPrice:b.originals?.[l]??void 0,discountLabel:D},bg:$b(g,i.id)}),R=()=>s?.({...b,productId:i.id,productTitle:i.title,preview:O});return n.jsx("div",{className:"payment-plan__pricing-card",onClick:R,onKeyDown:s?K=>{K.target===K.currentTarget&&(K.key==="Enter"||K.key===" ")&&(K.preventDefault(),R())}:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,children:O},b.id)})})})})]})}function Fb({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 Ao='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 Xl={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Ib(){const e=At(Xl,kn,Nn);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("${Ao}")`}})})}const Jl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Ob(e={}){const t=At(Jl,kn,Nn);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("${La}")`}})]})}function Ql({keys:e,anchor:t="top-right",scale:a,className:r=""}){const i=Array.isArray(e)?e:[e];return n.jsx("span",{className:we("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:i.map((s,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:s})]},`${s}-${l}`))})}const $a=(e,t,a)=>e+(t-e)*a;function Hb({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:i,selectedId:s=null,answerId:l=null,showFeedback:u=!1,pulseSelected:c=!1,pulseSelectedDuration:d,pulseScale:m,clickable:p=!1,onSelectSpeaker:C,buttonSize:y=40,showIcon:v=!0,onCenterClick:f,centerLabel:h,centerDisabled:_=!1,centerAttention:g=!1,shortcutAnchor:k="top-right",shortcutScale:b,scaleShortcut:N=!1}){const{t:x}=xe.useTranslation(),B=Math.max(0,Math.min(1,a)),w=t/2,A=110/300,D=.18,E=Z=>t*(A+(Z-1)*D),O=Z=>{const Q=E(Z.row??1),me=Z.angleDeg*Math.PI/180;return{x:w+Q*Math.cos(me),y:w+Q*Math.sin(me)}},R=Math.max(...e.map(Z=>Z.row??1),1),K=t*.08,M=t*.1,L=t*.24,$=t-2*K,G=t-M-L,W=t-L/2,H=o.useMemo(()=>[...new Set(e.map(Z=>Z.deg))].sort((Z,Q)=>Z-Q),[e]),U=H.length,P=Math.max(68,U>1?$/(U-1):0),z=o.useMemo(()=>new Map(H.map((Z,Q)=>[Z,Q])),[H]),V=Z=>{const Q=z.get(Z.deg)??0,me=w+(Q-(U-1)/2)*P,De=R>1?Math.min(68,G/(R-1)):0,be=De*(R-1),te=M+(G-be)/2,ue=R===1?M+G*.4:te+(R-(Z.row??1))*De;return{x:me,y:ue}},F=Z=>{const Q=O(Z),me=V(Z);return{x:$a(Q.x,me.x,B),y:$a(Q.y,me.y,B)}},S={x:w,y:$a(w,W,B)},j=Math.round(y*1.2),I=Math.round(Math.max(16,Math.min(80,y*.7))),q=[],re=new Map;for(const Z of e){const Q=Z.row??1;re.has(Q)||re.set(Q,[]),re.get(Q).push(Z)}for(const[Z,Q]of re.entries()){if(Q.length<2)continue;const me=[...Q].sort((qe,mt)=>qe.deg-mt.deg),De=me.map(qe=>F(qe)),be=me.map(qe=>qe.deg),te=be[be.length-1]-be[0],ue=te/(be.length-1),Ce=360-te,ge=me.length>=3&&ue>0&&Ce<=ue*1.5,fe=Math.round(E(Z)*1e3)/1e3,$e=(qe,mt,ct,rt)=>{const Ct=(mt.angleDeg-qe.angleDeg+540)%360-180;if(Ct===0)return`L ${rt.x} ${rt.y}`;if(B===0)return`A ${fe} ${fe} 0 0 ${Ct>0?1:0} ${rt.x} ${rt.y}`;const Ae=(qe.angleDeg+Ct/2)*Math.PI/180,We={x:w+fe*Math.cos(Ae),y:w+fe*Math.sin(Ae)},_e={x:(ct.x+rt.x)/2,y:(ct.y+rt.y)/2},Ue={x:$a(We.x,_e.x,B),y:$a(We.y,_e.y,B)},Be={x:2*Ue.x-_e.x,y:2*Ue.y-_e.y};return`Q ${Be.x} ${Be.y} ${rt.x} ${rt.y}`},ze=ge?[...me,me[0]]:me,Te=ge?[...De,De[0]]:De;let Fe=`M ${Te[0].x} ${Te[0].y}`;for(let qe=1;qe<Te.length;qe++)Fe+=" "+$e(ze[qe-1],ze[qe],Te[qe-1],Te[qe]);q.push({key:`arc-${Z}`,d:Fe})}const ne=o.useMemo(()=>new Set(i??[]),[i]),le=Z=>({idle:"",active:x("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:x("soundCompass.state.played","\uB4E4\uC74C"),correct:x("soundCompass.state.correct","\uC815\uB2F5"),wrong:x("soundCompass.state.wrong","\uC624\uB2F5")})[Z],Y=Z=>{if(r===Z.id)return"active";if(u){if(Z.id===l)return"correct";if(Z.id===s&&s!==l)return"wrong"}return ne.has(Z.id)?"played":"idle"},oe=Z=>r===Z.id?"loop":u?Z.id===l?"loop":null:c&&Z.id===s?"once":null,ke=(Z,Q)=>{switch(Z){case"played":case"correct":return n.jsx(Es,{size:Q});case"wrong":return n.jsx(Fs,{size:Q});default:return n.jsx(Ps,{size:Q})}};return n.jsx("div",{className:"sound-compass",children:n.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:t,height:t},children:[n.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,className:"sound-compass__svg",children:[B===0&&e.map(Z=>{const{x:Q,y:me}=F(Z);return n.jsx("line",{x1:S.x,y1:S.y,x2:Q,y2:me,stroke:"#dde3ec",strokeWidth:"1"},Z.id)}),q.map(Z=>n.jsx("path",{d:Z.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},Z.key))]}),g&&!_&&n.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:j,height:j,left:S.x-j/2,top:S.y-j/2}}),f?n.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${_?" sound-compass__center--disabled":""}`,style:{width:j,height:j,left:S.x,top:S.y},"aria-label":h,"aria-disabled":_||void 0,tabIndex:_?-1:0,onClick:_?void 0:f,children:n.jsx(Lr,{size:I,color:"currentColor",strokeWidth:1.5})}):n.jsx("div",{className:"sound-compass__center",style:{width:j,height:j,left:S.x,top:S.y},children:n.jsx(Lr,{size:I,color:"currentColor",strokeWidth:1.5})}),e.map((Z,Q)=>{const{x:me,y:De}=F(Z),be=Y(Z),te=oe(Z),ue={...b!==void 0||N?{"--shortcut-badge-scale":String(b??Math.max(.75,Math.min(3,y/56)))}:null,pointerEvents:p?"auto":"none",cursor:p?"pointer":"default",zIndex:be!=="idle"?10:1},Ce=y,ge=Math.round(Math.max(10,Math.min(56,Ce*.38))),fe=Math.round(Math.max(7,Math.min(18,Ce*.2))),$e=Math.round(Math.max(10,Math.min(56,Ce*.4))),ze=v==="answered"&&(be==="played"||be==="correct"||be==="wrong"),Te=v===!0||ze,Fe=!ze;return n.jsxs("div",{className:"sound-compass__speaker-pos",style:{...ue,left:me-Ce/2,top:De-Ce/2},children:[te&&n.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${be}`+(te==="once"?" sound-compass__pulse--once":""),style:{width:Ce,height:Ce,...te==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...m!==void 0?{"--sc-pulse-scale":String(m)}:null}}),n.jsxs("button",{type:"button",tabIndex:p?0:-1,"aria-disabled":p?void 0:!0,onClick:p?()=>C?.(Z.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${be}`,style:{width:Ce,height:Ce},"aria-label":le(be)?`${Z.label}, ${le(be)}`:Z.label,"aria-pressed":s!=null?Z.id===s:void 0,children:[Te&&ke(be,ge),Fe&&n.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:v===!0?fe:$e},children:Q+1})]}),Z.shortcut&&n.jsx(Ql,{keys:Z.shortcut,anchor:k,className:"sound-compass__speaker-shortcut"})]},Z.id)})]})})}function Vb({children:e,position:t="top-left",size:a=24,className:r=""}){return n.jsx("span",{className:we("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}function zb({orientation:e="horizontal",label:t,className:a=""}){const r=we("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 eu({checked:e,onChange:t,name:a,value:r,disabled:i=!1,label:s,className:l=""}){const u=o.useId();return n.jsxs("label",{className:`radio${i?" radio--disabled":""} ${l}`.trim(),htmlFor:u,children:[n.jsx("input",{id:u,type:"radio",name:a,value:r,checked:e,disabled:i,onChange:c=>t?.(c.target.checked)}),n.jsx("span",{className:"radio__dot"}),s&&n.jsx("span",{className:"radio__label body-2",children:s})]})}function Wb({options:e,value:t,onChange:a,name:r,disabled:i=!1,direction:s="vertical",className:l="",ariaLabel:u}){const c=o.useId(),d=r??`radio-group-${c}`;return n.jsx("div",{className:`radio-group radio-group--${s} ${l}`.trim(),role:"radiogroup","aria-label":u,children:e.map(m=>n.jsx(eu,{name:d,value:m.value,checked:t===m.value,disabled:i||m.disabled,label:m.label,onChange:p=>{p&&a?.(m.value)}},m.value))})}const qb={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Ub({tone:e="info",title:t,message:a,children:r,dismissible:i=!1,onDismiss:s,live:l,className:u=""}){const{t:c}=xe.useTranslation(),[d,m]=o.useState(!1),p=o.useRef(null),C=o.useCallback(()=>{const g=p.current;g&&g.contains(document.activeElement)&&nr(g),m(!0),s?.()},[s]);if(d)return null;const y=we("alert",`alert--${e}`,u),v=l??(e==="danger"||e==="warning"?"assertive":"polite"),f=v==="assertive"?"alert":v==="polite"?"status":void 0,h=!!t,_=!!(a||r);return n.jsxs("div",{ref:p,className:y,role:f,children:[n.jsxs("div",{className:"alert__body",children:[n.jsxs("div",{className:"alert__header",children:[n.jsx(at,{icon:qb[e],size:20,className:"alert__icon"}),h&&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})]}),i&&n.jsx("button",{type:"button",className:"alert__dismiss",onClick:C,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const Gb={ready:"search",guide:"info",error:"circle-alert"};function Kb(e,t){const a=t.filter(Boolean);if(a.length===0)return e;const r=[];let i=0,s=0;for(const l of a){const u=e.indexOf(l,i);u<0||(u>i&&r.push(e.slice(i,u)),r.push(n.jsx("strong",{className:"search-summary__em body-2",children:l},s++)),i=u+l.length)}return i<e.length&&r.push(e.slice(i)),r}function Yb({status:e="guide",label:t,children:a,emphasis:r,icon:i,className:s=""}){const l=i===!1?null:i??Gb[e],u=we("search-summary",`search-summary--${e}`,s),c=t??a,d=typeof c=="string"&&r&&r.length>0?Kb(c,r):c;return n.jsxs("div",{className:u,role:"status","aria-live":"polite",children:[l!=null&&n.jsx(at,{icon:l,size:18,className:"search-summary__icon"}),n.jsx("span",{className:"search-summary__text body-2",children:d})]})}function Ra({title:e,items:t}){const{t:a}=xe.useTranslation(),{anchorRect:r,openAt:i,close:s}=Sa(),l=o.useRef(null),u=ho(!!r,(c,d)=>{c&&d?i(l.current?.querySelector("button")??d):s()},l);return n.jsxs("span",{ref:l,style:{display:"contents"},children:[n.jsx(pe,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:c=>{ia(c)||i(c.currentTarget)},onPointerLeave:c=>{ia(c)||s()},onClick:c=>{u.touchPress(c.currentTarget)},onFocus:c=>{la()||i(c.currentTarget)},onBlur:s}),r&&n.jsx(Gn,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:s})]})}function Zb({items:e=[],value:t,onChange:a,className:r="",size:i=40}){const s=o.useId(),{t:l}=xe.useTranslation(),u=o.useRef(null),c=e.find(f=>!f.disabled)?.key,d=e.some(f=>f.key===t)?t:c??e[0]?.key,m=e.find(f=>f.key===d&&!f.disabled)?.key??c,p=()=>Array.from(u.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),C=(f,h=p())=>{if(h.length===0)return;const _=(f%h.length+h.length)%h.length;h[_]?.focus(),h[_]?.click()},y=f=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(f.key))return;f.preventDefault();const h=p(),_=h.indexOf(f.currentTarget);f.key==="ArrowRight"||f.key==="ArrowDown"?C(_+1,h):f.key==="ArrowLeft"||f.key==="ArrowUp"?C(_-1,h):f.key==="Home"?C(0,h):C(h.length-1,h)},v=e.find(f=>f.key===d);return n.jsxs("div",{className:`tabs ${r}`.trim(),children:[n.jsx("div",{ref:u,className:`tabs__list tabs__list--${i}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(f=>n.jsx("button",{id:`tabs__tab-${s}-${f.key}`,type:"button",role:"tab","aria-selected":f.key===d,"aria-controls":`tabs__panel-${s}-${f.key}`,disabled:f.disabled,tabIndex:f.key===m?0:-1,className:`tabs__tab body-2${f.key===d?" tabs__tab--active":""}`,onClick:()=>{f.key!==t&&a?.(f.key)},onKeyDown:y,children:f.label},f.key))}),v&&n.jsx("div",{id:`tabs__panel-${s}-${v.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${s}-${v.key}`,tabIndex:0,className:"tabs__panel",children:v.panel},v.key)]})}const Xb={xs:12,sm:16,md:20,lg:28,xl:36};function Jb(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 Qb({src:e,name:t,size:a="md",shape:r="circle",className:i=""}){const{t:s}=xe.useTranslation(),[l,u]=o.useState(null),c=!!e&&l===e,d=t?Jb(t):"",m=!!e&&!c,p=!m&&!!d,C=t||s("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return n.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${i}`.trim(),role:"img","aria-label":C,children:[m&&n.jsx("img",{className:"avatar__image",src:e,alt:C,onError:()=>u(e??null)}),!m&&p&&n.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!m&&!p&&n.jsx(at,{icon:"user-round",size:Xb[a],className:"avatar__icon"})]})}function ey(e,t){if(!t)return!0;const a=t.split(",").map(s=>s.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),i=e.type.toLowerCase();return a.some(s=>{const l=s.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?i.startsWith(l.slice(0,-1)):i===l})}function ty({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:i=!0,files:s,onRemove:l,className:u=""}){const{t:c}=xe.useTranslation(),d=o.useRef(null),[m,p]=o.useState(!1),[C,y]=o.useState([]),v=s??C,f=x=>{if(!x||x.length===0)return;const B=Array.from(x).filter(A=>ey(A,t));if(B.length===0)return;const w=a?B:B.slice(0,1);if(s===void 0){const A=a?[...v,...w]:w;y(A),e?.(A)}else e?.(w)},h=x=>{x.preventDefault(),!r&&p(!0)},_=x=>{x.preventDefault(),p(!1)},g=x=>{x.preventDefault(),p(!1),!r&&f(x.dataTransfer.files)},k=x=>{const B=x.target;try{f(B.files)}finally{B.value=""}},b=()=>{r||d.current?.click()},N=x=>{if(!r&&(l?.(x),s===void 0)){const B=v.filter((w,A)=>A!==x);y(B),l||e?.(B)}};return n.jsxs("div",{className:`file-upload ${u}`.trim(),children:[n.jsxs("div",{className:we("file-upload__dropzone",m&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:b,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),b())},onDragOver:h,onDragLeave:_,onDrop:g,children:[n.jsx(at,{icon:"upload",size:24,className:"file-upload__icon"}),n.jsx("span",{className:"file-upload__prompt body-2",children:c("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),n.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:x=>{x.stopPropagation(),b()},children:c("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),n.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:k,tabIndex:-1})]}),i&&v.length>0&&n.jsx("ul",{className:"file-upload__list",children:v.map((x,B)=>n.jsxs("li",{className:"file-upload__list-item body-3",children:[n.jsx("span",{className:"file-upload__file-name body-3",children:x.name}),n.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":c("fileUpload.removeAriaLabel",{name:x.name}),disabled:r,onClick:()=>N(B),children:n.jsx(at,{icon:"x",size:14})})]},`${x.name}-${B}`))})]})}function ny({items:e,className:t=""}){const{t:a}=xe.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,i)=>{const s=i===e.length-1;return n.jsxs("li",{className:"breadcrumb__item",children:[s?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}),!s&&n.jsx(at,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},i)})})})}const ay={small:14,medium:20,large:28};function ry({value:e,onChange:t,max:a=5,readOnly:r=!1,size:i="medium",ariaLabel:s,className:l=""}){const{t:u}=xe.useTranslation(),c=r||!t,[d,m]=o.useState(null),p=c?e:Number.isFinite(e)?Math.round(e):0,C=d??p,y=ay[i],v=x=>{x!==e&&t?.(x)},f=x=>{c||v(x)},h=x=>{c||la()||m(x)},_=o.useRef(null),g=x=>{const B=Math.min(a,Math.max(1,x));v(B),Array.from(_.current?.querySelectorAll("[data-star]")??[]).find(w=>w.dataset.star===String(B))?.focus()},k=x=>{if(!c){switch(x.key){case"ArrowRight":case"ArrowUp":g((p||0)+1);break;case"ArrowLeft":case"ArrowDown":g((p||1)-1);break;case"Home":g(1);break;case"End":g(a);break;default:return}x.preventDefault()}},b=p>=1&&p<=a?Math.round(p):1,N=()=>{c||m(null)};return n.jsx("div",{className:`rating rating--${i}${c?" rating--readOnly":""} ${l}`.trim(),ref:_,onKeyDown:k,role:c?"img":"radiogroup","aria-label":c?u("rating.valueLabel",{value:e,max:a}):s??u("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:N,onPointerUp:x=>{x.pointerType==="touch"&&N()},onPointerCancel:x=>{x.pointerType==="touch"&&N()},children:Array.from({length:a},(x,B)=>{const w=B+1,A=Math.max(0,Math.min(1,C-B)),D=A>0&&A<1,E=n.jsxs("span",{className:"rating__star-wrap",children:[n.jsx(at,{icon:"star",size:y,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(at,{icon:"star",size:y,className:"rating__star rating__star--filled"})})]});return c?n.jsx("span",{className:"rating__item","aria-hidden":"true",children:E},w):n.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":p===w,"aria-label":u("rating.starLabel",{n:w}),"data-star":w,tabIndex:w===b?0:-1,onClick:()=>f(w),onMouseEnter:()=>h(w),children:E},w)})})}const oy=20,sy=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function iy({value:e,onChange:t,palette:a=sy,size:r=40,className:i="",ariaLabel:s}){const{t:l}=xe.useTranslation();return n.jsx("div",{className:`color-picker ${i}`.trim(),role:"group","aria-label":s,children:a.map(u=>{const c=e?.toLowerCase()===u.toLowerCase();return n.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:u},onClick:()=>t(u),"aria-pressed":c,"aria-label":c?`${u} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:u,children:c&&n.jsx(at,{icon:"check",size:oy,className:"color-picker__check"})},u)})})}function tu({icon:e,label:t,tooltip:a,wrapperStyle:r,color:i,bgColor:s,useHover:l=!0,iconSize:u="medium"}){const{t:c}=xe.useTranslation(),d=u==="small",m=we("category-icon",d?"category-icon--small":""),p=d?16:20,C=o.useRef(null),[y,v]=o.useState(!1),f=o.useMemo(()=>{const w=r&&typeof r=="object"?{...r}:{};return!i&&!s?w:{...w,...i?{color:i,"--t-item-fg":i}:{},...s?{"--t-item-bg":s}:{}}},[r,i,s]),h=a||t,_=l&&!!h,[g,k]=o.useState(null);o.useLayoutEffect(()=>{y&&k(C.current?.getBoundingClientRect()??null)},[y]),o.useEffect(()=>{if(!l&&y)try{v(!1)}catch{}},[l,y]),o.useEffect(()=>{if(!y)return;const w=A=>{const D=C.current;if(!D)return;const E=A.target;E&&!D.contains(E)&&v(!1)};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[y]);const b=o.useCallback(()=>{l&&v(!0)},[l]),N=o.useCallback(()=>{l&&v(!1)},[l]),x=o.useCallback(()=>v(!1),[]),B=o.useCallback(w=>{if(w.key==="Escape"){v(!1);return}(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),v(A=>!A))},[]);return n.jsxs("span",{ref:C,className:we("category-icon__wrap",_&&"category-icon__wrap--interactive"),onPointerEnter:b,onPointerLeave:N,onFocus:b,onBlur:N,onKeyDown:B,role:"button",tabIndex:0,"aria-label":typeof h=="string"?c("common.descriptionFor",{name:h,defaultValue:`${h} \uC124\uBA85`}):void 0,"aria-haspopup":!!h,"aria-expanded":y,"data-tooltip-ignore":!0,children:[n.jsx(at,{icon:e,label:t,className:m,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:f,size:p}),y&&h&&n.jsx(Bn,{anchorRect:g,text:typeof h=="string"?h:void 0,offset:8,onClose:x,className:"category-icon__tooltip",ariaLabel:typeof h=="string"?h:void 0})]})}let Pn=null;function ir(e){if(Pn&&Pn!==e)try{Pn()}catch{}return Pn=e,()=>{Pn===e&&(Pn=null)}}function lr(e){if(Pn===e){Pn=null;try{e()}catch{}}}function ur(e,t){let a=()=>{};const r=new Promise(u=>{a=u});if(typeof e!="string"||e.trim()===""){St("one-shot-empty-url","[core] playOneShot \uC5D0 \uBE48 \uC8FC\uC18C\uAC00 \uC654\uB2E4 \u2014 \uC548 \uD2BC\uB2E4. \uBD80\uB974\uB294 \uCABD\uC774 \uC8FC\uC18C\uB97C \uC5BB\uAE30 \uC804\uC5D0 \uBD88\uB800\uB2E4.",new Error("playOneShot(empty)").stack),a(!1);try{t?.(!1)}catch{}return{el:{},stop:()=>{},done:r}}let i=!1;const s=u=>{if(!i){i=!0;try{t?.(u)}catch{}a(u)}};let l;try{l=new Audio(e)}catch{return s(!1),{el:{},stop:()=>{},done:r}}l.onended=()=>s(!0),l.onerror=()=>s(!1);try{l.play().catch(()=>s(!1))}catch{s(!1)}return{el:l,stop:()=>{try{l.pause()}catch{}s(!1)},done:r}}function ly(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(u=>u?.contextCode||u?.context_code).filter(Boolean).map(String);if(t==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}if(t==="SHORT_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"SHORT_S"}}if(t==="LONG_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LONG"}}if(t==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}const i=a.sentences||a.items||[],s=r(Array.isArray(i)?i:[]);return s.length===0&&(a.contextCode||a.context_code)&&s.push(String(a.contextCode||a.context_code)),{previewCodes:s,previewBucket:null}}function uy(e,t){const[a,r]=o.useState(!1),[i,s]=o.useState(-1),[l,u]=o.useState({key:"",urls:[]}),c=o.useRef(null),d=o.useRef(!1),m=o.useRef(null),p=o.useRef(null),[C,y]=o.useState(!1),v=o.useRef([]),{previewCodes:f,previewBucket:h}=ly(e,t),_=`${f.join(",")}|${h??""}`,g=o.useMemo(()=>l.key===_?l.urls:[],[l,_]);o.useEffect(()=>{if(!f.length)return;let b=!1;return(async()=>{const N=[],x=[];for(const B of f)try{const w=pi(B,h);if(!w){N.push("");continue}let A=null;try{A=await mi(w)}catch{}if(!A)try{const D=await hi(w);D&&(A=URL.createObjectURL(D),x.push(A))}catch{}N.push(A??"")}catch{N.push("")}b?x.forEach(B=>{try{URL.revokeObjectURL(B)}catch{}}):(v.current.forEach(B=>{try{URL.revokeObjectURL(B)}catch{}}),v.current=x,u({key:_,urls:N}))})(),()=>{b=!0}},[f.join(","),h]),o.useEffect(()=>()=>{v.current.forEach(b=>{try{URL.revokeObjectURL(b)}catch{}}),v.current=[]},[]);const k=o.useCallback(async b=>{if(b.stopPropagation(),b.preventDefault(),d.current){m.current&&lr(m.current),d.current=!1;try{c.current?.pause()}catch{}r(!1),s(-1);return}if(!g.filter(Boolean).length)return;let N=null;const x=()=>{d.current=!1,N?.stop()};m.current=x;const B=ir(x);d.current=!0,r(!0);for(let w=0;w<g.length&&d.current;w++){const A=g[w];if(A&&(s(w),N=ur(A),c.current=N.el,!await N.done))break}B(),m.current===x&&(m.current=null,d.current=!1,r(!1),s(-1))},[g]);return o.useEffect(()=>()=>{m.current&&lr(m.current),d.current=!1;try{c.current?.pause()}catch{}c.current=null},[]),{playing:a,playingIndex:i,previewUrls:g,previewHover:C,setPreviewHover:y,previewBtnRef:p,handlePreview:k}}const cy=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 i=r;return i.sentence||i.text||i.context||i.question||i.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function ko(e){const{index:t,type:a,trainingData:r,ariaLabel:i,depth:s,renderPopup:l,completed:u,completedIds:c,selectedIds:d,tooltipText:m,useDescriptionTooltip:p=!1,onRemove:C,hideCheckBadge:y=!1,showTypeLabel:v=!1,onComplete:f,onSelect:h,onMore:_,countLabelOverride:g,size:k="square"}=e||{},{t:b}=xe.useTranslation(),[N,x]=o.useState(!1),B=o.useRef(null),[w,A]=o.useState(!1);o.useEffect(()=>{B.current?.matches(":hover")&&A(!0)},[]);const{playing:D,playingIndex:E,previewUrls:O,previewHover:R,setPreviewHover:K,previewBtnRef:M,handlePreview:L}=uy(r,a?.key),$=o.useCallback(()=>{h?h():x(!0)},[h]),G=o.useCallback(()=>x(!1),[]),W=o.useCallback(()=>A(!0),[]),H=o.useCallback(()=>A(!1),[]),U=o.useCallback(()=>K(!0),[K]),P=o.useCallback(()=>K(!1),[K]),[z,V]=o.useState(null);o.useLayoutEffect(()=>{R&&V(M.current?.getBoundingClientRect()??null)},[R,M]);const[F,S]=o.useState(null);o.useLayoutEffect(()=>{w&&!N&&p&&S(B.current?.getBoundingClientRect()??null)},[w,N,p]);const j=o.useCallback(_e=>{_e.target===_e.currentTarget&&(_e.key==="Enter"||_e.key===" ")&&(_e.preventDefault(),$())},[$]),I=r||null,q=o.useMemo(()=>{if(!p)return null;const _e=m?(Array.isArray(m)?m:[m]).filter(Boolean):null,Ue=_e&&_e.length>0?_e:cy(I);return Ue&&Ue.length>0?Ue:null},[p,m,I]),re=o.useCallback(_e=>{_e.stopPropagation(),C?.()},[C]),ne=o.useCallback(_e=>_e.stopPropagation(),[]),le=o.useCallback(_e=>{typeof f=="function"&&f(_e)},[f]),Y=u||(c&&r?.id!=null?c.has(String(r.id)):!1),oe=!Y&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);Bl("speechear.popup.close",G);const ke=$i(),Z=`${a?.label||""} ${t+1}`,Q=I?.title||I?.name||Z;let me=a?.icon,De,be="",te="";try{const _e=I?.category_0||I?.category_main_code||I?.category_main,Ue=I?.category_1||I?.category_sub_code||I?.category_sub,Be=ke.find(je=>je.key===_e);Be?.icon&&(me=Be.icon),!De&&Be?.color&&(De={"--t-item-fg":Be.color}),!De&&I?.iconColor&&(De={"--t-item-fg":I.iconColor}),be=Be?b(`topic.${Be.key}`,{defaultValue:Be.label||""}):"";try{const je=Be?.subs?.find(Se=>Se.key===Ue);te=je?b(`topic.sub.${je.key}`,{defaultValue:je.label||""}):""}catch{}}catch{}const ue=te?`${be} / ${te}`:be||a?.label||Q,Ce=_e=>b("training.countQuestions",{n:_e,count:_e}),ge=_e=>b("training.countSentences",{n:_e,count:_e});let fe="";try{if(I)if(a?.key==="LISTEN_IN_NOISE"){let _e=0;Array.isArray(I.items)&&I.items.length>0?_e=I.items.length:Array.isArray(I.sentences)&&I.sentences.length>0?_e=I.sentences.length:I.sentences&&(_e=1),fe=ge(_e)}else if(a?.key==="SHORT_STORY"){let _e=1;Array.isArray(r?.items)?_e=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?_e=r.raw.items.length:Array.isArray(I?.questions)?_e=I.questions.length:Array.isArray(I?.sentences)&&(_e=I.sentences.length),fe=Ce(_e)}else if(a?.key==="LONG_STORY"){let _e=1;if(Array.isArray(I.items)&&I.items.length>0){const Ue=I.items.reduce((Be,je)=>{const Se=je.questionItems;return Array.isArray(Se)?Be+Se.length:Array.isArray(je.questions)?Be+je.questions.length:Be},0);_e=Ue>0?Ue:I.items.length}else Array.isArray(I.questions)&&I.questions.length>0?_e=I.questions.length:Array.isArray(I.sentences)&&I.sentences.length>0&&(_e=I.sentences.length);fe=Ce(_e)}else if(a?.key==="ORDERING_SENTENCE"){let _e=1;Array.isArray(I.items)&&I.items.length>0?_e=I.items.length:Array.isArray(I.sentences)&&I.sentences.length>0&&(_e=I.sentences.length),fe=ge(_e)}else Array.isArray(I.items)&&(fe=I.items.length>0?Ce(I.items.length):"")}catch{}const $e=k==="row",ze=k==="list"||$e,Te=k==="compact",Fe=k==="small",qe=Fe&&a?.key?Nf().find(_e=>_e.key===a.key):void 0,mt=qe?Ri[qe.key]:void 0,ct=qe?mt?b(`trainingType.${mt}.title`,{defaultValue:qe.label}):qe.label??"":"",rt=v&&a?.label&&a.label!==String(Q)?String(a.label):Fe&&ct&&ct!==String(Q)?ct:"",Ct=!!rt,Ae=g!==void 0?g:fe,We=[rt,typeof Q=="string"?Q:"",Ae].map(_e=>String(_e??"").trim()).filter(Boolean).join(" ");return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:B,className:`training-block-button${ze?" training-block-button--list":""}${$e?" training-block-button--row":""}${Te?" training-block-button--compact":""}${Fe?" training-block-button--small":""}${Y?" training-block-button--completed":""}${oe?" training-block-button--selected":""}${Ct&&!Fe?" training-block-button--withType":""}${Fe&&!Ct?" training-block-button--no-type-label":""}`,onClick:$,onPointerEnter:W,onPointerLeave:H,role:"button",tabIndex:0,onKeyDown:j,"aria-label":typeof i=="string"?i:We||void 0,title:!p&&m&&(Array.isArray(m)?m.filter(Boolean).join(`
853
- `):m)||void 0,children:[n.jsxs("div",{className:"training-block-button__left",children:[v&&a?.label&&a.label!==String(Q)&&n.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Fe&&ct&&ct!==String(Q)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:ct}),n.jsx(tu,{icon:me,label:Q,tooltip:ue,wrapperStyle:De,iconSize:Fe||Te?"small":"medium"}),!y&&(Y||oe)&&!(C&&w)&&n.jsx(kt,{className:C?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":Y?b("training.completed","\uD6C8\uB828 \uC644\uB8CC"):b("training.selected","\uC120\uD0DD\uB428")}),C&&n.jsx(kt,{className:`training-block-button__remove${w?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":b("common.remove","\uC81C\uAC70"),onClick:re}),n.jsx("div",{className:`training-block-button__title ${Te?"body-3":Fe?"body-3b":"h3"}`,children:String(Q)}),n.jsxs("div",{className:"training-block-button__description",children:[Ae?n.jsx("div",{className:`training-block-button__count ${Fe?"caption-2":"caption-1"}`,children:Ae}):null,n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(at,{icon:"chevron-right",label:b("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Fe?12:20})})]}),(ze&&!$e||Fe)&&O.length>0&&n.jsx("div",{ref:M,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:ne,onPointerEnter:U,onPointerLeave:P,children:n.jsx(pe,{htmlType:"button",size:Fe?28:32,type:"dot",icon:D?"pause":"play",variant:Fe?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:String(Q).trim()?D?b("training.stopFor",{name:Q,defaultValue:`${Q} \uC815\uC9C0`}):b("training.previewFor",{name:Q,defaultValue:`${Q} \uBBF8\uB9AC \uB4E3\uAE30`}):D?b("training.stop","\uC815\uC9C0"):b("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:L})})]}),_&&n.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:_e=>{_e.stopPropagation(),_(_e)},children:n.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:String(Q).trim()?b("common.moreFor",{name:Q}):b("common.more","\uB354\uBCF4\uAE30")})})]}),R&&n.jsx(Bn,{anchorRect:z,text:D?b("training.stop","\uC815\uC9C0"):b("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:P}),w&&!N&&p&&(q?n.jsx(Gn,{anchorRect:F,items:q,activeIndex:E,onClose:H}):I?.subTitle?n.jsx(Bn,{anchorRect:F,text:I.subTitle,offset:8,onClose:H}):null),N&&l&&l({trainingData:I,typeKey:a?.key??"",onClose:G,onComplete:le,popupTitle:String(Q),popupSubTitle:a?.subTitle,depth:s!=null?String(s):void 0,popupIcon:me,popupIconTooltip:String(ue),popupWrapperStyle:De})]})}const nu=200;function dy(e){return e.itemId?(jf()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function au({plan:e,groups:t,anchorRect:a,offset:r=12,onClose:i}){const{t:s}=xe.useTranslation(),l=o.useMemo(()=>t?t.map((c,d)=>({key:c.key??c.type?.key??String(d),label:c.label,type:c.type,data:c.items??[]})).filter(c=>c.data.length>0):Lf(s).map(c=>{const d=(e?.items??[]).filter(m=>m.trainingType===c.key);return{key:c.key,label:c.label,type:c,pickedCount:d.length,data:d.map(dy).filter(m=>m!=null)}}).filter(c=>c.pickedCount>0),[t,e?.items,s]);if(l.length===0)return null;const u=n.jsx("div",{className:"tooltip-training__box",children:n.jsx("div",{className:"tooltip-training__groups",children:l.flatMap(({key:c,label:d,type:m,data:p},C)=>[C>0?n.jsx("div",{className:"tooltip-training__divider"},`div-${c}`):null,n.jsxs("div",{className:"tooltip-training__section",children:[n.jsx("div",{className:"tooltip-training__section-header",children:n.jsx("span",{className:"tooltip-training__type-label body-3b",children:d})}),n.jsx("div",{className:"tooltip-training__items",children:p.map((y,v)=>n.jsx(ko,{index:v,type:m,trainingData:y,size:"compact",hideCheckBadge:!0},String(y.id??v)))})]},c)])})});return a?n.jsx(cn,{anchorRect:a,offset:r,onClose:i,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:s("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:u}):u}const py=200;function my({icon:e,count:t,title:a,plan:r,tooltip:i=!0,hoverAccent:s=!1,className:l="",onClick:u,onMouseEnter:c,onMouseLeave:d}){const m=!!u||!!c||i&&!!r,p=we("count-tile",m&&"count-tile--interactive",m&&s&&"count-tile--accent",u&&"count-tile--clickable",l),C=o.useRef(null),[y,v]=o.useState(null),f=o.useRef(null),h=o.useRef(null),_=!!(y&&r&&i),g=o.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=null),h.current&&(clearTimeout(h.current),h.current=null)},[]),k=o.useCallback(()=>{g(),v(null)},[g]),b=o.useCallback(()=>{!i||!r||(g(),f.current=setTimeout(()=>{f.current=null,v(C.current?.getBoundingClientRect()??null)},nu))},[i,r,g]),N=o.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=null),!h.current&&(h.current=setTimeout(()=>{h.current=null,v(null)},py))},[]);return o.useEffect(()=>()=>{g()},[g]),o.useEffect(()=>{(!i||!r)&&k()},[i,r,k]),o.useEffect(()=>{if(!_)return;const x=w=>w instanceof Element&&(C.current?.contains(w)||!!w.closest(".tooltip-training")),B=w=>{x(w.target)?g():N()};return document.addEventListener("pointerover",B,!0),()=>document.removeEventListener("pointerover",B,!0)},[_,g,N]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:C,className:p,onClick:u?x=>{k(),u(x)}:void 0,onKeyDown:u?x=>{x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),x.currentTarget.click())}:void 0,onPointerEnter:x=>{x.pointerType==="touch"||x.pointerType==="pen"?k():b()},onMouseEnter:c,onMouseLeave:x=>{N(),d?.(x)},role:u?"button":"img",tabIndex:u?0:void 0,"aria-label":`${a} ${t}`,children:[n.jsx(at,{icon:e,size:20,className:"count-tile__icon"}),n.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]}),y&&r&&n.jsx(au,{plan:r,anchorRect:y,onClose:k})]})}let Pa=0,ru="",No="",Fa=0;function ou(){return su(!1)}function hy(){return su(!0)}function su(e){const t=typeof document<"u";Pa===0&&t&&(ru=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Fa===0&&(No=document.body.style.paddingRight),Fa++,document.body.style.paddingRight="0px"),Pa++;let a=!1;return()=>{a||(a=!0,Pa=Math.max(0,Pa-1),e&&t&&(Fa=Math.max(0,Fa-1),Fa===0&&(No?document.body.style.paddingRight=No:document.body.style.removeProperty("padding-right"))),Pa===0&&t&&(document.body.style.overflow=ru))}}function Cy(){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 fy({open:e,onClose:t,ariaLabel:a,title:r,children:i,size:s="md",closeOnBackdrop:l=!0,closeOnEscape:u=!0,showClose:c=!0,className:d,contentClassName:m}){const{t:p}=xe.useTranslation(),C=o.useId(),y=o.useRef(null),v=o.useCallback(()=>t(),[t]);o.useEffect(()=>{if(!e)return;const g=document.activeElement,k=ou(),b=y.current;return uo(b,g),b?.focus(),()=>{k();const N=document.activeElement;(!N||N===document.body||b&&b.contains(N))&&co(g)?.focus?.()}},[e]);const f=o.useRef(v),h=o.useRef(u);o.useEffect(()=>{f.current=v,h.current=u}),o.useEffect(()=>{if(e)return Un(()=>{h.current&&f.current()})},[e]);const _=o.useRef(!1);return io(y,e),!e||typeof document>"u"?null:en.createPortal(n.jsx("div",{className:we("dialog",d),onPointerDown:l?g=>{_.current=g.target===g.currentTarget}:void 0,onMouseDown:g=>{g.target===g.currentTarget&&g.preventDefault()},onClick:l?g=>{const k=_.current;_.current=!1,k&&g.target===g.currentTarget&&v()}:void 0,children:n.jsxs("div",{ref:y,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?C:void 0,tabIndex:-1,className:we("dialog__surface",`dialog__surface--${s}`,m),onClick:g=>g.stopPropagation(),children:[r?n.jsx("div",{className:"dialog__header",children:n.jsx("h2",{id:C,className:"dialog__title h4b",children:r})}):null,c?n.jsx("button",{type:"button",className:"dialog__close","aria-label":p("common.close","\uB2EB\uAE30"),onClick:v,children:n.jsx(Cy,{})}):null,n.jsx("div",{className:"dialog__body",children:i})]})}),document.body)}function gy({columns:e,rows:t,rowKey:a,title:r,toolbar:i,empty:s,loading:l,caption:u,className:c=""}){const{t:d}=xe.useTranslation(),m=!l&&t.length===0;return n.jsxs("div",{className:we("board",c),children:[r||i?n.jsxs("div",{className:"board__head",children:[r?n.jsx("h2",{className:"board__title",children:r}):n.jsx("span",{}),i?n.jsx("div",{className:"board__toolbar",children:i}):null]}):null,n.jsxs("table",{className:"board__table",children:[u?n.jsx("caption",{className:"board__caption",children:u}):null,n.jsx("thead",{children:n.jsx("tr",{children:e.map(p=>n.jsx("th",{scope:"col",className:we("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),n.jsx("tbody",{children:l?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):m?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:s??d("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):t.map((p,C)=>n.jsx("tr",{className:"board__row",children:e.map(y=>n.jsx("td",{className:we("board__td",`board__cell--${y.align??"left"}`),children:y.render(p,C)},y.key))},a(p,C)))})]})]})}function by({name:e,role:t,photo:a,media:r,credentials:i,size:s=190,className:l=""}){return n.jsxs("div",{className:we("person-card",l),children:[n.jsx("div",{className:"person-card__photo",style:{width:s,height:s},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,i?.length?n.jsx("ul",{className:"person-card__credentials",children:i.map(u=>n.jsx("li",{children:u},u))}):null]})}function yy({groups:e,className:t=""}){return n.jsx("div",{className:we("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,i)=>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((s,l)=>n.jsx("p",{children:s},l))})]},`${r.label??""}-${i}`))})]},a.title))})}function vy({title:e,kind:t,body:a,badge:r,badgeSrc:i,footer:s,width:l,className:u=""}){const c=r??(i?n.jsx("img",{src:i,alt:""}):null);return n.jsxs("div",{className:we("publication-card",u),style:l?{width:l,flexShrink:0}:void 0,children:[c?n.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:c}):null,n.jsx("h3",{className:"publication-card__title",children:e}),t?n.jsx("p",{className:"publication-card__kind",children:t}):null,n.jsx("p",{className:"publication-card__body",children:a}),s?n.jsx("div",{className:"publication-card__footer",children:s}):null]})}function xy({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const i=Ea(a);return o.useEffect(()=>{const s=setTimeout(()=>i.current?.(),r);return()=>clearTimeout(s)},[r,i]),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 _y({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:i=2,tone:s="dark",className:l=""}){const u=i===1?"h1":"h2";return n.jsxs("div",{className:we("section-header",`section-header--${s}`,l),children:[e?n.jsxs("p",{className:"section-header__eyebrow",children:[t?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"section-header__index",children:t}),n.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?n.jsx(u,{className:"section-header__title",children:a}):null,r?n.jsx("div",{className:"section-header__description",children:r}):null]})}function wy({items:e,className:t=""}){return n.jsx("ul",{className:we("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 iu(e){return typeof e=="string"?e:e.label}function lu({value:e,onChange:t,suggestions:a,openOnFocus:r=!1,filterSuggestions:i,onSelectSuggestion:s,autoActiveFirst:l=!1}){const u=o.useId(),[c,d]=o.useState(!1),[m,p]=o.useState(-1),C=o.useRef(null),y=o.useMemo(()=>{if(!a.length)return[];const E=e??"";return i===!1?a:E?typeof i=="function"?i(a,E):a.filter(O=>iu(O).toLowerCase().includes(E.toLowerCase())):r?a:[]},[a,e,r,i]),[v,f]=o.useState(!1),h=o.useRef([]),_=v&&y.length===0?h.current:y;o.useEffect(()=>{_.length&&(h.current=_)},[_]);const g=o.useCallback(()=>f(!0),[]),k=o.useCallback(()=>f(!1),[]),b=l?0:-1;o.useEffect(()=>{c||p(b)},[c,b]),o.useEffect(()=>()=>{C.current&&clearTimeout(C.current)},[]);const N=m<_.length?m:b<_.length?b:-1,x=o.useCallback(E=>{s?s(E):t?.(iu(E)),d(!1)},[t,s]),B=o.useCallback(()=>d(!0),[]),w=o.useCallback(()=>{d(!0),p(b)},[b]),A=o.useCallback(()=>{C.current=setTimeout(()=>d(!1),120)},[]),D=o.useCallback(E=>{E.nativeEvent.isComposing||E.keyCode===229||(E.key==="ArrowDown"?(E.preventDefault(),d(!0),p(O=>Math.min(_.length-1,(O<_.length?O:b)+1))):E.key==="ArrowUp"?(E.preventDefault(),p(O=>Math.max(b,(O<_.length?O:_.length)-1))):E.key==="Enter"?N>=0&&x(_[N]):E.key==="Escape"&&c&&(E.preventDefault(),d(!1)))},[_,N,c,x,b]);return{listId:u,open:c,activeIdx:N,filtered:_,handleFocus:B,handleBlur:A,handleInput:w,handleKeyDown:D,handleSelect:x,handleCompositionStart:g,handleCompositionEnd:k}}const Eo=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Zn(e){const{value:t,defaultValue:a,name:r,inputRef:i,onChange:s,label:l,ariaLabel:u,ariaDescribedBy:c,required:d,placeholder:m,ghostText:p,ghostHint:C,type:y="text",disabled:v=!1,readOnly:f=!1,error:h,helperText:_,maxLength:g,size:k=48,variant:b="input",fullWidth:N=!1,newline:x=!1,multiline:B=!1,rows:w=3,leftIcon:A,rightIcon:D,clearable:E=!1,list:O,showCount:R=!0,className:K="",onFocus:M,onBlur:L,onKeyDown:$,onEnter:G,inputMode:W,autoComplete:H,autoFocus:U,suggestions:P,filterSuggestions:z,onSelectSuggestion:V,autoActiveFirst:F,openOnFocus:S=!1}=e,j=f||v?void 0:P,{t:I}=xe.useTranslation(),q=o.useId();!l&&!u&&St(`TextField:unnamed:${q}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const re=`tf-${q}`,ne=`tf-helper-${q}`,le=o.useRef(null),Y=lu({value:t??"",onChange:s,suggestions:j??[],openOnFocus:S,filterSuggestions:z,onSelectSuggestion:V,autoActiveFirst:F}),oe=!!j&&Y.open&&Y.filtered.length>0,ke=o.useRef(null),[Z,Q]=o.useState(null),me=o.useCallback(()=>{const Ae=ke.current;if(!Ae||typeof window>"u")return;const We=Ae.getBoundingClientRect(),_e=230,Ue=window.innerHeight-We.bottom<_e+8&&We.top>_e+8;Q({position:"fixed",left:We.left,width:We.width,...Ue?{bottom:window.innerHeight-We.top+8}:{top:We.bottom+8},zIndex:Ta(Ae)})},[]);Eo(()=>{if(!oe)return;me();let Ae=null;const We=()=>{if(typeof requestAnimationFrame>"u"){me();return}Ae===null&&(Ae=requestAnimationFrame(()=>{Ae=null,me()}))},_e=Ue=>{const Be=Ue.target;Be&&Be.nodeType===1&&Be.closest?.(".text-field__suggestions")||We()};return window.addEventListener("scroll",_e,!0),window.addEventListener("resize",We),()=>{Ae!==null&&cancelAnimationFrame(Ae),window.removeEventListener("scroll",_e,!0),window.removeEventListener("resize",We)}},[oe,me]);const De=o.useCallback(Ae=>{le.current=Ae,typeof i=="function"?i(Ae):i&&(i.current=Ae)},[i]),be=p?`${p}${C??I("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:m,te=t!==void 0,ue=te&&y==="password",[Ce,ge]=o.useState((a??"").length),fe=te?(t??"").length:Ce,$e=o.useRef(t);Eo(()=>{$e.current=t}),o.useEffect(()=>{const Ae=le.current;if(!ue||!Ae)return;const We=t??"";Ae.value!==We&&(Ae.value=We)},[ue,t]),o.useEffect(()=>{if(!x||!le.current)return;const Ae=le.current;Ae.style.height="",Ae.scrollHeight>Ae.clientHeight&&(Ae.style.height=`${Ae.scrollHeight}px`)},[t,Ce,x]);const ze=g!=null&&fe>g,Te=k===32?16:20,Fe=we("text-field",`text-field--s${k}`,b==="display"?"text-field--display":"",N?"text-field--full-width":"",v?"text-field--disabled":"",f?"text-field--readonly":"",h?"text-field--error":"",A?"text-field--has-left-icon":"",D||E?"text-field--has-right-icon":"",K),qe={id:re,...ue?{}:te?{value:t}:{defaultValue:a},ref:De,placeholder:be,name:r,disabled:v,readOnly:f,autoFocus:U,maxLength:g,list:O,inputMode:W,autoComplete:H,"aria-label":!l&&u?u:void 0,"aria-required":d,"aria-invalid":!!h,"aria-describedby":[_||h?ne:null,c].filter(Boolean).join(" ")||void 0,role:j?"combobox":void 0,"aria-autocomplete":j?"list":void 0,"aria-haspopup":j?"listbox":void 0,"aria-expanded":j?oe:void 0,"aria-controls":oe?Y.listId:void 0,"aria-activedescendant":oe&&Y.activeIdx>=0?`${Y.listId}-option-${Y.activeIdx}`:void 0,onChange:Ae=>{const We=Ae.target;te||ge(We.value.length),s?.(We.value),j&&Y.handleInput(),ue&&queueMicrotask(()=>{const _e=$e.current??"";We.value!==_e&&(We.value=_e)})},onCompositionStart:j?Y.handleCompositionStart:void 0,onCompositionEnd:j?Y.handleCompositionEnd:void 0,onFocus:(Ae=>{M?.(Ae),j&&Y.handleFocus()}),onBlur:(Ae=>{L?.(Ae),j&&Y.handleBlur()}),onKeyDown:(Ae=>{const We=(Ae.key==="Tab"&&!Ae.shiftKey||Ae.key===" ")&&!Ae.nativeEvent.isComposing;if(p&&We&&!f&&!v&&!(Ae.currentTarget.value??"").trim()){Ae.preventDefault();const _e=Ae.currentTarget;te||(_e.value=p,ge(p.length)),s?.(p);return}j&&Ae.key==="Enter"&&!Ae.nativeEvent.isComposing&&Y.activeIdx>=0?Ae.preventDefault():G&&Ae.key==="Enter"&&!Ae.nativeEvent.isComposing&&(Ae.preventDefault(),G()),$?.(Ae),j&&Y.handleKeyDown(Ae)})},mt=E&&!v&&!f&&fe>0,ct=()=>x?n.jsx("textarea",{...qe,className:"text-field__input text-field__input--auto body-2",rows:1}):B?n.jsx("textarea",{...qe,className:"text-field__input text-field__input--textarea body-2",rows:w}):n.jsx("input",{...qe,type:y,className:"text-field__input body-2"}),rt=b==="display"&&!x&&!B&&!!be,Ct=()=>n.jsxs(n.Fragment,{children:[ct(),rt&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:be})]});return n.jsxs("div",{ref:ke,className:Fe,children:[l&&n.jsxs("label",{htmlFor:re,className:"text-field__label caption-1",children:[l,d&&n.jsx("span",{className:"text-field__required",children:"*"})]}),n.jsxs("div",{className:"text-field__wrap",children:[A&&n.jsx("span",{className:"text-field__icon text-field__icon--left",children:n.jsx(at,{icon:A,label:"",className:"",svgClassName:"text-field__icon-svg",size:Te})}),Ct(),g!=null&&R&&n.jsxs("span",{className:`text-field__count caption-2${ze?" text-field__count--over":""}`,children:[fe,"/",g]}),mt&&n.jsx(pe,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:I("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:Ae=>{Ae.preventDefault()},onClick:()=>{!te&&le.current&&(le.current.value="",ge(0)),s?.("")},tabIndex:-1}),D&&!mt&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(at,{icon:D,label:"",className:"",svgClassName:"text-field__icon-svg",size:Te})})]}),!!j&&n.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:Y.open&&(t??"").length>0&&Y.filtered.length===0?I("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),oe&&(typeof document>"u"?null:en.createPortal(n.jsx("ul",{id:Y.listId,className:"text-field__suggestions",role:"listbox",style:Z??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:Y.filtered.map((Ae,We)=>n.jsx("li",{id:`${Y.listId}-option-${We}`,role:"option","aria-selected":We===Y.activeIdx,className:`text-field__suggestion body-2${We===Y.activeIdx?" is-active":""}`,onMouseDown:_e=>_e.preventDefault(),onClick:()=>{Y.handleSelect(Ae),le.current?.focus()},children:typeof Ae=="string"?Ae:n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"text-field__suggestion-label",children:Ae.label}),Ae.hint&&n.jsx("span",{className:"text-field__suggestion-hint caption-1",children:Ae.hint})]})},typeof Ae=="string"?`${Ae}-${We}`:Ae.id))}),document.body)),(_||h)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:ne,className:"text-field__helper caption-1",role:h?"alert":void 0,children:h||_})})]})}function pn({options:e,value:t,onChange:a,placeholder:r,disabled:i=!1,block:s=!1,size:l=48,error:u=!1,className:c="",ariaLabel:d,ariaDescribedBy:m}){const{t:p}=xe.useTranslation(),C=r??p("dropdown.placeholder","\uC120\uD0DD"),y=o.useId(),v=o.useId(),f=o.useRef(null),h=o.useCallback((M,L)=>{const $=window.innerHeight-M.bottom<260&&M.top>260;return{position:"fixed",left:M.left,minWidth:M.width,...$?{bottom:window.innerHeight-M.top+6}:{top:M.bottom+6},zIndex:Ta(L)}},[]),{open:_,setOpen:g,toggle:k,style:b,triggerRef:N,menuRef:x}=ja({computeStyle:h}),[B,w]=o.useState(-1),A=o.useCallback(()=>w(-1),[]),D=e.find(M=>M.value===t);o.useEffect(()=>{if(_){const M=e.findIndex(L=>L.value===t);w(M>=0?M:e.length?0:-1),requestAnimationFrame(()=>{const L=x.current;if(!L)return;const $=L.querySelectorAll(".dropdown__option")[M];$&&(L.scrollTop=Math.max(0,$.offsetTop-L.clientHeight/2+$.clientHeight/2))})}},[_]),o.useEffect(()=>{_&&w(M=>{if(M>=0&&M<e.length)return M;const L=e.findIndex($=>$.value===t);return L>=0?L:e.length?0:-1})},[_,e.length]);const E=o.useCallback(()=>{i||k()},[i,k]),O=o.useCallback(M=>{M.disabled||i||(M.value!==t&&a?.(M.value),g(!1))},[a,g,i,t]);o.useEffect(()=>{i&&g(!1)},[i,g]);const R=o.useCallback(M=>{if(!i){if(!_){(M.key==="Enter"||M.key===" "||M.key==="ArrowDown")&&(M.preventDefault(),g(!0));return}if(M.key==="Escape"){M.preventDefault(),g(!1);return}M.key==="ArrowDown"?(M.preventDefault(),w(L=>{let $=L+1;for(;$<e.length&&e[$].disabled;)$++;return $<e.length?$:L})):M.key==="ArrowUp"?(M.preventDefault(),w(L=>{let $=L-1;for(;$>=0&&e[$].disabled;)$--;return $>=0?$:L})):(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),e[B]?O(e[B]):g(!1))}},[i,_,e,B,O,g]),K=_?n.jsx("div",{ref:x,id:y,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:b,onMouseLeave:A,onMouseDown:M=>M.preventDefault(),children:e.map((M,L)=>n.jsxs("button",{id:`${y}-option-${L}`,type:"button",role:"option","aria-selected":M.value===t,className:we("dropdown__option body-2",M.value===t?"dropdown__option--active":"",L===B?"dropdown__option--active":"",M.disabled?"dropdown__option--disabled":""),onMouseDown:$=>$.preventDefault(),onClick:()=>O(M),onMouseEnter:()=>w(L),disabled:M.disabled,children:[n.jsx("span",{className:"dropdown__option-check",children:M.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"})})}),M.label]},M.value))}):null;return n.jsxs("div",{ref:f,className:we("dropdown",`dropdown--s${l}`,_?"dropdown--open":"",s?"dropdown--block":"",u?"dropdown--error":"",c),onKeyDown:R,children:[n.jsxs("button",{ref:N,type:"button",className:"dropdown__trigger",role:"combobox","aria-haspopup":"listbox","aria-expanded":_,"aria-controls":_?y:void 0,"aria-activedescendant":_&&B>=0?`${y}-option-${B}`:void 0,"aria-label":d,"aria-describedby":[d&&D?v:"",m??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:i,onClick:E,onBlur:M=>{_&&!x.current?.contains(M.relatedTarget)&&g(!1)},children:[n.jsx("span",{id:v,className:`dropdown__trigger-label body-2${D?"":" dropdown__trigger-label--placeholder"}`,children:D?D.label:C}),n.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&en.createPortal(K,f.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function cr({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:i,className:s=""}){const{t:l}=xe.useTranslation(),u=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),c=i??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,t),m=()=>a(Math.max(1,Math.min(d,e-1))),p=()=>a(Math.min(d,e+1));return n.jsxs("div",{className:we("pagination",s),children:[n.jsx(pe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:u,disabled:e<=1,onClick:m}),n.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),d)," / ",d]}),n.jsx(pe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:c,disabled:e>=t,onClick:p})]})}const Ia=new Map;function gn(e){const{t}=xe.useTranslation(),{options:a=[],value:r=a.find(b=>!b.disabled)?.key??a[0]?.key,onChange:i=b=>{},className:s="",size:l=40,shape:u="pill",useBG:c=!0,fullWidth:d=!1,minButtonWidth:m,ariaLabel:p}=e||{},C=o.useRef(null),y=a.filter(b=>!b.disabled),v=o.useId(),f=a.map(b=>b.key).join("\xB7");o.useEffect(()=>{if(!(!ea||p!=null&&p!=="")){if(Ia.set(v,f||"(\uBCF4\uAE30 \uC5C6\uC74C)"),Ia.size>1){const b=[...Ia.values()].sort();St(`segmented-control-unnamed:${b.join("|")}`,`[ihab/SegmentedControl] \uC774\uB984 \uC5C6\uB294 \uB77C\uB514\uC624\uADF8\uB8F9\uC774 \uD55C \uD654\uBA74\uC5D0 ${Ia.size} \uAC1C \uC11C \uC788\uC2B5\uB2C8\uB2E4 \u2014 \uB0AD\uB3C5\uAE30\uB294 \uBAA8\uB450 "\uC120\uD0DD \uD0ED" \uC73C\uB85C \uC77D\uC5B4 \uC5B4\uB290 \uAC83\uC774 \uBB34\uC5C7\uC778\uC9C0 \uAC00\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. ariaLabel \uC744 \uC8FC\uC138\uC694. \uC9C0\uAE08 \uC120 \uAC83(\uBCF4\uAE30 \uC774\uB984\uC73C\uB85C \uC801\uC74C): ${b.join(" / ")}`)}return()=>{Ia.delete(v)}}},[p,f,v]);const h=b=>{if(!y.length)return;const N=Math.max(0,y.findIndex(B=>B.key===r)),x=b==="first"?y[0]:b==="last"?y[y.length-1]:y[(N+b+y.length)%y.length];x&&(i(x.key),Array.from(C.current?.querySelectorAll("[data-segkey]")??[]).find(B=>B.dataset.segkey===x.key)?.focus())},_=b=>{switch(b.key){case"ArrowRight":case"ArrowDown":h(1);break;case"ArrowLeft":case"ArrowUp":h(-1);break;case"Home":h("first");break;case"End":h("last");break;default:return}b.preventDefault()},g=b=>{const N=x=>typeof x=="string"||typeof x=="number";if(!(!N(b.label)||b.count==null||b.count===!1||!N(b.count)))return`${b.label}, ${b.count}`},k=y.some(b=>b.key===r)?r:y[0]?.key;return n.jsx("div",{ref:C,onKeyDown:_,className:we("segmented-control",`segmented-control--${u}`,`segmented-control--${l}`,d&&"segmented-control--full",!c&&"segmented-control--no-bg",m!=null&&"segmented-control--min",s),style:m!=null?{"--segmented-min-button-w":`${m}px`}:void 0,role:"radiogroup","aria-label":p??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(b=>n.jsx(pe,{htmlType:"button",role:"radio","aria-checked":b.key===r,"data-segkey":b.key,tabIndex:b.key===k?0:-1,label:b.label,count:b.count,ariaLabel:g(b),disabled:b.disabled,className:b.key===r?"is-selected":"",onClick:()=>{b.disabled||i(b.key)},size:l,shape:u,useBorder:!1,useBG:!1},b.key))})}function Do({count:e,search:t,segment:a,filters:r,pageSize:i,pagination:s,actions:l,className:u}){const{t:c}=xe.useTranslation(),d=e!=null&&n.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??c("common.totalPrefix","\uCD1D "),n.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),m=!!(t||r?.length||i||s||l);return n.jsxs("div",{className:we("toolbar",u),children:[n.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((p,C)=>n.jsx(gn,{size:40,...p},p.ariaLabel??C))]}),m&&n.jsx("div",{className:"toolbar__row",children:n.jsxs("div",{className:"toolbar__row-end",children:[t&&n.jsx(Zn,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??c("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??c("common.search","\uAC80\uC0C9"),autoFocus:t.autoFocus,clearable:!0}),r?.map((p,C)=>n.jsx(pn,{size:40,options:p.options,value:p.value,onChange:p.onChange,ariaLabel:p.ariaLabel},C)),(i||s)&&n.jsxs("div",{className:"toolbar__pager",children:[i&&n.jsx(pn,{size:40,options:i.options,value:i.value,onChange:i.onChange,ariaLabel:i.ariaLabel??c("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),s&&n.jsx(cr,{page:s.page,totalPages:s.total,onChange:s.onChange,prevLabel:s.prevLabel,nextLabel:s.nextLabel})]}),l]})})]})}function uu(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(uu).join(""):""}function By(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 Sicheong-gil, Chuncheon, Gangwon, Korea"},Mg={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"}}},Lg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},$g={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},Rg={answer:"Answer",distractor:"Distractor"},Pg={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount_one:"Downloading {{n}} word",downloadingCount_other:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},Fg={clearAriaLabel:"Clear input"},Ig={ariaLabel:"Select tab"},Og={ariaLabel:"Tabs"},Hg={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Vg={ariaLabel:"User avatar"},zg={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"}},Wg={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_one:"{{n}} session",countLabel_other:"{{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",detailFor:"{{name}} details",trainingType:{LISTEN_IN_NOISE:"Sentence in Noise",SHORT_STORY:"Short Story",LONG_STORY:"Long Story",ORDERING_SENTENCE:"Sentence Ordering"}},qg={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)"}},Ug={manage:{unit:"item(s)"}},Gg={cancelLabel:"Cancel"},Kg={subtitle:"Select a topic to start listening practice."},Yg={steps:"Step {{current}} of {{total}}"},Zg={panelTitle:"Training misses",viewItems:"Items",viewTypes:"Types",colPending:"Left",colTrend:"Change",colRuns:"Runs",unitItem:" items",skippedOnly_one:"{{n}} older record was excluded \u2014 it does not say what was answered.",skippedOnly_other:"{{n}} older records 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_one:"{{count}} run",runs_other:"{{count}} runs",avgDuration:"{{sec}}s avg"},Xg={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},Jg={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}}"},Qg={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},e4={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},t4={previewRegion:"Report preview \u2014 scrollable sideways"},n4={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},a4={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},r4={clearSelection:"Clear selection"},o4={showResult:"Show {{type}} result"},s4={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},i4={loading:"Loading"},l4={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},u4={ariaLabel:"Breadcrumb"},c4={empty:"No items yet."},d4={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"},p4={common:X2,calendar:J2,passCard:Q2,searchField:eg,rating:tg,colorPicker:ng,dropdown:ag,accordion:rg,header:og,nav:sg,settings:ig,usage:lg,account:ug,help:cg,training:dg,trainingSettings:pg,customers:mg,payment:hg,coupons:Cg,visits:fg,company:gg,trainingType:bg,myWordTraining:yg,myWordTable:vg,keyWords:xg,wordTable:_g,wordSearch:wg,wordPrint:Bg,topic:Ag,accessLinkManager:kg,login:Ng,device:Eg,manager:Dg,wordPairs:Sg,game:Tg,footer:jg,landing:Mg,date:Lg,trainingSetPage:$g,wordTrainingPreview:Rg,wordData:Pg,textField:Fg,segmentedControl:Ig,tabs:Og,fileUpload:Hg,avatar:Vg,myHomework:zg,trainingStatus:Wg,store:qg,homework:Ug,inquiry:Gg,trainingPlanRun:Kg,progress:Yg,trainingMiss:Zg,table:Xg,wordScore:Jg,topBanner:Qg,datePicker:e4,report:t4,tooltip:n4,phonemeProfile:a4,bulkBar:r4,debug:o4,badge:s4,loader:i4,soundCompass:l4,breadcrumb:u4,board:c4,promoBannerBg:d4};const m4="0.337.0",h4=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],so="ko",C4="ihab_display_language";function Pi(){if(typeof window>"u")return so;try{const e=localStorage.getItem(C4);if(e&&h4.some(t=>t.code===e))return e}catch{}return so}function Fi(e){try{document.documentElement.lang=e}catch{}}Rt.on("languageChanged",Fi),Fi(Pi()),Rt.use(xe.initReactI18next).init({resources:{ko:{translation:Z2},en:{translation:p4}},lng:Pi(),fallbackLng:so,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const f4=new Map;try{Rt.store?.on?.("added",()=>f4.clear())}catch{}let tr=null,Ii=null,Oi=null;function g4(){const e=ki();if(e&&e.entries.length>0){const t=tf();if(tr&&Ii===e&&Oi===t)return tr;const a=new Set,r=[];for(const i of e.entries)!i.word||a.has(i.word)||(a.add(i.word),r.push({w:i.word,s:i.syllables,p:t?.[i.word]?[...t[i.word].cho??[],...t[i.word].jung??[],...t[i.word].jong??[]]:[],pron:i.pronunciation||i.word,grade:i.grade}));return tr=r,Ii=e,Oi=t,tr}return[]}new Proxy([],{get(e,t){const a=g4(),r=a[t];return typeof r=="function"?r.bind(a):r}});function b4(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 y4(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&b4(r.attrValue)&&(r.keepAttr=!1)};zr.addHook("uponSanitizeAttribute",t);try{return zr.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{zr.removeHook("uponSanitizeAttribute",t)}}function v4(e){const[t,a]=o.useState(null),[r,i]=o.useState(null),[s,l]=o.useState(null),[u,c]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),i(null),l(null);return}const d=e.split("/").pop();let m=e;d&&(e.startsWith("/")?m=Gr(e):/^(Logo|Symbol)/i.test(d)?m=Gr(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),i(null),l(null),a(m)},[e]),o.useEffect(()=>{if(!t)return;let d=!1;async function m(){try{let p=await fetch(t);p.ok||(p=await fetch(t));const C=p.headers.get("content-type")||"";if(d)return;if(C.includes("svg")){i("mask");return}if(C.startsWith("image/")){i("img");return}const y=await fetch(t);if(!y.ok)throw new Error("not ok");const x=await y.text();if(d)return;if(/^\s*<svg[\s>]/i.test(x)){const f=y4(x);if(!f){i("none");return}l(f),i("inline");return}i("none")}catch{d||i("none")}}return m(),()=>{d=!0}},[t]),o.useEffect(()=>{let d=!1,m=null;return r==="mask"&&t&&fetch(t).then(p=>{if(!p.ok)throw new Error("fetch failed");return p.blob()}).then(p=>{d||(m=URL.createObjectURL(p),c(m))}).catch(()=>{d||i("img")}),()=>{d=!0,m&&URL.revokeObjectURL(m),c(null)}},[r,t]),{iconToUse:t,mode:r,svgText:s,blobUrl:u}}function at(e){const{icon:t,label:a,className:r,imgClassName:i,maskClassName:s,svgClassName:l,wrapperStyle:u,size:c}=e||{},d=r??"iconRenderer-icon",m=i??"iconRenderer-icon-image",p=s??"iconRenderer-icon-mask",C=l??"iconRenderer-icon-svg",y=typeof t=="string"?t:null,x=V0(y),{iconToUse:f,mode:h,svgText:_,blobUrl:g}=v4(y),k=(B,E={})=>n.jsx("span",{className:d,style:u,...E,children:B}),b=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,A=(B,E={})=>n.jsx("img",{src:B,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:m,...E,style:b?{...E.style,...b}:E.style});if(!t)return null;if(typeof t!="string")return k(t);if(t==="none")return k(n.jsx("span",{className:C,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(x)try{return k(o.createElement(x,{className:C,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(f&&f.endsWith(".svg")){if(h==="mask"){const B={"--icon-url":g?`url(${g})`:`url(${f})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return k(n.jsx("span",{className:p,style:B}),{"aria-hidden":"true"})}return h==="img"?k(A(f,{onError:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):h==="inline"?k(n.jsx("span",{className:C,dangerouslySetInnerHTML:_?{__html:_}:void 0}),{"aria-hidden":"true"}):k(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return A(Gr(t),{style:u,onError:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}});const v=typeof c=="number"?c:20,w=`<svg width="${v}" height="${v}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return k(n.jsx("span",{className:C,dangerouslySetInnerHTML:{__html:w}}),{"aria-hidden":"true"})}function Hi(e){const[t,a]=o.useState(!1),r=o.useRef(!1),i=o.useRef(!0);o.useEffect(()=>(i.current=!0,()=>{i.current=!1}),[]);const s=o.useCallback(()=>{if(!e||r.current)return;const l=e();if(l&&typeof l.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,i.current&&a(!1)};l.then(u,u)}},[e]);return{pending:t,press:s}}function x4({icon:e,title:t,message:a,action:r,className:i}){const{pending:s,press:l}=Hi(r?.onClick);return n.jsxs("div",{className:we("empty-state",i),children:[e&&n.jsx(at,{icon:e,size:48,className:"empty-state__icon"}),t&&n.jsx("p",{className:"empty-state__title h4",children:t}),a&&n.jsx("p",{className:"empty-state__message body-3",children:a}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:l,disabled:s,"aria-busy":s||void 0,children:[r.icon&&n.jsx(at,{icon:r.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function _4({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:i,className:s}){const{t:l}=xe.useTranslation(),{pending:u,press:c}=Hi(r);return n.jsxs("div",{className:we("empty-state","error-state",s),role:"alert",children:[n.jsx(at,{icon:a,size:48,className:"empty-state__icon error-state__icon"}),n.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&n.jsx("p",{className:"error-state__hint caption-1",children:t}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:c,disabled:u,"aria-busy":u||void 0,children:[n.jsx(at,{icon:"rotate-cw",className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:i??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function w4({icon:e,title:t,description:a,cta:r,tone:i="main",disabled:s=!1,onClick:l,className:u=""}){const c=o.useId(),d=`${c}-title`,m=`${c}-desc`,p=`${c}-cta`,C=()=>{s||l?.()};return n.jsx("section",{role:"button",tabIndex:s?-1:0,"aria-disabled":s||void 0,"aria-labelledby":d,"aria-describedby":`${m} ${p}`,onClick:C,onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),C())},className:we("action-card",`action-card--${i}`,s&&"action-card--disabled",u),children:n.jsxs("div",{className:"action-card__body",children:[n.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:n.jsx(at,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:d,className:"action-card__title",children:t}),n.jsx("p",{id:m,className:"action-card__desc",children:a})]}),n.jsxs("div",{className:"action-card__cta",children:[n.jsx("span",{id:p,children:r}),n.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:n.jsx(at,{icon:"arrow-right",size:18})})]})]})})}function B4({as:e="div",className:t="",children:a,storage:r,...i}){r&&DC({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 s=we("ihabdevteam-core-scope",t);return n.jsx(e,{className:s,...i,children:a})}function io(e,t=!0){o.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=i=>{if(i.key!=="Tab")return;const s=Array.from(a.querySelectorAll(fn)).filter(m=>!m.closest('[aria-hidden="true"]'));if(!s.length){i.preventDefault();return}const l=s[0],u=s[s.length-1],c=document.activeElement,d=c===a;i.shiftKey&&(c===l||d)?(i.preventDefault(),u.focus()):!i.shiftKey&&c===u&&(i.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"])',lo=new WeakMap;function uo(e,t){e&&lo.set(e,t)}function co(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!lo.has(r);)r=r.parentElement;if(!r)return t;t=lo.get(r)??null}return t}function Vi(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 nr(e,t,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(Vi(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const i=Array.from(document.querySelectorAll(fn)).filter(c=>!(e&&e.contains(c))&&Vi(c));let s=null,l=null;for(const c of i)r.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_PRECEDING?s=c:l||(l=c);const u=s??l;return u?.focus(),u}function A4({title:e="",lines:t=[],notices:a=null,children:r,variant:i="default",dismissible:s=!1,className:l=""}){const{t:u}=xe.useTranslation(),[c,d]=o.useState(!1),m=o.useRef(null),p=o.useCallback(()=>{const f=m.current;f&&f.contains(document.activeElement)&&nr(f),d(!0)},[]);if(c)return null;const C=`notice-box notice-box--${i} body-2 ${l}`.trim(),y=s&&n.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return n.jsxs("div",{className:C,role:"note",children:[a.map((f,h)=>n.jsxs("div",{className:"notice-box__inner",children:[f.title?n.jsx("span",{className:"notice-box__title body-3",children:f.title}):null,n.jsx("div",{className:"notice-box__body",children:f.lines&&f.lines.length?n.jsx("div",{children:f.lines.map((_,g)=>n.jsx("span",{className:"notice-box__line body-3",children:_},g))}):f.children??null})]},h)),y]});const x=e||t.length?n.jsxs("div",{className:"notice-box__inner",children:[e?n.jsx("span",{className:"notice-box__title body-1",children:e}):null,n.jsx("div",{className:"notice-box__body",children:t.length?n.jsx("ul",{children:t.map((f,h)=>n.jsx("li",{className:"notice-box__line",children:f},h))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:m,className:C,role:"note",children:[x,y]})}const sa=[];let ar=!1;function zi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=sa[sa.length-1];t&&(e.stopPropagation(),t())}function Gn(e){return sa.push(e),!ar&&typeof document<"u"&&(document.addEventListener("keydown",zi),ar=!0),()=>{const t=sa.lastIndexOf(e);t>=0&&sa.splice(t,1),sa.length===0&&ar&&typeof document<"u"&&(document.removeEventListener("keydown",zi),ar=!1)}}const Wi=o.createContext(null);function k4(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const qi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function N4(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 ws.useSyncExternalStore(t,()=>qi(e),()=>!1)}function E4(e){const[t,a]=o.useState(qi(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),i=l=>a(l.matches),s=r;return s.addEventListener?s.addEventListener("change",i):s.addListener&&s.addListener(i),a(r.matches),()=>{s.removeEventListener?s.removeEventListener("change",i):s.removeListener&&s.removeListener(i)}},[e]),t}const D4=typeof ws.useSyncExternalStore=="function"?N4:E4;function ln(e){const t=o.useContext(Wi),a=D4(e);return t&&typeof t.mobile=="boolean"&&k4(e)?t.mobile:a}const S4="(prefers-reduced-motion: reduce)";function po(){return ln(S4)}function cn(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:i=20,onClose:s,closeOnOutsideClick:l=!0,className:u="",role:c="dialog",ariaLabel:d="",children:m,backdrop:p=!1,isMobilePopup:C=!1,useBorder:y=!0,header:x,focusOnOpen:f}=e||{},h=o.useRef(null),[_,g]=o.useState({position:"fixed",left:0,top:-9999}),[k,b]=o.useState(!1),[A,v]=o.useState("bottom"),[w,B]=o.useState(!1),[E,D]=o.useState(!1),N=!t&&!a,O=o.useCallback((W=!1)=>{if(E&&C)return;const R=a?a.getBoundingClientRect():t;if(!R||!h.current)return;const z=h.current,{offsetWidth:V,offsetHeight:F}=z,S=window.innerWidth,j=window.innerHeight,I=S-R.right,U=R.left,re=R.top,ne=j-R.bottom;let le=0,K=0,oe="top";if(re>=F+r)oe="top",K=R.top-r-F,le=R.left+R.width/2-V/2;else if(ne>=F+r)oe="bottom",K=R.bottom+r,le=R.left+R.width/2-V/2;else if(I>=V+r)oe="right",le=R.right+r,K=R.top+R.height/2-F/2;else if(U>=V+r)oe="left",le=R.left-r-V,K=R.top+R.height/2-F/2;else{const me=Math.max(re,ne,I,U);me===re?(oe="top",K=R.top-r-F,le=R.left+R.width/2-V/2):me===ne?(oe="bottom",K=R.bottom+r,le=R.left+R.width/2-V/2):me===I?(oe="right",le=R.right+r,K=R.top+R.height/2-F/2):(oe="left",le=R.left-r-V,K=R.top+R.height/2-F/2)}const ke=Number.isFinite(Number(i))?Number(i):8;le=Math.min(Math.max(le,ke),S-V-ke),K=Math.min(Math.max(K,ke),j-F-ke);const Y=Math.round(le),Q=Math.round(K);W&&h.current?(h.current.style.left=`${Y}px`,h.current.style.top=`${Q}px`,h.current.dataset.placement=oe):(v(oe||A),g({position:"fixed",left:Y,top:Q}),B(!0))},[E,C,a,t,r,i,A]);o.useLayoutEffect(()=>{if(N)return;if(E&&C){g({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),B(!0);return}O();const W=requestAnimationFrame(()=>O());return()=>cancelAnimationFrame(W)},[t,a,r,m,i,N,E,C,O]),o.useEffect(()=>{if(N||E&&C||!h.current||typeof ResizeObserver>"u")return;const W=new ResizeObserver(()=>{t&&O()});return W.observe(h.current),()=>W.disconnect()},[t,m,i,N,E,C,O]),o.useEffect(()=>{if(N||E&&C)return;let W=null;const R=()=>{if(typeof requestAnimationFrame>"u"){O(!0);return}W===null&&(W=requestAnimationFrame(()=>{W=null,O(!0)}))},z=V=>{if(!a&&s){const F=V.target;if(F&&h.current&&h.current.contains(F))return;try{if(F&&F.closest&&F.closest("[data-tooltip-ignore]"))return}catch{}$.current(!0);return}R()};return window.addEventListener("resize",R),document.addEventListener("scroll",z,{passive:!0,capture:!0}),()=>{W!==null&&cancelAnimationFrame(W),window.removeEventListener("resize",R),document.removeEventListener("scroll",z,{capture:!0})}},[t,a,s,r,m,i,N,E,C,O]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const W=window.matchMedia("(max-width: 768px)"),R=()=>D(!!W.matches);R();try{W.addEventListener?W.addEventListener("change",R):W.addListener(R)}catch{try{W.addListener(R)}catch{}}return()=>{try{W.removeEventListener?W.removeEventListener("change",R):W.removeListener(R)}catch{}}},[]);const P=o.useRef(!1),G=o.useRef(null),L=po(),M=o.useCallback((W=!1)=>{if(s&&!(k||P.current)){if(P.current=!0,W){b(!0);try{s&&s()}catch{P.current=!1,b(!1)}return}b(!0),G.current=setTimeout(()=>{G.current=null;try{s&&s()}catch{P.current=!1,b(!1)}},L?0:200)}},[k,s,b,L]);o.useEffect(()=>()=>{G.current&&clearTimeout(G.current)},[]),o.useEffect(()=>{if(N)return;const W=V=>{const F=h.current;if(!F)return;const S=V.target;if(S&&!F.contains(S)){try{if(S.closest&&S.closest("[data-tooltip-ignore]"))return}catch{}l&&M(!0)}},R=V=>{const F=h.current;if(!F)return;const S=V.target;if(S&&!F.contains(S)){try{if(S.closest&&S.closest("[data-tooltip-ignore]"))return}catch{}l&&M(!0)}},z=V=>{if(V.key==="Tab"){const F=h.current;if(!F)return;const S=F.querySelectorAll(fn);if(!S||S.length===0)return;const j=S[0],I=S[S.length-1],U=document.activeElement;V.shiftKey?U===j&&(V.preventDefault(),I.focus()):U===I&&(V.preventDefault(),j.focus())}};return document.addEventListener("pointerdown",W,!0),document.addEventListener("click",R,!0),document.addEventListener("keydown",z),()=>{document.removeEventListener("pointerdown",W,!0),document.removeEventListener("click",R,!0),document.removeEventListener("keydown",z)}},[s,l,M,N]);const $=o.useRef(M);o.useEffect(()=>{$.current=M});const Z=!!s;o.useEffect(()=>{if(!(N||!Z))return Gn(()=>$.current())},[N,Z]),o.useEffect(()=>{const W=()=>{M(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",W),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",W)}},[M]);const q=o.useRef(null);o.useEffect(()=>{if(N||f===!1||!w)return;const W=h.current;if(!W)return;const R=W.querySelector(fn);if(R)return q.current=document.activeElement,R.focus(),()=>{const z=q.current;q.current=null,z&&document.contains(z)&&z.focus()}},[N,f,w]),o.useEffect(()=>{c==="dialog"&&!d&&St("tooltip-no-name",'[ihab/Tooltip] \uC774\uB984 \uC5C6\uB294 role="dialog" \uC785\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. \uB0AD\uB3C5\uAE30\uAC00 "\uB300\uD654\uC0C1\uC790" \uB77C\uACE0\uB9CC \uC77D\uC2B5\uB2C8\uB2E4.')},[c,d]);const H=n.jsxs("div",{ref:h,className:`tooltip-content ${N?"tooltip-content--inline":""} ${y?"tooltip-content--bordered":""} ${k?"is-closing":""} ${u} ${E&&C?"is-mobile":""}`,role:c,"aria-label":d||void 0,style:N?{}:{..._,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":A,"data-left":N?"":_.left,"data-top":N?"":_.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[x!=null&&n.jsx("div",{className:"tooltip-content__header h5",children:x}),m]});if(N||typeof document>"u")return H;if(p||E&&C){const W=n.jsxs("div",{className:"tooltip-portal",children:[n.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&M(!0)}}),H]});return en.createPortal(W,document.body)}return en.createPortal(H,document.body)}function Bn(e){const{anchorRect:t,text:a,offset:r=8,onClose:i,className:s="",ariaLabel:l}=e||{};return a?n.jsx(cn,{anchorRect:t,offset:r,onClose:i,closeOnOutsideClick:!1,className:`tooltip-info ${s}`,ariaLabel:l||a,children:n.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Kn(e){const{t}=xe.useTranslation(),{anchorRect:a,title:r,items:i,activeIndex:s=-1,showIndex:l=!0,onClose:u,offset:c=12,closeOnOutsideClick:d=!0}=e||{},m=(Array.isArray(i)?i:i?[i]:[]).map(p=>typeof p=="string"?{text:p}:p);return!m.length&&!r?null:n.jsx(cn,{anchorRect:a,offset:c,onClose:u,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:n.jsxs("div",{className:"tooltip-description__box",children:[r&&n.jsx("span",{className:"tooltip-description__title body-2",children:r}),n.jsx("ol",{className:"tooltip-description__items",children:m.map((p,C)=>n.jsxs("li",{className:`tooltip-description__item body-3${C===s?" tooltip-description__item--active":""}`,children:[l&&m.length>1&&n.jsxs("span",{className:"tooltip-description__index button-1",children:[C+1,"."]}),p.color&&n.jsx("span",{className:"tooltip-description__dot",style:{background:p.color},"aria-hidden":"true"}),n.jsx("span",{children:p.text})]},C))})]})})}function Ea(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let mo=0,Ui=!1;function Gi(){Ui||typeof document>"u"||(Ui=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(mo=Date.now())},!0),document.addEventListener("touchstart",()=>{mo=Date.now()},{capture:!0,passive:!0}))}Gi();function ia(e){return!!e&&e.pointerType==="touch"}function la(e=1e3){return Gi(),Date.now()-mo<e}function ho(e,t,a,{enabled:r=!0,fallbackOnParent:i=!1}={}){const s=Ea(e),l=Ea(t),u=o.useRef(null),c=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const m=p=>{const C=p,y=p.target,x=a.current,f=!!(y&&x&&x.contains(y));if(C.pointerType!=="touch"){f&&(u.current=null);return}if(f){u.current=s.current;return}u.current=null,s.current&&!(y&&y.closest?.(".tooltip-content"))&&l.current(!1,x)};return document.addEventListener("pointerdown",m,!0),()=>document.removeEventListener("pointerdown",m,!0)},[r,a,s,l]);const d=o.useCallback(m=>{const p=u.current;return p===null?!1:(u.current=null,c.current=Date.now(),l.current(!p,m??a.current),!0)},[a,l]);return o.useEffect(()=>{if(!r||!i)return;const m=a.current,p=m?.parentElement;if(!m||!p)return;let C=null;const y=h=>{const _=h.changedTouches?.[0];if(!_)return!1;const g=m.getBoundingClientRect();return _.clientX>=g.left&&_.clientX<=g.right&&_.clientY>=g.top&&_.clientY<=g.bottom},x=h=>{C=y(h)?s.current:null},f=h=>{const _=C;C=null,!(_===null||Date.now()-c.current<700||!y(h))&&(u.current=null,c.current=Date.now(),l.current(!_,m))};return p.addEventListener("touchstart",x,{passive:!0}),p.addEventListener("touchend",f),()=>{p.removeEventListener("touchstart",x),p.removeEventListener("touchend",f)}},[r,i,a,s,l]),{touchPress:d}}function T4(e,t){const{size:a=48,type:r,htmlType:i,href:s,target:l,rel:u,icon:c,rightIcon:d,label:m,count:p,subLabel:C,children:y,ariaLabel:x,variant:f="default",align:h="center",nowrap:_=!1,selected:g,toggleable:k=!1,ariaExpanded:b,ariaControls:A,disabled:v=!1,useLabel:w=!0,useBorder:B=!0,useBG:E=!0,useDisabledCovered:D=!1,useDisabledInvisible:N=!1,width:O,minWidth:P,onClick:G,onDisabledClick:L,showTooltipInfo:M=!1,tooltipInfoText:$=null,tooltipDescription:Z=null,tooltipOnly:q=!1,iconSize:H="medium",iconColor:W,shape:R="rounded",color:z,className:V,...F}=e,S=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),j=S.match(/^\d+$/)?`button${S}`:`button-${S}`,I=Number(a),U=!isNaN(I)&&I<40?"button-2":"button-1",re=m??y,ne=v||!!F.disabled,le=ne?D?"disabled-covered":N?"disabled-invisibled":"disabled":f,K=le?`button--variant-${le}`:"",oe=h?`button--align-${h}`:"",ke=_?"button--nowrap":"",Y=R?`button--shape-${R}`:"",Q=typeof W=="string"&&W.startsWith("--")?`var(${W})`:W,me={...O?{width:typeof O=="number"?`${O}px`:O}:{},...P?{minWidth:typeof P=="number"?`${P}px`:P}:{},...B?{}:{"--button-border":ne?"0":"1px solid transparent"},...Q?{"--button-icon-color":Q}:{},...z?{"--color-main":z}:{}},De=w===!1?"":re,be=Array.isArray(De)?De.length>0:!!De,te=!!d,ue=r??(be||c||te?"bar":"dot"),Ce=`${j}--${ue}`,ge=o.useRef(null);o.useEffect(()=>{!Ln||i!==void 0||ge.current?.closest("form")&&St(`button-in-form:${typeof re=="string"?re:""}`,'[ihab/Button] <form> \uC548\uC778\uB370 htmlType \uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uC774 \uB2E8\uCD94\uB294 type="button" \uC774\uB77C \uD3FC\uC744 \uBCF4\uB0B4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uBA74 htmlType="submit" \uC744 \uC8FC\uC138\uC694. \uD3FC\uC5D0 \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uAC00 \uD558\uB098\uB3C4 \uC5C6\uC73C\uBA74 **Enter \uB85C\uB3C4 \uC548 \uBCF4\uB0B4\uC9D1\uB2C8\uB2E4**(\uCE78\uC774 \uB458 \uC774\uC0C1\uC77C \uB54C).'+(typeof re=="string"&&re?` \uB2E8\uCD94: ${re}`:""))},[i,re]);const fe=o.useRef(t);fe.current=t;const $e=o.useCallback(Re=>{ge.current=Re;const tt=fe.current;typeof tt=="function"?tt(Re):tt&&(tt.current=Re)},[]),ze=o.useRef(ne),[Te,Fe]=o.useState(!!g),[qe,mt]=o.useState(!1),[ct,rt]=o.useState(null),Ct=o.useCallback(()=>mt(!1),[]),[Ae,We]=o.useState(!1),_e=o.useId();o.useEffect(()=>{typeof g=="boolean"&&Fe(g)},[g]),o.useEffect(()=>{if(ze.current&&!ne&&ge.current){const Re=ge.current;let tt=!1;try{tt=Re.matches(":focus:not(:focus-visible)")}catch{tt=!1}tt&&Re.blur(),Re.style.pointerEvents="none";const xt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{ge.current&&(ge.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(xt)}ze.current=ne},[ne]);const Ue=typeof g=="boolean"?!!g:Te,Be=typeof b=="boolean"?void 0:k||typeof g=="boolean"?Ue?"true":"false":F["aria-pressed"],je=we("button",j,Ce,K,oe,ke,Y,Ue?"is-selected":null,E?null:"button--no-bg",q?"button--tooltip-only":null,V),Se=`button__icon button__icon--${H}`,Xe=Array.isArray(C)?C:C!==void 0?[C]:[],Qe=()=>{if(Array.isArray(De))return De.map((tt,xt)=>{const Lt=Xe[xt];return n.jsxs("span",{className:`button__label-text${Lt!==void 0?" button__label-text--has-sub":""}`,children:[tt,Lt!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:Lt})]},xt)});const Re=C!==void 0;return n.jsxs("span",{className:`button__label-text${Re?" button__label-text--has-sub":""}`,children:[De,p!=null&&n.jsx("span",{className:"button__count",children:p}),Re&&n.jsx("span",{className:"button__sub-label-text caption-1",children:C})]})},dt=Re=>{typeof g!="boolean"&&!k&&Fe(!1),Re.currentTarget.blur()},ht=Re=>{ne||(typeof F.onMouseLeave=="function"&&F.onMouseLeave(Re),dt(Re))},wt=Re=>{if(q&&gt&&it.touchPress(Re.currentTarget),ne){gt&&it.touchPress(Re.currentTarget),Re.preventDefault(),L?.(Re);return}typeof g!="boolean"&&k&&Fe(tt=>!tt),G?.(Re)},ft=o.useCallback(()=>{(M||Z)&&(mt(!0),rt(ge.current?.getBoundingClientRect()??null))},[M,Z]),Nt=o.useCallback(()=>{(M||Z)&&(mt(!1),rt(null))},[M,Z]),gt=!!(M||Z),it=ho(qe,Re=>{Re?ft():Nt()},ge,{enabled:gt&&(ne||q),fallbackOnParent:gt&&ne}),Ke={...F};delete Ke.disabled,delete Ke.className,delete Ke.faded,delete Ke.useFaded,delete Ke.loading,delete Ke.onMouseLeave,delete Ke.onPointerEnter,delete Ke.onPointerLeave,delete Ke.onPointerUp,delete Ke.onFocus,delete Ke.onBlur,ne&&(Object.keys(Ke).forEach(Re=>{/^on[A-Z]/.test(Re)&&typeof Ke[Re]=="function"&&delete Ke[Re]}),Ke["aria-disabled"]="true");const se=(typeof M=="string"?M:null)??(typeof $=="string"?$:null)??(typeof x=="string"?x:null)??(typeof re=="string"?re:null)??void 0,Ne=typeof x=="string"?x:typeof re=="string"?re:se,Ve=Z?[Z.title,...Z.items??[]].filter(Boolean).join(". "):M&&se&&se!==Ne?se:"",nt=[typeof F["aria-describedby"]=="string"?F["aria-describedby"]:void 0,Ve?_e:null].filter(Boolean).join(" ")||void 0,Ie=(Re,tt)=>n.jsx(at,{icon:Re,label:tt??Ne,className:Se,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),Ge=()=>ue==="dot"?n.jsxs(n.Fragment,{children:[Ie(c),be&&n.jsx("span",{className:`button__label ${U}`,children:Qe()})]}):h==="center"&&c?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:Ie(c)}),be&&n.jsx("span",{className:`button__label ${U}`,children:Qe()})]}),te&&n.jsx("span",{className:"button__right",children:Ie(d)})]}):n.jsxs(n.Fragment,{children:[c&&n.jsx("span",{className:"button__left",children:Ie(c,x??re)}),be&&n.jsx("span",{className:`button__label ${U}`,children:Qe()}),te&&n.jsx("span",{className:"button__right",children:Ie(d)})]}),bt=!!s&&!ne;return n.jsxs(n.Fragment,{children:[n.jsxs(bt?"a":"button",{...Ke,ref:$e,...bt?{href:s,target:l,rel:u??(l==="_blank"?"noreferrer":void 0)}:{type:i??"button",disabled:ne&&!L&&!Ae},className:je,"aria-pressed":Be,"aria-expanded":typeof b=="boolean"?b:F["aria-expanded"],"aria-controls":A??F["aria-controls"],"aria-label":Ne,"aria-disabled":ne&&(bt||L||Ae)?!0:void 0,"aria-describedby":nt,style:me,onClick:wt,onMouseLeave:ht,onPointerEnter:Re=>{ia(Re)||ft(),!ne&&typeof F.onPointerEnter=="function"&&F.onPointerEnter(Re)},onPointerLeave:Re=>{ia(Re)||Nt(),!ne&&typeof F.onPointerLeave=="function"&&F.onPointerLeave(Re)},onPointerUp:Re=>{ne&&gt&&it.touchPress(Re.currentTarget),!ne&&typeof F.onPointerUp=="function"&&F.onPointerUp(Re)},onFocus:Re=>{We(!0),la()||ft(),!ne&&typeof F.onFocus=="function"&&F.onFocus(Re)},onBlur:Re=>{We(!1),ne||dt(Re),Nt(),!ne&&typeof F.onBlur=="function"&&F.onBlur(Re)},children:[Ge(),Ve?n.jsx("span",{id:_e,hidden:!0,"aria-label":Ve}):null]}),qe&&Z?n.jsx(Kn,{anchorRect:ct,title:Z.title,items:Z.items,onClose:Ct}):qe&&se?n.jsx(Bn,{anchorRect:ct,text:se,onClose:Ct}):null]})}const pe=o.forwardRef(T4);pe.displayName="Button";function At(e,t,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const i=r.current?.parentElement??null;return t(i,e),()=>a(i)},[e,t,a]),r}const Da={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},Co=new WeakMap;function fo(e){if(e)return Co.get(e)}function Gt(e,t){e&&(e.style.setProperty(Da.title,t.title),e.style.setProperty(Da.description,t.description),Co.set(e,t))}function Kt(e){e&&(e.style.removeProperty(Da.title),e.style.removeProperty(Da.description),Co.delete(e))}const Ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Yi(){const e=At(Ki,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Zi={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Xi(){const e=At(Zi,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Ji={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Qi(){const e=At(Ji,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const el={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function tl(){const e=At(el,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const nl={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function al(){const e=At(nl,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const rl={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function ol(){const e=At(rl,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const sl={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function il(){const e=At(sl,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const ll={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ul(){const e=At(ll,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const cl={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function dl(){const e=At(cl,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const pl={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function ml(){const e=At(pl,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const hl={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Cl(){const e=At(hl,Gt,Kt);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 fl={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function gl(){const e=At(fl,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const bl={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function yl(){const e=At(bl,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const vl={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function xl(){const e=At(vl,Gt,Kt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Qt=(e,t,a)=>({key:e,get label(){return Rt.t(`promoBannerBg.${e}`,t)},textTone:a}),j4=[Qt("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Qt("soft","\uC18C\uD504\uD2B8","dark"),Qt("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),Qt("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Qt("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),Qt("warm","\uC6DC(\uAC15\uC870)","dark"),Qt("dark","\uB2E4\uD06C","light"),Qt("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Qt("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),Qt("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),Qt("outline","\uC544\uC6C3\uB77C\uC778","dark"),Qt("success","\uC131\uACF5/\uC644\uB8CC","light"),Qt("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),Qt("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],_l={main:Yi,soft:Xi,sub:Qi,deep:tl,softSub:al,warm:ol,dark:il,radial:ul,diagonal:dl,dots:ml,outline:Cl,success:gl,naver:yl,instagram:xl};function wl({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:i=.1,lineHeightRatio:s=1.4}={}){const l=k=>Math.max(a,Math.min(r,Number(k))),u=k=>{try{const b=localStorage.getItem(k),A=b?Number(b):1;return Number.isFinite(A)?l(A):l(1)}catch{return l(1)}},[c,d]=o.useState(()=>u(e)),[m,p]=o.useState(e);m!==e&&(p(e),d(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const C=k=>{d(typeof k=="function"?b=>l(k(b)):l(k))},y=()=>C(k=>+(k+i).toFixed(6)),x=()=>C(k=>+(k-i).toFixed(6)),f=c<r-Number.EPSILON,h=c>a+Number.EPSILON,_=Math.round(t*c),g=Math.round(_*s);return{scale:c,setScale:C,increase:y,decrease:x,canIncrease:f,canDecrease:h,fontSize:_,lineHeight:g}}function Bl(e,t){const a=Ea(t);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const go=" \xB7 ",Al=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(go)?e.split(go).pop()??e:e})(),M4=o.createContext(!1),Yn=[];let kl=null;function L4(e){const t=o.useContext(M4);o.useEffect(()=>{if(t||typeof e!="string"||!e)return;Yn.length===0&&(kl=document.title);const a={text:Al?`${e}${go}${Al}`:e};return Yn.push(a),document.title=a.text,()=>{const r=Yn.lastIndexOf(a);r>=0&&Yn.splice(r,1),document.title=Yn.length?Yn[Yn.length-1].text:kl??document.title}},[e,t])}const Nl=[{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"}],$4=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function an(e,t){return $4().compare(e,t)}const rr=new Map;function R4(e){const t=rr.get(e);if(t)return t;const a=[],r=/-?\d+(?:\.\d+)?/g;let i=0;for(let s=r.exec(e);s;s=r.exec(e)){let l=s.index,u=s[0];u[0]==="-"&&l>0&&!/\s/.test(e[l-1])&&(l+=1,u=u.slice(1)),l>i&&a.push(e.slice(i,l)),a.push(Number(u)),i=s.index+s[0].length}return i<e.length&&a.push(e.slice(i)),rr.size>5e3&&rr.clear(),rr.set(e,a),a}function P4(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 F4(e,t){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),i=a(t);if(r===i)return 0;const s=(d,m)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const p=P4(m);return p!==null?[p]:R4(m)},l=s(e,r),u=s(t,i),c=Math.min(l.length,u.length);for(let d=0;d<c;d++){const m=l[d],p=u[d];if(typeof m=="number"&&typeof p=="number"){if(m!==p)return m-p;continue}if(typeof m=="number")return-1;if(typeof p=="number")return 1;const C=an(m,p);if(C!==0)return C}return l.length!==u.length?l.length-u.length:an(r,i)}const El=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function bo(e,t,a){const r=El(e),i=El(t);if(r||i)return r===i?0:r?1:-1;const s=F4(e,t);return a?s:-s}function I4(e,t,a){const{t:r}=xe.useTranslation(),[i,s]=o.useState(()=>{const x=a?.initialPageSize;return x&&Nl.some(f=>f.value===x)?x:"25"}),[l,u]=o.useState(1),[c,d]=o.useState(t);Object.is(c,t)||(d(t),l!==1&&u(1));const m=o.useMemo(()=>Nl.map(x=>({...x,label:r("visits.showN",{n:x.value})})),[r]),p=o.useCallback(x=>{s(x),u(1)},[]),C=Math.max(1,Math.ceil(e.length/Number(i)));(l>C||l<1||!Number.isFinite(l))&&u(Math.min(Math.max(1,Number.isFinite(l)?l:1),C));const y=Math.min(Math.max(1,Number.isFinite(l)?l:1),C);return{pageRows:o.useMemo(()=>e.slice((y-1)*Number(i),y*Number(i)),[e,y,i]),pageSizeProps:{options:m,value:i,onChange:p},paginationProps:{page:y,total:C,onChange:u},setPage:u}}function O4(e){const[t,a]=o.useState(null),r=o.useRef(t),i=o.useRef(e?.onSortChange);i.current=e?.onSortChange;const s=o.useCallback(c=>{const d=r.current,m=d?.key===c?{key:c,asc:!d.asc}:{key:c,asc:!0};r.current=m,a(m),i.current?.(m)},[]),l=o.useCallback((c,d)=>({label:c,sortDir:t?.key===d?t.asc?"asc":"desc":null,onClick:()=>s(d)}),[t,s]),u=o.useCallback((c,d)=>{if(!t)return c;const{key:m,asc:p}=t;return[...c].sort((C,y)=>bo(d(C,m),d(y,m),p))},[t]);return{sort:t,field:l,sortRows:u}}const dn="\uC804\uCCB4";Object.fromEntries(Object.entries(GC).map(([e,{nucleus:t}])=>[e,t]));const H4={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"})},V4={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"})},z4={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 W4(e,t){if("place"in t)return H4[t.place](e);const a=V4[t.vowel](e);return t.glide?`${a} \xB7 ${z4[t.glide](e)}`:a}const q4=(e,{defaultValue:t})=>t,Dl=(e,t)=>({jamos:e,phonetic:t,tooltip:W4(q4,t)}),An=(e,t)=>t.map(a=>Dl([a],{place:e})),Pt=(e,t,a)=>Dl([...e],a?{vowel:t,glide:a}:{vowel:t}),yo={cho:[An("labial",["\u3142","\u3143","\u314D","\u3141"]),An("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),An("alveolar",["\u3145","\u3146"]),An("palatal",["\u3148","\u3149","\u314A"]),An("velar",["\u3131","\u3132","\u314B"]),An("glottal",["\u314E"])],jung:[[Pt("\u3163","frontHigh"),Pt("\u315F","frontHigh","w"),Pt("\u3162","frontHigh","velar")],[Pt("\u3161","backHighUnrounded")],[Pt("\u315C","backHighRounded"),Pt("\u3160","backHighRounded","j")],[Pt("\u3154\u3150","frontMid"),Pt("\u3156\u3152","frontMid","j"),Pt("\u3159\u315A\u315E","frontMid","w")],[Pt("\u3153","backMidUnrounded"),Pt("\u3155","backMidUnrounded","j"),Pt("\u315D","backMidUnrounded","w")],[Pt("\u3157","backMidRounded"),Pt("\u315B","backMidRounded","j")],[Pt("\u314F","low"),Pt("\u3151","low","j"),Pt("\u3158","low","w")]],jong:[An("labial",["\u3142","\u3141"]),An("alveolar",["\u3137","\u3134","\u3139"]),An("velar",["\u3131","\u3147"])]},U4=e=>e===G4?[]:Array.from(e),G4="__NO_CODA__",vo=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:i})=>({v:a.join(""),phonetic:r,tooltip:i}))),Sl={cho:vo(yo.cho),jung:vo(yo.jung),jong:vo(yo.jong)};Sl.jung.flat().forEach(({v:e})=>{for(const t of U4(e));}),new Set(Sl.cho.flat().map(e=>e.v));function K4(e,t=!0){const a=Ea(e);o.useEffect(()=>{if(t)return Gn(()=>{a.current?.()})},[t,a])}function Sa(){const[e,t]=o.useState(null),a=o.useCallback(s=>t(s.getBoundingClientRect()),[]),r=o.useCallback(()=>t(null),[]),i=o.useCallback(s=>{const l=s.getBoundingClientRect();t(u=>u?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:i}}function Y4(e){const[t,a]=o.useState(null),[r,i]=o.useState(null),s=o.useRef(null);o.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]);const l=o.useCallback((c,d)=>{s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{a(c),i(d)},e)},[e]),u=o.useCallback(()=>{s.current&&clearTimeout(s.current),a(null),i(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:l,close:u}}function Tl(e="warning"){const[t,a]=o.useState(""),[r,i]=o.useState(e),[s,l]=o.useState(0),u=o.useCallback((p,C)=>{i(C),a(p),l(y=>y+1)},[]),c=o.useCallback(p=>u(p,"warning"),[u]),d=o.useCallback(p=>u(p,"normal"),[u]),m=o.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:s,showToast:u,showWarning:c,showNormal:d,clearToast:m}}function Ta(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 ja({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[i,s]=o.useState(!1),[l,u]=o.useState({position:"fixed"}),c=o.useRef(null),d=o.useRef(null),m=o.useCallback(()=>{c.current&&u(e(c.current.getBoundingClientRect(),c.current))},[e]);o.useLayoutEffect(()=>{i&&m()},[i,m]),o.useEffect(()=>{if(!i)return;let y=d.current?.offsetHeight??0;y>0&&m();let x=0,f=null;typeof ResizeObserver<"u"&&d.current&&(f=new ResizeObserver(()=>{const w=d.current?.offsetHeight??0;if(w!==y){if(y=w,++x>4){f?.disconnect(),f=null;return}m()}}),f.observe(d.current));const h=w=>{const B=w.target;r&&B.closest?.(r)||c.current?.contains(B)||d.current?.contains(B)||s(!1)};document.addEventListener("mousedown",h),document.addEventListener("pointerdown",h);let _=null;const g=()=>{if(typeof requestAnimationFrame>"u"){m();return}_===null&&(_=requestAnimationFrame(()=>{_=null,m()}))},k=w=>{d.current?.contains(w.target)||(t==="reposition"?g():t==="close"&&s(!1))};t!=="ignore"&&window.addEventListener("scroll",k,!0);const b=()=>{a==="reposition"?g():a==="close"&&s(!1)};let A=null;const v=()=>{b(),A&&clearTimeout(A),A=setTimeout(()=>{A=null,a==="reposition"&&m()},250)};return a!=="ignore"&&(window.addEventListener("resize",b),window.addEventListener("orientationchange",v)),()=>{_!==null&&cancelAnimationFrame(_),f?.disconnect(),document.removeEventListener("mousedown",h),document.removeEventListener("pointerdown",h),t!=="ignore"&&window.removeEventListener("scroll",k,!0),a!=="ignore"&&(window.removeEventListener("resize",b),window.removeEventListener("orientationchange",v)),A&&clearTimeout(A)}},[i,m,t,a,r]),o.useEffect(()=>{if(i)return Gn(()=>s(!1))},[i]);const p=o.useCallback(()=>s(y=>!y),[]),C=o.useCallback(()=>s(!1),[]);return{open:i,setOpen:s,toggle:p,close:C,style:l,triggerRef:c,menuRef:d}}function Z4(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:i,playMs:s=1100,feedbackMs:l=1500}={}){const[u,c]=o.useState([]),[d,m]=o.useState(0),[p,C]=o.useState("idle"),[y,x]=o.useState(null),[f,h]=o.useState([]),[_,g]=o.useState(null),[k,b]=o.useState(0),A=o.useRef(0),v=o.useCallback(R=>{A.current=typeof R=="function"?R(A.current):R,b(A.current)},[]),w=o.useRef(r),B=o.useRef(i);o.useEffect(()=>{w.current=r,B.current=i},[r,i]);const E=o.useRef([]),D=()=>{E.current.forEach(clearTimeout),E.current=[]},N=(R,z)=>{E.current.push(setTimeout(z,R))};o.useEffect(()=>()=>D(),[]);const O=u[d]?.id??null,P=o.useRef(null),G=o.useCallback(()=>{D(),C("playing"),h([]),g(null),v(0);let R=0;e.forEach((z,V)=>{N(R,()=>{m(V),x(z.id),w.current?.(z)}),N(R+1e3,()=>{x(null),h(F=>[...F,z.id])}),R+=1300}),N(R,()=>{C("done"),B.current?.({score:0,total:e.length})})},[e,v]),L=o.useCallback((R,z)=>{if(z>=R.length){C("done"),B.current?.({score:A.current,total:R.length});return}P.current=null,m(z),g(null),C("playing"),x(R[z].id),w.current?.(R[z]),N(s,()=>{x(null),C("waiting")})},[s]),M=o.useCallback(()=>{D();const R=ka(e);c(R),v(0),h([]),L(R,0)},[e,L,v]),$=o.useCallback(()=>{t==="playback"?(c(e),G()):M()},[t,e,G,M]),Z=o.useCallback(()=>{D(),C("idle"),x(null),h([]),g(null),m(0),v(0),c([])},[v]),q=e.map(R=>R.id).join("|");o.useEffect(()=>(a?$():Z(),()=>D()),[t,q,a]);const H=o.useCallback(R=>{p!=="waiting"||t==="playback"||P.current===d||(P.current=d,g(R),R===u[d]?.id&&v(z=>z+1),t==="exam"?(C("playing"),N(400,()=>L(u,d+1))):(C("feedback"),N(l,()=>L(u,d+1))))},[p,t,u,d,L,l,v]),W=t==="playback"?e.length:u.length;return{bind:{activeSpeakerId:y,playedIds:f,selectedId:_,answerId:O,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:H},index:d,total:W,score:k,phase:p,done:p==="done",start:$,reset:Z}}function X4({title:e,description:t,actionLabel:a,onAction:r,bg:i,color:s,size:l="medium",actionVariant:u,titleColor:c,descriptionColor:d,className:m=""}){const p=i??s??"main",C=o.useRef(null),[y,x]=o.useState("main"),f=ln("(max-width: 767px)"),h=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const k=C.current;if(!k)return;const b=fo(k),A=(v,w,B)=>{if(B!==void 0)k.style.setProperty(w,B),h.current[v]=!0;else if(h.current[v]){const E=b?.[v];E?k.style.setProperty(w,E):k.style.removeProperty(w),h.current[v]=!1}};A("title","--promo-banner-bg-title",c),A("description","--promo-banner-bg-description",d)},[c,d,p]),o.useLayoutEffect(()=>{const k=C.current;if(!k)return;const b=fo(k);x(b?.actionVariant??"main")},[p]);const _=we("promo-banner",`promo-banner--${l}`,m),g=_l[p];return n.jsxs("div",{ref:C,className:_,role:"note",children:[n.jsx(g,{}),n.jsxs("div",{className:"promo-banner__text",children:[n.jsx("span",{className:`promo-banner__title ${l==="small"?"body-2":"h2"}`,children:e}),t&&n.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&n.jsx(pe,{htmlType:"button",size:40,variant:u??y,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...f?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function J4({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":i}){const{t:s}=xe.useTranslation(),l=i??s("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),c=u.length,[d,m]=o.useState(0),[p,C]=o.useState(!1),[y,x]=o.useState(!1),[f,h]=o.useState(!1),_=o.useRef(null),g=o.useRef(null),k=o.useRef(null),b=po(),A=p||y||f,v=c>0?Math.min(d,c-1):0;o.useEffect(()=>{if(c<2||t<=0||A||b)return;const B=window.setInterval(()=>m(E=>(Math.min(E,c-1)+1)%c),t);return()=>window.clearInterval(B)},[c,t,A,b]);const w=B=>{g.current!=null&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{g.current=null,h(!1)},B)};return o.useEffect(()=>()=>{g.current!=null&&window.clearTimeout(g.current)},[]),o.useEffect(()=>{if(!f)return;const B=E=>{E.pointerType==="touch"&&(k.current&&k.current.contains(E.target)||(g.current!=null&&(window.clearTimeout(g.current),g.current=null),h(!1)))};return document.addEventListener("pointerdown",B,!0),()=>document.removeEventListener("pointerdown",B,!0)},[f]),c===0?null:n.jsxs("section",{ref:k,className:we("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onPointerEnter:B=>{_.current=B.pointerType},onPointerDown:B=>{_.current=B.pointerType,B.pointerType==="touch"&&(g.current!=null&&(window.clearTimeout(g.current),g.current=null),h(!0))},onPointerUp:B=>{B.pointerType==="touch"&&w(5e3)},onPointerCancel:B=>{B.pointerType==="touch"&&w(5e3)},onMouseEnter:()=>{_.current!=="touch"&&C(!0)},onMouseLeave:()=>C(!1),onFocus:B=>{let E=!0;try{E=B.target.matches(":focus-visible")}catch{E=!0}x(E)},onBlur:B=>{B.currentTarget.contains(B.relatedTarget)||x(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${v*100}%)`},children:u.map((B,E)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":E!==v,...E!==v?{inert:!0}:{},children:B},E))})}),c>1&&n.jsx("div",{className:`top-banner__dots${(a?.[v]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((B,E)=>n.jsx("button",{type:"button",className:`top-banner__dot${E===v?" top-banner__dot--active":""}`,"aria-label":s("topBanner.dotAriaLabel",{count:c,index:E+1,defaultValue:`${c}\uAC1C \uC911 ${E+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":E===v,onClick:()=>m(E)},E))})]})}function Q4({title:e,body:t,open:a=!1,onToggle:r,avatar:i,titleClassName:s="body-2",bodyClassName:l="body-2",className:u=""}){const{t:c}=xe.useTranslation();return n.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.trim(),role:"listitem",children:[n.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const m=d.currentTarget.closest('[role="list"]');if(!m)return;const p=Array.from(m.querySelectorAll("[data-accordion-header]")),C=p.indexOf(d.currentTarget);(d.key==="ArrowDown"?p[C+1]:p[C-1])?.focus()}},children:[i&&n.jsx("div",{className:"accordion-item__avatar",children:i}),n.jsx("div",{className:`accordion-item__title ${s}`,children:e}),n.jsx("div",{className:"accordion-item__chevron",children:n.jsx(at,{icon:a?"chevron-up":"chevron-down",label:a?c("accordion.collapse","\uC811\uAE30"):c("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&n.jsx("div",{className:`accordion-item__body ${l}`,children:typeof t=="string"?n.jsx("p",{children:t}):t})]})}function eb({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:i}){const[s,l]=o.useState({index:t}),u=(c,d)=>s.id!=null&&c.id!=null?c.id===s.id:s.id==null&&d===s.index;return n.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>n.jsx(Q4,{title:c.title,body:c.body,avatar:c.avatar,open:u(c,d),onToggle:()=>l(u(c,d)?{index:-1}:{index:d,id:c.id}),bodyClassName:i},c.id??d))})}function tb(){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 nb(){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 ab(){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 kt(e){const{t}=xe.useTranslation(),{type:a="bar",size:r,className:i="","aria-label":s,"aria-hidden":l}=e;if(a==="dot"){const{icon:A,number:v,position:w="top-right",onClick:B,animate:E=!1}=e,D=A??"check",N=v!==void 0?"number":D,O=typeof r=="number"?r:32,P=we("circle-badge",`circle-badge--${N}`,`circle-badge--${w}`,`circle-badge--${O}`,E?"circle-badge--animate":"",B?"circle-badge--clickable":"",i),G=v!==void 0?t("badge.nthSelected",{n:v,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:t("badge.selected","\uC120\uD0DD\uB428"),remove:t("badge.remove","\uC81C\uAC70"),minus:t("badge.exclude","\uC81C\uC678")}[D];return n.jsxs("span",{className:P,onClick:B,onKeyDown:B?L=>{L.key!=="Enter"&&L.key!==" "||(L.preventDefault(),L.currentTarget.click())}:void 0,"aria-label":l?void 0:s??G,"aria-hidden":l||void 0,role:B?"button":l?void 0:"img",tabIndex:B?0:void 0,children:[v!==void 0&&v,v===void 0&&D==="check"&&n.jsx(tb,{}),v===void 0&&D==="remove"&&n.jsx(nb,{}),v===void 0&&D==="minus"&&n.jsx(ab,{})]})}const{label:u,children:c,variant:d="default",fill:m="filled",minWidth:p,iconLeft:C,iconRight:y,color:x}=e,f=typeof r=="number"?"medium":r??"medium",h={small:"caption-2b",medium:"body-3b",large:"body-2b"}[f]??"body-2b",_={small:12,medium:14,large:16}[f]??14,g=we("badge",`badge--${d}`,`badge--${f}`,m!=="filled"?`badge--${m}`:"",h,i),k=x?.startsWith("--")?`var(${x})`:x,b=p!==void 0||k?{...p!==void 0?{minWidth:typeof p=="number"?`${p}px`:p}:{},...k?{"--badge-color":k}:{}}:void 0;return n.jsxs("span",{className:g,style:b,"aria-label":l?void 0:s,role:s&&!l?"img":void 0,"aria-hidden":l||void 0,children:[C&&n.jsx(at,{icon:C,size:_,className:"badge__icon"}),u??c,y&&n.jsx(at,{icon:y,size:_,className:"badge__icon"})]})}function Ma({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:i}=xe.useTranslation(),s=r==="small"?40:48,[l,u]=o.useState([]),c=o.useMemo(()=>{const h=[{title:null,columns:e}];let _=e;for(const g of l){const k=_?.[g.ci]?.items?.[g.ii];if(!k||!Array.isArray(k.children)||!k.children.length)break;_=[{title:null,items:k.children}],h.push({title:k.label||null,columns:_})}return h},[e,l]),d=c[c.length-1],m=c.length-1,p=o.useCallback(()=>u(h=>h.slice(0,Math.max(0,Math.min(h.length,m)-1))),[m]),C=o.useRef(null),y=o.useRef(null),x=c.length;o.useEffect(()=>{y.current||(y.current=document.activeElement);let h=0,_=0;const g=()=>{const k=C.current?.querySelector("button:not([disabled])");if(k&&k.offsetParent){k.focus({preventScroll:!0});return}_++<20&&(h=requestAnimationFrame(g))};return h=requestAnimationFrame(g),()=>cancelAnimationFrame(h)},[x]),o.useEffect(()=>()=>{y.current?.focus?.({preventScroll:!0})},[]);const f=o.useCallback((h,_,g)=>{if(h){if(Array.isArray(h.children)&&h.children.length){u(k=>[...k.slice(0,m),{ci:_,ii:g}]);return}try{typeof h.onClick=="function"&&h.onClick()}catch{}try{h&&h.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t,m]);return n.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(c.length>1||d.title)&&n.jsxs("div",{className:"tooltip-menu__header",children:[c.length>1?n.jsx(pe,{htmlType:"button",size:s,type:"dot",icon:"chevron-left",ariaLabel:i("common.back","\uB4A4\uB85C"),onClick:p,variant:"transparent-gray",useBorder:!1}):null,n.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),n.jsx("div",{className:"tooltip-menu__columns",ref:C,children:d.columns&&d.columns.map((h,_)=>n.jsxs("div",{className:"tooltip-menu__column",children:[h.title?n.jsx("div",{className:"tooltip-menu__column-title body-3",children:h.title}):null,n.jsx("div",{className:"tooltip-menu__items",children:(h.items||[]).map((g,k)=>n.jsxs(o.Fragment,{children:[g.separatorBefore&&k>0&&n.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),n.jsx(pe,{htmlType:"button",className:"tooltip-menu__item",size:s,type:g.label?"bar":"dot",icon:g.selected?"check":g.icon||"none",rightIcon:Array.isArray(g.children)&&g.children.length?"chevron-right":g.badgeCount?n.jsx(kt,{type:"dot",position:"inline",number:Math.min(g.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:g.label,ariaLabel:g.label&&g.badgeCount&&g.badgeCount>0?i("nav.badgeLabel",{label:g.label,count:g.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):g.label,onClick:()=>f(g,_,k),selected:g.selected,disabled:g.disabled,showTooltipInfo:g.tooltip||!1,useBorder:!1,align:"left"})]},k))})]},_))})]})}const jl=".content-area";function xo(e,t="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(jl);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&St("nav-scroll-container",`[${t}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${jl}) \u2014 \uCC3D\uB3C4 \uAD6C\uB97C \uC218 \uC5C6\uC5B4 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4. scrollContainer \uB85C \uD1B5\uC744 \uC54C\uB824 \uC900\uB2E4.`),window.scrollTo({top:0})}catch{}}const _o=52,or=10,Ml=e=>e&&e>0?e:0;function Ll({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:i,moreItems:s=[],scrollContainer:l}){const{t:u}=xe.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",m=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=o.useRef(null),[C,y]=o.useState(0),x=e.length;o.useEffect(()=>{const R=p.current;if(!R)return;const z=()=>{const S=typeof getComputedStyle=="function"?getComputedStyle(R):null,j=R.clientWidth-(parseFloat(S?.paddingLeft??"")||0)-(parseFloat(S?.paddingRight??"")||0),I=R.querySelector(".bottom-nav__left"),U=I?.nextElementSibling,re=(I?.offsetWidth??0)+(I&&U?.classList.contains("bottom-nav__divider")?U.offsetWidth:0);y(Math.max(0,j-re))};if(z(),typeof ResizeObserver>"u")return;const V=new ResizeObserver(z);V.observe(R);const F=R.querySelector(".bottom-nav__left");return F&&V.observe(F),()=>V.disconnect()},[i]);const f=_o+1,h=R=>Math.max(0,Math.floor((R+or)/(_o+or))),_=x*(_o+or)-or<=C,g=C<=0||s.length===0&&_?x:Math.min(x,h(C-f)),k=C>0&&g<x,b=k?g:x,A=e.slice(0,b),v=e.slice(b),w=k||s.length>0,B=o.useCallback((R,z)=>({position:"fixed",bottom:window.innerHeight-R.top+8,right:window.innerWidth-R.right,zIndex:Ta(z)}),[]),E=o.useId(),{open:D,toggle:N,close:O,style:P,triggerRef:G,menuRef:L}=ja({computeStyle:B,onScroll:"ignore",onResize:"reposition"}),M=o.useCallback((R,z)=>z>0?u("nav.badgeLabel",{label:R,count:z,defaultValue:"{{label}}, {{count}}\uAC1C"}):R,[u]),$=o.useCallback((R,z)=>z>0?u("nav.badgeInsideLabel",{label:R,count:z,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):R,[u]),Z=o.useCallback(()=>i?.(c),[i,c]),q=o.useMemo(()=>v.find(R=>!!R.key&&R.key===t)??s.find(R=>R.selected||R.key&&R.key===t),[v,t,s]),H=o.useMemo(()=>[{items:[...v.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:!!R.key&&R.key===t,closeOnSelect:!0,disabled:R.state==="disabled",onClick:()=>{R.state!=="disabled"&&(R.key&&a&&(a(R.key),xo(l,"BottomNav")),O())}})),...s.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.selected??(!!R.key&&R.key===t),closeOnSelect:!0,onClick:()=>{R.onClick?.(),O()}}))]}],[v,s,t,a,O]),W=[...v,...s].reduce((R,z)=>R+Ml(z.badgeCount),0);return n.jsxs("nav",{className:"bottom-nav",ref:p,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[i&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__left",children:n.jsx(pe,{htmlType:"button",size:52,type:"dot",icon:d,ariaLabel:m,className:"bottom-nav-item",onClick:Z})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",children:A.map((R,z)=>{const V=Ml(R.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(pe,{htmlType:"button",size:52,type:"dot",icon:R.icon,ariaLabel:M(R.label,V),selected:!!R.key&&R.key===t,disabled:R.state==="disabled",className:"bottom-nav-item",onClick:()=>{R.key&&(a?.(R.key),xo(l,"BottomNav"))}}),V>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(kt,{type:"dot",position:"top-right",number:Math.min(V,99),size:24})})]},R.key??`__slot-${z}`)})}),w&&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(pe,{htmlType:"button",size:52,type:"dot",icon:q?.icon??"ellipsis",ariaLabel:$(q?.label??u("nav.more","\uB354\uBCF4\uAE30"),W),selected:!!q,className:"bottom-nav-item",onClick:N,"aria-expanded":D,"aria-controls":D?E:void 0}),W>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(kt,{type:"dot",position:"top-right",number:Math.min(W,99),size:24})}),D&&en.createPortal(n.jsx("div",{id:E,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:P,ref:L,children:n.jsx(Ma,{columns:H,onClose:O})}),document.body)]})})]})]})}function $l(e){if(typeof e!="string")return!1;let t="";for(const r of e){const i=r.charCodeAt(0);i<=32||i>=127&&i<=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 Rl(e,t,a){return a&&a>0?e("nav.badgeLabel",{label:t,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):t}function rb(e){const{t}=xe.useTranslation(),{activeKey:a,unreadCount:r,onDebug:i,onNotification:s,onSetting:l,onHelp:u,onFeedback:c,onAccount:d}=e||{},m="default";return i||s||l||u||c||d?n.jsxs("div",{className:"side-nav__footer",children:[i&&n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:i,selected:a==="debug"}),s&&n.jsxs("span",{className:"side-nav__notification-wrap",children:[n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"bell",ariaLabel:Rl(t,t("nav.notifications","\uC54C\uB9BC"),r),onClick:s,selected:a==="notifications"}),!!r&&r>0&&n.jsx(kt,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),u&&n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),c&&n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"bug",ariaLabel:t("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:c,selected:a==="feedback"}),d&&n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]}):null}function Pl(e){const{t}=xe.useTranslation(),{item:a,itemKey:r,label:i,icon:s,active:l,onClick:u,style:c,state:d,labelStyle:m}=e||{},p=a?.key??r??"",C=a?.label??i??"",y=a?.icon??s??"",x=a?.badge??0,f=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(at,{icon:y,label:typeof C=="string"?C:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),h=d==="disabled",_=`side-nav__item ${l?"active":""} ${d||""} ${h?"disabled":""} ${a?.child?"side-nav__item--child":""}`,g=o.useCallback(k=>{if(h)return;const b=k.detail>0;if(b)try{k.currentTarget.blur()}catch{}u?.(p,k.currentTarget,b)},[h,p,u]);return n.jsxs("button",{type:"button",className:_,onClick:g,"aria-label":typeof C=="string"?Rl(t,C,x):void 0,"aria-current":l?"page":void 0,style:c,"aria-disabled":h,children:[f,n.jsx("span",{className:"side-nav__label button-1 f",style:m,children:C}),x>0&&n.jsx(kt,{type:"dot",position:"inline",number:Math.min(x,99),size:24,"aria-hidden":!0}),d==="loading"&&n.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":t("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function Fl(e){const{t}=xe.useTranslation(),{items:a=[],activeKey:r,onChange:i,unreadCount:s,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:C,onAppModeChange:y,scrollContainer:x}=e||{},f=C==="manager",h=o.useCallback(()=>y?.(f?"malgwi":"manager"),[y,f]),_=o.useRef(null),[g,k]=o.useState(null);o.useEffect(()=>{const B=_.current;if(!B)return;let E=null;const D=()=>{const{scrollHeight:P,clientHeight:G,scrollTop:L}=B;if(P<=G+1){k(H=>H===null?H:null);return}const M=Math.max(24,G/P*G),$=G-M,Z=P-G,q={top:Math.round(L/Z*$),height:Math.round(M)};k(H=>H&&H.top===q.top&&H.height===q.height?H:q)},N=()=>{if(typeof requestAnimationFrame>"u"){D();return}E===null&&(E=requestAnimationFrame(()=>{E=null,D()}))};D(),B.addEventListener("scroll",N,{passive:!0});const O=typeof ResizeObserver<"u"?new ResizeObserver(N):null;O?.observe(B);for(const P of Array.from(B.children))O?.observe(P);return()=>{E!==null&&cancelAnimationFrame(E),B.removeEventListener("scroll",N),O?.disconnect()}},[a]);const b=o.useRef(null),A=o.useCallback(B=>{const E=_.current;E&&(B.preventDefault(),b.current={y:B.clientY,top:E.scrollTop},B.currentTarget.setPointerCapture(B.pointerId))},[]),v=o.useCallback(B=>{const E=_.current,D=b.current;!E||!D||(E.scrollTop=D.top+(B.clientY-D.y)*(E.scrollHeight/E.clientHeight))},[]),w=o.useCallback(B=>{b.current=null,B.currentTarget.hasPointerCapture(B.pointerId)&&B.currentTarget.releasePointerCapture(B.pointerId)},[]);return n.jsxs("nav",{ref:_,"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[g&&n.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:n.jsx("div",{className:"side-nav__scroll-thumb",style:{top:g.top,height:g.height},onPointerDown:A,onPointerMove:v,onPointerUp:w,onPointerCancel:w})}),n.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(B=>!B.section&&(B.key||B.label)).map((B,E)=>n.jsxs(o.Fragment,{children:[B.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(Pl,{item:B,active:!!B.key&&B.key===r,state:B.disabled?"disabled":void 0,onClick:(D,N,O)=>{if(B.disabled)return;if(B.href){if($l(B.href)&&window.open(B.href,"_blank","noopener,noreferrer"),O)try{N?.blur()}catch{}return}if(i?.(B.key),xo(x,"SideNav"),!O)return;try{N?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const P=document.querySelector(".header");if(P){const G=typeof P.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&G&&P.matches(":hover"))){P.classList.add("header--force-collapsed");const L=()=>{P.classList.remove("header--force-collapsed"),P.removeEventListener("mouseenter",L)};P.addEventListener("mouseenter",L)}}}})]},B.key??`side-nav__item-${E}`)),y&&n.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),y&&n.jsx(Pl,{item:{key:"__mode-switch__",label:f?t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:f?"arrow-left":"arrow-right"},onClick:h})]}),n.jsx(rb,{activeKey:r,unreadCount:s,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p})]})}var sr='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',wo='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',ob='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 Il({appMode:e}){const{t}=xe.useTranslation(),a=e==="manager",r=a?wo:sr,i=ob;return n.jsxs("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:[n.jsx("img",{src:i,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),n.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image brand-identity__image--logo"})]})}function Ol({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:i,unreadCount:s,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:C,onAppModeChange:y,scrollContainer:x}){const{t:f}=xe.useTranslation(),h=ln("(max-width: 767px)"),_=o.useMemo(()=>(a??[]).filter(P=>!P.section&&(P.key||P.label)).map(P=>({key:P.key,label:typeof P.label=="string"?P.label:void 0,icon:P.icon,state:P.disabled?"disabled":void 0,badgeCount:P.badge})),[a]),g=o.useCallback(P=>{const G=a?.find(L=>L.key===P);if(!G?.disabled){if(G?.href){$l(G.href)&&window.open(G.href,"_blank","noopener,noreferrer");return}t?.(P)}},[a,t]),k=o.useMemo(()=>{const P=[];return l&&P.push({key:"debug",icon:"terminal",label:f("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),u&&P.push({key:"notifications",icon:"bell",label:f("nav.notifications","\uC54C\uB9BC"),badgeCount:s,onClick:u}),d&&P.push({key:"settings",icon:"settings",label:f("nav.settings","\uC124\uC815"),onClick:d}),m&&P.push({key:"help",icon:"message-circle-question-mark",label:f("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:m}),p&&P.push({key:"feedback",icon:"bug",label:f("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:p}),c&&P.push({key:"account",icon:"user-round",label:f("nav.account","\uACC4\uC815"),onClick:c}),P},[f,l,u,d,m,p,c,s]),b=o.useCallback((P,G)=>({position:"fixed",top:P.bottom+8,right:Math.max(8,window.innerWidth-P.right),zIndex:Ta(G)}),[]),A=o.useId(),{open:v,toggle:w,close:B,style:E,triggerRef:D,menuRef:N}=ja({computeStyle:b,onScroll:"ignore",onResize:"reposition"}),O=o.useMemo(()=>[{items:k.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:P.selected??(!!P.key&&P.key===e),closeOnSelect:!0,onClick:()=>{P.onClick?.(),B()}}))}],[k,e,B]);return n.jsxs("aside",{className:`header${C==="manager"?" header--manager":""}`,children:[n.jsxs("div",{className:"header__bi",children:[n.jsx(Il,{appMode:C}),n.jsxs("div",{className:"header__menu-button",ref:D,children:[n.jsx(pe,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&s&&s>0?f("nav.badgeInsideLabel",{label:f("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:s,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):f("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:w,"aria-expanded":v,"aria-controls":v?A:void 0}),!!u&&!!s&&s>0&&n.jsx(kt,{type:"dot",number:Math.min(s,99),size:24,"aria-hidden":!0}),v&&en.createPortal(n.jsx("div",{id:A,role:"group","aria-label":f("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:E,ref:N,children:n.jsx(Ma,{columns:O,onClose:B})}),document.body)]})]}),n.jsx(Fl,{scrollContainer:x,items:a,activeKey:e??void 0,onChange:t,unreadCount:s,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:C,onAppModeChange:y}),h&&n.jsx(Ll,{items:_,activeKey:e??void 0,onChange:g,scrollContainer:x,appMode:C,onAppModeChange:y})]})}const sb=Ol,ib=()=>Rt.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function Hl(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 oa(`${t.toLocaleString("ko-KR")}\uC6D0`)}return oa(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function lb(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function ub(e){if(e.durationDays&&e.durationDays>0){const s=e.durationDays;return s%365===0?`${s/365}\uB144`:`${s}\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 i=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return i?i[2].toLowerCase()==="year"?`${i[1]}\uB144`:`${i[1]}\uC77C`:a||ib()}function cb(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 Vl(e){return{type:e.type??lb(e),plan:ub(e),label:e.label,price:Hl(e.price),originalPrice:Hl(e.originalPrice),discountLabel:e.discountLabel}}var db='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',pb='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>',mb='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',hb='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',Cb='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>',fb='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',zl='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 Zn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},Bo=new WeakMap;function gb(e){if(e)return Bo.get(e)}function kn(e,t){e&&(e.style.setProperty(Zn.text,t.text),e.style.setProperty(Zn.sub,t.sub),t.copyrightColor&&e.style.setProperty(Zn.copyright,t.copyrightColor),Bo.set(e,t))}function Nn(e){e&&(e.style.removeProperty(Zn.text),e.style.removeProperty(Zn.sub),e.style.removeProperty(Zn.copyright),Bo.delete(e))}const Wl={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function ql(e={}){const t=At(Wl,kn,Nn);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("${zl}")`}})]})}const Ul="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 La='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 bb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},yb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Gl(e={}){const t=At(bb,kn,Nn),a="var(--color-main)",r=270,i=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:yb.map(({scale:s,opacity:l},u)=>n.jsx("g",{transform:`translate(${r} ${i}) scale(${s}) translate(-50 -50)`,opacity:l,children:n.jsx("path",{d:Ul,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${La}")`}})]})}const vb={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},xb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function _b(e={}){const t=At(vb,kn,Nn),a="#ffffff",r=270,i=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:xb.map(({scale:s,opacity:l},u)=>n.jsx("g",{transform:`translate(${r} ${i}) scale(${s}) translate(-50 -50)`,opacity:l,children:n.jsx("path",{d:Ul,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${zl}")`}})]})}const wb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Bb(e={}){const t=At(wb,kn,Nn);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("${La}")`}})]})}const Ab={Logo_speechear_kr:{"":sr,_white:db,_textWhite:pb,_black:mb},Logo_speechearManager_kr:{"":wo,_white:hb,_textWhite:Cb,_black:fb}};function kb(e,t){if(e)return Ab[e]?.[t??""]??void 0}const Nb={speechear:sr,manager:wo},Eb={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},Kl=10;function Db(e){return e<=0?0:e>=86400?Math.floor(e/86400)*86400:e>=3600?Math.floor(e/3600)*3600:e>=60?Math.floor(e/60)*60:Math.floor(e)}function Yl(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 i=Math.floor(e/60);return i>0?t("passCard.remainingMinute",{n:i}):t("passCard.remainingSecond",{n:Math.floor(e)})}function Sb(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),i=a==="\uC624\uD508\uD2B9\uAC00"||a===Rt.t("passCard.specialLabel");return r?n.jsx(Bb,{}):i?n.jsx(_b,{}):n.jsx(Gl,{})}return n.jsx(ql,{})}function Zl({ariaLabel:e,product:t,showPrice:a=!1,plan:r,type:i,endDate:s,remainingSeconds:l,endInclusive:u=!1,state:c="active",bg:d,bgOnly:m=!1,textColor:p,subColor:C,copyrightColor:y,logoSrc:x,label:f,price:h,originalPrice:_,discountLabel:g,onUse:k,onRefund:b,onDelete:A}){const{t:v}=xe.useTranslation(),w=t?Vl(t):void 0,B=i??w?.type??"speechear",E=r??w?.plan??v("passCard.planSuffix","\uC774\uC6A9\uAD8C"),D=f??w?.label,N=h??(a?w?.price:void 0),O=_??(a?w?.originalPrice:void 0),P=g??w?.discountLabel,G=o.useMemo(()=>{if(N)return null;const Y=t?.durationDays??cb(t?.code);if(!Y||Y<=0)return l!=null?{percent:null,remainingLabel:Yl(l,v)}:null;const Q=Y*86400;let me;if(l!=null)me=l;else if((c==="active"||c==="expired")&&s){const te=new Date(s).getTime();if(Number.isNaN(te))return null;const ue=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(s)),Ce=/^(\d{4})-(\d{2})-(\d{2})/.exec(Na()),ge=Math.round(ue&&Ce?(Date.UTC(+ue[1],+ue[2]-1,+ue[3])-Date.UTC(+Ce[1],+Ce[2]-1,+Ce[3]))/864e5:(te-Date.now())/864e5);me=Math.max(0,u?ge+1:ge)*86400}else c==="expired"?me=0:me=Q;const De=Db(me),be=Math.max(0,Math.min(100,Math.floor(Math.min(De,Q)/Q*100)));return c==="pending"&&be>=100?null:{percent:be,remainingLabel:c==="expired"?v("passCard.expired","\uB9CC\uB8CC\uB428"):Yl(me,v)}},[N,c,s,l,u,t?.durationDays,t?.code,v]),L=o.useRef(null),[M,$]=o.useState({}),[Z,q]=o.useState(null),H=!!(k||b||A),W=o.useRef(!1),R=o.useRef(void 0),[z,V]=o.useState(x);o.useLayoutEffect(()=>{V(x)},[x]),o.useLayoutEffect(()=>{const Y=L.current;Y&&(p!==void 0&&Y.style.setProperty("--pass-card-text",p),C!==void 0&&Y.style.setProperty("--pass-card-sub",C),y!==void 0&&Y.style.setProperty("--pass-card-copyright",y))},[p,C,y]),o.useLayoutEffect(()=>{const Y=L.current;if(!Y)return;const Q=gb(Y);if(!x){const me=Eb[B],De=c==="expired"?"_black":Q?.logoColor??"",be=kb(me,De);V(be)}},[d,x,B,c]);const F=Y=>{const Q=L.current;if(!Q)return null;const{left:me,top:De,width:be,height:te}=Q.getBoundingClientRect(),ue=(Y.clientX-me)/be-.5;return{rotateX:-((Y.clientY-De)/te-.5)*Kl,rotateY:ue*Kl}},S=(Y,Q)=>{const me=Q*-.7,De=Y*.7+10,be=20+(Math.abs(Y)+Math.abs(Q))*.4;return`${me}px ${De}px ${be}px rgba(0, 0, 0, 0.18)`},j=o.useCallback(Y=>{if(la())return;W.current=!0,clearTimeout(R.current),R.current=setTimeout(()=>{W.current=!1},200);const Q=F(Y);Q&&$({transform:`perspective(800px) rotateX(${Q.rotateX}deg) rotateY(${Q.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:S(Q.rotateX,Q.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),I=o.useCallback(Y=>{if(la())return;const Q=F(Y);if(!Q)return;const me=W.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";$({transform:`perspective(800px) rotateX(${Q.rotateX}deg) rotateY(${Q.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:S(Q.rotateX,Q.rotateY),transition:me})},[]),U=o.useCallback(()=>{clearTimeout(R.current),W.current=!1,$({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)"})},[]),re=o.useCallback(()=>q(null),[]),ne=o.useMemo(()=>{const Y=v("passCard.planSuffix","\uC774\uC6A9\uAD8C"),Q=E.replace("\uC774\uC6A9\uAD8C","").replace(Y==="\uC774\uC6A9\uAD8C"?"":Y,"").trim(),me=Q.match(/^(.*?)(일|년)$/);return me?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"h0 pass-card__plan-number",children:me[1]}),n.jsx("span",{className:"h5b pass-card__plan-unit",children:me[2]==="\uB144"?v("passCard.unitYear","\uB144"):v("passCard.unitDay","\uC77C")})]}):n.jsx("span",{className:"h0",children:Q})},[E,v]),le=o.useMemo(()=>{const Y=oa(N);if(!Y)return null;const Q=Y.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!Q)return n.jsx("span",{className:"h1",children:Y});const[,me,De,be]=Q;return n.jsxs(n.Fragment,{children:[me&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:me}),n.jsx("span",{className:"h1 pass-card__price-amount",children:De}),be.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:be.trim()})]})},[N]),K=o.useCallback(()=>{H&&q(Y=>{if(Y)return null;const Q=L.current?.getBoundingClientRect();if(!Q)return null;const me=50;return{left:Q.left,right:Q.right,width:Q.width,height:Q.height,x:Q.x,y:Q.y+me,top:Q.top+me,bottom:Q.bottom+me}})},[H]),oe=o.useCallback(Y=>{H&&(Y.key==="Enter"||Y.key===" ")&&(Y.preventDefault(),K())},[H,K]),ke=[{items:[...k?[{label:v("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{k(),q(null)},closeOnSelect:!0}]:[],...b?[{label:v("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{b(),q(null)},closeOnSelect:!0}]:[],...A?[{label:v("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{A(),q(null)},closeOnSelect:!0}]:[]]}];return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card-frame",children:n.jsxs("div",{ref:L,className:`pass-card pass-card--${c}${H?" pass-card--clickable":""}`,style:M,onMouseEnter:j,onMouseMove:I,onMouseLeave:U,onPointerUp:Y=>{Y.pointerType==="touch"&&U()},onPointerCancel:Y=>{Y.pointerType==="touch"&&U()},onClick:K,onKeyDown:H?oe:void 0,role:H?"button":void 0,tabIndex:H?0:void 0,"aria-label":e,"aria-haspopup":H?"menu":void 0,"aria-expanded":H?!!Z:void 0,children:[d??Sb(B,E,D),!m&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card__top",children:n.jsxs("div",{className:"pass-card__top-left",children:[n.jsx("img",{src:z??Nb[B],className:"pass-card__logo",alt:B==="manager"?v("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):v("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),n.jsxs("div",{className:"pass-card__plan",children:[n.jsx("div",{children:ne}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:D?v("passCard.labeledPlan",{label:D}):v("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),N?n.jsxs("div",{className:"pass-card__price-area",children:[P&&n.jsx("span",{className:"pass-card__discount body-3",children:P}),n.jsxs("div",{className:"pass-card__price",children:[O&&n.jsx("span",{className:"pass-card__price-original body-3",children:oa(O)}),le]})]}):G?n.jsxs("div",{className:"pass-card__usage",children:[n.jsx("span",{className:"h5b pass-card__usage-remaining",children:G.remainingLabel}),G.percent!=null&&n.jsxs("span",{className:"pass-card__usage-percent",children:[n.jsx("span",{className:"h1 pass-card__usage-value",children:G.percent}),n.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):n.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),Z&&n.jsx(cn,{anchorRect:Z,onClose:re,ariaLabel:v("tooltip.menu","\uBA54\uB274"),children:n.jsx(Ma,{columns:ke,onClose:re,size:"small"})})]})}const Tb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function jb(e={}){const t=`passcard-sound-line-grad-${o.useId()}`,a=At(Tb,kn,Nn);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("${La}")`}})]})}const Mb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Lb(e={}){const t=At(Mb,kn,Nn);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("${La}")`}})]})}function $b(e,t){if(e){if(t==="manager_pro")return n.jsx(Lb,{});if(t==="manager_standard")return n.jsx(jb,{});if(t==="manager_lite")return n.jsx(Gl,{})}}function Rb(e){const t=oa(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,i,s]=a;return n.jsxs(n.Fragment,{children:[r&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),i,s.trim()&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:s.trim()})]})}function Pb(e){const{t}=xe.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:i,onSelect:s,period:l="monthly",ownedCodes:u}=e||{},c=b=>!!b&&!!u?.includes(b),d=b=>b.onceOnly??/오픈\s*특가/.test(b.label??""),m=(i.tiers||[]).some(b=>d(b)&&c(b.code)),p=b=>{const A=b.prices?b.prices[l]:b.price;return A?(i.tiers||[]).some(v=>!!v.badge&&v.originals?.[l]===A):!1},C=i.colorToken?`var(--color-${i.colorToken})`:"var(--color-gray)",y=t("payment.plan.freePrice","\uBB34\uB8CC"),x=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),f=b=>b.prices?b.prices[l]:b.price,h=(i.tiers||[]).length>0&&(i.tiers||[]).every(b=>{const A=f(b);return A==="\uBB34\uB8CC"||A===y||A==="0\uC6D0"||typeof A=="string"&&/\d/.test(A)&&!/[1-9]/.test(A)}),_=(i.tiers||[]).length>0&&(i.tiers||[]).every(b=>{const A=f(b);return A==="\uBB38\uC758"||A===x}),g=i.group==="org",k=g?"manager":"speechear";return n.jsxs("div",{className:"payment-plan__card",style:{borderColor:C,"--plan-color":C},children:[i.cardBadge&&n.jsx("div",{className:"payment-plan__card-badge",children:n.jsx(kt,{label:i.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:C},children:i.quote||"\xA0"}),n.jsx("h3",{className:"payment-plan__title-heading h1",children:i.tier??i.title}),n.jsx("p",{className:"payment-plan__subtitle body-3",children:i.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:(i.recommendedFor||[]).map((b,A)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(at,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:C}}),b]},A))})]}),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:(i.features||[]).map((b,A)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(at,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:C}}),b]},A))})]}),n.jsx("div",{className:"payment-plan__card-pricing",children:h?null:_?n.jsx(pe,{htmlType:"button",className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>i.tiers?.[0]&&s?.({...i.tiers[0],productId:i.id,productTitle:i.title})}):n.jsx(n.Fragment,{children:n.jsx("div",{className:"payment-plan__pricing-list",children:(i.tiers||[]).map(b=>{const A=b.label||a,v=d(b),w=v||b.openPromo===!0,B=A.replace(/^오픈\s*특가\s*/,"")||a,E=b.prices?b.prices[l]:b.price,D=b.badge?w?`${r}
852
+ ${b.badge}`:b.badge:void 0;if(v&&c(b.code))return null;if(!b.badge&&!m)return p(b)?null:n.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${b.highlight?" payment-plan__pricing-row--highlight":""}`,children:[n.jsx("div",{className:"payment-plan__pricing-row-title",children:n.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:b.label})}),n.jsx("div",{className:"payment-plan__pricing-row-price",children:n.jsx("span",{className:"payment-plan__pricing-current h1",children:Rb(E)})})]},b.id);const N=i.tier??(g?i.title:void 0),O=n.jsx(Zl,{showPrice:!0,product:{type:k,code:b.code,name:B,label:N,price:E,originalPrice:b.originals?.[l]??void 0,discountLabel:D},bg:$b(g,i.id)}),P=()=>s?.({...b,productId:i.id,productTitle:i.title,preview:O});return n.jsx("div",{className:"payment-plan__pricing-card",onClick:P,onKeyDown:s?G=>{G.target===G.currentTarget&&(G.key==="Enter"||G.key===" ")&&(G.preventDefault(),P())}:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,children:O},b.id)})})})})]})}function Fb({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 Ao='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 Xl={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Ib(){const e=At(Xl,kn,Nn);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("${Ao}")`}})})}const Jl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Ob(e={}){const t=At(Jl,kn,Nn);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("${La}")`}})]})}function Ql({keys:e,anchor:t="top-right",scale:a,className:r=""}){const i=Array.isArray(e)?e:[e];return n.jsx("span",{className:we("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:i.map((s,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:s})]},`${s}-${l}`))})}const $a=(e,t,a)=>e+(t-e)*a;function Hb({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:i,selectedId:s=null,answerId:l=null,showFeedback:u=!1,pulseSelected:c=!1,pulseSelectedDuration:d,pulseScale:m,clickable:p=!1,onSelectSpeaker:C,buttonSize:y=40,showIcon:x=!0,onCenterClick:f,centerLabel:h,centerDisabled:_=!1,centerAttention:g=!1,shortcutAnchor:k="top-right",shortcutScale:b,scaleShortcut:A=!1}){const{t:v}=xe.useTranslation(),w=Math.max(0,Math.min(1,a)),B=t/2,E=110/300,D=.18,N=Y=>t*(E+(Y-1)*D),O=Y=>{const Q=N(Y.row??1),me=Y.angleDeg*Math.PI/180;return{x:B+Q*Math.cos(me),y:B+Q*Math.sin(me)}},P=Math.max(...e.map(Y=>Y.row??1),1),G=t*.08,L=t*.1,M=t*.24,$=t-2*G,Z=t-L-M,q=t-M/2,H=o.useMemo(()=>[...new Set(e.map(Y=>Y.deg))].sort((Y,Q)=>Y-Q),[e]),W=H.length,R=Math.max(68,W>1?$/(W-1):0),z=o.useMemo(()=>new Map(H.map((Y,Q)=>[Y,Q])),[H]),V=Y=>{const Q=z.get(Y.deg)??0,me=B+(Q-(W-1)/2)*R,De=P>1?Math.min(68,Z/(P-1)):0,be=De*(P-1),te=L+(Z-be)/2,ue=P===1?L+Z*.4:te+(P-(Y.row??1))*De;return{x:me,y:ue}},F=Y=>{const Q=O(Y),me=V(Y);return{x:$a(Q.x,me.x,w),y:$a(Q.y,me.y,w)}},S={x:B,y:$a(B,q,w)},j=Math.round(y*1.2),I=Math.round(Math.max(16,Math.min(80,y*.7))),U=[],re=new Map;for(const Y of e){const Q=Y.row??1;re.has(Q)||re.set(Q,[]),re.get(Q).push(Y)}for(const[Y,Q]of re.entries()){if(Q.length<2)continue;const me=[...Q].sort((qe,mt)=>qe.deg-mt.deg),De=me.map(qe=>F(qe)),be=me.map(qe=>qe.deg),te=be[be.length-1]-be[0],ue=te/(be.length-1),Ce=360-te,ge=me.length>=3&&ue>0&&Ce<=ue*1.5,fe=Math.round(N(Y)*1e3)/1e3,$e=(qe,mt,ct,rt)=>{const Ct=(mt.angleDeg-qe.angleDeg+540)%360-180;if(Ct===0)return`L ${rt.x} ${rt.y}`;if(w===0)return`A ${fe} ${fe} 0 0 ${Ct>0?1:0} ${rt.x} ${rt.y}`;const Ae=(qe.angleDeg+Ct/2)*Math.PI/180,We={x:B+fe*Math.cos(Ae),y:B+fe*Math.sin(Ae)},_e={x:(ct.x+rt.x)/2,y:(ct.y+rt.y)/2},Ue={x:$a(We.x,_e.x,w),y:$a(We.y,_e.y,w)},Be={x:2*Ue.x-_e.x,y:2*Ue.y-_e.y};return`Q ${Be.x} ${Be.y} ${rt.x} ${rt.y}`},ze=ge?[...me,me[0]]:me,Te=ge?[...De,De[0]]:De;let Fe=`M ${Te[0].x} ${Te[0].y}`;for(let qe=1;qe<Te.length;qe++)Fe+=" "+$e(ze[qe-1],ze[qe],Te[qe-1],Te[qe]);U.push({key:`arc-${Y}`,d:Fe})}const ne=o.useMemo(()=>new Set(i??[]),[i]),le=Y=>({idle:"",active:v("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:v("soundCompass.state.played","\uB4E4\uC74C"),correct:v("soundCompass.state.correct","\uC815\uB2F5"),wrong:v("soundCompass.state.wrong","\uC624\uB2F5")})[Y],K=Y=>{if(r===Y.id)return"active";if(u){if(Y.id===l)return"correct";if(Y.id===s&&s!==l)return"wrong"}return ne.has(Y.id)?"played":"idle"},oe=Y=>r===Y.id?"loop":u?Y.id===l?"loop":null:c&&Y.id===s?"once":null,ke=(Y,Q)=>{switch(Y){case"played":case"correct":return n.jsx(Es,{size:Q});case"wrong":return n.jsx(Fs,{size:Q});default:return n.jsx(Ps,{size:Q})}};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:[w===0&&e.map(Y=>{const{x:Q,y:me}=F(Y);return n.jsx("line",{x1:S.x,y1:S.y,x2:Q,y2:me,stroke:"#dde3ec",strokeWidth:"1"},Y.id)}),U.map(Y=>n.jsx("path",{d:Y.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},Y.key))]}),g&&!_&&n.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:j,height:j,left:S.x-j/2,top:S.y-j/2}}),f?n.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${_?" sound-compass__center--disabled":""}`,style:{width:j,height:j,left:S.x,top:S.y},"aria-label":h,"aria-disabled":_||void 0,tabIndex:_?-1:0,onClick:_?void 0:f,children:n.jsx(Lr,{size:I,color:"currentColor",strokeWidth:1.5})}):n.jsx("div",{className:"sound-compass__center",style:{width:j,height:j,left:S.x,top:S.y},children:n.jsx(Lr,{size:I,color:"currentColor",strokeWidth:1.5})}),e.map((Y,Q)=>{const{x:me,y:De}=F(Y),be=K(Y),te=oe(Y),ue={...b!==void 0||A?{"--shortcut-badge-scale":String(b??Math.max(.75,Math.min(3,y/56)))}:null,pointerEvents:p?"auto":"none",cursor:p?"pointer":"default",zIndex:be!=="idle"?10:1},Ce=y,ge=Math.round(Math.max(10,Math.min(56,Ce*.38))),fe=Math.round(Math.max(7,Math.min(18,Ce*.2))),$e=Math.round(Math.max(10,Math.min(56,Ce*.4))),ze=x==="answered"&&(be==="played"||be==="correct"||be==="wrong"),Te=x===!0||ze,Fe=!ze;return n.jsxs("div",{className:"sound-compass__speaker-pos",style:{...ue,left:me-Ce/2,top:De-Ce/2},children:[te&&n.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${be}`+(te==="once"?" sound-compass__pulse--once":""),style:{width:Ce,height:Ce,...te==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...m!==void 0?{"--sc-pulse-scale":String(m)}:null}}),n.jsxs("button",{type:"button",tabIndex:p?0:-1,"aria-disabled":p?void 0:!0,onClick:p?()=>C?.(Y.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${be}`,style:{width:Ce,height:Ce},"aria-label":le(be)?`${Y.label}, ${le(be)}`:Y.label,"aria-pressed":s!=null?Y.id===s:void 0,children:[Te&&ke(be,ge),Fe&&n.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:x===!0?fe:$e},children:Q+1})]}),Y.shortcut&&n.jsx(Ql,{keys:Y.shortcut,anchor:k,className:"sound-compass__speaker-shortcut"})]},Y.id)})]})})}function Vb({children:e,position:t="top-left",size:a=24,className:r=""}){return n.jsx("span",{className:we("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}function zb({orientation:e="horizontal",label:t,className:a=""}){const r=we("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 eu({checked:e,onChange:t,name:a,value:r,disabled:i=!1,label:s,className:l=""}){const u=o.useId();return n.jsxs("label",{className:`radio${i?" radio--disabled":""} ${l}`.trim(),htmlFor:u,children:[n.jsx("input",{id:u,type:"radio",name:a,value:r,checked:e,disabled:i,onChange:c=>t?.(c.target.checked)}),n.jsx("span",{className:"radio__dot"}),s&&n.jsx("span",{className:"radio__label body-2",children:s})]})}function Wb({options:e,value:t,onChange:a,name:r,disabled:i=!1,direction:s="vertical",className:l="",ariaLabel:u}){const c=o.useId(),d=r??`radio-group-${c}`;return n.jsx("div",{className:`radio-group radio-group--${s} ${l}`.trim(),role:"radiogroup","aria-label":u,children:e.map(m=>n.jsx(eu,{name:d,value:m.value,checked:t===m.value,disabled:i||m.disabled,label:m.label,onChange:p=>{p&&a?.(m.value)}},m.value))})}const qb={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Ub({tone:e="info",title:t,message:a,children:r,dismissible:i=!1,onDismiss:s,live:l,className:u=""}){const{t:c}=xe.useTranslation(),[d,m]=o.useState(!1),p=o.useRef(null),C=o.useCallback(()=>{const g=p.current;g&&g.contains(document.activeElement)&&nr(g),m(!0),s?.()},[s]);if(d)return null;const y=we("alert",`alert--${e}`,u),x=l??(e==="danger"||e==="warning"?"assertive":"polite"),f=x==="assertive"?"alert":x==="polite"?"status":void 0,h=!!t,_=!!(a||r);return n.jsxs("div",{ref:p,className:y,role:f,children:[n.jsxs("div",{className:"alert__body",children:[n.jsxs("div",{className:"alert__header",children:[n.jsx(at,{icon:qb[e],size:20,className:"alert__icon"}),h&&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})]}),i&&n.jsx("button",{type:"button",className:"alert__dismiss",onClick:C,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const Gb={ready:"search",guide:"info",error:"circle-alert"};function Kb(e,t){const a=t.filter(Boolean);if(a.length===0)return e;const r=[];let i=0,s=0;for(const l of a){const u=e.indexOf(l,i);u<0||(u>i&&r.push(e.slice(i,u)),r.push(n.jsx("strong",{className:"search-summary__em body-2",children:l},s++)),i=u+l.length)}return i<e.length&&r.push(e.slice(i)),r}function Yb({status:e="guide",label:t,children:a,emphasis:r,icon:i,className:s=""}){const l=i===!1?null:i??Gb[e],u=we("search-summary",`search-summary--${e}`,s),c=t??a,d=typeof c=="string"&&r&&r.length>0?Kb(c,r):c;return n.jsxs("div",{className:u,role:"status","aria-live":"polite",children:[l!=null&&n.jsx(at,{icon:l,size:18,className:"search-summary__icon"}),n.jsx("span",{className:"search-summary__text body-2",children:d})]})}function Ra({title:e,items:t}){const{t:a}=xe.useTranslation(),{anchorRect:r,openAt:i,close:s}=Sa(),l=o.useRef(null),u=ho(!!r,(c,d)=>{c&&d?i(l.current?.querySelector("button")??d):s()},l);return n.jsxs("span",{ref:l,style:{display:"contents"},children:[n.jsx(pe,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:c=>{ia(c)||i(c.currentTarget)},onPointerLeave:c=>{ia(c)||s()},onClick:c=>{u.touchPress(c.currentTarget)},onFocus:c=>{la()||i(c.currentTarget)},onBlur:s}),r&&n.jsx(Kn,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:s})]})}function Zb({items:e=[],value:t,onChange:a,className:r="",size:i=40}){const s=o.useId(),{t:l}=xe.useTranslation(),u=o.useRef(null),c=e.find(f=>!f.disabled)?.key,d=e.some(f=>f.key===t)?t:c??e[0]?.key,m=e.find(f=>f.key===d&&!f.disabled)?.key??c,p=()=>Array.from(u.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),C=(f,h=p())=>{if(h.length===0)return;const _=(f%h.length+h.length)%h.length;h[_]?.focus(),h[_]?.click()},y=f=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(f.key))return;f.preventDefault();const h=p(),_=h.indexOf(f.currentTarget);f.key==="ArrowRight"||f.key==="ArrowDown"?C(_+1,h):f.key==="ArrowLeft"||f.key==="ArrowUp"?C(_-1,h):f.key==="Home"?C(0,h):C(h.length-1,h)},x=e.find(f=>f.key===d);return n.jsxs("div",{className:`tabs ${r}`.trim(),children:[n.jsx("div",{ref:u,className:`tabs__list tabs__list--${i}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(f=>n.jsx("button",{id:`tabs__tab-${s}-${f.key}`,type:"button",role:"tab","aria-selected":f.key===d,"aria-controls":`tabs__panel-${s}-${f.key}`,disabled:f.disabled,tabIndex:f.key===m?0:-1,className:`tabs__tab body-2${f.key===d?" tabs__tab--active":""}`,onClick:()=>{f.key!==t&&a?.(f.key)},onKeyDown:y,children:f.label},f.key))}),x&&n.jsx("div",{id:`tabs__panel-${s}-${x.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${s}-${x.key}`,tabIndex:0,className:"tabs__panel",children:x.panel},x.key)]})}const Xb={xs:12,sm:16,md:20,lg:28,xl:36};function Jb(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 Qb({src:e,name:t,size:a="md",shape:r="circle",className:i=""}){const{t:s}=xe.useTranslation(),[l,u]=o.useState(null),c=!!e&&l===e,d=t?Jb(t):"",m=!!e&&!c,p=!m&&!!d,C=t||s("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return n.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${i}`.trim(),role:"img","aria-label":C,children:[m&&n.jsx("img",{className:"avatar__image",src:e,alt:C,onError:()=>u(e??null)}),!m&&p&&n.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!m&&!p&&n.jsx(at,{icon:"user-round",size:Xb[a],className:"avatar__icon"})]})}function ey(e,t){if(!t)return!0;const a=t.split(",").map(s=>s.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),i=e.type.toLowerCase();return a.some(s=>{const l=s.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?i.startsWith(l.slice(0,-1)):i===l})}function ty({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:i=!0,files:s,onRemove:l,className:u=""}){const{t:c}=xe.useTranslation(),d=o.useRef(null),[m,p]=o.useState(!1),[C,y]=o.useState([]),x=s??C,f=v=>{if(!v||v.length===0)return;const w=Array.from(v).filter(E=>ey(E,t));if(w.length===0)return;const B=a?w:w.slice(0,1);if(s===void 0){const E=a?[...x,...B]:B;y(E),e?.(E)}else e?.(B)},h=v=>{v.preventDefault(),!r&&p(!0)},_=v=>{v.preventDefault(),p(!1)},g=v=>{v.preventDefault(),p(!1),!r&&f(v.dataTransfer.files)},k=v=>{const w=v.target;try{f(w.files)}finally{w.value=""}},b=()=>{r||d.current?.click()},A=v=>{if(!r&&(l?.(v),s===void 0)){const w=x.filter((B,E)=>E!==v);y(w),l||e?.(w)}};return n.jsxs("div",{className:`file-upload ${u}`.trim(),children:[n.jsxs("div",{className:we("file-upload__dropzone",m&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:b,onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),b())},onDragOver:h,onDragLeave:_,onDrop:g,children:[n.jsx(at,{icon:"upload",size:24,className:"file-upload__icon"}),n.jsx("span",{className:"file-upload__prompt body-2",children:c("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),n.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:v=>{v.stopPropagation(),b()},children:c("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),n.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:k,tabIndex:-1})]}),i&&x.length>0&&n.jsx("ul",{className:"file-upload__list",children:x.map((v,w)=>n.jsxs("li",{className:"file-upload__list-item body-3",children:[n.jsx("span",{className:"file-upload__file-name body-3",children:v.name}),n.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":c("fileUpload.removeAriaLabel",{name:v.name}),disabled:r,onClick:()=>A(w),children:n.jsx(at,{icon:"x",size:14})})]},`${v.name}-${w}`))})]})}function ny({items:e,className:t=""}){const{t:a}=xe.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,i)=>{const s=i===e.length-1;return n.jsxs("li",{className:"breadcrumb__item",children:[s?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}),!s&&n.jsx(at,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},i)})})})}const ay={small:14,medium:20,large:28};function ry({value:e,onChange:t,max:a=5,readOnly:r=!1,size:i="medium",ariaLabel:s,className:l=""}){const{t:u}=xe.useTranslation(),c=r||!t,[d,m]=o.useState(null),p=c?e:Number.isFinite(e)?Math.round(e):0,C=d??p,y=ay[i],x=v=>{v!==e&&t?.(v)},f=v=>{c||x(v)},h=v=>{c||la()||m(v)},_=o.useRef(null),g=v=>{const w=Math.min(a,Math.max(1,v));x(w),Array.from(_.current?.querySelectorAll("[data-star]")??[]).find(B=>B.dataset.star===String(w))?.focus()},k=v=>{if(!c){switch(v.key){case"ArrowRight":case"ArrowUp":g((p||0)+1);break;case"ArrowLeft":case"ArrowDown":g((p||1)-1);break;case"Home":g(1);break;case"End":g(a);break;default:return}v.preventDefault()}},b=p>=1&&p<=a?Math.round(p):1,A=()=>{c||m(null)};return n.jsx("div",{className:`rating rating--${i}${c?" rating--readOnly":""} ${l}`.trim(),ref:_,onKeyDown:k,role:c?"img":"radiogroup","aria-label":c?u("rating.valueLabel",{value:e,max:a}):s??u("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:A,onPointerUp:v=>{v.pointerType==="touch"&&A()},onPointerCancel:v=>{v.pointerType==="touch"&&A()},children:Array.from({length:a},(v,w)=>{const B=w+1,E=Math.max(0,Math.min(1,C-w)),D=E>0&&E<1,N=n.jsxs("span",{className:"rating__star-wrap",children:[n.jsx(at,{icon:"star",size:y,className:"rating__star rating__star--empty"}),E>0&&n.jsx("span",{className:`rating__star-fill${D?" rating__star-fill--half":""}`,style:D?{width:`${E*100}%`}:void 0,children:n.jsx(at,{icon:"star",size:y,className:"rating__star rating__star--filled"})})]});return c?n.jsx("span",{className:"rating__item","aria-hidden":"true",children:N},B):n.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":p===B,"aria-label":u("rating.starLabel",{n:B}),"data-star":B,tabIndex:B===b?0:-1,onClick:()=>f(B),onMouseEnter:()=>h(B),children:N},B)})})}const oy=20,sy=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function iy({value:e,onChange:t,palette:a=sy,size:r=40,className:i="",ariaLabel:s}){const{t:l}=xe.useTranslation();return n.jsx("div",{className:`color-picker ${i}`.trim(),role:"group","aria-label":s,children:a.map(u=>{const c=e?.toLowerCase()===u.toLowerCase();return n.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:u},onClick:()=>t(u),"aria-pressed":c,"aria-label":c?`${u} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:u,children:c&&n.jsx(at,{icon:"check",size:oy,className:"color-picker__check"})},u)})})}function tu({icon:e,label:t,tooltip:a,wrapperStyle:r,color:i,bgColor:s,useHover:l=!0,iconSize:u="medium"}){const{t:c}=xe.useTranslation(),d=u==="small",m=we("category-icon",d?"category-icon--small":""),p=d?16:20,C=o.useRef(null),[y,x]=o.useState(!1),f=o.useMemo(()=>{const B=r&&typeof r=="object"?{...r}:{};return!i&&!s?B:{...B,...i?{color:i,"--t-item-fg":i}:{},...s?{"--t-item-bg":s}:{}}},[r,i,s]),h=a||t,_=l&&!!h,[g,k]=o.useState(null);o.useLayoutEffect(()=>{y&&k(C.current?.getBoundingClientRect()??null)},[y]),o.useEffect(()=>{if(!l&&y)try{x(!1)}catch{}},[l,y]),o.useEffect(()=>{if(!y)return;const B=E=>{const D=C.current;if(!D)return;const N=E.target;N&&!D.contains(N)&&x(!1)};return document.addEventListener("pointerdown",B,!0),()=>document.removeEventListener("pointerdown",B,!0)},[y]);const b=o.useCallback(()=>{l&&x(!0)},[l]),A=o.useCallback(()=>{l&&x(!1)},[l]),v=o.useCallback(()=>x(!1),[]),w=o.useCallback(B=>{if(B.key==="Escape"){x(!1);return}(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),x(E=>!E))},[]);return n.jsxs("span",{ref:C,className:we("category-icon__wrap",_&&"category-icon__wrap--interactive"),onPointerEnter:b,onPointerLeave:A,onFocus:b,onBlur:A,onKeyDown:w,role:"button",tabIndex:0,"aria-label":typeof h=="string"?c("common.descriptionFor",{name:h,defaultValue:`${h} \uC124\uBA85`}):void 0,"aria-haspopup":!!h,"aria-expanded":y,"data-tooltip-ignore":!0,children:[n.jsx(at,{icon:e,label:t,className:m,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:f,size:p}),y&&h&&n.jsx(Bn,{anchorRect:g,text:typeof h=="string"?h:void 0,offset:8,onClose:v,className:"category-icon__tooltip",ariaLabel:typeof h=="string"?h:void 0})]})}let Fn=null;function ir(e){if(Fn&&Fn!==e)try{Fn()}catch{}return Fn=e,()=>{Fn===e&&(Fn=null)}}function lr(e){if(Fn===e){Fn=null;try{e()}catch{}}}function ur(e,t){let a=()=>{};const r=new Promise(u=>{a=u});if(typeof e!="string"||e.trim()===""){St("one-shot-empty-url","[core] playOneShot \uC5D0 \uBE48 \uC8FC\uC18C\uAC00 \uC654\uB2E4 \u2014 \uC548 \uD2BC\uB2E4. \uBD80\uB974\uB294 \uCABD\uC774 \uC8FC\uC18C\uB97C \uC5BB\uAE30 \uC804\uC5D0 \uBD88\uB800\uB2E4.",new Error("playOneShot(empty)").stack),a(!1);try{t?.(!1)}catch{}return{el:{},stop:()=>{},done:r}}let i=!1;const s=u=>{if(!i){i=!0;try{t?.(u)}catch{}a(u)}};let l;try{l=new Audio(e)}catch{return s(!1),{el:{},stop:()=>{},done:r}}l.onended=()=>s(!0),l.onerror=()=>s(!1);try{l.play().catch(()=>s(!1))}catch{s(!1)}return{el:l,stop:()=>{try{l.pause()}catch{}s(!1)},done:r}}function ly(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(u=>u?.contextCode||u?.context_code).filter(Boolean).map(String);if(t==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}if(t==="SHORT_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"SHORT_S"}}if(t==="LONG_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LONG"}}if(t==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}const i=a.sentences||a.items||[],s=r(Array.isArray(i)?i:[]);return s.length===0&&(a.contextCode||a.context_code)&&s.push(String(a.contextCode||a.context_code)),{previewCodes:s,previewBucket:null}}function uy(e,t){const[a,r]=o.useState(!1),[i,s]=o.useState(-1),[l,u]=o.useState({key:"",urls:[]}),c=o.useRef(null),d=o.useRef(!1),m=o.useRef(null),p=o.useRef(null),[C,y]=o.useState(!1),x=o.useRef([]),{previewCodes:f,previewBucket:h}=ly(e,t),_=`${f.join(",")}|${h??""}`,g=o.useMemo(()=>l.key===_?l.urls:[],[l,_]);o.useEffect(()=>{if(!f.length)return;let b=!1;return(async()=>{const A=[],v=[];for(const w of f)try{const B=pi(w,h);if(!B){A.push("");continue}let E=null;try{E=await mi(B)}catch{}if(!E)try{const D=await hi(B);D&&(E=URL.createObjectURL(D),v.push(E))}catch{}A.push(E??"")}catch{A.push("")}b?v.forEach(w=>{try{URL.revokeObjectURL(w)}catch{}}):(x.current.forEach(w=>{try{URL.revokeObjectURL(w)}catch{}}),x.current=v,u({key:_,urls:A}))})(),()=>{b=!0}},[f.join(","),h]),o.useEffect(()=>()=>{x.current.forEach(b=>{try{URL.revokeObjectURL(b)}catch{}}),x.current=[]},[]);const k=o.useCallback(async b=>{if(b.stopPropagation(),b.preventDefault(),d.current){m.current&&lr(m.current),d.current=!1;try{c.current?.pause()}catch{}r(!1),s(-1);return}if(!g.filter(Boolean).length)return;let A=null;const v=()=>{d.current=!1,A?.stop()};m.current=v;const w=ir(v);d.current=!0,r(!0);for(let B=0;B<g.length&&d.current;B++){const E=g[B];if(E&&(s(B),A=ur(E),c.current=A.el,!await A.done))break}w(),m.current===v&&(m.current=null,d.current=!1,r(!1),s(-1))},[g]);return o.useEffect(()=>()=>{m.current&&lr(m.current),d.current=!1;try{c.current?.pause()}catch{}c.current=null},[]),{playing:a,playingIndex:i,previewUrls:g,previewHover:C,setPreviewHover:y,previewBtnRef:p,handlePreview:k}}const cy=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 i=r;return i.sentence||i.text||i.context||i.question||i.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function ko(e){const{index:t,type:a,trainingData:r,ariaLabel:i,depth:s,renderPopup:l,completed:u,completedIds:c,selectedIds:d,tooltipText:m,useDescriptionTooltip:p=!1,onRemove:C,hideCheckBadge:y=!1,showTypeLabel:x=!1,onComplete:f,onSelect:h,onMore:_,countLabelOverride:g,size:k="square"}=e||{},{t:b}=xe.useTranslation(),[A,v]=o.useState(!1),w=o.useRef(null),[B,E]=o.useState(!1);o.useEffect(()=>{w.current?.matches(":hover")&&E(!0)},[]);const{playing:D,playingIndex:N,previewUrls:O,previewHover:P,setPreviewHover:G,previewBtnRef:L,handlePreview:M}=uy(r,a?.key),$=o.useCallback(()=>{h?h():v(!0)},[h]),Z=o.useCallback(()=>v(!1),[]),q=o.useCallback(()=>E(!0),[]),H=o.useCallback(()=>E(!1),[]),W=o.useCallback(()=>G(!0),[G]),R=o.useCallback(()=>G(!1),[G]),[z,V]=o.useState(null);o.useLayoutEffect(()=>{P&&V(L.current?.getBoundingClientRect()??null)},[P,L]);const[F,S]=o.useState(null);o.useLayoutEffect(()=>{B&&!A&&p&&S(w.current?.getBoundingClientRect()??null)},[B,A,p]);const j=o.useCallback(_e=>{_e.target===_e.currentTarget&&(_e.key==="Enter"||_e.key===" ")&&(_e.preventDefault(),$())},[$]),I=r||null,U=o.useMemo(()=>{if(!p)return null;const _e=m?(Array.isArray(m)?m:[m]).filter(Boolean):null,Ue=_e&&_e.length>0?_e:cy(I);return Ue&&Ue.length>0?Ue:null},[p,m,I]),re=o.useCallback(_e=>{_e.stopPropagation(),C?.()},[C]),ne=o.useCallback(_e=>_e.stopPropagation(),[]),le=o.useCallback(_e=>{typeof f=="function"&&f(_e)},[f]),K=u||(c&&r?.id!=null?c.has(String(r.id)):!1),oe=!K&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);Bl("speechear.popup.close",Z);const ke=$i(),Y=`${a?.label||""} ${t+1}`,Q=I?.title||I?.name||Y;let me=a?.icon,De,be="",te="";try{const _e=I?.category_0||I?.category_main_code||I?.category_main,Ue=I?.category_1||I?.category_sub_code||I?.category_sub,Be=ke.find(je=>je.key===_e);Be?.icon&&(me=Be.icon),!De&&Be?.color&&(De={"--t-item-fg":Be.color}),!De&&I?.iconColor&&(De={"--t-item-fg":I.iconColor}),be=Be?b(`topic.${Be.key}`,{defaultValue:Be.label||""}):"";try{const je=Be?.subs?.find(Se=>Se.key===Ue);te=je?b(`topic.sub.${je.key}`,{defaultValue:je.label||""}):""}catch{}}catch{}const ue=te?`${be} / ${te}`:be||a?.label||Q,Ce=_e=>b("training.countQuestions",{n:_e,count:_e}),ge=_e=>b("training.countSentences",{n:_e,count:_e});let fe="";try{if(I)if(a?.key==="LISTEN_IN_NOISE"){let _e=0;Array.isArray(I.items)&&I.items.length>0?_e=I.items.length:Array.isArray(I.sentences)&&I.sentences.length>0?_e=I.sentences.length:I.sentences&&(_e=1),fe=ge(_e)}else if(a?.key==="SHORT_STORY"){let _e=1;Array.isArray(r?.items)?_e=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?_e=r.raw.items.length:Array.isArray(I?.questions)?_e=I.questions.length:Array.isArray(I?.sentences)&&(_e=I.sentences.length),fe=Ce(_e)}else if(a?.key==="LONG_STORY"){let _e=1;if(Array.isArray(I.items)&&I.items.length>0){const Ue=I.items.reduce((Be,je)=>{const Se=je.questionItems;return Array.isArray(Se)?Be+Se.length:Array.isArray(je.questions)?Be+je.questions.length:Be},0);_e=Ue>0?Ue:I.items.length}else Array.isArray(I.questions)&&I.questions.length>0?_e=I.questions.length:Array.isArray(I.sentences)&&I.sentences.length>0&&(_e=I.sentences.length);fe=Ce(_e)}else if(a?.key==="ORDERING_SENTENCE"){let _e=1;Array.isArray(I.items)&&I.items.length>0?_e=I.items.length:Array.isArray(I.sentences)&&I.sentences.length>0&&(_e=I.sentences.length),fe=ge(_e)}else Array.isArray(I.items)&&(fe=I.items.length>0?Ce(I.items.length):"")}catch{}const $e=k==="row",ze=k==="list"||$e,Te=k==="compact",Fe=k==="small",qe=Fe&&a?.key?Nf().find(_e=>_e.key===a.key):void 0,mt=qe?Ri[qe.key]:void 0,ct=qe?mt?b(`trainingType.${mt}.title`,{defaultValue:qe.label}):qe.label??"":"",rt=x&&a?.label&&a.label!==String(Q)?String(a.label):Fe&&ct&&ct!==String(Q)?ct:"",Ct=!!rt,Ae=g!==void 0?g:fe,We=[rt,typeof Q=="string"?Q:"",Ae].map(_e=>String(_e??"").trim()).filter(Boolean).join(" ");return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:w,className:`training-block-button${ze?" training-block-button--list":""}${$e?" training-block-button--row":""}${Te?" training-block-button--compact":""}${Fe?" training-block-button--small":""}${K?" training-block-button--completed":""}${oe?" training-block-button--selected":""}${Ct&&!Fe?" training-block-button--withType":""}${Fe&&!Ct?" training-block-button--no-type-label":""}`,onClick:$,onPointerEnter:q,onPointerLeave:H,role:"button",tabIndex:0,onKeyDown:j,"aria-label":typeof i=="string"?i:We||void 0,title:!p&&m&&(Array.isArray(m)?m.filter(Boolean).join(`
853
+ `):m)||void 0,children:[n.jsxs("div",{className:"training-block-button__left",children:[x&&a?.label&&a.label!==String(Q)&&n.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Fe&&ct&&ct!==String(Q)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:ct}),n.jsx(tu,{icon:me,label:Q,tooltip:ue,wrapperStyle:De,iconSize:Fe||Te?"small":"medium"}),!y&&(K||oe)&&!(C&&B)&&n.jsx(kt,{className:C?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":K?b("training.completed","\uD6C8\uB828 \uC644\uB8CC"):b("training.selected","\uC120\uD0DD\uB428")}),C&&n.jsx(kt,{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:re}),n.jsx("div",{className:`training-block-button__title ${Te?"body-3":Fe?"body-3b":"h3"}`,children:String(Q)}),n.jsxs("div",{className:"training-block-button__description",children:[Ae?n.jsx("div",{className:`training-block-button__count ${Fe?"caption-2":"caption-1"}`,children:Ae}):null,n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(at,{icon:"chevron-right",label:b("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Fe?12:20})})]}),(ze&&!$e||Fe)&&O.length>0&&n.jsx("div",{ref:L,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:ne,onPointerEnter:W,onPointerLeave:R,children:n.jsx(pe,{htmlType:"button",size:Fe?28:32,type:"dot",icon:D?"pause":"play",variant:Fe?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:String(Q).trim()?D?b("training.stopFor",{name:Q,defaultValue:`${Q} \uC815\uC9C0`}):b("training.previewFor",{name:Q,defaultValue:`${Q} \uBBF8\uB9AC \uB4E3\uAE30`}):D?b("training.stop","\uC815\uC9C0"):b("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:M})})]}),_&&n.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:_e=>{_e.stopPropagation(),_(_e)},children:n.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:String(Q).trim()?b("common.moreFor",{name:Q}):b("common.more","\uB354\uBCF4\uAE30")})})]}),P&&n.jsx(Bn,{anchorRect:z,text:D?b("training.stop","\uC815\uC9C0"):b("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:R}),B&&!A&&p&&(U?n.jsx(Kn,{anchorRect:F,items:U,activeIndex:N,onClose:H}):I?.subTitle?n.jsx(Bn,{anchorRect:F,text:I.subTitle,offset:8,onClose:H}):null),A&&l&&l({trainingData:I,typeKey:a?.key??"",onClose:Z,onComplete:le,popupTitle:String(Q),popupSubTitle:a?.subTitle,depth:s!=null?String(s):void 0,popupIcon:me,popupIconTooltip:String(ue),popupWrapperStyle:De})]})}const nu=200;function dy(e){return e.itemId?(jf()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function au({plan:e,groups:t,anchorRect:a,offset:r=12,onClose:i}){const{t:s}=xe.useTranslation(),l=o.useMemo(()=>t?t.map((c,d)=>({key:c.key??c.type?.key??String(d),label:c.label,type:c.type,data:c.items??[]})).filter(c=>c.data.length>0):Lf(s).map(c=>{const d=(e?.items??[]).filter(m=>m.trainingType===c.key);return{key:c.key,label:c.label,type:c,pickedCount:d.length,data:d.map(dy).filter(m=>m!=null)}}).filter(c=>c.pickedCount>0),[t,e?.items,s]);if(l.length===0)return null;const u=n.jsx("div",{className:"tooltip-training__box",children:n.jsx("div",{className:"tooltip-training__groups",children:l.flatMap(({key:c,label:d,type:m,data:p},C)=>[C>0?n.jsx("div",{className:"tooltip-training__divider"},`div-${c}`):null,n.jsxs("div",{className:"tooltip-training__section",children:[n.jsx("div",{className:"tooltip-training__section-header",children:n.jsx("span",{className:"tooltip-training__type-label body-3b",children:d})}),n.jsx("div",{className:"tooltip-training__items",children:p.map((y,x)=>n.jsx(ko,{index:x,type:m,trainingData:y,size:"compact",hideCheckBadge:!0},String(y.id??x)))})]},c)])})});return a?n.jsx(cn,{anchorRect:a,offset:r,onClose:i,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:s("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:u}):u}const py=200;function my({icon:e,count:t,title:a,plan:r,tooltip:i=!0,hoverAccent:s=!1,className:l="",onClick:u,onMouseEnter:c,onMouseLeave:d}){const m=!!u||!!c||i&&!!r,p=we("count-tile",m&&"count-tile--interactive",m&&s&&"count-tile--accent",u&&"count-tile--clickable",l),C=o.useRef(null),[y,x]=o.useState(null),f=o.useRef(null),h=o.useRef(null),_=!!(y&&r&&i),g=o.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=null),h.current&&(clearTimeout(h.current),h.current=null)},[]),k=o.useCallback(()=>{g(),x(null)},[g]),b=o.useCallback(()=>{!i||!r||(g(),f.current=setTimeout(()=>{f.current=null,x(C.current?.getBoundingClientRect()??null)},nu))},[i,r,g]),A=o.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=null),!h.current&&(h.current=setTimeout(()=>{h.current=null,x(null)},py))},[]);return o.useEffect(()=>()=>{g()},[g]),o.useEffect(()=>{(!i||!r)&&k()},[i,r,k]),o.useEffect(()=>{if(!_)return;const v=B=>B instanceof Element&&(C.current?.contains(B)||!!B.closest(".tooltip-training")),w=B=>{v(B.target)?g():A()};return document.addEventListener("pointerover",w,!0),()=>document.removeEventListener("pointerover",w,!0)},[_,g,A]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:C,className:p,onClick:u?v=>{k(),u(v)}:void 0,onKeyDown:u?v=>{v.key!=="Enter"&&v.key!==" "||(v.preventDefault(),v.currentTarget.click())}:void 0,onPointerEnter:v=>{v.pointerType==="touch"||v.pointerType==="pen"?k():b()},onMouseEnter:c,onMouseLeave:v=>{A(),d?.(v)},role:u?"button":"img",tabIndex:u?0:void 0,"aria-label":`${a} ${t}`,children:[n.jsx(at,{icon:e,size:20,className:"count-tile__icon"}),n.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]}),y&&r&&n.jsx(au,{plan:r,anchorRect:y,onClose:k})]})}let Pa=0,ru="",No="",Fa=0;function ou(){return su(!1)}function hy(){return su(!0)}function su(e){const t=typeof document<"u";Pa===0&&t&&(ru=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Fa===0&&(No=document.body.style.paddingRight),Fa++,document.body.style.paddingRight="0px"),Pa++;let a=!1;return()=>{a||(a=!0,Pa=Math.max(0,Pa-1),e&&t&&(Fa=Math.max(0,Fa-1),Fa===0&&(No?document.body.style.paddingRight=No:document.body.style.removeProperty("padding-right"))),Pa===0&&t&&(document.body.style.overflow=ru))}}function Cy(){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 fy({open:e,onClose:t,ariaLabel:a,title:r,children:i,size:s="md",closeOnBackdrop:l=!0,closeOnEscape:u=!0,showClose:c=!0,className:d,contentClassName:m}){const{t:p}=xe.useTranslation(),C=o.useId(),y=o.useRef(null),x=o.useCallback(()=>t(),[t]);o.useEffect(()=>{if(!e)return;const g=document.activeElement,k=ou(),b=y.current;return uo(b,g),b?.focus(),()=>{k();const A=document.activeElement;(!A||A===document.body||b&&b.contains(A))&&co(g)?.focus?.()}},[e]);const f=o.useRef(x),h=o.useRef(u);o.useEffect(()=>{f.current=x,h.current=u}),o.useEffect(()=>{if(e)return Gn(()=>{h.current&&f.current()})},[e]);const _=o.useRef(!1);return io(y,e),!e||typeof document>"u"?null:en.createPortal(n.jsx("div",{className:we("dialog",d),onPointerDown:l?g=>{_.current=g.target===g.currentTarget}:void 0,onMouseDown:g=>{g.target===g.currentTarget&&g.preventDefault()},onClick:l?g=>{const k=_.current;_.current=!1,k&&g.target===g.currentTarget&&x()}:void 0,children:n.jsxs("div",{ref:y,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?C:void 0,tabIndex:-1,className:we("dialog__surface",`dialog__surface--${s}`,m),onClick:g=>g.stopPropagation(),children:[r?n.jsx("div",{className:"dialog__header",children:n.jsx("h2",{id:C,className:"dialog__title h4b",children:r})}):null,c?n.jsx("button",{type:"button",className:"dialog__close","aria-label":p("common.close","\uB2EB\uAE30"),onClick:x,children:n.jsx(Cy,{})}):null,n.jsx("div",{className:"dialog__body",children:i})]})}),document.body)}function gy({columns:e,rows:t,rowKey:a,title:r,toolbar:i,empty:s,loading:l,caption:u,className:c=""}){const{t:d}=xe.useTranslation(),m=!l&&t.length===0;return n.jsxs("div",{className:we("board",c),children:[r||i?n.jsxs("div",{className:"board__head",children:[r?n.jsx("h2",{className:"board__title",children:r}):n.jsx("span",{}),i?n.jsx("div",{className:"board__toolbar",children:i}):null]}):null,n.jsxs("table",{className:"board__table",children:[u?n.jsx("caption",{className:"board__caption",children:u}):null,n.jsx("thead",{children:n.jsx("tr",{children:e.map(p=>n.jsx("th",{scope:"col",className:we("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),n.jsx("tbody",{children:l?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):m?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:s??d("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):t.map((p,C)=>n.jsx("tr",{className:"board__row",children:e.map(y=>n.jsx("td",{className:we("board__td",`board__cell--${y.align??"left"}`),children:y.render(p,C)},y.key))},a(p,C)))})]})]})}function by({name:e,role:t,photo:a,media:r,credentials:i,size:s=190,className:l=""}){return n.jsxs("div",{className:we("person-card",l),children:[n.jsx("div",{className:"person-card__photo",style:{width:s,height:s},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,i?.length?n.jsx("ul",{className:"person-card__credentials",children:i.map(u=>n.jsx("li",{children:u},u))}):null]})}function yy({groups:e,className:t=""}){return n.jsx("div",{className:we("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,i)=>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((s,l)=>n.jsx("p",{children:s},l))})]},`${r.label??""}-${i}`))})]},a.title))})}function vy({title:e,kind:t,body:a,badge:r,badgeSrc:i,footer:s,width:l,className:u=""}){const c=r??(i?n.jsx("img",{src:i,alt:""}):null);return n.jsxs("div",{className:we("publication-card",u),style:l?{width:l,flexShrink:0}:void 0,children:[c?n.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:c}):null,n.jsx("h3",{className:"publication-card__title",children:e}),t?n.jsx("p",{className:"publication-card__kind",children:t}):null,n.jsx("p",{className:"publication-card__body",children:a}),s?n.jsx("div",{className:"publication-card__footer",children:s}):null]})}function xy({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const i=Ea(a);return o.useEffect(()=>{const s=setTimeout(()=>i.current?.(),r);return()=>clearTimeout(s)},[r,i]),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 _y({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:i=2,tone:s="dark",className:l=""}){const u=i===1?"h1":"h2";return n.jsxs("div",{className:we("section-header",`section-header--${s}`,l),children:[e?n.jsxs("p",{className:"section-header__eyebrow",children:[t?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"section-header__index",children:t}),n.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?n.jsx(u,{className:"section-header__title",children:a}):null,r?n.jsx("div",{className:"section-header__description",children:r}):null]})}function wy({items:e,className:t=""}){return n.jsx("ul",{className:we("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 iu(e){return typeof e=="string"?e:e.label}function lu({value:e,onChange:t,suggestions:a,openOnFocus:r=!1,filterSuggestions:i,onSelectSuggestion:s,autoActiveFirst:l=!1}){const u=o.useId(),[c,d]=o.useState(!1),[m,p]=o.useState(-1),C=o.useRef(null),y=o.useMemo(()=>{if(!a.length)return[];const N=e??"";return i===!1?a:N?typeof i=="function"?i(a,N):a.filter(O=>iu(O).toLowerCase().includes(N.toLowerCase())):r?a:[]},[a,e,r,i]),[x,f]=o.useState(!1),h=o.useRef([]),_=x&&y.length===0?h.current:y;o.useEffect(()=>{_.length&&(h.current=_)},[_]);const g=o.useCallback(()=>f(!0),[]),k=o.useCallback(()=>f(!1),[]),b=l?0:-1;o.useEffect(()=>{c||p(b)},[c,b]),o.useEffect(()=>()=>{C.current&&clearTimeout(C.current)},[]);const A=m<_.length?m:b<_.length?b:-1,v=o.useCallback(N=>{s?s(N):t?.(iu(N)),d(!1)},[t,s]),w=o.useCallback(()=>d(!0),[]),B=o.useCallback(()=>{d(!0),p(b)},[b]),E=o.useCallback(()=>{C.current=setTimeout(()=>d(!1),120)},[]),D=o.useCallback(N=>{N.nativeEvent.isComposing||N.keyCode===229||(N.key==="ArrowDown"?(N.preventDefault(),d(!0),p(O=>Math.min(_.length-1,(O<_.length?O:b)+1))):N.key==="ArrowUp"?(N.preventDefault(),p(O=>Math.max(b,(O<_.length?O:_.length)-1))):N.key==="Enter"?A>=0&&v(_[A]):N.key==="Escape"&&c&&(N.preventDefault(),d(!1)))},[_,A,c,v,b]);return{listId:u,open:c,activeIdx:A,filtered:_,handleFocus:w,handleBlur:E,handleInput:B,handleKeyDown:D,handleSelect:v,handleCompositionStart:g,handleCompositionEnd:k}}const Eo=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Xn(e){const{value:t,defaultValue:a,name:r,inputRef:i,onChange:s,label:l,ariaLabel:u,ariaDescribedBy:c,required:d,placeholder:m,ghostText:p,ghostHint:C,type:y="text",disabled:x=!1,readOnly:f=!1,error:h,helperText:_,maxLength:g,size:k=48,variant:b="input",fullWidth:A=!1,newline:v=!1,multiline:w=!1,rows:B=3,leftIcon:E,rightIcon:D,clearable:N=!1,list:O,showCount:P=!0,className:G="",onFocus:L,onBlur:M,onKeyDown:$,onEnter:Z,inputMode:q,autoComplete:H,autoFocus:W,suggestions:R,filterSuggestions:z,onSelectSuggestion:V,autoActiveFirst:F,openOnFocus:S=!1}=e,j=f||x?void 0:R,{t:I}=xe.useTranslation(),U=o.useId();!l&&!u&&St(`TextField:unnamed:${U}`,"[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 re=`tf-${U}`,ne=`tf-helper-${U}`,le=o.useRef(null),K=lu({value:t??"",onChange:s,suggestions:j??[],openOnFocus:S,filterSuggestions:z,onSelectSuggestion:V,autoActiveFirst:F}),oe=!!j&&K.open&&K.filtered.length>0,ke=o.useRef(null),[Y,Q]=o.useState(null),me=o.useCallback(()=>{const Ae=ke.current;if(!Ae||typeof window>"u")return;const We=Ae.getBoundingClientRect(),_e=230,Ue=window.innerHeight-We.bottom<_e+8&&We.top>_e+8;Q({position:"fixed",left:We.left,width:We.width,...Ue?{bottom:window.innerHeight-We.top+8}:{top:We.bottom+8},zIndex:Ta(Ae)})},[]);Eo(()=>{if(!oe)return;me();let Ae=null;const We=()=>{if(typeof requestAnimationFrame>"u"){me();return}Ae===null&&(Ae=requestAnimationFrame(()=>{Ae=null,me()}))},_e=Ue=>{const Be=Ue.target;Be&&Be.nodeType===1&&Be.closest?.(".text-field__suggestions")||We()};return window.addEventListener("scroll",_e,!0),window.addEventListener("resize",We),()=>{Ae!==null&&cancelAnimationFrame(Ae),window.removeEventListener("scroll",_e,!0),window.removeEventListener("resize",We)}},[oe,me]);const De=o.useCallback(Ae=>{le.current=Ae,typeof i=="function"?i(Ae):i&&(i.current=Ae)},[i]),be=p?`${p}${C??I("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:m,te=t!==void 0,ue=te&&y==="password",[Ce,ge]=o.useState((a??"").length),fe=te?(t??"").length:Ce,$e=o.useRef(t);Eo(()=>{$e.current=t}),o.useEffect(()=>{const Ae=le.current;if(!ue||!Ae)return;const We=t??"";Ae.value!==We&&(Ae.value=We)},[ue,t]),o.useEffect(()=>{if(!v||!le.current)return;const Ae=le.current;Ae.style.height="",Ae.scrollHeight>Ae.clientHeight&&(Ae.style.height=`${Ae.scrollHeight}px`)},[t,Ce,v]);const ze=g!=null&&fe>g,Te=k===32?16:20,Fe=we("text-field",`text-field--s${k}`,b==="display"?"text-field--display":"",A?"text-field--full-width":"",x?"text-field--disabled":"",f?"text-field--readonly":"",h?"text-field--error":"",E?"text-field--has-left-icon":"",D||N?"text-field--has-right-icon":"",G),qe={id:re,...ue?{}:te?{value:t}:{defaultValue:a},ref:De,placeholder:be,name:r,disabled:x,readOnly:f,autoFocus:W,maxLength:g,list:O,inputMode:q,autoComplete:H,"aria-label":!l&&u?u:void 0,"aria-required":d,"aria-invalid":!!h,"aria-describedby":[_||h?ne:null,c].filter(Boolean).join(" ")||void 0,role:j?"combobox":void 0,"aria-autocomplete":j?"list":void 0,"aria-haspopup":j?"listbox":void 0,"aria-expanded":j?oe:void 0,"aria-controls":oe?K.listId:void 0,"aria-activedescendant":oe&&K.activeIdx>=0?`${K.listId}-option-${K.activeIdx}`:void 0,onChange:Ae=>{const We=Ae.target;te||ge(We.value.length),s?.(We.value),j&&K.handleInput(),ue&&queueMicrotask(()=>{const _e=$e.current??"";We.value!==_e&&(We.value=_e)})},onCompositionStart:j?K.handleCompositionStart:void 0,onCompositionEnd:j?K.handleCompositionEnd:void 0,onFocus:(Ae=>{L?.(Ae),j&&K.handleFocus()}),onBlur:(Ae=>{M?.(Ae),j&&K.handleBlur()}),onKeyDown:(Ae=>{const We=(Ae.key==="Tab"&&!Ae.shiftKey||Ae.key===" ")&&!Ae.nativeEvent.isComposing;if(p&&We&&!f&&!x&&!(Ae.currentTarget.value??"").trim()){Ae.preventDefault();const _e=Ae.currentTarget;te||(_e.value=p,ge(p.length)),s?.(p);return}j&&Ae.key==="Enter"&&!Ae.nativeEvent.isComposing&&K.activeIdx>=0?Ae.preventDefault():Z&&Ae.key==="Enter"&&!Ae.nativeEvent.isComposing&&(Ae.preventDefault(),Z()),$?.(Ae),j&&K.handleKeyDown(Ae)})},mt=N&&!x&&!f&&fe>0,ct=()=>v?n.jsx("textarea",{...qe,className:"text-field__input text-field__input--auto body-2",rows:1}):w?n.jsx("textarea",{...qe,className:"text-field__input text-field__input--textarea body-2",rows:B}):n.jsx("input",{...qe,type:y,className:"text-field__input body-2"}),rt=b==="display"&&!v&&!w&&!!be,Ct=()=>n.jsxs(n.Fragment,{children:[ct(),rt&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:be})]});return n.jsxs("div",{ref:ke,className:Fe,children:[l&&n.jsxs("label",{htmlFor:re,className:"text-field__label caption-1",children:[l,d&&n.jsx("span",{className:"text-field__required",children:"*"})]}),n.jsxs("div",{className:"text-field__wrap",children:[E&&n.jsx("span",{className:"text-field__icon text-field__icon--left",children:n.jsx(at,{icon:E,label:"",className:"",svgClassName:"text-field__icon-svg",size:Te})}),Ct(),g!=null&&P&&n.jsxs("span",{className:`text-field__count caption-2${ze?" text-field__count--over":""}`,children:[fe,"/",g]}),mt&&n.jsx(pe,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:I("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:Ae=>{Ae.preventDefault()},onClick:()=>{!te&&le.current&&(le.current.value="",ge(0)),s?.("")},tabIndex:-1}),D&&!mt&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(at,{icon:D,label:"",className:"",svgClassName:"text-field__icon-svg",size:Te})})]}),!!j&&n.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:K.open&&(t??"").length>0&&K.filtered.length===0?I("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),oe&&(typeof document>"u"?null:en.createPortal(n.jsx("ul",{id:K.listId,className:"text-field__suggestions",role:"listbox",style:Y??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:K.filtered.map((Ae,We)=>n.jsx("li",{id:`${K.listId}-option-${We}`,role:"option","aria-selected":We===K.activeIdx,className:`text-field__suggestion body-2${We===K.activeIdx?" is-active":""}`,onMouseDown:_e=>_e.preventDefault(),onClick:()=>{K.handleSelect(Ae),le.current?.focus()},children:typeof Ae=="string"?Ae:n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"text-field__suggestion-label",children:Ae.label}),Ae.hint&&n.jsx("span",{className:"text-field__suggestion-hint caption-1",children:Ae.hint})]})},typeof Ae=="string"?`${Ae}-${We}`:Ae.id))}),document.body)),(_||h)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:ne,className:"text-field__helper caption-1",role:h?"alert":void 0,children:h||_})})]})}function pn({options:e,value:t,onChange:a,placeholder:r,disabled:i=!1,block:s=!1,size:l=48,error:u=!1,className:c="",ariaLabel:d,ariaDescribedBy:m}){const{t:p}=xe.useTranslation(),C=r??p("dropdown.placeholder","\uC120\uD0DD"),y=o.useId(),x=o.useId(),f=o.useRef(null),h=o.useCallback((L,M)=>{const $=window.innerHeight-L.bottom<260&&L.top>260;return{position:"fixed",left:L.left,minWidth:L.width,...$?{bottom:window.innerHeight-L.top+6}:{top:L.bottom+6},zIndex:Ta(M)}},[]),{open:_,setOpen:g,toggle:k,style:b,triggerRef:A,menuRef:v}=ja({computeStyle:h}),[w,B]=o.useState(-1),E=o.useCallback(()=>B(-1),[]),D=e.find(L=>L.value===t);o.useEffect(()=>{if(_){const L=e.findIndex(M=>M.value===t);B(L>=0?L:e.length?0:-1),requestAnimationFrame(()=>{const M=v.current;if(!M)return;const $=M.querySelectorAll(".dropdown__option")[L];$&&(M.scrollTop=Math.max(0,$.offsetTop-M.clientHeight/2+$.clientHeight/2))})}},[_]),o.useEffect(()=>{_&&B(L=>{if(L>=0&&L<e.length)return L;const M=e.findIndex($=>$.value===t);return M>=0?M:e.length?0:-1})},[_,e.length]);const N=o.useCallback(()=>{i||k()},[i,k]),O=o.useCallback(L=>{L.disabled||i||(L.value!==t&&a?.(L.value),g(!1))},[a,g,i,t]);o.useEffect(()=>{i&&g(!1)},[i,g]);const P=o.useCallback(L=>{if(!i){if(!_){(L.key==="Enter"||L.key===" "||L.key==="ArrowDown")&&(L.preventDefault(),g(!0));return}if(L.key==="Escape"){L.preventDefault(),g(!1);return}L.key==="ArrowDown"?(L.preventDefault(),B(M=>{let $=M+1;for(;$<e.length&&e[$].disabled;)$++;return $<e.length?$:M})):L.key==="ArrowUp"?(L.preventDefault(),B(M=>{let $=M-1;for(;$>=0&&e[$].disabled;)$--;return $>=0?$:M})):(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),e[w]?O(e[w]):g(!1))}},[i,_,e,w,O,g]),G=_?n.jsx("div",{ref:v,id:y,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:b,onMouseLeave:E,onMouseDown:L=>L.preventDefault(),children:e.map((L,M)=>n.jsxs("button",{id:`${y}-option-${M}`,type:"button",role:"option","aria-selected":L.value===t,className:we("dropdown__option body-2",L.value===t?"dropdown__option--active":"",M===w?"dropdown__option--active":"",L.disabled?"dropdown__option--disabled":""),onMouseDown:$=>$.preventDefault(),onClick:()=>O(L),onMouseEnter:()=>B(M),disabled:L.disabled,children:[n.jsx("span",{className:"dropdown__option-check",children:L.value===t&&n.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),L.label]},L.value))}):null;return n.jsxs("div",{ref:f,className:we("dropdown",`dropdown--s${l}`,_?"dropdown--open":"",s?"dropdown--block":"",u?"dropdown--error":"",c),onKeyDown:P,children:[n.jsxs("button",{ref:A,type:"button",className:"dropdown__trigger",role:"combobox","aria-haspopup":"listbox","aria-expanded":_,"aria-controls":_?y:void 0,"aria-activedescendant":_&&w>=0?`${y}-option-${w}`:void 0,"aria-label":d,"aria-describedby":[d&&D?x:"",m??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:i,onClick:N,onBlur:L=>{_&&!v.current?.contains(L.relatedTarget)&&g(!1)},children:[n.jsx("span",{id:x,className:`dropdown__trigger-label body-2${D?"":" dropdown__trigger-label--placeholder"}`,children:D?D.label:C}),n.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&en.createPortal(G,f.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function cr({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:i,className:s=""}){const{t:l}=xe.useTranslation(),u=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),c=i??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,t),m=()=>a(Math.max(1,Math.min(d,e-1))),p=()=>a(Math.min(d,e+1));return n.jsxs("div",{className:we("pagination",s),children:[n.jsx(pe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:u,disabled:e<=1,onClick:m}),n.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),d)," / ",d]}),n.jsx(pe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:c,disabled:e>=t,onClick:p})]})}const Ia=new Map;function gn(e){const{t}=xe.useTranslation(),{options:a=[],value:r=a.find(b=>!b.disabled)?.key??a[0]?.key,onChange:i=b=>{},className:s="",size:l=40,shape:u="pill",useBG:c=!0,fullWidth:d=!1,minButtonWidth:m,ariaLabel:p}=e||{},C=o.useRef(null),y=a.filter(b=>!b.disabled),x=o.useId(),f=a.map(b=>b.key).join("\xB7");o.useEffect(()=>{if(!(!Ln||p!=null&&p!=="")){if(Ia.set(x,f||"(\uBCF4\uAE30 \uC5C6\uC74C)"),Ia.size>1){const b=[...Ia.values()].sort();St(`segmented-control-unnamed:${b.join("|")}`,`[ihab/SegmentedControl] \uC774\uB984 \uC5C6\uB294 \uB77C\uB514\uC624\uADF8\uB8F9\uC774 \uD55C \uD654\uBA74\uC5D0 ${Ia.size} \uAC1C \uC11C \uC788\uC2B5\uB2C8\uB2E4 \u2014 \uB0AD\uB3C5\uAE30\uB294 \uBAA8\uB450 "\uC120\uD0DD \uD0ED" \uC73C\uB85C \uC77D\uC5B4 \uC5B4\uB290 \uAC83\uC774 \uBB34\uC5C7\uC778\uC9C0 \uAC00\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. ariaLabel \uC744 \uC8FC\uC138\uC694. \uC9C0\uAE08 \uC120 \uAC83(\uBCF4\uAE30 \uC774\uB984\uC73C\uB85C \uC801\uC74C): ${b.join(" / ")}`)}return()=>{Ia.delete(x)}}},[p,f,x]);const h=b=>{if(!y.length)return;const A=Math.max(0,y.findIndex(w=>w.key===r)),v=b==="first"?y[0]:b==="last"?y[y.length-1]:y[(A+b+y.length)%y.length];v&&(i(v.key),Array.from(C.current?.querySelectorAll("[data-segkey]")??[]).find(w=>w.dataset.segkey===v.key)?.focus())},_=b=>{switch(b.key){case"ArrowRight":case"ArrowDown":h(1);break;case"ArrowLeft":case"ArrowUp":h(-1);break;case"Home":h("first");break;case"End":h("last");break;default:return}b.preventDefault()},g=b=>{const A=v=>typeof v=="string"||typeof v=="number";if(!(!A(b.label)||b.count==null||b.count===!1||!A(b.count)))return`${b.label}, ${b.count}`},k=y.some(b=>b.key===r)?r:y[0]?.key;return n.jsx("div",{ref:C,onKeyDown:_,className:we("segmented-control",`segmented-control--${u}`,`segmented-control--${l}`,d&&"segmented-control--full",!c&&"segmented-control--no-bg",m!=null&&"segmented-control--min",s),style:m!=null?{"--segmented-min-button-w":`${m}px`}:void 0,role:"radiogroup","aria-label":p??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(b=>n.jsx(pe,{htmlType:"button",role:"radio","aria-checked":b.key===r,"data-segkey":b.key,tabIndex:b.key===k?0:-1,label:b.label,count:b.count,ariaLabel:g(b),disabled:b.disabled,className:b.key===r?"is-selected":"",onClick:()=>{b.disabled||i(b.key)},size:l,shape:u,useBorder:!1,useBG:!1},b.key))})}function Do({count:e,search:t,segment:a,filters:r,pageSize:i,pagination:s,actions:l,className:u}){const{t:c}=xe.useTranslation(),d=e!=null&&n.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??c("common.totalPrefix","\uCD1D "),n.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),m=!!(t||r?.length||i||s||l);return n.jsxs("div",{className:we("toolbar",u),children:[n.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((p,C)=>n.jsx(gn,{size:40,...p},p.ariaLabel??C))]}),m&&n.jsx("div",{className:"toolbar__row",children:n.jsxs("div",{className:"toolbar__row-end",children:[t&&n.jsx(Xn,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??c("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??c("common.search","\uAC80\uC0C9"),autoFocus:t.autoFocus,clearable:!0}),r?.map((p,C)=>n.jsx(pn,{size:40,options:p.options,value:p.value,onChange:p.onChange,ariaLabel:p.ariaLabel},C)),(i||s)&&n.jsxs("div",{className:"toolbar__pager",children:[i&&n.jsx(pn,{size:40,options:i.options,value:i.value,onChange:i.onChange,ariaLabel:i.ariaLabel??c("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),s&&n.jsx(cr,{page:s.page,totalPages:s.total,onChange:s.onChange,prevLabel:s.prevLabel,nextLabel:s.nextLabel})]}),l]})})]})}function uu(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(uu).join(""):""}function By(e){let t=e.replace(/\r\n/g,`
854
854
  `).replace(/\r/g,`
855
855
  `);t=t.replace(/^\n+/,"").replace(/\n+$/,"");const a=t.split(`
856
856
  `).map(s=>s.replace(/\t/g," ")),r=a.filter(s=>s.trim().length>0),i=r.length>0?Math.min(...r.map(s=>s.match(/^ */)?.[0].length??0)):0;return a.map(s=>s.slice(i)).join(`
857
- `)}const Ay=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),ky=/^(?: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 Ny(e,t){let a=e;const r=[],i=/^(?:sh|bash|zsh|shell|console)$/.test(t.toLowerCase()),s=(l,u)=>r.push({type:l,content:u});for(;a.length>0;){const l=a.match(/^\s+/);if(l){s("whitespace",l[0]),a=a.slice(l[0].length);continue}if(!i&&a.startsWith("//")){const v=a.indexOf(`
858
- `),f=v===-1?a:a.slice(0,v);s("comment",f),a=a.slice(f.length);continue}if(i&&a.startsWith("#")){const v=a.indexOf(`
859
- `),f=v===-1?a:a.slice(0,v);s("comment",f),a=a.slice(f.length);continue}const u=a.match(/^\/\*[\s\S]*?\*\//);if(u){s("comment",u[0]),a=a.slice(u[0].length);continue}const c=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(c){s("string",c[0]),a=a.slice(c[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){s("number",d[0]),a=a.slice(d[0].length);continue}const m=a.match(ky);if(m){s("keyword",m[0]),a=a.slice(m[0].length);continue}const p=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(p){const v=p[0];s(i&&Ay.has(v)?"command":"identifier",v),a=a.slice(v.length);continue}const C=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(C){s("operator",C[0]),a=a.slice(C[0].length);continue}const y=a.match(/^[()[\]{};.,]/);if(y){s("punctuation",y[0]),a=a.slice(1);continue}s("other",a[0]),a=a.slice(1)}return r}function Ey({children:e,language:t="bash",title:a="",showCopy:r=!0,size:i="default",className:s=""}){const{t:l}=xe.useTranslation(),[u,c]=o.useState(!1),d=By(uu(e)),m=o.useRef(null);o.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const p=async()=>{try{if(!await bf(d))return;c(!0),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>c(!1),2e3)}catch{}},C=Ny(d,t),y=i==="small"?"caption-1":"body-3";return n.jsxs("div",{className:we("code-box",i==="small"?"code-box--small":"",s),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(pe,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:u?"check":"copy",onClick:p,ariaLabel:u?l("common.copied","\uBCF5\uC0AC\uB428"):l("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),n.jsx("pre",{className:"code-box__inner","data-lang":t,children:n.jsx("code",{children:C.map((v,f)=>n.jsx("span",{className:`code-token ${v.type} ${y}`,children:v.content},f))})})]})}const Dy={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function Oa(e){const{t}=xe.useTranslation(),{variant:a="spinner",size:r=24,progress:i=null,label:s}=e||{},l=s||t("loader.loading","Loading");if(a==="bar"){const c=i==null||!Number.isFinite(Number(i)),d=c?0:Math.max(0,Math.min(100,Number(i)));return n.jsx("div",{className:`loader-bar${c?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c?void 0:d,"aria-label":l,children:n.jsx("div",{className:"loader-bar__inner",style:c?void 0:{width:`${d}%`}})})}const u=typeof r=="number"?`${r}px`:r;return n.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":l,children:[n.jsx("span",{style:Dy,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 cu({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:i,labelPosition:s="right",className:l="",id:u}){const c=r&&n.jsx("span",{className:"toggle__label body-3",children:r});return n.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[s==="left"&&c,n.jsx("input",{id:u,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>t?.(d.target.checked),"aria-label":!r&&i?i:void 0}),n.jsx("span",{className:"toggle__slider"}),s==="right"&&c]})}function du({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:i,size:s="medium",className:l,title:u,ariaLabel:c}){const d=o.useRef(null),m=o.useId(),p=o.useRef(!!r);return p.current=!!r,o.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)}),n.jsxs("label",{className:we("checkbox",s==="small"&&"checkbox--small",s==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:m,title:u,children:[n.jsx("input",{ref:d,id:m,type:"checkbox",className:"checkbox__input",checked:e,onChange:C=>{t?.(C.target.checked),d.current&&(d.current.indeterminate=p.current)},disabled:a,"aria-label":!i&&c?c:void 0}),n.jsx("span",{className:"checkbox__box"}),i&&n.jsx("span",{className:"checkbox__label body-3",children:i})]})}function Sy({count:e,actions:t,onClear:a,clearLabel:r,visible:i,content:s,max:l}){const{t:u}=xe.useTranslation(),c=i!==void 0?i:e>0,d=r??u("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),m=o.useRef(null),p=o.useRef(null),C=o.useRef(null),y=o.useRef(c);o.useLayoutEffect(()=>{const g=p.current,k=y.current;if(y.current=c,c&&!k){const b=typeof document<"u"?document.activeElement:null;C.current=b&&b!==document.body&&!g?.contains(b)?b:null}else!c&&k&&g&&g.contains(document.activeElement)&&nr(g,C.current)},[c]);const[v,f]=o.useState(!1),h=o.useRef(!1),_=o.useRef(null);return o.useEffect(()=>{const g=m.current;if(!g)return;const k=A=>{h.current=A,f(A)},b=()=>{const A=g.firstElementChild??g,D=Array.from(A.children);if(D.length<2){k(!1);return}const E=D[0].offsetTop,O=D.some($=>$.offsetTop!==E);if(!h.current){_.current=g.clientWidth,O&&k(!0);return}if(O)return;const R=D[0],K=D[D.length-1],M=K.offsetLeft+K.offsetWidth-R.offsetLeft,L=_.current;(L==null||M<=L)&&k(!1)};if(b(),typeof ResizeObserver>"u")return;const N=new ResizeObserver(b);N.observe(g);const x=g.parentElement;let B=x?.clientWidth??0;const w=new ResizeObserver(()=>{const A=x?.clientWidth??0;A!==B&&(B=A,_.current=null,b())});return x&&w.observe(x),()=>{N.disconnect(),w.disconnect()}},[s,e]),n.jsxs("div",{ref:p,className:`bulk-bar ${c?"bulk-bar--visible":""}`,inert:!c||void 0,"aria-hidden":c?void 0:!0,children:[n.jsx("span",{ref:m,className:"bulk-bar__count body-2",role:"status",children:s??n.jsx("b",{children:u("common.selectedCount",{count:e})})}),l!==void 0&&n.jsx(kt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`,"aria-label":u("common.selectedOfMax",{count:e,max:l,defaultValue:`\uCD5C\uB300 ${l}\uAC1C \uC911 ${e}\uAC1C`})}),n.jsxs("div",{className:`bulk-bar__actions${v?" bulk-bar__actions--stacked":""}`,children:[n.jsx(pe,{htmlType:"button",size:40,label:d,onClick:a}),t.map((g,k)=>n.jsx(pe,{htmlType:"button",size:40,variant:g.variant??"default",icon:g.icon,label:g.label,onClick:g.onClick},k))]})]})}const Ty=[{key:"edit",icon:"edit-2",closeFirst:!0},{key:"duplicate",icon:"copy",closeFirst:!1},{key:"publish",icon:"book-marked",closeFirst:!1},{key:"copyLink",icon:"link",closeFirst:!1},{key:"remove",icon:"trash-2",closeFirst:!0}];function jy(e){const{onClose:t,className:a}=e;return n.jsx("div",{className:we("item-actions",a),children:Ty.map(({key:r,icon:i,closeFirst:s})=>{const l=e[r];if(!l)return null;const u=r==="publish"?l.published?l.unpublish:l.publish:l;return n.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:i,ariaLabel:u.label,showTooltipInfo:u.label,onClick:()=>{s&&t(),u.onClick()}},r)})})}function pu(e,t){const a=()=>{if(e){const[f,h]=e.split("-");return{y:+f,m:+h-1}}const[y,v]=ao(t).split("-");return{y:+y,m:+v-1}},[r,i]=o.useState(()=>a().y),[s,l]=o.useState(()=>a().m),u=o.useRef(e);o.useEffect(()=>{if(e===u.current)return;u.current=e;const y=a();i(y.y),l(y.m)},[e]);const c=o.useRef({y:r,m:s});o.useEffect(()=>{c.current={y:r,m:s}},[r,s]);const d=o.useCallback(y=>{const v=c.current.y*12+c.current.m+y,f=Math.floor(v/12),h=v-f*12;c.current={y:f,m:h},i(f),l(h)},[]),m=o.useCallback(()=>d(-1),[d]),p=o.useCallback(()=>d(1),[d]),C=o.useCallback((y,v)=>{c.current={y,m:v},i(y),l(v)},[]);return{viewY:r,viewM:s,prevMonth:m,nextMonth:p,setViewYM:C}}function dr(e,t){return new Date(e,t+1,0).getDate()}function My(e,t){return new Date(e,t,1).getDay()}function pr(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function Ly(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function $y(e,t,a,r){const i=a?+a.split("-")[0]:e-10,s=r?+r.split("-")[0]:e+10,l=[];for(let u=i;u<=s;u++)for(let c=0;c<12;c++){const d=`${u}-${String(c+1).padStart(2,"0")}`;a&&d<a.slice(0,7)||r&&d>r.slice(0,7)||l.push({value:d,label:t(u,c+1)})}return l}function Ry({value:e,onChange:t,size:a=48,min:r,max:i,disabled:s,placeholder:l,className:u,today:c}){const{t:d,i18n:m}=xe.useTranslation(),p=l??d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),C=o.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),y=ao(c),{viewY:v,viewM:f,prevMonth:h,nextMonth:_,setViewYM:g}=pu(e,c),k=o.useId(),b=o.useCallback((F,S)=>{const j=window.innerHeight,I=window.innerWidth,q=typeof document<"u"?document.getElementById(k):null,re=Math.max(q?.offsetHeight||0,q?.scrollHeight||0)||300,ne=Math.max(F.width,q?.offsetWidth||0,260),le=j-F.bottom,Y=F.top,oe=le<re&&Y>le,ke=8,Z=(Q,me)=>Math.min(Math.max(ke,Q),Math.max(ke,me));return{position:"fixed",left:Z(F.left,I-ne-ke),width:F.width,minWidth:260,...oe?{top:"auto",bottom:Z(j-F.top+6,j-re-ke)}:{bottom:"auto",top:Z(F.bottom+6,j-re-ke)},zIndex:Ta(S)}},[k]),{open:N,setOpen:x,toggle:B,style:w,triggerRef:A,menuRef:D}=ja({computeStyle:b,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!N)return;const F=D.current;return(F?.querySelector(".date-picker__day--selected:not(:disabled)")??F?.querySelector(".date-picker__day--today:not(:disabled)")??F?.querySelector(".date-picker__day:not(:disabled)")??F?.querySelector(fn)??F)?.focus?.(),()=>{const S=document.activeElement;(!S||S===document.body)&&A.current?.focus?.()}},[N,D,A]);const[E,O]=o.useState(1),R=o.useRef(null),K=o.useRef(null);o.useEffect(()=>{if(!N)return;const F=e&&e.slice(0,7)===`${v}-${String(f+1).padStart(2,"0")}`?+e.slice(8):y.slice(0,7)===`${v}-${String(f+1).padStart(2,"0")}`?+y.slice(8):1;O(F)},[N]),o.useEffect(()=>{if(K.current==null)return;const F=K.current;K.current=null,R.current?.querySelector(`[data-day="${F}"]`)?.focus()}),o.useEffect(()=>{O(F=>Math.min(F,dr(v,f)))},[v,f]);const M=o.useCallback(F=>{let S=pr(F.getFullYear(),F.getMonth(),F.getDate());r&&S<r&&(S=r),i&&S>i&&(S=i);const[j,I,q]=S.split("-").map(Number);(j!==v||I-1!==f)&&g(j,I-1),O(q),K.current=q},[r,i,v,f,g]),L=o.useCallback(F=>{const S=new Date(v,f,E),j=q=>{S.setDate(S.getDate()+q),M(S)},I=q=>{const re=S.getFullYear()*12+S.getMonth()+q,ne=Math.floor(re/12),le=re-ne*12;M(new Date(ne,le,Math.min(S.getDate(),dr(ne,le))))};switch(F.key){case"ArrowLeft":j(-1);break;case"ArrowRight":j(1);break;case"ArrowUp":j(-7);break;case"ArrowDown":j(7);break;case"Home":j(-S.getDay());break;case"End":j(6-S.getDay());break;case"PageUp":F.shiftKey?I(-12):I(-1);break;case"PageDown":F.shiftKey?I(12):I(1);break;default:return}F.preventDefault()},[v,f,E,M]),$=o.useCallback(F=>{s||(t(pr(v,f,F)),x(!1))},[v,f,t,x,s]);o.useEffect(()=>{s&&x(!1)},[s,x]);const G=F=>{const S=pr(v,f,F);return!!(r&&S<r||i&&S>i)},W=(()=>{const F=dr(v,f);if(E>=1&&E<=F&&!G(E))return E;for(let S=1;S<=F;S++)if(!G(S))return S;return-1})(),H=[];for(let F=0;F<My(v,f);F++)H.push(null);for(let F=1;F<=dr(v,f);F++)H.push(F);const U=a===64?20:a===40?16:18,P=$y(v,(F,S)=>er(d,m.language,F,S),r,i),z=`${v}-${String(f+1).padStart(2,"0")}`,V=N?en.createPortal(n.jsxs("div",{ref:D,id:k,className:"date-picker__dropdown",style:w,"data-tooltip-ignore":!0,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[n.jsxs("div",{className:"date-picker__nav",children:[n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:h,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(Ds,{size:16,strokeWidth:2})}),n.jsx(pn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:P,value:z,onChange:F=>{const[S,j]=F.split("-");g(+S,+j-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(Ss,{size:16,strokeWidth:2})})]}),n.jsxs("div",{className:"date-picker__grid",ref:R,onKeyDown:L,children:[C.map(F=>n.jsx("div",{className:"date-picker__dow caption-1",children:F},F)),H.map((F,S)=>{if(F===null)return n.jsx("div",{},`e${S}`);const j=pr(v,f,F),I=j===e,q=j===y,re=G(F),ne=S%7;return n.jsx("button",{type:"button",disabled:re,"data-day":F,tabIndex:F===W?0:-1,"aria-current":q?"date":void 0,onClick:()=>!re&&$(F),className:we("date-picker__day caption-1",I&&"date-picker__day--selected",q&&!I&&"date-picker__day--today",re&&"date-picker__day--disabled",ne===0&&"date-picker__day--sun",ne===6&&"date-picker__day--sat"),children:F},F)})]})]}),document.body):null;return n.jsxs("div",{className:we("date-picker",`date-picker--s${a}`,N&&"date-picker--open",u),children:[n.jsxs("button",{ref:A,type:"button",className:"date-picker__trigger body-2",onClick:()=>!s&&B(),disabled:s,"aria-haspopup":"true","aria-expanded":N,children:[n.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?Ly(e):p}),n.jsx(Is,{size:U,className:"date-picker__icon",strokeWidth:1.5})]}),V]})}function mu({children:e,className:t}){const a=o.useRef(null),[r,i]=o.useState(null);return o.useEffect(()=>{i(a.current?.parentElement??null)},[]),o.useEffect(()=>{const s=a.current;if(!s||!r)return;const l=()=>{const c=typeof window<"u"&&window.getComputedStyle(s).position==="absolute"?Math.ceil(s.getBoundingClientRect().width):0;c>0?r.style.setProperty("--section-head-float-w",`${c}px`):r.style.removeProperty("--section-head-float-w")};if(l(),typeof ResizeObserver>"u")return()=>{r.style.removeProperty("--section-head-float-w")};const u=new ResizeObserver(()=>l());return u.observe(s),u.observe(r),()=>{u.disconnect(),r.style.removeProperty("--section-head-float-w")}},[r,e]),n.jsx("div",{ref:a,className:we("section-head-float",t),children:e})}function So({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 Ha({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 To({title:e,titleClassName:t="h3",titleLevel:a=3,icon:r,disc:i,headRight:s,headFloat:l,headSegment:u,headMenuItems:c,collapseBelow:d=420,onClick:m,ariaLabel:p,tooltip:C,totalNum:y,totalUnit:v,totalLabel:f,subRow:h,subRowAlign:_="start",className:g,inGrid:k=!1,children:b}){const{t:N}=xe.useTranslation(),x=o.useRef(null),{anchorRect:B,openAt:w,close:A}=Sa(),D=o.useCallback(()=>{C&&x.current&&w(x.current)},[C,w]),[E,O]=o.useState(!1);Eo(()=>{const S=x.current;if(!S||!u)return;const j=q=>O(q>0&&q<d);if(j(S.clientWidth),typeof ResizeObserver>"u")return;const I=new ResizeObserver(q=>j(q[0].contentRect.width));return I.observe(S),()=>I.disconnect()},[u,d]);const[R,K]=o.useState(null),M=o.useCallback(()=>K(null),[]),L=o.useCallback(S=>{const j=S.currentTarget.getBoundingClientRect();K(I=>I?null:{left:j.left,right:j.right,top:j.top,bottom:j.bottom,width:j.width,height:j.height,x:j.x,y:j.y})},[]),$=!!u&&E;o.useEffect(()=>{$||K(null)},[$]);const G=u?[...u.options.map(S=>({label:S.label,icon:S.icon,selected:S.key===u.value,disabled:S.disabled,onClick:()=>u.onChange(S.key),closeOnSelect:!0})),...(c??[]).map((S,j)=>j===0?{...S,separatorBefore:!0}:S)]:[],W=o.useCallback(S=>{if(!m)return;const j=S.target;j&&typeof j.closest=="function"&&j.closest('button, a, input, select, textarea, [role="radiogroup"]')||m()},[m]),H=o.useCallback(S=>{m&&S.target===S.currentTarget&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),m())},[m]),U=typeof s=="function"?s({collapsed:$}):s,P=y!=null||f?n.jsxs(Ha,{label:f,children:[y!=null&&n.jsx("span",{className:"barchart-total__num h0",children:y}),v&&n.jsx("span",{className:"barchart-total__unit h5",children:v})]}):null,z=U||u?n.jsxs("div",{className:"manager-section__head-right",children:[u&&($?n.jsx(pe,{htmlType:"button",size:32,type:"dot",icon:"ellipsis",ariaLabel:u.ariaLabel??N("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:u.ariaLabel??N("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!R,onClick:L}):n.jsx(gn,{size:32,ariaLabel:u.ariaLabel,options:u.options.map(S=>({key:S.key,label:S.label,disabled:S.disabled})),value:u.value,onChange:u.onChange})),U]}):null,V=o.useId(),F=a?`h${a}`:"div";return n.jsxs("section",{ref:x,className:["manager-section",k&&"manager-section--grid",m&&"manager-section--clickable",g].filter(Boolean).join(" "),onClick:m?W:void 0,onKeyDown:m?H:void 0,onPointerEnter:C?D:void 0,onPointerLeave:C?A:void 0,onFocus:C?D:void 0,onBlur:C?A:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,"aria-label":m?p??(typeof e=="string"?e:void 0):void 0,"aria-labelledby":!m&&e!=null?V:void 0,children:[C&&B&&n.jsx(Bn,{anchorRect:{left:B.left,top:B.top+21,right:B.right,bottom:B.bottom,width:B.width,height:B.height},text:C}),l&&n.jsx(mu,{children:l}),n.jsxs("div",{className:"manager-section__head",children:[n.jsxs("div",{className:"manager-section__title-row",children:[r&&n.jsx(at,{icon:r,label:typeof e=="string"?e:void 0,className:"manager-section__icon"}),n.jsx(F,{id:V,className:["manager-section__title",t].filter(Boolean).join(" "),children:e})]}),z,i&&n.jsx("div",{className:"manager-section__disc body-3",children:i})]}),(P||h)&&n.jsxs("div",{className:["barchart-sub-row",_!=="start"&&`barchart-sub-row--${_}`].filter(Boolean).join(" "),children:[P,h]}),b,R&&n.jsx(cn,{anchorRect:R,onClose:M,ariaLabel:u?.ariaLabel??N("tooltip.menu","\uBA54\uB274"),children:n.jsx(Ma,{columns:[{items:G}],onClose:M,size:"small"})})]})}const Va=(e,t)=>`${e}-${String(t).padStart(2,"0")}`,jo=e=>Va(e.getFullYear(),e.getMonth()+1);function ua(e){const t=/^(\d{4})-(\d{2})$/.exec(e);if(!t)return null;const a=Number(t[2]);return a>=1&&a<=12?{year:Number(t[1]),month1:a}:null}const Mo=(e,t)=>`${e}#${t}`;function bn(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function Py(){const e=ra();let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<bn(t,a)){const l=new Date(t,a,0);t=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const i=Math.floor((r-bn(t,a))/7),s=Va(t,a+1);return{monthKey:s,value:Mo(s,i)}}function Fy(e){const t=ra(),a=jo(t),r=(c,d)=>Va(c,d+1),i=new Map;i.set(a,[]);for(const c of e){if(isNaN(c.date.getTime()))continue;const d=r(c.date.getFullYear(),c.date.getMonth());i.has(d)||i.set(d,[]),i.get(d).push(c)}for(const[c,d]of[...i.entries()]){const m=ua(c);if(!m)continue;const p=m.year,C=m.month1-1,y=bn(p,C);if(!(c===a&&t.getDate()<y)&&!d.some(h=>h.date.getDate()<y))continue;const v=new Date(p,C,0),f=r(v.getFullYear(),v.getMonth());i.has(f)||i.set(f,[])}const s=new Map;for(const[c,d]of i){const m=ua(c);if(!m)continue;const p=m.year,C=m.month1-1,y=new Date(p,C+1,0).getDate(),v=d.reduce((b,N)=>Math.max(b,N.parts?.length??0,N.partsB?.length??0),0),f=d.some(b=>b.partsB),h=new Array(y+1).fill(0),_=new Array(y+1).fill(0),g=Array.from({length:y+1},()=>new Array(v).fill(0)),k=Array.from({length:y+1},()=>new Array(v).fill(0));for(const b of d){const N=b.date.getDate();if(h[N]+=b.a,_[N]+=b.b,b.parts)for(let x=0;x<v;x++)g[N][x]+=b.parts[x]??0;if(b.partsB)for(let x=0;x<v;x++)k[N][x]+=b.partsB[x]??0}s.set(c,{year:p,month:C,daysInMonth:y,partsLen:v,hasPartsB:f,dayA:h,dayB:_,dayParts:g,dayPartsB:k})}const l=(c,d,m)=>new Date(c,d,m).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),u={};for(const[c,d]of s){const{year:m,month:p,daysInMonth:C,dayA:y,dayB:v,dayParts:f,dayPartsB:h}=d,_=m===t.getFullYear()&&p===t.getMonth(),g=t.getDate(),k=s.get(r(p===11?m+1:m,(p+1)%12)),b=d.partsLen,N=[];for(let B=1;B<=C;B++){const w=_&&B>g;N.push({label:String(B),...w&&y[B]===0&&v[B]===0?{future:!0}:{},a:w&&y[B]===0&&v[B]===0?-1:y[B],b:v[B],...b?{parts:f[B]}:{},...b&&d.hasPartsB?{partsB:h[B]}:{}})}const x=[];for(let B=bn(m,p);B<=C;B+=7){const w=Math.max(0,B+6-C),A=w&&k?Math.max(b,k.partsLen):b,D=d.hasPartsB||!!(w&&k?.hasPartsB);let E=0,O=0;const R=new Array(A).fill(0),K=new Array(A).fill(0);for(let L=B;L<=Math.min(B+6,C);L++){E+=y[L],O+=v[L];for(let $=0;$<b;$++)R[$]+=f[L][$],K[$]+=h[L][$]}if(w&&k)for(let L=1;L<=w&&!l(k.year,k.month,L);L++){E+=k.dayA[L],O+=k.dayB[L];for(let $=0;$<k.partsLen;$++)R[$]+=k.dayParts[L][$],K[$]+=k.dayPartsB[L][$]}const M=w?`${(p+1)%12+1}/${w}`:`${B+6}`;x.push({label:`${x.length+1}\uC8FC`,sublabel:`[${B}\uC77C~${M}\uC77C]`,a:E,b:O,...A?{parts:R}:{},...A&&D?{partsB:K}:{}})}u[c]={weekly:x,daily:N}}return u}function hu(){const e=ra(),t=e.getFullYear(),a=e.getMonth()+1,r=[];for(let i=2024;i<=t;i++){const s=i===t?a:12;for(let l=1;l<=s;l++)r.push({value:Va(i,l),year:i,month:l})}return r.reverse()}hu();function Iy(){return hu()}function Cu(e,t){const a=e("calendar.weekOrdinal",{returnObjects:!0,defaultValue:[]}),r=Array.isArray(a)&&typeof a[t]=="string"?a[t]:null;return e("calendar.weekLabel",{ord:r??String(t+1)})}function fu(e){const{t,i18n:a}=xe.useTranslation(),[r,i]=o.useState("week"),s=o.useMemo(()=>Iy().filter(A=>A.value in e),[e]),l=o.useMemo(()=>{const A=[];for(const D of s){const E=new Date(D.year,D.month,0).getDate(),O=bn(D.year,D.month-1),R=Math.ceil((E-O+1)/7);for(let K=R-1;K>=0;K--)A.push({value:Mo(D.value,K),monthKey:D.value,year:D.year,month:D.month,week:K})}return A},[s]),u=o.useCallback(A=>`${er(t,a.language,A.year,A.month)} ${Cu(t,A.week)}`,[t]),c=o.useMemo(()=>s.map(A=>({value:A.value,label:er(t,a.language,A.year,A.month)})),[t,a.language,s]),d=o.useMemo(()=>l.map(A=>({value:A.value,label:u(A)})),[l,u]),m=o.useMemo(()=>Py(),[e]),p=o.useMemo(()=>s.find(A=>A.value===m.monthKey)?.value??s[0]?.value??"",[s,m]),C=o.useMemo(()=>l.find(A=>A.value===m.value)?.value??l[0]?.value??"",[l,m]),[y,v]=o.useState(""),[f,h]=o.useState("");o.useEffect(()=>{s.find(A=>A.value===y)||v(p)},[s,y,p]),o.useEffect(()=>{l.find(A=>A.value===f)||h(C)},[l,f,C]);const _=r==="month"?c:d,g=r==="month"?y:f,k=r==="month"?v:h,b=o.useMemo(()=>{const A=t("calendar.dow",{returnObjects:!0});return Array.isArray(A)?A:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),N=_.findIndex(A=>A.value===g),x=o.useCallback(()=>{const A=_.findIndex(D=>D.value===g);A<_.length-1&&k(_[A+1].value)},[_,g,k]),B=o.useCallback(()=>{const A=_.findIndex(D=>D.value===g);A>0&&k(_[A-1].value)},[_,g,k]),w=o.useMemo(()=>[{key:"week",label:t("manager.chart.periodWeek","\uC8FC")},{key:"month",label:t("manager.chart.periodMonth","\uC6D4")}],[t]);return{period:r,setPeriod:i,range:g,setRange:k,activeOptions:_,activeIdx:N,handlePrev:x,handleNext:B,periodOptions:w,monthRange:y,weekRange:f,weekRanges:l,DOW:b}}const _t=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function En(e,t=!0){return e.future===!0||t&&e.a===-1}function Oy({data:e,colorA:t,colorB:a,labelA:r,labelB:i,barWidth:s=10,barGap:l=1,height:u=140,maxOverride:c,tightMax:d,seriesColors:m,seriesLabels:p,rateLabels:C,grouped:y=!1,baseline:v,focusableBars:f=!1}){const h=!a,_=!!(m&&m.length>0),g=v,k=o.useMemo(()=>_?Math.max(0,...e.filter(H=>!En(H,g==null)).map(H=>y?Math.max(0,...(H.parts??[]).map(_t)):(H.parts??[]).reduce((U,P)=>U+Math.max(0,_t(P)),0))):Math.max(0,...e.filter(H=>!En(H,g==null)).flatMap(H=>h?[_t(H.a)]:[_t(H.a),_t(H.b)])),[e,h,_,y]),b=o.useMemo(()=>{if(g==null)return 0;const H=e.filter(U=>!En(U,g==null)).flatMap(U=>_?(U.parts??[]).map(_t):h?[_t(U.a)]:[_t(U.a),_t(U.b)]);return Math.max(0,...H.map(U=>Math.abs(U-g)))},[e,g,_,h]),N=o.useMemo(()=>{const H=g!=null?b:k;return c??(d?H>0?H:10:Math.ceil(H/10)*10||10)},[k,b,g,c,d]),x=u,B=_?y?Math.max(1,m.length):1:h?1:2,w={"--bar-width":`${o.useMemo(()=>{const H=Math.max(1,e.length);return Math.max(2,Math.min(s,Math.round(120/(H*B)+6)))},[e.length,B,s])}px`},A={"--bar-group-gap":`${Math.max(0,l)}px`},D=o.useMemo(()=>{const H=Math.round(N/2);return g!=null?[g+N,...H!==N?[g+H]:[],g,...H!==N?[g-H]:[],g-N]:H!==N?[N,H,0]:[N,0]},[N,g]),E=H=>g!=null?1-(H-(g-N))/(2*N):1-H/N,[O,R]=o.useState(null),K=o.useCallback(()=>R(null),[]),M=o.useCallback((H,U)=>{const P=[H.label,H.sublabel].filter(Boolean).join(" ");let z;if(_&&y&&H.rawPartsB)z=(p??[]).map((V,F)=>{const S=H.rawPartsB[F]??0;return{text:S>0?`${V}: ${U[F]??0}% (${H.rawParts?.[F]??0}/${S})`:`${V}: -`,color:(m??[])[F]}});else if(_&&y)z=(p??[]).map((V,F)=>({text:`${V}: ${G(U[F]??0)}`,color:(m??[])[F]}));else if(_){const V=(p??[]).map((S,j)=>({text:`${S}: ${U[j]??0}`,color:(m??[])[j]})),F=V.filter((S,j)=>(U[j]??0)>0);z=F.length?F:V}else C&&!h?z=[{text:`${r} ${_t(H.a)}%`,color:t},{text:`${i} ${_t(H.b)}%`,color:a}]:C&&H.rawB!==void 0?z=[{text:`${C.total} ${H.rawB}`},{text:`${C.done} ${H.rawA??0}`,color:t}]:h?z=[{text:`${r}: ${_t(H.a)}`,color:t}]:z=[{text:`${r}: ${_t(H.a)}`,color:t},{text:`${i}: ${_t(H.b)}`,color:a}];return{title:P,items:z}},[_,y,p,m,C,h,r,i,t,a,g]),L=o.useCallback((H,U,P)=>{const z=H.getBoundingClientRect(),{title:V,items:F}=M(U,P);R({rect:{left:z.left,top:z.top,right:z.right,bottom:z.bottom,width:z.width,height:z.height},title:V,items:F})},[M]),$=o.useCallback((H,U)=>{const{title:P,items:z}=M(H,U);return[P,...z.map(V=>V.text)].filter(Boolean).join(", ")},[M]),G=H=>g!=null&&H>g?`+${H}`:`${H}`,W=O!=null;return o.useEffect(()=>{if(!W)return;const H=()=>R(null),U=P=>{const z=P.target;z&&typeof z.closest=="function"&&z.closest(".manager-bar-chart-col")||R(null)};return window.addEventListener("scroll",H,!0),document.addEventListener("pointerdown",U,!0),()=>{window.removeEventListener("scroll",H,!0),document.removeEventListener("pointerdown",U,!0)}},[W]),n.jsxs("div",{className:"manager-bar-chart-wrap",style:A,children:[n.jsx("div",{className:"manager-bar-chart-inner",children:n.jsx("div",{className:"manager-bar-chart-scroll",children:n.jsxs("div",{className:"manager-bar-chart-area",children:[n.jsxs("div",{className:"manager-bar-chart-plot",style:{height:x},children:[D.slice(0,-1).map((H,U)=>n.jsx("div",{className:`manager-bar-chart-gridline${g!=null&&H===g?" manager-bar-chart-gridline--baseline":""}`,style:{top:E(H)*x},children:n.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:H})},U)),e.map((H,U)=>{const P=En(H,g==null),z=x/2,V=I=>g!=null?Math.min(z,Math.abs(_t(I)-g)/N*z):Math.min(x,Math.max(0,_t(I)/N*x)),F=P?0:V(H.a),S=P?0:V(H.b),j=(H.parts??[]).map(_t);return n.jsx("div",{className:`manager-bar-chart-col${y&&_?" manager-bar-chart-col--group":""}`,style:{cursor:P?"default":"pointer"},tabIndex:f&&!P?0:void 0,role:f&&!P?"img":void 0,"aria-label":f&&!P?$(H,j):void 0,onMouseEnter:P?void 0:I=>L(I.currentTarget,H,j),onFocus:P||!f?void 0:I=>L(I.currentTarget,H,j),onBlur:f?K:void 0,onMouseLeave:K,children:!P&&(_&&y?(m??[]).map((I,q)=>{const re=j[q]??0;if(g==null)return n.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:V(re),background:I}},q);const ne=_t(re)<g;return n.jsxs("div",{className:"manager-bar-chart-slot",style:w,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!ne&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:V(re),background:I}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:ne&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:V(re),background:I}})})]},q)}):_?n.jsx("div",{className:"manager-bar-chart-stack",style:w,children:(()=>{const I=j.reduce((re,ne,le)=>ne>0?le:re,-1);let q=x;return j.map((re,ne)=>{if(re<=0)return null;const le=Math.min(q,re/N*x);return q-=le,n.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:le,background:(m??[])[ne],borderRadius:ne===I?"6px 6px 0 0":void 0}},ne)})})()}):g!=null?n.jsx(n.Fragment,{children:[{v:_t(H.a),c:t},...h?[]:[{v:_t(H.b),c:a}]].map(({v:I,c:q},re)=>n.jsxs("div",{className:"manager-bar-chart-slot",style:w,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:I>=g&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:V(I),background:q}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:I<g&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:V(I),background:q}})})]},re))}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:F,background:t}}),!h&&n.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:S,background:a}})]}))},U)})]}),n.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((H,U)=>{const P=En(H,g==null);return n.jsxs("span",{className:`manager-bar-chart-x-axis__label${P?" manager-bar-chart-x-axis__label--future":""}`,children:[n.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[H.isToday&&n.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),H.label]}),H.sublabel&&n.jsx("span",{className:"caption-1",children:H.sublabel})]},U)})})]})})}),O&&n.jsx(Gn,{anchorRect:O.rect,title:O.title,items:O.items,showIndex:!1,closeOnOutsideClick:!1})]})}function gu({control:e}){const{t}=xe.useTranslation(),{activeOptions:a,activeIdx:r,range:i,setRange:s,handlePrev:l,handleNext:u,periodOptions:c,period:d,setPeriod:m}=e,p=d==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),C=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(pe,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:p,showTooltipInfo:p,disabled:r===a.length-1,onClick:l}),n.jsx(pn,{value:i,onChange:s,options:a,size:40,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),n.jsx(pe,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:C,showTooltipInfo:C,disabled:r<=0,onClick:u}),n.jsx(gn,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:c,value:d,onChange:y=>m(y),size:40})]})}function Lo(e,t,a,r=!0){const i=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(s,l)=>{const u=new Date(t);u.setDate(t.getDate()+l);const c=(e[jo(u)]?.daily??[])[u.getDate()-1],d=c!=null&&En(c,r)||u>i;return{dt:u,entry:c,isFuture:d}})}function Hy(e,t,a,r=!0){const{period:i,monthRange:s,weekRange:l,weekRanges:u,DOW:c}=t,d=ra(),m=d.getFullYear(),p=d.getMonth()+1,C=d.getDate();if(i==="month"){const f=e[s]??{weekly:[],daily:[]},h=ua(s),_=h?h.year:null,g=h?h.month1:null,k=_&&g?bn(_,g-1):1;return f.weekly.map((b,N)=>{const x=N+1;let B=b.label,w=!1,A=!1;if(_&&g){const D=k+N*7,E=new Date(_,g-1,D+6),O=E.getMonth()+1,R=E.getDate(),K=O===g?`${R}`:`${O}/${R}`;B=a("manager.chart.weekRange",{start:D,end:K});const M=new Date(m,p-1,C).getTime();w=M>=new Date(_,g-1,D).getTime()&&M<=E.getTime(),A=_>m||_===m&&(g>p||g===p&&D>C)}return{...b,label:B,sublabel:Cu(a,x-1),isToday:w,future:b.future===!0||A||void 0,a:A?-1:b.a,b:A?0:b.b}})}const y=u.find(f=>f.value===l);if(!y)return[];const v=new Date(y.year,y.month-1,bn(y.year,y.month-1)+y.week*7);return Lo(e,v,d,r).map(({dt:f,entry:h,isFuture:_})=>{const g=f.getMonth()+1,k=f.getDate(),b=f.getFullYear();return{label:g===y.month&&b===y.year?`${k}`:`${g}/${k}`,sublabel:c[f.getDay()]??"",future:_||void 0,a:_?-1:h&&h.a>0?h.a:0,b:_?0:h&&h.b>0?h.b:0,isToday:b===m&&g===p&&k===C,...h?.parts?{parts:_?h.parts.map(()=>0):h.parts}:{},...h?.partsB?{partsB:_?h.partsB.map(()=>0):h.partsB}:{}}})}const Vy={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function zy({focusableBars:e,size:t="medium",barWidth:a,titleKey:r,titleLevel:i,data:s,colorA:l,colorB:u,labelAKey:c,labelBKey:d,showTotal:m=!1,totalUnitKey:p,totalLabelKey:C,control:y,hideControls:v=!1,rate:f=!1,rateAgg:h="dayMean",tightMax:_=!1,avgMode:g=!1,totalFormat:k,series:b,seriesMode:N="stack",loading:x=!1,onDetail:B,headExtra:w,headSegment:A,icon:D,disc:E,onClick:O,cardAriaLabel:R,cardTooltip:K,detailSize:M=32,barGap:L,baseline:$,className:G,inGrid:W=!1}){const{t:H}=xe.useTranslation(),U=Vy[t],P=fu(s),z=y??P,V=o.useMemo(()=>Hy(s,z,H,$==null),[s,z,H,$]),F=N==="group"&&!!b&&b.length>0;L!=null&&!F&&St("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 S=o.useMemo(()=>{if(!f)return V;const Y=z.period==="month"?ua(z.monthRange):null,oe=ra(),ke=b?.length??0,Z=Q=>{const me=[],De=[],be=[];for(let te=0;te<ke;te++){let ue=0,Ce=0,ge=0;for(const fe of Q){const $e=_t(fe.a[te]),ze=_t(fe.b[te]);ze<=0||(ue+=$e,Ce+=ze,ge+=$e/ze*100)}me.push(h==="weighted"?Ce>0?Math.round(ue/Ce*100):0:Q.length?Math.round(ge/Q.length):0),De.push(ue),be.push(Ce)}return{pct:me,ra:De,rb:be}};return V.map((Q,me)=>{let De=Q.a===-1?-1:Q.b>0?Math.round(Q.a/Q.b*100):0;if(Y&&!En(Q)){const te=Y.year,ue=Y.month1-1,Ce=Lo(s,new Date(te,ue,bn(te,ue)+me*7),oe).filter(ge=>!ge.isFuture);if(h==="weighted"){let ge=0,fe=0;for(const{entry:$e}of Ce)$e&&$e.b>0&&(ge+=$e.a,fe+=$e.b);De=fe>0?Math.round(ge/fe*100):0}else De=Ce.length?Math.round(Ce.reduce((ge,{entry:fe})=>ge+(fe&&fe.b>0?fe.a/fe.b*100:0),0)/Ce.length):0}let be=null;if(F&&!En(Q)){let te;if(Y){const Ce=Y.year,ge=Y.month1-1;te=Lo(s,new Date(Ce,ge,bn(Ce,ge)+me*7),oe).filter(fe=>!fe.isFuture).map(({entry:fe})=>({a:fe?.parts??[],b:fe?.partsB??[]}))}else te=[{a:Q.parts??[],b:Q.partsB??[]}];const ue=Z(te);be={parts:ue.pct,rawParts:ue.ra,rawPartsB:ue.rb}}return{...Q,a:De,b:Q.a===-1?0:d&&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,...be??{}}})},[V,f,h,d,z.period,z.monthRange,s,F,b?.length]),j=o.useMemo(()=>{if(f||g){const oe=(z.period==="week"?V:s[z.monthRange]?.daily??[]).filter(Z=>Z.a!==-1);if(oe.length===0)return 0;if(f&&h==="weighted"){let Z=0,Q=0;for(const me of oe)me.b>0&&(Z+=me.a,Q+=me.b);return Q>0?Math.round(Z/Q*100):0}const ke=f?oe.reduce((Z,Q)=>Z+(Q.b>0?Q.a/Q.b*100:0),0):oe.reduce((Z,Q)=>Z+(Q.a>0?Q.a:0),0);return Math.round(ke/oe.length)}const Y=z.period==="month"?s[z.monthRange]?.daily??[]:S;return $!=null?Y.reduce((oe,ke)=>oe+(En(ke,!1)?0:_t(ke.a)+(d?_t(ke.b):0)),0):Y.reduce((oe,ke)=>oe+(ke.a>0?ke.a:0)+(d&&ke.b>0?ke.b:0),0)},[S,V,f,h,g,$,d,z.period,z.monthRange,s]),I=b&&b.length>0?b.map(Y=>({color:Y.color,label:Y.label})):[{color:l,label:H(c)},...d?[{color:u,label:H(d)}]:[]],q=t==="small",re=[q?"manager-section--compact":t==="large"?"manager-section--full":void 0,G].filter(Boolean).join(" ")||void 0,ne=r?H(r):"",le=ne?H("trainingStatus.detailFor",{name:ne,defaultValue:"{{name}} \uC0C1\uC138\uBCF4\uAE30"}):H("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30");return n.jsx(To,{className:re,inGrid:W,icon:D,disc:E,onClick:O,ariaLabel:R,tooltip:K,headSegment:A,headMenuItems:B?[{label:le,icon:"list",onClick:B,closeOnSelect:!0}]:void 0,title:H(r),titleLevel:i,titleClassName:q?"h5 chart-section-title--small":void 0,headRight:q?w??void 0:({collapsed:Y})=>n.jsxs(n.Fragment,{children:[!v&&n.jsx(gu,{control:z}),w,B&&!Y&&n.jsx("span",{className:"manager-bar-chart-detail-btn",children:n.jsx(pe,{htmlType:"button",size:M,type:"dot",icon:"list",ariaLabel:le,showTooltipInfo:le,onClick:B})})]}),subRow:n.jsxs(n.Fragment,{children:[m?f||g||C&&k?n.jsx(Ha,{label:q?void 0:`${H(z.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${H(C??c)}`,children:k?(k(j).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((Y,oe)=>/\d/.test(Y)?n.jsx("span",{className:"barchart-total__num h0",children:Y},oe):n.jsx("span",{className:"barchart-total__unit h5",children:Y},oe)):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"barchart-total__num h0",children:j}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:H(p)})]})}):n.jsxs(Ha,{children:[n.jsx("span",{className:"barchart-total__num h0",children:j}),n.jsx("span",{className:"barchart-total__unit h5",children:H(c)}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:H(p)})]}):n.jsx("span",{}),n.jsx(So,{items:I,className:"caption-1"})]}),children:x?n.jsx("div",{className:"manager-bar-chart-wrap manager-bar-chart-loading","aria-busy":"true",children:n.jsx("div",{className:"manager-bar-chart-inner",children:n.jsxs("div",{className:"manager-bar-chart-area manager-bar-chart-area--loading",children:[n.jsx("div",{className:"manager-bar-chart-plot manager-bar-chart-plot--loading",style:{height:U.height},children:n.jsx(Oa,{size:32})}),n.jsx("div",{className:"manager-bar-chart-x-axis","aria-hidden":"true",children:n.jsxs("span",{className:"manager-bar-chart-x-axis__label",children:[n.jsx("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:"\xA0"}),S.some(Y=>!!Y.sublabel)&&n.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):n.jsx(Oy,{focusableBars:e,data:S,colorA:l,colorB:d?u:void 0,labelA:H(c),labelB:d?H(d):void 0,barWidth:a??U.barWidth,barGap:L,baseline:$,height:U.height,maxOverride:f?100:void 0,tightMax:_,seriesColors:b?.map(Y=>Y.color),seriesLabels:b?.map(Y=>Y.label),rateLabels:f?{total:H("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:H("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:F})})}const bu=120,Wy={left:38,right:16,top:26,bottom:24};function qy({points:e=[],range:t,ticks:a=[],axisTitle:r,color:i,height:s=156,fallbackWidth:l=320,insets:u,overlay:c,ariaLabel:d,className:m}){const[p,C]=o.useState(null),[y,v]=o.useState(null);o.useEffect(()=>{if(!y)return;const $=W=>C(Math.round(W)||null);if($(y.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const G=new ResizeObserver(([W])=>$(W.contentRect.width));return G.observe(y),()=>{G.disconnect()}},[y]);const{payload:f,anchorRect:h,openAfterDelay:_,close:g}=Y4(bu),k=o.useCallback(($,G)=>{$&&_($,G.getBoundingClientRect())},[_]),b=p??l,N=s,{left:x,right:B,top:w,bottom:A}={...Wy,...u},[D,E]=t,O=$=>E===D?x:x+(b-x-B)*($-D)/(E-D),R=$=>w+(N-w-A)*(100-$)/100,K={x:O,y:R,plot:{left:x,right:b-B,top:w,bottom:N-A,width:Math.max(0,b-x-B),height:Math.max(0,N-w-A)}},M=e.filter($=>!$.hollow),L=i??"var(--color-main)";return n.jsxs(n.Fragment,{children:[n.jsxs("svg",{ref:v,className:we("line-chart",m),viewBox:`0 0 ${b} ${N}`,role:"img","aria-label":d??e.map($=>$.description).filter(Boolean).join(", "),children:[r&&n.jsx("text",{className:"line-chart__axis-title",x:0,y:12,children:r}),[0,100].map($=>n.jsxs("g",{children:[n.jsx("line",{className:"line-chart__grid",x1:x,x2:b-B,y1:R($),y2:R($)}),n.jsxs("text",{className:"line-chart__tick",x:x-6,y:R($)+4,textAnchor:"end",children:[$,"%"]})]},$)),c?.(K),a.map($=>n.jsx("text",{className:"line-chart__tick",x:O($.x),y:N-5,textAnchor:"middle",children:$.label},$.x)),M.length>1&&n.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:L,points:M.map($=>`${O($.x)},${R($.pct)}`).join(" ")}),e.map($=>n.jsxs("g",{className:"line-chart__dot",onPointerEnter:G=>k($.description,G.currentTarget),onPointerLeave:g,children:[n.jsx("circle",{className:"line-chart__dot-hit",cx:O($.x),cy:R($.pct),r:12}),n.jsx("circle",{className:we("line-chart__dot-main",$.hollow&&"is-hollow"),cx:O($.x),cy:R($.pct),r:4,stroke:L,fill:$.hollow?void 0:L})]},$.x))]}),f!=null&&n.jsx(cn,{anchorRect:h,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:f,children:f})]})}function Uy({icon:e,iconSize:t=56,title:a,titleClass:r="h2",description:i,tipGroups:s,start:l,className:u}){return n.jsxs("div",{className:we("game-intro",u),children:[e!=null&&n.jsx("span",{className:"game-intro__icon","aria-hidden":"true",style:{"--game-intro-icon":`${t}px`},children:e}),n.jsx("h2",{className:we("game-intro__title",r),children:a}),i!=null&&n.jsx("p",{className:"game-intro__description body-3",children:i}),s?.map((c,d)=>n.jsxs("div",{className:"game-intro__tips",children:[c.title!=null&&n.jsx("span",{className:"game-intro__tips-title body-3",children:c.title}),c.tips.map((m,p)=>n.jsxs("span",{className:"game-intro__tip body-3",children:[m.icon!=null&&n.jsx("span",{"aria-hidden":"true",children:m.icon}),n.jsx("span",{children:m.text})]},p))]},d)),l&&n.jsx(pe,{htmlType:"button",className:l.className,variant:"main",color:l.color,size:48,width:"100%",disabled:l.disabled,onClick:l.onClick,children:l.label})]})}const yu=(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")}`},vu=(e,t,a,r)=>({from:Ti(e,t,a),to:new Date(Ti(e,t,a+r).getTime()-1),fromYmd:yu(e,t,a),toYmd:yu(e,t,a+r-1)});function Gy(e,t=0){if(e.period==="month"){const i=ua(e.monthRange),s=ra(),l=i?i.year:s.getFullYear(),u=(i?i.month1:s.getMonth()+1)-1+t,c=new Date(Date.UTC(l,u+1,0)).getUTCDate();return vu(l,u,1,c)}const a=e.weekRanges.find(i=>i.value===e.weekRange);if(!a){const i=new Date,s=Na();return{from:i,to:i,fromYmd:s,toYmd:s}}const r=bn(a.year,a.month-1);return vu(a.year,a.month-1,r+(a.week+t)*7,7)}const $o={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function xu(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function _u({done:e,total:t,segments:a,color:r="var(--color-main)",size:i="medium",strokeWidth:s,label:l="%",hideCenter:u=!1,hideLabel:c=!1}){const d=typeof i=="number"?i:$o[i].diameter,m=s??(typeof i=="number"?12:$o[i].strokeWidth),p=d/2,C=(d-m)/2,y=2*Math.PI*C;if(a&&a.length>0){const _=a.reduce((g,k)=>{const b=g.length>0?g[g.length-1].acc:0,N=Number.isFinite(k.ratio)?k.ratio:0,x=Math.max(0,Math.min(N,1-b));return g.push({color:k.color,rotate:-90+b*360,dash:y*x,acc:b+x}),g},[]);return n.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:p,cy:p,r:C,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),_.map((g,k)=>g.dash>0&&n.jsx("circle",{cx:p,cy:p,r:C,fill:"none",stroke:g.color,strokeWidth:m,strokeDasharray:`${g.dash} ${y}`,strokeLinecap:"round",transform:`rotate(${g.rotate} ${p} ${p})`},k))]})})}const v=(t??0)>0?Math.min((e??0)/t,1):0,f=y*v,h=y-f;return n.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:p,cy:p,r:C,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),v>0&&n.jsx("circle",{cx:p,cy:p,r:C,fill:"none",stroke:r,strokeWidth:m,strokeDasharray:`${f} ${h}`,strokeLinecap:v<.02||v>.98?"butt":"round",transform:`rotate(-90 ${p} ${p})`})]}),!u&&n.jsxs("div",{className:`ring-chart__center${c?"":` ${d<=96?"ring-chart__center--small":i==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[n.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:xu(v)}),!c&&n.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||i==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function Ky({titleKey:e,titleLevel:t,headRight:a,icon:r,showTotal:i,totalLabelKey:s,legend:l,loading:u,className:c,inGrid:d=!1,onClick:m,ariaLabel:p,tooltip:C,...y}){const{t:v}=xe.useTranslation();if(!e)return n.jsx(_u,{...y});const f=(y.total??0)>0?xu(Math.min((y.done??0)/y.total,1)):0,h=y.size==="small",_=typeof y.size=="number"?y.size:$o[y.size??"medium"].diameter,g=y.size==="large",k=[c,h?"manager-section--compact":g?"manager-section--full":""].filter(Boolean).join(" ")||void 0,b=r&&n.jsx("span",{className:"chart-section-icon",children:n.jsx(at,{icon:r,className:"chart-section-icon-inner"})});return n.jsx(To,{className:k,inGrid:d,onClick:m,ariaLabel:p,tooltip:C,title:v(e),titleLevel:t,titleClassName:h?"h5 chart-section-title--small":void 0,headRight:b||(h?void 0:a),subRow:(i||l)&&n.jsxs(n.Fragment,{children:[i?n.jsxs(Ha,{label:!h&&s?v(s):void 0,children:[n.jsx("span",{className:"barchart-total__num h0",children:f}),n.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):n.jsx("span",{}),l&&n.jsx(So,{items:l})]}),children:u?n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx("div",{className:"ring-chart ring-chart--loading",style:{width:_,height:_},"aria-busy":"true",children:n.jsx(Oa,{size:32})})}):n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx(_u,{...y,hideCenter:y.hideCenter??h})})})}function Yy({label:e,value:t,change:a,changeType:r,icon:i,tooltip:s,onClick:l,children:u}){const c=o.useRef(null),{anchorRect:d,openAt:m,close:p}=Sa(),C=o.useCallback(()=>{s&&c.current&&m(c.current)},[s,m]),y=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),v=a===void 0?void 0:a>0?`+${a}`:`${a}`,f=o.useCallback(h=>{l&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),l())},[l]);return n.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?f:void 0,onPointerEnter:C,onPointerLeave:p,onFocus:C,onBlur:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,t,v].filter(h=>h!==void 0&&h!=="").join(" "):void 0,children:[s&&d&&n.jsx(Bn,{anchorRect:{left:d.left,top:d.top+21,right:d.right,bottom:d.bottom,width:d.width,height:d.height},text:s}),n.jsxs("div",{className:"manager-stat-card__label-row",children:[n.jsx("span",{className:"manager-stat-card__label h5",children:e}),i&&n.jsx("span",{className:"manager-stat-card__icon",children:n.jsx(at,{icon:i,className:"manager-stat-card__icon-inner"})})]}),n.jsxs("div",{className:"manager-stat-card__content",children:[n.jsxs("div",{className:"manager-stat-card__left",children:[n.jsx("div",{className:"manager-stat-card__value h2",children:t}),v&&n.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${y??"neutral"} caption-1`,children:v})]}),u&&n.jsx("div",{className:"manager-stat-card__body",children:u})]})]})}function wu({value:e,onChange:t,min:a=0,max:r=100,step:i=1,orientation:s="horizontal",size:l=24,disabled:u=!1,ariaLabel:c,length:d,className:m,label:p,formatValue:C,labelPos:y,labelAlign:v="right",showMinMax:f=!1,minLabel:h,maxLabel:_,showBgTick:g=!1,showFillTick:k=!1,tickStep:b,tickShape:N="dot"}){t&&!c&&St("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const x=Math.min(r,Math.max(a,e)),B=r>a?(x-a)/(r-a):0,w=s==="vertical",A=!t,D=V=>t?.(Number(V.target.value)),E=typeof d=="number"?`${d}px`:d,O={"--slider-ratio":String(B),"--slider-thumb":`${l}px`,...E?w?{height:E}:{width:E}:{}},R=b??i,K=(g||k)&&R>0&&r>a?Math.floor((r-a)/R+1e-6):0;if(K>0&&K<=100){const V=N!=="dash",F=re=>V?`radial-gradient(circle, ${re} 0.5px, transparent 1px)`:w?`linear-gradient(to bottom, transparent calc(50% - 2px), ${re} calc(50% - 2px), ${re} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${re} calc(50% - 2px), ${re} calc(50% + 2px), transparent calc(50% + 2px))`,S=V?"2px":"4px",j=[],I=[],q=[];for(let re=0;re<=K;re++){const ne=re*R/(r-a);if(ne>1+1e-6)break;const le=`${((w?1-ne:ne)*100).toFixed(4)}%`,Y=ne<=B+1e-6;if(Y?!k:!g)continue;const oe=Y?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";j.push(F(oe)),I.push(w?`${S} var(--slider-thumb)`:`var(--slider-thumb) ${S}`),q.push(w?`center ${le}`:`${le} center`)}j.push(w?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),I.push("100% 100%"),q.push("0 0"),O.backgroundImage=j.join(", "),O.backgroundSize=I.join(", "),O.backgroundPosition=q.join(", "),O.backgroundRepeat="no-repeat"}const M=C?C(x):p==="percent"?`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`:p==="count"?`${x} / ${r}`:x===a&&h?h:x===r&&_?_:void 0,L=n.jsx("input",{type:"range",className:we("slider",`slider--${s}`,A&&"slider--static",!p&&!f&&m),min:a,max:r,step:i,value:x,disabled:u,readOnly:A,tabIndex:A?-1:void 0,"aria-label":c,"aria-valuetext":M,"aria-orientation":s,onChange:D,style:O});if(!p&&!f)return L;const $=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:h??a}),G=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:_??r}),W=f?n.jsxs("div",{className:we("slider-track-group",`slider-track-group--${s}`,!p&&m),children:[w?G:$,L,w?$:G]}):L;if(!p)return W;const H=y??(w?"bottom":"right"),U=`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`,P=C?C(x):p==="percent"?U:p==="count"?`${x} / ${r}`:String(x),z=n.jsx("span",{className:"slider-wrap__value body-3b",children:P});return n.jsxs("div",{className:we("slider-wrap",`slider-wrap--${s}`,`slider-wrap--label-${H}`,`slider-wrap--align-${v}`,m),children:[W,z]})}const Zy=.86,Xy=250,Ro=(e,t,a,r)=>Math.round(Math.min(r,Math.max(a,e-t))),Po=(e,t,a,r)=>{const i=Ro(e,t,a,r);return`${i<0?"-":"+"}${Math.abs(i)} dB`};function Fo({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:i,labelPos:s,labelAlign:l="right",floorDb:u=-60,refDb:c=-35,displayMin:d=-5,displayMax:m=25,className:p,ariaLabel:C}){const y=o.useRef(null),v=o.useRef(null),f=o.useRef(null),h=o.useRef(null),[_,g]=o.useState(null);o.useEffect(()=>{const x=L=>{const $=Po(L,c,d,m);f.current&&(f.current.textContent=$);const G=y.current;G&&(G.setAttribute("aria-valuenow",String(Ro(L,c,d,m))),G.setAttribute("aria-valuetext",$))},B=e??RC(t)??(_&&_.el===t?_.node:null),w=v.current;if(!B||!w){w?.style.setProperty("--meter-level","0"),x(u);let L=!1;return!e&&t&&Ka(t).then($=>{!L&&$&&g({el:t,node:$})}),()=>{L=!0}}Xr();const A=new Float32Array(B.fftSize);let D=0,E=0,O=0,R=0,K=null;const M=L=>{const $=PC(B,A);D=$>D?$:D*Zy;const G=D>1e-5?20*Math.log10(D):-1/0,W=Math.max(u,G),H=W-c,U=Math.min(1,Math.max(0,(H-d)/(m-d)));if(w.style.setProperty("--meter-level",U.toFixed(3)),E+=W,O+=1,L-R>=Xy){const P=E/O;K=K==null?P:K*.6+P*.4,x(K),E=0,O=0,R=L}h.current=requestAnimationFrame(M)};return h.current=requestAnimationFrame(M),()=>{h.current!=null&&cancelAnimationFrame(h.current),h.current=null}},[e,t,_,u,c,d,m]);const k=typeof r=="number"?`${r}px`:r,b=n.jsx("div",{className:"audio-meter__track",style:k?a==="vertical"?{height:k}:{width:k}:{},children:n.jsx("div",{ref:v,className:"audio-meter__fill"})}),N=s??(a==="vertical"?"bottom":"right");return n.jsxs("div",{ref:y,className:we("audio-meter",`audio-meter--${a}`,i&&`audio-meter--label-${N}`,i&&`audio-meter--align-${l}`,p),role:"meter","aria-label":C,"aria-valuemin":d,"aria-valuemax":m,"aria-valuenow":Ro(u,c,d,m),"aria-valuetext":Po(u,c,d,m),children:[b,i&&n.jsx("span",{ref:f,className:"audio-meter__value caption-2",children:Po(u,c,d,m)})]})}const Bu=260;function Au({message:e,position:t,duration:a,onClose:r}){const[i,s]=o.useState(!1),[l,u]=o.useState(!1),c=o.useRef(l),d=o.useRef(i);o.useEffect(()=>{c.current=l},[l]),o.useEffect(()=>{d.current=i},[i]);const m=o.useRef(null),p=o.useRef(""),C=o.useRef(r);o.useEffect(()=>{C.current=r});const y=a,v=o.useRef(null),f=o.useRef(0),h=o.useRef(0),_=o.useRef(!1),g=o.useRef(null),k=o.useRef(null),b=o.useRef(null),N=o.useRef(null),x=o.useRef(()=>{});x.current=A=>{A<0||(f.current=Date.now(),h.current=A,v.current=setTimeout(()=>{v.current=null,s(!1),g.current=setTimeout(()=>{u(!1);try{C.current()}catch{}},Bu)},A))};const B=o.useCallback(()=>{_.current||!v.current||(_.current=!0,clearTimeout(v.current),v.current=null,h.current=Math.max(0,h.current-(Date.now()-f.current)))},[]),w=o.useCallback(()=>{_.current&&(_.current=!1,x.current(h.current))},[]);return o.useEffect(()=>{if(e!==p.current&&(v.current&&(clearTimeout(v.current),v.current=null),g.current&&(clearTimeout(g.current),g.current=null)),e){if(d.current)return y>0&&!v.current&&(_.current?h.current=y:x.current(y)),p.current=e,()=>{v.current&&(clearTimeout(v.current),v.current=null),g.current&&(clearTimeout(g.current),g.current=null)};const A=()=>{const D=m.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"),N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{N.current=null;try{D.style.opacity="",D.style.transform="",D.style.transition=""}catch{}},60)}catch{}};c.current?(A(),s(!0)):(u(!0),k.current=requestAnimationFrame(()=>{b.current=requestAnimationFrame(()=>{A(),s(!0)})})),y>0&&(_.current=!1,x.current(y))}else s(!1),g.current=setTimeout(()=>u(!1),Bu);return p.current=e,()=>{v.current&&clearTimeout(v.current),g.current&&clearTimeout(g.current),k.current&&cancelAnimationFrame(k.current),b.current&&cancelAnimationFrame(b.current),N.current&&clearTimeout(N.current),v.current=null,g.current=null,k.current=null,b.current=null,N.current=null}},[e,y,t]),{mounted:l,showing:i,popupRef:m,pause:B,resume:w}}function ca({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:i=2e3}){const{mounted:s,showing:l,popupRef:u,pause:c,resume:d}=Au({message:e,position:t,duration:i,onClose:r}),m=o.useRef(null),[p,C]=o.useState(!1);if(o.useEffect(()=>{l?C(!0):s||C(!1)},[l,s]),!s)return null;const y=a==="notice"||a==="warning"?a:"normal",v=n.jsx("div",{ref:u,className:`toast toast--${t} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:f=>{m.current=f.pointerType},onMouseEnter:()=>{m.current!=="touch"&&c()},onMouseLeave:d,onFocusCapture:c,onBlurCapture:d,children:n.jsx("div",{className:`toast__inner toast__inner--${y} body-2`,"aria-hidden":p||l?void 0:!0,children:n.jsx("span",{className:"toast__text",children:e})})});return typeof document<"u"?en.createPortal(v,document.body):v}const Jy=24;function Qy({value:e,max:t=100,size:a=8,color:r,trackColor:i,label:s,formatValue:l,labelPos:u,labelAlign:c="right",ariaLabel:d,className:m}){const p=Number.isFinite(t)&&t>0?t:1,C=Math.max(0,Math.min(Number.isFinite(e)?e:0,p)),y=C/p*100,v=Number.isFinite(t)&&t>0?t:0,f=u??(a>=Jy?"inside":"bottom"),h=f==="center"?"inside":f,_=h==="inside"&&(c==="left"?y>=15:c==="center"?y>=50:y>=85),g={};return r&&(g["--progress-bar-fill"]=r),i&&(g["--progress-bar-track"]=i),n.jsxs("div",{className:we("progress-bar",`progress-bar--${a}`,`progress-bar--label-${h}`,s&&`progress-bar--align-${c}`,s&&_&&"progress-bar--label-on-fill",m),style:g,children:[n.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":C,"aria-valuemin":0,"aria-valuemax":v,"aria-valuetext":s?l?l(C):s==="percent"?void 0:s==="raw"?String(C):`${C} / ${v}`:void 0,"aria-label":d,children:n.jsx("div",{className:"progress-bar__fill",style:{width:`${y}%`}})}),s&&n.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(C):s==="percent"?`${Math.round(y)}%`:s==="raw"?String(C):`${C} / ${v}`})]})}const ku={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},e5="rgba(255, 255, 255, 0.16)";function Nu({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:i,variant:s="numbered",announce:l=!1,ariaLabel:u}){const{t:c}=xe.useTranslation(),d=ln("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const m=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,p=u??c("progress.steps",{current:m+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),C={};if(a&&(C["--pi-inactive-bg"]=a),r&&(C["--pi-inactive-color"]=r),i&&(a||(C["--pi-inactive-bg"]=e5),r||(C["--pi-inactive-color"]="var(--color-white)")),s==="dot")return n.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:C,role:l?"status":"img","aria-label":l?void 0:p,children:[l&&n.jsx("span",{style:ku,children:p}),Array.from({length:e}).map((v,f)=>n.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${f<m?" done":f===m?" active":""}`},f))]});const y=l?n.jsx("span",{role:"status",style:ku,children:p}):null;return d?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:C,role:"list","aria-label":p,children:n.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[m+1," / ",e]})}),y]}):n.jsxs(n.Fragment,{children:[y,n.jsx("div",{className:"progress-indicator",style:C,role:"list","aria-label":p,children:Array.from({length:e}).map((v,f)=>n.jsx("span",{role:"listitem","aria-current":f===m?"step":void 0,className:`progress-indicator-dot ${f<m?" done":f===m?" active":""} body-3`,children:f+1},f))})]})}function t5(e){if(!e)return[];const t=[];let a=0,r="";for(const i of e.trim()){if(i==="("?a++:i===")"&&a--,/\s/.test(i)&&a===0){r&&(t.push(r),r="");continue}r+=i}return r&&t.push(r),t}function n5({children:e,className:t,style:a,rowLabel:r,onRowClick:i}){return n.jsx("div",{role:"cell",className:t?`table-cell ${t}`:"table-cell",style:a,children:r&&i?n.jsx("button",{type:"button",className:"table-cell__row-button","aria-label":r,children:e}):e})}function Io({variant:e="default",children:t,className:a,draggable:r,onClick:i,onMouseEnter:s,onMouseLeave:l,onDragStart:u,onDragEnd:c,expandedContent:d,colSpan:m,describedBy:p,rowHasButton:C}){const y=o.useCallback(v=>{i&&v.target===v.currentTarget&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),i())},[i]);return e==="loading"?n.jsx("div",{role:"presentation",className:"table-row-wrap",children:n.jsx("div",{role:"row",className:"table-row table-row--loading",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row__full-cell",children:n.jsx(Oa,{size:28})})})}):e==="empty"?n.jsx("div",{role:"presentation",className:"table-row-wrap",children:n.jsx("div",{role:"row",className:"table-row table-row--empty body-3",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row__full-cell",children:t})})}):n.jsxs("div",{role:"presentation",className:"table-row-wrap",children:[n.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:i,onKeyDown:i?y:void 0,onMouseEnter:s,onMouseLeave:l,onDragStart:u,onDragEnd:c,role:"row",tabIndex:i&&!C?0:void 0,"aria-describedby":i&&!C?p:void 0,children:t}),d&&n.jsx("div",{role:"row",className:"table-row-expand",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row-expand__cell",children:d})})]})}function a5({dir:e}){return n.jsx(e==="asc"?Hs:Os,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function r5({children:e,onClick:t,className:a,sortDir:r,ariaSort:i,onResizeStart:s}){const l=n.jsxs(n.Fragment,{children:[e,r&&n.jsx(a5,{dir:r})]});return n.jsxs("div",{onClick:t,role:"columnheader","aria-sort":i,className:we("table-field body-3",a,r?"table-field--sorted":"",s?"table-field--resizable":""),children:[t?n.jsx("button",{type:"button",className:"table-field__button",children:l}):l,s&&n.jsx("span",{className:"table-field__resizer",onPointerDown:s,onClick:u=>u.stopPropagation(),"aria-hidden":"true"})]})}function Oo({fields:e=[],headerGroups:t,items:a=[],renderRow:r,onRowClick:i,isRowClickable:s,onRowMouseEnter:l,onRowMouseLeave:u,onRowDragStart:c,onRowDragEnd:d,draggingId:m,gridTemplateColumns:p,mobileGridTemplateColumns:C,resizable:y=!1,resizeMode:v="grow",resizeStorageKey:f,size:h="small",title:_,icon:g,count:k,collapsed:b=!1,onToggleCollapse:N,headerActions:x,empty:B,loading:w,dragOver:A=!1,onDragOver:D,onDragLeave:E,onDrop:O,renderExpandedRow:R,expandedId:K}){const{t:M}=xe.useTranslation(),L=o.useId(),$=`table-title-${L}`,G=`table-row-hint-${L}`,W=ln("(max-width: 767px)"),H=C&&W?C:null,U=y&&!W,P=48,z=o.useRef(()=>P),V=f?`table-cols:${f}`:null,F=o.useRef(null),S=o.useRef(null),j=o.useRef(null),I=o.useRef(null),[q,re]=o.useState(!1),[ne,le]=o.useState(0),Y=o.useCallback(()=>{const se=j.current;se&&(re(se.scrollWidth>se.clientWidth+1),le(se.clientWidth))},[]),oe=o.useCallback((se,Ne)=>{const Ve=se.current;Ve&&S.current&&S.current.unobserve(Ve),se.current=Ne,Ne?(!S.current&&typeof ResizeObserver<"u"&&(S.current=new ResizeObserver(()=>Y())),S.current?.observe(Ne)):!j.current&&!I.current&&(S.current?.disconnect(),S.current=null),Y()},[Y]),ke=o.useCallback(se=>oe(j,se),[oe]),Z=o.useCallback(se=>oe(I,se),[oe]);o.useEffect(()=>{Y()}),o.useEffect(()=>{if(typeof window>"u")return;const se=typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>Y()):null;return window.addEventListener("resize",Y),()=>{se!=null&&cancelAnimationFrame(se),window.removeEventListener("resize",Y)}},[Y]);const Q=o.useRef(()=>!1),me=o.useRef([]),De=o.useRef(null),be=se=>{if(!se||typeof window>"u")return null;try{const Ne=JSON.parse(window.localStorage.getItem(se)??"null");return Array.isArray(Ne)&&Ne.length>0&&Ne.every(Ve=>typeof Ve=="number"&&Number.isFinite(Ve)&&Ve>0)?Ne:null}catch{return null}},[te,ue]=o.useState(()=>be(V)),[Ce,ge]=o.useState(V),[fe,$e]=o.useState(()=>be(V)!==null);if(Ce!==V){ge(V);const se=be(V);ue(se),$e(se!==null)}const ze=o.useRef(te);o.useEffect(()=>{ze.current=te},[te]);const Te=o.useCallback(se=>{const Ne=De.current;if(!Ne)return;const Ve=ze.current;if(Ve){const nt=[...Ve];if(Ne.next!=null&&Ne.startWNext!=null){const Ie=se.clientX-Ne.startX,Ge=Math.max(z.current(Ne.index)-Ne.startW,Math.min(Ne.startWNext-z.current(Ne.next),Ie));nt[Ne.index]=Ne.startW+Ge,nt[Ne.next]=Ne.startWNext-Ge}else nt[Ne.index]=Math.max(z.current(Ne.index),Ne.startW+(se.clientX-Ne.startX));ze.current=nt,ue(nt)}},[]),Fe=o.useCallback(()=>{if(De.current=null,window.removeEventListener("pointermove",Te),window.removeEventListener("pointerup",Fe),window.removeEventListener("pointercancel",Fe),document.body.style.cursor="",document.body.style.userSelect="",V&&ze.current)try{window.localStorage.setItem(V,JSON.stringify(ze.current))}catch{}},[Te,V]),qe=o.useCallback((se,Ne)=>{Ne.preventDefault(),Ne.stopPropagation();const Ve=F.current;if(!Ve)return;const nt=Array.from(Ve.children).map(Ge=>Ge.getBoundingClientRect().width),Ie=v==="fit"?e.findIndex((Ge,bt)=>bt>se&&Ge.resizable!==!1):-1;De.current=Ie>=0?{index:se,startX:Ne.clientX,startW:nt[se],next:Ie,startWNext:nt[Ie]}:{index:se,startX:Ne.clientX,startW:nt[se]},ze.current=nt,ue(nt),$e(!0),window.addEventListener("pointermove",Te),window.addEventListener("pointerup",Fe),window.addEventListener("pointercancel",Fe),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[Te,Fe,v,e]),mt=o.useCallback(()=>{const se=F.current,Ne=se?.closest(".table-wrap");if(!se||!Ne)return null;const Ve=Ne.style.getPropertyValue("--table-grid-cols");Ne.style.setProperty("--table-grid-cols",e.map((et,ot)=>Q.current(ot)?me.current[ot]:"max-content").join(" "));const nt=Array.from(Ne.querySelectorAll(".table-row")).filter(et=>!et.classList.contains("table-row--loading")&&!et.classList.contains("table-row--empty")),Ie=e.map((et,ot)=>{let lt=se.children[ot]?.getBoundingClientRect().width??0;for(const jt of nt){const Vt=jt.children[ot];Vt&&(lt=Math.max(lt,Vt.getBoundingClientRect().width))}const st=Q.current(ot)?parseFloat(me.current[ot]):NaN;return Number.isFinite(st)?st:Math.max(z.current(ot),Math.ceil(lt))}),Ge=window.getComputedStyle(se),bt=se.clientWidth-(parseFloat(Ge.paddingLeft)||0)-(parseFloat(Ge.paddingRight)||0);Ve?Ne.style.setProperty("--table-grid-cols",Ve):Ne.style.removeProperty("--table-grid-cols");let Re=Ie;const tt=Ie.reduce((et,ot,lt)=>et+(Q.current(lt)?ot:0),0),xt=Ie.reduce((et,ot,lt)=>et+(Q.current(lt)?0:ot),0),Lt=bt-tt;if(bt>0&&xt>0&&Lt>0){const et=Lt/xt;Re=Ie.map((lt,st)=>Q.current(st)?lt:Math.max(z.current(st),Math.round(lt*et)));const ot=Math.round(Lt-Re.reduce((lt,st,jt)=>lt+(Q.current(jt)?0:st),0));if(ot!==0){let lt=-1;Re.forEach((st,jt)=>{!Q.current(jt)&&(lt<0||st>Re[lt])&&(lt=jt)}),lt>=0&&(Re[lt]=Math.max(z.current(lt),Re[lt]+ot))}}return Re},[e,v]),ct=(se,Ne)=>se!==null&&se.length===Ne.length&&se.every((Ve,nt)=>Ve===Ne[nt]),rt=o.useRef(mt);o.useEffect(()=>{rt.current=mt});const[Ct,Ae]=o.useState(0),We=a.length>0,_e=`${V??""}|${Ct}|${e.length}|${ne}`,Ue=!fe&&U&&V!==null&&!w?`${_e}|${We?1:0}`:null,Be=o.useRef(null);o.useEffect(()=>{if(Ue===null||!We||Be.current===_e)return;const se=rt.current();se&&(Be.current=_e,ue(Ne=>ct(Ne,se)?Ne:se))},[Ue]);const je=o.useCallback(()=>{if(V)try{window.localStorage.removeItem(V)}catch{}$e(!1);const se=rt.current();ue(se),ze.current=se,Ae(Ne=>Ne+1)},[V]);o.useEffect(()=>()=>{De.current&&(window.removeEventListener("pointermove",Te),window.removeEventListener("pointerup",Fe),window.removeEventListener("pointercancel",Fe),document.body.style.cursor="",document.body.style.userSelect="")},[Te,Fe]);const Se=t5(p),Xe=Se.filter(se=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(se));Xe.length>0&&St(`table-content-track:${p}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${Xe.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${p})`);const Qe=e.findIndex(se=>!!se.sortDir);e.filter(se=>!!se.sortDir).length>1&&St("table-multi-sort","[ihabdevteam-core] Table \uC758 fields \uC5D0 sortDir \uC774 \uB458 \uC774\uC0C1 \uC788\uC2B5\uB2C8\uB2E4. aria-sort \uB294 \uD45C \uD558\uB098\uC5D0 \uD55C \uCE78\uB9CC \uAC00\uC9C8 \uC218 \uC788\uC5B4 \uCCAB \uCE78\uB9CC \uBC29\uD5A5\uC73C\uB85C \uC54C\uB9AC\uACE0 \uB098\uBA38\uC9C0\uB294 none \uC73C\uB85C \uB461\uB2C8\uB2E4.");const dt=se=>se===Qe?e[se].sortDir==="asc"?"ascending":"descending":e[se].onClick?"none":void 0,ht=se=>/^\d+(\.\d+)?px$/.test(Se[se]??""),wt=se=>{const Ne=Se[se]??"",Ve=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(Ne)??/^(\d+(?:\.\d+)?)px$/.exec(Ne);return Ve?parseFloat(Ve[1]):P};Q.current=ht,z.current=wt,me.current=Se;const ft=se=>v==="fit"&&!ht(se)?"fr":"px",Nt=te&&te.length===e.length&&!W,gt=H??(Nt?e.map((se,Ne)=>se.resizable===!1&&Se[Ne]?Se[Ne]:`${te[Ne]}${ft(Ne)}`).join(" "):p),it=gt?{"--table-grid-cols":gt}:void 0,Ke=_!==void 0;return n.jsxs("div",{ref:ke,className:`table-wrap table-wrap--${h}${U?" table-wrap--resizable":""}${A?" table-wrap--dragover":""}${b?" table-wrap--collapsed":""}`,style:it,onDragOver:D,onDragLeave:E,onDrop:O,tabIndex:q?0:void 0,role:q?"region":void 0,"aria-label":q?typeof _=="string"?_:M("table.scrollRegion","\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C"):void 0,children:[!!i&&n.jsx("span",{id:G,className:"table-row-hint",children:M("table.rowActionHint","\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4")}),n.jsxs("div",{ref:Z,role:"table","aria-labelledby":Ke&&typeof _=="string"?$:void 0,className:"table body-2",children:[Ke&&n.jsxs("div",{className:we("table-header",N&&"table-header--clickable"),onClick:N,role:"caption",children:[N&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:b?"chevron-right":"chevron-down",ariaLabel:b?M("common.expand","\uD3BC\uCE58\uAE30"):M("common.collapse","\uC811\uAE30"),ariaExpanded:!b,className:"table-header__chevron"}),g&&n.jsx(at,{icon:g,label:typeof _=="string"?_:void 0,className:"table-header__icon"}),n.jsx("span",{id:$,className:"table-header__title h5b",children:_}),k!==void 0&&n.jsx("span",{className:"table-header__count body-3b",children:k}),x&&n.jsx("span",{className:"table-header__actions",onClick:se=>se.stopPropagation(),children:x})]}),!b&&n.jsxs(n.Fragment,{children:[t&&t.length>0&&n.jsx("div",{role:"row",className:"table-fields table-fields--groups",children:t.map((se,Ne)=>n.jsx("div",{role:"columnheader","aria-colspan":se.span,className:we("table-field body-3",se.className),style:{gridColumn:`span ${se.span}`},children:se.label},Ne))}),n.jsxs("div",{role:"presentation",className:we("table-fields-strip",U&&"table-fields-strip--resizable"),children:[n.jsx("div",{role:"row",className:"table-fields",ref:F,children:e.map((se,Ne)=>n.jsx(r5,{onClick:se.onClick,className:se.className,sortDir:se.sortDir,ariaSort:dt(Ne),onResizeStart:U&&Ne<e.length-1&&se.resizable!==!1&&(v!=="fit"||e.some((Ve,nt)=>nt>Ne&&Ve.resizable!==!1))?Ve=>qe(Ne,Ve):void 0,children:se.label},Ne))}),U&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:M("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:M("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:je})]}),n.jsx("div",{role:"rowgroup",className:"table-body",children:w?n.jsx(Io,{variant:"loading",colSpan:e.length||void 0}):a.length===0&&B?n.jsx(Io,{variant:"empty",colSpan:e.length||void 0,children:B}):a.map((se,Ne)=>{const Ve=m!=null&&se.id===m,nt=!!i&&(s?s(se):!0),Ie=K!=null&&se.id!=null&&(K instanceof Set?K.has(se.id)||[...K].some(Ge=>String(Ge)===String(se.id)):String(se.id)===String(K));return n.jsx(Io,{className:`${nt?" table-row--clickable":""}${c?" table-row--draggable":""}${Ve?" table-row--dragging":""}`.trim(),draggable:!!c,onClick:nt?()=>i(se):void 0,colSpan:e.length||void 0,rowHasButton:r(se).some(Ge=>!!Ge.rowLabel),describedBy:G,onMouseEnter:l?Ge=>l(se,Ge):void 0,onMouseLeave:u?Ge=>u(se,Ge):void 0,onDragStart:c?Ge=>c(se,Ge):void 0,onDragEnd:d?Ge=>d(se,Ge):void 0,expandedContent:Ie&&R?R(se):void 0,children:r(se).map((Ge,bt)=>n.jsx(n5,{className:Ge.className,style:Ge.style,rowLabel:nt?Ge.rowLabel:void 0,onRowClick:nt?()=>i(se):void 0,children:Ge.content},bt))},se.id!=null?`${typeof se.id}:${se.id}`:`__idx:${Ne}`)})})]})]})]})}const o5={hearingAid:"hearingAid",cochlearImplant:"cochlearImplant",other:"other",\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant",\uAE30\uD0C0:"other"};function Eu(e){return e?o5[e]??null:null}function Du(e){switch(Eu(e)){case"hearingAid":return"main";case"cochlearImplant":return"sub";default:return"default"}}function Su(e,t){const a=Eu(e);return a?t(`device.type.${a}`,{defaultValue:e??""}):e??""}const da=e=>e==null?"":String(e).trim();function Ho(e,t,a,r){const i=da(e),s=da(t),l=da(a);if(r&&i&&s&&l){const c=`${i.padStart(4,"0")}-${s.padStart(2,"0")}-${l.padStart(2,"0")}`,d=new Date(c);if(!Number.isNaN(d.getTime())&&d.toISOString().slice(0,10)===c){const m=Si(c,r);if(m)return m}}const u=[i,s,l];for(;u.length>0&&u[u.length-1]==="";)u.pop();return u.join(".")}function s5(e,t,a){const r=da(e);return r?`${r}-${da(t).padStart(2,"0")}-${da(a).padStart(2,"0")}`:""}function Tu(e,t){return t!=="wornAt"?String(e[t]??""):s5(e.wornYear,e.wornMonth,e.wornDay)}function i5({rows:e,loading:t,onSelect:a,onDelete:r,onWear:i,onRelease:s,onAdd:l}){const{t:u,i18n:c}=xe.useTranslation(),d=h=>h==="left"?u("device.direction.left","\uC88C"):u("device.direction.right","\uC6B0"),{sort:m,field:p}=O4(),C=o.useMemo(()=>{if(!m)return e;const{key:h,asc:_}=m;return[...e].sort((g,k)=>{if(h==="worn"){const b=Number(k.worn)-Number(g.worn);return _?b:-b}return bo(Tu(g,h),Tu(k,h),_)})},[e,m]),{pageRows:y,pageSizeProps:v,paginationProps:f}=I4(C,m);return n.jsxs("div",{className:"dlp-side-table",children:[n.jsx(Do,{count:{value:e.length,unit:u("customers.device.unit","\uAC1C")},pageSize:v,pagination:f,actions:l&&n.jsx(pe,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:u("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:l})}),n.jsx(Oo,{loading:t,resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...p(u("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},p(u("device.direction.label","\uBC29\uD5A5"),"side"),p(u("device.deviceType","\uC885\uB958"),"device"),p(u("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),p(u("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),p(u("device.productName","\uC81C\uD488\uBA85"),"productName"),p(u("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...r?[{label:"",resizable:!1}]:[]],items:y.map((h,_)=>({id:h.id??`${h.side}-${_}`,row:h})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${r?" 80px":""}`,renderRow:({row:h})=>[{content:n.jsx("span",{className:"dlp-worn-check",onClick:_=>_.stopPropagation(),children:n.jsx(du,{checked:h.worn,disabled:h.worn?!s:!i,ariaLabel:h.worn?u("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):u("customers.device.wear","\uCC29\uC6A9"),onChange:_=>{_?i?.(h):s?.(h)}})})},{content:n.jsx("span",{children:d(h.side)})},{content:h.device?n.jsx(kt,{size:"small",variant:Du(h.device),fill:"soft",label:Su(h.device,u)}):n.jsx("span",{})},{content:n.jsx("span",{children:h.brand})},{content:n.jsx("span",{children:h.fitType||"-"})},{content:n.jsx("span",{children:h.productName||"-"})},{content:n.jsx("span",{className:"dlp-date",children:Ho(h.wornYear,h.wornMonth,h.wornDay,c.language)||"-"})},...r?[{content:n.jsx("span",{className:"dlp-row-actions",children:n.jsx(pe,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:u("common.delete","\uC0AD\uC81C"),onClick:_=>{_?.stopPropagation(),r(h)}})})}]:[]],onRowClick:({row:h})=>a(h),empty:u("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function ju(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 l5(e,t){return new Date(e,t+1,0).getDate()}function u5(e,t){return new Date(e,t,1).getDay()}function c5({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:r,today:i}){const{t:s,i18n:l}=xe.useTranslation(),u=o.useMemo(()=>s("calendar.dow",{returnObjects:!0}),[s]),c=ao(i),[d,m]=o.useState(()=>Number(c.slice(0,4))),[p,C]=o.useState(()=>Number(c.slice(5,7))-1),[y,v]=o.useState(null),f=o.useRef(null),h=o.useMemo(()=>{const x={};return e.forEach(B=>{x[B.date]||(x[B.date]=[]),x[B.date].push(B)}),x},[e]),_=o.useMemo(()=>{const x=l5(d,p),B=u5(d,p),w=[];for(let A=0;A<B;A++)w.push(null);for(let A=1;A<=x;A++)w.push(A);for(;w.length<35;)w.push(null);return w},[d,p]),g=o.useCallback(()=>{p===0?(m(x=>x-1),C(11)):C(x=>x-1)},[p]),k=o.useCallback(()=>{p===11?(m(x=>x+1),C(0)):C(x=>x+1)},[p]),b=x=>`${d}-${String(p+1).padStart(2,"0")}-${String(x).padStart(2,"0")}`,N=x=>b(x)===c;return n.jsxs("div",{children:[n.jsxs("div",{className:"calendar-nav",children:[n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:g,"aria-label":s("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(at,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),n.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:er(s,l.language,d,p+1)}),n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:k,"aria-label":s("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(at,{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:s("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:s("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:s("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),n.jsxs("div",{className:"calendar-grid",children:[u.map(x=>n.jsx("div",{className:"calendar-day-header body-3",children:x},x)),_.map((x,B)=>{if(x===null)return n.jsx("div",{className:"calendar-cell empty"},`empty-${B}`);const w=x,A=b(w),D=h[A]??[],E=Si(A,l.language),O=y===A;return n.jsxs("div",{className:`calendar-cell${N(w)?" today":""}${O?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?s("calendar.addOnDate",{date:A}):void 0,"aria-current":N(w)?"date":void 0,onClick:r?()=>r(A):void 0,onKeyDown:r?R=>{R.target===R.currentTarget&&(R.key!=="Enter"&&R.key!==" "||(R.preventDefault(),r(A)))}:void 0,onDragOver:a?R=>{R.preventDefault(),v(A)}:void 0,onDragLeave:a?R=>{R.currentTarget.contains(R.relatedTarget)||v(null)}:void 0,onDrop:a?R=>{R.preventDefault(),f.current!=null&&(a(f.current,A),f.current=null),v(null)}:void 0,children:[n.jsx("div",{className:"calendar-cell__number body-3",children:w}),D.length>0&&(()=>{const R=[{key:"visited",label:s("calendar.legend.visited","\uBC29\uBB38"),count:D.filter(M=>(M.status??"visited")==="visited").length},{key:"scheduled",label:s("calendar.legend.scheduled","\uC608\uC57D"),count:D.filter(M=>M.status==="scheduled").length},{key:"noVisit",label:s("calendar.legend.noVisit","\uBBF8\uBC29\uBB38"),count:D.filter(M=>M.status==="noVisit").length}].filter(M=>M.count>0),K=R.length===1&&R[0].key==="visited"?s("calendar.visitCount",{count:D.length,defaultValue:"\uBC29\uBB38 {{count}}\uAC74"}):R.map(M=>s("calendar.statusCount",{label:M.label,count:M.count,defaultValue:"{{label}} {{count}}\uAC74"})).join(" \xB7 ");return n.jsxs("span",{className:"calendar-cell__visit-count caption-1","aria-label":`${E} ${K}`,children:[R.map(M=>n.jsx("span",{className:`calendar-cell__visit-dot calendar-cell__visit-dot--${M.key}`,"aria-hidden":"true"},M.key)),D.length]})})(),n.jsx("div",{className:"calendar-cell__badges",children:D.map((R,K)=>n.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${R.status==="noVisit"?" calendar-visit-badge--no-visit":R.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?M=>{f.current=R.id,M.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{f.current=null,v(null)}:void 0,onClick:t?M=>{M.stopPropagation(),t(R)}:void 0,...ju(t?()=>t(R):void 0),"aria-label":[E,R.time?Li(R.time,s):null,R.customer,s(R.status==="noVisit"?"calendar.legend.noVisit":R.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[R.time&&n.jsx("span",{className:"calendar-visit-badge__time body-3",children:Li(R.time,s)}),n.jsx("span",{className:"calendar-visit-badge__name body-3",children:R.customer}),R.status==="noVisit"&&n.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:s("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},R.id??K))})]},w)})]})]})}const d5={page:"h3",pagePopup:"h4",popup:"h5"};function pa({type:e="page",title:t,headingLevel:a=2,icon:r,action:i,disc:s,children:l,inGrid:u=!1,className:c,style:d}){const m=d5[e],p=t||s||i||r,C=a?`h${a}`:"div";return n.jsxs("div",{className:we("section",`section--${e}`,u&&"section--in-grid",c),style:d,children:[p&&n.jsxs("div",{className:"section__header",children:[n.jsxs("div",{className:"section__title-row",children:[r&&n.jsx(at,{icon:r,label:typeof t=="string"?t:void 0,className:"section__icon"}),n.jsxs("div",{className:"section__title-group",children:[t&&n.jsx(C,{className:`section__title ${m}`,children:t}),s&&n.jsx("div",{className:"section__disc body-3",children:s})]})]}),i&&n.jsx("div",{className:"section__action",children:i})]}),l]})}let Vo=null,Mu=!1;function Lu(){if(Mu||typeof document>"u")return;Mu=!0,document.addEventListener("keydown",t=>{t.metaKey||t.ctrlKey||t.altKey||(Vo="keyboard")},!0);const e=()=>{Vo="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}Lu();function mr(){return Lu(),Vo==="keyboard"}const hr=20;function p5(e){const{t}=xe.useTranslation(),{type:a,trainingDatas:r,depth:i,renderPopup:s,completedIds:l,selectedIds:u,onItemComplete:c,size:d,useDescriptionTooltip:m,onRemove:p,onMore:C,sectionType:y="page"}=e||{},[,v]=o.useState(0),f=typeof r<"u"?Array.isArray(r)?r:[]:[],h=f.length,[_,g]=o.useState(Math.min(h,hr)),k=o.useMemo(()=>Array.isArray(i)?[...i,a?.label].filter(Boolean).join(" \xB7 "):[i||"",a?.label].filter(Boolean).join(" \xB7 "),[i,a?.label]);o.useEffect(()=>{g(Math.min(h,hr))},[h]),Bl("speechear.data.updated",()=>v(B=>B+1));const b=o.useRef(null),N=o.useRef(null);function x(){const B=document.activeElement;N.current=mr()&&B&&B.closest?.(".training-block__more")?_:null,g(w=>Math.min(h,w+hr))}return o.useEffect(()=>{const B=N.current;if(B==null)return;N.current=null;const w=document.activeElement;w&&w!==document.body||b.current?.querySelectorAll(".training-block-button")[B]?.focus()},[_]),n.jsxs(pa,{type:y,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[n.jsx("div",{className:"training-list",ref:b,children:(f||[]).slice(0,_).map((B,w)=>{const A=B;return n.jsx(ko,{index:w,type:a,trainingData:A,depth:k,renderPopup:s,completedIds:l,selectedIds:u,size:d,useDescriptionTooltip:m,onRemove:typeof p=="function"&&u!=null&&A?.id!=null&&u.has(String(A.id))?()=>p(A):void 0,onComplete:typeof c=="function"&&A?.id!=null?()=>c(String(A.id)):void 0,onMore:typeof C=="function"?D=>C(A,D):void 0},A?.id!=null?`${a?.key||"t"}-${String(A.id)}`:`${a?.key||"t"}-${w}`)})}),h>hr&&_<h&&n.jsx("div",{className:"training-block__more",children:n.jsx(pe,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:x,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function m5(e){let t=0;const a=r=>{Array.isArray(r)?r.forEach(a):r!=null&&r!==!1&&r!==!0&&r!==""&&t++};return a(e),t}function h5({gap:e=10,count:t,className:a,children:r}){const i=o.useRef(null),[s,l]=o.useState({width:0,card:0}),u=t??m5(r);o.useLayoutEffect(()=>{const C=i.current;if(!C)return;const y=()=>{const f=C.style.maxWidth;C.style.maxWidth="none";const h=C.clientWidth;C.style.maxWidth=f;const _=C.firstElementChild?.offsetWidth??0;l(g=>g.width===h&&g.card===_?g:{width:h,card:_})};if(y(),typeof ResizeObserver>"u")return;const v=new ResizeObserver(y);return v.observe(C),()=>v.disconnect()},[u,e]);const c=s.card>0?s.card:0,d=c>0?nf(s.width,c,e):0,m=d>0?af(u,d):0,p={"--block-grid-gap":`${e}px`,...m>0?{"--block-grid-cols":m,"--block-grid-card":`${c}px`}:{}};return n.jsx("div",{ref:i,className:we("training-block-grid",m>0&&"training-block-grid--measured",a),style:p,"data-cols":m>0?m:void 0,children:r})}function zo(e){const t=o.useRef(null),[a,r]=o.useState(!!e),[i,s]=o.useState(!1);o.useEffect(()=>{s(!1);const c=t.current;r(!!e&&!(c?.complete&&c.naturalWidth>0))},[e]);const l=o.useCallback(()=>r(!1),[]),u=o.useCallback(()=>{r(!1),s(!0)},[]);return{imgRef:t,loading:a,failed:i,hasImage:!!e&&!i,onLoad:l,onError:u}}var C5='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 f5=C5,Wo=o.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:r=!1,selected:i=!1,onSelect:s,flipDelay:l=0,hideLabel:u=!1,hideAudio:c=!1,orderRank:d=null},m){const{t:p}=xe.useTranslation(),C=e.word||e.title||"",y=t||!C,v=e.audio??e.sound??e.audioKey,f=e.subLabel||e.pronunciation||"",h=e.colloquialLabel||"",[_,g]=o.useState({label:C,subLabel:f,colloquialLabel:h,homonum:e.homonum});C&&(_.label!==C||_.subLabel!==f||_.colloquialLabel!==h||!Object.is(_.homonum,e.homonum))&&g({label:C,subLabel:f,colloquialLabel:h,homonum:e.homonum});const k=o.useRef(null),b=ln("(max-width: 767px)"),[N,x]=o.useState(!1),B=`${typeof v=="string"?v:v?.src??""}\0${C}`,[w,A]=o.useState({for:"",url:""}),D=w.for===B?w.url:"",E=ki(),O=e.textOnly??(!e.image&&!!_.label&&!!E&&E.entries.length>0&&!E.byWord.has(_.label)),R=O?"":aa()?.(_.label,_.homonum)??e.image??"",{imgRef:K,loading:M,hasImage:L,onLoad:$,onError:G}=zo(R);o.useEffect(()=>{let j=!1;return(async()=>{if(v){if(typeof v=="string"){if(v.startsWith("http")||v.includes("/")){A({for:B,url:v});return}}else if(typeof v=="object"&&!Array.isArray(v)){const q=v.src;if(q){A({for:B,url:q});return}}}const I=wa();if(I&&C)try{const q=await Promise.resolve(I(C));!j&&q&&A({for:B,url:q})}catch{}})(),()=>{j=!0}},[v,C,B]);const W=o.useRef(!0),H=o.useRef(null);o.useEffect(()=>(W.current=!0,()=>{W.current=!1,H.current&&lr(H.current),H.current=null;try{k.current?.pause()}catch{}k.current=null}),[]);const U=o.useCallback(()=>new Promise(j=>{if(typeof window<"u"&&window.speechSynthesis&&C){x(!0),window.speechSynthesis.cancel();const I=new SpeechSynthesisUtterance(C);I.lang="ko-KR",I.onend=()=>{x(!1);try{a?.()}catch{}j()},I.onerror=()=>{x(!1),j()},window.speechSynthesis.speak(I)}else j()}),[C,a]),P=o.useCallback(j=>{const I=ur(j,q=>{if(x(!1),q)try{a?.()}catch{}});return k.current=I.el,I.done},[a]),z=o.useCallback(async()=>{if(t||!W.current)return;const j=()=>{H.current===j&&(H.current=null);try{k.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1)},I=ir(j);H.current=j;try{window.speechSynthesis?.cancel()}catch{}try{if(D&&(x(!0),await P(D)))return;const q=Kr();if(q&&C)try{const re=await Promise.resolve(q(C));if(!W.current||H.current!==j||re&&(x(!0),await P(re)))return}catch{}if(!W.current||H.current!==j)return;await U()}finally{I(),H.current===j&&(H.current=null)}},[t,D,C,P,U]);o.useImperativeHandle(m,()=>({play:()=>z()}),[z]);const V=j=>j.stopPropagation(),F=o.useCallback(j=>{if(j.stopPropagation(),!t){if(N){try{k.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1);return}z()}},[t,N,z]),S=we("training-word-card",t?"training-word-card--disabled":"",y?"training-word-card--flipped":"",r?"training-word-card--selectable":"",i?"training-word-card--selected":"");return n.jsx("div",{className:S,onClick:r&&!t?s:void 0,role:r?"button":void 0,"aria-pressed":r?i:void 0,tabIndex:r&&!t?0:void 0,"aria-disabled":r&&t?!0:void 0,onKeyDown:r&&!t?j=>{j.target===j.currentTarget&&(j.key==="Enter"||j.key===" "||j.key==="Spacebar")&&(j.preventDefault(),s?.())}:void 0,children:n.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:y?"0ms":`${l}ms`},children:[n.jsxs("div",{className:"training-word-card__front",children:[i&&n.jsx("div",{className:"training-word-card__selected-badge",onClick:V,children:n.jsx(kt,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?p("training.nthSelected",{n:d}):p("training.selected","\uC120\uD0DD\uB428")})}),n.jsx("div",{className:"training-word-card__image-wrap",children:O?n.jsx("div",{className:"training-word-card__text-face",children:_.label}):L?n.jsxs(n.Fragment,{children:[M&&n.jsx("div",{className:"training-word-card__spinner"}),n.jsx("img",{ref:K,className:"training-word-card__image",src:R,alt:_.label||p("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:M?0:1},onLoad:$,onError:G})]}):n.jsx("div",{className:"training-word-card__placeholder"})}),!u&&n.jsxs("div",{className:"training-word-card__body",children:[!O&&n.jsx("div",{className:"training-word-card__word",children:_.label}),_.subLabel&&n.jsxs("div",{className:"training-word-card__pronunciation",children:["[",_.subLabel,"]"]}),_.colloquialLabel&&n.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",_.colloquialLabel,"]"]})]}),!c&&n.jsx("div",{className:"training-word-card__bottom",onClick:r?V:void 0,children:n.jsx(pe,{htmlType:"button",size:b?40:48,type:b?"dot":"bar",icon:N?"pause":"play",label:b?void 0:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:N,onClick:F,disabled:t,ariaLabel:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),n.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:n.jsx("img",{src:f5,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),g5=260;function Fn(e){const{t}=xe.useTranslation(),{title:a,subtitle:r,headerActions:i,headerSegment:s,children:l,buttons:u,footer:c,footerStart:d,footerEnd:m,footerNote:p,footerNoteDivider:C=!1,footerClassName:y="",footerLayout:v="center",onClose:f,closeDisabled:h=!1,beforeClose:_,closeOnBackdrop:g=!0,className:k="",ariaLabel:b,useTitle:N=!0,inline:x=!1,size:B,layer:w="modal",height:A,fillBody:D=!1,resetScrollKey:E}=e||{},[O,R]=o.useState(!1),K=o.useRef(!1),M=o.useRef(null),L=o.useId(),$=o.useRef(null);o.useEffect(()=>{},[x,a,b,k]),o.useEffect(()=>{E!==void 0&&$.current&&($.current.scrollTop=0)},[E]);const[G,W]=o.useState(!1);o.useEffect(()=>{const Y=$.current;if(!Y)return;const oe=()=>W(Y.scrollHeight>Y.clientHeight+1);if(oe(),typeof ResizeObserver>"u")return;const ke=new ResizeObserver(oe);ke.observe(Y);const Z=Y.firstElementChild;return Z&&ke.observe(Z),()=>ke.disconnect()},[l,E]),o.useEffect(()=>{if(!x)return ou()},[x]),o.useEffect(()=>{if(x)return;const Y=document.activeElement,oe=M.current;return uo(oe,Y),oe&&!oe.contains(document.activeElement)&&(oe.querySelector(fn)??oe).focus(),()=>{const ke=document.activeElement;(!ke||ke===document.body||oe&&oe.contains(ke))&&co(Y)?.focus?.()}},[x]),io(M,!x);const H=o.useRef(!0),U=po(),P=o.useRef(null);o.useEffect(()=>(H.current=!0,()=>{H.current=!1,P.current&&(clearTimeout(P.current),P.current=null)}),[]);const z=o.useCallback(()=>{!H.current||!K.current||(K.current=!1,R(!1))},[]),V=o.useCallback((Y,oe=!1)=>{if(oe&&!H.current||K.current)return;K.current=!0,R(!0);const ke=setTimeout(()=>{P.current===ke&&(P.current=null);let Z;try{Z=Y?Y():void 0}catch{z();return}Z&&typeof Z.then=="function"&&Z.then(()=>{setTimeout(z,120)},z)},U?0:g5);oe&&(P.current=ke)},[z,U]),F=o.useCallback(()=>{h||_&&_()===!1||V(f,!0)},[V,f,h,_]),S=o.useRef(F);o.useEffect(()=>{S.current=F});const j=!x&&!!f;o.useEffect(()=>{if(j)return Un(()=>S.current())},[j]);const I=j&&g,q=o.useRef(!1),re=Y=>{q.current=Y.target===Y.currentTarget},ne=Y=>{const oe=q.current;q.current=!1,oe&&Y.target===Y.currentTarget&&F()},le=n.jsx("div",{className:`popup ${x?"popup--inline":""} ${w==="belowPagePopup"?"popup--below-page-popup":""} ${O?"popup--closing":""} ${k}`,onPointerDown:I?re:void 0,onClick:I?ne:void 0,onMouseDown:x?void 0:Y=>{Y.target===Y.currentTarget&&Y.preventDefault()},children:n.jsxs("div",{ref:M,className:`popup-panel${B?` popup-panel--${B}`:""}${A!=null?" popup-panel--has-height":""}${D?" popup-panel--fill-body":""}`,style:A!=null?{"--popup-height":typeof A=="number"?`${A}px`:A}:void 0,tabIndex:-1,role:x?void 0:"dialog","aria-modal":x?void 0:!0,"aria-labelledby":!x&&N&&a?L:void 0,"aria-label":!x&&!(N&&a)?b??(typeof a=="string"?a:void 0):void 0,children:[!N&&(i||f)?n.jsxs("div",{className:"popup-close-float",children:[i,f&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:F,disabled:h,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||i||f?n.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[n.jsxs("div",{className:"popup-header-main",children:[a?n.jsx("h2",{id:L,className:"popup-title popup-title--left h2",children:a}):n.jsx("span",{id:L,className:"popup-title popup-title--left h2"}),r&&n.jsx("span",{className:"popup-subtitle body-3",children:r})]}),s&&n.jsx("div",{className:"popup-header-segment",children:n.jsx(gn,{size:40,ariaLabel:s.ariaLabel,options:s.options.map(Y=>({key:Y.key,label:Y.label,disabled:Y.disabled})),value:s.value,onChange:s.onChange})}),n.jsxs("div",{className:"popup-header-actions",children:[i,f&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:F,disabled:h,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,n.jsx("div",{className:"popup-content",ref:$,tabIndex:G?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof l=="function"?l({animateThen:V,closeWithAnimation:F}):l})}),p!=null&&p!==!1&&n.jsx("div",{className:`popup-footer-note caption-1${C?" popup-footer-note--divider":""}`,role:"note",children:p}),d||m?n.jsxs("div",{className:`popup-footer popup-footer--bar${y?` ${y}`:""}`,children:[n.jsx("div",{className:"popup-footer__start",children:typeof d=="function"?d({animateThen:V,closeWithAnimation:F}):d}),n.jsx("div",{className:"popup-footer__end",children:typeof m=="function"?m({animateThen:V,closeWithAnimation:F}):m})]}):u?.length?n.jsx("div",{className:`popup-footer popup-footer--buttons${v!=="center"?` popup-footer--${v}`:""}`,children:u.map((Y,oe)=>n.jsx(pe,{htmlType:"button",size:48,variant:Y.variant??"default",label:Y.label,disabled:Y.disabled,onClick:()=>Y.onClick?.({animateThen:V,closeWithAnimation:F})},oe))}):c?n.jsx("div",{className:`popup-footer${v!=="center"?` popup-footer--${v}`:""}${y?` ${y}`:""}`,children:typeof c=="function"?c({animateThen:V,closeWithAnimation:F}):c}):null]})});return x||typeof document>"u"?le:en.createPortal(le,document.body)}function Cr(e){return String(e)}const fr=["o","triangle","x"];function $u(e,t){return e===t?null:t}const Ru={o:"circle",triangle:"triangle",x:"x"},Pu={o:"main",triangle:"warn",x:"danger"};function b5(e){let t=0,a=0,r=0;for(const s of Object.values(e))s==="o"?t++:s==="triangle"?a++:s==="x"&&r++;const i=t+a+r;return{marked:i,o:t,triangle:a,x:r,rate:i===0?null:(t+a*.5)/i}}function qo(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function Fu(e){const t=[];let a=0;for(const r of e)t.push(a),a+=r;return t}function y5(e,t){return!t&&e>0}const ma={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 v5(e="landscape"){St("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}=ma[e],i=document.createElement("style");i.textContent=`@page { size: ${t}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(i);const s=()=>{document.head.removeChild(i),window.removeEventListener("afterprint",s)};window.addEventListener("afterprint",s),window.print()}function Iu(e,t){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(t)),r=[];for(let i=0;i<e.length;i+=a)r.push(e.slice(i,i+a));return r}const x5={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 _5(e,t){const a=x5[e][t];if(a)return a;const r=Math.max(1,Math.ceil(t)),i=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let s,l;return e==="landscape"?(l=i,s=Math.ceil(r/l)):(s=i,l=Math.ceil(r/s)),(e==="landscape"?s<l:l<s)&&([s,l]=[l,s]),{cols:s,rows:l}}const w5={show:"word-table-block__content--cut-show",dashed:"",corner:"word-table-block__content--cut-corner",hide:""},Ou={\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"},Hu={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"},Uo={\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"},Go={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function Vu(e){return Object.fromEntries(Object.entries(Ou).map(([t,a])=>[t,Uo[t]?e(`wordTable.pos.${Uo[t]}`,{defaultValue:a}):a]))}function zu(e){return Object.fromEntries(Object.entries(Hu).map(([t,a])=>[t,Go[t]?e(`wordSearch.filter.type.${Go[t]}`,{defaultValue:a}):a]))}const B5={pos:Uo,wordType:Go};function Ko(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function Wu(e,t,a,r){if(r!=="dashed")return{};const i=e%t,s=Math.floor(e/t),l=i<t-1,u=s<a-1;if(!l&&!u)return{};const c="#ddd",d=y=>`repeating-linear-gradient(to ${y}, ${c} 0, ${c} 5px, transparent 5px, transparent 10px)`,m=[],p=[],C=[];return l&&(m.push(d("bottom")),p.push("1px 100%"),C.push("right center")),u&&(m.push(d("right")),p.push("100% 1px"),C.push("center bottom")),{backgroundImage:m.join(", "),backgroundSize:p.join(", "),backgroundPosition:C.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const A5=280,k5=240,N5=280,E5=400,D5=120,S5=280;function qu(e,t){const a=o.useRef(null),[r,i]=o.useState(1),[s,l]=o.useState(0),u=o.useCallback((c,d)=>{if(!(c>0))return;const m=c/e,p=t&&d>0?d/t:1/0,C=Math.min(1,m,p);i(C),l(Math.max(0,(c-e*C)/2))},[e,t]);return o.useEffect(()=>{const c=a.current;if(!c)return;const d=t?c.parentElement??c:c;if(u(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const m=new ResizeObserver(([p])=>u(p.contentRect.width,p.contentRect.height));return m.observe(d),()=>m.disconnect()},[u,t]),{scalerRef:a,scale:r,offset:s}}const T5=24,j5={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},M5=400,Uu=8;function Gu({label:e,subLabel:t,colloquialLabel:a,homonum:r,showWord:i=!0,showImage:s=!0,showPronunciation:l=!0,showColloquial:u=!0,buttonSize:c=40,wordInfo:d,outerScale:m=1}){const{t:p}=xe.useTranslation(),C=o.useRef(null),y=o.useRef(null),v=o.useRef(null),[f,h]=o.useState(1),[_,g]=o.useState(!1),[k,b]=o.useState({for:"",url:""}),[N,x]=o.useState(null),B=t&&t.length>0?t:LC()?.(e,r)??"",w=aa()?.(e,r)??"",{imgRef:A,loading:D,failed:E,onLoad:O,onError:R}=zo(w),K=o.useCallback(()=>x(y.current?.getBoundingClientRect()??null),[]),M=o.useCallback(()=>x(null),[]),L=ho(!!N,j=>{j?K():M()},y),$=o.useMemo(()=>{if(!d)return null;const j=[];return d.grade&&j.push(p("wordTable.info.grade",{n:d.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),d.syllables&&j.push(p("wordTable.info.syllables",{n:d.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),d.pos&&j.push(p("wordTable.info.pos",{v:Ko(d.pos,Vu(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),d.wordType&&j.push(p("wordTable.info.wordType",{v:Ko(d.wordType,zu(p)),defaultValue:"\uC720\uD615: {{v}}"})),j.length?j:null},[d,p]),G=B||e,W=k.for===G?k.url:"";o.useEffect(()=>{const j=wa(),I=B||e;if(!j||!I)return;let q=!1;return Promise.resolve(j(I)).then(re=>{!q&&re&&b({for:I,url:re})}),()=>{q=!0}},[B,e]);const H=o.useRef(null),U=o.useRef(null);o.useEffect(()=>()=>{v.current?.pause(),U.current?.()},[]);const P=o.useCallback(j=>{if(j.stopPropagation(),_){H.current?.();return}if(!W)return;g(!0);const I=ur(W,()=>{g(!1),U.current?.()});v.current=I.el,H.current=I.stop,U.current=ir(I.stop)},[_,W]),z=s&&!!w&&!E,V=z&&i?A5:z?N5:k5,F=z&&i?E5:z?S5:D5;o.useEffect(()=>{const j=C.current;if(!j||typeof ResizeObserver>"u")return;const I=new ResizeObserver(([q])=>{const{width:re,height:ne}=q.contentRect;h(Math.min(re/V,ne/F))});return I.observe(j),()=>I.disconnect()},[V,F]);const S=c*m<T5;return n.jsxs("div",{ref:C,className:we("word-table-cell",S&&"word-table-cell--tap-too-small",z?"word-table-cell--with-image":""),"data-ref-w":V,"data-ref-h":F,children:[n.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${f})`},children:[z&&n.jsxs("div",{className:"word-table-cell__image-wrap",children:[D&&n.jsx("div",{className:"word-table-cell__spinner"}),n.jsx("img",{ref:A,className:"word-table-cell__image",src:w,alt:e,draggable:!1,style:{opacity:D?0:1},onLoad:O,onError:R})]}),i&&n.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&B&&n.jsxs("span",{className:"word-table-cell__sub h3",children:["[",B,"]"]}),u&&a&&n.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),n.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":W,children:[n.jsx("span",{"data-play-state":"play",style:{display:_?"none":void 0},children:n.jsx(pe,{htmlType:"button",size:c,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),ariaLabel:e?p("common.playFor",{name:e,defaultValue:`${e} \uC7AC\uC0DD`}):p("common.play","\uC7AC\uC0DD"),onClick:P})}),n.jsx("span",{"data-play-state":"pause",style:{display:_?void 0:"none"},children:n.jsx(pe,{htmlType:"button",size:c,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),ariaLabel:e?p("common.pauseFor",{name:e,defaultValue:`${e} \uBA48\uCDA4`}):p("common.pause","\uBA48\uCDA4"),onClick:P})})]}),d&&n.jsxs("div",{ref:y,className:"word-table-cell__info-button",onPointerEnter:j=>{ia(j)||K()},onPointerLeave:j=>{ia(j)||M()},onFocus:()=>{la()||K()},onBlur:M,children:[n.jsx(pe,{htmlType:"button",size:c,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:j=>{j.stopPropagation(),L.touchPress()}}),N&&$&&n.jsx(Gn,{anchorRect:N,items:$,showIndex:!1})]})]})}function ha({title:e,titleIcon:t,disc:a,className:r,orientation:i="landscape",contentTypes:s=["image","word","standardPron"],cutLine:l="show",showOutline:u=!0,showDivLine:c=!0,items:d,editCells:m,count:p,activeCell:C=null,onActivateCell:y,onRemoveCell:v,onRemoveItem:f,onReorder:h,renderCellAction:_,showFillerAdd:g=!1,contentRef:k,buttonSize:b=40,brand:N,code:x,pageNumber:B,pageNumberPosition:w="right",fitHeight:A=!1,scoring:D=!1,marks:E,onMarkClick:O,scoreIndexOffset:R=0}){const K=o.useCallback((Be,je)=>{O?.(R+Be,je)},[O,R]),M=(Be,je)=>{const Se=E?.[Cr(R+Be)]??null;return n.jsx("div",{className:we("word-table-cell__score",Se?"word-table-cell__score--marked":""),style:We>1?{transform:`translateX(-50%) scale(${We})`,transformOrigin:"bottom center"}:void 0,children:fr.map(Xe=>n.jsx("span",{className:we("word-table-cell__score-slot",Se===Xe?"word-table-cell__score-slot--on":""),children:n.jsx(pe,{htmlType:"button",size:b,type:"dot",shape:"pill",icon:Ru[Xe],variant:Se===Xe?Pu[Xe]:"default",selected:Se===Xe,useBorder:!1,...Ae?{}:{tabIndex:-1,role:"img"},showTooltipInfo:L(`wordTable.scoring.markName.${Xe}`,{defaultValue:Xe}),ariaLabel:L(`wordTable.scoring.${Xe}`,{word:je,defaultValue:`${je} ${Xe}`}),onClick:Ae?Qe=>{Qe.stopPropagation(),K(Be,Xe)}:void 0})},Xe))})},{t:L}=xe.useTranslation(),$=m!==void 0,G=e!=null||!!t||!!a,W=ln("(max-width: 767px)"),H=o.useRef(null),[U,P]=o.useState(null),z=d?.length??0,[V,F]=o.useState(null),[S,j]=o.useState(""),I=o.useRef(null),q=o.useRef(null),re=o.useRef(null),ne=o.useRef(null),le=o.useCallback(Be=>{q.current=Be,typeof k=="function"?k(Be):k&&(k.current=Be)},[k]),Y=o.useCallback((Be,je)=>{I.current=je,h?.(Be,je),j(L("wordTable.reorder.moved",{n:je+1,total:z,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[h,L,z]);o.useEffect(()=>{const Be=I.current;Be!=null&&(I.current=null,q.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler)")?.[Be]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{ne.current?.()},[]);const oe=o.useCallback((Be,je)=>{if(!h||!Be.altKey||Be.ctrlKey||Be.metaKey)return;const Se=Be.key==="ArrowRight";if(!Se&&Be.key!=="ArrowLeft")return;Be.preventDefault();const Xe=je+(Se?1:-1);Xe<0||Xe>=z||Y(je,Xe)},[h,z,Y]),ke=o.useCallback((Be,je)=>{if(!h||Be.pointerType==="mouse")return;const Se=Be.target.closest?.("button");if(Se&&!Se.closest(".word-table-block__card-handle"))return;ne.current?.();const Xe={x:Be.clientX,y:Be.clientY};let Qe=!1;const dt=se=>{Qe&&se.cancelable&&se.preventDefault()};let ht=null,wt=null;const ft=()=>{const se=wt;if(!se)return;const Ne=document.elementFromPoint?.(se.x,se.y)?.closest?.("[data-wordtable-cell]"),Ve=Ne?Number(Ne.dataset.wordtableCell):NaN,nt=Number.isInteger(Ve)?Ve:null;re.current=nt,P(Ie=>Ie===nt?Ie:nt)},Nt=se=>{if(!Qe){(Math.abs(se.clientX-Xe.x)>Uu||Math.abs(se.clientY-Xe.y)>Uu)&&Ke();return}if(wt={x:se.clientX,y:se.clientY},typeof requestAnimationFrame>"u"){ft();return}ht===null&&(ht=requestAnimationFrame(()=>{ht=null,ft()}))},gt=()=>{ht!==null&&(cancelAnimationFrame(ht),ht=null,ft());const se=re.current,Ne=Qe;Ke(),Ne&&se!=null&&se!==je&&Y(je,se)},it=setTimeout(()=>{Qe=!0,F(je),re.current=je,P(je),window.addEventListener("touchmove",dt,{passive:!1})},M5);function Ke(){clearTimeout(it),window.removeEventListener("pointermove",Nt),window.removeEventListener("pointerup",gt),window.removeEventListener("pointercancel",gt),window.removeEventListener("touchmove",dt),Qe=!1,ht!==null&&(cancelAnimationFrame(ht),ht=null),re.current=null,ne.current=null,F(null),P(null)}ne.current=Ke,window.addEventListener("pointermove",Nt),window.addEventListener("pointerup",gt),window.addEventListener("pointercancel",gt)},[h,Y]),{width:Z,height:Q}=ma[i],me=typeof A=="number"?A:A&&typeof A=="object"?W?A.narrow:A.wide:null,{scalerRef:De,scale:be,offset:te}=qu(Z,A?Q:void 0),ue=$?m?.length??0:d?.length??0,Ce=Math.max(p??ue,1),{cols:ge,rows:fe}=_5(i,Ce),$e={word:s.length===0||s.includes("word"),image:s.length===0||s.includes("image"),pron:s.length===0||s.includes("standardPron"),colloq:s.length===0||s.includes("colloquialPron")},ze=$?(m??[]).some(Be=>Be!==null&&Be.length>1):(d??[]).some(Be=>(Be.words??[]).length>1),Te=!!N?.show,Fe=!!N?.show&&N?.top!==!1,qe=!!N?.show&&N?.bottom!==!1,mt=N?.copyright??"\xA9 IHAB, Inc. All rights reserved.",ct=we("word-table-block__content",w5[l],u&&"word-table-block__content--outline",c&&ze&&"word-table-block__content--div-line",!Te&&B&&w!=="none"&&"word-table-block__content--page-number",Fe&&"word-table-block__content--brand-top",qe&&"word-table-block__content--brand-bottom"),rt={transform:`scale(${1/be})`,transformOrigin:"center center"},Ct=b*fr.length+4*(fr.length-1),Ae=!!O,We=Ae?Math.max(1,Math.min(1/be,Z/ge/Ct)):1,_e=n.jsxs("div",{ref:De,className:"word-table__scaler",style:{height:Q*be},children:[n.jsx("div",{className:we("word-table",D&&!Ae&&"word-table--score-readonly",!G&&r),style:{width:Z,height:Q,transform:`scale(${be})`,transformOrigin:"top left",marginLeft:te},children:n.jsxs("div",{ref:le,className:ct,style:{gridTemplateColumns:`repeat(${ge}, 1fr)`,gridTemplateRows:`repeat(${fe}, 1fr)`},children:[$?n.jsx(n.Fragment,{children:(m??[]).map((Be,je)=>n.jsx("div",{className:we("word-table-block__edit-cell",Be?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",C===je?"word-table-block__edit-cell--active":""),style:Wu(je,ge,fe,l),children:Be?n.jsxs(n.Fragment,{children:[Be.map((Se,Xe)=>n.jsxs(o.Fragment,{children:[Xe>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(Gu,{outerScale:be,label:Se.word,subLabel:Se.pronunciation,colloquialLabel:Se.colloquialPronunciation,homonum:Se.homonum,showWord:$e.word,showImage:$e.image,showPronunciation:$e.pron,showColloquial:$e.colloq,buttonSize:b})]},Xe)),D&&M(je,Be.map(Se=>Se.word).join(" / ")),v&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(pe,{htmlType:"button",size:b,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:Be.length>1?L("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):L("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:Be.length>1?L("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):L("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>v(je)})})]}):y&&n.jsx("div",{style:rt,children:n.jsx(pe,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:L("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>y(je)})})},je))}):n.jsxs(n.Fragment,{children:[(d??[]).map((Be,je)=>n.jsxs("div",{"data-wordtable-cell":h?je:void 0,className:`word-table-block__card${h?" word-table-block__card--draggable":""}${U===je?" word-table-block__card--drag-over":""}${V===je?" word-table-block__card--dragging":""}`,style:Wu(je,ge,fe,l),draggable:!!h,onPointerDown:h?Se=>ke(Se,je):void 0,onKeyDown:h?Se=>oe(Se,je):void 0,onDragStart:h?()=>{H.current=je}:void 0,onDragOver:h?Se=>{Se.preventDefault(),P(je)}:void 0,onDragLeave:h?()=>P(null):void 0,onDrop:h?Se=>{Se.preventDefault(),H.current!==null&&H.current!==je&&h(H.current,je),H.current=null,P(null)}:void 0,onDragEnd:h?()=>{H.current=null,P(null)}:void 0,children:[(Be.words??[]).map((Se,Xe)=>n.jsxs(o.Fragment,{children:[Xe>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(Gu,{outerScale:be,label:Se.label,subLabel:Se.subLabel,colloquialLabel:Se.colloquialLabel,homonum:Se.homonum,showWord:$e.word,showImage:$e.image,showPronunciation:$e.pron,showColloquial:$e.colloq,buttonSize:b,wordInfo:Se.grade||Se.syllables!=null||Se.pos||Se.wordType?{grade:Se.grade,syllables:Se.syllables,pos:Se.pos,wordType:Se.wordType}:void 0})]},Xe)),D&&M(je,(Be.words??[]).map(Se=>Se.label).join(" / ")),h&&n.jsx("div",{className:"word-table-block__card-handle",children:n.jsx(pe,{htmlType:"button",size:b,type:"dot",icon:"grip-vertical",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:L("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:L("wordTable.reorder.handle",{word:(Be.words??[]).map(Se=>Se.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})}),(_||f)&&n.jsxs("div",{className:"word-table-block__card-actions",children:[_?.(je,Be),f&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(pe,{htmlType:"button",size:b,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(Be.words??[]).length>1?L("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):L("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(Be.words??[]).length>1?L("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):L("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(Be.id)})})]})]},Be.id)),Array.from({length:Math.max(0,ge*fe-(d?.length??0))}).map((Be,je)=>{const Se=(d?.length??0)+je<Ce;return n.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:g&&y&&Se&&n.jsx("div",{style:rt,children:n.jsx(pe,{htmlType:"button",size:b,type:"bar",icon:"plus",label:L("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>y((d?.length??0)+je)})})},`filler-${je}`)})]}),Fe&&n.jsx(n.Fragment,{children:n.jsxs("div",{className:"word-table__band word-table__band--top",children:[n.jsx("img",{className:"word-table__brand-logo",src:N?.topLogo?.src??sr,alt:N?.topLogo?.alt??"\uB9D0\uADC0"}),(()=>{const Be=[N?.title&&n.jsx("span",{className:"word-table__paper-title",children:N.title},"t"),N?.owner&&n.jsx("span",{className:"word-table__owner",children:N.owner},"o"),x&&n.jsx("span",{className:"word-table__code",children:x},"c")].filter(Boolean);return Be.length===0?null:n.jsx("span",{className:"word-table__ident",children:Be.map((je,Se)=>n.jsxs(o.Fragment,{children:[Se>0&&n.jsx("span",{className:"word-table__ident-dot","aria-hidden":"true",children:"\xB7"}),je]},Se))})})()]})}),qe&&n.jsx(n.Fragment,{children:n.jsxs("div",{className:"word-table__band word-table__band--bottom",children:[n.jsxs("span",{className:"word-table__brand-by",children:[N?.bottomLogo?n.jsx("img",{className:"word-table__brand-logo--ihab word-table__brand-logo--given",src:N.bottomLogo.src,alt:N.bottomLogo.alt}):n.jsx("span",{className:"word-table__brand-logo--ihab",role:"img","aria-label":"IHAB"}),n.jsx("span",{className:"word-table__copyright",children:mt})]}),n.jsxs("span",{className:"word-table__band-end",children:[N?.link&&n.jsx("span",{className:"word-table__link",children:N.link}),B&&w!=="none"&&n.jsx("span",{className:"word-table__page-count",children:L("wordTable.filter.pageIndicator",{current:B.current,total:B.total})})]})]})}),!Te&&B&&w!=="none"&&n.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${w}`,children:L("wordTable.filter.pageIndicator",{current:B.current,total:B.total})})]})}),h&&n.jsx("span",{role:"status",style:j5,children:S})]}),Ue=me==null?_e:n.jsx("div",{className:"word-table__frame",style:{height:me},children:_e});return G?n.jsx(pa,{type:"page",icon:t,title:e,disc:a,className:we("word-table-block",r),children:Ue}):Ue}function L5(e,t,a){const r=[];for(const i of e??[]){if(i.type==="note"||i.type==="input")continue;const s=i.displayLabel??i.label,l=$5(i,t?.[i.label],a);l!==null&&r.push(`${s} ${l}`)}return r.join(" \xB7 ")}function $5(e,t,a){const r=(Array.isArray(t)?t:t===void 0?[]:[t]).filter(i=>i!==dn);return r.length===0?e.allOption?e.allLabel??a:null:r.map(i=>R5(e,i)).join(", ")}function R5(e,t){const a=[...e.items??[],...(e.groups??[]).flat()];for(const r of a)if(r!=null){if(typeof r=="string"){if(r===t)return r;continue}if(r.value===t)return r.displayLabel??r.labels?.join(" ")??r.value}return t}function Dn({title:e,titleLevel:t=2,headerAction:a,headerSummary:r,collapsible:i=!1,defaultCollapsed:s=!1,collapsed:l,onCollapsedChange:u,footer:c,sections:d,selected:m={},onSelect:p,align:C,sectionAlign:y,className:v}){const f=(C??(y==="vertical"?"newline":"inline"))==="inline",{t:h}=xe.useTranslation(),[_,g]=o.useState(s),k=l??_,b=()=>{const E=!k;g(E),u?.(E)},N=E=>{if(!i)return;const O=E.target;!O||typeof O.closest!="function"||O.closest(".filter-panel__collapse-toggle")||O.closest('button, a, input, select, textarea, label, [role="radiogroup"], [role="button"], [role="menu"]')||b()},x=o.useMemo(()=>r!==void 0||!k?"":L5(d,m,h("common.all","\uC804\uCCB4")),[r,k,d,m,h]),B=r??(x?n.jsx("span",{className:"filter-panel__header-summary body-3",children:x}):null),w=e||a||r||i,A=o.useId(),D=t?`h${t}`:"span";return n.jsxs("div",{className:we("filter-panel",i?"filter-panel--collapsible":"",k?"filter-panel--collapsed":"",v),role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?A:void 0,children:[w&&n.jsxs("div",{className:"filter-panel__header",onClick:i?N:void 0,children:[n.jsx("div",{className:"filter-panel__title-row",children:e&&n.jsx(D,{id:A,className:"filter-panel__title h4",children:e})}),n.jsxs("div",{className:"filter-panel__header-actions",children:[k?B:a,i&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:k?"chevron-down":"chevron-up",className:"filter-panel__collapse-toggle",ariaLabel:k?h("common.expand","\uD3BC\uCE58\uAE30"):h("common.collapse","\uC811\uAE30"),showTooltipInfo:k?h("common.expand","\uD3BC\uCE58\uAE30"):h("common.collapse","\uC811\uAE30"),"aria-expanded":!k,onClick:b})]})]}),!k&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:we("filter-panel__sections",f?"filter-panel__sections--row":""),children:d.map(E=>{const O=m[E.label],R=O===void 0||(Array.isArray(O)?O.length===0:!1),K=(E.items??[]).filter(L=>L!=null);E.allOption&&K.some(L=>(typeof L=="string"?L:L.value)===dn)&&St(`filter-panel-all-value:${E.label}`,`[FilterPanel] '${E.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${dn}' \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 M=L=>{const $=typeof L=="string"?L:L.value,G=typeof L!="string"&&!!L.disabled,W=typeof L!="string"?L.labels:void 0,H=typeof L!="string"?L.displayLabel:void 0,U=typeof L!="string"?L.tooltip:void 0,P=typeof L!="string"?L.descriptionTooltip:void 0,z=typeof L!="string"?L.shape:void 0,V=Array.isArray(O)?O.includes($):O===$;return n.jsx(pe,{htmlType:"button",size:"keyboard",label:W??H??$,type:E.itemType??(W?"bar":$.length===1?"dot":void 0),selected:V,disabled:G,shape:z,showTooltipInfo:!!U,tooltipInfoText:U,tooltipDescription:P,onClick:()=>p?.($,E.label)},$)};return n.jsxs(o.Fragment,{children:[E.groupLabel&&n.jsxs("div",{className:"filter-panel__group-label-row",children:[n.jsx("div",{className:"filter-panel__group-label body-2",children:E.groupLabel}),E.groupAction]}),n.jsxs("div",{className:we("filter-panel__section",E.layout==="row"?"filter-panel__section--row":"",E.block?"filter-panel__section--block":""),children:[n.jsxs("div",{className:"filter-panel__section-label-row",children:[n.jsx("span",{className:"filter-panel__section-label body-3",children:E.displayLabel??E.label}),E.labelAction??(E.labelInfo?n.jsx(Ra,{...E.labelInfo}):null)]}),E.type==="note"?n.jsx("div",{className:"filter-panel__note body-3",children:E.content}):E.type==="input"?n.jsx(Zn,{className:"filter-panel__textfield",placeholder:E.placeholder,ariaLabel:E.displayLabel??E.label,value:m[E.label]??"",onChange:L=>p?.(L,E.label),error:E.error}):!E.multiple&&E.display==="segmented"?n.jsx(gn,{ariaLabel:E.displayLabel??E.label,options:[...E.allOption?[{key:dn,label:E.allLabel??h("common.all","\uC804\uCCB4"),disabled:E.allOptionDisabled}]:[],...K.map(L=>{const $=typeof L=="string"?L:L.value,G=typeof L!="string"?L.displayLabel:void 0,W=typeof L!="string"?L.disabled:void 0;return{key:$,label:G??$,disabled:W}})],value:R&&E.allOption?dn:m[E.label]??"",onChange:L=>p?.(L,E.label),size:32}):!E.multiple&&E.display==="dropdown"?n.jsx(pn,{className:"filter-panel__dropdown",ariaLabel:typeof E.label=="string"?E.label:void 0,size:40,options:[...E.allOption?[{value:dn,label:E.allLabel??h("common.all","\uC804\uCCB4"),disabled:E.allOptionDisabled}]:[],...K.map(L=>{const $=typeof L=="string"?L:L.value,G=typeof L!="string"?L.displayLabel:void 0,W=typeof L!="string"?L.disabled:void 0;return{value:$,label:G??$,disabled:W}})],value:R&&E.allOption?dn:m[E.label],onChange:L=>p?.(L,E.label)}):n.jsxs("div",{className:E.groups?"filter-panel__item-groups":"filter-panel__items",children:[E.allOption&&!E.groups&&n.jsx(pe,{htmlType:"button",size:"keyboard",label:E.allLabel??h("common.all","\uC804\uCCB4"),selected:R,disabled:E.allOptionDisabled,onClick:()=>p?.(dn,E.label)}),E.groups?E.groups.map((L,$)=>n.jsxs("div",{className:"filter-panel__item-group",children:[$===0&&E.allOption&&n.jsx(pe,{htmlType:"button",size:"keyboard",label:E.allLabel??h("common.all","\uC804\uCCB4"),selected:R,disabled:E.allOptionDisabled,onClick:()=>p?.(dn,E.label)}),L.filter(G=>G!=null).map(M)]},$)):K.map(M)]})]})]},E.label)})}),c!=null&&c!==!1&&n.jsx("div",{className:"filter-panel__footer body-3",children:c})]})]})}const P5=[1,2,3,4,5,6,7,8,9,10,11,12],Ku=[8,4,2,1],rn="show",yn="hide";function Yu(e,t){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"image",disabled:!t.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"word",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"standardPron",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"colloquialPron",disabled:!t.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function Zu(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"landscape",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"portrait",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function Xu(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:rn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:yn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Ju(e){return{label:e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4"),items:[{value:rn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:yn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Qu(e){return{label:e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4"),items:[{value:rn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:yn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function ec(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:rn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"dashed",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"corner",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:yn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function tc(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:rn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:yn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function nc(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...Ku.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function ac(e,t){return e===t||!Ku.includes(e)?Number.POSITIVE_INFINITY:e}function F5(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"left",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"center",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"right",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:yn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function rc(e){return e==="left"||e==="center"||e==="right"?e:"none"}function oc(e,t){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:t.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:t.orientation,[e("wordTable.filter.border","\uC678\uACFD\uC120")]:t.showOutline?rn:yn,[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:t.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:t.showDivLine?rn:yn,...t.showTopInfo!=null?{[e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")]:t.showTopInfo?rn:yn}:{},...t.showBottomInfo!=null?{[e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")]:t.showBottomInfo?rn:yn}:{}}}function sc(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===dn?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(i=>i.includes(t)?i.filter(s=>s!==t):[...i,t]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(t==="landscape"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(t===rn),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(t),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(t===rn),!0):a===e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")?(r.setShowTopInfo?.(t===rn),!0):a===e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")?(r.setShowBottomInfo?.(t===rn),!0):!1}function I5(e){return"sections"in e}function Yo(e){const{t}=xe.useTranslation(),{title:a,className:r,collapsible:i,defaultCollapsed:s,collapsed:l,onCollapsedChange:u,headerSummary:c}=e,d={collapsible:i,defaultCollapsed:s,collapsed:l,onCollapsedChange:u,headerSummary:c};if(I5(e))return n.jsx(Dn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,...d,align:"inline"});const{hasImage:m,hasColloquial:p,contentTypes:C,orientation:y,showOutline:v,cutLine:f,showDivLine:h,setters:_,showCutLine:g=!1,showDivLine2:k=!1,middleSections:b=[],extraSelected:N={},onExtraSelect:x,showPaperBands:B=!1,showTopInfo:w=!0,showBottomInfo:A=!0}=e,D=[Yu(t,{hasImage:m,hasColloquial:p}),Zu(t),...b,Xu(t),...g?[ec(t)]:[],...k?[tc(t)]:[],...B?[Ju(t),Qu(t)]:[]],E={...oc(t,{contentTypes:C,orientation:y,showOutline:v,cutLine:f,showDivLine:h,showTopInfo:w,showBottomInfo:A}),...N},O=(R,K)=>{sc(t,R,K,_)||x?.(R,K)};return n.jsx(Dn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:D,selected:E,onSelect:O,...d,sectionAlign:"horizontal"})}function Zo(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function O5(e){return Zo(e).replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Xo(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let gr=null,Ca=null;function H5(e,t,a,r="",i=""){if(e.length===0||Ca&&Ca.iframe.isConnected&&Date.now()-Ca.at<1e4)return;const s=r?Xo(r):"";gr?.();let l=null;if(s){const d=document.title;document.title=s,l=()=>{document.title=d,window.removeEventListener("afterprint",l),gr===l&&(gr=null)},gr=l,window.addEventListener("afterprint",l)}const u=document.createElement("iframe");u.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(u);const c=u.contentDocument;if(!c){u.remove();return}Ca={iframe:u,at:Date.now()},c.open(),c.write(Jo(e,t,a,!0,s,i)),c.close(),u.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{u.remove(),Ca?.iframe===u&&(Ca=null)},0)})}function Jo(e,t,a,r=!1,i="",s=""){i=i?Xo(i):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(C=>C.cssText)}catch{return[]}}).join(`
857
+ `)}const Ay=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),ky=/^(?: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 Ny(e,t){let a=e;const r=[],i=/^(?:sh|bash|zsh|shell|console)$/.test(t.toLowerCase()),s=(l,u)=>r.push({type:l,content:u});for(;a.length>0;){const l=a.match(/^\s+/);if(l){s("whitespace",l[0]),a=a.slice(l[0].length);continue}if(!i&&a.startsWith("//")){const x=a.indexOf(`
858
+ `),f=x===-1?a:a.slice(0,x);s("comment",f),a=a.slice(f.length);continue}if(i&&a.startsWith("#")){const x=a.indexOf(`
859
+ `),f=x===-1?a:a.slice(0,x);s("comment",f),a=a.slice(f.length);continue}const u=a.match(/^\/\*[\s\S]*?\*\//);if(u){s("comment",u[0]),a=a.slice(u[0].length);continue}const c=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(c){s("string",c[0]),a=a.slice(c[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){s("number",d[0]),a=a.slice(d[0].length);continue}const m=a.match(ky);if(m){s("keyword",m[0]),a=a.slice(m[0].length);continue}const p=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(p){const x=p[0];s(i&&Ay.has(x)?"command":"identifier",x),a=a.slice(x.length);continue}const C=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(C){s("operator",C[0]),a=a.slice(C[0].length);continue}const y=a.match(/^[()[\]{};.,]/);if(y){s("punctuation",y[0]),a=a.slice(1);continue}s("other",a[0]),a=a.slice(1)}return r}function Ey({children:e,language:t="bash",title:a="",showCopy:r=!0,size:i="default",className:s=""}){const{t:l}=xe.useTranslation(),[u,c]=o.useState(!1),d=By(uu(e)),m=o.useRef(null);o.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const p=async()=>{try{if(!await bf(d))return;c(!0),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>c(!1),2e3)}catch{}},C=Ny(d,t),y=i==="small"?"caption-1":"body-3";return n.jsxs("div",{className:we("code-box",i==="small"?"code-box--small":"",s),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(pe,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:u?"check":"copy",onClick:p,ariaLabel:u?l("common.copied","\uBCF5\uC0AC\uB428"):l("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),n.jsx("pre",{className:"code-box__inner","data-lang":t,children:n.jsx("code",{children:C.map((x,f)=>n.jsx("span",{className:`code-token ${x.type} ${y}`,children:x.content},f))})})]})}const Dy={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function Oa(e){const{t}=xe.useTranslation(),{variant:a="spinner",size:r=24,progress:i=null,label:s}=e||{},l=s||t("loader.loading","Loading");if(a==="bar"){const c=i==null||!Number.isFinite(Number(i)),d=c?0:Math.max(0,Math.min(100,Number(i)));return n.jsx("div",{className:`loader-bar${c?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c?void 0:d,"aria-label":l,children:n.jsx("div",{className:"loader-bar__inner",style:c?void 0:{width:`${d}%`}})})}const u=typeof r=="number"?`${r}px`:r;return n.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":l,children:[n.jsx("span",{style:Dy,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 cu({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:i,labelPosition:s="right",className:l="",id:u}){const c=r&&n.jsx("span",{className:"toggle__label body-3",children:r});return n.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[s==="left"&&c,n.jsx("input",{id:u,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>t?.(d.target.checked),"aria-label":!r&&i?i:void 0}),n.jsx("span",{className:"toggle__slider"}),s==="right"&&c]})}function du({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:i,size:s="medium",className:l,title:u,ariaLabel:c}){const d=o.useRef(null),m=o.useId(),p=o.useRef(!!r);return p.current=!!r,o.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)}),n.jsxs("label",{className:we("checkbox",s==="small"&&"checkbox--small",s==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:m,title:u,children:[n.jsx("input",{ref:d,id:m,type:"checkbox",className:"checkbox__input",checked:e,onChange:C=>{t?.(C.target.checked),d.current&&(d.current.indeterminate=p.current)},disabled:a,"aria-label":!i&&c?c:void 0}),n.jsx("span",{className:"checkbox__box"}),i&&n.jsx("span",{className:"checkbox__label body-3",children:i})]})}function Sy({count:e,actions:t,onClear:a,clearLabel:r,visible:i,content:s,max:l}){const{t:u}=xe.useTranslation(),c=i!==void 0?i:e>0,d=r??u("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),m=o.useRef(null),p=o.useRef(null),C=o.useRef(null),y=o.useRef(c);o.useLayoutEffect(()=>{const g=p.current,k=y.current;if(y.current=c,c&&!k){const b=typeof document<"u"?document.activeElement:null;C.current=b&&b!==document.body&&!g?.contains(b)?b:null}else!c&&k&&g&&g.contains(document.activeElement)&&nr(g,C.current)},[c]);const[x,f]=o.useState(!1),h=o.useRef(!1),_=o.useRef(null);return o.useEffect(()=>{const g=m.current;if(!g)return;const k=E=>{h.current=E,f(E)},b=()=>{const E=g.firstElementChild??g,D=Array.from(E.children);if(D.length<2){k(!1);return}const N=D[0].offsetTop,O=D.some($=>$.offsetTop!==N);if(!h.current){_.current=g.clientWidth,O&&k(!0);return}if(O)return;const P=D[0],G=D[D.length-1],L=G.offsetLeft+G.offsetWidth-P.offsetLeft,M=_.current;(M==null||L<=M)&&k(!1)};if(b(),typeof ResizeObserver>"u")return;const A=new ResizeObserver(b);A.observe(g);const v=g.parentElement;let w=v?.clientWidth??0;const B=new ResizeObserver(()=>{const E=v?.clientWidth??0;E!==w&&(w=E,_.current=null,b())});return v&&B.observe(v),()=>{A.disconnect(),B.disconnect()}},[s,e]),n.jsxs("div",{ref:p,className:`bulk-bar ${c?"bulk-bar--visible":""}`,inert:!c||void 0,"aria-hidden":c?void 0:!0,children:[n.jsx("span",{ref:m,className:"bulk-bar__count body-2",role:"status",children:s??n.jsx("b",{children:u("common.selectedCount",{count:e})})}),l!==void 0&&n.jsx(kt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`,"aria-label":u("common.selectedOfMax",{count:e,max:l,defaultValue:`\uCD5C\uB300 ${l}\uAC1C \uC911 ${e}\uAC1C`})}),n.jsxs("div",{className:`bulk-bar__actions${x?" bulk-bar__actions--stacked":""}`,children:[n.jsx(pe,{htmlType:"button",size:40,label:d,onClick:a}),t.map((g,k)=>n.jsx(pe,{htmlType:"button",size:40,variant:g.variant??"default",icon:g.icon,label:g.label,onClick:g.onClick},k))]})]})}const Ty=[{key:"edit",icon:"edit-2",closeFirst:!0},{key:"duplicate",icon:"copy",closeFirst:!1},{key:"publish",icon:"book-marked",closeFirst:!1},{key:"copyLink",icon:"link",closeFirst:!1},{key:"remove",icon:"trash-2",closeFirst:!0}];function jy(e){const{onClose:t,className:a}=e;return n.jsx("div",{className:we("item-actions",a),children:Ty.map(({key:r,icon:i,closeFirst:s})=>{const l=e[r];if(!l)return null;const u=r==="publish"?l.published?l.unpublish:l.publish:l;return n.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:i,ariaLabel:u.label,showTooltipInfo:u.label,onClick:()=>{s&&t(),u.onClick()}},r)})})}function pu(e,t){const a=()=>{if(e){const[f,h]=e.split("-");return{y:+f,m:+h-1}}const[y,x]=ao(t).split("-");return{y:+y,m:+x-1}},[r,i]=o.useState(()=>a().y),[s,l]=o.useState(()=>a().m),u=o.useRef(e);o.useEffect(()=>{if(e===u.current)return;u.current=e;const y=a();i(y.y),l(y.m)},[e]);const c=o.useRef({y:r,m:s});o.useEffect(()=>{c.current={y:r,m:s}},[r,s]);const d=o.useCallback(y=>{const x=c.current.y*12+c.current.m+y,f=Math.floor(x/12),h=x-f*12;c.current={y:f,m:h},i(f),l(h)},[]),m=o.useCallback(()=>d(-1),[d]),p=o.useCallback(()=>d(1),[d]),C=o.useCallback((y,x)=>{c.current={y,m:x},i(y),l(x)},[]);return{viewY:r,viewM:s,prevMonth:m,nextMonth:p,setViewYM:C}}function dr(e,t){return new Date(e,t+1,0).getDate()}function My(e,t){return new Date(e,t,1).getDay()}function pr(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function Ly(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function $y(e,t,a,r){const i=a?+a.split("-")[0]:e-10,s=r?+r.split("-")[0]:e+10,l=[];for(let u=i;u<=s;u++)for(let c=0;c<12;c++){const d=`${u}-${String(c+1).padStart(2,"0")}`;a&&d<a.slice(0,7)||r&&d>r.slice(0,7)||l.push({value:d,label:t(u,c+1)})}return l}function Ry({value:e,onChange:t,size:a=48,min:r,max:i,disabled:s,placeholder:l,className:u,today:c}){const{t:d,i18n:m}=xe.useTranslation(),p=l??d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),C=o.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),y=ao(c),{viewY:x,viewM:f,prevMonth:h,nextMonth:_,setViewYM:g}=pu(e,c),k=o.useId(),b=o.useCallback((F,S)=>{const j=window.innerHeight,I=window.innerWidth,U=typeof document<"u"?document.getElementById(k):null,re=Math.max(U?.offsetHeight||0,U?.scrollHeight||0)||300,ne=Math.max(F.width,U?.offsetWidth||0,260),le=j-F.bottom,K=F.top,oe=le<re&&K>le,ke=8,Y=(Q,me)=>Math.min(Math.max(ke,Q),Math.max(ke,me));return{position:"fixed",left:Y(F.left,I-ne-ke),width:F.width,minWidth:260,...oe?{top:"auto",bottom:Y(j-F.top+6,j-re-ke)}:{bottom:"auto",top:Y(F.bottom+6,j-re-ke)},zIndex:Ta(S)}},[k]),{open:A,setOpen:v,toggle:w,style:B,triggerRef:E,menuRef:D}=ja({computeStyle:b,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!A)return;const F=D.current;return(F?.querySelector(".date-picker__day--selected:not(:disabled)")??F?.querySelector(".date-picker__day--today:not(:disabled)")??F?.querySelector(".date-picker__day:not(:disabled)")??F?.querySelector(fn)??F)?.focus?.(),()=>{const S=document.activeElement;(!S||S===document.body)&&E.current?.focus?.()}},[A,D,E]);const[N,O]=o.useState(1),P=o.useRef(null),G=o.useRef(null);o.useEffect(()=>{if(!A)return;const F=e&&e.slice(0,7)===`${x}-${String(f+1).padStart(2,"0")}`?+e.slice(8):y.slice(0,7)===`${x}-${String(f+1).padStart(2,"0")}`?+y.slice(8):1;O(F)},[A]),o.useEffect(()=>{if(G.current==null)return;const F=G.current;G.current=null,P.current?.querySelector(`[data-day="${F}"]`)?.focus()}),o.useEffect(()=>{O(F=>Math.min(F,dr(x,f)))},[x,f]);const L=o.useCallback(F=>{let S=pr(F.getFullYear(),F.getMonth(),F.getDate());r&&S<r&&(S=r),i&&S>i&&(S=i);const[j,I,U]=S.split("-").map(Number);(j!==x||I-1!==f)&&g(j,I-1),O(U),G.current=U},[r,i,x,f,g]),M=o.useCallback(F=>{const S=new Date(x,f,N),j=U=>{S.setDate(S.getDate()+U),L(S)},I=U=>{const re=S.getFullYear()*12+S.getMonth()+U,ne=Math.floor(re/12),le=re-ne*12;L(new Date(ne,le,Math.min(S.getDate(),dr(ne,le))))};switch(F.key){case"ArrowLeft":j(-1);break;case"ArrowRight":j(1);break;case"ArrowUp":j(-7);break;case"ArrowDown":j(7);break;case"Home":j(-S.getDay());break;case"End":j(6-S.getDay());break;case"PageUp":F.shiftKey?I(-12):I(-1);break;case"PageDown":F.shiftKey?I(12):I(1);break;default:return}F.preventDefault()},[x,f,N,L]),$=o.useCallback(F=>{s||(t(pr(x,f,F)),v(!1))},[x,f,t,v,s]);o.useEffect(()=>{s&&v(!1)},[s,v]);const Z=F=>{const S=pr(x,f,F);return!!(r&&S<r||i&&S>i)},q=(()=>{const F=dr(x,f);if(N>=1&&N<=F&&!Z(N))return N;for(let S=1;S<=F;S++)if(!Z(S))return S;return-1})(),H=[];for(let F=0;F<My(x,f);F++)H.push(null);for(let F=1;F<=dr(x,f);F++)H.push(F);const W=a===64?20:a===40?16:18,R=$y(x,(F,S)=>er(d,m.language,F,S),r,i),z=`${x}-${String(f+1).padStart(2,"0")}`,V=A?en.createPortal(n.jsxs("div",{ref:D,id:k,className:"date-picker__dropdown",style:B,"data-tooltip-ignore":!0,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[n.jsxs("div",{className:"date-picker__nav",children:[n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:h,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(Ds,{size:16,strokeWidth:2})}),n.jsx(pn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:R,value:z,onChange:F=>{const[S,j]=F.split("-");g(+S,+j-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(Ss,{size:16,strokeWidth:2})})]}),n.jsxs("div",{className:"date-picker__grid",ref:P,onKeyDown:M,children:[C.map(F=>n.jsx("div",{className:"date-picker__dow caption-1",children:F},F)),H.map((F,S)=>{if(F===null)return n.jsx("div",{},`e${S}`);const j=pr(x,f,F),I=j===e,U=j===y,re=Z(F),ne=S%7;return n.jsx("button",{type:"button",disabled:re,"data-day":F,tabIndex:F===q?0:-1,"aria-current":U?"date":void 0,onClick:()=>!re&&$(F),className:we("date-picker__day caption-1",I&&"date-picker__day--selected",U&&!I&&"date-picker__day--today",re&&"date-picker__day--disabled",ne===0&&"date-picker__day--sun",ne===6&&"date-picker__day--sat"),children:F},F)})]})]}),document.body):null;return n.jsxs("div",{className:we("date-picker",`date-picker--s${a}`,A&&"date-picker--open",u),children:[n.jsxs("button",{ref:E,type:"button",className:"date-picker__trigger body-2",onClick:()=>!s&&w(),disabled:s,"aria-haspopup":"true","aria-expanded":A,children:[n.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?Ly(e):p}),n.jsx(Is,{size:W,className:"date-picker__icon",strokeWidth:1.5})]}),V]})}function mu({children:e,className:t}){const a=o.useRef(null),[r,i]=o.useState(null);return o.useEffect(()=>{i(a.current?.parentElement??null)},[]),o.useEffect(()=>{const s=a.current;if(!s||!r)return;const l=()=>{const c=typeof window<"u"&&window.getComputedStyle(s).position==="absolute"?Math.ceil(s.getBoundingClientRect().width):0;c>0?r.style.setProperty("--section-head-float-w",`${c}px`):r.style.removeProperty("--section-head-float-w")};if(l(),typeof ResizeObserver>"u")return()=>{r.style.removeProperty("--section-head-float-w")};const u=new ResizeObserver(()=>l());return u.observe(s),u.observe(r),()=>{u.disconnect(),r.style.removeProperty("--section-head-float-w")}},[r,e]),n.jsx("div",{ref:a,className:we("section-head-float",t),children:e})}function So({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 Ha({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 To({title:e,titleClassName:t="h3",titleLevel:a=3,icon:r,disc:i,headRight:s,headFloat:l,headSegment:u,headMenuItems:c,collapseBelow:d=420,onClick:m,ariaLabel:p,tooltip:C,totalNum:y,totalUnit:x,totalLabel:f,subRow:h,subRowAlign:_="start",className:g,inGrid:k=!1,children:b}){const{t:A}=xe.useTranslation(),v=o.useRef(null),{anchorRect:w,openAt:B,close:E}=Sa(),D=o.useCallback(()=>{C&&v.current&&B(v.current)},[C,B]),[N,O]=o.useState(!1);Eo(()=>{const S=v.current;if(!S||!u)return;const j=U=>O(U>0&&U<d);if(j(S.clientWidth),typeof ResizeObserver>"u")return;const I=new ResizeObserver(U=>j(U[0].contentRect.width));return I.observe(S),()=>I.disconnect()},[u,d]);const[P,G]=o.useState(null),L=o.useCallback(()=>G(null),[]),M=o.useCallback(S=>{const j=S.currentTarget.getBoundingClientRect();G(I=>I?null:{left:j.left,right:j.right,top:j.top,bottom:j.bottom,width:j.width,height:j.height,x:j.x,y:j.y})},[]),$=!!u&&N;o.useEffect(()=>{$||G(null)},[$]);const Z=u?[...u.options.map(S=>({label:S.label,icon:S.icon,selected:S.key===u.value,disabled:S.disabled,onClick:()=>u.onChange(S.key),closeOnSelect:!0})),...(c??[]).map((S,j)=>j===0?{...S,separatorBefore:!0}:S)]:[],q=o.useCallback(S=>{if(!m)return;const j=S.target;j&&typeof j.closest=="function"&&j.closest('button, a, input, select, textarea, [role="radiogroup"]')||m()},[m]),H=o.useCallback(S=>{m&&S.target===S.currentTarget&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),m())},[m]),W=typeof s=="function"?s({collapsed:$}):s,R=y!=null||f?n.jsxs(Ha,{label:f,children:[y!=null&&n.jsx("span",{className:"barchart-total__num h0",children:y}),x&&n.jsx("span",{className:"barchart-total__unit h5",children:x})]}):null,z=W||u?n.jsxs("div",{className:"manager-section__head-right",children:[u&&($?n.jsx(pe,{htmlType:"button",size:32,type:"dot",icon:"ellipsis",ariaLabel:u.ariaLabel??A("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:u.ariaLabel??A("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!P,onClick:M}):n.jsx(gn,{size:32,ariaLabel:u.ariaLabel,options:u.options.map(S=>({key:S.key,label:S.label,disabled:S.disabled})),value:u.value,onChange:u.onChange})),W]}):null,V=o.useId(),F=a?`h${a}`:"div";return n.jsxs("section",{ref:v,className:["manager-section",k&&"manager-section--grid",m&&"manager-section--clickable",g].filter(Boolean).join(" "),onClick:m?q:void 0,onKeyDown:m?H:void 0,onPointerEnter:C?D:void 0,onPointerLeave:C?E:void 0,onFocus:C?D:void 0,onBlur:C?E:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,"aria-label":m?p??(typeof e=="string"?e:void 0):void 0,"aria-labelledby":!m&&e!=null?V:void 0,children:[C&&w&&n.jsx(Bn,{anchorRect:{left:w.left,top:w.top+21,right:w.right,bottom:w.bottom,width:w.width,height:w.height},text:C}),l&&n.jsx(mu,{children:l}),n.jsxs("div",{className:"manager-section__head",children:[n.jsxs("div",{className:"manager-section__title-row",children:[r&&n.jsx(at,{icon:r,label:typeof e=="string"?e:void 0,className:"manager-section__icon"}),n.jsx(F,{id:V,className:["manager-section__title",t].filter(Boolean).join(" "),children:e})]}),z,i&&n.jsx("div",{className:"manager-section__disc body-3",children:i})]}),(R||h)&&n.jsxs("div",{className:["barchart-sub-row",_!=="start"&&`barchart-sub-row--${_}`].filter(Boolean).join(" "),children:[R,h]}),b,P&&n.jsx(cn,{anchorRect:P,onClose:L,ariaLabel:u?.ariaLabel??A("tooltip.menu","\uBA54\uB274"),children:n.jsx(Ma,{columns:[{items:Z}],onClose:L,size:"small"})})]})}const Va=(e,t)=>`${e}-${String(t).padStart(2,"0")}`,jo=e=>Va(e.getFullYear(),e.getMonth()+1);function ua(e){const t=/^(\d{4})-(\d{2})$/.exec(e);if(!t)return null;const a=Number(t[2]);return a>=1&&a<=12?{year:Number(t[1]),month1:a}:null}const Mo=(e,t)=>`${e}#${t}`;function bn(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function Py(){const e=ra();let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<bn(t,a)){const l=new Date(t,a,0);t=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const i=Math.floor((r-bn(t,a))/7),s=Va(t,a+1);return{monthKey:s,value:Mo(s,i)}}function Fy(e){const t=ra(),a=jo(t),r=(c,d)=>Va(c,d+1),i=new Map;i.set(a,[]);for(const c of e){if(isNaN(c.date.getTime()))continue;const d=r(c.date.getFullYear(),c.date.getMonth());i.has(d)||i.set(d,[]),i.get(d).push(c)}for(const[c,d]of[...i.entries()]){const m=ua(c);if(!m)continue;const p=m.year,C=m.month1-1,y=bn(p,C);if(!(c===a&&t.getDate()<y)&&!d.some(h=>h.date.getDate()<y))continue;const x=new Date(p,C,0),f=r(x.getFullYear(),x.getMonth());i.has(f)||i.set(f,[])}const s=new Map;for(const[c,d]of i){const m=ua(c);if(!m)continue;const p=m.year,C=m.month1-1,y=new Date(p,C+1,0).getDate(),x=d.reduce((b,A)=>Math.max(b,A.parts?.length??0,A.partsB?.length??0),0),f=d.some(b=>b.partsB),h=new Array(y+1).fill(0),_=new Array(y+1).fill(0),g=Array.from({length:y+1},()=>new Array(x).fill(0)),k=Array.from({length:y+1},()=>new Array(x).fill(0));for(const b of d){const A=b.date.getDate();if(h[A]+=b.a,_[A]+=b.b,b.parts)for(let v=0;v<x;v++)g[A][v]+=b.parts[v]??0;if(b.partsB)for(let v=0;v<x;v++)k[A][v]+=b.partsB[v]??0}s.set(c,{year:p,month:C,daysInMonth:y,partsLen:x,hasPartsB:f,dayA:h,dayB:_,dayParts:g,dayPartsB:k})}const l=(c,d,m)=>new Date(c,d,m).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),u={};for(const[c,d]of s){const{year:m,month:p,daysInMonth:C,dayA:y,dayB:x,dayParts:f,dayPartsB:h}=d,_=m===t.getFullYear()&&p===t.getMonth(),g=t.getDate(),k=s.get(r(p===11?m+1:m,(p+1)%12)),b=d.partsLen,A=[];for(let w=1;w<=C;w++){const B=_&&w>g;A.push({label:String(w),...B&&y[w]===0&&x[w]===0?{future:!0}:{},a:B&&y[w]===0&&x[w]===0?-1:y[w],b:x[w],...b?{parts:f[w]}:{},...b&&d.hasPartsB?{partsB:h[w]}:{}})}const v=[];for(let w=bn(m,p);w<=C;w+=7){const B=Math.max(0,w+6-C),E=B&&k?Math.max(b,k.partsLen):b,D=d.hasPartsB||!!(B&&k?.hasPartsB);let N=0,O=0;const P=new Array(E).fill(0),G=new Array(E).fill(0);for(let M=w;M<=Math.min(w+6,C);M++){N+=y[M],O+=x[M];for(let $=0;$<b;$++)P[$]+=f[M][$],G[$]+=h[M][$]}if(B&&k)for(let M=1;M<=B&&!l(k.year,k.month,M);M++){N+=k.dayA[M],O+=k.dayB[M];for(let $=0;$<k.partsLen;$++)P[$]+=k.dayParts[M][$],G[$]+=k.dayPartsB[M][$]}const L=B?`${(p+1)%12+1}/${B}`:`${w+6}`;v.push({label:`${v.length+1}\uC8FC`,sublabel:`[${w}\uC77C~${L}\uC77C]`,a:N,b:O,...E?{parts:P}:{},...E&&D?{partsB:G}:{}})}u[c]={weekly:v,daily:A}}return u}function hu(){const e=ra(),t=e.getFullYear(),a=e.getMonth()+1,r=[];for(let i=2024;i<=t;i++){const s=i===t?a:12;for(let l=1;l<=s;l++)r.push({value:Va(i,l),year:i,month:l})}return r.reverse()}hu();function Iy(){return hu()}function Cu(e,t){const a=e("calendar.weekOrdinal",{returnObjects:!0,defaultValue:[]}),r=Array.isArray(a)&&typeof a[t]=="string"?a[t]:null;return e("calendar.weekLabel",{ord:r??String(t+1)})}function fu(e){const{t,i18n:a}=xe.useTranslation(),[r,i]=o.useState("week"),s=o.useMemo(()=>Iy().filter(E=>E.value in e),[e]),l=o.useMemo(()=>{const E=[];for(const D of s){const N=new Date(D.year,D.month,0).getDate(),O=bn(D.year,D.month-1),P=Math.ceil((N-O+1)/7);for(let G=P-1;G>=0;G--)E.push({value:Mo(D.value,G),monthKey:D.value,year:D.year,month:D.month,week:G})}return E},[s]),u=o.useCallback(E=>`${er(t,a.language,E.year,E.month)} ${Cu(t,E.week)}`,[t]),c=o.useMemo(()=>s.map(E=>({value:E.value,label:er(t,a.language,E.year,E.month)})),[t,a.language,s]),d=o.useMemo(()=>l.map(E=>({value:E.value,label:u(E)})),[l,u]),m=o.useMemo(()=>Py(),[e]),p=o.useMemo(()=>s.find(E=>E.value===m.monthKey)?.value??s[0]?.value??"",[s,m]),C=o.useMemo(()=>l.find(E=>E.value===m.value)?.value??l[0]?.value??"",[l,m]),[y,x]=o.useState(""),[f,h]=o.useState("");o.useEffect(()=>{s.find(E=>E.value===y)||x(p)},[s,y,p]),o.useEffect(()=>{l.find(E=>E.value===f)||h(C)},[l,f,C]);const _=r==="month"?c:d,g=r==="month"?y:f,k=r==="month"?x:h,b=o.useMemo(()=>{const E=t("calendar.dow",{returnObjects:!0});return Array.isArray(E)?E:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),A=_.findIndex(E=>E.value===g),v=o.useCallback(()=>{const E=_.findIndex(D=>D.value===g);E<_.length-1&&k(_[E+1].value)},[_,g,k]),w=o.useCallback(()=>{const E=_.findIndex(D=>D.value===g);E>0&&k(_[E-1].value)},[_,g,k]),B=o.useMemo(()=>[{key:"week",label:t("manager.chart.periodWeek","\uC8FC")},{key:"month",label:t("manager.chart.periodMonth","\uC6D4")}],[t]);return{period:r,setPeriod:i,range:g,setRange:k,activeOptions:_,activeIdx:A,handlePrev:v,handleNext:w,periodOptions:B,monthRange:y,weekRange:f,weekRanges:l,DOW:b}}const _t=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function En(e,t=!0){return e.future===!0||t&&e.a===-1}function Oy({data:e,colorA:t,colorB:a,labelA:r,labelB:i,barWidth:s=10,barGap:l=1,height:u=140,maxOverride:c,tightMax:d,seriesColors:m,seriesLabels:p,rateLabels:C,grouped:y=!1,baseline:x,focusableBars:f=!1}){const h=!a,_=!!(m&&m.length>0),g=x,k=o.useMemo(()=>_?Math.max(0,...e.filter(H=>!En(H,g==null)).map(H=>y?Math.max(0,...(H.parts??[]).map(_t)):(H.parts??[]).reduce((W,R)=>W+Math.max(0,_t(R)),0))):Math.max(0,...e.filter(H=>!En(H,g==null)).flatMap(H=>h?[_t(H.a)]:[_t(H.a),_t(H.b)])),[e,h,_,y]),b=o.useMemo(()=>{if(g==null)return 0;const H=e.filter(W=>!En(W,g==null)).flatMap(W=>_?(W.parts??[]).map(_t):h?[_t(W.a)]:[_t(W.a),_t(W.b)]);return Math.max(0,...H.map(W=>Math.abs(W-g)))},[e,g,_,h]),A=o.useMemo(()=>{const H=g!=null?b:k;return c??(d?H>0?H:10:Math.ceil(H/10)*10||10)},[k,b,g,c,d]),v=u,w=_?y?Math.max(1,m.length):1:h?1:2,B={"--bar-width":`${o.useMemo(()=>{const H=Math.max(1,e.length);return Math.max(2,Math.min(s,Math.round(120/(H*w)+6)))},[e.length,w,s])}px`},E={"--bar-group-gap":`${Math.max(0,l)}px`},D=o.useMemo(()=>{const H=Math.round(A/2);return g!=null?[g+A,...H!==A?[g+H]:[],g,...H!==A?[g-H]:[],g-A]:H!==A?[A,H,0]:[A,0]},[A,g]),N=H=>g!=null?1-(H-(g-A))/(2*A):1-H/A,[O,P]=o.useState(null),G=o.useCallback(()=>P(null),[]),L=o.useCallback((H,W)=>{const R=[H.label,H.sublabel].filter(Boolean).join(" ");let z;if(_&&y&&H.rawPartsB)z=(p??[]).map((V,F)=>{const S=H.rawPartsB[F]??0;return{text:S>0?`${V}: ${W[F]??0}% (${H.rawParts?.[F]??0}/${S})`:`${V}: -`,color:(m??[])[F]}});else if(_&&y)z=(p??[]).map((V,F)=>({text:`${V}: ${Z(W[F]??0)}`,color:(m??[])[F]}));else if(_){const V=(p??[]).map((S,j)=>({text:`${S}: ${W[j]??0}`,color:(m??[])[j]})),F=V.filter((S,j)=>(W[j]??0)>0);z=F.length?F:V}else C&&!h?z=[{text:`${r} ${_t(H.a)}%`,color:t},{text:`${i} ${_t(H.b)}%`,color:a}]:C&&H.rawB!==void 0?z=[{text:`${C.total} ${H.rawB}`},{text:`${C.done} ${H.rawA??0}`,color:t}]:h?z=[{text:`${r}: ${_t(H.a)}`,color:t}]:z=[{text:`${r}: ${_t(H.a)}`,color:t},{text:`${i}: ${_t(H.b)}`,color:a}];return{title:R,items:z}},[_,y,p,m,C,h,r,i,t,a,g]),M=o.useCallback((H,W,R)=>{const z=H.getBoundingClientRect(),{title:V,items:F}=L(W,R);P({rect:{left:z.left,top:z.top,right:z.right,bottom:z.bottom,width:z.width,height:z.height},title:V,items:F})},[L]),$=o.useCallback((H,W)=>{const{title:R,items:z}=L(H,W);return[R,...z.map(V=>V.text)].filter(Boolean).join(", ")},[L]),Z=H=>g!=null&&H>g?`+${H}`:`${H}`,q=O!=null;return o.useEffect(()=>{if(!q)return;const H=()=>P(null),W=R=>{const z=R.target;z&&typeof z.closest=="function"&&z.closest(".manager-bar-chart-col")||P(null)};return window.addEventListener("scroll",H,!0),document.addEventListener("pointerdown",W,!0),()=>{window.removeEventListener("scroll",H,!0),document.removeEventListener("pointerdown",W,!0)}},[q]),n.jsxs("div",{className:"manager-bar-chart-wrap",style:E,children:[n.jsx("div",{className:"manager-bar-chart-inner",children:n.jsx("div",{className:"manager-bar-chart-scroll",children:n.jsxs("div",{className:"manager-bar-chart-area",children:[n.jsxs("div",{className:"manager-bar-chart-plot",style:{height:v},children:[D.slice(0,-1).map((H,W)=>n.jsx("div",{className:`manager-bar-chart-gridline${g!=null&&H===g?" manager-bar-chart-gridline--baseline":""}`,style:{top:N(H)*v},children:n.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:H})},W)),e.map((H,W)=>{const R=En(H,g==null),z=v/2,V=I=>g!=null?Math.min(z,Math.abs(_t(I)-g)/A*z):Math.min(v,Math.max(0,_t(I)/A*v)),F=R?0:V(H.a),S=R?0:V(H.b),j=(H.parts??[]).map(_t);return n.jsx("div",{className:`manager-bar-chart-col${y&&_?" manager-bar-chart-col--group":""}`,style:{cursor:R?"default":"pointer"},tabIndex:f&&!R?0:void 0,role:f&&!R?"img":void 0,"aria-label":f&&!R?$(H,j):void 0,onMouseEnter:R?void 0:I=>M(I.currentTarget,H,j),onFocus:R||!f?void 0:I=>M(I.currentTarget,H,j),onBlur:f?G:void 0,onMouseLeave:G,children:!R&&(_&&y?(m??[]).map((I,U)=>{const re=j[U]??0;if(g==null)return n.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:V(re),background:I}},U);const ne=_t(re)<g;return n.jsxs("div",{className:"manager-bar-chart-slot",style:B,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!ne&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:V(re),background:I}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:ne&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:V(re),background:I}})})]},U)}):_?n.jsx("div",{className:"manager-bar-chart-stack",style:B,children:(()=>{const I=j.reduce((re,ne,le)=>ne>0?le:re,-1);let U=v;return j.map((re,ne)=>{if(re<=0)return null;const le=Math.min(U,re/A*v);return U-=le,n.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:le,background:(m??[])[ne],borderRadius:ne===I?"6px 6px 0 0":void 0}},ne)})})()}):g!=null?n.jsx(n.Fragment,{children:[{v:_t(H.a),c:t},...h?[]:[{v:_t(H.b),c:a}]].map(({v:I,c:U},re)=>n.jsxs("div",{className:"manager-bar-chart-slot",style:B,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:I>=g&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:V(I),background:U}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:I<g&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:V(I),background:U}})})]},re))}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:F,background:t}}),!h&&n.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:S,background:a}})]}))},W)})]}),n.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((H,W)=>{const R=En(H,g==null);return n.jsxs("span",{className:`manager-bar-chart-x-axis__label${R?" manager-bar-chart-x-axis__label--future":""}`,children:[n.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[H.isToday&&n.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),H.label]}),H.sublabel&&n.jsx("span",{className:"caption-1",children:H.sublabel})]},W)})})]})})}),O&&n.jsx(Kn,{anchorRect:O.rect,title:O.title,items:O.items,showIndex:!1,closeOnOutsideClick:!1})]})}function gu({control:e}){const{t}=xe.useTranslation(),{activeOptions:a,activeIdx:r,range:i,setRange:s,handlePrev:l,handleNext:u,periodOptions:c,period:d,setPeriod:m}=e,p=d==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),C=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(pe,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:p,showTooltipInfo:p,disabled:r===a.length-1,onClick:l}),n.jsx(pn,{value:i,onChange:s,options:a,size:40,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),n.jsx(pe,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:C,showTooltipInfo:C,disabled:r<=0,onClick:u}),n.jsx(gn,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:c,value:d,onChange:y=>m(y),size:40})]})}function Lo(e,t,a,r=!0){const i=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(s,l)=>{const u=new Date(t);u.setDate(t.getDate()+l);const c=(e[jo(u)]?.daily??[])[u.getDate()-1],d=c!=null&&En(c,r)||u>i;return{dt:u,entry:c,isFuture:d}})}function Hy(e,t,a,r=!0){const{period:i,monthRange:s,weekRange:l,weekRanges:u,DOW:c}=t,d=ra(),m=d.getFullYear(),p=d.getMonth()+1,C=d.getDate();if(i==="month"){const f=e[s]??{weekly:[],daily:[]},h=ua(s),_=h?h.year:null,g=h?h.month1:null,k=_&&g?bn(_,g-1):1;return f.weekly.map((b,A)=>{const v=A+1;let w=b.label,B=!1,E=!1;if(_&&g){const D=k+A*7,N=new Date(_,g-1,D+6),O=N.getMonth()+1,P=N.getDate(),G=O===g?`${P}`:`${O}/${P}`;w=a("manager.chart.weekRange",{start:D,end:G});const L=new Date(m,p-1,C).getTime();B=L>=new Date(_,g-1,D).getTime()&&L<=N.getTime(),E=_>m||_===m&&(g>p||g===p&&D>C)}return{...b,label:w,sublabel:Cu(a,v-1),isToday:B,future:b.future===!0||E||void 0,a:E?-1:b.a,b:E?0:b.b}})}const y=u.find(f=>f.value===l);if(!y)return[];const x=new Date(y.year,y.month-1,bn(y.year,y.month-1)+y.week*7);return Lo(e,x,d,r).map(({dt:f,entry:h,isFuture:_})=>{const g=f.getMonth()+1,k=f.getDate(),b=f.getFullYear();return{label:g===y.month&&b===y.year?`${k}`:`${g}/${k}`,sublabel:c[f.getDay()]??"",future:_||void 0,a:_?-1:h&&h.a>0?h.a:0,b:_?0:h&&h.b>0?h.b:0,isToday:b===m&&g===p&&k===C,...h?.parts?{parts:_?h.parts.map(()=>0):h.parts}:{},...h?.partsB?{partsB:_?h.partsB.map(()=>0):h.partsB}:{}}})}const Vy={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function zy({focusableBars:e,size:t="medium",barWidth:a,titleKey:r,titleLevel:i,data:s,colorA:l,colorB:u,labelAKey:c,labelBKey:d,showTotal:m=!1,totalUnitKey:p,totalLabelKey:C,control:y,hideControls:x=!1,rate:f=!1,rateAgg:h="dayMean",tightMax:_=!1,avgMode:g=!1,totalFormat:k,series:b,seriesMode:A="stack",loading:v=!1,onDetail:w,headExtra:B,headSegment:E,icon:D,disc:N,onClick:O,cardAriaLabel:P,cardTooltip:G,detailSize:L=32,barGap:M,baseline:$,className:Z,inGrid:q=!1}){const{t:H}=xe.useTranslation(),W=Vy[t],R=fu(s),z=y??R,V=o.useMemo(()=>Hy(s,z,H,$==null),[s,z,H,$]),F=A==="group"&&!!b&&b.length>0;M!=null&&!F&&St("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 S=o.useMemo(()=>{if(!f)return V;const K=z.period==="month"?ua(z.monthRange):null,oe=ra(),ke=b?.length??0,Y=Q=>{const me=[],De=[],be=[];for(let te=0;te<ke;te++){let ue=0,Ce=0,ge=0;for(const fe of Q){const $e=_t(fe.a[te]),ze=_t(fe.b[te]);ze<=0||(ue+=$e,Ce+=ze,ge+=$e/ze*100)}me.push(h==="weighted"?Ce>0?Math.round(ue/Ce*100):0:Q.length?Math.round(ge/Q.length):0),De.push(ue),be.push(Ce)}return{pct:me,ra:De,rb:be}};return V.map((Q,me)=>{let De=Q.a===-1?-1:Q.b>0?Math.round(Q.a/Q.b*100):0;if(K&&!En(Q)){const te=K.year,ue=K.month1-1,Ce=Lo(s,new Date(te,ue,bn(te,ue)+me*7),oe).filter(ge=>!ge.isFuture);if(h==="weighted"){let ge=0,fe=0;for(const{entry:$e}of Ce)$e&&$e.b>0&&(ge+=$e.a,fe+=$e.b);De=fe>0?Math.round(ge/fe*100):0}else De=Ce.length?Math.round(Ce.reduce((ge,{entry:fe})=>ge+(fe&&fe.b>0?fe.a/fe.b*100:0),0)/Ce.length):0}let be=null;if(F&&!En(Q)){let te;if(K){const Ce=K.year,ge=K.month1-1;te=Lo(s,new Date(Ce,ge,bn(Ce,ge)+me*7),oe).filter(fe=>!fe.isFuture).map(({entry:fe})=>({a:fe?.parts??[],b:fe?.partsB??[]}))}else te=[{a:Q.parts??[],b:Q.partsB??[]}];const ue=Y(te);be={parts:ue.pct,rawParts:ue.ra,rawPartsB:ue.rb}}return{...Q,a:De,b:Q.a===-1?0:d&&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,...be??{}}})},[V,f,h,d,z.period,z.monthRange,s,F,b?.length]),j=o.useMemo(()=>{if(f||g){const oe=(z.period==="week"?V:s[z.monthRange]?.daily??[]).filter(Y=>Y.a!==-1);if(oe.length===0)return 0;if(f&&h==="weighted"){let Y=0,Q=0;for(const me of oe)me.b>0&&(Y+=me.a,Q+=me.b);return Q>0?Math.round(Y/Q*100):0}const ke=f?oe.reduce((Y,Q)=>Y+(Q.b>0?Q.a/Q.b*100:0),0):oe.reduce((Y,Q)=>Y+(Q.a>0?Q.a:0),0);return Math.round(ke/oe.length)}const K=z.period==="month"?s[z.monthRange]?.daily??[]:S;return $!=null?K.reduce((oe,ke)=>oe+(En(ke,!1)?0:_t(ke.a)+(d?_t(ke.b):0)),0):K.reduce((oe,ke)=>oe+(ke.a>0?ke.a:0)+(d&&ke.b>0?ke.b:0),0)},[S,V,f,h,g,$,d,z.period,z.monthRange,s]),I=b&&b.length>0?b.map(K=>({color:K.color,label:K.label})):[{color:l,label:H(c)},...d?[{color:u,label:H(d)}]:[]],U=t==="small",re=[U?"manager-section--compact":t==="large"?"manager-section--full":void 0,Z].filter(Boolean).join(" ")||void 0,ne=r?H(r):"",le=ne?H("trainingStatus.detailFor",{name:ne,defaultValue:"{{name}} \uC0C1\uC138\uBCF4\uAE30"}):H("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30");return n.jsx(To,{className:re,inGrid:q,icon:D,disc:N,onClick:O,ariaLabel:P,tooltip:G,headSegment:E,headMenuItems:w?[{label:le,icon:"list",onClick:w,closeOnSelect:!0}]:void 0,title:H(r),titleLevel:i,titleClassName:U?"h5 chart-section-title--small":void 0,headRight:U?B??void 0:({collapsed:K})=>n.jsxs(n.Fragment,{children:[!x&&n.jsx(gu,{control:z}),B,w&&!K&&n.jsx("span",{className:"manager-bar-chart-detail-btn",children:n.jsx(pe,{htmlType:"button",size:L,type:"dot",icon:"list",ariaLabel:le,showTooltipInfo:le,onClick:w})})]}),subRow:n.jsxs(n.Fragment,{children:[m?f||g||C&&k?n.jsx(Ha,{label:U?void 0:`${H(z.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${H(C??c)}`,children:k?(k(j).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((K,oe)=>/\d/.test(K)?n.jsx("span",{className:"barchart-total__num h0",children:K},oe):n.jsx("span",{className:"barchart-total__unit h5",children:K},oe)):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"barchart-total__num h0",children:j}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:H(p)})]})}):n.jsxs(Ha,{children:[n.jsx("span",{className:"barchart-total__num h0",children:j}),n.jsx("span",{className:"barchart-total__unit h5",children:H(c)}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:H(p)})]}):n.jsx("span",{}),n.jsx(So,{items:I,className:"caption-1"})]}),children:v?n.jsx("div",{className:"manager-bar-chart-wrap manager-bar-chart-loading","aria-busy":"true",children:n.jsx("div",{className:"manager-bar-chart-inner",children:n.jsxs("div",{className:"manager-bar-chart-area manager-bar-chart-area--loading",children:[n.jsx("div",{className:"manager-bar-chart-plot manager-bar-chart-plot--loading",style:{height:W.height},children:n.jsx(Oa,{size:32})}),n.jsx("div",{className:"manager-bar-chart-x-axis","aria-hidden":"true",children:n.jsxs("span",{className:"manager-bar-chart-x-axis__label",children:[n.jsx("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:"\xA0"}),S.some(K=>!!K.sublabel)&&n.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):n.jsx(Oy,{focusableBars:e,data:S,colorA:l,colorB:d?u:void 0,labelA:H(c),labelB:d?H(d):void 0,barWidth:a??W.barWidth,barGap:M,baseline:$,height:W.height,maxOverride:f?100:void 0,tightMax:_,seriesColors:b?.map(K=>K.color),seriesLabels:b?.map(K=>K.label),rateLabels:f?{total:H("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:H("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:F})})}const bu=120,Wy={left:38,right:16,top:26,bottom:24};function qy({points:e=[],range:t,ticks:a=[],axisTitle:r,color:i,height:s=156,fallbackWidth:l=320,insets:u,overlay:c,ariaLabel:d,className:m}){const[p,C]=o.useState(null),[y,x]=o.useState(null);o.useEffect(()=>{if(!y)return;const $=q=>C(Math.round(q)||null);if($(y.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const Z=new ResizeObserver(([q])=>$(q.contentRect.width));return Z.observe(y),()=>{Z.disconnect()}},[y]);const{payload:f,anchorRect:h,openAfterDelay:_,close:g}=Y4(bu),k=o.useCallback(($,Z)=>{$&&_($,Z.getBoundingClientRect())},[_]),b=p??l,A=s,{left:v,right:w,top:B,bottom:E}={...Wy,...u},[D,N]=t,O=$=>N===D?v:v+(b-v-w)*($-D)/(N-D),P=$=>B+(A-B-E)*(100-$)/100,G={x:O,y:P,plot:{left:v,right:b-w,top:B,bottom:A-E,width:Math.max(0,b-v-w),height:Math.max(0,A-B-E)}},L=e.filter($=>!$.hollow),M=i??"var(--color-main)";return n.jsxs(n.Fragment,{children:[n.jsxs("svg",{ref:x,className:we("line-chart",m),viewBox:`0 0 ${b} ${A}`,role:"img","aria-label":d??e.map($=>$.description).filter(Boolean).join(", "),children:[r&&n.jsx("text",{className:"line-chart__axis-title",x:0,y:12,children:r}),[0,100].map($=>n.jsxs("g",{children:[n.jsx("line",{className:"line-chart__grid",x1:v,x2:b-w,y1:P($),y2:P($)}),n.jsxs("text",{className:"line-chart__tick",x:v-6,y:P($)+4,textAnchor:"end",children:[$,"%"]})]},$)),c?.(G),a.map($=>n.jsx("text",{className:"line-chart__tick",x:O($.x),y:A-5,textAnchor:"middle",children:$.label},$.x)),L.length>1&&n.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:M,points:L.map($=>`${O($.x)},${P($.pct)}`).join(" ")}),e.map($=>n.jsxs("g",{className:"line-chart__dot",onPointerEnter:Z=>k($.description,Z.currentTarget),onPointerLeave:g,children:[n.jsx("circle",{className:"line-chart__dot-hit",cx:O($.x),cy:P($.pct),r:12}),n.jsx("circle",{className:we("line-chart__dot-main",$.hollow&&"is-hollow"),cx:O($.x),cy:P($.pct),r:4,stroke:M,fill:$.hollow?void 0:M})]},$.x))]}),f!=null&&n.jsx(cn,{anchorRect:h,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:f,children:f})]})}function Uy({icon:e,iconSize:t=56,title:a,titleClass:r="h2",description:i,tipGroups:s,start:l,className:u}){return n.jsxs("div",{className:we("game-intro",u),children:[e!=null&&n.jsx("span",{className:"game-intro__icon","aria-hidden":"true",style:{"--game-intro-icon":`${t}px`},children:e}),n.jsx("h2",{className:we("game-intro__title",r),children:a}),i!=null&&n.jsx("p",{className:"game-intro__description body-3",children:i}),s?.map((c,d)=>n.jsxs("div",{className:"game-intro__tips",children:[c.title!=null&&n.jsx("span",{className:"game-intro__tips-title body-3",children:c.title}),c.tips.map((m,p)=>n.jsxs("span",{className:"game-intro__tip body-3",children:[m.icon!=null&&n.jsx("span",{"aria-hidden":"true",children:m.icon}),n.jsx("span",{children:m.text})]},p))]},d)),l&&n.jsx(pe,{htmlType:"button",className:l.className,variant:"main",color:l.color,size:48,width:"100%",disabled:l.disabled,onClick:l.onClick,children:l.label})]})}const yu=(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")}`},vu=(e,t,a,r)=>({from:Ti(e,t,a),to:new Date(Ti(e,t,a+r).getTime()-1),fromYmd:yu(e,t,a),toYmd:yu(e,t,a+r-1)});function Gy(e,t=0){if(e.period==="month"){const i=ua(e.monthRange),s=ra(),l=i?i.year:s.getFullYear(),u=(i?i.month1:s.getMonth()+1)-1+t,c=new Date(Date.UTC(l,u+1,0)).getUTCDate();return vu(l,u,1,c)}const a=e.weekRanges.find(i=>i.value===e.weekRange);if(!a){const i=new Date,s=Na();return{from:i,to:i,fromYmd:s,toYmd:s}}const r=bn(a.year,a.month-1);return vu(a.year,a.month-1,r+(a.week+t)*7,7)}const $o={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function xu(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function _u({done:e,total:t,segments:a,color:r="var(--color-main)",size:i="medium",strokeWidth:s,label:l="%",hideCenter:u=!1,hideLabel:c=!1}){const d=typeof i=="number"?i:$o[i].diameter,m=s??(typeof i=="number"?12:$o[i].strokeWidth),p=d/2,C=(d-m)/2,y=2*Math.PI*C;if(a&&a.length>0){const _=a.reduce((g,k)=>{const b=g.length>0?g[g.length-1].acc:0,A=Number.isFinite(k.ratio)?k.ratio:0,v=Math.max(0,Math.min(A,1-b));return g.push({color:k.color,rotate:-90+b*360,dash:y*v,acc:b+v}),g},[]);return n.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:p,cy:p,r:C,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),_.map((g,k)=>g.dash>0&&n.jsx("circle",{cx:p,cy:p,r:C,fill:"none",stroke:g.color,strokeWidth:m,strokeDasharray:`${g.dash} ${y}`,strokeLinecap:"round",transform:`rotate(${g.rotate} ${p} ${p})`},k))]})})}const x=(t??0)>0?Math.min((e??0)/t,1):0,f=y*x,h=y-f;return n.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:p,cy:p,r:C,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),x>0&&n.jsx("circle",{cx:p,cy:p,r:C,fill:"none",stroke:r,strokeWidth:m,strokeDasharray:`${f} ${h}`,strokeLinecap:x<.02||x>.98?"butt":"round",transform:`rotate(-90 ${p} ${p})`})]}),!u&&n.jsxs("div",{className:`ring-chart__center${c?"":` ${d<=96?"ring-chart__center--small":i==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[n.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:xu(x)}),!c&&n.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||i==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function Ky({titleKey:e,titleLevel:t,headRight:a,icon:r,showTotal:i,totalLabelKey:s,legend:l,loading:u,className:c,inGrid:d=!1,onClick:m,ariaLabel:p,tooltip:C,...y}){const{t:x}=xe.useTranslation();if(!e)return n.jsx(_u,{...y});const f=(y.total??0)>0?xu(Math.min((y.done??0)/y.total,1)):0,h=y.size==="small",_=typeof y.size=="number"?y.size:$o[y.size??"medium"].diameter,g=y.size==="large",k=[c,h?"manager-section--compact":g?"manager-section--full":""].filter(Boolean).join(" ")||void 0,b=r&&n.jsx("span",{className:"chart-section-icon",children:n.jsx(at,{icon:r,className:"chart-section-icon-inner"})});return n.jsx(To,{className:k,inGrid:d,onClick:m,ariaLabel:p,tooltip:C,title:x(e),titleLevel:t,titleClassName:h?"h5 chart-section-title--small":void 0,headRight:b||(h?void 0:a),subRow:(i||l)&&n.jsxs(n.Fragment,{children:[i?n.jsxs(Ha,{label:!h&&s?x(s):void 0,children:[n.jsx("span",{className:"barchart-total__num h0",children:f}),n.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):n.jsx("span",{}),l&&n.jsx(So,{items:l})]}),children:u?n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx("div",{className:"ring-chart ring-chart--loading",style:{width:_,height:_},"aria-busy":"true",children:n.jsx(Oa,{size:32})})}):n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx(_u,{...y,hideCenter:y.hideCenter??h})})})}function Yy({label:e,value:t,change:a,changeType:r,icon:i,tooltip:s,onClick:l,children:u}){const c=o.useRef(null),{anchorRect:d,openAt:m,close:p}=Sa(),C=o.useCallback(()=>{s&&c.current&&m(c.current)},[s,m]),y=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),x=a===void 0?void 0:a>0?`+${a}`:`${a}`,f=o.useCallback(h=>{l&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),l())},[l]);return n.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?f:void 0,onPointerEnter:C,onPointerLeave:p,onFocus:C,onBlur:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,t,x].filter(h=>h!==void 0&&h!=="").join(" "):void 0,children:[s&&d&&n.jsx(Bn,{anchorRect:{left:d.left,top:d.top+21,right:d.right,bottom:d.bottom,width:d.width,height:d.height},text:s}),n.jsxs("div",{className:"manager-stat-card__label-row",children:[n.jsx("span",{className:"manager-stat-card__label h5",children:e}),i&&n.jsx("span",{className:"manager-stat-card__icon",children:n.jsx(at,{icon:i,className:"manager-stat-card__icon-inner"})})]}),n.jsxs("div",{className:"manager-stat-card__content",children:[n.jsxs("div",{className:"manager-stat-card__left",children:[n.jsx("div",{className:"manager-stat-card__value h2",children:t}),x&&n.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${y??"neutral"} caption-1`,children:x})]}),u&&n.jsx("div",{className:"manager-stat-card__body",children:u})]})]})}function wu({value:e,onChange:t,min:a=0,max:r=100,step:i=1,orientation:s="horizontal",size:l=24,disabled:u=!1,ariaLabel:c,length:d,className:m,label:p,formatValue:C,labelPos:y,labelAlign:x="right",showMinMax:f=!1,minLabel:h,maxLabel:_,showBgTick:g=!1,showFillTick:k=!1,tickStep:b,tickShape:A="dot"}){t&&!c&&St("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const v=Math.min(r,Math.max(a,e)),w=r>a?(v-a)/(r-a):0,B=s==="vertical",E=!t,D=V=>t?.(Number(V.target.value)),N=typeof d=="number"?`${d}px`:d,O={"--slider-ratio":String(w),"--slider-thumb":`${l}px`,...N?B?{height:N}:{width:N}:{}},P=b??i,G=(g||k)&&P>0&&r>a?Math.floor((r-a)/P+1e-6):0;if(G>0&&G<=100){const V=A!=="dash",F=re=>V?`radial-gradient(circle, ${re} 0.5px, transparent 1px)`:B?`linear-gradient(to bottom, transparent calc(50% - 2px), ${re} calc(50% - 2px), ${re} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${re} calc(50% - 2px), ${re} calc(50% + 2px), transparent calc(50% + 2px))`,S=V?"2px":"4px",j=[],I=[],U=[];for(let re=0;re<=G;re++){const ne=re*P/(r-a);if(ne>1+1e-6)break;const le=`${((B?1-ne:ne)*100).toFixed(4)}%`,K=ne<=w+1e-6;if(K?!k:!g)continue;const oe=K?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";j.push(F(oe)),I.push(B?`${S} var(--slider-thumb)`:`var(--slider-thumb) ${S}`),U.push(B?`center ${le}`:`${le} center`)}j.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))"),I.push("100% 100%"),U.push("0 0"),O.backgroundImage=j.join(", "),O.backgroundSize=I.join(", "),O.backgroundPosition=U.join(", "),O.backgroundRepeat="no-repeat"}const L=C?C(v):p==="percent"?`${Math.round(r>a?(v-a)/(r-a)*100:0)}%`:p==="count"?`${v} / ${r}`:v===a&&h?h:v===r&&_?_:void 0,M=n.jsx("input",{type:"range",className:we("slider",`slider--${s}`,E&&"slider--static",!p&&!f&&m),min:a,max:r,step:i,value:v,disabled:u,readOnly:E,tabIndex:E?-1:void 0,"aria-label":c,"aria-valuetext":L,"aria-orientation":s,onChange:D,style:O});if(!p&&!f)return M;const $=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:h??a}),Z=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:_??r}),q=f?n.jsxs("div",{className:we("slider-track-group",`slider-track-group--${s}`,!p&&m),children:[B?Z:$,M,B?$:Z]}):M;if(!p)return q;const H=y??(B?"bottom":"right"),W=`${Math.round(r>a?(v-a)/(r-a)*100:0)}%`,R=C?C(v):p==="percent"?W:p==="count"?`${v} / ${r}`:String(v),z=n.jsx("span",{className:"slider-wrap__value body-3b",children:R});return n.jsxs("div",{className:we("slider-wrap",`slider-wrap--${s}`,`slider-wrap--label-${H}`,`slider-wrap--align-${x}`,m),children:[q,z]})}const Zy=.86,Xy=250,Ro=(e,t,a,r)=>Math.round(Math.min(r,Math.max(a,e-t))),Po=(e,t,a,r)=>{const i=Ro(e,t,a,r);return`${i<0?"-":"+"}${Math.abs(i)} dB`};function Fo({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:i,labelPos:s,labelAlign:l="right",floorDb:u=-60,refDb:c=-35,displayMin:d=-5,displayMax:m=25,className:p,ariaLabel:C}){const y=o.useRef(null),x=o.useRef(null),f=o.useRef(null),h=o.useRef(null),[_,g]=o.useState(null);o.useEffect(()=>{const v=M=>{const $=Po(M,c,d,m);f.current&&(f.current.textContent=$);const Z=y.current;Z&&(Z.setAttribute("aria-valuenow",String(Ro(M,c,d,m))),Z.setAttribute("aria-valuetext",$))},w=e??RC(t)??(_&&_.el===t?_.node:null),B=x.current;if(!w||!B){B?.style.setProperty("--meter-level","0"),v(u);let M=!1;return!e&&t&&Ka(t).then($=>{!M&&$&&g({el:t,node:$})}),()=>{M=!0}}Xr();const E=new Float32Array(w.fftSize);let D=0,N=0,O=0,P=0,G=null;const L=M=>{const $=PC(w,E);D=$>D?$:D*Zy;const Z=D>1e-5?20*Math.log10(D):-1/0,q=Math.max(u,Z),H=q-c,W=Math.min(1,Math.max(0,(H-d)/(m-d)));if(B.style.setProperty("--meter-level",W.toFixed(3)),N+=q,O+=1,M-P>=Xy){const R=N/O;G=G==null?R:G*.6+R*.4,v(G),N=0,O=0,P=M}h.current=requestAnimationFrame(L)};return h.current=requestAnimationFrame(L),()=>{h.current!=null&&cancelAnimationFrame(h.current),h.current=null}},[e,t,_,u,c,d,m]);const k=typeof r=="number"?`${r}px`:r,b=n.jsx("div",{className:"audio-meter__track",style:k?a==="vertical"?{height:k}:{width:k}:{},children:n.jsx("div",{ref:x,className:"audio-meter__fill"})}),A=s??(a==="vertical"?"bottom":"right");return n.jsxs("div",{ref:y,className:we("audio-meter",`audio-meter--${a}`,i&&`audio-meter--label-${A}`,i&&`audio-meter--align-${l}`,p),role:"meter","aria-label":C,"aria-valuemin":d,"aria-valuemax":m,"aria-valuenow":Ro(u,c,d,m),"aria-valuetext":Po(u,c,d,m),children:[b,i&&n.jsx("span",{ref:f,className:"audio-meter__value caption-2",children:Po(u,c,d,m)})]})}const Bu=260;function Au({message:e,position:t,duration:a,onClose:r}){const[i,s]=o.useState(!1),[l,u]=o.useState(!1),c=o.useRef(l),d=o.useRef(i);o.useEffect(()=>{c.current=l},[l]),o.useEffect(()=>{d.current=i},[i]);const m=o.useRef(null),p=o.useRef(""),C=o.useRef(r);o.useEffect(()=>{C.current=r});const y=a,x=o.useRef(null),f=o.useRef(0),h=o.useRef(0),_=o.useRef(!1),g=o.useRef(null),k=o.useRef(null),b=o.useRef(null),A=o.useRef(null),v=o.useRef(()=>{});v.current=E=>{E<0||(f.current=Date.now(),h.current=E,x.current=setTimeout(()=>{x.current=null,s(!1),g.current=setTimeout(()=>{u(!1);try{C.current()}catch{}},Bu)},E))};const w=o.useCallback(()=>{_.current||!x.current||(_.current=!0,clearTimeout(x.current),x.current=null,h.current=Math.max(0,h.current-(Date.now()-f.current)))},[]),B=o.useCallback(()=>{_.current&&(_.current=!1,v.current(h.current))},[]);return o.useEffect(()=>{if(e!==p.current&&(x.current&&(clearTimeout(x.current),x.current=null),g.current&&(clearTimeout(g.current),g.current=null)),e){if(d.current)return y>0&&!x.current&&(_.current?h.current=y:v.current(y)),p.current=e,()=>{x.current&&(clearTimeout(x.current),x.current=null),g.current&&(clearTimeout(g.current),g.current=null)};const E=()=>{const D=m.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"),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{A.current=null;try{D.style.opacity="",D.style.transform="",D.style.transition=""}catch{}},60)}catch{}};c.current?(E(),s(!0)):(u(!0),k.current=requestAnimationFrame(()=>{b.current=requestAnimationFrame(()=>{E(),s(!0)})})),y>0&&(_.current=!1,v.current(y))}else s(!1),g.current=setTimeout(()=>u(!1),Bu);return p.current=e,()=>{x.current&&clearTimeout(x.current),g.current&&clearTimeout(g.current),k.current&&cancelAnimationFrame(k.current),b.current&&cancelAnimationFrame(b.current),A.current&&clearTimeout(A.current),x.current=null,g.current=null,k.current=null,b.current=null,A.current=null}},[e,y,t]),{mounted:l,showing:i,popupRef:m,pause:w,resume:B}}function ca({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:i=2e3}){const{mounted:s,showing:l,popupRef:u,pause:c,resume:d}=Au({message:e,position:t,duration:i,onClose:r}),m=o.useRef(null),[p,C]=o.useState(!1);if(o.useEffect(()=>{l?C(!0):s||C(!1)},[l,s]),!s)return null;const y=a==="notice"||a==="warning"?a:"normal",x=n.jsx("div",{ref:u,className:`toast toast--${t} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:f=>{m.current=f.pointerType},onMouseEnter:()=>{m.current!=="touch"&&c()},onMouseLeave:d,onFocusCapture:c,onBlurCapture:d,children:n.jsx("div",{className:`toast__inner toast__inner--${y} body-2`,"aria-hidden":p||l?void 0:!0,children:n.jsx("span",{className:"toast__text",children:e})})});return typeof document<"u"?en.createPortal(x,document.body):x}const Jy=24;function Qy({value:e,max:t=100,size:a=8,color:r,trackColor:i,label:s,formatValue:l,labelPos:u,labelAlign:c="right",ariaLabel:d,className:m}){const p=Number.isFinite(t)&&t>0?t:1,C=Math.max(0,Math.min(Number.isFinite(e)?e:0,p)),y=C/p*100,x=Number.isFinite(t)&&t>0?t:0,f=u??(a>=Jy?"inside":"bottom"),h=f==="center"?"inside":f,_=h==="inside"&&(c==="left"?y>=15:c==="center"?y>=50:y>=85),g={};return r&&(g["--progress-bar-fill"]=r),i&&(g["--progress-bar-track"]=i),n.jsxs("div",{className:we("progress-bar",`progress-bar--${a}`,`progress-bar--label-${h}`,s&&`progress-bar--align-${c}`,s&&_&&"progress-bar--label-on-fill",m),style:g,children:[n.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":C,"aria-valuemin":0,"aria-valuemax":x,"aria-valuetext":s?l?l(C):s==="percent"?void 0:s==="raw"?String(C):`${C} / ${x}`:void 0,"aria-label":d,children:n.jsx("div",{className:"progress-bar__fill",style:{width:`${y}%`}})}),s&&n.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(C):s==="percent"?`${Math.round(y)}%`:s==="raw"?String(C):`${C} / ${x}`})]})}const ku={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},e5="rgba(255, 255, 255, 0.16)";function Nu({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:i,variant:s="numbered",announce:l=!1,ariaLabel:u}){const{t:c}=xe.useTranslation(),d=ln("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const m=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,p=u??c("progress.steps",{current:m+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),C={};if(a&&(C["--pi-inactive-bg"]=a),r&&(C["--pi-inactive-color"]=r),i&&(a||(C["--pi-inactive-bg"]=e5),r||(C["--pi-inactive-color"]="var(--color-white)")),s==="dot")return n.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:C,role:l?"status":"img","aria-label":l?void 0:p,children:[l&&n.jsx("span",{style:ku,children:p}),Array.from({length:e}).map((x,f)=>n.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${f<m?" done":f===m?" active":""}`},f))]});const y=l?n.jsx("span",{role:"status",style:ku,children:p}):null;return d?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:C,role:"list","aria-label":p,children:n.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[m+1," / ",e]})}),y]}):n.jsxs(n.Fragment,{children:[y,n.jsx("div",{className:"progress-indicator",style:C,role:"list","aria-label":p,children:Array.from({length:e}).map((x,f)=>n.jsx("span",{role:"listitem","aria-current":f===m?"step":void 0,className:`progress-indicator-dot ${f<m?" done":f===m?" active":""} body-3`,children:f+1},f))})]})}function t5(e){if(!e)return[];const t=[];let a=0,r="";for(const i of e.trim()){if(i==="("?a++:i===")"&&a--,/\s/.test(i)&&a===0){r&&(t.push(r),r="");continue}r+=i}return r&&t.push(r),t}function n5({children:e,className:t,style:a,rowLabel:r,onRowClick:i}){return n.jsx("div",{role:"cell",className:t?`table-cell ${t}`:"table-cell",style:a,children:r&&i?n.jsx("button",{type:"button",className:"table-cell__row-button","aria-label":r,children:e}):e})}function Io({variant:e="default",children:t,className:a,draggable:r,onClick:i,onMouseEnter:s,onMouseLeave:l,onDragStart:u,onDragEnd:c,expandedContent:d,colSpan:m,describedBy:p,rowHasButton:C}){const y=o.useCallback(x=>{i&&x.target===x.currentTarget&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),i())},[i]);return e==="loading"?n.jsx("div",{role:"presentation",className:"table-row-wrap",children:n.jsx("div",{role:"row",className:"table-row table-row--loading",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row__full-cell",children:n.jsx(Oa,{size:28})})})}):e==="empty"?n.jsx("div",{role:"presentation",className:"table-row-wrap",children:n.jsx("div",{role:"row",className:"table-row table-row--empty body-3",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row__full-cell",children:t})})}):n.jsxs("div",{role:"presentation",className:"table-row-wrap",children:[n.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:i,onKeyDown:i?y:void 0,onMouseEnter:s,onMouseLeave:l,onDragStart:u,onDragEnd:c,role:"row",tabIndex:i&&!C?0:void 0,"aria-describedby":i&&!C?p:void 0,children:t}),d&&n.jsx("div",{role:"row",className:"table-row-expand",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row-expand__cell",children:d})})]})}function a5({dir:e}){return n.jsx(e==="asc"?Hs:Os,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function r5({children:e,onClick:t,className:a,sortDir:r,ariaSort:i,onResizeStart:s}){const l=n.jsxs(n.Fragment,{children:[e,r&&n.jsx(a5,{dir:r})]});return n.jsxs("div",{onClick:t,role:"columnheader","aria-sort":i,className:we("table-field body-3",a,r?"table-field--sorted":"",s?"table-field--resizable":""),children:[t?n.jsx("button",{type:"button",className:"table-field__button",children:l}):l,s&&n.jsx("span",{className:"table-field__resizer",onPointerDown:s,onClick:u=>u.stopPropagation(),"aria-hidden":"true"})]})}function Oo({fields:e=[],headerGroups:t,items:a=[],renderRow:r,onRowClick:i,isRowClickable:s,onRowMouseEnter:l,onRowMouseLeave:u,onRowDragStart:c,onRowDragEnd:d,draggingId:m,gridTemplateColumns:p,mobileGridTemplateColumns:C,resizable:y=!1,resizeMode:x="grow",resizeStorageKey:f,size:h="small",title:_,icon:g,count:k,collapsed:b=!1,onToggleCollapse:A,headerActions:v,empty:w,loading:B,dragOver:E=!1,onDragOver:D,onDragLeave:N,onDrop:O,renderExpandedRow:P,expandedId:G}){const{t:L}=xe.useTranslation(),M=o.useId(),$=`table-title-${M}`,Z=`table-row-hint-${M}`,q=ln("(max-width: 767px)"),H=C&&q?C:null,W=y&&!q,R=48,z=o.useRef(()=>R),V=f?`table-cols:${f}`:null,F=o.useRef(null),S=o.useRef(null),j=o.useRef(null),I=o.useRef(null),[U,re]=o.useState(!1),[ne,le]=o.useState(0),K=o.useCallback(()=>{const se=j.current;se&&(re(se.scrollWidth>se.clientWidth+1),le(se.clientWidth))},[]),oe=o.useCallback((se,Ne)=>{const Ve=se.current;Ve&&S.current&&S.current.unobserve(Ve),se.current=Ne,Ne?(!S.current&&typeof ResizeObserver<"u"&&(S.current=new ResizeObserver(()=>K())),S.current?.observe(Ne)):!j.current&&!I.current&&(S.current?.disconnect(),S.current=null),K()},[K]),ke=o.useCallback(se=>oe(j,se),[oe]),Y=o.useCallback(se=>oe(I,se),[oe]);o.useEffect(()=>{K()}),o.useEffect(()=>{if(typeof window>"u")return;const se=typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>K()):null;return window.addEventListener("resize",K),()=>{se!=null&&cancelAnimationFrame(se),window.removeEventListener("resize",K)}},[K]);const Q=o.useRef(()=>!1),me=o.useRef([]),De=o.useRef(null),be=se=>{if(!se||typeof window>"u")return null;try{const Ne=JSON.parse(window.localStorage.getItem(se)??"null");return Array.isArray(Ne)&&Ne.length>0&&Ne.every(Ve=>typeof Ve=="number"&&Number.isFinite(Ve)&&Ve>0)?Ne:null}catch{return null}},[te,ue]=o.useState(()=>be(V)),[Ce,ge]=o.useState(V),[fe,$e]=o.useState(()=>be(V)!==null);if(Ce!==V){ge(V);const se=be(V);ue(se),$e(se!==null)}const ze=o.useRef(te);o.useEffect(()=>{ze.current=te},[te]);const Te=o.useCallback(se=>{const Ne=De.current;if(!Ne)return;const Ve=ze.current;if(Ve){const nt=[...Ve];if(Ne.next!=null&&Ne.startWNext!=null){const Ie=se.clientX-Ne.startX,Ge=Math.max(z.current(Ne.index)-Ne.startW,Math.min(Ne.startWNext-z.current(Ne.next),Ie));nt[Ne.index]=Ne.startW+Ge,nt[Ne.next]=Ne.startWNext-Ge}else nt[Ne.index]=Math.max(z.current(Ne.index),Ne.startW+(se.clientX-Ne.startX));ze.current=nt,ue(nt)}},[]),Fe=o.useCallback(()=>{if(De.current=null,window.removeEventListener("pointermove",Te),window.removeEventListener("pointerup",Fe),window.removeEventListener("pointercancel",Fe),document.body.style.cursor="",document.body.style.userSelect="",V&&ze.current)try{window.localStorage.setItem(V,JSON.stringify(ze.current))}catch{}},[Te,V]),qe=o.useCallback((se,Ne)=>{Ne.preventDefault(),Ne.stopPropagation();const Ve=F.current;if(!Ve)return;const nt=Array.from(Ve.children).map(Ge=>Ge.getBoundingClientRect().width),Ie=x==="fit"?e.findIndex((Ge,bt)=>bt>se&&Ge.resizable!==!1):-1;De.current=Ie>=0?{index:se,startX:Ne.clientX,startW:nt[se],next:Ie,startWNext:nt[Ie]}:{index:se,startX:Ne.clientX,startW:nt[se]},ze.current=nt,ue(nt),$e(!0),window.addEventListener("pointermove",Te),window.addEventListener("pointerup",Fe),window.addEventListener("pointercancel",Fe),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[Te,Fe,x,e]),mt=o.useCallback(()=>{const se=F.current,Ne=se?.closest(".table-wrap");if(!se||!Ne)return null;const Ve=Ne.style.getPropertyValue("--table-grid-cols");Ne.style.setProperty("--table-grid-cols",e.map((et,ot)=>Q.current(ot)?me.current[ot]:"max-content").join(" "));const nt=Array.from(Ne.querySelectorAll(".table-row")).filter(et=>!et.classList.contains("table-row--loading")&&!et.classList.contains("table-row--empty")),Ie=e.map((et,ot)=>{let lt=se.children[ot]?.getBoundingClientRect().width??0;for(const jt of nt){const Vt=jt.children[ot];Vt&&(lt=Math.max(lt,Vt.getBoundingClientRect().width))}const st=Q.current(ot)?parseFloat(me.current[ot]):NaN;return Number.isFinite(st)?st:Math.max(z.current(ot),Math.ceil(lt))}),Ge=window.getComputedStyle(se),bt=se.clientWidth-(parseFloat(Ge.paddingLeft)||0)-(parseFloat(Ge.paddingRight)||0);Ve?Ne.style.setProperty("--table-grid-cols",Ve):Ne.style.removeProperty("--table-grid-cols");let Re=Ie;const tt=Ie.reduce((et,ot,lt)=>et+(Q.current(lt)?ot:0),0),xt=Ie.reduce((et,ot,lt)=>et+(Q.current(lt)?0:ot),0),Lt=bt-tt;if(bt>0&&xt>0&&Lt>0){const et=Lt/xt;Re=Ie.map((lt,st)=>Q.current(st)?lt:Math.max(z.current(st),Math.round(lt*et)));const ot=Math.round(Lt-Re.reduce((lt,st,jt)=>lt+(Q.current(jt)?0:st),0));if(ot!==0){let lt=-1;Re.forEach((st,jt)=>{!Q.current(jt)&&(lt<0||st>Re[lt])&&(lt=jt)}),lt>=0&&(Re[lt]=Math.max(z.current(lt),Re[lt]+ot))}}return Re},[e,x]),ct=(se,Ne)=>se!==null&&se.length===Ne.length&&se.every((Ve,nt)=>Ve===Ne[nt]),rt=o.useRef(mt);o.useEffect(()=>{rt.current=mt});const[Ct,Ae]=o.useState(0),We=a.length>0,_e=`${V??""}|${Ct}|${e.length}|${ne}`,Ue=!fe&&W&&V!==null&&!B?`${_e}|${We?1:0}`:null,Be=o.useRef(null);o.useEffect(()=>{if(Ue===null||!We||Be.current===_e)return;const se=rt.current();se&&(Be.current=_e,ue(Ne=>ct(Ne,se)?Ne:se))},[Ue]);const je=o.useCallback(()=>{if(V)try{window.localStorage.removeItem(V)}catch{}$e(!1);const se=rt.current();ue(se),ze.current=se,Ae(Ne=>Ne+1)},[V]);o.useEffect(()=>()=>{De.current&&(window.removeEventListener("pointermove",Te),window.removeEventListener("pointerup",Fe),window.removeEventListener("pointercancel",Fe),document.body.style.cursor="",document.body.style.userSelect="")},[Te,Fe]);const Se=t5(p),Xe=Se.filter(se=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(se));Xe.length>0&&St(`table-content-track:${p}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${Xe.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${p})`);const Qe=e.findIndex(se=>!!se.sortDir);e.filter(se=>!!se.sortDir).length>1&&St("table-multi-sort","[ihabdevteam-core] Table \uC758 fields \uC5D0 sortDir \uC774 \uB458 \uC774\uC0C1 \uC788\uC2B5\uB2C8\uB2E4. aria-sort \uB294 \uD45C \uD558\uB098\uC5D0 \uD55C \uCE78\uB9CC \uAC00\uC9C8 \uC218 \uC788\uC5B4 \uCCAB \uCE78\uB9CC \uBC29\uD5A5\uC73C\uB85C \uC54C\uB9AC\uACE0 \uB098\uBA38\uC9C0\uB294 none \uC73C\uB85C \uB461\uB2C8\uB2E4.");const dt=se=>se===Qe?e[se].sortDir==="asc"?"ascending":"descending":e[se].onClick?"none":void 0,ht=se=>/^\d+(\.\d+)?px$/.test(Se[se]??""),wt=se=>{const Ne=Se[se]??"",Ve=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(Ne)??/^(\d+(?:\.\d+)?)px$/.exec(Ne);return Ve?parseFloat(Ve[1]):R};Q.current=ht,z.current=wt,me.current=Se;const ft=se=>x==="fit"&&!ht(se)?"fr":"px",Nt=te&&te.length===e.length&&!q,gt=H??(Nt?e.map((se,Ne)=>se.resizable===!1&&Se[Ne]?Se[Ne]:`${te[Ne]}${ft(Ne)}`).join(" "):p),it=gt?{"--table-grid-cols":gt}:void 0,Ke=_!==void 0;return n.jsxs("div",{ref:ke,className:`table-wrap table-wrap--${h}${W?" table-wrap--resizable":""}${E?" table-wrap--dragover":""}${b?" table-wrap--collapsed":""}`,style:it,onDragOver:D,onDragLeave:N,onDrop:O,tabIndex:U?0:void 0,role:U?"region":void 0,"aria-label":U?typeof _=="string"?_:L("table.scrollRegion","\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C"):void 0,children:[!!i&&n.jsx("span",{id:Z,className:"table-row-hint",children:L("table.rowActionHint","\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4")}),n.jsxs("div",{ref:Y,role:"table","aria-labelledby":Ke&&typeof _=="string"?$:void 0,className:"table body-2",children:[Ke&&n.jsxs("div",{className:we("table-header",A&&"table-header--clickable"),onClick:A,role:"caption",children:[A&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:b?"chevron-right":"chevron-down",ariaLabel:b?L("common.expand","\uD3BC\uCE58\uAE30"):L("common.collapse","\uC811\uAE30"),ariaExpanded:!b,className:"table-header__chevron"}),g&&n.jsx(at,{icon:g,label:typeof _=="string"?_:void 0,className:"table-header__icon"}),n.jsx("span",{id:$,className:"table-header__title h5b",children:_}),k!==void 0&&n.jsx("span",{className:"table-header__count body-3b",children:k}),v&&n.jsx("span",{className:"table-header__actions",onClick:se=>se.stopPropagation(),children:v})]}),!b&&n.jsxs(n.Fragment,{children:[t&&t.length>0&&n.jsx("div",{role:"row",className:"table-fields table-fields--groups",children:t.map((se,Ne)=>n.jsx("div",{role:"columnheader","aria-colspan":se.span,className:we("table-field body-3",se.className),style:{gridColumn:`span ${se.span}`},children:se.label},Ne))}),n.jsxs("div",{role:"presentation",className:we("table-fields-strip",W&&"table-fields-strip--resizable"),children:[n.jsx("div",{role:"row",className:"table-fields",ref:F,children:e.map((se,Ne)=>n.jsx(r5,{onClick:se.onClick,className:se.className,sortDir:se.sortDir,ariaSort:dt(Ne),onResizeStart:W&&Ne<e.length-1&&se.resizable!==!1&&(x!=="fit"||e.some((Ve,nt)=>nt>Ne&&Ve.resizable!==!1))?Ve=>qe(Ne,Ve):void 0,children:se.label},Ne))}),W&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:L("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:L("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:je})]}),n.jsx("div",{role:"rowgroup",className:"table-body",children:B?n.jsx(Io,{variant:"loading",colSpan:e.length||void 0}):a.length===0&&w?n.jsx(Io,{variant:"empty",colSpan:e.length||void 0,children:w}):a.map((se,Ne)=>{const Ve=m!=null&&se.id===m,nt=!!i&&(s?s(se):!0),Ie=G!=null&&se.id!=null&&(G instanceof Set?G.has(se.id)||[...G].some(Ge=>String(Ge)===String(se.id)):String(se.id)===String(G));return n.jsx(Io,{className:`${nt?" table-row--clickable":""}${c?" table-row--draggable":""}${Ve?" table-row--dragging":""}`.trim(),draggable:!!c,onClick:nt?()=>i(se):void 0,colSpan:e.length||void 0,rowHasButton:r(se).some(Ge=>!!Ge.rowLabel),describedBy:Z,onMouseEnter:l?Ge=>l(se,Ge):void 0,onMouseLeave:u?Ge=>u(se,Ge):void 0,onDragStart:c?Ge=>c(se,Ge):void 0,onDragEnd:d?Ge=>d(se,Ge):void 0,expandedContent:Ie&&P?P(se):void 0,children:r(se).map((Ge,bt)=>n.jsx(n5,{className:Ge.className,style:Ge.style,rowLabel:nt?Ge.rowLabel:void 0,onRowClick:nt?()=>i(se):void 0,children:Ge.content},bt))},se.id!=null?`${typeof se.id}:${se.id}`:`__idx:${Ne}`)})})]})]})]})}const o5={hearingAid:"hearingAid",cochlearImplant:"cochlearImplant",other:"other",\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant",\uAE30\uD0C0:"other"};function Eu(e){return e?o5[e]??null:null}function Du(e){switch(Eu(e)){case"hearingAid":return"main";case"cochlearImplant":return"sub";default:return"default"}}function Su(e,t){const a=Eu(e);return a?t(`device.type.${a}`,{defaultValue:e??""}):e??""}const da=e=>e==null?"":String(e).trim();function Ho(e,t,a,r){const i=da(e),s=da(t),l=da(a);if(r&&i&&s&&l){const c=`${i.padStart(4,"0")}-${s.padStart(2,"0")}-${l.padStart(2,"0")}`,d=new Date(c);if(!Number.isNaN(d.getTime())&&d.toISOString().slice(0,10)===c){const m=Si(c,r);if(m)return m}}const u=[i,s,l];for(;u.length>0&&u[u.length-1]==="";)u.pop();return u.join(".")}function s5(e,t,a){const r=da(e);return r?`${r}-${da(t).padStart(2,"0")}-${da(a).padStart(2,"0")}`:""}function Tu(e,t){return t!=="wornAt"?String(e[t]??""):s5(e.wornYear,e.wornMonth,e.wornDay)}function i5({rows:e,loading:t,onSelect:a,onDelete:r,onWear:i,onRelease:s,onAdd:l}){const{t:u,i18n:c}=xe.useTranslation(),d=h=>h==="left"?u("device.direction.left","\uC88C"):u("device.direction.right","\uC6B0"),{sort:m,field:p}=O4(),C=o.useMemo(()=>{if(!m)return e;const{key:h,asc:_}=m;return[...e].sort((g,k)=>{if(h==="worn"){const b=Number(k.worn)-Number(g.worn);return _?b:-b}return bo(Tu(g,h),Tu(k,h),_)})},[e,m]),{pageRows:y,pageSizeProps:x,paginationProps:f}=I4(C,m);return n.jsxs("div",{className:"dlp-side-table",children:[n.jsx(Do,{count:{value:e.length,unit:u("customers.device.unit","\uAC1C")},pageSize:x,pagination:f,actions:l&&n.jsx(pe,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:u("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:l})}),n.jsx(Oo,{loading:t,resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...p(u("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},p(u("device.direction.label","\uBC29\uD5A5"),"side"),p(u("device.deviceType","\uC885\uB958"),"device"),p(u("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),p(u("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),p(u("device.productName","\uC81C\uD488\uBA85"),"productName"),p(u("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...r?[{label:"",resizable:!1}]:[]],items:y.map((h,_)=>({id:h.id??`${h.side}-${_}`,row:h})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${r?" 80px":""}`,renderRow:({row:h})=>[{content:n.jsx("span",{className:"dlp-worn-check",onClick:_=>_.stopPropagation(),children:n.jsx(du,{checked:h.worn,disabled:h.worn?!s:!i,ariaLabel:h.worn?u("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):u("customers.device.wear","\uCC29\uC6A9"),onChange:_=>{_?i?.(h):s?.(h)}})})},{content:n.jsx("span",{children:d(h.side)})},{content:h.device?n.jsx(kt,{size:"small",variant:Du(h.device),fill:"soft",label:Su(h.device,u)}):n.jsx("span",{})},{content:n.jsx("span",{children:h.brand})},{content:n.jsx("span",{children:h.fitType||"-"})},{content:n.jsx("span",{children:h.productName||"-"})},{content:n.jsx("span",{className:"dlp-date",children:Ho(h.wornYear,h.wornMonth,h.wornDay,c.language)||"-"})},...r?[{content:n.jsx("span",{className:"dlp-row-actions",children:n.jsx(pe,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:u("common.delete","\uC0AD\uC81C"),onClick:_=>{_?.stopPropagation(),r(h)}})})}]:[]],onRowClick:({row:h})=>a(h),empty:u("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function ju(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 l5(e,t){return new Date(e,t+1,0).getDate()}function u5(e,t){return new Date(e,t,1).getDay()}function c5({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:r,today:i}){const{t:s,i18n:l}=xe.useTranslation(),u=o.useMemo(()=>s("calendar.dow",{returnObjects:!0}),[s]),c=ao(i),[d,m]=o.useState(()=>Number(c.slice(0,4))),[p,C]=o.useState(()=>Number(c.slice(5,7))-1),[y,x]=o.useState(null),f=o.useRef(null),h=o.useMemo(()=>{const v={};return e.forEach(w=>{v[w.date]||(v[w.date]=[]),v[w.date].push(w)}),v},[e]),_=o.useMemo(()=>{const v=l5(d,p),w=u5(d,p),B=[];for(let E=0;E<w;E++)B.push(null);for(let E=1;E<=v;E++)B.push(E);for(;B.length<35;)B.push(null);return B},[d,p]),g=o.useCallback(()=>{p===0?(m(v=>v-1),C(11)):C(v=>v-1)},[p]),k=o.useCallback(()=>{p===11?(m(v=>v+1),C(0)):C(v=>v+1)},[p]),b=v=>`${d}-${String(p+1).padStart(2,"0")}-${String(v).padStart(2,"0")}`,A=v=>b(v)===c;return n.jsxs("div",{children:[n.jsxs("div",{className:"calendar-nav",children:[n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:g,"aria-label":s("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(at,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),n.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:er(s,l.language,d,p+1)}),n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:k,"aria-label":s("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(at,{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:s("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:s("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:s("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),n.jsxs("div",{className:"calendar-grid",children:[u.map(v=>n.jsx("div",{className:"calendar-day-header body-3",children:v},v)),_.map((v,w)=>{if(v===null)return n.jsx("div",{className:"calendar-cell empty"},`empty-${w}`);const B=v,E=b(B),D=h[E]??[],N=Si(E,l.language),O=y===E;return n.jsxs("div",{className:`calendar-cell${A(B)?" today":""}${O?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?s("calendar.addOnDate",{date:E}):void 0,"aria-current":A(B)?"date":void 0,onClick:r?()=>r(E):void 0,onKeyDown:r?P=>{P.target===P.currentTarget&&(P.key!=="Enter"&&P.key!==" "||(P.preventDefault(),r(E)))}:void 0,onDragOver:a?P=>{P.preventDefault(),x(E)}:void 0,onDragLeave:a?P=>{P.currentTarget.contains(P.relatedTarget)||x(null)}:void 0,onDrop:a?P=>{P.preventDefault(),f.current!=null&&(a(f.current,E),f.current=null),x(null)}:void 0,children:[n.jsx("div",{className:"calendar-cell__number body-3",children:B}),D.length>0&&(()=>{const P=[{key:"visited",label:s("calendar.legend.visited","\uBC29\uBB38"),count:D.filter(L=>(L.status??"visited")==="visited").length},{key:"scheduled",label:s("calendar.legend.scheduled","\uC608\uC57D"),count:D.filter(L=>L.status==="scheduled").length},{key:"noVisit",label:s("calendar.legend.noVisit","\uBBF8\uBC29\uBB38"),count:D.filter(L=>L.status==="noVisit").length}].filter(L=>L.count>0),G=P.length===1&&P[0].key==="visited"?s("calendar.visitCount",{count:D.length,defaultValue:"\uBC29\uBB38 {{count}}\uAC74"}):P.map(L=>s("calendar.statusCount",{label:L.label,count:L.count,defaultValue:"{{label}} {{count}}\uAC74"})).join(" \xB7 ");return n.jsxs("span",{className:"calendar-cell__visit-count caption-1","aria-label":`${N} ${G}`,children:[P.map(L=>n.jsx("span",{className:`calendar-cell__visit-dot calendar-cell__visit-dot--${L.key}`,"aria-hidden":"true"},L.key)),D.length]})})(),n.jsx("div",{className:"calendar-cell__badges",children:D.map((P,G)=>n.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${P.status==="noVisit"?" calendar-visit-badge--no-visit":P.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?L=>{f.current=P.id,L.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{f.current=null,x(null)}:void 0,onClick:t?L=>{L.stopPropagation(),t(P)}:void 0,...ju(t?()=>t(P):void 0),"aria-label":[N,P.time?Li(P.time,s):null,P.customer,s(P.status==="noVisit"?"calendar.legend.noVisit":P.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[P.time&&n.jsx("span",{className:"calendar-visit-badge__time body-3",children:Li(P.time,s)}),n.jsx("span",{className:"calendar-visit-badge__name body-3",children:P.customer}),P.status==="noVisit"&&n.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:s("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},P.id??G))})]},B)})]})]})}const d5={page:"h3",pagePopup:"h4",popup:"h5"};function pa({type:e="page",title:t,headingLevel:a=2,icon:r,action:i,disc:s,children:l,inGrid:u=!1,className:c,style:d}){const m=d5[e],p=t||s||i||r,C=a?`h${a}`:"div";return n.jsxs("div",{className:we("section",`section--${e}`,u&&"section--in-grid",c),style:d,children:[p&&n.jsxs("div",{className:"section__header",children:[n.jsxs("div",{className:"section__title-row",children:[r&&n.jsx(at,{icon:r,label:typeof t=="string"?t:void 0,className:"section__icon"}),n.jsxs("div",{className:"section__title-group",children:[t&&n.jsx(C,{className:`section__title ${m}`,children:t}),s&&n.jsx("div",{className:"section__disc body-3",children:s})]})]}),i&&n.jsx("div",{className:"section__action",children:i})]}),l]})}let Vo=null,Mu=!1;function Lu(){if(Mu||typeof document>"u")return;Mu=!0,document.addEventListener("keydown",t=>{t.metaKey||t.ctrlKey||t.altKey||(Vo="keyboard")},!0);const e=()=>{Vo="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}Lu();function mr(){return Lu(),Vo==="keyboard"}const hr=20;function p5(e){const{t}=xe.useTranslation(),{type:a,trainingDatas:r,depth:i,renderPopup:s,completedIds:l,selectedIds:u,onItemComplete:c,size:d,useDescriptionTooltip:m,onRemove:p,onMore:C,sectionType:y="page"}=e||{},[,x]=o.useState(0),f=typeof r<"u"?Array.isArray(r)?r:[]:[],h=f.length,[_,g]=o.useState(Math.min(h,hr)),k=o.useMemo(()=>Array.isArray(i)?[...i,a?.label].filter(Boolean).join(" \xB7 "):[i||"",a?.label].filter(Boolean).join(" \xB7 "),[i,a?.label]);o.useEffect(()=>{g(Math.min(h,hr))},[h]),Bl("speechear.data.updated",()=>x(w=>w+1));const b=o.useRef(null),A=o.useRef(null);function v(){const w=document.activeElement;A.current=mr()&&w&&w.closest?.(".training-block__more")?_:null,g(B=>Math.min(h,B+hr))}return o.useEffect(()=>{const w=A.current;if(w==null)return;A.current=null;const B=document.activeElement;B&&B!==document.body||b.current?.querySelectorAll(".training-block-button")[w]?.focus()},[_]),n.jsxs(pa,{type:y,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[n.jsx("div",{className:"training-list",ref:b,children:(f||[]).slice(0,_).map((w,B)=>{const E=w;return n.jsx(ko,{index:B,type:a,trainingData:E,depth:k,renderPopup:s,completedIds:l,selectedIds:u,size:d,useDescriptionTooltip:m,onRemove:typeof p=="function"&&u!=null&&E?.id!=null&&u.has(String(E.id))?()=>p(E):void 0,onComplete:typeof c=="function"&&E?.id!=null?()=>c(String(E.id)):void 0,onMore:typeof C=="function"?D=>C(E,D):void 0},E?.id!=null?`${a?.key||"t"}-${String(E.id)}`:`${a?.key||"t"}-${B}`)})}),h>hr&&_<h&&n.jsx("div",{className:"training-block__more",children:n.jsx(pe,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:v,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function m5(e){let t=0;const a=r=>{Array.isArray(r)?r.forEach(a):r!=null&&r!==!1&&r!==!0&&r!==""&&t++};return a(e),t}function h5({gap:e=10,count:t,className:a,children:r}){const i=o.useRef(null),[s,l]=o.useState({width:0,card:0}),u=t??m5(r);o.useLayoutEffect(()=>{const C=i.current;if(!C)return;const y=()=>{const f=C.style.maxWidth;C.style.maxWidth="none";const h=C.clientWidth;C.style.maxWidth=f;const _=C.firstElementChild?.offsetWidth??0;l(g=>g.width===h&&g.card===_?g:{width:h,card:_})};if(y(),typeof ResizeObserver>"u")return;const x=new ResizeObserver(y);return x.observe(C),()=>x.disconnect()},[u,e]);const c=s.card>0?s.card:0,d=c>0?nf(s.width,c,e):0,m=d>0?af(u,d):0,p={"--block-grid-gap":`${e}px`,...m>0?{"--block-grid-cols":m,"--block-grid-card":`${c}px`}:{}};return n.jsx("div",{ref:i,className:we("training-block-grid",m>0&&"training-block-grid--measured",a),style:p,"data-cols":m>0?m:void 0,children:r})}function zo(e){const t=o.useRef(null),[a,r]=o.useState(!!e),[i,s]=o.useState(!1);o.useEffect(()=>{s(!1);const c=t.current;r(!!e&&!(c?.complete&&c.naturalWidth>0))},[e]);const l=o.useCallback(()=>r(!1),[]),u=o.useCallback(()=>{r(!1),s(!0)},[]);return{imgRef:t,loading:a,failed:i,hasImage:!!e&&!i,onLoad:l,onError:u}}var C5='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 f5=C5,Wo=o.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:r=!1,selected:i=!1,onSelect:s,flipDelay:l=0,hideLabel:u=!1,hideAudio:c=!1,orderRank:d=null},m){const{t:p}=xe.useTranslation(),C=e.word||e.title||"",y=t||!C,x=e.audio??e.sound??e.audioKey,f=e.subLabel||e.pronunciation||"",h=e.colloquialLabel||"",[_,g]=o.useState({label:C,subLabel:f,colloquialLabel:h,homonum:e.homonum});C&&(_.label!==C||_.subLabel!==f||_.colloquialLabel!==h||!Object.is(_.homonum,e.homonum))&&g({label:C,subLabel:f,colloquialLabel:h,homonum:e.homonum});const k=o.useRef(null),b=ln("(max-width: 767px)"),[A,v]=o.useState(!1),w=`${typeof x=="string"?x:x?.src??""}\0${C}`,[B,E]=o.useState({for:"",url:""}),D=B.for===w?B.url:"",N=ki(),O=e.textOnly??(!e.image&&!!_.label&&!!N&&N.entries.length>0&&!N.byWord.has(_.label)),P=O?"":aa()?.(_.label,_.homonum)??e.image??"",{imgRef:G,loading:L,hasImage:M,onLoad:$,onError:Z}=zo(P);o.useEffect(()=>{let j=!1;return(async()=>{if(x){if(typeof x=="string"){if(x.startsWith("http")||x.includes("/")){E({for:w,url:x});return}}else if(typeof x=="object"&&!Array.isArray(x)){const U=x.src;if(U){E({for:w,url:U});return}}}const I=wa();if(I&&C)try{const U=await Promise.resolve(I(C));!j&&U&&E({for:w,url:U})}catch{}})(),()=>{j=!0}},[x,C,w]);const q=o.useRef(!0),H=o.useRef(null);o.useEffect(()=>(q.current=!0,()=>{q.current=!1,H.current&&lr(H.current),H.current=null;try{k.current?.pause()}catch{}k.current=null}),[]);const W=o.useCallback(()=>new Promise(j=>{if(typeof window<"u"&&window.speechSynthesis&&C){v(!0),window.speechSynthesis.cancel();const I=new SpeechSynthesisUtterance(C);I.lang="ko-KR",I.onend=()=>{v(!1);try{a?.()}catch{}j()},I.onerror=()=>{v(!1),j()},window.speechSynthesis.speak(I)}else j()}),[C,a]),R=o.useCallback(j=>{const I=ur(j,U=>{if(v(!1),U)try{a?.()}catch{}});return k.current=I.el,I.done},[a]),z=o.useCallback(async()=>{if(t||!q.current)return;const j=()=>{H.current===j&&(H.current=null);try{k.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}v(!1)},I=ir(j);H.current=j;try{window.speechSynthesis?.cancel()}catch{}try{if(D&&(v(!0),await R(D)))return;const U=Kr();if(U&&C)try{const re=await Promise.resolve(U(C));if(!q.current||H.current!==j||re&&(v(!0),await R(re)))return}catch{}if(!q.current||H.current!==j)return;await W()}finally{I(),H.current===j&&(H.current=null)}},[t,D,C,R,W]);o.useImperativeHandle(m,()=>({play:()=>z()}),[z]);const V=j=>j.stopPropagation(),F=o.useCallback(j=>{if(j.stopPropagation(),!t){if(A){try{k.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}v(!1);return}z()}},[t,A,z]),S=we("training-word-card",t?"training-word-card--disabled":"",y?"training-word-card--flipped":"",r?"training-word-card--selectable":"",i?"training-word-card--selected":"");return n.jsx("div",{className:S,onClick:r&&!t?s:void 0,role:r?"button":void 0,"aria-pressed":r?i:void 0,tabIndex:r&&!t?0:void 0,"aria-disabled":r&&t?!0:void 0,onKeyDown:r&&!t?j=>{j.target===j.currentTarget&&(j.key==="Enter"||j.key===" "||j.key==="Spacebar")&&(j.preventDefault(),s?.())}:void 0,children:n.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:y?"0ms":`${l}ms`},children:[n.jsxs("div",{className:"training-word-card__front",children:[i&&n.jsx("div",{className:"training-word-card__selected-badge",onClick:V,children:n.jsx(kt,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?p("training.nthSelected",{n:d}):p("training.selected","\uC120\uD0DD\uB428")})}),n.jsx("div",{className:"training-word-card__image-wrap",children:O?n.jsx("div",{className:"training-word-card__text-face",children:_.label}):M?n.jsxs(n.Fragment,{children:[L&&n.jsx("div",{className:"training-word-card__spinner"}),n.jsx("img",{ref:G,className:"training-word-card__image",src:P,alt:_.label||p("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:L?0:1},onLoad:$,onError:Z})]}):n.jsx("div",{className:"training-word-card__placeholder"})}),!u&&n.jsxs("div",{className:"training-word-card__body",children:[!O&&n.jsx("div",{className:"training-word-card__word",children:_.label}),_.subLabel&&n.jsxs("div",{className:"training-word-card__pronunciation",children:["[",_.subLabel,"]"]}),_.colloquialLabel&&n.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",_.colloquialLabel,"]"]})]}),!c&&n.jsx("div",{className:"training-word-card__bottom",onClick:r?V:void 0,children:n.jsx(pe,{htmlType:"button",size:b?40:48,type:b?"dot":"bar",icon:A?"pause":"play",label:b?void 0:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:A,onClick:F,disabled:t,ariaLabel:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),n.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:n.jsx("img",{src:f5,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),g5=260;function In(e){const{t}=xe.useTranslation(),{title:a,subtitle:r,headerActions:i,headerSegment:s,children:l,buttons:u,footer:c,footerStart:d,footerEnd:m,footerNote:p,footerNoteDivider:C=!1,footerClassName:y="",footerLayout:x="center",onClose:f,closeDisabled:h=!1,beforeClose:_,closeOnBackdrop:g=!0,className:k="",ariaLabel:b,useTitle:A=!0,inline:v=!1,size:w,layer:B="modal",height:E,fillBody:D=!1,resetScrollKey:N}=e||{},[O,P]=o.useState(!1),G=o.useRef(!1),L=o.useRef(null),M=o.useId(),$=o.useRef(null);o.useEffect(()=>{},[v,a,b,k]),o.useEffect(()=>{N!==void 0&&$.current&&($.current.scrollTop=0)},[N]);const[Z,q]=o.useState(!1);o.useEffect(()=>{const K=$.current;if(!K)return;const oe=()=>q(K.scrollHeight>K.clientHeight+1);if(oe(),typeof ResizeObserver>"u")return;const ke=new ResizeObserver(oe);ke.observe(K);const Y=K.firstElementChild;return Y&&ke.observe(Y),()=>ke.disconnect()},[l,N]),o.useEffect(()=>{if(!v)return ou()},[v]),o.useEffect(()=>{if(v)return;const K=document.activeElement,oe=L.current;return uo(oe,K),oe&&!oe.contains(document.activeElement)&&(oe.querySelector(fn)??oe).focus(),()=>{const ke=document.activeElement;(!ke||ke===document.body||oe&&oe.contains(ke))&&co(K)?.focus?.()}},[v]),io(L,!v);const H=o.useRef(!0),W=po(),R=o.useRef(null);o.useEffect(()=>(H.current=!0,()=>{H.current=!1,R.current&&(clearTimeout(R.current),R.current=null)}),[]);const z=o.useCallback(()=>{!H.current||!G.current||(G.current=!1,P(!1))},[]),V=o.useCallback((K,oe=!1)=>{if(oe&&!H.current||G.current)return;G.current=!0,P(!0);const ke=setTimeout(()=>{R.current===ke&&(R.current=null);let Y;try{Y=K?K():void 0}catch{z();return}Y&&typeof Y.then=="function"&&Y.then(()=>{setTimeout(z,120)},z)},W?0:g5);oe&&(R.current=ke)},[z,W]),F=o.useCallback(()=>{h||_&&_()===!1||V(f,!0)},[V,f,h,_]),S=o.useRef(F);o.useEffect(()=>{S.current=F});const j=!v&&!!f;o.useEffect(()=>{if(j)return Gn(()=>S.current())},[j]);const I=j&&g,U=o.useRef(!1),re=K=>{U.current=K.target===K.currentTarget},ne=K=>{const oe=U.current;U.current=!1,oe&&K.target===K.currentTarget&&F()},le=n.jsx("div",{className:`popup ${v?"popup--inline":""} ${B==="belowPagePopup"?"popup--below-page-popup":""} ${O?"popup--closing":""} ${k}`,onPointerDown:I?re:void 0,onClick:I?ne:void 0,onMouseDown:v?void 0:K=>{K.target===K.currentTarget&&K.preventDefault()},children:n.jsxs("div",{ref:L,className:`popup-panel${w?` popup-panel--${w}`:""}${E!=null?" popup-panel--has-height":""}${D?" popup-panel--fill-body":""}`,style:E!=null?{"--popup-height":typeof E=="number"?`${E}px`:E}:void 0,tabIndex:-1,role:v?void 0:"dialog","aria-modal":v?void 0:!0,"aria-labelledby":!v&&A&&a?M:void 0,"aria-label":!v&&!(A&&a)?b??(typeof a=="string"?a:void 0):void 0,children:[!A&&(i||f)?n.jsxs("div",{className:"popup-close-float",children:[i,f&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:F,disabled:h,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||i||f?n.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[n.jsxs("div",{className:"popup-header-main",children:[a?n.jsx("h2",{id:M,className:"popup-title popup-title--left h2",children:a}):n.jsx("span",{id:M,className:"popup-title popup-title--left h2"}),r&&n.jsx("span",{className:"popup-subtitle body-3",children:r})]}),s&&n.jsx("div",{className:"popup-header-segment",children:n.jsx(gn,{size:40,ariaLabel:s.ariaLabel,options:s.options.map(K=>({key:K.key,label:K.label,disabled:K.disabled})),value:s.value,onChange:s.onChange})}),n.jsxs("div",{className:"popup-header-actions",children:[i,f&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:F,disabled:h,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,n.jsx("div",{className:"popup-content",ref:$,tabIndex:Z?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof l=="function"?l({animateThen:V,closeWithAnimation:F}):l})}),p!=null&&p!==!1&&n.jsx("div",{className:`popup-footer-note caption-1${C?" popup-footer-note--divider":""}`,role:"note",children:p}),d||m?n.jsxs("div",{className:`popup-footer popup-footer--bar${y?` ${y}`:""}`,children:[n.jsx("div",{className:"popup-footer__start",children:typeof d=="function"?d({animateThen:V,closeWithAnimation:F}):d}),n.jsx("div",{className:"popup-footer__end",children:typeof m=="function"?m({animateThen:V,closeWithAnimation:F}):m})]}):u?.length?n.jsx("div",{className:`popup-footer popup-footer--buttons${x!=="center"?` popup-footer--${x}`:""}`,children:u.map((K,oe)=>n.jsx(pe,{htmlType:"button",size:48,variant:K.variant??"default",label:K.label,disabled:K.disabled,onClick:()=>K.onClick?.({animateThen:V,closeWithAnimation:F})},oe))}):c?n.jsx("div",{className:`popup-footer${x!=="center"?` popup-footer--${x}`:""}${y?` ${y}`:""}`,children:typeof c=="function"?c({animateThen:V,closeWithAnimation:F}):c}):null]})});return v||typeof document>"u"?le:en.createPortal(le,document.body)}function Cr(e){return String(e)}const fr=["o","triangle","x"];function $u(e,t){return e===t?null:t}const Ru={o:"circle",triangle:"triangle",x:"x"},Pu={o:"main",triangle:"warn",x:"danger"};function b5(e){let t=0,a=0,r=0;for(const s of Object.values(e))s==="o"?t++:s==="triangle"?a++:s==="x"&&r++;const i=t+a+r;return{marked:i,o:t,triangle:a,x:r,rate:i===0?null:(t+a*.5)/i}}function qo(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function Fu(e){const t=[];let a=0;for(const r of e)t.push(a),a+=r;return t}function y5(e,t){return!t&&e>0}const ma={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 v5(e="landscape"){St("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}=ma[e],i=document.createElement("style");i.textContent=`@page { size: ${t}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(i);const s=()=>{document.head.removeChild(i),window.removeEventListener("afterprint",s)};window.addEventListener("afterprint",s),window.print()}function Iu(e,t){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(t)),r=[];for(let i=0;i<e.length;i+=a)r.push(e.slice(i,i+a));return r}const x5={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 _5(e,t){const a=x5[e][t];if(a)return a;const r=Math.max(1,Math.ceil(t)),i=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let s,l;return e==="landscape"?(l=i,s=Math.ceil(r/l)):(s=i,l=Math.ceil(r/s)),(e==="landscape"?s<l:l<s)&&([s,l]=[l,s]),{cols:s,rows:l}}const w5={show:"word-table-block__content--cut-show",dashed:"",corner:"word-table-block__content--cut-corner",hide:""},Ou={\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"},Hu={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"},Uo={\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"},Go={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function Vu(e){return Object.fromEntries(Object.entries(Ou).map(([t,a])=>[t,Uo[t]?e(`wordTable.pos.${Uo[t]}`,{defaultValue:a}):a]))}function zu(e){return Object.fromEntries(Object.entries(Hu).map(([t,a])=>[t,Go[t]?e(`wordSearch.filter.type.${Go[t]}`,{defaultValue:a}):a]))}const B5={pos:Uo,wordType:Go};function Ko(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function Wu(e,t,a,r){if(r!=="dashed")return{};const i=e%t,s=Math.floor(e/t),l=i<t-1,u=s<a-1;if(!l&&!u)return{};const c="#ddd",d=y=>`repeating-linear-gradient(to ${y}, ${c} 0, ${c} 5px, transparent 5px, transparent 10px)`,m=[],p=[],C=[];return l&&(m.push(d("bottom")),p.push("1px 100%"),C.push("right center")),u&&(m.push(d("right")),p.push("100% 1px"),C.push("center bottom")),{backgroundImage:m.join(", "),backgroundSize:p.join(", "),backgroundPosition:C.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const A5=280,k5=240,N5=280,E5=400,D5=120,S5=280;function qu(e,t){const a=o.useRef(null),[r,i]=o.useState(1),[s,l]=o.useState(0),u=o.useCallback((c,d)=>{if(!(c>0))return;const m=c/e,p=t&&d>0?d/t:1/0,C=Math.min(1,m,p);i(C),l(Math.max(0,(c-e*C)/2))},[e,t]);return o.useEffect(()=>{const c=a.current;if(!c)return;const d=t?c.parentElement??c:c;if(u(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const m=new ResizeObserver(([p])=>u(p.contentRect.width,p.contentRect.height));return m.observe(d),()=>m.disconnect()},[u,t]),{scalerRef:a,scale:r,offset:s}}const T5=24,j5={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},M5=400,Uu=8;function Gu({label:e,subLabel:t,colloquialLabel:a,homonum:r,showWord:i=!0,showImage:s=!0,showPronunciation:l=!0,showColloquial:u=!0,buttonSize:c=40,wordInfo:d,outerScale:m=1}){const{t:p}=xe.useTranslation(),C=o.useRef(null),y=o.useRef(null),x=o.useRef(null),[f,h]=o.useState(1),[_,g]=o.useState(!1),[k,b]=o.useState({for:"",url:""}),[A,v]=o.useState(null),w=t&&t.length>0?t:LC()?.(e,r)??"",B=aa()?.(e,r)??"",{imgRef:E,loading:D,failed:N,onLoad:O,onError:P}=zo(B),G=o.useCallback(()=>v(y.current?.getBoundingClientRect()??null),[]),L=o.useCallback(()=>v(null),[]),M=ho(!!A,j=>{j?G():L()},y),$=o.useMemo(()=>{if(!d)return null;const j=[];return d.grade&&j.push(p("wordTable.info.grade",{n:d.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),d.syllables&&j.push(p("wordTable.info.syllables",{n:d.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),d.pos&&j.push(p("wordTable.info.pos",{v:Ko(d.pos,Vu(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),d.wordType&&j.push(p("wordTable.info.wordType",{v:Ko(d.wordType,zu(p)),defaultValue:"\uC720\uD615: {{v}}"})),j.length?j:null},[d,p]),Z=w||e,q=k.for===Z?k.url:"";o.useEffect(()=>{const j=wa(),I=w||e;if(!j||!I)return;let U=!1;return Promise.resolve(j(I)).then(re=>{!U&&re&&b({for:I,url:re})}),()=>{U=!0}},[w,e]);const H=o.useRef(null),W=o.useRef(null);o.useEffect(()=>()=>{x.current?.pause(),W.current?.()},[]);const R=o.useCallback(j=>{if(j.stopPropagation(),_){H.current?.();return}if(!q)return;g(!0);const I=ur(q,()=>{g(!1),W.current?.()});x.current=I.el,H.current=I.stop,W.current=ir(I.stop)},[_,q]),z=s&&!!B&&!N,V=z&&i?A5:z?N5:k5,F=z&&i?E5:z?S5:D5;o.useEffect(()=>{const j=C.current;if(!j||typeof ResizeObserver>"u")return;const I=new ResizeObserver(([U])=>{const{width:re,height:ne}=U.contentRect;h(Math.min(re/V,ne/F))});return I.observe(j),()=>I.disconnect()},[V,F]);const S=c*m<T5;return n.jsxs("div",{ref:C,className:we("word-table-cell",S&&"word-table-cell--tap-too-small",z?"word-table-cell--with-image":""),"data-ref-w":V,"data-ref-h":F,children:[n.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${f})`},children:[z&&n.jsxs("div",{className:"word-table-cell__image-wrap",children:[D&&n.jsx("div",{className:"word-table-cell__spinner"}),n.jsx("img",{ref:E,className:"word-table-cell__image",src:B,alt:e,draggable:!1,style:{opacity:D?0:1},onLoad:O,onError:P})]}),i&&n.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&w&&n.jsxs("span",{className:"word-table-cell__sub h3",children:["[",w,"]"]}),u&&a&&n.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),n.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":q,children:[n.jsx("span",{"data-play-state":"play",style:{display:_?"none":void 0},children:n.jsx(pe,{htmlType:"button",size:c,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),ariaLabel:e?p("common.playFor",{name:e,defaultValue:`${e} \uC7AC\uC0DD`}):p("common.play","\uC7AC\uC0DD"),onClick:R})}),n.jsx("span",{"data-play-state":"pause",style:{display:_?void 0:"none"},children:n.jsx(pe,{htmlType:"button",size:c,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),ariaLabel:e?p("common.pauseFor",{name:e,defaultValue:`${e} \uBA48\uCDA4`}):p("common.pause","\uBA48\uCDA4"),onClick:R})})]}),d&&n.jsxs("div",{ref:y,className:"word-table-cell__info-button",onPointerEnter:j=>{ia(j)||G()},onPointerLeave:j=>{ia(j)||L()},onFocus:()=>{la()||G()},onBlur:L,children:[n.jsx(pe,{htmlType:"button",size:c,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:j=>{j.stopPropagation(),M.touchPress()}}),A&&$&&n.jsx(Kn,{anchorRect:A,items:$,showIndex:!1})]})]})}function ha({title:e,titleIcon:t,disc:a,className:r,orientation:i="landscape",contentTypes:s=["image","word","standardPron"],cutLine:l="show",showOutline:u=!0,showDivLine:c=!0,items:d,editCells:m,count:p,activeCell:C=null,onActivateCell:y,onRemoveCell:x,onRemoveItem:f,onReorder:h,renderCellAction:_,showFillerAdd:g=!1,contentRef:k,buttonSize:b=40,brand:A,code:v,pageNumber:w,pageNumberPosition:B="right",fitHeight:E=!1,scoring:D=!1,marks:N,onMarkClick:O,scoreIndexOffset:P=0}){const G=o.useCallback((Be,je)=>{O?.(P+Be,je)},[O,P]),L=(Be,je)=>{const Se=N?.[Cr(P+Be)]??null;return n.jsx("div",{className:we("word-table-cell__score",Se?"word-table-cell__score--marked":""),style:We>1?{transform:`translateX(-50%) scale(${We})`,transformOrigin:"bottom center"}:void 0,children:fr.map(Xe=>n.jsx("span",{className:we("word-table-cell__score-slot",Se===Xe?"word-table-cell__score-slot--on":""),children:n.jsx(pe,{htmlType:"button",size:b,type:"dot",shape:"pill",icon:Ru[Xe],variant:Se===Xe?Pu[Xe]:"default",selected:Se===Xe,useBorder:!1,...Ae?{}:{tabIndex:-1,role:"img"},showTooltipInfo:M(`wordTable.scoring.markName.${Xe}`,{defaultValue:Xe}),ariaLabel:M(`wordTable.scoring.${Xe}`,{word:je,defaultValue:`${je} ${Xe}`}),onClick:Ae?Qe=>{Qe.stopPropagation(),G(Be,Xe)}:void 0})},Xe))})},{t:M}=xe.useTranslation(),$=m!==void 0,Z=e!=null||!!t||!!a,q=ln("(max-width: 767px)"),H=o.useRef(null),[W,R]=o.useState(null),z=d?.length??0,[V,F]=o.useState(null),[S,j]=o.useState(""),I=o.useRef(null),U=o.useRef(null),re=o.useRef(null),ne=o.useRef(null),le=o.useCallback(Be=>{U.current=Be,typeof k=="function"?k(Be):k&&(k.current=Be)},[k]),K=o.useCallback((Be,je)=>{I.current=je,h?.(Be,je),j(M("wordTable.reorder.moved",{n:je+1,total:z,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[h,M,z]);o.useEffect(()=>{const Be=I.current;Be!=null&&(I.current=null,U.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler)")?.[Be]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{ne.current?.()},[]);const oe=o.useCallback((Be,je)=>{if(!h||!Be.altKey||Be.ctrlKey||Be.metaKey)return;const Se=Be.key==="ArrowRight";if(!Se&&Be.key!=="ArrowLeft")return;Be.preventDefault();const Xe=je+(Se?1:-1);Xe<0||Xe>=z||K(je,Xe)},[h,z,K]),ke=o.useCallback((Be,je)=>{if(!h||Be.pointerType==="mouse")return;const Se=Be.target.closest?.("button");if(Se&&!Se.closest(".word-table-block__card-handle"))return;ne.current?.();const Xe={x:Be.clientX,y:Be.clientY};let Qe=!1;const dt=se=>{Qe&&se.cancelable&&se.preventDefault()};let ht=null,wt=null;const ft=()=>{const se=wt;if(!se)return;const Ne=document.elementFromPoint?.(se.x,se.y)?.closest?.("[data-wordtable-cell]"),Ve=Ne?Number(Ne.dataset.wordtableCell):NaN,nt=Number.isInteger(Ve)?Ve:null;re.current=nt,R(Ie=>Ie===nt?Ie:nt)},Nt=se=>{if(!Qe){(Math.abs(se.clientX-Xe.x)>Uu||Math.abs(se.clientY-Xe.y)>Uu)&&Ke();return}if(wt={x:se.clientX,y:se.clientY},typeof requestAnimationFrame>"u"){ft();return}ht===null&&(ht=requestAnimationFrame(()=>{ht=null,ft()}))},gt=()=>{ht!==null&&(cancelAnimationFrame(ht),ht=null,ft());const se=re.current,Ne=Qe;Ke(),Ne&&se!=null&&se!==je&&K(je,se)},it=setTimeout(()=>{Qe=!0,F(je),re.current=je,R(je),window.addEventListener("touchmove",dt,{passive:!1})},M5);function Ke(){clearTimeout(it),window.removeEventListener("pointermove",Nt),window.removeEventListener("pointerup",gt),window.removeEventListener("pointercancel",gt),window.removeEventListener("touchmove",dt),Qe=!1,ht!==null&&(cancelAnimationFrame(ht),ht=null),re.current=null,ne.current=null,F(null),R(null)}ne.current=Ke,window.addEventListener("pointermove",Nt),window.addEventListener("pointerup",gt),window.addEventListener("pointercancel",gt)},[h,K]),{width:Y,height:Q}=ma[i],me=typeof E=="number"?E:E&&typeof E=="object"?q?E.narrow:E.wide:null,{scalerRef:De,scale:be,offset:te}=qu(Y,E?Q:void 0),ue=$?m?.length??0:d?.length??0,Ce=Math.max(p??ue,1),{cols:ge,rows:fe}=_5(i,Ce),$e={word:s.length===0||s.includes("word"),image:s.length===0||s.includes("image"),pron:s.length===0||s.includes("standardPron"),colloq:s.length===0||s.includes("colloquialPron")},ze=$?(m??[]).some(Be=>Be!==null&&Be.length>1):(d??[]).some(Be=>(Be.words??[]).length>1),Te=!!A?.show,Fe=!!A?.show&&A?.top!==!1,qe=!!A?.show&&A?.bottom!==!1,mt=A?.copyright??"\xA9 IHAB, Inc. All rights reserved.",ct=we("word-table-block__content",w5[l],u&&"word-table-block__content--outline",c&&ze&&"word-table-block__content--div-line",!Te&&w&&B!=="none"&&"word-table-block__content--page-number",Fe&&"word-table-block__content--brand-top",qe&&"word-table-block__content--brand-bottom"),rt={transform:`scale(${1/be})`,transformOrigin:"center center"},Ct=b*fr.length+4*(fr.length-1),Ae=!!O,We=Ae?Math.max(1,Math.min(1/be,Y/ge/Ct)):1,_e=n.jsxs("div",{ref:De,className:"word-table__scaler",style:{height:Q*be},children:[n.jsx("div",{className:we("word-table",D&&!Ae&&"word-table--score-readonly",!Z&&r),style:{width:Y,height:Q,transform:`scale(${be})`,transformOrigin:"top left",marginLeft:te},children:n.jsxs("div",{ref:le,className:ct,style:{gridTemplateColumns:`repeat(${ge}, 1fr)`,gridTemplateRows:`repeat(${fe}, 1fr)`},children:[$?n.jsx(n.Fragment,{children:(m??[]).map((Be,je)=>n.jsx("div",{className:we("word-table-block__edit-cell",Be?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",C===je?"word-table-block__edit-cell--active":""),style:Wu(je,ge,fe,l),children:Be?n.jsxs(n.Fragment,{children:[Be.map((Se,Xe)=>n.jsxs(o.Fragment,{children:[Xe>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(Gu,{outerScale:be,label:Se.word,subLabel:Se.pronunciation,colloquialLabel:Se.colloquialPronunciation,homonum:Se.homonum,showWord:$e.word,showImage:$e.image,showPronunciation:$e.pron,showColloquial:$e.colloq,buttonSize:b})]},Xe)),D&&L(je,Be.map(Se=>Se.word).join(" / ")),x&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(pe,{htmlType:"button",size:b,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:Be.length>1?M("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):M("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:Be.length>1?M("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):M("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>x(je)})})]}):y&&n.jsx("div",{style:rt,children:n.jsx(pe,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:M("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>y(je)})})},je))}):n.jsxs(n.Fragment,{children:[(d??[]).map((Be,je)=>n.jsxs("div",{"data-wordtable-cell":h?je:void 0,className:`word-table-block__card${h?" word-table-block__card--draggable":""}${W===je?" word-table-block__card--drag-over":""}${V===je?" word-table-block__card--dragging":""}`,style:Wu(je,ge,fe,l),draggable:!!h,onPointerDown:h?Se=>ke(Se,je):void 0,onKeyDown:h?Se=>oe(Se,je):void 0,onDragStart:h?()=>{H.current=je}:void 0,onDragOver:h?Se=>{Se.preventDefault(),R(je)}:void 0,onDragLeave:h?()=>R(null):void 0,onDrop:h?Se=>{Se.preventDefault(),H.current!==null&&H.current!==je&&h(H.current,je),H.current=null,R(null)}:void 0,onDragEnd:h?()=>{H.current=null,R(null)}:void 0,children:[(Be.words??[]).map((Se,Xe)=>n.jsxs(o.Fragment,{children:[Xe>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(Gu,{outerScale:be,label:Se.label,subLabel:Se.subLabel,colloquialLabel:Se.colloquialLabel,homonum:Se.homonum,showWord:$e.word,showImage:$e.image,showPronunciation:$e.pron,showColloquial:$e.colloq,buttonSize:b,wordInfo:Se.grade||Se.syllables!=null||Se.pos||Se.wordType?{grade:Se.grade,syllables:Se.syllables,pos:Se.pos,wordType:Se.wordType}:void 0})]},Xe)),D&&L(je,(Be.words??[]).map(Se=>Se.label).join(" / ")),h&&n.jsx("div",{className:"word-table-block__card-handle",children:n.jsx(pe,{htmlType:"button",size:b,type:"dot",icon:"grip-vertical",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:M("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:M("wordTable.reorder.handle",{word:(Be.words??[]).map(Se=>Se.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})}),(_||f)&&n.jsxs("div",{className:"word-table-block__card-actions",children:[_?.(je,Be),f&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(pe,{htmlType:"button",size:b,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(Be.words??[]).length>1?M("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):M("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(Be.words??[]).length>1?M("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):M("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(Be.id)})})]})]},Be.id)),Array.from({length:Math.max(0,ge*fe-(d?.length??0))}).map((Be,je)=>{const Se=(d?.length??0)+je<Ce;return n.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:g&&y&&Se&&n.jsx("div",{style:rt,children:n.jsx(pe,{htmlType:"button",size:b,type:"bar",icon:"plus",label:M("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>y((d?.length??0)+je)})})},`filler-${je}`)})]}),Fe&&n.jsx(n.Fragment,{children:n.jsxs("div",{className:"word-table__band word-table__band--top",children:[n.jsx("img",{className:"word-table__brand-logo",src:A?.topLogo?.src??sr,alt:A?.topLogo?.alt??"\uB9D0\uADC0"}),(()=>{const Be=[A?.title&&n.jsx("span",{className:"word-table__paper-title",children:A.title},"t"),A?.owner&&n.jsx("span",{className:"word-table__owner",children:A.owner},"o"),v&&n.jsx("span",{className:"word-table__code",children:v},"c")].filter(Boolean);return Be.length===0?null:n.jsx("span",{className:"word-table__ident",children:Be.map((je,Se)=>n.jsxs(o.Fragment,{children:[Se>0&&n.jsx("span",{className:"word-table__ident-dot","aria-hidden":"true",children:"\xB7"}),je]},Se))})})()]})}),qe&&n.jsx(n.Fragment,{children:n.jsxs("div",{className:"word-table__band word-table__band--bottom",children:[n.jsxs("span",{className:"word-table__brand-by",children:[A?.bottomLogo?n.jsx("img",{className:"word-table__brand-logo--ihab word-table__brand-logo--given",src:A.bottomLogo.src,alt:A.bottomLogo.alt}):n.jsx("span",{className:"word-table__brand-logo--ihab",role:"img","aria-label":"IHAB"}),n.jsx("span",{className:"word-table__copyright",children:mt})]}),n.jsxs("span",{className:"word-table__band-end",children:[A?.link&&n.jsx("span",{className:"word-table__link",children:A.link}),w&&B!=="none"&&n.jsx("span",{className:"word-table__page-count",children:M("wordTable.filter.pageIndicator",{current:w.current,total:w.total})})]})]})}),!Te&&w&&B!=="none"&&n.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${B}`,children:M("wordTable.filter.pageIndicator",{current:w.current,total:w.total})})]})}),h&&n.jsx("span",{role:"status",style:j5,children:S})]}),Ue=me==null?_e:n.jsx("div",{className:"word-table__frame",style:{height:me},children:_e});return Z?n.jsx(pa,{type:"page",icon:t,title:e,disc:a,className:we("word-table-block",r),children:Ue}):Ue}function L5(e,t,a){const r=[];for(const i of e??[]){if(i.type==="note"||i.type==="input")continue;const s=i.displayLabel??i.label,l=$5(i,t?.[i.label],a);l!==null&&r.push(`${s} ${l}`)}return r.join(" \xB7 ")}function $5(e,t,a){const r=(Array.isArray(t)?t:t===void 0?[]:[t]).filter(i=>i!==dn);return r.length===0?e.allOption?e.allLabel??a:null:r.map(i=>R5(e,i)).join(", ")}function R5(e,t){const a=[...e.items??[],...(e.groups??[]).flat()];for(const r of a)if(r!=null){if(typeof r=="string"){if(r===t)return r;continue}if(r.value===t)return r.displayLabel??r.labels?.join(" ")??r.value}return t}function Dn({title:e,titleLevel:t=2,headerAction:a,headerSummary:r,collapsible:i=!1,defaultCollapsed:s=!1,collapsed:l,onCollapsedChange:u,footer:c,sections:d,selected:m={},onSelect:p,align:C,sectionAlign:y,className:x}){const f=(C??(y==="vertical"?"newline":"inline"))==="inline",{t:h}=xe.useTranslation(),[_,g]=o.useState(s),k=l??_,b=()=>{const N=!k;g(N),u?.(N)},A=N=>{if(!i)return;const O=N.target;!O||typeof O.closest!="function"||O.closest(".filter-panel__collapse-toggle")||O.closest('button, a, input, select, textarea, label, [role="radiogroup"], [role="button"], [role="menu"]')||b()},v=o.useMemo(()=>r!==void 0||!k?"":L5(d,m,h("common.all","\uC804\uCCB4")),[r,k,d,m,h]),w=r??(v?n.jsx("span",{className:"filter-panel__header-summary body-3",children:v}):null),B=e||a||r||i,E=o.useId(),D=t?`h${t}`:"span";return n.jsxs("div",{className:we("filter-panel",i?"filter-panel--collapsible":"",k?"filter-panel--collapsed":"",x),role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?E:void 0,children:[B&&n.jsxs("div",{className:"filter-panel__header",onClick:i?A:void 0,children:[n.jsx("div",{className:"filter-panel__title-row",children:e&&n.jsx(D,{id:E,className:"filter-panel__title h4",children:e})}),n.jsxs("div",{className:"filter-panel__header-actions",children:[k?w:a,i&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:k?"chevron-down":"chevron-up",className:"filter-panel__collapse-toggle",ariaLabel:k?h("common.expand","\uD3BC\uCE58\uAE30"):h("common.collapse","\uC811\uAE30"),showTooltipInfo:k?h("common.expand","\uD3BC\uCE58\uAE30"):h("common.collapse","\uC811\uAE30"),"aria-expanded":!k,onClick:b})]})]}),!k&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:we("filter-panel__sections",f?"filter-panel__sections--row":""),children:d.map(N=>{const O=m[N.label],P=O===void 0||(Array.isArray(O)?O.length===0:!1),G=(N.items??[]).filter(M=>M!=null);N.allOption&&G.some(M=>(typeof M=="string"?M:M.value)===dn)&&St(`filter-panel-all-value:${N.label}`,`[FilterPanel] '${N.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${dn}' \uC778 \uBCF4\uAE30\uAC00 \uD568\uAED8 \uC788\uB2E4 \u2014 \uB450 \uC120\uD0DD\uC774 \uAD6C\uBCC4\uB418\uC9C0 \uC54A\uB294\uB2E4. \uBCF4\uAE30 \uAC12\uC744 \uBC14\uAFD4\uB77C.`);const L=M=>{const $=typeof M=="string"?M:M.value,Z=typeof M!="string"&&!!M.disabled,q=typeof M!="string"?M.labels:void 0,H=typeof M!="string"?M.displayLabel:void 0,W=typeof M!="string"?M.tooltip:void 0,R=typeof M!="string"?M.descriptionTooltip:void 0,z=typeof M!="string"?M.shape:void 0,V=Array.isArray(O)?O.includes($):O===$;return n.jsx(pe,{htmlType:"button",size:"keyboard",label:q??H??$,type:N.itemType??(q?"bar":$.length===1?"dot":void 0),selected:V,disabled:Z,shape:z,showTooltipInfo:!!W,tooltipInfoText:W,tooltipDescription:R,onClick:()=>p?.($,N.label)},$)};return n.jsxs(o.Fragment,{children:[N.groupLabel&&n.jsxs("div",{className:"filter-panel__group-label-row",children:[n.jsx("div",{className:"filter-panel__group-label body-2",children:N.groupLabel}),N.groupAction]}),n.jsxs("div",{className:we("filter-panel__section",N.layout==="row"?"filter-panel__section--row":"",N.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:N.displayLabel??N.label}),N.labelAction??(N.labelInfo?n.jsx(Ra,{...N.labelInfo}):null)]}),N.type==="note"?n.jsx("div",{className:"filter-panel__note body-3",children:N.content}):N.type==="input"?n.jsx(Xn,{className:"filter-panel__textfield",placeholder:N.placeholder,ariaLabel:N.displayLabel??N.label,value:m[N.label]??"",onChange:M=>p?.(M,N.label),error:N.error}):!N.multiple&&N.display==="segmented"?n.jsx(gn,{ariaLabel:N.displayLabel??N.label,options:[...N.allOption?[{key:dn,label:N.allLabel??h("common.all","\uC804\uCCB4"),disabled:N.allOptionDisabled}]:[],...G.map(M=>{const $=typeof M=="string"?M:M.value,Z=typeof M!="string"?M.displayLabel:void 0,q=typeof M!="string"?M.disabled:void 0;return{key:$,label:Z??$,disabled:q}})],value:P&&N.allOption?dn:m[N.label]??"",onChange:M=>p?.(M,N.label),size:32}):!N.multiple&&N.display==="dropdown"?n.jsx(pn,{className:"filter-panel__dropdown",ariaLabel:typeof N.label=="string"?N.label:void 0,size:40,options:[...N.allOption?[{value:dn,label:N.allLabel??h("common.all","\uC804\uCCB4"),disabled:N.allOptionDisabled}]:[],...G.map(M=>{const $=typeof M=="string"?M:M.value,Z=typeof M!="string"?M.displayLabel:void 0,q=typeof M!="string"?M.disabled:void 0;return{value:$,label:Z??$,disabled:q}})],value:P&&N.allOption?dn:m[N.label],onChange:M=>p?.(M,N.label)}):n.jsxs("div",{className:N.groups?"filter-panel__item-groups":"filter-panel__items",children:[N.allOption&&!N.groups&&n.jsx(pe,{htmlType:"button",size:"keyboard",label:N.allLabel??h("common.all","\uC804\uCCB4"),selected:P,disabled:N.allOptionDisabled,onClick:()=>p?.(dn,N.label)}),N.groups?N.groups.map((M,$)=>n.jsxs("div",{className:"filter-panel__item-group",children:[$===0&&N.allOption&&n.jsx(pe,{htmlType:"button",size:"keyboard",label:N.allLabel??h("common.all","\uC804\uCCB4"),selected:P,disabled:N.allOptionDisabled,onClick:()=>p?.(dn,N.label)}),M.filter(Z=>Z!=null).map(L)]},$)):G.map(L)]})]})]},N.label)})}),c!=null&&c!==!1&&n.jsx("div",{className:"filter-panel__footer body-3",children:c})]})]})}const P5=[1,2,3,4,5,6,7,8,9,10,11,12],Ku=[8,4,2,1],rn="show",yn="hide";function Yu(e,t){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"image",disabled:!t.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"word",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"standardPron",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"colloquialPron",disabled:!t.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function Zu(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"landscape",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"portrait",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function Xu(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:rn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:yn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Ju(e){return{label:e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4"),items:[{value:rn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:yn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Qu(e){return{label:e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4"),items:[{value:rn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:yn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function ec(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:rn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"dashed",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"corner",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:yn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function tc(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:rn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:yn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function nc(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...Ku.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function ac(e,t){return e===t||!Ku.includes(e)?Number.POSITIVE_INFINITY:e}function F5(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"left",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"center",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"right",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:yn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function rc(e){return e==="left"||e==="center"||e==="right"?e:"none"}function oc(e,t){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:t.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:t.orientation,[e("wordTable.filter.border","\uC678\uACFD\uC120")]:t.showOutline?rn:yn,[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:t.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:t.showDivLine?rn:yn,...t.showTopInfo!=null?{[e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")]:t.showTopInfo?rn:yn}:{},...t.showBottomInfo!=null?{[e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")]:t.showBottomInfo?rn:yn}:{}}}function sc(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===dn?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(i=>i.includes(t)?i.filter(s=>s!==t):[...i,t]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(t==="landscape"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(t===rn),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(t),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(t===rn),!0):a===e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")?(r.setShowTopInfo?.(t===rn),!0):a===e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")?(r.setShowBottomInfo?.(t===rn),!0):!1}function I5(e){return"sections"in e}function Yo(e){const{t}=xe.useTranslation(),{title:a,className:r,collapsible:i,defaultCollapsed:s,collapsed:l,onCollapsedChange:u,headerSummary:c}=e,d={collapsible:i,defaultCollapsed:s,collapsed:l,onCollapsedChange:u,headerSummary:c};if(I5(e))return n.jsx(Dn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,...d,align:"inline"});const{hasImage:m,hasColloquial:p,contentTypes:C,orientation:y,showOutline:x,cutLine:f,showDivLine:h,setters:_,showCutLine:g=!1,showDivLine2:k=!1,middleSections:b=[],extraSelected:A={},onExtraSelect:v,showPaperBands:w=!1,showTopInfo:B=!0,showBottomInfo:E=!0}=e,D=[Yu(t,{hasImage:m,hasColloquial:p}),Zu(t),...b,Xu(t),...g?[ec(t)]:[],...k?[tc(t)]:[],...w?[Ju(t),Qu(t)]:[]],N={...oc(t,{contentTypes:C,orientation:y,showOutline:x,cutLine:f,showDivLine:h,showTopInfo:B,showBottomInfo:E}),...A},O=(P,G)=>{sc(t,P,G,_)||v?.(P,G)};return n.jsx(Dn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:D,selected:N,onSelect:O,...d,sectionAlign:"horizontal"})}function Zo(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function O5(e){return Zo(e).replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Xo(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let gr=null,Ca=null;function H5(e,t,a,r="",i=""){if(e.length===0||Ca&&Ca.iframe.isConnected&&Date.now()-Ca.at<1e4)return;const s=r?Xo(r):"";gr?.();let l=null;if(s){const d=document.title;document.title=s,l=()=>{document.title=d,window.removeEventListener("afterprint",l),gr===l&&(gr=null)},gr=l,window.addEventListener("afterprint",l)}const u=document.createElement("iframe");u.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(u);const c=u.contentDocument;if(!c){u.remove();return}Ca={iframe:u,at:Date.now()},c.open(),c.write(Jo(e,t,a,!0,s,i)),c.close(),u.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{u.remove(),Ca?.iframe===u&&(Ca=null)},0)})}function Jo(e,t,a,r=!1,i="",s=""){i=i?Xo(i):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(C=>C.cssText)}catch{return[]}}).join(`
860
860
  `),u="light",c=(()=>{try{return document.documentElement.lang||""}catch{return""}})(),d=s?`<div class="paper-head">${Zo(s)}</div>`:"",m=e.map(p=>{const C=p.cloneNode(!0);return C.querySelectorAll('[data-play-state="play"]').forEach(y=>y.style.display=""),C.querySelectorAll('[data-play-state="pause"]').forEach(y=>y.style.display="none"),C.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(y=>y.remove()),C.querySelectorAll(".word-table-cell__spinner").forEach(y=>y.remove()),C.querySelectorAll("img").forEach(y=>{y.style.opacity==="0"&&(y.setAttribute("onload","this.style.opacity=''"),y.setAttribute("onerror","this.style.visibility='hidden'"))}),`<div class="paper-wrap">${d}${C.outerHTML}</div>`}).join(`
861
861
  `);return`<!DOCTYPE html>
862
862
  <html${c?` lang="${O5(c)}"`:""} data-theme="${u}">
@@ -1063,10 +1063,10 @@ ${b.badge}`:b.badge:void 0;if(x&&c(b.code))return null;if(!b.badge&&!m)return p(
1063
1063
  `:""}
1064
1064
  <\/script>
1065
1065
  </body>
1066
- </html>`}const V5=1e3;function Qo({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:i,header:s=""}){const{t:l}=xe.useTranslation(),u=o.useCallback(()=>{H5(e(),t,a,r,s)},[e,t,a,r,s]),c=o.useCallback(()=>{const m=e();if(m.length===0)return;const p=window.open("","_blank");if(!p){i?.();return}p.document.write(Jo(m,t,a,!1,r,s)),p.document.close()},[e,t,a,r,i,s]),d=o.useCallback(()=>{const m=e();if(m.length===0)return;const p=Jo(m,t,a,!1,r,s),C=new Blob([p],{type:"text/html;charset=utf-8"}),y=URL.createObjectURL(C),v=(r?Xo(r):"")||l("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),f=Object.assign(document.createElement("a"),{href:y,download:`${v}.html`});document.body.appendChild(f),f.click(),document.body.removeChild(f),setTimeout(()=>URL.revokeObjectURL(y),V5)},[e,t,a,r,s,l]);return{print:u,openNewWindow:c,downloadHtml:d}}function ic(e,t){const{t:a}=xe.useTranslation(),r=t?.paperBands===!0,[i,s]=o.useState("landscape"),[l,u]=o.useState(["image","word","standardPron"]),[c,d]=o.useState("show"),[m,p]=o.useState(!0),[C,y]=o.useState(!0),[v,f]=o.useState(!0),[h,_]=o.useState(!0),[g,k]=o.useState(8),[b,N]=o.useState("right"),x=e.length,B=e.some(G=>(G.words??[]).length>1),w=e.some(G=>(G.words??[]).some(W=>!!W.colloquialLabel)),A=Math.min(g,Math.max(x,1)),D=o.useMemo(()=>Iu(e,A),[e,A]),E=D.length>1,O=A,[R,K]=o.useState(!1);o.useEffect(()=>{let G=!1;if(!aa()){K(!1);return}return Promise.all(e.flatMap(W=>(W.words??[]).map(H=>vi(H.label,H.homonum)))).then(W=>{G||K(W.some(Boolean))},()=>{}),()=>{G=!0}},[e]);const M=o.useMemo(()=>[Yu(a,{hasImage:R,hasColloquial:w}),Zu(a),...x>0?[nc(a,{hasPairs:B,itemCount:x})]:[],Xu(a),...O>1?[ec(a)]:[],...B?[tc(a)]:[],...r?[Ju(a),Qu(a)]:[]],[a,R,w,x,B,E,O,r]),L={...oc(a,{contentTypes:l,orientation:i,showOutline:m,cutLine:c,showDivLine:h,showTopInfo:C,showBottomInfo:v}),...x>0?{[a(B?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${A}\uAC1C`}:{},...E?{[a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:b}:{}},$=o.useCallback((G,W)=>{sc(a,G,W,{setContentTypes:u,setOrientation:s,setShowOutline:p,setCutLine:d,setShowDivLine:_,setShowTopInfo:y,setShowBottomInfo:f})||(W===a("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||W===a("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?k(ac(parseInt(G),x)):W===a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&N(rc(G)))},[a,x]);return{settings:{orientation:i,contentTypes:l,cutLine:c,showOutline:m,showDivLine:h,count:O,showTopInfo:C,showBottomInfo:v},filterSections:M,filterSelected:L,handleSelect:$,pages:D,isPaginated:E,pageNumberPosition:b}}function z5({items:e,words:t,title:a,subtitle:r,emptyText:i,buttons:s,renderButtons:l,renderFooter:u,footerClassName:c,footerLayout:d,printFileName:m,showSettings:p,autoPrint:C,className:y,onClose:v,scoring:f=!1,onScoreChange:h,printHeader:_,brand:g,code:k,beforeClose:b}){const{t:N}=xe.useTranslation(),x=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(oe=>typeof oe=="string"&&oe.length>0).map((oe,ke)=>({id:`${oe}-${ke}`,words:[{label:oe}]})),[e,t]),{settings:B,filterSections:w,filterSelected:A,handleSelect:D,pages:E,isPaginated:O,pageNumberPosition:R}=ic(x,{paperBands:!!g?.show}),K=o.useMemo(()=>Fu(E.map(oe=>oe.length)),[E]),[M,L]=o.useState({}),$=o.useCallback((oe,ke)=>{L(Z=>({...Z,[Cr(oe)]:$u(Z[Cr(oe)]??null,ke)}))},[]),G=o.useRef(h);o.useEffect(()=>{G.current=h});const W=o.useRef(M);o.useEffect(()=>{W.current!==M&&(W.current=M,G.current?.(qo(M)))},[M]);const H=o.useMemo(()=>qo(M),[M]),U=o.useRef(null),{toastMessage:P,toastKey:z,showWarning:V,clearToast:F}=Tl("warning"),S=o.useRef([]),j=o.useCallback(()=>O?S.current.filter(oe=>oe!==null):U.current?[U.current]:[],[O]),{print:I,openNewWindow:q}=Qo({getElements:j,paperW:ma[B.orientation].width,paperH:ma[B.orientation].height,fileName:m??"",header:_??"",onPopupBlocked:()=>V(N("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."))}),re=o.useMemo(()=>u?void 0:l?l({print:I,openNewWindow:q}):m?[{label:N("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>q()},{label:N("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>I()},...s??[]]:s,[u,l,m,s,N,I,q]),ne=o.useMemo(()=>u?u({print:I,openNewWindow:q}):void 0,[u,I,q]),le=o.useRef(!1),Y=o.useRef(I);return o.useEffect(()=>{Y.current=I},[I]),o.useEffect(()=>{if(!C||le.current)return;const oe=window.setTimeout(()=>{le.current=!0,Y.current()},100);return()=>window.clearTimeout(oe)},[C]),n.jsxs(Fn,{title:a??N("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:we("word-table-popup",y),buttons:re,footer:ne,footerClassName:c,footerLayout:d,beforeClose:b,onClose:v,children:[x.length>0?n.jsxs("div",{className:"word-table-popup__body",children:[p&&n.jsx(Yo,{sections:w,selected:A,onSelect:D}),O?n.jsx("div",{className:"word-table-popup__pages",children:E.map((oe,ke)=>n.jsx(ha,{items:oe,orientation:B.orientation,contentTypes:B.contentTypes,cutLine:B.cutLine,showOutline:B.showOutline,showDivLine:B.showDivLine,count:B.count,contentRef:Z=>{S.current[ke]=Z},pageNumber:{current:ke+1,total:E.length},pageNumberPosition:R,brand:g&&{...g,top:B.showTopInfo,bottom:B.showBottomInfo},code:k,scoring:f,scoreIndexOffset:K[ke],marks:H,onMarkClick:$},ke))}):n.jsx("div",{className:"word-table-popup__table",children:n.jsx(ha,{items:x,orientation:B.orientation,contentTypes:B.contentTypes,cutLine:B.cutLine,showOutline:B.showOutline,showDivLine:B.showDivLine,count:B.count,contentRef:U,fitHeight:!0,scoring:f,marks:H,onMarkClick:$,brand:g&&{...g,top:B.showTopInfo,bottom:B.showBottomInfo},code:k})})]}):n.jsx("p",{className:"word-table-popup__empty body-3",children:i??N("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsx(ca,{message:P,position:"top",onClose:F},z)]})}const W5=new Set(["x","triangle"]);function q5(e,t){const a=[];for(let r=0;r<e.length;r++){const i=t[String(r)];i&&W5.has(i)&&a.push(e[r])}return a}const U5=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function lc(e){const t=e.name.trim(),a=e.reviewRound;if(typeof a=="number"&&Number.isFinite(a)&&a>=0){const s=Math.floor(a);if(s===0)return{base:t,round:1};const l=(s===1?/\s*복습\s*\d{2}\.\d{2}$/:new RegExp(`(?:^|\\s)${s}\uCC28\\s*\uBCF5\uC2B5\\s*\\d{2}\\.\\d{2}$`)).exec(t);return{base:l?t.slice(0,l.index).trim():t,round:s+1}}let r=t,i=1;for(;;){const s=U5.exec(r);if(!s)break;i=Math.max(i,(s[1]?Number(s[1]):1)+1),r=r.slice(0,s.index).trim()}return{base:r,round:i}}function G5(e,t){const[,a,r]=ro(t).split("-"),i=`${a}.${r}`,{base:s,round:l}=lc(typeof e=="string"?{name:e}:e),u=l>=2?`${l}\uCC28 `:"";return`${s||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${i}`}function K5(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:lc(e).round}}function Y5(e,t){const a={};for(const[r,i]of Object.entries(t)){if(i!=="o"&&i!=="triangle"&&i!=="x")continue;const s=Number(r),l=e[s];l&&(a[r]=l)}return a}function Z5(e){return e.map(t=>t.label).join(" / ")}function X5(e){return e.map(t=>t.homonum!=null?`${t.label}#${t.homonum}`:t.label).join(" / ")}function uc(e){return e.split(" / ").map(t=>t.replace(/#\d+$/,"")).join(" / ")}function J5(e,t,a){const r=Mi(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}function cc(e,t,a){return a===0?0:(e+t*.5)/a}function Q5(e){const t=new Map,a=[...e].sort((i,s)=>i.scoredAt.localeCompare(s.scoredAt));for(const i of a)for(const[s,l]of Object.entries(i.marks)){const u=i.labels?.[s];if(!u)continue;const c=t.get(u)??{o:0,triangle:0,x:0,latest:l,latestAt:i.scoredAt};if(l==="o")c.o++;else if(l==="triangle")c.triangle++;else if(l==="x")c.x++;else continue;c.latest=l,c.latestAt=i.scoredAt,t.set(u,c)}const r=[];for(const[i,s]of t){const l=s.o+s.triangle+s.x;r.push({label:uc(i),key:i,tried:l,o:s.o,triangle:s.triangle,x:s.x,rate:cc(s.o,s.triangle,l),latest:s.latest,latestAt:s.latestAt})}return r.sort((i,s)=>i.rate-s.rate||s.tried-i.tried||an(i.label,s.label)||an(i.key??i.label,s.key??s.label)),r}function e3(e){const t=new Map;for(const r of e){const i=r.tableId??`name:${r.tableName}`,s=t.get(i)??{tableName:r.tableName,tableId:r.tableId,rows:[]};s.rows.push(r),t.set(i,s)}const a=[];for(const r of t.values()){const i=u=>Object.values(u.marks).filter(c=>c==="o"||c==="triangle"||c==="x").length,s=r.rows.filter(u=>i(u)>0).sort((u,c)=>u.scoredAt.localeCompare(c.scoredAt));if(s.length===0)continue;const l=s.map(u=>{const c=Object.values(u.marks),d=c.filter(p=>p==="o").length,m=c.filter(p=>p==="triangle").length;return cc(d,m,i(u))});a.push({tableName:r.tableName,tableId:r.tableId,rates:l,times:s.map(u=>u.scoredAt),delta:l.length>=2?l[l.length-1]-l[0]:null})}return a.sort((r,i)=>(i.times[i.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function t3(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function n3(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 a3(e){const t=new Map;let a=0,r=0;const i=e.map((l,u)=>({r:l,at:u})).sort((l,u)=>l.r.answeredAt.localeCompare(u.r.answeredAt)||n3(l.r.id,u.r.id)||l.at-u.at).map(l=>l.r);for(const l of i){if(l.isCorrect==null)continue;const u=l.itemTitle?.trim();if(!u){r++;continue}a++;const c=l.itemId?.trim()||u,d=`${l.trainingType}|${c}`,m=t.get(d)??{trainingType:l.trainingType,itemId:c,title:u,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(m.tried++,l.isCorrect||m.wrong++,m.title=u,m.latestCorrect=l.isCorrect,m.latestAt=l.answeredAt,m.lastSelected=l.selected,l.setId){const p=m.setIds.indexOf(l.setId);p>0&&m.setIds.splice(p,1),p!==0&&m.setIds.unshift(l.setId)}t.set(d,m)}const s=[...t.entries()].map(([l,u])=>({key:l,trainingType:u.trainingType,itemId:u.itemId,title:u.title,tried:u.tried,wrong:u.wrong,rate:u.tried===0?0:(u.tried-u.wrong)/u.tried,latestCorrect:u.latestCorrect,latestAt:u.latestAt,lastSelected:u.lastSelected,setIds:u.setIds}));return s.sort((l,u)=>l.rate-u.rate||u.tried-l.tried||an(l.title,u.title)),{items:s,counted:a,skippedNoTitle:r}}function r3(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function o3(e){const t=new Map;for(const r of e){const i=t.get(r.trainingType)??[];i.push(r),t.set(r.trainingType,i)}const a=[...t.entries()].map(([r,i])=>({trainingType:r,items:i,pending:i.filter(s=>!s.latestCorrect).length}));return a.sort((r,i)=>i.pending-r.pending||r.trainingType.localeCompare(i.trainingType)),a}const es=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function s3(e){const t=new Map;let a=0;for(const s of e){if(s.latestCorrect)continue;const l=s.setIds[0];if(!l){a++;continue}const u=`${s.trainingType}|${l}`,c=t.get(u)??{setId:l,trainingType:s.trainingType,pending:0};c.pending++,t.set(u,c)}const r=(s,l)=>l.pending-s.pending||s.trainingType.localeCompare(l.trainingType)||s.setId.localeCompare(l.setId),i=[...t.values()];return{sentence:i.filter(s=>es.includes(s.trainingType)).sort(r),word:i.filter(s=>!es.includes(s.trainingType)).sort(r),noSet:a}}function i3(e,t,a=5){const r=new Set(t);if(r.size===0)return[];const i=[];for(const s of e){const l=new Set,u=[];for(const c of s.cellLabels)r.has(c)&&!l.has(c)&&(l.add(c),u.push(c));u.length!==0&&i.push({id:s.id,name:s.name,kind:s.kind,covered:u,totalCells:s.cellLabels.length})}return i.sort((s,l)=>l.covered.length-s.covered.length||s.totalCells-l.totalCells||an(s.name,l.name)),i.slice(0,Math.max(0,a))}function l3(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function u3(e,t){const a=new Map;for(const i of e)for(const s of i.cells){const l=i.labelOf(s);a.has(l)||a.set(l,s)}const r=[];for(const i of t){const s=a.get(i);s!==void 0&&r.push(s)}return r}function ts(e,t,a){return typeof e=="string"&&e?e:t.replace(/\{\{(\w+)\}\}/g,(r,i)=>String(a[i]))}function c3(e,t){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),i=a%60;return t?t(r,i):r>0&&i>0?ts(Rt.t("customers.duration.minSec",{m:r,s:i,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s:i}):r>0?ts(Rt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):ts(Rt.t("customers.duration.sec",{s:i,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s:i})}function d3(e,t){const a=[],r=new Set;for(const i of e){const s=t(i);r.has(s)||(r.add(s),a.push({key:s,value:i,pinned:!1}))}return a}function p3(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function m3(e,t){return e.filter(a=>a.key!==t)}function h3(e,t,a){const r=e.filter(d=>d.pinned),i=new Set(r.map(d=>d.key)),s=e.length-r.length,l=[],u=new Set(i);for(const d of t){if(l.length>=s)break;const m=a(d);u.has(m)||(u.add(m),l.push({key:m,value:d,pinned:!1}))}const c=[...l];return e.map(d=>d.pinned?d:c.shift()).filter(d=>d!==void 0)}function C3(e){return e.map(t=>t.value)}function f3(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},i=t?.key?` icon-grid-menu__button--${t.key}`:"",s=o.useId();return n.jsxs("div",{className:`icon-grid-menu__button-wrapper${i}`,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":s,children:n.jsx(at,{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:s,className:"icon-grid-menu__button-label button-1",children:t.label})]})}function g3(e){const{categories:t=[],selected:a,onSelect:r,size:i="medium"}=e||{},s=a!==void 0,[l,u]=o.useState(()=>s?null:(t&&t[0]?.key)??null),c=s?a:l,d=o.useRef(r);o.useEffect(()=>{d.current=r});const m=o.useRef(!1),p=(t&&t[0]?.key)??null;o.useEffect(()=>{if(s||m.current||!p)return;m.current=!0;const y=l??p;l==null&&u(y),d.current?.(y)},[s,p]);const C=o.useCallback(y=>{const v=c===y?null:y;m.current=!0,s||u(v),r?.(v)},[c,s,r]);return n.jsx("div",{className:`icon-grid-menu icon-grid-menu--${i}`,children:(t||[]).map(y=>n.jsx(f3,{category:y,isSelected:c===y.key,onClick:()=>C(y.key)},y.key))})}function b3({subs:e=[],selected:t,onSelect:a,size:r="medium"}){const i=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(s=>n.jsx(pe,{htmlType:"button",size:i,type:"bar",label:s.label,selected:t===s.key,className:"choice-chips__button",onClick:()=>a?.(s.key)},s.key))})})}function y3({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",i=a?.tel??"031-380-3724",{t:s}=xe.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:s("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
1066
+ </html>`}const V5=1e3;function Qo({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:i,header:s=""}){const{t:l}=xe.useTranslation(),u=o.useCallback(()=>{H5(e(),t,a,r,s)},[e,t,a,r,s]),c=o.useCallback(()=>{const m=e();if(m.length===0)return;const p=window.open("","_blank");if(!p){i?.();return}p.document.write(Jo(m,t,a,!1,r,s)),p.document.close()},[e,t,a,r,i,s]),d=o.useCallback(()=>{const m=e();if(m.length===0)return;const p=Jo(m,t,a,!1,r,s),C=new Blob([p],{type:"text/html;charset=utf-8"}),y=URL.createObjectURL(C),x=(r?Xo(r):"")||l("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),f=Object.assign(document.createElement("a"),{href:y,download:`${x}.html`});document.body.appendChild(f),f.click(),document.body.removeChild(f),setTimeout(()=>URL.revokeObjectURL(y),V5)},[e,t,a,r,s,l]);return{print:u,openNewWindow:c,downloadHtml:d}}function ic(e,t){const{t:a}=xe.useTranslation(),r=t?.paperBands===!0,[i,s]=o.useState("landscape"),[l,u]=o.useState(["image","word","standardPron"]),[c,d]=o.useState("show"),[m,p]=o.useState(!0),[C,y]=o.useState(!0),[x,f]=o.useState(!0),[h,_]=o.useState(!0),[g,k]=o.useState(8),[b,A]=o.useState("right"),v=e.length,w=e.some(Z=>(Z.words??[]).length>1),B=e.some(Z=>(Z.words??[]).some(q=>!!q.colloquialLabel)),E=Math.min(g,Math.max(v,1)),D=o.useMemo(()=>Iu(e,E),[e,E]),N=D.length>1,O=E,[P,G]=o.useState(!1);o.useEffect(()=>{let Z=!1;if(!aa()){G(!1);return}return Promise.all(e.flatMap(q=>(q.words??[]).map(H=>vi(H.label,H.homonum)))).then(q=>{Z||G(q.some(Boolean))},()=>{}),()=>{Z=!0}},[e]);const L=o.useMemo(()=>[Yu(a,{hasImage:P,hasColloquial:B}),Zu(a),...v>0?[nc(a,{hasPairs:w,itemCount:v})]:[],Xu(a),...O>1?[ec(a)]:[],...w?[tc(a)]:[],...r?[Ju(a),Qu(a)]:[]],[a,P,B,v,w,N,O,r]),M={...oc(a,{contentTypes:l,orientation:i,showOutline:m,cutLine:c,showDivLine:h,showTopInfo:C,showBottomInfo:x}),...v>0?{[a(w?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${E}\uAC1C`}:{},...N?{[a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:b}:{}},$=o.useCallback((Z,q)=>{sc(a,Z,q,{setContentTypes:u,setOrientation:s,setShowOutline:p,setCutLine:d,setShowDivLine:_,setShowTopInfo:y,setShowBottomInfo:f})||(q===a("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||q===a("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?k(ac(parseInt(Z),v)):q===a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&A(rc(Z)))},[a,v]);return{settings:{orientation:i,contentTypes:l,cutLine:c,showOutline:m,showDivLine:h,count:O,showTopInfo:C,showBottomInfo:x},filterSections:L,filterSelected:M,handleSelect:$,pages:D,isPaginated:N,pageNumberPosition:b}}function z5({items:e,words:t,title:a,subtitle:r,emptyText:i,buttons:s,renderButtons:l,renderFooter:u,footerClassName:c,footerLayout:d,printFileName:m,showSettings:p,autoPrint:C,className:y,onClose:x,scoring:f=!1,onScoreChange:h,printHeader:_,brand:g,code:k,beforeClose:b}){const{t:A}=xe.useTranslation(),v=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(oe=>typeof oe=="string"&&oe.length>0).map((oe,ke)=>({id:`${oe}-${ke}`,words:[{label:oe}]})),[e,t]),{settings:w,filterSections:B,filterSelected:E,handleSelect:D,pages:N,isPaginated:O,pageNumberPosition:P}=ic(v,{paperBands:!!g?.show}),G=o.useMemo(()=>Fu(N.map(oe=>oe.length)),[N]),[L,M]=o.useState({}),$=o.useCallback((oe,ke)=>{M(Y=>({...Y,[Cr(oe)]:$u(Y[Cr(oe)]??null,ke)}))},[]),Z=o.useRef(h);o.useEffect(()=>{Z.current=h});const q=o.useRef(L);o.useEffect(()=>{q.current!==L&&(q.current=L,Z.current?.(qo(L)))},[L]);const H=o.useMemo(()=>qo(L),[L]),W=o.useRef(null),{toastMessage:R,toastKey:z,showWarning:V,clearToast:F}=Tl("warning"),S=o.useRef([]),j=o.useCallback(()=>O?S.current.filter(oe=>oe!==null):W.current?[W.current]:[],[O]),{print:I,openNewWindow:U}=Qo({getElements:j,paperW:ma[w.orientation].width,paperH:ma[w.orientation].height,fileName:m??"",header:_??"",onPopupBlocked:()=>V(A("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."))}),re=o.useMemo(()=>u?void 0:l?l({print:I,openNewWindow:U}):m?[{label:A("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>U()},{label:A("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>I()},...s??[]]:s,[u,l,m,s,A,I,U]),ne=o.useMemo(()=>u?u({print:I,openNewWindow:U}):void 0,[u,I,U]),le=o.useRef(!1),K=o.useRef(I);return o.useEffect(()=>{K.current=I},[I]),o.useEffect(()=>{if(!C||le.current)return;const oe=window.setTimeout(()=>{le.current=!0,K.current()},100);return()=>window.clearTimeout(oe)},[C]),n.jsxs(In,{title:a??A("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:we("word-table-popup",y),buttons:re,footer:ne,footerClassName:c,footerLayout:d,beforeClose:b,onClose:x,children:[v.length>0?n.jsxs("div",{className:"word-table-popup__body",children:[p&&n.jsx(Yo,{sections:B,selected:E,onSelect:D}),O?n.jsx("div",{className:"word-table-popup__pages",children:N.map((oe,ke)=>n.jsx(ha,{items:oe,orientation:w.orientation,contentTypes:w.contentTypes,cutLine:w.cutLine,showOutline:w.showOutline,showDivLine:w.showDivLine,count:w.count,contentRef:Y=>{S.current[ke]=Y},pageNumber:{current:ke+1,total:N.length},pageNumberPosition:P,brand:g&&{...g,top:w.showTopInfo,bottom:w.showBottomInfo},code:k,scoring:f,scoreIndexOffset:G[ke],marks:H,onMarkClick:$},ke))}):n.jsx("div",{className:"word-table-popup__table",children:n.jsx(ha,{items:v,orientation:w.orientation,contentTypes:w.contentTypes,cutLine:w.cutLine,showOutline:w.showOutline,showDivLine:w.showDivLine,count:w.count,contentRef:W,fitHeight:!0,scoring:f,marks:H,onMarkClick:$,brand:g&&{...g,top:w.showTopInfo,bottom:w.showBottomInfo},code:k})})]}):n.jsx("p",{className:"word-table-popup__empty body-3",children:i??A("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsx(ca,{message:R,position:"top",onClose:F},z)]})}const W5=new Set(["x","triangle"]);function q5(e,t){const a=[];for(let r=0;r<e.length;r++){const i=t[String(r)];i&&W5.has(i)&&a.push(e[r])}return a}const U5=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function lc(e){const t=e.name.trim(),a=e.reviewRound;if(typeof a=="number"&&Number.isFinite(a)&&a>=0){const s=Math.floor(a);if(s===0)return{base:t,round:1};const l=(s===1?/\s*복습\s*\d{2}\.\d{2}$/:new RegExp(`(?:^|\\s)${s}\uCC28\\s*\uBCF5\uC2B5\\s*\\d{2}\\.\\d{2}$`)).exec(t);return{base:l?t.slice(0,l.index).trim():t,round:s+1}}let r=t,i=1;for(;;){const s=U5.exec(r);if(!s)break;i=Math.max(i,(s[1]?Number(s[1]):1)+1),r=r.slice(0,s.index).trim()}return{base:r,round:i}}function G5(e,t){const[,a,r]=ro(t).split("-"),i=`${a}.${r}`,{base:s,round:l}=lc(typeof e=="string"?{name:e}:e),u=l>=2?`${l}\uCC28 `:"";return`${s||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${i}`}function K5(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:lc(e).round}}function Y5(e,t){const a={};for(const[r,i]of Object.entries(t)){if(i!=="o"&&i!=="triangle"&&i!=="x")continue;const s=Number(r),l=e[s];l&&(a[r]=l)}return a}function Z5(e){return e.map(t=>t.label).join(" / ")}function X5(e){return e.map(t=>t.homonum!=null?`${t.label}#${t.homonum}`:t.label).join(" / ")}function uc(e){return e.split(" / ").map(t=>t.replace(/#\d+$/,"")).join(" / ")}function J5(e,t,a){const r=Mi(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}function cc(e,t,a){return a===0?0:(e+t*.5)/a}function Q5(e){const t=new Map,a=[...e].sort((i,s)=>i.scoredAt.localeCompare(s.scoredAt));for(const i of a)for(const[s,l]of Object.entries(i.marks)){const u=i.labels?.[s];if(!u)continue;const c=t.get(u)??{o:0,triangle:0,x:0,latest:l,latestAt:i.scoredAt};if(l==="o")c.o++;else if(l==="triangle")c.triangle++;else if(l==="x")c.x++;else continue;c.latest=l,c.latestAt=i.scoredAt,t.set(u,c)}const r=[];for(const[i,s]of t){const l=s.o+s.triangle+s.x;r.push({label:uc(i),key:i,tried:l,o:s.o,triangle:s.triangle,x:s.x,rate:cc(s.o,s.triangle,l),latest:s.latest,latestAt:s.latestAt})}return r.sort((i,s)=>i.rate-s.rate||s.tried-i.tried||an(i.label,s.label)||an(i.key??i.label,s.key??s.label)),r}function e3(e){const t=new Map;for(const r of e){const i=r.tableId??`name:${r.tableName}`,s=t.get(i)??{tableName:r.tableName,tableId:r.tableId,rows:[]};s.rows.push(r),t.set(i,s)}const a=[];for(const r of t.values()){const i=u=>Object.values(u.marks).filter(c=>c==="o"||c==="triangle"||c==="x").length,s=r.rows.filter(u=>i(u)>0).sort((u,c)=>u.scoredAt.localeCompare(c.scoredAt));if(s.length===0)continue;const l=s.map(u=>{const c=Object.values(u.marks),d=c.filter(p=>p==="o").length,m=c.filter(p=>p==="triangle").length;return cc(d,m,i(u))});a.push({tableName:r.tableName,tableId:r.tableId,rates:l,times:s.map(u=>u.scoredAt),delta:l.length>=2?l[l.length-1]-l[0]:null})}return a.sort((r,i)=>(i.times[i.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function t3(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function n3(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 a3(e){const t=new Map;let a=0,r=0;const i=e.map((l,u)=>({r:l,at:u})).sort((l,u)=>l.r.answeredAt.localeCompare(u.r.answeredAt)||n3(l.r.id,u.r.id)||l.at-u.at).map(l=>l.r);for(const l of i){if(l.isCorrect==null)continue;const u=l.itemTitle?.trim();if(!u){r++;continue}a++;const c=l.itemId?.trim()||u,d=`${l.trainingType}|${c}`,m=t.get(d)??{trainingType:l.trainingType,itemId:c,title:u,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(m.tried++,l.isCorrect||m.wrong++,m.title=u,m.latestCorrect=l.isCorrect,m.latestAt=l.answeredAt,m.lastSelected=l.selected,l.setId){const p=m.setIds.indexOf(l.setId);p>0&&m.setIds.splice(p,1),p!==0&&m.setIds.unshift(l.setId)}t.set(d,m)}const s=[...t.entries()].map(([l,u])=>({key:l,trainingType:u.trainingType,itemId:u.itemId,title:u.title,tried:u.tried,wrong:u.wrong,rate:u.tried===0?0:(u.tried-u.wrong)/u.tried,latestCorrect:u.latestCorrect,latestAt:u.latestAt,lastSelected:u.lastSelected,setIds:u.setIds}));return s.sort((l,u)=>l.rate-u.rate||u.tried-l.tried||an(l.title,u.title)),{items:s,counted:a,skippedNoTitle:r}}function r3(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function o3(e){const t=new Map;for(const r of e){const i=t.get(r.trainingType)??[];i.push(r),t.set(r.trainingType,i)}const a=[...t.entries()].map(([r,i])=>({trainingType:r,items:i,pending:i.filter(s=>!s.latestCorrect).length}));return a.sort((r,i)=>i.pending-r.pending||r.trainingType.localeCompare(i.trainingType)),a}const es=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function s3(e){const t=new Map;let a=0;for(const s of e){if(s.latestCorrect)continue;const l=s.setIds[0];if(!l){a++;continue}const u=`${s.trainingType}|${l}`,c=t.get(u)??{setId:l,trainingType:s.trainingType,pending:0};c.pending++,t.set(u,c)}const r=(s,l)=>l.pending-s.pending||s.trainingType.localeCompare(l.trainingType)||s.setId.localeCompare(l.setId),i=[...t.values()];return{sentence:i.filter(s=>es.includes(s.trainingType)).sort(r),word:i.filter(s=>!es.includes(s.trainingType)).sort(r),noSet:a}}function i3(e,t,a=5){const r=new Set(t);if(r.size===0)return[];const i=[];for(const s of e){const l=new Set,u=[];for(const c of s.cellLabels)r.has(c)&&!l.has(c)&&(l.add(c),u.push(c));u.length!==0&&i.push({id:s.id,name:s.name,kind:s.kind,covered:u,totalCells:s.cellLabels.length})}return i.sort((s,l)=>l.covered.length-s.covered.length||s.totalCells-l.totalCells||an(s.name,l.name)),i.slice(0,Math.max(0,a))}function l3(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function u3(e,t){const a=new Map;for(const i of e)for(const s of i.cells){const l=i.labelOf(s);a.has(l)||a.set(l,s)}const r=[];for(const i of t){const s=a.get(i);s!==void 0&&r.push(s)}return r}function ts(e,t,a){return typeof e=="string"&&e?e:t.replace(/\{\{(\w+)\}\}/g,(r,i)=>String(a[i]))}function c3(e,t){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),i=a%60;return t?t(r,i):r>0&&i>0?ts(Rt.t("customers.duration.minSec",{m:r,s:i,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s:i}):r>0?ts(Rt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):ts(Rt.t("customers.duration.sec",{s:i,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s:i})}function d3(e,t){const a=[],r=new Set;for(const i of e){const s=t(i);r.has(s)||(r.add(s),a.push({key:s,value:i,pinned:!1}))}return a}function p3(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function m3(e,t){return e.filter(a=>a.key!==t)}function h3(e,t,a){const r=e.filter(d=>d.pinned),i=new Set(r.map(d=>d.key)),s=e.length-r.length,l=[],u=new Set(i);for(const d of t){if(l.length>=s)break;const m=a(d);u.has(m)||(u.add(m),l.push({key:m,value:d,pinned:!1}))}const c=[...l];return e.map(d=>d.pinned?d:c.shift()).filter(d=>d!==void 0)}function C3(e){return e.map(t=>t.value)}function f3(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},i=t?.key?` icon-grid-menu__button--${t.key}`:"",s=o.useId();return n.jsxs("div",{className:`icon-grid-menu__button-wrapper${i}`,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":s,children:n.jsx(at,{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:s,className:"icon-grid-menu__button-label button-1",children:t.label})]})}function g3(e){const{categories:t=[],selected:a,onSelect:r,size:i="medium"}=e||{},s=a!==void 0,[l,u]=o.useState(()=>s?null:(t&&t[0]?.key)??null),c=s?a:l,d=o.useRef(r);o.useEffect(()=>{d.current=r});const m=o.useRef(!1),p=(t&&t[0]?.key)??null;o.useEffect(()=>{if(s||m.current||!p)return;m.current=!0;const y=l??p;l==null&&u(y),d.current?.(y)},[s,p]);const C=o.useCallback(y=>{const x=c===y?null:y;m.current=!0,s||u(x),r?.(x)},[c,s,r]);return n.jsx("div",{className:`icon-grid-menu icon-grid-menu--${i}`,children:(t||[]).map(y=>n.jsx(f3,{category:y,isSelected:c===y.key,onClick:()=>C(y.key)},y.key))})}function b3({subs:e=[],selected:t,onSelect:a,size:r="medium"}){const i=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(s=>n.jsx(pe,{htmlType:"button",size:i,type:"bar",label:s.label,selected:t===s.key,className:"choice-chips__button",onClick:()=>a?.(s.key)},s.key))})})}function y3({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",i=a?.tel??"031-380-3724",{t:s}=xe.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:s("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
1067
1067
  \uC2E0\uB8B0\uB97C \uC313\uACE0
1068
1068
  \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
1069
- `).map((l,u,c)=>n.jsxs(o.Fragment,{children:[l,u<c.length-1&&n.jsx("br",{})]},u))})}),n.jsxs("div",{className:"site-footer__links",children:[n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:s("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:s("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:s("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:s("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:s("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:s("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:s("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:s("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:s("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:s("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:Ao,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:s("footer.ceo","\uB300\uD45C")})," ",n.jsx("span",{className:"footer-meta caption-1",children:s("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:s("footer.address","\uC8FC\uC18C")})," ",n.jsx("span",{className:"footer-meta caption-1",children:s("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:s("footer.support","\uACE0\uAC1D\uC13C\uD130")})," ",n.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",i]})]})]})]}),n.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function v3({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:i,className:s,containerClassName:l,renderLink:u,menuLabel:c}){const{t:d}=xe.useTranslation(),m=c??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[p,C]=o.useState(!1),y=o.useId(),v=o.useRef(null);o.useEffect(()=>{if(!p)return;const _=Un(()=>{const b=document.getElementById(y);b&&b.contains(document.activeElement)&&v.current?.focus(),C(!1)}),g=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,k=b=>{b.matches&&C(!1)};return g&&(g.matches&&C(!1),g.addEventListener?.("change",k)),()=>{_(),g?.removeEventListener?.("change",k)}},[p,y]);const f=l?`${l} landing-header__inner`:"landing-header__inner",h=(_,g)=>u?u(_,{onClick:g}):n.jsx("a",{href:_.href,onClick:g,"aria-current":_.current?"page":void 0,children:_.label});return n.jsxs("header",{className:s?`landing-header ${s}`:"landing-header",children:[n.jsxs("div",{className:f,children:[e!=null&&(()=>{const _=typeof e=="string"?n.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?n.jsx("a",{href:a,className:"landing-header__brand",children:_}):n.jsx("div",{className:"landing-header__brand",children:_})})(),r.length>0&&n.jsx("nav",{className:"landing-header__links",children:r.map((_,g)=>n.jsx("span",{children:h(_)},`${g}:${_.href}`))}),n.jsxs("div",{className:"landing-header__actions",children:[i,r.length>0&&n.jsx("button",{ref:v,type:"button",onClick:()=>C(_=>!_),"aria-expanded":p,"aria-controls":y,"aria-label":p?m.close:m.open,className:p?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:n.jsxs("span",{className:"landing-header__burger",children:[n.jsx("span",{}),n.jsx("span",{}),n.jsx("span",{})]})})]})]}),r.length>0&&n.jsx("nav",{id:y,hidden:!p,className:"landing-header__drawer",children:n.jsx("div",{className:l??void 0,children:r.map((_,g)=>n.jsx("span",{className:"landing-header__drawer-item",children:h(_,()=>C(!1))},`${g}:${_.href}`))})})]})}function x3({children:e,action:t,onClick:a,className:r}){const i=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:i,onClick:a,...ju(a),children:[n.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}function _3({mountedRef:e}){const t=o.useRef({phase:"sound",at:0}),a=o.useRef(0),r=o.useRef(null),i=o.useRef(null),s=o.useCallback(()=>{const f=t.current,h=f.phase!=="sound"&&f.at>0;i.current=h?{phase:f.phase,elapsed:Math.max(0,Date.now()-f.at)}:null},[]),l=o.useCallback(()=>{const f=i.current;return i.current=null,f},[]),u=o.useCallback(()=>{a.current+=1,t.current={phase:"sound",at:0}},[]),c=o.useCallback((f,h,_=0)=>{if(!(f>0))return Promise.resolve(!0);const g=a.current;return t.current={phase:h,at:Date.now()-Math.max(0,_)},new Promise(k=>{const b=setTimeout(()=>{r.current===b&&(r.current=null),k(!!e.current&&g===a.current)},f);r.current=b})},[e]),d=o.useCallback(()=>{t.current={phase:"sound",at:Date.now()}},[]),m=o.useCallback(()=>{t.current={phase:"sound",at:0}},[]),p=o.useCallback(()=>{const f=t.current;return f.phase!=="sound"&&f.at>0},[]),C=o.useCallback(()=>a.current,[]),y=o.useCallback(f=>f===a.current,[]),v=o.useCallback(()=>{a.current+=1},[]);return o.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null)},[]),o.useMemo(()=>({positionRef:t,isRunning:p,generation:C,isCurrent:y,abort:u,waitPad:c,enterSound:d,leave:m,pause:s,resume:l,__bumpGenerationForTest:v}),[p,C,y,u,c,d,m,s,l,v])}const fa=9,w3=e=>Math.round(Math.min(fa,Math.max(0,e))/fa*100),B3=e=>e/100*fa,za=2,dc=.1,A3=e=>Math.min(za,Math.max(0,e)),k3=.1,N3=e=>Math.round(e*1e6)/1e6;function Wa(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return A3(t);const a=Math.min(fa,Math.max(0,Number(e.level)||0))/fa,r=Number(e.mainVolume);return r>0?a>0?N3(Math.min(za,Math.max(k3,a/r))):0:1}const pc=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function mc(e){return pc(e)}function ns(e){return pc(e)*Wa(e)}function as(e,t=TC()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,ns(e)/a)}function qa(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=Wa({level:a.level,mainVolume:a.mainVolume})),a}const Ua={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},rs=o.createContext(null);function br(){return o.useContext(rs)}const os=e=>`${SC()}/${e}`,hc=e=>Array.from({length:10},(t,a)=>os(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),yr={get defaultNoise(){return os("noise1.mp3")},get street(){return hc("noise2")},get restaurant(){return hc("noise3")},get buzz(){return os("noise4.mp3")}};function E3(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return yr.defaultNoise;case"street":return yr.street[t];case"restaurant":return yr.restaurant[t];case"buzz":return yr.buzz;default:return null}}function D3({noisePlayer:e,audioRef:t,playbackStateRef:a,sequencer:r}){const i=o.useRef(e?.registerAnalyser);i.current=e?.registerAnalyser;const s=o.useRef(null),[l,u]=o.useState(null),c=o.useRef(null),d=o.useRef(null),m=o.useRef(null),p=o.useRef(null),C=o.useRef(0),y=o.useRef(null),v=o.useCallback(()=>!!r?.isRunning(),[r]),f=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),y.current!==null&&(clearTimeout(y.current),y.current=null)},[]),h=o.useCallback((N,x=250)=>{const B=s.current;if(!B)return;const w=d.current;if(w){d.current=null;try{B.pause()}catch{}B.src=w,B.load()}if(!B.src)return;C.current+=1,f();try{Xr(),Ka(B).then(O=>{if(s.current===B)try{i.current?.("noise",O)}catch{}})}catch{}const A=B.paused?0:Ya(B);B.paused&&Rn(B,0),B.play().catch(()=>{});const D=performance.now(),E=()=>{const O=Math.min(1,(performance.now()-D)/x);try{Rn(B,A+(N-A)*O)}catch{}O<1?p.current=requestAnimationFrame(E):p.current=null};p.current=requestAnimationFrame(E)},[f]),_=o.useCallback((N=250,x)=>{const B=s.current;if(!B||B.paused){x?.();return}const w=++C.current;f();const A=performance.now(),D=Ya(B),E=()=>{const O=Math.min(1,(performance.now()-A)/N);try{Rn(B,D*(1-O))}catch{}if(O<1)p.current=requestAnimationFrame(E);else{p.current=null,y.current!==null&&(clearTimeout(y.current),y.current=null);try{B.pause()}catch{}x?.()}};p.current=requestAnimationFrame(E),y.current=setTimeout(()=>{if(y.current=null,C.current===w){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{B.paused||(Rn(B,0),B.pause(),x?.())}catch{}}},N+150)},[f]);o.useEffect(()=>{const N=document.createElement("audio");return N.loop=!0,N.crossOrigin="anonymous",s.current=N,()=>{f();try{N.pause(),N.removeAttribute("src"),N.load()}catch{}s.current=null,c.current=null,d.current=null}},[f]);const g=e?as(e.settings):0,k=!!e?.settings.enabled&&g>0;o.useEffect(()=>{if(!k)return;let N=0;const x=setInterval(()=>{const B=s.current;if(!B||B.paused){N=0;return}const w=t.current;if(w&&!w.paused&&!w.ended||v()||a.current==="playing"){N=0;return}N+=1,N>=2&&(N=0,_())},400);return()=>clearInterval(x)},[_,k,t,a,v]),o.useEffect(()=>{const N=()=>{const x=s.current;if(document.hidden){if(x&&!x.paused){f();try{x.pause()}catch{}}return}if(!x||!x.paused)return;const B=t.current,w=!!B&&!B.paused&&!B.ended||v()||a.current==="playing",A=m.current;w&&A?.enabled&&A.volume>0&&h(A.volume)};return document.addEventListener("visibilitychange",N),()=>document.removeEventListener("visibilitychange",N)},[f,h,t,a,v]),o.useEffect(()=>{m.current=e?{enabled:e.settings.enabled,volume:g,type:e.settings.type}:null},[e,e?.settings.enabled,g,e?.settings.type]);const b=o.useRef(null);return o.useEffect(()=>()=>{b.current?.(),b.current=null},[]),o.useEffect(()=>{const N=e?.settings,x=s.current;if(!x)return;const B=N?as(N):0;if(!N||!N.enabled||B===0){_();return}if(c.current!==N.type){const w=E3(N.type);w&&(c.current=N.type,u(w),d.current=w,_(150,()=>{if(d.current!==w)return;d.current=null,x.src=w,x.load();const A=t.current;if(A&&!A.paused||v()){b.current?.();const D=()=>{x.removeEventListener("canplay",D),b.current===E&&(b.current=null);const O=t.current,R=m.current;(O&&!O.paused&&!O.ended||v())&&R?.enabled&&R.volume>0&&h(R.volume)},E=()=>x.removeEventListener("canplay",D);b.current=E,x.addEventListener("canplay",D)}}))}else{const w=t.current,A=!!w&&!w.paused&&!w.ended||v()||a.current==="playing";if(A&&d.current)h(B);else if(A&&x.paused&&x.src)h(B);else if(!x.paused)if(!A)_();else{f();const D=Ya(x),E=performance.now(),O=()=>{const R=Math.min(1,(performance.now()-E)/150);try{Rn(x,D+(B-D)*R)}catch{}R<1?p.current=requestAnimationFrame(O):p.current=null};p.current=requestAnimationFrame(O)}}},[e?.settings,e?.settings.enabled,g,e?.settings.type,f,h,_,t,a,m,v]),o.useEffect(()=>{const N=s.current;if(N)try{N.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:s,activeNoiseUrl:l,noiseSettingsRef:m,cancelNoiseFade:f,fadeInNoise:h,fadeOutNoise:_}}function S3({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:i,setProgress:s,setPlaybackState:l,setStateLocal:u,fadeInNoise:c,fadeOutNoise:d,noiseSettingsRef:m,onDoneRef:p,handleEndRef:C}){const y=o.useRef(null),v=o.useRef(0),f=o.useRef(null),h=o.useRef(0),_=o.useRef(!1);o.useEffect(()=>()=>{h.current++;try{if(f.current&&(cancelAnimationFrame(f.current),f.current=null),_.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}_.current=!1}}catch{}},[]);const g=(N,x=1)=>{try{const B=(N||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(N||"").length);return Math.max(700,Math.round(B*300/Math.max(.25,x)))}catch{return 1200}},k=o.useCallback(N=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof p.current=="function"&&p.current(!1)}catch{}return}const x=window.speechSynthesis,B=++h.current;try{try{x.cancel()}catch{}const w=N??e,A=Array.isArray(w)?w.filter(M=>!!M):[w||""];A.length===0&&A.push("");const D=Math.max(.3,Math.min(3,t));v.current=A.reduce((M,L)=>M+g(L,D||1),0),y.current=performance.now(),s(0),l("playing"),u("playMode");const E=m.current;E?.enabled&&(E?.volume??0)>0&&c(E.volume);const O=()=>{try{const M=y.current||performance.now(),L=performance.now()-M,$=v.current||1200,G=Math.min(1,L/$);try{r.current&&(r.current.style.left=`${G*100}%`),i.current&&i.current.style.setProperty("--progress",String(G))}catch{}G<1&&(f.current=requestAnimationFrame(O))}catch{}},R=()=>{if(B===h.current)try{f.current&&(cancelAnimationFrame(f.current),f.current=null),s(1),l("stopped");try{C.current?.()}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{}},K=M=>{const L=new SpeechSynthesisUtterance(A[M]);try{L.rate=D}catch{}try{L.volume=Math.max(0,Math.min(1,a))}catch{}L.onend=()=>{if(B===h.current){if(M<A.length-1){try{K(M+1)}catch{R()}return}R()}},L.onerror=()=>{R()},L.onstart=()=>{if(!(M>0))try{f.current&&(cancelAnimationFrame(f.current),f.current=null),f.current=requestAnimationFrame(O)}catch{}},_.current=!0,x.speak(L)};try{K(0)}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}},[e,t,a,c,r,i,s,l,u,m,p,C]),b=o.useCallback(()=>{h.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}f.current&&(cancelAnimationFrame(f.current),f.current=null),d(),y.current=null}catch{}l("stopped"),u("active"),s(0)},[d,l,u,s]);return{startTTS:k,stopTTS:b}}const T3=.01,j3=.3;async function M3(e,t,a,r=!1){let i=null;try{const s=window.AudioContext||window.webkitAudioContext;i=new s;const l=await i.decodeAudioData(e.slice(0)),u=l.numberOfChannels>0?l.getChannelData(0):null;if(!u)return null;let c=0;if(r){const y=Math.floor(j3*l.sampleRate),v=Math.min(u.length,y);for(;c<v&&Math.abs(u[c])<=T3;)c++;c>=v&&(c=0)}const d=u.length-c,m=a&&a>0?Math.min(d,Math.floor(a*l.sampleRate)):d,p=Math.max(t,m),C=Math.floor(p/t)||1;return new Array(t).fill(0).map((y,v)=>{const f=c+v*C,h=Math.min(f+C,c+p,u.length);let _=0;for(let g=f;g<h;g++){const k=Math.abs(u[g]);k>_&&(_=k)}return _})}catch{return null}finally{try{i?.close?.()}catch{}}}async function Cc(e,t,a,r=!1){try{const i=await fetch(e);if(i.ok===!1)return null;const s=await i.arrayBuffer();return await M3(s,t,a,r)}catch(i){try{const s=Ai(i)}catch{}return null}}const ss=45,L3=74,$3=2;function vr(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function xr(e){return vr(e)/45}const R3=e=>Math.max(0,(typeof e=="number"&&Number.isFinite(e)?e:0)*1e3),fc=e=>Math.max(0,typeof e=="number"&&Number.isFinite(e)?e:0);function gc({durationsSec:e,leadInMs:t=0,tailMs:a=0}){const r=fc(t),i=fc(a),s=[];let l=0;return e.forEach((u,c)=>{for(const[d,m]of[["lead",r],["sound",R3(u)],["tail",i]])s.push({kind:d,track:c,startMs:l,durMs:m}),l+=m}),{segments:s,totalMs:l,trackCount:e.length}}function bc(e,t){const a=(t|0)*3;if(t<0||a+2>=e.segments.length)return null;const[r,i,s]=[e.segments[a],e.segments[a+1],e.segments[a+2]];return{lead:r,sound:i,tail:s,totalMs:r.durMs+i.durMs+s.durMs}}function P3(e,t){const a=bc(e,t.track);if(!a||!(a.totalMs>0))return 0;const r=a[t.kind],i=Math.min(Math.max(0,Number.isFinite(t.elapsedMs)?t.elapsedMs:0),r.durMs);return Math.max(0,Math.min(1,(r.startMs-a.lead.startMs+i)/a.totalMs))}function F3(e,t,a){const r=Math.max(0,Math.floor(a)),i=bc(e,t);if(!i||r===0||!(i.totalMs>0)||i.lead.durMs===0&&i.tail.durMs===0||!(i.sound.durMs>0))return{lead:0,sound:r,tail:0};const s=Math.round(i.lead.durMs/i.totalMs*r),l=Math.round(i.tail.durMs/i.totalMs*r),u=Math.max(1,r-s-l),c=s+u+l-r;return{lead:Math.max(0,s-Math.ceil(c/2)),sound:u,tail:Math.max(0,l-Math.floor(c/2))}}function I3({currentTime:e,sources:t,index:a,audioDuration:r}){const i=a||0,s=Array.isArray(t)&&t.length>0?t[i]:void 0,l=s?s.duration||r||0:r||0;if(!(l>0))return 0;const u=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,u/l))}function O3({phase:e,phaseElapsedMs:t,currentTime:a,trackDurationSec:r,leadInMs:i,tailMs:s}){const l=gc({durationsSec:[r],leadInMs:i,tailMs:s});return P3(l,{track:0,kind:e,elapsedMs:e==="sound"?(Number.isFinite(a)?a:0)*1e3:t})}function H3({bars:e,trackDurationSec:t,leadInMs:a,tailMs:r}){return F3(gc({durationsSec:[t],leadInMs:a,tailMs:r}),0,e)}function V3(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function z3({ended:e,completedByEnd:t}){return!!e||!!t}function W3(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function q3(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function U3(e,t,a){const r=Array.isArray(e)?e:e?[e]:[],i=[];for(const s of r)if(s){if(typeof s=="object"&&s!==null&&"src"in s&&s.src){const l=s;i.push({code:l.code??null,src:l.src});continue}if(typeof s=="string"&&(s.startsWith("http")||s.includes("/"))){i.push({code:null,src:s});continue}if(typeof s=="string"||typeof s=="number"){const l=String(s),u=a(l,t);u&&i.push({code:l,resolvedPath:u})}}return i}const yc=4,G3=xr(yc/ss);function K3(e){const{src:t,segments:a,progress:r=0,waveProgressRef:i,noiseSrc:s,noiseRatio:l=0,noiseSpeed:u=1,totalDuration:c=0,mainVolume:d=1,onReadyChange:m,showSoundWaveForm:p=!0,leadInMs:C=0,tailMs:y=0,trackDurationSec:v=0}=e,f=o.useRef(null),h=o.useRef(null),[_,g]=o.useState(null),[k,b]=o.useState(!1),[N,x]=o.useState(null),[B,w]=o.useState(2),[A,D]=o.useState(0),[E,O]=o.useState(null),[R,K]=o.useState(!1),[M,L]=o.useState(!1),$=3,G=3,W=1,H=300,U=o.useRef(0),P=o.useCallback(()=>{const be=f.current,te=h&&h.current?h.current:be?be.closest(".audio-player__wave"):null,ue=te?te.getBoundingClientRect():be?be.getBoundingClientRect():null,Ce=ue?ue.width:0,ge=ue?Math.max(100,ue.width):320,fe=ue?ue.height:0,$e=Math.max(W,Math.min(H,Math.floor((ge+G)/($+G)))),ze=$e*$,Te=Math.max(0,$e-1),Fe=Math.max(0,Te>0?(ge-ze)/Te:G);return{bars:$e,gap:Fe,height:fe,width:Ce}},[]),z=o.useRef(void 0),V=o.useRef(null),F=o.useCallback(async(be,te,{quiet:ue=!1}={})=>{const Ce=++U.current,ge=()=>U.current===Ce;try{if(ue||b(!1),z.current=be,!be){ge()&&g(null);return}let fe=te;if(!fe)try{for(let Te=0;Te<4&&!(f.current||h.current);Te++)await new Promise(Fe=>requestAnimationFrame(Fe));await new Promise(Te=>requestAnimationFrame(Te));const ze=P();ze.height>0&&D(ze.height),fe=ze.bars,w(ze.gap)}catch{fe=120}V.current=fe;const $e=await Cc(be,fe);if(!ge())return;if(!$e){g(null),b(!1);return}g($e),x(fe),b(!0)}catch{if(!ge())return;g(null),b(!1)}},[b,g,D,w,x,P]);o.useEffect(()=>{const be=h.current;if(!be||typeof ResizeObserver>"u")return;let te=null;const ue=new ResizeObserver(()=>{te!==null&&cancelAnimationFrame(te),te=requestAnimationFrame(()=>{te=null;try{const Ce=P();if(Ce.width<=0||(Ce.height>0&&D(Ce.height),V.current===null||Ce.bars===V.current))return;const ge=z.current;w(Ce.gap),ge?F(ge,Ce.bars,{quiet:!0}).catch(()=>{}):V.current=Ce.bars}catch{}})});return ue.observe(be),()=>{ue.disconnect(),te!==null&&cancelAnimationFrame(te)}},[P,F]),o.useEffect(()=>{const be=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;F(typeof be=="string"?be:void 0).catch(()=>{}),L(!1)},[t,a,F]),o.useEffect(()=>{let be=!1;if(K(!1),!s||!N){O(null);return}const te=c>0?c*(u||1):void 0;return Cc(s,N,te,!0).then(ue=>{be||(O(ue),ue||K(!0))}).catch(()=>{be||(O(null),K(!0))}),()=>{be=!0}},[s,N,c,u]);const S=Math.max(0,Math.min(1,d)),j=o.useMemo(()=>_&&_.length&&Math.max(..._)||1,[_]),I=N||40,q=o.useMemo(()=>H3({bars:I,trackDurationSec:v,leadInMs:C,tailMs:y}),[I,v,C,y]),re=o.useMemo(()=>Array.from({length:I}).map((be,te)=>{const ue=te>=q.lead&&te<q.lead+q.sound,Ce=q.sound>0&&ue?Math.min(I-1,Math.round((te-q.lead)/q.sound*I)):-1,ge=ue?_&&_[Ce]!=null?_[Ce]:null:_?0:null,fe=ge==null?null:Math.min(1,ge/j*S),$e=fe!=null&&A>0&&vr(fe)<=yc,ze=fe==null?.15:$e?0:xr(fe),Te=$e,Fe=I>1?te/(I-1):0;return n.jsx("div",{className:Te?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ze,"--i":te,"--mix":Fe}},te)}),[I,_,j,S,A,q]),ne={"--progress":String(Math.max(0,Math.min(1,r)))},le=o.useMemo(()=>E&&E.length&&Math.max(...E.map(be=>Number.isFinite(be)?Math.abs(be):0))||1,[E]),Y=S*Math.max(0,l),oe=!s||!E||!E.length?1:Math.max(1,Y),ke={"--bar-gap":`${B}px`,"--wave-h":`${vr(oe)}px`,"--wave-h1":`${ss}px`},Z=k&&(s?!!E||R:!0);o.useEffect(()=>{Z&&L(!0)},[Z]);const Q=M?k:Z;o.useEffect(()=>{m?.(Q)},[Q,m]);const me=N||40,De=o.useMemo(()=>Array.from({length:me}).map((be,te)=>{const ue=E&&E[te]!=null?E[te]:null,Ce=ue==null?0:Math.abs(ue)/le*Y,ge=Math.max(G3,xr(Ce)),fe=me>1?te/(me-1):0;return n.jsx("div",{className:"audio-player__bar",style:{"--val":ge,"--i":te,"--mix":fe}},te)}),[me,E,le,Y,A]);return n.jsxs("div",{className:"audio-player__wave",ref:h,style:ke,children:[s&&n.jsx("div",{className:`audio-player__wave-noise ${Z?"is-ready":""}`,"aria-hidden":"true",children:De}),p&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${Q?"is-ready":""}`,ref:f,children:re}),n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${Q?"is-ready":""}`,ref:i,style:ne,children:re})]})]})}const Y3={idle:"\uB300\uAE30",synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"},vc={idle:!1,synthesizing:!0,resolving:!0,checking_exists:!0,getting_signed_url:!0,downloading:!0,measuring_duration:!0,ready:!1,error:!0};function is(e,t){return new Promise((a,r)=>{const i=document.createElement("audio");let s=!1;const l=()=>{try{i.removeAttribute("src"),i.load()}catch{}},u=()=>{if(s)return;s=!0;const d=isFinite(i.duration)&&i.duration||0;l(),a(d)},c=d=>{s||(s=!0,l(),t.rejectOnError?r(new Error(d)):a(0))};i.addEventListener("loadedmetadata",u),i.addEventListener("error",()=>c("audio load failed")),setTimeout(()=>c("audio load timeout"),t.timeoutMs),i.src=e})}const Z3=2e3;function xc(e,t=Z3){return new Promise(a=>{let r=!1;const i=()=>{r||(r=!0,a())};e.addEventListener("canplay",i,{once:!0}),e.addEventListener("error",i,{once:!0}),setTimeout(i,t)})}function X3({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=o.useRef(!1),i=o.useRef([]),s=o.useCallback(c=>{if(r.current=c,!c||!i.current.length)return;const d=i.current;i.current=[];for(const m of d)m(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),u=o.useCallback(()=>!e&&!t||r.current?Promise.resolve(!0):new Promise(c=>{const d=p=>{clearTimeout(m),i.current=i.current.filter(C=>C!==d),c(p)},m=setTimeout(()=>d(!0),a);i.current.push(d)}),[e,t,a]);return o.useEffect(()=>()=>{const c=i.current;i.current=[];for(const d of c)d(!1)},[]),{onReadyChange:s,waitForReady:u,markNotReady:l}}function J3(){const e=o.useRef([]),t=o.useCallback(i=>(e.current.push(i),i),[]),a=o.useCallback(i=>{const s=new Set([...i].filter(Boolean));e.current=e.current.filter(l=>{if(s.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=o.useCallback(()=>{a([])},[a]);return o.useEffect(()=>()=>{for(const i of e.current)try{URL.revokeObjectURL(i)}catch{}e.current=[]},[]),{track:t,keepOnly:a,revokeAll:r}}function Q3({offsetY:e=8}={}){const t=o.useRef(null),[a,r]=o.useState(null),i=o.useCallback(()=>r(null),[]),s=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",i),()=>document.removeEventListener("mousedown",i)},[a,i]),{ref:t,rect:a,show:s,hide:i}}function e7(e){if(!e)return 0;const t=e.duration;if(Number.isFinite(t)&&t>0)return t;if(t===0)return 0;try{const a=e.seekable;if(a&&a.length>0){const r=a.end(a.length-1);if(Number.isFinite(r)&&r>0)return r}}catch{}return null}const t7=400,n7=2e3,_c=5;function a7({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:i,sequencer:s,leadInMs:l=0,tailMs:u=0}){const c=o.useRef(null),d=o.useRef(0),m=o.useRef(null),p=o.useCallback(()=>{c.current!==null&&(cancelAnimationFrame(c.current),c.current=null)},[]),C=o.useCallback(()=>{if(c.current!==null)return;let v=0;const f=()=>{if(ea){const h=typeof performance<"u"&&performance.now?performance.now():Date.now();if(v>0&&h-v>t7){const _=m.current===null||h-m.current>n7;if(m.current=h,_&&d.current<_c){d.current+=1;const g=d.current;let k=null;try{k=typeof document<"u"?document.visibilityState:null}catch{}St(`progress-ticker-slow-frames#${g}`,`[ihab-core] \uC9C4\uD589 \uC0AC\uC2AC\uC758 \uD2C0 \uC0AC\uC774\uAC00 ${Math.round(h-v)}ms \uC785\uB2C8\uB2E4(\uBCF4\uD1B5 16ms).`,k==="hidden"?"\uC774 \uCE78\uC774 **\uC228\uC5B4 \uC788\uC5B4** \uBE0C\uB77C\uC6B0\uC800\uAC00 \uD2C0\uC744 \uC904\uC600\uC2B5\uB2C8\uB2E4 \u2014 \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC740 \uD2C0\uB9C8\uB2E4 \uADF8\uB824\uC9C0\uBBC0\uB85C, \uC9C0\uAE08 \uC7AC\uB294 \uAC12\uC740 **\uC0AC\uB78C\uC774 \uBCF4\uB294 \uD654\uBA74\uACFC \uB2E4\uB985\uB2C8\uB2E4.** \uCE78\uC744 \uC55E\uC73C\uB85C \uAEBC\uB0B4\uACE0 \uB2E4\uC2DC \uC7AC\uC2ED\uC2DC\uC624.":"\uCE78\uC740 \uBCF4\uC774\uB294\uB370 \uD2C0\uC774 \uB290\uB9BD\uB2C8\uB2E4 \u2014 \uAC19\uC740 \uD654\uBA74\uC5D0\uC11C \uBB34\uAC70\uC6B4 \uC77C\uC774 \uB3C4\uB294\uC9C0 \uBCF4\uC2ED\uC2DC\uC624. \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC774 \uB04A\uACA8 \uBCF4\uC774\uB294 \uAC83\uC740 \uC774 \uD0D3\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.",g>=_c?`(${g}\uBC88\uC9F8 \u2014 \uB354\uB294 \uC548 \uC54C\uB9BD\uB2C8\uB2E4)`:`(${g}\uBC88\uC9F8)`)}}v=h}try{const h=e.current,_=Array.isArray(r.current)?r.current[i.current||0]:void 0,g=!!_&&Number.isFinite(_.duration)&&(_.duration??0)>0,k=g?0:e7(h),b=t.current,N=(l||0)>0||(u||0)>0,x=N&&(s?.positionRef.current?.phase??"sound")!=="sound";if(k===null&&!x)try{b&&b.style.visibility!=="hidden"&&(b.style.visibility="hidden")}catch{}else{const B=g?_.duration:k||0;ea&&x&&!(B>0)&&St("progress-ticker-pad-without-duration","[ihab-core] \uB738\uC774 \uB3C4\uB294\uB370 **\uC18C\uB9AC \uAE38\uC774\uB97C \uBAA8\uB985\uB2C8\uB2E4** \u2014 \uC7AC\uC0DD\uBC14\uAC00 \uB738\uB9CC\uC73C\uB85C \uC5B4\uB9BC\uC7A1\uC544 \uC6C0\uC9C1\uC785\uB2C8\uB2E4.","\uC18C\uB9AC \uAE38\uC774 \uC7AC\uAE30(measureAudioDuration)\uAC00 0 \uC744 \uC92C\uAC70\uB098 `<audio>` \uAC00 \uC544\uC9C1 \uC548 \uC2E4\uB838\uC2B5\uB2C8\uB2E4. \uAE38\uC774\uB97C \uC54C\uAC8C \uB418\uBA74 \uB9C8\uCEE4\uAC00 \uADF8 \uC21C\uAC04 **\uB4A4\uB85C \uBB3C\uB7EC\uB0A9\uB2C8\uB2E4**(\uC5B4\uB9BC\uC740 \uB298 \uCC38\uBCF4\uB2E4 \uD07D\uB2C8\uB2E4). \uC774 \uC904\uC774 \uBCF4\uC774\uBA74 \uADF8 \uC790\uB9AC\uB97C \uC54C\uB824 \uC8FC\uC2ED\uC2DC\uC624 \u2014 \uD3C9\uC18C \uAE38\uC5D0\uC11C\uB294 \uC548 \uB098\uC640\uC57C \uD569\uB2C8\uB2E4.");const w=N?O3({phase:s?.positionRef.current?.phase??"sound",phaseElapsedMs:s?.positionRef.current?Math.max(0,Date.now()-s.positionRef.current.at):0,currentTime:h&&typeof h.currentTime=="number"?h.currentTime:0,trackDurationSec:B,leadInMs:l||0,tailMs:u||0}):I3({currentTime:h&&typeof h.currentTime=="number"?h.currentTime:0,sources:r.current,index:i.current,audioDuration:k??0});try{b&&(b.style.visibility&&(b.style.visibility=""),b.style.left=`${w*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(w))}catch{}}}catch{}c.current=requestAnimationFrame(f)};c.current=requestAnimationFrame(f)},[e,t,a,r,i,s,l,u]),y=o.useCallback(v=>{p();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${v*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(v))}catch{}},[p,t,a]);return o.useEffect(()=>p,[p]),{start:C,stop:p,settleTo:y}}function ls({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:i=!1,ttsText:s=null,className:l,showSoundWaveForm:u=!0,showNoiseWaveForm:c=!0,leadInMs:d=0,tailMs:m=0}){const{t:p}=xe.useTranslation(),C=e,y=br(),v=o.useRef(y?.registerAnalyser);o.useEffect(()=>{v.current=y?.registerAnalyser});const f=o.useRef(null),h=o.useRef(null),_=o.useRef(null),g=J3(),k=o.useRef(null),b=o.useRef(!1),N=o.useRef(null),{ref:x,rect:B,show:w,hide:A}=Q3();o.useEffect(()=>()=>{v.current?.("main",null),v.current?.("noise",null)},[]);const[D,E]=o.useState(!1),[O,R]=o.useState("idle"),[K,M]=o.useState("stopped"),L=o.useRef("stopped");o.useEffect(()=>{L.current=K},[K]);const[$,G]=o.useState(0),[W,H]=o.useState("active"),U=o.useRef(!1);o.useEffect(()=>{if(W!=="playMode"||!U.current)return;U.current=!1;const J=typeof document<"u"?document.activeElement:null;if(J&&J!==document.body)return;const de=_.current?.querySelectorAll("button")[1];try{de?.focus()}catch{}},[W]);const[P,z]=o.useState(null),[V,F]=o.useState(null),[S,j]=o.useState(0),[I,q]=o.useState(!1),[re,ne]=o.useState(0),le=y?.playbackRate??1,Y=y?.mainVolume??1,oe=y?ns(y.settings):0,ke=y?mc(y.settings):Y,[Z,Q]=o.useState("idle"),[me,De]=o.useState(""),[be]=o.useState("top"),te=o.useRef(null),ue=o.useRef(0),Ce=o.useRef(null),ge=o.useRef(!0),fe=_3({mountedRef:ge}),$e=o.useRef(null),ze=o.useRef(d),Te=o.useRef(m);o.useEffect(()=>{ze.current=Math.max(0,d||0)},[d]),o.useEffect(()=>{Te.current=Math.max(0,m||0)},[m]);const{start:Fe,stop:qe,settleTo:mt}=a7({audioRef:f,fillRef:h,waveProgressRef:Ce,sourcesRef:te,currentIndexRef:ue,sequencer:fe,leadInMs:d,tailMs:m}),{onReadyChange:ct,waitForReady:rt,markNotReady:Ct}=X3({showSoundWaveForm:u,showNoiseWaveForm:c}),Ae=o.useRef(null),We=o.useRef(i),_e=o.useRef(r),Ue=o.useRef(null),Be=o.useRef(!1),[je,Se]=o.useState(!1),Xe=o.useCallback(J=>{Be.current=J,Se(J)},[]),Qe=o.useRef(null),{activeNoiseUrl:dt,noiseSettingsRef:ht,fadeInNoise:wt,fadeOutNoise:ft}=D3({noisePlayer:y,audioRef:f,playbackStateRef:L,sequencer:fe}),{startTTS:Nt,stopTTS:gt}=S3({ttsText:s,playbackRate:le,mainVolume:ke,fillRef:h,waveProgressRef:Ce,setProgress:G,setPlaybackState:M,setStateLocal:H,fadeInNoise:wt,fadeOutNoise:ft,noiseSettingsRef:ht,onDoneRef:_e,handleEndRef:Qe});o.useEffect(()=>{Ie.current=gt});const it=J=>{if(typeof window>"u"||!window.speechSynthesis){try{De(p("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}Nt(J);return}tt("tts"),Nt(J)},Ke=Array.isArray(t)?t.filter(Boolean):t?[t]:[],se=(!Ke||Ke.length===0)&&!!s,Ne=Array.isArray(P)&&P.length>0?P:Array.isArray(V)&&V.length>0?V:null,Ve=Math.max(Array.isArray(Ne)?Ne.length:0,Ke.length);o.useEffect(()=>(ge.current=!0,()=>{ge.current=!1}),[]);const nt=()=>{fe.abort()},Ie=o.useRef(null),Ge=o.useRef(null),bt=o.useRef(null),Re=o.useRef(null);Re.current||(Re.current=()=>{bt.current=null;const J=f.current;if(Ge.current==="audio"&&J&&(!J.paused||fe.isRunning())){nt();try{J.pause()}catch{}ge.current&&(M("paused"),qe(),ft())}else if(Ge.current==="tts")try{Ie.current?.()}catch{}});const tt=J=>{Ge.current=J,bt.current=ir(Re.current)},xt=()=>{bt.current?.(),bt.current=null};o.useEffect(()=>()=>{Re.current&&lr(Re.current)},[]);const Lt=o.useRef(le);o.useEffect(()=>{Lt.current=le||1},[le]);const et=o.useCallback(J=>{const de=Lt.current||1;try{J.defaultPlaybackRate=de}catch{}try{J.playbackRate=de}catch{}},[]),ot=o.useCallback((J,de)=>{J.src=de,et(J),J.load(),et(J)},[et]),lt=o.useCallback(()=>{Ue.current&&(clearTimeout(Ue.current),Ue.current=null),Q("idle")},[]),st=o.useCallback(async(J,de=3,ae=50,ye=0)=>{lt();const Le=fe.generation(),He=!!J&&J.currentTime>0&&!J.ended,ut=Math.max(0,ze.current-Math.max(0,ye));if(ut>0&&!He){tt("audio"),Fe(),M("playing");const yt=ht.current;if(yt?.enabled&&(yt.volume??0)>0)try{wt(yt.volume)}catch{}if(!await fe.waitPad(ut,"lead",ye)||!ge.current||!fe.isCurrent(Le))return!1}fe.enterSound();for(let yt=0;yt<de;yt++){if(!ge.current||!fe.isCurrent(Le))return!1;try{return tt("audio"),await J.play(),!0}catch(he){if((he instanceof Error||typeof he=="object"&&he&&"name"in he?he.name:void 0)==="AbortError"){if(!fe.isCurrent(Le))return!1;await new Promise(T=>setTimeout(T,ae));continue}try{De(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{De(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[p,Fe,fe,wt,ht,lt]),jt=o.useCallback(J=>{const de=fe.generation(),ae=Math.max(0,Te.current-Math.max(0,J));Fe();const ye=ht.current;if(ye?.enabled&&(ye.volume??0)>0)try{wt(ye.volume)}catch{}const Le=()=>{try{$e.current?.()}catch{}};if(ae<=0){fe.leave(),Le();return}fe.waitPad(ae,"tail",J).then(He=>{fe.leave(),He&&fe.isCurrent(de)&&Le()}).catch(()=>{})},[fe,Fe,wt,ht]),Vt=o.useCallback(()=>{const J=f.current;if(!J)return;const de=()=>{M("playing"),H("playMode"),q(!0),Fe();try{Xr(),Ka(J).then(He=>{if(ge.current)try{v.current?.("main",He)}catch{}})}catch{}const Le=ht.current;Le?.enabled&&(Le?.volume??0)>0&&wt(Le.volume)},ae=()=>{z3({ended:!!J?.ended,completedByEnd:Be.current})||(M("paused"),qe(),ft())},ye=()=>{const Le=()=>{try{const He=te.current,ut=V3(He,ue.current);if(ut!==null){ue.current=ut,j(ut),q(!0);const yt=He?.[ut]&&He[ut].src;if(yt&&J){ot(J,yt),st(J).catch(()=>{});return}}}catch{}M("stopped"),G(1);try{if(J)try{J.currentTime=0}catch{}}catch{}qe(),q(!1),ft();try{!We.current&&Qe.current&&Qe.current()}catch{}};if($e.current=Le,Te.current>0){Fe(),fe.waitPad(Te.current,"tail").then(He=>{fe.leave(),He&&Le()}).catch(()=>{});return}Le()};return J.addEventListener("play",de),J.addEventListener("pause",ae),J.addEventListener("ended",ye),()=>{try{J.removeEventListener("play",de),J.removeEventListener("pause",ae),J.removeEventListener("ended",ye),qe()}catch{}}},[wt,ft,st,ht,Fe,qe,fe]);o.useEffect(()=>Vt(),[Vt]),o.useEffect(()=>{We.current=i},[i]),o.useEffect(()=>{_e.current=r},[r]),o.useEffect(()=>{if(i||W!=="active")return;const J=N.current;if(!J)return;let de=null;const ae=requestAnimationFrame(()=>{try{const ye=J.getTotalLength();if(!ye)return;const Le=ye*.2;J.style.strokeDasharray=`${ye-Le} ${Le}`;const He="triFlow_"+Math.random().toString(36).slice(2);de=document.createElement("style"),de.textContent=`@keyframes ${He}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${ye}}}`,document.head.appendChild(de),J.style.animation=`${He} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(ae),de?.remove()}},[W,i]),o.useEffect(()=>{te.current=P},[P]),o.useEffect(()=>{ue.current=S},[S]),o.useEffect(()=>{const J=_.current,de=k.current;if(!J||!de)return;let ae=null;const ye=32,Le=60,He=()=>{try{const yt=Array.from(J.querySelectorAll(":scope > .button"));let he=0;yt.forEach(Pe=>{if(Pe===de)return;const Ze=Pe.getBoundingClientRect();he+=Ze.width});const T=J.getBoundingClientRect().width,X=Math.max(0,Math.floor(T-he-8)),ce=Ve;if(!ce||X<=0){Array.from(de.children).forEach(Pe=>{try{Pe.style.width=""}catch{}});return}let Ee=Math.floor(X/ce);Ee>Le&&(Ee=Le),Ee<ye&&(Ee=Math.max(ye,Math.floor(X/ce))),Array.from(de.querySelectorAll(".button")).forEach(Pe=>{try{Pe.style.width=`${Ee}px`}catch{}})}catch{}},ut=requestAnimationFrame(He);try{ae=new ResizeObserver(()=>{requestAnimationFrame(He)}),ae.observe(J),ae.observe(de),window.addEventListener("resize",He)}catch{}return()=>{try{cancelAnimationFrame(ut)}catch{}try{ae&&(ae.disconnect(),ae=null)}catch{}try{window.removeEventListener("resize",He)}catch{}}},[P,V,Ve]),o.useEffect(()=>()=>{try{Ae.current&&(clearTimeout(Ae.current),Ae.current=null),Ue.current&&(clearTimeout(Ue.current),Ue.current=null)}catch{}},[]);const mn=(J,de)=>{z(J),ne(de),Ct(),F(W3(J)),te.current=J},hn=()=>{H("playMode"),j(0),q(!0)},jn=async(J,de)=>{Xe(!1),b.current=!1,ot(J,de),await xc(J),await rt()!==!1&&(E(!1),hn(),await st(J))},On=async(J,de=!1)=>{const ae=f.current;E(!0),R("measuring_duration");try{const ye=await is(J,{timeoutMs:1e4,rejectOnError:!0});mn([{src:J,objectUrl:null,duration:ye}],ye),R("ready"),de&&ae&&await jn(ae,J)}finally{b.current=!1,E(!1)}},Hn=async(J,de=!1)=>{const ae=f.current;E(!0),R("measuring_duration");try{const ye=await Promise.all(J.map(He=>is(He,{timeoutMs:1e4})));if(!ge.current)return;const Le=J.map((He,ut)=>({src:He,objectUrl:null,duration:ye[ut]||0}));mn(Le,q3(Le)),R("ready"),de&&ae&&Le.length>0&&await jn(ae,Le[0].src)}finally{b.current=!1,E(!1)}},Ft=async(J=!1,de=!0)=>{const ae=f.current,ye=t?Array.isArray(t)?t:[t]:[];if(!ye||ye.length===0||!ye.some(Boolean))return!1;if(b.current)return null;b.current=!0,de&&E(!0),R("resolving");try{const Le=U3(t,a,pi),He=[];let ut=0;for(const yt of Le){let he=yt.src??null,T=null;if(!he&&yt.resolvedPath){try{R("getting_signed_url"),he=await mi(yt.resolvedPath)}catch{he=null}if(!ge.current)return!1;if(!he)try{R("downloading");const ce=await hi(yt.resolvedPath);if(!ge.current)return!1;if(ce){const Ee=ce instanceof Blob?ce:new Blob([ce]);T=g.track(URL.createObjectURL(Ee)),he=T}}catch{R("error");try{De(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),H("active")}catch{}}}if(!he)continue;let X=0;try{R("measuring_duration"),X=await is(he,{timeoutMs:3e3})}catch{X=0}if(!ge.current){if(T)try{URL.revokeObjectURL(T)}catch{}for(const ce of He)if(ce.objectUrl)try{URL.revokeObjectURL(ce.objectUrl)}catch{}return!1}ut+=X||0,He.push({...yt,src:he,objectUrl:T,duration:X})}if(mn(He,ut),He.length>0&&J&&ae){const yt=He[0];Xe(!1);try{g.keepOnly(He.map(he=>he.objectUrl))}catch{}if(R("ready"),b.current=!1,yt.src&&ae)try{if(ot(ae,yt.src),await xc(ae),await rt()===!1)return!1;de&&E(!1),hn(),ae&&await st(ae)}catch{de&&E(!1)}else de&&E(!1);H("playMode"),j(0),q(!0)}return He.length>0}finally{b.current=!1,de&&E(!1),R(Le=>Le==="ready"?"ready":"idle")}},vn=async J=>{const de=fe.isRunning();if(J.paused&&!de){if(Be.current){await zt();return}const ae=fe.resume();if(ae){if(M("playing"),ae.phase==="tail"){jt(ae.elapsed);return}await st(J,3,50,ae.elapsed);return}await st(J),M("playing")}else fe.pause(),nt(),J.pause(),M("paused"),de&&(qe(),ft())},It=async()=>{const J=f.current;if(!(!J&&!se)){if(se){const de=window.speechSynthesis;if(W==="active"){const ae=wa(),ye=Array.isArray(s)?s.filter(Boolean):s?[s]:[];if(ae&&ye.length>0){if(b.current)return;H("load"),E(!0),R("synthesizing"),b.current=!0;try{const Le=await Promise.all(ye.map(He=>Promise.resolve(ae(He))));Le.length>1?await Hn(Le,!0):await On(Le[0],!0)}catch{b.current=!1,E(!1),H("active"),it(ye.length>0?ye:void 0)}return}it(ye.length>0?ye:void 0);return}if(W==="playMode"){const ae=!!de&&(de.speaking||de.paused)&&!(J&&(J.currentSrc||J.getAttribute("src")));if(J&&!ae){await vn(J);return}try{if(de&&de.paused)try{tt("tts"),de.resume(),M("playing")}catch{}else try{de.pause(),M("paused")}catch{}}catch{}}return}if(W==="active"){if(i&&Array.isArray(te.current)&&te.current.length>0){const ae=te.current[0];try{if(ae.src&&J)try{ot(J,ae.src),hn(),J&&await st(J)}catch{}hn();return}catch{}}H("load");let de;try{de=await Ft(!0)}catch{de=!1}if(de===!1&&ge.current){try{De(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}H("active")}return}if(W!=="load"&&(W==="playMode"||W==="active"))try{J&&await vn(J)}catch(de){(de instanceof Error||typeof de=="object"&&de&&"name"in de)&&de.name}}},zt=async()=>{const J=f.current;if(J)try{const de=te.current;if(Array.isArray(de)&&de.length>1){await $t(0);return}Xe(!1);try{J.currentTime=0}catch{}J&&await st(J),M("playing"),H("playMode")}catch{}},Mn=()=>{nt(),xt(),Ie.current?.();const J=f.current;try{if(J){try{J.pause()}catch{}try{J.currentTime=0}catch{}}}catch{}ft(),M("stopped"),H("active"),G(0),q(!1)},on=async(J,{sameSegment:de=!1}={})=>{nt();const ae=fe.generation(),ye=f.current,Le=te.current?.[J]?.src;try{if(Xe(!1),j(J),q(!0),ue.current=J,!Le||!ye||(de||Ct(),ot(ye,Le),!de&&await rt()===!1)||!fe.isCurrent(ae)||(await st(ye),!fe.isCurrent(ae)))return;M("playing"),H("playMode")}catch{}},xn=async()=>{const J=te.current,de=ue.current||0;if(!J||de<=0){await zt();return}await on(de-1)},Vn=async()=>{const J=te.current,de=ue.current||0;if(!J||de>=J.length-1){Mn();return}await on(de+1)},_n=()=>{if(Be.current)return;const J=200,de=340;Xe(!0),nt(),xt();try{G(1)}catch{}mt(1);try{Q("hold")}catch{}try{const ae=f.current,ye=se&&!!ae?.src;if(!se||ye){if(ae){ae.pause();try{ae.currentTime=0}catch{}}}else gt();ft()}catch{}try{M("stopped")}catch{}if(q(!1),!We.current)try{Ue.current&&(clearTimeout(Ue.current),Ue.current=null),Ue.current=setTimeout(()=>{try{Q("out")}catch{}Ue.current=setTimeout(()=>{try{typeof _e.current=="function"&&_e.current(!0)}catch{}try{Q("idle")}catch{}Ue.current=null},de)},J)}catch{}};o.useEffect(()=>{Qe.current=_n});const Wt=o.useCallback(()=>De(""),[]),$t=async J=>{(te.current||[])[J]&&await on(J,{sameSegment:J===ue.current})},qt=K==="playing",Cn=o.useMemo(()=>{if(!V||V.length<=1)return V;const J=V[S];return J?[J]:V},[V,S]),Ot=i===!0;o.useEffect(()=>{try{const J=f.current;J&&typeof J.playbackRate=="number"&&et(J)}catch{}},[le,et]);const sn=o.useRef({raf:null,timer:null});o.useEffect(()=>{const J=f.current;if(!J)return;const de=Math.max(0,Math.min(1,ke)),ae=sn.current,ye=()=>{ae.raf!==null&&(cancelAnimationFrame(ae.raf),ae.raf=null),ae.timer!==null&&(clearTimeout(ae.timer),ae.timer=null)};ye();const Le=Ya(J);if(J.paused||Math.abs(Le-de)<.001||typeof requestAnimationFrame!="function"){try{Rn(J,de)}catch{}return}const He=performance.now(),ut=()=>{const yt=Math.min(1,(performance.now()-He)/150);try{Rn(J,Le+(de-Le)*yt)}catch{}ae.raf=yt<1?requestAnimationFrame(ut):null};return ae.raf=requestAnimationFrame(ut),ae.timer=setTimeout(()=>{ye();try{Rn(J,de)}catch{}},200),ye},[ke]);const Dt=Z==="hold",ie=Z==="out",ve=W==="playMode"&&!D&&!je||Dt||ie,Me=K!=="stopped"||Dt||ie,Je=K==="paused",Oe=Math.max(0,Math.min(100,($||0)*100)),Ye=we("audio-player__fill",ve?"is-visible":"",Me?"is-expanded":"",Je?"is-paused":"",ie?"is-out":"");return n.jsxs("div",{className:`audio-player ${Ot?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof C=="string"?C:void 0,children:[n.jsxs("div",{className:`audio-player__panel ${qt?"is-playing":""} ${D?"is-loading":""} ${W!=="default"?"is-revealed":""}`,children:[D?n.jsxs("div",{className:"audio-player__loading",role:vc[O]?"status":void 0,"aria-live":vc[O]?"polite":"off",children:[n.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),n.jsx("span",{className:"audio-player__loading-text",children:p(`training.audioStatus.${O}`,{defaultValue:Y3[O]})})]}):null,W==="active"?n.jsx("button",{className:"audio-player__button",type:"button",disabled:Ot,onClick:()=>{U.current=mr(),A(),It()},"aria-label":typeof C=="string"?C:p("training.listen","\uB4E3\uAE30"),onMouseEnter:w,onMouseLeave:A,onFocus:w,onBlur:A,children:n.jsx("span",{ref:x,className:"audio-player__button-triangle-wrap",children:n.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:n.jsx("path",{ref:N,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,B&&n.jsx(Bn,{anchorRect:B,text:typeof C=="string"&&C?C:p("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),n.jsxs("div",{className:`audio-player__play ${W==="playMode"||qt?"is-visible":""}`,inert:!(W==="playMode"||qt)||void 0,children:[n.jsxs("div",{ref:_,className:"audio-player__buttons",children:[n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:xn,ariaLabel:p("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:W!=="playMode"}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:qt?"pause":"play",onClick:It,ariaLabel:p("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":qt,width:"60px",variant:"transparent-white",disabled:W!=="playMode"}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Mn,ariaLabel:p("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:W!=="playMode"}),Ve>1?n.jsx("div",{ref:k,className:"audio-player__source-buttons",children:Array.from({length:Ve}).map((J,de)=>n.jsx(pe,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(de+1),onClick:()=>{try{$t(de)}catch{}},ariaLabel:p("training.sourcePlay",{n:de+1}),variant:"transparent-white",selected:I&&S===de,disabled:W!=="playMode"||!(Array.isArray(P)&&P[de]),showTooltipInfo:!0},de))}):null,!Array.isArray(P)||P.length<=1?n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:zt,ariaLabel:p("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:W!=="playMode"}):null,n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Vn,ariaLabel:p("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:W!=="playMode"}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:_n,ariaLabel:p("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:W!=="playMode"})]}),n.jsxs("div",{className:"audio-player__slider",children:[n.jsx("div",{className:Ye,ref:h,style:{left:`${Oe}%`},"aria-hidden":"true"}),(u||c)&&n.jsx(K3,{segments:Cn,progress:$,totalDuration:re,waveProgressRef:Ce,showSoundWaveForm:u,leadInMs:d,tailMs:m,trackDurationSec:P?.[S]?.duration??0,noiseSrc:c&&y?.settings.enabled&&oe>0?dt:null,noiseRatio:y?Wa(y.settings):0,noiseSpeed:y?.settings.speed??1,mainVolume:Y,onReadyChange:ct})]})]}),n.jsx("audio",{ref:f,crossOrigin:"anonymous",preload:"auto"})]}),!u&&n.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[n.jsx(at,{icon:"triangle-alert",size:14}),p("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),n.jsx(ca,{message:me,position:be,onClose:Wt})]})}function _r(e){const{t}=xe.useTranslation(),{text:a,label:r,anchorRect:i=null,onClose:s,closeOnOutsideClick:l=!0,isMobilePopup:u=!1}=e||{},[c,d]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",c)}catch{}},[c]);const{increase:m,decrease:p,canIncrease:C,canDecrease:y,fontSize:v,lineHeight:f}=wl({storageKey:"tooltip-fontScale"}),h=o.useCallback(()=>d(N=>N==="dark"?"light":"dark"),[]),_=o.useCallback(N=>{try{N.stopPropagation()}catch{}try{typeof s=="function"&&s()}catch{}},[s]),g=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],k={fontSize:`${v}px`,lineHeight:`${f}px`,"--tt-line-height":`${f}px`,"--tt-marker-size":"28px"},b=n.jsxs("div",{className:`tooltip-textbox__root ${c==="dark"?"is-dark":""}`,children:[n.jsxs("div",{className:"tooltip-textbox__box",children:[r&&n.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),n.jsx("div",{className:"tooltip-textbox__text body-1",style:k,children:g.map((N,x)=>n.jsxs("div",{className:"tooltip-textbox__line",children:[g.length>1?n.jsx("div",{className:"tooltip-textbox__marker",children:n.jsx("span",{className:"tooltip-textbox__line-number button-1",children:x+1})}):null,n.jsx("span",{className:"tooltip-textbox__line-text",children:N})]},x))})]}),n.jsxs("div",{className:"tooltip-textbox__buttons",children:[n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:p,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!y}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:m,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!C}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:c==="dark"?"moon":"sun-medium",onClick:h,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:c==="dark"?"transparent-white":"transparent-gray"}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:_,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:c==="dark"?"transparent-white":"transparent-gray"})]})]});return i?n.jsx(cn,{anchorRect:i,className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,onClose:s,closeOnOutsideClick:l,isMobilePopup:u,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:b}):n.jsx("div",{className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,children:b})}function wc({state:e="disabled"}){const{t}=xe.useTranslation();return n.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[n.jsx("div",{className:"bullet__dot",children:n.jsx(at,{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 Bc(e,t,a){const r=o.useRef(t),i=o.useRef(a);o.useEffect(()=>{r.current=t,i.current=a}),o.useEffect(()=>{if(!e||typeof document>"u")return;let s=null,l=10;const u=()=>{s=null;const c=r.current(),d=c?Array.from(c.querySelectorAll(fn)).find(m=>!m.closest('[aria-hidden="true"]')):void 0;if(d){try{d.focus()}catch{}if(document.activeElement===d)return}--l>0&&(s=requestAnimationFrame(u))};return s=requestAnimationFrame(u),()=>{s!==null&&cancelAnimationFrame(s);const c=document.activeElement;if(!c||c===document.body||!document.contains(c)||c.closest(".tooltip-content")){const d=i.current();if(d)try{d.focus()}catch{}}}},[e])}function Ac({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:i=!1,onPreviewTextBtn:s,previewText:l=null,useFaded:u,usePlayAllBtn:c=!1,onPlayAll:d,playAllActive:m=!1}){const{t:p}=xe.useTranslation(),C=ln("(max-width: 767px)"),y=`training-step__title h4 ${u&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),v=`training-step__title-row training-step__title-row--${r}`.trim(),f=o.useRef(null),[h,_]=o.useState(!1),[g,k]=o.useState(null),[b,N]=o.useState(null);Bc(h&&!!g,()=>{if(typeof document>"u")return null;const D=Array.from(document.querySelectorAll(".tooltip-content"));for(let E=D.length-1;E>=0;E--)if(D[E].querySelector(".tooltip-textbox__root"))return D[E];return null},()=>f.current?.querySelector("button")??null);const x=o.useRef(s);o.useEffect(()=>{x.current=s});const B=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]),w=o.useCallback(()=>{_(!1),k(null),N(null)},[]);o.useEffect(()=>{if(!h)return;let D;try{typeof x.current=="function"&&(D=x.current())}catch{}if(D===!1){w();return}N(typeof D<"u"&&D!==null?D:null)},[B]);const A=o.useCallback(()=>{let D;try{typeof s=="function"&&(D=s())}catch{}if(D!==!1){if(N(typeof D<"u"&&D!==null?D:l),!f.current){_(E=>!E);return}if(h)_(!1),k(null),N(null);else{const E=f.current.getBoundingClientRect();k(E),_(!0)}}},[s,l,h]);return n.jsxs("div",{className:v,children:[n.jsx("p",{className:y,children:n.jsx("span",{className:"training-step__title-text",children:e??t})}),i||c?n.jsxs("div",{className:"title-controls",children:[n.jsxs("div",{className:"title-buttons",children:[c&&n.jsx(pe,{htmlType:"button",size:32,type:C?"dot":"bar",icon:"play-circle",label:C?void 0:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:m,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||m,onDisabledClick:m&&r!=="disabled"?()=>{}:void 0}),i&&n.jsx("div",{ref:f,children:n.jsx(pe,{htmlType:"button",size:32,type:C?"dot":"bar",icon:"eye",label:C?void 0:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:A,className:h?"is-selected":void 0,"aria-expanded":h,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof s!="function"})})]}),h&&n.jsx(_r,{text:b??l,label:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:g,onClose:w,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function us(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Xn({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:i={},children:s,className:l="",onDone:u=void 0,useTitleFaded:c=void 0,lockedHint:d}){const{t:m}=xe.useTranslation(),[p,C]=o.useState(()=>us(e,t));o.useEffect(()=>{const x=us(e,t);if(x!==p){const B=setTimeout(()=>C(x),0);return()=>clearTimeout(B)}},[e,t,p]);const y=o.useCallback((...x)=>{us(e,t)==="done"||p==="done"||typeof u=="function"&&u(...x)},[e,t,p,u]),[v,f]=o.useState(!1),[h,_]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),g=o.useCallback(x=>{if(!x)return null;try{const B=x;if(typeof x=="object"&&(B.currentTarget||B.target)&&(B.nativeEvent||B.type)){const D=B.currentTarget??B.target;if(D&&typeof D.getBoundingClientRect=="function")return D.getBoundingClientRect()}if(x instanceof DOMRect)return x;const w=x;if(w&&typeof w.getBoundingClientRect=="function")return w.getBoundingClientRect();const A=x?.current;return A&&typeof A.getBoundingClientRect=="function"?A.getBoundingClientRect():null}catch{return null}},[]),k=o.useCallback((x,{text:B="",label:w="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:A=!1,alignX:D="center",alignY:E="top"}={})=>{const O=g(x);_({text:B,label:w,anchorRect:O,backdrop:A,alignX:D,alignY:E}),f(!0)},[g]),b=o.useCallback(()=>{f(!1),_(x=>({...x,anchorRect:null}))},[]),N=o.Children.map(s,x=>{if(o.isValidElement(x)){const B=x;if(typeof B.type=="string")return B;const w=B.props??{},A=typeof w.onDone=="function"?w.onDone:y,D=typeof w.disabled=="boolean";let E=p==="disabled";return D&&(E=!!w.disabled),o.cloneElement(B,{onDone:A,disabled:E,showTooltip:k,hideTooltip:b})}return x});return n.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[n.jsx(wc,{state:p}),n.jsxs("div",{className:"training-step__content",children:[n.jsx(Ac,{state:p,title:r,...i,useFaded:c}),p==="disabled"&&d&&typeof e=="number"&&typeof t=="number"&&e===t+1&&n.jsx("p",{className:"training-step__locked-hint caption-1",role:"status",children:d}),N]}),v?n.jsx(cn,{anchorRect:h.anchorRect,backdrop:h.backdrop,onClose:b,ariaLabel:m("tooltip.textbox","\uBCF8\uBB38"),children:n.jsx(_r,{text:h.text,onClose:b})}):null]})}function kc({context:e,state:t="disabled",theme:a="light"}){const{t:r}=xe.useTranslation(),[i,s]=o.useState("disabled"),[l,u]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const c=()=>u(R=>R==="dark"?"light":"dark"),{increase:d,decrease:m,canIncrease:p,canDecrease:C,fontSize:y,lineHeight:v}=wl({storageKey:"textbox_fontScale"}),[f,h]=o.useState(""),_=o.useRef(null),g=o.useRef(!1),k=o.useCallback(()=>{g.current=mr()&&!!_.current&&_.current.contains(document.activeElement),s("active")},[]),b=o.useCallback(()=>h(""),[]),N=R=>{try{h(R)}catch{}},x=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(t!=="disabled"){const R=setTimeout(()=>s(t),0);return()=>clearTimeout(R)}},[t]);const B=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[w,A]=o.useState(B);w!==B&&(A(B),s("disabled"));const D=t==="disabled"?i:t,E=D==="disabled"?"training-text-box--disabled":D==="active"?"training-text-box--active":D==="done"?"training-text-box--done":"",O=o.useMemo(()=>({fontSize:`${y}px`,lineHeight:`${v}px`}),[y,v]);return o.useEffect(()=>{if(D==="disabled"||!g.current)return;g.current=!1;const R=document.activeElement;R&&R!==document.body||_.current?.querySelector(".training-text-box__buttons button")?.focus()},[D]),n.jsxs("div",{ref:_,className:`training-text-box ${E} ${D!=="disabled"&&l==="dark"?"is-dark":""}`,children:[D==="disabled"&&n.jsx("div",{className:"training-text-box__preview",children:n.jsx(pe,{htmlType:"button",size:48,type:"bar",onClick:k,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:B})}),D!=="disabled"&&n.jsxs("div",{className:"training-text-box__buttons","aria-hidden":D==="disabled",children:[n.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:m,onDisabledClick:()=>N(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:!C,useBorder:!1,showTooltipInfo:!0,...!x&&{width:"60px"}}),n.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>N(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!p,useBorder:!1,showTooltipInfo:!0,...!x&&{width:"60px"}}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:c,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),n.jsx(ca,{message:f,position:"top",onClose:b})]})}function Jn(e){return e==="active"||e==="done"}function cs({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:i,useTitleFaded:s,onDone:l,onChange:u,answer:c,wrongAnswers:d,choices:m,multiSelect:p=!1,correctCount:C=0,useDisabledCovered:y=!1,choiceIcons:v,shuffleChoices:f=!0}){const{t:h}=xe.useTranslation(),_=i??h("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),g=typeof e=="number"?e:-1,k=typeof t!="number"?"disabled":g<t?"done":g===t?"active":"disabled",b=Array.isArray(m)&&m.length?m:typeof c<"u"?[c].concat(Array.isArray(d)?d:[]):void 0,N=d?d.join("||"):"",x=m?m.join("||"):"",[B,w]=o.useState(()=>Array.isArray(b)?f?ka(b):b.slice():void 0);o.useEffect(()=>{Array.isArray(b)&&b.length?w(f?ka(b):b.slice()):w(void 0)},[c,N,x,f]);const[A,D]=o.useState(null),[E,O]=o.useState(()=>new Set);o.useEffect(()=>{D(null),O(new Set)},[x,c,N]);const R=o.useRef(void 0);o.useEffect(()=>{const L=R.current;typeof L=="number"&&typeof t=="number"&&typeof e=="number"&&L>=e&&t<e&&(D(null),O(new Set)),R.current=t},[t,e]);const K=o.useCallback(L=>{if(!Jn(k))return;const $=B?.[L];if($==null)return;const G=$;if(p){const W=new Set(E);W.has(G)?W.delete(G):W.add(G),O(W),typeof u=="function"&&u({selectedValues:[...W],__ts:Date.now()}),typeof l=="function"&&l({selectedValues:[...W],__ts:Date.now()})}else D(G),typeof u=="function"&&u({selectedIndex:L,selectedValue:G,__ts:Date.now()}),typeof l=="function"&&l({selectedIndex:L,selectedValue:G,__ts:Date.now()})},[B,k,p,u,E]),M=`training-step__buttons${Array.isArray(B)&&B.length>3?" training-step__buttons--wrap-3":""}`;return n.jsx(Xn,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:_,useTitleFaded:s,children:n.jsx("div",{className:M,children:Array.isArray(B)&&B.length>0?B.map((L,$)=>n.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:()=>K($),ariaLabel:String(L),label:L,useLabel:!0,icon:v?v[String(L)]:void 0,variant:"default",disabled:k==="disabled",selected:p?E.has(L):A===L,useDisabledCovered:y,minWidth:0},String(L))):null})})}function ds({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:i,onDone:s,onChange:l,context:u,demoSelected:c}){const{t:d}=xe.useTranslation(),m=i??d("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,C=typeof t!="number"?"disabled":p<t?"done":p===t?"active":"disabled",y=u&&typeof u=="object"?u.sentence||"":typeof u=="string"?u:"",v=u&&typeof u=="object"?u.choices:void 0,[f,h]=o.useState(c??null),_=`${String(y)}\0${JSON.stringify(v??null)}`,[g,k]=o.useState(_);g!==_&&(k(_),c==null&&h(null));const[b,N]=o.useState(c);Object.is(b,c)||(N(c),h(c??null));const x=o.useRef(void 0);o.useEffect(()=>{const D=x.current;typeof D=="number"&&typeof t=="number"&&typeof e=="number"&&D>=e&&t<e&&c==null&&h(null),x.current=t},[t,e,c]);const B=o.useCallback(D=>{const E=typeof D=="object"&&D!==null?Object.assign({},D,{__ts:Date.now()}):{value:D,__ts:Date.now()};typeof l=="function"&&l(E),Jn(C)&&typeof s=="function"&&s(E)},[l,C,s]),w=o.useCallback(()=>{Jn(C)&&(h(!1),B(!1))},[B,C]),A=o.useCallback(()=>{Jn(C)&&(h(!0),B(!0))},[B,C]);return n.jsxs(Xn,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:m,onDone:s,useTitleFaded:!1,children:[n.jsx(kc,{context:u,state:C}),n.jsx("div",{className:"training-step__buttons",children:Array.isArray(v)&&v.length>0?v.slice(0,6).map((D,E)=>n.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:()=>{Jn(C)&&(h(E),B&&B(E))},disabled:C==="disabled",ariaLabel:String(D),label:D,variant:C,selected:f===E},E)):n.jsxs(n.Fragment,{children:[n.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:w,disabled:C==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!1}),n.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:A,disabled:C==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!0})]})})]})}function ps({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:i,btnLabel:s,soundSrc:l,bucketPath:u,usePreviewTextBtn:c,previewText:d=null,onPreviewTextBtn:m,disabled:p,_pageIndex:C,showSoundWaveForm:y,showNoiseWaveForm:v,leadInMs:f,tailMs:h}){const{t:_}=xe.useTranslation(),g=r??_("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),k=p??(typeof t=="number"&&typeof e=="number"?e>t:!1);return n.jsx(Xn,{index:e,stepIndex:t,isLast:a,title:g,onDone:i,titleProps:{usePreviewTextBtn:c,previewText:d,onPreviewTextBtn:m},children:n.jsx(ls,{soundSrc:l,ttsText:l?null:d??g,bucketPath:u,btnLabel:s||_("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:k,className:"training-step__listen-sticky",showSoundWaveForm:y,showNoiseWaveForm:v,leadInMs:f,tailMs:h},`audio-p${C??0}-s${e}`)})}const r7=[];function ms({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:i,onDone:s,onChange:l,context:u=r7}){const{t:c}=xe.useTranslation(),d=i??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),m=F=>typeof F=="string"?F:F&&(F.context||F.sentence||F.question||"")||"",[p,C]=o.useState(Array.isArray(u)?u:[]),[y,v]=o.useState(()=>(p||[]).map((F,S)=>({id:S,text:m(F)}))),f=o.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]),h=f!=="disabled",_=o.useRef(void 0),g=o.useRef(void 0);o.useEffect(()=>{if(_.current===u)return;_.current=u;const F=Array.isArray(u)?u:[];C(F);const S=(j=>{const I=(j||[]).map((le,Y)=>({id:Y,text:m(le)}));if(I.length<=1)return I;const q=(le,Y)=>{if(le.length!==Y.length)return!1;for(let oe=0;oe<le.length;oe++)if(le[oe].text!==Y[oe].text)return!1;return!0};let re=ka(I),ne=0;for(;q(re,I)&&ne<20;)re=ka(I),ne+=1;return re})(F);v(S);try{if(typeof l=="function"){const j=S.filter((I,q)=>I.text===m(F[q])).length;l({shuffled:S,score:j,total:(F||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&f==="active"){const j=S.filter((I,q)=>I.text===m(F[q])).length;g.current=u,s({shuffled:S,score:j,total:(F||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[u]),o.useEffect(()=>{if(f!=="active"||g.current===u||(g.current=u,typeof s!="function"))return;const F=Array.isArray(u)?u:[],S=y.filter((j,I)=>j.text===m(F[I])).length;s({shuffled:y,score:S,total:F.length,initial:!0,__ts:Date.now()})},[f,u]);const k=(F,S)=>{const j=[...y],I=F+S;if(I<0||I>=j.length)return;const q=j[I];j[I]=j[F],j[F]=q,G(j);try{if(typeof s=="function"&&f==="active"){const re=j.filter((ne,le)=>ne.text===m(p[le])).length;s({shuffled:j,score:re,total:(p||[]).length,__ts:Date.now()})}}catch{}},[b,N]=o.useState(null),x=o.useRef(null),B=o.useRef(null),w=o.useRef(null),A=o.useRef(null),D=o.useRef(null),E=o.useRef({x:0,y:0}),O=o.useRef(null),R=o.useRef({dx:0,dy:0}),K=()=>{if(O.current!==null)return;const F=()=>{if(!x.current){O.current=null;return}O.current=requestAnimationFrame(F);const S=E.current,j=R.current||{dx:0,dy:0};x.current&&(x.current.style.transform=`translate3d(${S.x-j.dx}px, ${S.y-j.dy}px, 0)`)};O.current=requestAnimationFrame(F)},M=o.useRef(new Map),L=o.useRef(new Map),$=()=>{const F=new Map;return M.current.forEach((S,j)=>{S&&S.getBoundingClientRect&&F.set(j,S.getBoundingClientRect())}),F},G=F=>{const S=$();v(F);try{if(typeof l=="function"){const j=F.filter((I,q)=>I.text===m(p[q])).length;l({shuffled:F,score:j,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const j=$();F.forEach(I=>{const q=S.get(I.id),re=j.get(I.id),ne=M.current.get(I.id);if(!ne||!q||!re)return;const le=q.top-re.top;le&&(ne.style.transition="none",ne.style.transform=`translateY(${le}px)`,requestAnimationFrame(()=>{ne.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",ne.style.transform="";const Y=()=>{ne.style.transition="",ne.removeEventListener("transitionend",Y)};ne.addEventListener("transitionend",Y)}))})})},W=(F,S)=>{try{try{S.dataTransfer?.setData("text/plain",String(F))}catch{}try{S.dataTransfer&&(S.dataTransfer.effectAllowed="move")}catch{}try{const j=document.createElement("div");j.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(j),S.dataTransfer?.setDragImage(j,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(j)}catch{}})}catch{}}catch{}N(F);try{const j=y[F],I=document.createElement("div");I.className="order-list__dragging-object order-list__dragging-object--visible",I.textContent=j&&j.text?j.text:"",document.body.appendChild(I),x.current=I;const q=M.current.get(j.id);let re=S.clientX||0,ne=S.clientY||0;try{if(q&&q.getBoundingClientRect){const Q=q.getBoundingClientRect();re=Q.left+Q.width/2,ne=Q.top+Q.height/2}}catch{}const le=I.getBoundingClientRect(),Y=le.width/2,oe=le.height/2;R.current={dx:Y,dy:oe},I.style.transition="none",E.current={x:re,y:ne},I.style.transform=`translate3d(${re-Y}px, ${ne-oe}px, 0)`,requestAnimationFrame(()=>{try{I.style.transition=""}catch{}K()});const ke=Q=>{const me=Q;E.current={x:me.clientX,y:me.clientY},K()};w.current=ke,document.addEventListener("mousemove",ke);const Z=Q=>{const me=Q;E.current={x:me.clientX,y:me.clientY},K()};B.current=Z,document.addEventListener("dragover",Z);try{S.dataTransfer?.setData("text/plain",String(F));try{S.dataTransfer?.setData("application/json",JSON.stringify({idx:F}))}catch{}}catch{}}catch{}},H=(F,S)=>{S.preventDefault();try{S.dataTransfer&&(S.dataTransfer.dropEffect="move")}catch{}try{D.current!==null&&(clearTimeout(D.current),D.current=null);const j=S.currentTarget&&S.currentTarget.closest?S.currentTarget.closest(".order-list__item"):null;if(j&&A.current!==j){if(A.current)try{A.current.classList.remove("drag-over")}catch{}try{j.classList.add("drag-over")}catch{}A.current=j}}catch{}},U=(F,S)=>{S.preventDefault();const j=S.dataTransfer?.getData("text/plain")||"",I=j?parseInt(j,10):b,q=F;if(typeof I!="number"||isNaN(I)||I===q){N(null),V(),P();return}const re=cf(y,I,q);G(re),N(null),P();try{if(typeof s=="function"&&f==="active"){const ne=re.filter((le,Y)=>le.text===m(p[Y])).length;s({shuffled:re,score:ne,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const ne=document.querySelectorAll(".order-list .order-list__item")[q];if(!ne)return;const le=ne.querySelector(".order-list__slot")||ne;try{le.classList.add("pulse"),le.offsetHeight,le.classList.add("to-dark");const Y=()=>{le.classList.remove("pulse","to-dark"),le.removeEventListener("transitionend",Y)};le.addEventListener("transitionend",Y)}catch{}})}catch{}V()},P=()=>{if(x.current){try{document.body.removeChild(x.current)}catch{}x.current=null}B.current&&(document.removeEventListener("dragover",B.current),B.current=null),w.current&&(document.removeEventListener("mousemove",w.current),w.current=null),O.current!==null&&(cancelAnimationFrame(O.current),O.current=null)},z=()=>{N(null),V(),P()};o.useEffect(()=>()=>P(),[]);const V=()=>{try{if(D.current!==null&&(clearTimeout(D.current),D.current=null),A.current){try{A.current.classList.remove("drag-over")}catch{}A.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(F=>F.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const F=Math.max(1,(y||[]).length);y.forEach((S,j)=>{const I=L.current.get(S.id);if(!I)return;let q=50;F>1&&(q=Math.round(j/(F-1)*100));try{I.style.setProperty("--marker-pos",q+"%")}catch{}})}catch{}},[y]),o.useEffect(()=>()=>{P(),D.current!==null&&(clearTimeout(D.current),D.current=null)},[]),n.jsx(Xn,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:d,children:n.jsx("div",{className:"order-list",children:y.map((F,S)=>{const j=Math.max(1,(y||[]).length),I=j>1?Math.round(S/(j-1)*100):50;return n.jsx("div",{className:"order-list__item",children:n.jsxs("div",{className:"order-list__slot","data-disabled":f==="disabled","aria-disabled":f==="disabled",children:[f!=="disabled"?n.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":I+"%"},ref:q=>{const re=L.current;q?re.set(F.id,q):re.delete(F.id)},children:n.jsx("span",{className:"order-list__slot-number button-1",children:S+1})}):null,n.jsxs("div",{ref:q=>{const re=M.current;q?re.set(F.id,q):re.delete(F.id)},className:`order-list__draggable ${b===S?"dragging":""}`,"data-disabled":f==="disabled","aria-disabled":f==="disabled",tabIndex:f==="disabled"?-1:0,draggable:h,onDragStart:h?q=>W(S,q):void 0,onDragEnter:h?q=>H(S,q):void 0,onDragOver:h?q=>H(S,q):void 0,onDragLeave:h?()=>{try{D.current!==null&&clearTimeout(D.current),D.current=setTimeout(()=>{try{const q=document.querySelectorAll(".order-list .order-list__item");q&&q[S]&&(q[S].classList.remove("drag-over"),A.current===q[S]&&(A.current=null))}catch{}},80)}catch{}}:void 0,onDrop:h?q=>U(S,q):void 0,onDragEnd:h?z:void 0,children:[n.jsx("span",{className:"order-list__item-text body-2",children:F.text}),h?n.jsxs("span",{className:"order-list__item-buttons",children:[n.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:()=>k(S,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:S===0,useBorder:!1,useDisabledInvisible:!0}),n.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:()=>k(S,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:S===y.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},F.id)})})})}const o7=8e3;function s7(e,t){return new Promise(a=>{let r=!1;const i=()=>{r||(r=!0,a())};e.then(i,i),setTimeout(i,t)})}function Nc({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:i,onDone:s,onChange:l,context:u=[],selectable:c=!1,hideLabel:d=!1,hideAudio:m=!1,maxCards:p,playAllGapMs:C=0}){const{t:y}=xe.useTranslation(),v=i??y("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),f=o.useMemo(()=>Array.isArray(u)?u:u&&u.items||[],[u]),h=p??3,_=(f||[]).slice(0,h);(f||[]).length>h&&console.warn(`TrainingStepCard: ${f.length} items passed but only ${h} shown`);const g=typeof e=="number"?e:-1,k=typeof t!="number"?"disabled":g<t?"done":g===t?"active":"disabled",[b,N]=o.useState(null),x=o.useRef([]),[B,w]=o.useState(!1),A=o.useRef(null),D=o.useRef(!0);o.useEffect(()=>(D.current=!0,()=>{D.current=!1}),[]);const E=o.useMemo(()=>f.map($=>$?.id??$?.word??"").join("|"),[f]);o.useEffect(()=>{N(null)},[E]);const O=o.useRef(void 0);o.useEffect(()=>{const $=O.current;typeof $=="number"&&typeof t=="number"&&typeof e=="number"&&$>=e&&t<e&&N(null),O.current=t},[t,e]);const R=o.useCallback(($,G)=>{if(c)return;const W={item:$,index:G,__ts:Date.now()};try{typeof l=="function"&&l(W)}catch{}if(k==="active"&&typeof s=="function")try{s(W)}catch{}},[c,l,k,s]),K=o.useRef(C);o.useEffect(()=>{K.current=Math.max(0,C||0)},[C]);const M=o.useCallback(async()=>{if(B||k==="disabled")return;w(!0);let $=!1;const G=new Promise(W=>{A.current=()=>{$=!0,W()}});try{for(let W=0;W<_.length&&!(!D.current||$);W++){const H=x.current[W];if(!H)continue;await Promise.race([s7(H.play(),o7),G]);const U=Math.max(0,K.current||0);U>0&&W<_.length-1&&!$&&D.current&&await Promise.race([new Promise(P=>{setTimeout(P,U)}),G])}}finally{A.current=null,w(!1)}},[B,k,_.length]),L=o.useCallback(($,G)=>{if(!Jn(k))return;N(G);const W={selectedValue:$.word||$.title||"",selectedIndex:G,item:$,__ts:Date.now()};try{typeof l=="function"&&l(W)}catch{}if(typeof s=="function")try{s(W)}catch{}},[l,k,s]);return n.jsx(Xn,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:v,onDone:s,titleProps:{usePlayAllBtn:!m&&_.length>0,onPlayAll:M,playAllActive:B},children:n.jsx("div",{className:"training-step__cards",onClickCapture:$=>{const G=A.current;if(!G)return;const W=$.target;W&&typeof W.closest=="function"&&W.closest(".training-word-card__bottom")&&G()},children:_.length===0?n.jsx("div",{className:"training-step__empty",children:y("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):_.map(($,G)=>n.jsx(Wo,{ref:W=>{x.current[G]=W},item:$,disabled:k==="disabled",onPlayDone:()=>R($,G),selectable:c,selected:c&&b===G,onSelect:c?()=>L($,G):void 0,flipDelay:G*120,hideLabel:d,hideAudio:m},$&&$.id||G))})})}const i7=160,Ec=()=>{};function Sn(e){const t=o.useId();if(!("variant"in e)){const{label:g,sub:k,onClick:b,children:N,align:x="horizontal",icon:B,useFullWidth:w=!1}=e,A=D=>{b&&D.target===D.currentTarget&&(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),b())};return n.jsxs("div",{className:we("panel-row",x==="vertical"?"panel-row--vertical":"",w?"panel-row--label-fixed panel-row--fill":"",b?"panel-row--clickable":""),onClick:b,onKeyDown:b?A:void 0,role:b?"button":void 0,tabIndex:b?0:void 0,children:[B!=null&&n.jsx("div",{className:"panel-row__icon",children:B}),g!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:g}),k&&n.jsx("div",{className:"panel-row__sub caption-1",children:k})]}),n.jsx("div",{className:"panel-row__right",children:N})]})}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(Oa,{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:i,onClick:s,required:l,error:u,align:c="horizontal",useFullWidth:d=!1,icon:m}=e,p=a==="button"?void 0:s;let C=null;const y=a==="toggle"?`panel-toggle-${t}`:void 0,v=u?`panel-error-${t}`:void 0,f=`panel-helper-${t}`;if(a==="toggle"){const g=e;C=n.jsx(cu,{checked:g.checked,onChange:g.onChange,id:y})}else if(a==="segmented"){const g=e;C=n.jsx(gn,{options:g.options,value:g.value,onChange:g.onChange,size:g.size??40,ariaLabel:r})}else if(a==="dropdown"){const g=e,k=g.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:g.dropdowns.map((b,N)=>n.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:n.jsx(pn,{options:b.options,value:b.value,onChange:b.onChange,placeholder:b.placeholder,block:d,error:!!u,ariaDescribedBy:v,ariaLabel:b.ariaLabel??([r,b.placeholder].filter(Boolean).join(" ")||void 0)})},N))}):n.jsx(pn,{options:g.options??[],value:g.value??"",onChange:g.onChange??Ec,block:d,error:!!u,ariaLabel:r,ariaDescribedBy:v});C=u?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[k,n.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:u})]}):k}else if(a==="button"){const g=e;g.buttons?.length?C=n.jsx("div",{className:"panel-row__button-group",children:g.buttons.map((k,b)=>n.jsx(pe,{htmlType:"button",size:k.btnSize??40,variant:k.btnVariant??"default",disabled:k.disabled,onClick:k.onClick,children:k.label},b))}):C=n.jsx(pe,{htmlType:"button",size:g.btnSize??40,variant:g.btnVariant??"default",disabled:g.disabled,onClick:g.onClick,children:g.buttonLabel})}else if(a==="text"){const g=e;C=n.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:g.valueColor?{color:g.valueColor}:void 0,children:g.value})}else if(a==="input"){const g=e;C=n.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[n.jsx(Zn,{value:g.value,onChange:g.onChange??Ec,onKeyDown:g.onKeyDown,onEnter:g.onEnter,placeholder:g.placeholder,ghostText:g.ghostText,ghostHint:g.ghostHint,inputMode:g.inputMode,readOnly:g.readOnly,disabled:g.disabled,type:g.type,autoComplete:g.autoComplete,maxLength:g.maxLength,showCount:g.showCount,multiline:g.multiline,rows:g.rows,fullWidth:d,error:u,ariaLabel:r,required:l,ariaDescribedBy:g.helperText?f:void 0}),g.helperText&&n.jsx("div",{id:f,className:"panel-row__helper caption-1",children:g.helperText})]})}else a==="custom"&&(C=e.children);u&&a!=="input"&&a!=="dropdown"&&(C=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[C,n.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const h=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,_=g=>{p&&g.target===g.currentTarget&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),p())};return n.jsxs("div",{className:we("panel-row",c==="vertical"?"panel-row--vertical":"",h?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",p?"panel-row--clickable":""),onClick:p,onKeyDown:p?_:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,children:[m!=null&&n.jsx("div",{className:"panel-row__icon",children:m}),n.jsxs("div",{className:"panel-row__left",children:[y?n.jsxs("label",{htmlFor:y,className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}):n.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}),i&&n.jsx("div",{className:"panel-row__sub caption-1",children:i})]}),n.jsx("div",{className:"panel-row__right",children:C})]})}function Dc(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function l7({devices:e,onRelease:t,emptyLabel:a}){const{t:r,i18n:i}=xe.useTranslation();return n.jsx("div",{className:"panel-row panel-row--device",children:["left","right"].map(s=>{const l=e[s],u=s==="left"?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:u}),l&&t&&n.jsx(pe,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${u} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(s)})]}),l?n.jsxs("div",{className:"panel-row__device-info",children:[n.jsxs("span",{className:"panel-row__device-kind",children:[l.device&&n.jsx(kt,{size:"small",variant:Du(l.device),fill:"soft",label:Su(l.device,r)}),Dc(l)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:Dc(l)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:l.productName||l.brand}),Ho(l.wornYear,l.wornMonth,l.wornDay,i.language)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:Ho(l.wornYear,l.wornMonth,l.wornDay,i.language)})})]}):n.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},s)})})}function wr({title:e,titleLevel:t=2,icon:a,disc:r,actions:i,size:s="medium",minHeight:l,maxWidth:u,className:c,scrollable:d,scrollbarGutter:m="auto",compactRows:p=!1,useBorder:C=!0,useBg:y=!0,useRowBorder:v=!0,labelWidth:f,form:h=!1,loading:_,empty:g,children:k}){const b=we("panel",`panel--${s}`,h?"panel--form":"",l!==void 0?"panel--fill":"",C?"":"panel--no-border",y?"":"panel--no-bg",v?"":"panel--no-row-border",p?"panel--compact-rows":"",c),N={};l!==void 0&&(N.minHeight=l),u!==void 0&&(N.maxWidth=typeof u=="number"?`${u}px`:u),f!==void 0&&(N["--panel-label-width"]=typeof f=="number"?`${f}px`:f);const x=t?`h${t}`:"div";return n.jsxs("div",{className:b,style:Object.keys(N).length?N:void 0,children:[(!!e||r!=null)&&n.jsxs("div",{className:we("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&n.jsx(at,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[!!e&&n.jsx(x,{className:`panel__title ${r!=null?"body-3b":"h5b"}`,children:e}),r!=null&&n.jsx("p",{className:"panel__disc caption-1",children:r})]}),i&&n.jsx("div",{className:"panel__actions",children:i})]}),_?n.jsx(Sn,{variant:"loading"}):g!=null&&o.Children.toArray(k).length===0?n.jsx(Sn,{variant:"empty",children:g}):d?n.jsx("div",{className:we("panel__body--scroll",m==="stable"&&"panel__body--gutter-stable"),children:k}):k]})}function u7({cols:e=2,layout:t="grid",gap:a=1,collapseAt:r,className:i,style:s,children:l}){const u=o.useRef(null),[c,d]=o.useState();o.useEffect(()=>{const p=u.current;if(r===void 0||!p||(d(p.clientWidth),typeof ResizeObserver>"u"))return;const C=new ResizeObserver(([y])=>d(y.contentRect.width));return C.observe(p),()=>C.disconnect()},[r]);const m=r!==void 0&&c!==void 0&&c<=r;return n.jsx("div",{ref:u,className:we("panel-grid",t==="columns"&&"panel-grid--columns",i),style:{"--panel-grid-cols":m?1:e,"--panel-grid-gap":typeof a=="number"?`${a}px`:a,...s},children:l})}function c7(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 Sc(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"}]}c7(Rt.t.bind(Rt)),Sc(Rt.t.bind(Rt));const Br="none",d7=.5,p7=1.5,m7=.25;function hs({title:e,valueLabel:t,value:a,min:r,max:i,step:s,tickStep:l,size:u,disabled:c,onChange:d}){return n.jsxs(Sn,{variant:"custom",label:e,useFullWidth:!0,children:[n.jsx(wu,{value:a,onChange:d,min:r,max:i,step:s,size:u,showBgTick:!0,tickStep:l,ariaLabel:e,disabled:c,className:"noise-settings__slider-input"}),n.jsx("div",{className:we("noise-settings__value","button-1",c?"noise-settings__value--disabled":""),children:t})]})}function Tc({anchorRect:e,onClose:t,hideNoiseRows:a=!1}){const{t:r}=xe.useTranslation(),i=ln("(max-width: 767px)")?40:24,s=br(),l=Wa(s?.settings??Ua),u=s?.settings.type??"defaultNoise",c=s?.settings.enabled??!0,d=s?.playbackRate??1,m=s?.mainVolume??1,p=Math.round(m*100),C=o.useCallback(_=>{try{s?.setMainVolume(Math.max(0,Math.min(1,_/100)))}catch{}},[s]),y=o.useCallback(_=>{try{s?.setPlaybackRate(_)}catch{}},[s]),v=o.useCallback(_=>{const g=Math.min(za,Math.max(0,Math.round(_*10)/10));try{s?.setSettings({noiseRatio:g})}catch{}},[s]),f=o.useCallback(_=>{try{_===Br?s?.setSettings({enabled:!1}):s?.setSettings({type:_,enabled:!0})}catch{}},[s]),h=[{key:Br,label:r("training.noise.type.none","\uC5C6\uC74C")},...Sc(r).map(_=>({key:_.value,label:_.label}))];return n.jsx(cn,{anchorRect:e,offset:12,onClose:t,ariaLabel:r("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:n.jsxs("div",{className:"noise-settings__header",children:[n.jsx("span",{children:r("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),n.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:r("common.close","\uB2EB\uAE30"),onClick:t})]}),children:n.jsxs(wr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[n.jsx(hs,{title:r("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:i,onChange:C}),n.jsx(hs,{title:r("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:d7,max:p7,step:m7,size:i,onChange:y}),!a&&n.jsxs(n.Fragment,{children:[n.jsx(Sn,{variant:"custom",label:r("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:n.jsx(gn,{ariaLabel:r("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:h,value:c?u:Br,onChange:f})}),n.jsx(hs,{title:r("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:r("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:l.toFixed(1)}),value:l,min:0,max:za,step:dc,size:i,disabled:!c,onChange:v})]}),a&&n.jsx("div",{className:"noise-settings__width-ghost","aria-hidden":"true",inert:!0,children:n.jsx(Sn,{variant:"custom",label:"\xA0",useFullWidth:!0,children:n.jsx(gn,{ariaLabel:"width-ghost",size:40,shape:"rounded",options:h,value:Br,onChange:()=>{}})})})]})})}function jc({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:i=0,stepCount:s=0,pageIndex:l=0,pageCount:u=1,resultOpen:c=!1,hideNoiseRows:d=!1}){const{t:m}=xe.useTranslation(),[p,C]=o.useState(!1),[y,v]=o.useState(null),[f,h]=o.useState(!1),_=o.useRef(null),g=o.useRef(null),k=br(),b=u>0,N=b&&l<u-1,x=!b||l>=u-1,B=i===Math.max(0,s);o.useEffect(()=>{e||(C(!1),v(null))},[e]);const w=o.useCallback(()=>{C(!1),v(null)},[]),A=o.useCallback(()=>{if(p){C(!1),v(null);return}const G=_?.current?.getBoundingClientRect();G&&v(G),t?.(),C(!0)},[p,t]),D=o.useCallback(()=>{if(p){C(!1),v(null);return}const G=g?.current?.getBoundingClientRect();G&&v(G),t?.(),C(!0)},[p,t]),E=ln("(max-width: 767px)"),O=o.useRef(null),[R,K]=o.useState(null),M=o.useCallback(()=>{h(G=>{const W=!G;return K(W?O.current?.getBoundingClientRect()??null:null),W})},[]),L=o.useCallback(()=>{h(!1),K(null)},[]);o.useEffect(()=>{c&&(h(!1),K(null))},[c]);const $=n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:m("training.meter.sentence","\uC7AC\uC0DD")}),n.jsx(Fo,{analyser:k?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:m("training.meter.sentence","\uC7AC\uC0DD")})]}),n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:m("training.meter.noise","\uC18C\uC74C")}),n.jsx(Fo,{analyser:k?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:m("training.meter.noise","\uC18C\uC74C")})]})]});return Bc(e&&p,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[_.current,g.current].map(G=>G?.querySelector("button")??null).find(G=>!!G&&G.getClientRects().length>0)??_.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:_,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(pe,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:A,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:m("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:m("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),n.jsx("div",{className:"pp-bottom__settings--mobile",children:n.jsx("div",{ref:g,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(pe,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:D,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:m("training.settings","\uC124\uC815")})})})]}):null,e&&n.jsx("div",{ref:O,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:n.jsx(pe,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:M,selected:f,"aria-expanded":E?f:void 0,ariaLabel:m("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&f&&!E&&n.jsx("div",{className:"pp-bottom__meters",children:$})]}),e&&f&&E&&R&&n.jsx(cn,{anchorRect:R,onClose:L,ariaLabel:m("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"),children:n.jsx("div",{className:"pp-bottom__meters pp-bottom__meters--floating",children:$})}),n.jsxs("div",{className:"pp-bottom__right",children:[x&&n.jsx(pe,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:m("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:m("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!B}),N&&n.jsx(pe,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:m("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:m("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!B})]}),e&&p&&n.jsx(Tc,{anchorRect:y,onClose:w,hideNoiseRows:d})]})}function Mc({title:e,subtitle:t,desc:a,depth:r,icon:i,wrapperStyle:s,iconTooltip:l,pageIndex:u,pageCount:c,progressMax:d,progressIndex:m,onBack:p,onClose:C}){const{t:y}=xe.useTranslation(),v=ln("(max-width: 767px)"),f=Number.isInteger(m)?m:u||0,h=Number.isInteger(d)?d:c||0,_=p||C,g=Array.isArray(r)?v?r[r.length-1]:r.join(" / "):r,k=typeof e=="string"?e.trim():e,b=typeof t=="string"?t.trim():t,N=!!(k||b),x=N?k||b:y("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),B=g||(k?t:void 0),w=v&&typeof B=="string"&&(B.includes(" \xB7 ")||B.includes(" / "))?B.split(/\s[·/]\s/).pop():B,A=o.useMemo(()=>{const D=s&&typeof s=="object"?{...s}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[s]);return n.jsxs("header",{className:"pp-title training-popup-title",children:[n.jsxs("div",{className:"pp-title__left",children:[_?n.jsx(pe,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:y("common.back","\uB4A4\uB85C"),onClick:_,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,n.jsx("div",{children:i?n.jsx(tu,{icon:i,label:e,tooltip:l,wrapperStyle:A}):null}),n.jsxs("div",{className:"pp-title__text",children:[w?n.jsx("span",{className:"pp-title__depth caption-1",children:w}):null,n.jsx("span",{className:`pp-title__title h2${N?"":" pp-title__title--empty"}`,children:x}),a?n.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),n.jsx(Nu,{max:Math.max(0,h??0),index:Math.max(0,f??0)})]})}function h7(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function C7(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 Lc=(e,t)=>{if(!t)return t;const a=typeof Rt?.t=="function"?Rt.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function $c(e,t,a){const r=e,i=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",s=$i().find(u=>u.key===(r?.category_0||r?.category_main_code)),l=s?.subs?.find(u=>u.key===(r?.category_1||r?.category_sub_code));return{title:i,label:r?.title||i,depth:t,icon:s?.icon,wrapperStyle:s?.color?{"--t-item-fg":s.color}:void 0,iconTooltip:[s?Lc(`topic.${s.key}`,s.label):void 0,l?Lc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function Cs(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function Rc(e,t,a){if(!e||typeof e!="object"||Array.isArray(e))return e;const r=e,i=typeof a=="number"&&a>0?a:Date.now();return{...r,...r.shownAt===void 0&&t?{shownAt:t}:{},...r.answeredAt===void 0?{answeredAt:new Date(i).toISOString()}:{}}}function f7(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function g7({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:i=[],emptyMessage:s,buildResults:l,metaPatch:u}){const c=$c(t,a,r),d=typeof u=="function"?u(c)||{}:u||{},m=t?.id||t?.title||i.length;return{id:`${e}:${m}`,meta:{...c,...d},pages:i,emptyMessage:s,buildResults:l}}function b7(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function y7(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 v7(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 Pc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function x7(e,t,a,r){return Pc(e,t*a+r)}function _7({payload:e,selected:t,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const i=e;if(Array.isArray(i.selectedValues))return r.every(s=>i.selectedValues.includes(s))&&i.selectedValues.every(s=>r.includes(s));if(typeof i.correct=="boolean")return i.correct}if(r.length){if(typeof t=="number"&&Array.isArray(a)&&a.length)return r.some(i=>String(i)===String(a[t]));if(typeof t<"u")return r.some(i=>String(i)===String(t))}}function w7(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 Fc=o.createContext(null);function B7(){const e=o.useContext(Fc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function A7({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:i,choices:s=[],onDone:l,onChange:u}){const{t:c}=xe.useTranslation(),d=typeof e=="number"?e:-1,m=typeof t!="number"?"disabled":d<t?"done":d===t?"active":"disabled",[p,C]=o.useState(()=>s.map(()=>null)),y=JSON.stringify(s),v=s.length;o.useEffect(()=>{C(Array.from({length:v},()=>null))},[y]);const f=o.useRef(void 0);o.useEffect(()=>{const k=f.current;typeof k=="number"&&typeof t=="number"&&typeof e=="number"&&k>=e&&t<e&&C(Array.from({length:v},()=>null)),f.current=t},[t,e,v]);const h=o.useMemo(()=>p.filter(k=>k!==null).length+1,[p]),_=o.useCallback(k=>{if(!Jn(m))return;const b=p;let N;if(b[k]!=null){const B=b[k];N=b.map(w=>w!==null&&w>=B?null:w)}else N=[...b],N[k]=h;C(N);const x={selectedOrder:N,words:s,__ts:Date.now()};try{typeof u=="function"&&u(x)}catch{}if(b[k]==null&&N.length>0&&N.every(B=>B!==null))try{typeof l=="function"&&l(x)}catch{}},[m,p,h,u,l,s]),g=i??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return n.jsx(Xn,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:g,onDone:l,children:n.jsx("div",{className:"training-step__cards",children:s.map((k,b)=>n.jsx(Wo,{item:{word:k},disabled:m==="disabled",selectable:!0,selected:p[b]!==null,orderRank:p[b],onSelect:()=>_(b),flipDelay:b*120,hideLabel:!1,hideAudio:!0},`${k}-${b}`))})})}function Ar(e){return null}Ar.__isTrainingPage=!0;function ga(e,t){const a=B7();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 Ic({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:i,isLast:s,onDone:l}=ga(e,t);return n.jsx(ps,{...a,index:r,stepIndex:i,isLast:s,onDone:l})}function Oc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:i,isLast:s,onDone:l,onChange:u}=ga(e,t);return n.jsx(cs,{...a,index:r,stepIndex:i,isLast:s,onDone:l,onChange:u})}function Hc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:i,isLast:s,onDone:l,onChange:u}=ga(e,t);return n.jsx(ds,{...a,index:r,stepIndex:i,isLast:s,onDone:l,onChange:u})}function Vc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:i,isLast:s,onDone:l,onChange:u}=ga(e,t);return n.jsx(ms,{...a,index:r,stepIndex:i,isLast:s,onDone:l,onChange:u})}function zc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:i,isLast:s,onDone:l,onChange:u}=ga(e,t);return n.jsx(Nc,{...a,index:r,stepIndex:i,isLast:s,onDone:l,onChange:u})}function k7({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:i,isLast:s,onDone:l,onChange:u}=ga(e,t);return n.jsx(A7,{...a,index:r,stepIndex:i,isLast:s,onDone:l,onChange:u})}const Wc=3e4,N7=/^(https?:|blob:|data:audio|\/|\.\/)/;function qc(e){return typeof e=="string"&&N7.test(e)?e:null}const E7=e=>typeof e=="string"&&e.trim()!==""?e:null,fs=Symbol("timed-out");function D7(e,t){if(t<=0)return Promise.resolve(fs);let a;return Promise.race([Promise.resolve(e),new Promise(r=>{a=setTimeout(()=>r(fs),t)})]).finally(()=>clearTimeout(a))}function S7(e){return e?wa()||Kr()?!0:typeof window<"u"&&!!window.speechSynthesis:!1}function T7(e,t){const a=[],r=qc(t);r&&a.push({kind:"raw",resolve:async()=>r});const i=(e??"").trim();if(!i)return a;for(const[s,l]of[["urlResolver",wa()],["fallbackUrlResolver",Kr()]])l&&a.push({kind:s,resolve:async u=>{let c;try{c=await D7(l(i),u)}catch(m){return St(`question-sound-threw-${s}`,`[core] configureTTS \uC758 ${s} \uAC00 \uB358\uC84C\uB2E4 \u2014 \uADF8 \uCC28\uB840\uB294 \uAC74\uB108\uB6F4\uB2E4.`,m),null}return c===fs?(St(`question-sound-slow-${s}`,`[core] configureTTS \uC758 ${s} \uAC00 ${Wc}ms \uBC14\uD034 \uC548\uC5D0 \uC548 \uD480\uB838\uB2E4 \u2014 \uADF8 \uCC28\uB840\uB97C \uBC84\uB9AC\uACE0 \uB2E4\uC74C\uC73C\uB85C \uAC04\uB2E4. \uC11C\uBC84 \uD569\uC131\uC744 \uAE30\uB2E4\uB9AC\uB294 \uB9AC\uC878\uBC84\uB77C\uBA74 \uC774 \uC790\uB9AC\uAC00 \uAE38\uC5B4\uC9C4\uB2E4. \uC18C\uB9AC\uAC00 \uC544\uC608 \uC548 \uB098\uBA74 \uC5EC\uAE30\uBD80\uD130 \uBCF4\uB77C.`),null):E7(c)||(St(`question-sound-empty-${s}`,`[core] configureTTS \uC758 ${s} \uAC00 \uC8FC\uC18C\uB97C \uC548 \uC92C\uB2E4(\uBC1B\uC740 \uAC83: ${JSON.stringify(c)}) \u2014 \uADF8 \uCC28\uB840\uB294 \uAC74\uB108\uB6F4\uB2E4.`),null)}});return a}function j7(){return Date.now()+Wc}const M7=(e,t)=>Math.max(0,e-Date.now())/Math.max(1,t);function L7(e){St("question-sound-none",`[core] "${e}" \uC758 \uC18C\uB9AC \uC8FC\uC18C\uB97C \uD55C \uC790\uB9AC\uC5D0\uC11C\uB3C4 \uBABB \uC5BB\uC5C8\uB2E4 \u2014 \uBE0C\uB77C\uC6B0\uC800 \uB0AD\uB3C5\uC73C\uB85C \uAC04\uB2E4. configureTTS \uAC00 \uAC78\uB824 \uC788\uB294\uC9C0, \uB9AC\uC878\uBC84\uAC00 \uC8FC\uC18C\uB97C \uC8FC\uB294\uC9C0 \uC704 \uC904\uB4E4\uC744 \uBCF4\uB77C.`)}function kr(...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 i of r){if(typeof i=="string"&&i.trim().length)return i.trim();if(typeof i=="number"||typeof i=="boolean")return String(i)}}}return null}function $7(e){return kr(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function R7(e){return qc(kr(e?.questionSound,e?.soundSrc,e?.audioSrc,e?.sound,e?.audio,e?.src))}function Uc(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=kr(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 Gc(e){const{score:t,contextsLength:a,results:r=[],subtitle:i,onReplay:s,onClose:l,inline:u=!1,pending:c=!1}=e||{},{t:d}=xe.useTranslation(),m=o.useId(),p=o.useCallback(()=>!c,[c]);o.useEffect(()=>{const w=a??0;if(t!=null&&w>0&&t/w>.5){const A=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(A)}},[t,a]);const C=o.useCallback(w=>{const A=Uc(w),D=kr(w?.wording,w?.label);return A===!0?{variant:"main",label:D??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:A===!1?{variant:"danger",label:D??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:D??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),y=a??0,v=t??0,f=o.useMemo(()=>Array.isArray(r)?r:[],[r]),h=o.useRef(null),[_,g]=o.useState(null),k=o.useCallback(()=>{h.current?.(),h.current=null,g(null)},[]);o.useEffect(()=>k,[k]);const b=o.useRef(0),N=o.useCallback((w,A,D)=>{k();const E=++b.current,O=()=>b.current===E;g(w),h.current=()=>{b.current++,Ur()};const R=$=>{const G=ur($,W=>{W&&O()&&(h.current=null,g(null))});return h.current=()=>{b.current++,G.stop(),Ur()},G.done},K=T7(A,D),M=K[0]?.kind==="raw",L=M?R(D):Promise.resolve(!1);(async()=>{if(await L||!O())return;const $=j7(),G=M?K.slice(1):K;for(let W=0;W<G.length;W++){if(!O())return;const H=await G[W].resolve(M7($,G.length-W));if(!O()||H&&(await R(H)||!O()))return}O()&&(L7(A),h.current=()=>{b.current++,Ur()},BC(A,{onEnd:()=>{O()&&(h.current=null,g(null))}}))})()},[k]),x=o.useMemo(()=>f.map(w=>{const A=w??{},D=$7(A)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:E,label:O}=C(A),R=Array.isArray(A.corrects)?A.corrects:[],K=R.length?R.join(", "):A.answer!=null&&A.answer!==""?String(A.answer):null,M=typeof A.selectedText=="string"?A.selectedText:null,L=Uc(A)===!0,$=R7(A),G=!!$||S7(D);return{problem:D,variant:E,label:O,answer:K,selectedText:M,isCorrect:L,sound:$,canHear:G}}),[f,C,d]),B=o.useMemo(()=>x.some(w=>w.answer!==null||w.selectedText!==null),[x]);return n.jsx(Fn,{onClose:l,closeOnBackdrop:!1,inline:u,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:p,footerClassName:"trp-result__foot",footer:({animateThen:w,closeWithAnimation:A})=>n.jsxs(n.Fragment,{children:[c&&n.jsx("p",{id:m,className:"trp-actions__reason caption-1",role:"status",children:d("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsxs("div",{className:"trp-actions",children:[n.jsx(pe,{htmlType:"button",size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>w(s)}),n.jsx(pe,{htmlType:"button",size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:A,disabled:c,onDisabledClick:c?()=>{}:void 0,"aria-describedby":c?m:void 0})]})]}),children:()=>n.jsxs("div",{className:"trp-result is-on",children:[n.jsxs("header",{className:"trp-result__head",children:[n.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),n.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),i&&n.jsx("p",{className:"trp-result__subtitle body-3",children:i}),n.jsx("div",{className:"trp-score",children:n.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:v,total:y}),children:[n.jsx("span",{className:"trp-score__big",children:v}),n.jsx("span",{className:"trp-score__sep",children:"/"}),n.jsx("span",{className:"trp-score__total",children:y})]})})]}),x.length>0&&n.jsx("section",{className:"trp-result__body",children:n.jsxs("div",{className:`result-table${B?" 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")}),B&&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")})]}),x.map((w,A)=>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(A+1).padStart(2,"0")}),n.jsx("div",{className:"trp-row__q body-2",children:w.problem}),w.canHear&&n.jsx(pe,{htmlType:"button",size:32,type:"dot",useBorder:!1,icon:_===A?"square":"volume-2",className:"trp-row__replay",ariaLabel:_===A?d("training.result.replaySoundStop",{no:A+1,defaultValue:"{{no}}\uBC88 \uB4E3\uAE30 \uBA48\uCDA4"}):d("training.result.replaySound",{no:A+1,defaultValue:"{{no}}\uBC88 \uB2E4\uC2DC \uB4E3\uAE30"}),onClick:()=>_===A?k():N(A,w.problem,w.sound)})]}),B&&n.jsxs("div",{className:"trp-row__answers",children:[w.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:w.answer})]}),n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${w.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),n.jsx("span",{className:`trp-row__answer-value body-2 ${w.isCorrect?"is-correct":"is-wrong"}`,children:w.selectedText??"\u2014"})]})]}),n.jsx("div",{className:"trp-row__judge",children:n.jsx(kt,{variant:w.variant,label:w.label,fill:"soft",minWidth:80})})]},A))]})})]})})}const gs=new Set;function P7(e){o.useEffect(()=>{if(!e||gs.has(e))return;gs.add(e);const t=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,i=0,s=0;const l=()=>{const m=Date.now();a==null&&(a=m),r==null&&(r=m)},u=()=>{r!=null&&(i+=Date.now()-r,r=null)};t()&&l();const c=()=>{if(u(),a==null||i-s<1e3||s===0&&i<5e3)return;const m=a+s;s=i,mf({trainingType:e,startedAt:new Date(m).toISOString(),endedAt:new Date(a+i).toISOString()})},d=()=>{t()?l():c()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",c),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",c),c(),gs.delete(e)}},[e])}function Nr(e,t){return e&&e.id||`page-${t??0}`}function Er(e,t){return e&&e.key||`step-${t??0}`}function Dr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function F7(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const I7=300,O7=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Tn=Object.freeze({}),Kc=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function bs(e){const t=e,a=t?.results||t?.answers||[],r=Array.isArray(a)&&a.length>0?a.length:null,i=Array.isArray(a)?a.filter(s=>s?.correct===!0||s?.isCorrect===!0||s?.score===1||s?.heard===!0||s?.judgement===!0).length:null;return{results:a,correct:r!=null?i:null,total:r}}const H7=e=>n.jsx(Gc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function V7(e){const{scenario:t,title:a,subTitle:r,depth:i,icon:s,wrapperStyle:l,iconTooltip:u,pageIndex:c,pageCount:d,stepIndex:m,stepCount:p,onBack:C,onComplete:y,onRoundFinished:v,onNext:f,onSettings:h,useNoiseSetting:_=!0,children:g,ariaLabel:k,label:b,buildResults:N,onResult:x,typeKey:B,entryPoint:w,dailyTotal:A,itemRef:D,renderResultPopup:E,noiseOverride:O,hideNoiseRows:R=!1}=e;P7(B&&!Kc.has(B)?B:"");const K=o.useRef(0);o.useEffect(()=>{K.current=Date.now()},[]);const{t:M}=xe.useTranslation(),L=x,$=!!t,G=t?.id||null,W=t?.meta||{},H=Array.isArray(t?.pages)?t.pages:[],U=Array.isArray(g)||o.isValidElement(g)&&typeof g!="function"?o.Children.toArray(g).filter(o.isValidElement):[],P=U.length>0,z=ie=>ie===Ar||ie?.__isTrainingPage===!0,V=P&&U.some(ie=>z(ie.type)),F=V?U.filter(ie=>z(ie.type)).map((ie,ve)=>{const Me=ie.props||{};return{id:`children-page-${ve}`,steps:o.Children.toArray(Me.children).filter(o.isValidElement),pageTop:Me.pageTop||Me.top||null,pageBottom:Me.pageBottom||Me.bottom||null}}):[{id:"children-page-0",steps:U}],S=P&&!$&&typeof g!="function",j=S?Math.max(1,F.length):0;o.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),o.useEffect(()=>{if(typeof document>"u"||!document.body)return;const ie=document.body;return ie.dataset.ihabTrainingPopupCount=String(Number(ie.dataset.ihabTrainingPopupCount||"0")+1),ie.classList.add("ihab-training-popup-open"),()=>{const ve=Number(ie.dataset.ihabTrainingPopupCount||"1")-1;ve>0?ie.dataset.ihabTrainingPopupCount=String(ve):(delete ie.dataset.ihabTrainingPopupCount,ie.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return hy()},[]);const[I,q]=o.useState({...Ua,enabled:!1}),re=o.useRef(I);o.useEffect(()=>{re.current=I},[I]);const ne=o.useRef(O),le=o.useRef(!1),Y=o.useRef(null);o.useEffect(()=>{let ie=!1;const ve=Me=>{if(ie)return;le.current=!0;const Je=Me?qa({...Ua,enabled:!1},Me):{...Ua},Oe=Y.current;Y.current=null;const Ye=Oe?qa(Je,Oe):Je;re.current=Ye,q(Ye),Oe&&!ne.current&&Di(Ye),Qa(Ye);const J=ne.current;if(J){const de=typeof J=="function"?J(Ye):J,ae=qa(Ye,de);re.current=ae,q(ae),Qa(ae)}};return gf().then(ve),()=>{ie=!0}},[]);const[oe,ke]=o.useState(null),[Z,Q]=o.useState(null),me=o.useCallback((ie,ve)=>{ie==="main"?ke(ve):Q(ve)},[]),De=o.useRef(null),be=o.useRef(null),te=o.useCallback(()=>{be.current!==null&&(clearTimeout(be.current),be.current=null);const ie=De.current;De.current=null,ie&&Di(ie)},[]);o.useEffect(()=>{if(typeof window>"u")return;const ie=()=>{document.visibilityState==="hidden"&&te()};return window.addEventListener("pagehide",te),document.addEventListener("visibilitychange",ie),()=>{window.removeEventListener("pagehide",te),document.removeEventListener("visibilitychange",ie),te()}},[te]);const ue=o.useCallback(ie=>{const ve=qa(re.current,ie);if(re.current=ve,q(ve),!le.current){Y.current={...Y.current??{},...ie},Qa(ve);return}ne.current||(De.current=ve,be.current!==null&&clearTimeout(be.current),be.current=setTimeout(te,I7)),Qa(ve)},[te]),Ce=I.mainSpeed,ge=I.mainVolume,fe=o.useCallback(ie=>ue({mainSpeed:ie}),[ue]),$e=o.useCallback(ie=>ue({mainVolume:ie}),[ue]),ze=o.useMemo(()=>({settings:I,setSettings:ue,registerAnalyser:me,mainAnalyser:oe,noiseAnalyser:Z,playbackRate:Ce,setPlaybackRate:fe,mainVolume:ge,setMainVolume:$e}),[I,ue,me,oe,Z,Ce,fe,ge,$e]),Te=o.useRef(null),[Fe,qe]=o.useState(0),mt=o.useRef([]),[ct,rt]=o.useState("center"),[Ct,Ae]=o.useState(!1),We=o.useRef(!1),_e=o.useRef(null),Ue=o.useCallback(ie=>{We.current||(We.current=!0,Ae(!0),_e.current=setTimeout(()=>{try{ie()}catch{We.current=!1,Ae(!1)}},O7()?0:i7))},[]);o.useEffect(()=>()=>{_e.current&&clearTimeout(_e.current)},[]);const Be=o.useRef(C);o.useEffect(()=>{Be.current=C}),o.useEffect(()=>{const ie=Te.current,ve=document.activeElement;if(uo(ie,ve),ie){const Me=Array.from(ie.querySelectorAll(fn)).filter(Je=>!Je.closest('[aria-hidden="true"]'))[0];if(Me)try{Me.focus()}catch{}}return()=>{const Me=document.activeElement;if(!Me||Me===document.body||ie&&ie.contains(Me))try{co(ve)?.focus?.()}catch{}}},[]),o.useEffect(()=>Un(()=>Ue(()=>{const ie=Be.current;typeof ie=="function"&&ie()})),[Ue]),io(Te,!0);const[je,Se]=o.useState(!1),Xe=o.useRef(!1),[Qe,dt]=o.useState(null),ht=o.useRef(0),wt=o.useRef(0),ft=()=>{ht.current+=1,wt.current+=1,dt(null)},[Nt,gt]=o.useState(""),[it,Ke]=o.useState(()=>Dr()),se=o.useRef(typeof c=="number"?c:null);o.useEffect(()=>{!$&&!S||(Ke(Dr()),ft())},[$,G,S]),o.useEffect(()=>{S&&Ke(ie=>{const ve=Math.max(0,Math.min(ie.pageIndex,Math.max(0,j-1)));return ve!==ie.pageIndex?{...ie,pageIndex:ve,stepIndex:0}:ie})},[S,j]);const Ne=S?Math.max(0,Math.min(it.pageIndex,j-1)):0,Ve=S?F[Ne]:null,nt=S&&Ve&&Array.isArray(Ve.steps)?Ve.steps:[],Ie=$?it.pageIndex:S?Ne:typeof c=="number"?c:0,Ge=$?H[Math.max(0,Math.min(it.pageIndex,Math.max(0,H.length-1)))]:null,bt=$&&Ge&&Array.isArray(Ge.steps)?Ge.steps:[],Re=$?bt.length:S?nt.length:typeof p=="number"?p:0,tt=$||S?Math.max(0,Math.min(it.stepIndex,Math.max(0,Re))):typeof m=="number"?m:0,xt=$?H.length:S?j:typeof d=="number"?d:0;o.useEffect(()=>{if(!$&&!S)return;const ie=$?Nr(Ge,Ie):Ve?.id||`children-page-${Ie??0}`,ve=new Date().toISOString();for(let Me=0;Me<=tt;Me+=1){const Je=$?Er(bt[Me],Me):`step-${Me}`,Oe=lt(ie,Je);ot.current.has(Oe)||ot.current.set(Oe,ve)}},[$,S,Ie,tt,Ve?.id]),o.useLayoutEffect(()=>{const ie=se.current;if(typeof Ie=="number"&&ie!==null&&Ie!==ie&&Ie>ie)try{gt(M("training.problemNotice",{n:Ie+1}))}catch{}se.current=typeof Ie=="number"?Ie:se.current},[Ie,c,M]),o.useLayoutEffect(()=>{const ie=Te.current;if(!ie)return;const ve=()=>ie.querySelector(".page-popup__scroll");let Me=null,Je=null,Oe=null;const Ye=Le=>{const He=ve();if(!He)return;const ut=He.scrollHeight<=He.clientHeight;if(rt(ut?"center":"top"),Le&&!Xe.current){Xe.current=!0;try{Se(!0)}catch{}try{ae.disconnect()}catch{}}},J=()=>{Me!==null&&cancelAnimationFrame(Me),Me=requestAnimationFrame(()=>{Je!==null&&clearTimeout(Je),Je=setTimeout(()=>Ye(!0),60)})},de=()=>{Oe!==null&&cancelAnimationFrame(Oe),Oe=requestAnimationFrame(()=>Ye(!1))};J(),window.addEventListener("resize",de);const ae=new MutationObserver(J);ae.observe(ie,{childList:!0,subtree:!0,attributes:!0});const ye=setTimeout(()=>{Xe.current||Ye(!0)},400);return()=>{window.removeEventListener("resize",de),Me!==null&&cancelAnimationFrame(Me),Je!==null&&clearTimeout(Je),Oe!==null&&cancelAnimationFrame(Oe),clearTimeout(ye);try{ae.disconnect()}catch{}}},[Te]);const Lt=o.useCallback(ie=>{Te.current&&(Te.current._childOnNext=ie)},[]),et=o.useCallback(ie=>{Te.current&&(Te.current._childOnResult=ie)},[]),ot=o.useRef(new Map),lt=(ie,ve)=>`${ie}\0${ve}`,st=o.useCallback((ie,ve,Me)=>{Ke(Je=>{const Oe=Je.answersByPage[ie]||{},Ye=Oe[ve],J=Cs(Me),de=Cs(Ye);if(Ye&&de>J)return Je;const ae=Rc(Me,ot.current.get(lt(ie,ve)),J);return{...Je,answersByPage:{...Je.answersByPage,[ie]:{...Oe,[ve]:ae}}}})},[Ke]),jt=o.useCallback((ie,ve,Me)=>{const Je=Nr(Ge,Ie),Oe=Er(ie,ve);st(Je,Oe,Me)},[Ge,Ie,st]),Vt=o.useCallback((ie,ve,Me)=>{const Je=Nr(Ge,Ie),Oe=Er(ie,ve);st(Je,Oe,Me),!Me?.allowChange&&ie?.autoAdvance!==!1&&Ke(Ye=>({...Ye,stepIndex:Math.max(Ye.stepIndex,ve+1)}))},[Ge,Ie,st,Ke]),mn=o.useCallback((ie,ve)=>{const Me=Ve?.id||`children-page-${Ie??0}`,Je=typeof ve=="number"?ve:tt??0,Oe=`step-${Je}`;st(Me,Oe,ie),ie?.allowChange||Ke(Ye=>({...Ye,stepIndex:Math.max(Ye.stepIndex,Je+1)}))},[Ve,Ie,tt,st,Ke]),hn=o.useCallback((ie,ve)=>{const Me=Ve?.id||`children-page-${Ie??0}`,Je=`step-${typeof ve=="number"?ve:tt??0}`;st(Me,Je,ie)},[Ve,Ie,tt,st]),jn=S?{currentPageIndex:Ie??0,currentStepIndex:tt??0,totalStepsInPage:nt.length,handleStepDone:mn,handleStepChange:hn}:null,On=async()=>{const ie=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:H,flowState:it,answersByPage:it.answersByPage})):null;return typeof L=="function"&&await Promise.resolve(L(ie))||ie},Hn=async()=>{const ie=Ve?.id||`children-page-${it.pageIndex}`,ve=it.answersByPage[ie]||{},Me=V?(()=>{const Ye={};let J=0;return F.forEach(de=>{const ae=it.answersByPage[de.id]||{},ye=Array.isArray(de.steps)?de.steps.length:0;for(let Le=0;Le<ye;Le+=1){const He=ae[`step-${Le}`];typeof He<"u"&&(Ye[`step-${J+Le}`]=He)}J+=ye}),Ye})():ve;if(typeof N=="function"){const Ye=await Promise.resolve(N(Me,{pageAnswers:ve,answersByPage:it.answersByPage,pages:F,currentPageId:ie}));return typeof L=="function"&&await Promise.resolve(L(Ye))||Ye}const Je=Object.entries(ve).map(([Ye,J],de)=>({index:de,key:Ye,payload:J})),Oe={results:Je,answers:Je,score:0};return typeof L=="function"&&await Promise.resolve(L(Oe))||Oe},Ft=()=>{const ie=++ht.current,ve=()=>ie!==ht.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($){const Oe=On();dt(Tn);const Ye=Oe;Promise.resolve(Ye).then(J=>{ve()||dt(J||{isEmpty:!0})}).catch(J=>{!ve()&&dt({isEmpty:!0})});return}if(S){const Oe=Hn();dt(Tn);const Ye=Oe;Promise.resolve(Ye).then(J=>{ve()||dt(J||{isEmpty:!0})}).catch(J=>{!ve()&&dt({isEmpty:!0})});return}const Me=Te.current&&Te.current._childOnResult,Je=Oe=>{try{return Oe?Oe():void 0}catch{return}};if(typeof Me=="function"){const Oe=Je(Me);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:wn&&wn.tagName.toUpperCase()==="SCRIPT"&&wn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Oe&&typeof Oe.then!="function"?dt(Oe):dt(Oe&&typeof Oe.then=="function"?Tn:{});const Ye=()=>{ve()||dt(J=>J===Tn?{}:J)};Promise.resolve(Oe).then(J=>{J&&!ve()?dt(J):Ye()}).catch(J=>{Ye()});return}if(typeof L=="function"){const Oe=Je(L);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:wn&&wn.tagName.toUpperCase()==="SCRIPT"&&wn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Oe&&typeof Oe.then!="function"?dt(Oe):dt(Oe&&typeof Oe.then=="function"?Tn:{});const Ye=()=>{ve()||dt(J=>J===Tn?{}:J)};Promise.resolve(Oe).then(J=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:wn&&wn.tagName.toUpperCase()==="SCRIPT"&&wn.src||new URL("components.cjs.js",document.baseURI).href}catch{}J&&!ve()?dt(J):Ye()}).catch(J=>{console.error("viewResults external handler failed",J),Ye()});return}},vn=()=>{if($){if(typeof Ie=="number"&&typeof xt=="number"&&Ie<xt-1){Ke(ve=>({...ve,pageIndex:ve.pageIndex+1,stepIndex:0}));return}return Ft()}if(S){const ve=nt.length;if(typeof tt=="number"&&tt<ve-1){Ke(Me=>({...Me,stepIndex:Me.stepIndex+1}));return}if(typeof Ie=="number"&&typeof xt=="number"&&Ie<xt-1){Ke(Me=>({...Me,pageIndex:Me.pageIndex+1,stepIndex:0}));return}return Ft()}if(typeof f=="function"){try{f()}catch{}return}const ie=Te.current&&Te.current._childOnNext;if(typeof ie=="function"){try{ie()}catch{}return}},It=$?W.title||W.label||k||M("common.popup","\uD31D\uC5C5"):a||b||(Array.isArray(i)?i[i.length-1]:void 0)||k||M("common.popup","\uD31D\uC5C5"),zt=k||It,Mn=$?W.title??W.label??It:a??b??It,on=(ie,ve)=>{const Me=Nr(Ge,Ie),Je=Er(ie,ve),Oe=it.answersByPage[Me]?.[Je],Ye=F7(ie,{page:Ge,pageIndex:Ie,step:ie,stepIndex:ve,storedPayload:Oe,answersByPage:it.answersByPage,flowState:it}),J={key:Je,index:ve,stepIndex:tt,isLast:ve===bt.length-1};switch(ie?.type){case"listen":return n.jsx(ps,{...J,...Ye,onDone:de=>Vt(ie,ve,de)});case"confirm":return n.jsx(cs,{...J,...Ye,onDone:de=>Vt(ie,ve,de),onChange:de=>jt(ie,ve,de)});case"confirmWithText":return n.jsx(ds,{...J,...Ye,onDone:de=>Vt(ie,ve,de),onChange:de=>jt(ie,ve,de)});case"orderList":return n.jsx(ms,{...J,...Ye,onDone:de=>Vt(ie,ve,de),onChange:de=>jt(ie,ve,de)});default:return null}},xn=o.useRef(void 0);o.useEffect(()=>{const ie=xn.current;if(xn.current=Ie,ie===void 0||ie===Ie||!mr())return;const ve=Te.current;if(!ve)return;const Me=document.activeElement;if(!(!Me||Me===document.body||!ve.contains(Me)||Me.disabled===!0))return;const Je=ve.querySelector(`.training-steps ${fn.split(", ").join(", .training-steps ")}`)??Array.from(ve.querySelectorAll(fn)).find(Oe=>!Oe.closest('[aria-hidden="true"]'));try{Je?.focus()}catch{}},[Ie]);const Vn=$?H.length>0?n.jsx("div",{className:"training-steps",children:bt.map((ie,ve)=>on(ie,ve))},`replay-${Fe}`):n.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:n.jsx("div",{className:"pp-empty",children:t?.emptyMessage||M("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,_n=S?n.jsxs(Fc.Provider,{value:jn,children:[Ve?.pageTop?n.jsx("div",{className:"training-page-top",children:Ve.pageTop}):null,n.jsx("div",{className:"training-steps",children:nt.map((ie,ve)=>{const Me=ie;return o.cloneElement(Me,{...Me.props,_stepIndex:ve,_totalSteps:nt.length,_stepKey:`step-${ve}`,_pageIndex:Ie})})},`replay-${Fe}`),Ve?.pageBottom?n.jsx("div",{className:"training-page-bottom",children:Ve.pageBottom}):null]}):null,Wt=o.useRef(-1),$t=o.useCallback(()=>{if(!B)return;const ie=Qe,{results:ve,correct:Me,total:Je}=bs(Qe),Oe={correct:Me,total:Je,attempt:mt.current.length+1,previousAttempts:[...mt.current]};if(Wt.current===wt.current)return Oe;Wt.current=wt.current,hf({items:ff(ve),category:Kc.has(B)?"sentence":"word",trainingType:B,entryPoint:w??"sentence",itemRef:D??null,correct:Me,total:Je,score:typeof ie?.score=="number"?ie.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-K.current)/1e3)),dailyTotal:A??null});try{v?.(Oe)}catch{}return Oe},[B,w,A,D,Qe,v]);o.useEffect(()=>{!Qe||Qe===Tn||Qe?.isEmpty||(bs(Qe).total??0)>0&&$t()},[Qe,$t]);const qt=o.useCallback(()=>{const ie=$t();ft(),Ue(()=>{typeof y=="function"&&y(ie),typeof C=="function"&&C()})},[y,C,$t,dt,Ue]),Cn=o.useCallback(()=>gt(""),[gt]),Ot=o.useCallback(()=>{Ue(()=>{typeof C=="function"&&C()})},[C,Ue]),sn=n.jsxs("div",{className:`page-popup${Ct?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":zt,children:[n.jsxs("div",{ref:Te,className:`page-popup__panel ${je?"":"page-popup__panel--measuring"} ${ct==="center"?"page-popup__panel--center":ct==="top"?"page-popup__panel--top":""}`,children:[n.jsx(Mc,{title:Mn,subtitle:$?W.subtitle||W.label:Array.isArray(i)?i.join(" / "):void 0,desc:$?void 0:r,depth:$?W.depth:i,icon:$?W.icon:s,wrapperStyle:$?W.wrapperStyle:l,iconTooltip:$?W.iconTooltip:u,progressMax:xt,progressIndex:Ie,pageIndex:Ie,pageCount:xt,onBack:Ot,onClose:Ot}),n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content ${ct==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:S?_n:$?Vn:typeof g=="function"?g({registerOnNext:Lt,registerOnResult:et,panelRef:Te,setResultOverlay:dt}):g})}),n.jsx(jc,{onSettings:h,onNext:vn,onResult:Ft,useNoiseSettingBtn:!!($?W.useNoiseSetting??!0:_),stepIndex:tt,stepCount:Re,pageIndex:Ie,pageCount:xt,resultOpen:!!(Qe&&!Qe.isEmpty),hideNoiseRows:R})]}),Qe&&!Qe.isEmpty&&(E??H7)({score:Qe.score,results:Qe.results||Qe.answers||[],contextsLength:Qe.results?Qe.results.length:Qe.answers?Qe.answers.length:0,onReplay:()=>{if(K.current=Date.now(),Qe!==Tn){const{correct:ie,total:ve}=bs(Qe);mt.current.push({correct:ie,total:ve})}if(ft(),qe(ie=>ie+1),$){if(Ke(Dr()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(S){Ke(Dr());return}try{const ie=Te.current&&Te.current._childOnResult;typeof ie=="function"&&ie({replay:!0})}catch{}},onClose:qt,pending:Qe===Tn}),Qe?.isEmpty&&n.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":M("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:n.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:n.jsx("div",{className:"page-popup__empty",children:M("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),n.jsx("div",{className:"page-popup__bottom",children:n.jsx(pe,{htmlType:"button",variant:"main",size:48,onClick:qt,label:M("training.result.done","\uC644\uB8CC")})})]})}),n.jsx(ca,{message:Nt,position:"top",onClose:Cn})]}),Dt=n.jsx(rs.Provider,{value:ze,children:sn});return typeof document<"u"&&document.body?en.createPortal(Dt,document.body):Dt}const In=V7;In.Page=Ar,In.ListenStep=Ic,In.ConfirmStep=Oc,In.ConfirmWithTextStep=Hc,In.OrderListStep=Vc,In.CardStep=zc,In.CardOrderStep=k7;function z7({label:e,homonum:t}){const a=aa()?.(e,t)??"",{imgRef:r,loading:i,hasImage:s,onLoad:l,onError:u}=zo(a);return s?n.jsxs("div",{className:"tooltip-word-image__cell",children:[i&&n.jsx("div",{className:"tooltip-word-image__spinner"}),n.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:i?0:1},onLoad:l,onError:u})]}):n.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:n.jsx("span",{children:e})})}function Yc({words:e,anchorRect:t}){const a=o.useRef(null),[r,i]=o.useState(null);return o.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:s,offsetHeight:l}=a.current,u=window.innerWidth;let c=t.left+t.width/2-s/2,d=t.top-l-8;d<8&&(d=t.bottom+8),c=Math.max(8,Math.min(c,u-s-8)),i({left:c,top:d})},[t]),!t||e.length===0?null:en.createPortal(n.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:n.jsx("div",{className:"tooltip-word-image__cells",children:e.map(s=>n.jsx(z7,{label:s.label,homonum:s.homonum},`${s.label}_${s.homonum??1}`))})}),document.body)}function W7({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:i,groups:s,selected:l=[],onSelect:u,maxSelect:c,onClearSelection:d,onPrint:m,onPrintEmpty:p,className:C,emptyHint:y,sectionType:v="page",disc:f}){const{t:h,i18n:_}=xe.useTranslation(),g=_.language?.startsWith("ko")??!1,{anchorRect:k,openAt:b,close:N}=Sa(),[x,B]=o.useState(null),w=o.useCallback(()=>{N(),B(null)},[N]);K4(w,!!x);const A=(r??"").trim(),D=/^[^,[\]\s]+$/.test(A)?A:"",E=D.length>0,O=r===void 0&&t===void 0,R=E?"match":O?"original":"ganada",[K,M]=o.useState(()=>R),[L,$]=o.useState("50"),[G,W]=o.useState(1),[H,U]=o.useState(E);H!==E&&(U(E),M(R));const P=K==="match"&&!E||K==="original"&&!O?R:K,z=o.useMemo(()=>[...E?[{value:"match",label:h("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...O?[{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,E,O]),V=o.useMemo(()=>["10","25","50","100"].map(te=>({value:te,label:h("wordSearch.pageSize",{count:Number(te),defaultValue:`${te}\uAC1C\uC529 \uBCF4\uAE30`})})),[h]),F=te=>te.words?.[0],S=o.useMemo(()=>{const te=[...D].length,ue=ZC(D),Ce=new Map;return ge=>{let fe=Ce.get(ge);return fe===void 0&&(fe=ue((ge.words?.[0]?.label??"").slice(0,te))?0:1,Ce.set(ge,fe)),fe}},[D]),j=o.useCallback((te,ue)=>{const Ce=$e=>F($e)?.label??"",ge=$e=>F($e)?.syllables??[...Ce($e)].length,fe=$e=>($e.words??[]).reduce((ze,Te)=>{const Fe=parseInt(Te.grade??"",10);return Number.isFinite(Fe)&&Fe<ze?Fe:ze},999);switch(P){case"match":return S(te)-S(ue)||an(Ce(te),Ce(ue));case"ganada":return an(Ce(te),Ce(ue));case"ganada_desc":return an(Ce(ue),Ce(te));case"syllable":return ge(te)-ge(ue)||an(Ce(te),Ce(ue));case"syllable_desc":return ge(ue)-ge(te)||an(Ce(te),Ce(ue));case"grade":return fe(te)-fe(ue)||an(Ce(te),Ce(ue));case"grade_desc":return fe(ue)-fe(te)||an(Ce(te),Ce(ue));default:return 0}},[P,S]),I=o.useMemo(()=>i.slice().sort(j),[i,j]),q=Number(L)||10,re=o.useMemo(()=>(s??[]).flatMap(te=>te.items.slice().sort(j).map(ue=>({item:ue,label:te.label}))),[s,j]),ne=s?re.length:I.length,le=Math.max(1,Math.ceil(ne/q)),Y=Math.min(G,le),oe=o.useMemo(()=>I.slice((Y-1)*q,Y*q),[I,Y,q]),ke=o.useMemo(()=>{if(!s)return null;const te=re.slice((Y-1)*q,Y*q),ue=new Map;for(const{item:Ce,label:ge}of te)ue.has(ge)||ue.set(ge,[]),ue.get(ge).push(Ce);return[...ue.entries()].map(([Ce,ge])=>({label:Ce,items:ge}))},[s,re,Y,q]);o.useEffect(()=>{W(1)},[K,L,ne,r]);const Z=ne>0?n.jsxs("div",{className:"word-search-result-block__toolbar",children:[n.jsx(pn,{size:40,options:z,value:P,onChange:M,ariaLabel:h("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),n.jsx(pn,{size:40,options:V,value:L,onChange:$,ariaLabel:h("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),n.jsx(cr,{page:Y,totalPages:le,onChange:W})]}):void 0,Q=te=>{u&&u(te)},me=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:g?sf(a):a})]}):void 0,De=t!==void 0&&t>0&&c!==void 0&&a?h("wordSearch.resultDisc",{unit:g?uf(a):a,max:c,selected:l.length}):void 0,be=f??De;return n.jsxs(pa,{type:v,className:we("word-search-result-block",C),children:[n.jsxs("div",{className:"word-search-result-block__inner",children:[(me||Z||be)&&n.jsxs("div",{className:"word-search-result-block__head",children:[n.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&n.jsx(at,{icon:e,className:"word-search-result-block__head-icon"}),me&&n.jsx("span",{className:"word-search-result-block__title h3",children:me})]}),Z&&n.jsx("div",{className:"word-search-result-block__head-actions",children:Z}),be&&n.jsx("div",{className:"word-search-result-block__head-disc body-3",children:be})]}),(s?s.length===0:i.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.")}),y&&n.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:y})]}),s?(ke??[]).map(te=>n.jsx("div",{className:"word-search-result-block__group",children:n.jsx("div",{className:"word-search-result-block__items",children:te.items.map(ue=>{const Ce=l.includes(ue.id);return n.jsx("div",{onMouseEnter:ge=>{b(ge.currentTarget),B(ue.words??[])},onMouseLeave:w,children:n.jsx(pe,{htmlType:"button",size:"word",align:"grid",label:(ue.words??[]).map(ge=>ge.label),subLabel:(ue.words??[]).some(ge=>ge.subLabel)?(ue.words??[]).map(ge=>ge.subLabel):void 0,selected:Ce,onClick:()=>Q(ue.id),minWidth:200})},ue.id)})})},te.label)):n.jsx("div",{className:"word-search-result-block__items",children:oe.map(te=>{const ue=l.includes(te.id);return n.jsx("div",{onMouseEnter:Ce=>{b(Ce.currentTarget),B(te.words??[])},onMouseLeave:w,children:n.jsx(pe,{htmlType:"button",size:"word",align:"grid",label:(te.words??[]).map(Ce=>Ce.label),subLabel:(te.words??[]).some(Ce=>Ce.subLabel)?(te.words??[]).map(Ce=>Ce.subLabel):void 0,selected:ue,onClick:()=>Q(te.id),minWidth:200})},te.id)})}),x&&k&&n.jsx(Yc,{words:x,anchorRect:k})]}),le>1&&n.jsx("div",{className:"word-search-result-block__pagination-bottom",children:n.jsx(cr,{page:Y,totalPages:le,onChange:W})}),(d||m)&&n.jsxs("div",{className:"word-search-result-block__actions",children:[d&&n.jsx(pe,{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}),m&&n.jsx("div",{onClick:l.length===0?p:void 0,children:n.jsx(pe,{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:m})})]})]})}function q7(e,t){return t.map(a=>{const r=typeof a=="string"?a:a.label,i=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:i}})}function U7({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:i=4,minCount:s=1,combinationSections:l,combinationSectionsForSlot:u,onSelect:c,placeholder:d="-",className:m,title:p,titleIcon:C,disc:y,showInfoButton:v=!0,onClearPhoneme:f,onSearch:h,onSearchEmpty:_,searchDisabled:g=!1,searchLabel:k,searchChecking:b=!1,pairMode:N=!1,sectionType:x="page",beforeSearchContent:B,beforeContent:w,afterContent:A,hideCountControl:D=!1,ordinal:E=!1}){const{t:O}=xe.useTranslation(),R=o.useMemo(()=>O("wordPairs.infoNotes",{returnObjects:!0}),[O]),K=o.useMemo(()=>Array.from({length:i-s+1},(S,j)=>{const I=s+j;return{key:String(I),label:O("wordPairs.count",{n:I})}}),[O,i,s]),M=o.useMemo(()=>O("wordPairs.ordinals",{returnObjects:!0}),[O]),L=o.useCallback(S=>E?O("wordPairs.phonemeOrdinalLabel",{ordinal:M[S-1]??S}):a===1?O("wordPairs.phonemeSingleLabel","\uC74C\uC808"):O("wordPairs.phonemeN",{n:S}),[E,M,a,O]),$=o.useCallback(S=>E?O("wordPairs.phonemeContrastOrdinalLabel",{ordinal:M[S-1]??S}):a===1?O("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):O("wordPairs.phonemeContrast",{n:S}),[E,M,a,O]),G=o.useCallback((S,j)=>j?n.jsxs(n.Fragment,{children:[S,n.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):S,[]),{anchorRect:W,toggleAt:H,close:U}=Sa(),P=o.useCallback(S=>r(Number(S)),[r]),z=ln("(max-width: 767px)"),V=o.useCallback(S=>q7(S,e).map(({label:j,value:I,displayLabel:q})=>{const re=!!I&&I!=="\uC5C6\uC74C";return n.jsxs("span",{className:we("phoneme-select-block__cell-jamo-part",I?"":"phoneme-select-block__cell-jamo-part--empty",re?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[n.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${I==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:I==="\uC5C6\uC74C"?"x":I||d}),re&&n.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:q??j})]},j)}),[e,d]),F=n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-tooltip-ignore":!0,children:n.jsx(pe,{htmlType:"button",size:40,type:z?"dot":void 0,icon:"info",label:z?void 0:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:W?"is-selected":void 0,"aria-expanded":!!W,"aria-haspopup":"dialog",onClick:S=>H(S.currentTarget)})}),W&&n.jsx(Gn,{title:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:R,anchorRect:W,onClose:U})]});return n.jsxs(pa,{type:x,title:p,icon:C,disc:y,action:v?F:void 0,className:we("phoneme-select-block",m),children:[w,!D&&n.jsx("div",{className:"phoneme-select-block__controls",children:n.jsx(gn,{options:K,value:String(a),onChange:P,size:40,ariaLabel:O("wordPairs.countLabel","\uC74C\uC18C \uAC1C\uC218"),className:"phoneme-select-block__count-control"})}),n.jsx("div",{className:"phoneme-select-block__cells",children:N?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((S,j)=>{const I=t[j*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:V(I)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(j+1)})]},j)})}),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((S,j)=>{const I=t[j*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:V(I)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:$(j+1)})]},j)})})]}):t.map((S,j)=>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:V(S)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(j+1)})]},j))}),(l||u)&&n.jsx("div",{className:"phoneme-select-block__panels",children:n.jsx("div",{className:"phoneme-select-block__detail",children:N?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((S,j)=>{const I=t[j*2]??{};return n.jsx(Dn,{title:G(L(j+1),j===0),sections:u?u(I,j*2):l,selected:I,onSelect:c?.(j*2),align:"newline"},j)})}),n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((S,j)=>{const I=t[j*2+1]??{};return n.jsx(Dn,{title:$(j+1),sections:u?u(I,j*2+1):l,selected:I,onSelect:c?.(j*2+1),align:"newline"},j)})})]}):t.map((S,j)=>n.jsx(Dn,{title:G(L(j+1),j===0),sections:u?u(S,j):l,selected:S,onSelect:c?.(j),align:"newline"},j))})}),B&&n.jsx("div",{className:"phoneme-select-block__before-search",children:B}),(f||h||b)&&(()=>{const S=t.every(j=>{const I=UC(j);return Object.entries(I).every(([q,re])=>!re||q==="coda"&&re===xi)});return n.jsxs("div",{className:"phoneme-select-block__search-row",onClick:S?_:void 0,children:[f&&n.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:O("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:S,onClick:S?void 0:f}),h?n.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:b?n.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:k??O("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:S||g||b,onDisabledClick:b?()=>{}:void 0,"aria-busy":b||void 0,onClick:h}):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:k??O("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),A]})}function G7({title:e,sections:t,selected:a,onSelect:r,collapsible:i,defaultCollapsed:s,collapsed:l,onCollapsedChange:u,headerSummary:c,headerAction:d,className:m}){const{t:p}=xe.useTranslation();return n.jsx(Dn,{className:m,title:e??p("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,collapsible:i,defaultCollapsed:s,collapsed:l,onCollapsedChange:u,headerSummary:c,headerAction:d,align:"inline"})}function K7({title:e,headerAction:t,sections:a,selected:r,onSelect:i,className:s}){const{t:l}=xe.useTranslation();return a.length===0?null:n.jsx(Dn,{className:s,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:i,align:"newline"})}function Y7({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:i,positionCount:s,onPositionCountChange:l,inputMode:u,onInputModeChange:c,className:d}){const{t:m}=xe.useTranslation(),p={searchMode:m("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:m("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:m("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:m("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:m("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:m("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:m("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:m("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:m("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:m("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:m("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},C=h=>m("wordPairs.count",{n:h}),y=[{label:p.searchMode,items:[p.include,p.pick,p.explicit],display:"segmented",labelAction:n.jsx(Ra,{title:m("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[m("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),m("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),m("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:p.phonemeOrder,items:[p.orderAny,p.orderMatch],display:"segmented",labelAction:n.jsx(Ra,{items:m("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:p.count,items:[C(1),C(2)],display:"segmented"},{label:p.inputMode,items:[p.charInput,p.pronInput],display:"segmented",labelAction:n.jsx(Ra,{title:m("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[m("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),m("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],v={[p.searchMode]:t==="explicit"?p.explicit:t==="pick"?p.pick:p.include,[p.phonemeOrder]:r==="ordered"?p.orderMatch:p.orderAny,[p.count]:C(s),[p.inputMode]:u==="phoneme"?p.pronInput:p.charInput},f=(h,_)=>{_===p.searchMode?a(h===p.explicit?"explicit":h===p.pick?"pick":"include"):_===p.phonemeOrder?i(h===p.orderMatch?"ordered":"unordered"):_===p.count?l(h===C(2)?2:1):_===p.inputMode&&c(h===p.pronInput?"phoneme":"word")};return n.jsx(Dn,{className:d,title:e??m("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:y,selected:v,onSelect:f,align:"inline"})}function Z7(e){const{title:t,items:a,columns:r,resizeStorageKey:i,gridTemplateColumns:s,mobileGridTemplateColumns:l,searchPlaceholder:u,searchFn:c,defaultSortKey:d,defaultSortAsc:m=!0,selectedId:p,selectedIds:C,onSelect:y,onClose:v,pageSizeOptions:f=[10,25,50,100],initialPageSize:h,emptyText:_,noMatchText:g,countLabel:k,topContent:b,className:N=""}=e,{t:x}=xe.useTranslation(),B=u??x("common.search","\uAC80\uC0C9"),w=_??x("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),A=g??x("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"),[D,E]=o.useState(""),[O,R]=o.useState(d??r[0]?.key??""),[K,M]=o.useState(m),[L,$]=o.useState(String(h??f[0]??10)),[G,W]=o.useState(1);o.useEffect(()=>{W(1)},[D,L]);const H=c!==null,U=o.useCallback((ne,le)=>{if(!le)return!0;const Y=le.toLowerCase();return r.some(oe=>{const ke=ne[oe.key];return ke==null?!1:String(ke).toLowerCase().includes(Y)})},[r]),P=c??U,z=o.useMemo(()=>{const ne=H?a.filter(le=>P(le,D)):a;return O?[...ne].sort((le,Y)=>{const oe=le[O],ke=Y[O];return oe===ke?0:bo(oe,ke,K)}):ne},[a,D,O,K,H,P]),V=Math.max(1,Math.ceil(z.length/Number(L)));G>V&&W(V);const F=Math.min(G,V),S=z.slice((F-1)*Number(L),F*Number(L)),j=o.useCallback(ne=>{O===ne?M(le=>!le):(R(ne),M(!0)),W(1)},[O]),I=o.useMemo(()=>{if(typeof k=="function"){const ne=z.length,le=k(ne);if(typeof le=="string"){const Y=le.lastIndexOf(String(ne));if(Y>=0)return{prefix:le.slice(0,Y),suffix:le.slice(Y+String(ne).length)}}return{label:le}}if(typeof k=="string"&&k.includes("{n}")){const[ne,le]=k.split("{n}");return{prefix:ne,suffix:le}}return{prefix:x("common.totalCountPrefix","\uCD1D "),suffix:x("common.totalCountSuffix","\uAC1C")}},[k,z.length,x]),q=o.useMemo(()=>r.map(ne=>({label:ne.label,onClick:ne.sortable!==!1?()=>j(ne.key):void 0,className:ne.className,sortDir:ne.sortable!==!1&&O===ne.key?K?"asc":"desc":null})),[r,O,K,j]),re=o.useMemo(()=>f.map(ne=>({value:String(ne),label:x("common.pageSizeLabel",{n:ne})})),[f,x]);return n.jsxs(Fn,{className:`popup-list ${N}`,title:t,onClose:v,children:[b,"label"in I&&n.jsx("p",{className:"toolbar__count body-1",children:I.label}),n.jsx(Do,{count:"label"in I?void 0:{value:z.length,prefix:I.prefix,suffix:I.suffix},search:H?{value:D,onChange:E,placeholder:B}:void 0,pageSize:{options:re,value:L,onChange:$},pagination:{page:F,total:V,onChange:W}}),n.jsx(Oo,{size:"medium",gridTemplateColumns:s,mobileGridTemplateColumns:l,resizable:!0,resizeStorageKey:i,fields:q,items:S,onRowClick:y,renderRow:ne=>{const le=C!=null?ne.id!=null&&C.has(ne.id):p!=null&&ne.id===p;return r.map(Y=>({content:Y.render?Y.render(ne):ne[Y.key]??"",className:we(Y.className,le&&"popup-list__row--selected")}))},empty:H&&D!==""&&a.length>0?A:w})]})}function Zc(e){const{title:t,message:a,topContent:r,details:i,children:s,confirmLabel:l,cancelLabel:u,hideCancel:c=!1,extraAction:d,confirmVariant:m="main",confirmDisabled:p=!1,onConfirm:C,closeOnConfirm:y=!0,onClose:v,inline:f,size:h="small",className:_,initialFocus:g="close"}=e,{t:k}=xe.useTranslation(),b=o.useRef(null);o.useEffect(()=>{if(f||g==="close")return;const D=b.current?.closest(".popup-panel"),E=Array.from(D?.querySelectorAll(".popup-footer--buttons button")??[]),O=g==="confirm"?E[E.length-1]:c?void 0:E[d?1:0];O&&!O.disabled&&O.focus()},[]);const N=o.useRef(!1),[x,B]=o.useState(!1),w=D=>{let E=!1;return{close:()=>{E=!0,D()},didClose:()=>E}},A=async D=>{if(N.current)return;N.current=!0;const E=typeof document<"u"?document.activeElement:null;B(!0);let O=!1;try{O=await D()}catch(R){typeof console<"u"&&console.error(R)}finally{O||(N.current=!1,B(!1),requestAnimationFrame(()=>{const R=document.activeElement;(!R||R===document.body)&&E?.isConnected&&E.focus()}))}};return n.jsxs(Fn,{title:t,onClose:v,closeDisabled:x,inline:f,size:h,className:we("confirm-popup",r!=null&&"confirm-popup--has-top",_),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||x,onClick:async({closeWithAnimation:D})=>{await A(async()=>{const E=w(D);await d.onClick(E.close);const O=d.closeOnClick??!0;return O&&D(),O||E.didClose()})}}]:[],...c?[]:[{label:u??k("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:x,onClick:({closeWithAnimation:D})=>D()}],{label:l??k("common.confirm","\uD655\uC778"),variant:m,disabled:p||x,onClick:async({closeWithAnimation:D})=>{await A(async()=>{const E=w(D);return await C(E.close),y&&D(),y||E.didClose()})}}],children:[r!=null&&n.jsx("div",{className:"confirm-popup__top",children:r}),i&&i.length>0&&n.jsx(wr,{children:i.map((D,E)=>n.jsx(Sn,{label:D.label,children:n.jsx("span",{className:"panel-row__text body-2",children:D.value})},E))}),n.jsx("p",{ref:b,className:"body-2 confirm-popup__message",children:a}),s]})}function X7(e,t,a={}){const{t:r}=xe.useTranslation(),[i,s]=o.useState(!1),l=o.useRef(!1),u=o.useCallback(()=>{l.current=!0},[]),c=o.useCallback(()=>l.current?(l.current=!1,!0):e?(s(!0),!1):!0,[e]),d=i?n.jsx(Zc,{title:a.title??r("common.discardConfirm.title","\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?"),message:a.message??r("common.discardConfirm.body","\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4."),confirmLabel:a.confirmLabel??r("common.discardConfirm.confirm","\uC785\uB825 \uCDE8\uC18C"),confirmVariant:"danger",onConfirm:()=>{s(!1),t()},onClose:()=>s(!1)}):null;return{beforeClose:c,discardPopup:d,allowClose:u}}function J7({onApply:e,onCancel:t}){const{t:a}=xe.useTranslation(),[r,i]=o.useState(""),[s,l]=o.useState(!1),[u,c]=o.useState(null),d=o.useRef(null),m=o.useId();o.useEffect(()=>{d.current?.focus()},[]);const p=o.useCallback(async v=>{const f=r.trim();if(f){l(!0),c(null);try{await e(f),v()}catch(h){c(Ai(h)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),C=o.useCallback((v,f)=>{v.key==="Enter"&&!v.nativeEvent.isComposing&&p(f)},[p]),y=v=>{i(v.target.value),c(null)};return n.jsx(Fn,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:t,closeDisabled:s,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:s,onClick:({closeWithAnimation:v})=>v()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||s,onClick:({closeWithAnimation:v})=>{p(v)}}],children:({closeWithAnimation:v})=>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"),"aria-invalid":u?!0:void 0,"aria-errormessage":u?m:void 0,"aria-describedby":u?m:void 0,placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:y,onKeyDown:f=>C(f,v),disabled:s,autoComplete:"off",spellCheck:!1}),u&&n.jsx("p",{id:m,className:"coupon-input-popup__error caption-1",role:"alert",children:u})]})})}const Xc=["var(--color-main)","var(--color-sub)"],Q7=2e3;function e8(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 ys({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:i,trigger:s=0}){const l=o.useMemo(()=>{const f=Math.floor(t/2),h=t-f,_=(g,k)=>Array.from({length:g}).map((b,N)=>{const x=6+Math.random()*12,B=Math.round(Math.min(18,x*Math.min(1.5,1+r*.4))),w=Xc[Math.floor(Math.random()*Xc.length)],A=Math.random()*300,D=(360+Math.random()*260)*r*1.2,E=(k==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,O=Math.cos(E)*D,R=Math.sin(E)*D*1.35,K=Math.random()*720-360,M=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),L=Math.random()>.7?"50%":"3px";return{id:`${k}-${N}`,side:k,size:B,color:w,delay:A,vx:O,vy:R,angularVel:K,life:M,borderRadius:L}});return[..._(f,"left"),..._(h,"right")]},[t,r]),u=o.useRef(null),c=o.useRef({}),d=o.useRef(null),m=o.useRef(i);o.useEffect(()=>{m.current=i},[i]);const p=o.useRef(null),C=o.useRef(null),y=()=>{if(typeof document>"u")return null;let f=document.querySelector("[data-ihab-effect-root]");return f||(f=document.createElement("div"),f.className="app-effect",f.dataset.ihabEffectRoot="",f.style.position="fixed",f.style.inset="0",f.style.pointerEvents="none",f.style.zIndex="99998",document.body.appendChild(f)),f};if(typeof document<"u"&&C.current==null&&(C.current=y()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const U=setTimeout(()=>m.current?.(),0);return()=>clearTimeout(U)}const f=1200,h=performance.now(),_=C.current&&C.current!==document.body?C.current.getBoundingClientRect():null,g=Math.max(60,(window.innerHeight||800)*.05),k=U=>Math.max(40,(U||window.innerWidth)*.02),b=_?.width||window.innerWidth||375,N=_?.height||window.innerHeight||812,x=U=>{const P=[...U].sort((z,V)=>z-V);return P[Math.floor(P.length/2)]||1},B=x(l.map(U=>Math.abs(U.vy))),w=x(l.map(U=>Math.abs(U.vx))),A=Math.sqrt(2*f*(N*.72+g))/B,D=B*A/f,E=b*.5/(w*D),O=(U,P,z)=>Math.min(z,Math.max(P,U)),R=O(A,.8,2.4),K=O(E,.7,2.2),M=a>0?a/Q7:1,L=l.map(U=>({...U,life:U.life*M,vx:U.vx*K,vy:U.vy*R,startTime:h+U.delay,ended:!1})),$=_?{x:_.left-k(_.width),y:_.top+_.height+g}:{x:-k(window.innerWidth),y:window.innerHeight+g},G=_?{x:_.left+_.width+k(_.width),y:_.top+_.height+g}:{x:window.innerWidth+k(window.innerWidth),y:window.innerHeight+g},W=U=>{let P=!1;for(const z of L){const V=c.current[z.id];if(!V||!V)continue;if(U<z.startTime){V.style.display="none",P=!0;continue}if(!z._inited){const oe=z.side==="left"?$.x:G.x,ke=z.side==="left"?$.y:G.y;V.style.left=`${oe}px`,V.style.top=`${ke}px`,V.style.transform="translate3d(0px, 0px, 0)",V.style.display="block",V.style.zIndex="100000",typeof z.color=="string"&&z.color.startsWith("var(")&&(V.style.background=e8(V,z.color)??"#FF0060"),z._inited=!0}const F=(U-z.startTime)/1e3;if(F<0)continue;const S=z.life/1e3;if(F>=S){V.style.opacity="0",V.style.display="none",z.ended=!0;continue}P=!0;const j=z.side==="left"?$.x:G.x,I=z.side==="left"?$.y:G.y,q=j+z.vx*F,re=I+z.vy*F+.5*f*F*F,ne=(z.angularVel||0)*F,le=q-j,Y=re-I;V.style.transform=`translate3d(${le}px, ${Y}px, 0) rotate(${ne}deg)`,V.style.opacity=`${Math.max(0,1-F/S)}`}P?d.current=requestAnimationFrame(W):m.current?.()};d.current=requestAnimationFrame(W);const H=setTimeout(()=>{try{if((C.current?C.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const U=document.createElement("div");U.className="party-container",U.style.position="fixed",U.style.inset="0",U.style.pointerEvents="none",U.style.overflow="visible",U.style.zIndex="2147483647";for(const P of l){const z=document.createElement("span");z.className=`confetti confetti--${P.side}`,z.setAttribute("aria-hidden","true"),z.style.display="none",z.style.position="fixed",z.style.left="0px",z.style.top="0px",z.style.width=`${P.size}px`,z.style.height=`${Math.max(4,P.size*.6)}px`,z.style.background=P.color,z.style.borderRadius=P.borderRadius,z.style.transform="translate3d(0,0,0)",z.style.opacity="0",U.appendChild(z),c.current[P.id]=z}(document.body||C.current).appendChild(U),p.current=U}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(H),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,a,s,l]),!e)return null;const v=n.jsx("div",{className:"party-container",ref:u,children:l.map(f=>n.jsx("span",{"aria-hidden":!0,ref:h=>{c.current[f.id]=h},className:`confetti confetti--${f.side}`,style:{width:`${f.size}px`,height:`${Math.max(4,f.size*.6)}px`,background:f.color,borderRadius:f.borderRadius}},`${f.id}-${s}`))});return typeof document<"u"?en.createPortal(v,C.current||document.body):v}const vs=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function t8({trigger:e=0,active:t=!1}){const[a,r]=o.useState(null);o.useEffect(()=>{if(typeof window>"u")return;const s=l=>{const u=l.detail??{};r(c=>({n:(c?.n??0)+1,count:vs(u.count),strength:vs(u.strength),duration:vs(u.duration)}))};return window.addEventListener("party:trigger",s),()=>window.removeEventListener("party:trigger",s)},[]);const i=o.useCallback(()=>r(null),[]);return n.jsxs(n.Fragment,{children:[n.jsx(ys,{active:t,trigger:e}),a&&n.jsx(ys,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:i})]})}function n8({title:e,sub:t,rightAction:a,titleAction:r,badge:i,badgeVariant:s="default",documentTitle:l,onBack:u,backLabel:c,wrap:d=!1}){const{t:m}=xe.useTranslation();L4(typeof e=="string"?e:l??null);const p=c??m("common.back","\uB4A4\uB85C");return n.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[n.jsxs("div",{className:"page-title__main",children:[n.jsxs("div",{className:"page-title__title-row",children:[u&&n.jsx(pe,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:p,showTooltipInfo:p,onClick:u}),n.jsx("h1",{className:"page-title__title h1",children:e}),i&&n.jsx("div",{className:"page-title__badge",children:n.jsx(kt,{label:i,size:"small",variant:s,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 a8(e){return e??""}const Jc=o.createContext({words:[],loading:!1});function r8(){return o.useContext(Jc)}function o8({words:e,loading:t,error:a,statusMessage:r,localVersion:i,remoteVersion:s,progress:l,clearAndRefetch:u,checkRemoteVersion:c,children:d}){const m=o.useMemo(()=>({words:e,loading:t,error:a,statusMessage:r,localVersion:i,remoteVersion:s,progress:l,clearAndRefetch:u,checkRemoteVersion:c}),[e,t,a,r,i,s,l,u,c]);return n.jsx(Jc.Provider,{value:m,children:d})}function s8({items:e,actions:t,columns:a,flat:r=!1,className:i,style:s}){const l=a??e.length;return n.jsx("section",{className:we("summary-strip",r&&"summary-strip--flat",i),style:{"--summary-strip-cols":String(l),...s},children:n.jsxs("div",{className:"summary-strip__row",children:[n.jsx("div",{className:"summary-strip__items",children:e.map((u,c)=>n.jsxs("div",{className:"summary-strip__item",children:[n.jsx("p",{className:"summary-strip__label caption-1",children:u.label}),n.jsx("p",{className:"summary-strip__value body-3b",title:typeof u.value=="string"||typeof u.value=="number"?String(u.value):void 0,children:u.value})]},c))}),t&&n.jsx("div",{className:"summary-strip__actions",children:t})]})})}const i8=(e,t)=>`${e} / ${t}`;function l8({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:i=i8,pageWidth:s,pageHeight:l,margin:u,className:c,style:d}){const{t:m}=xe.useTranslation(),p=o.useRef(null),C=o.useRef(null),y=o.useRef(null),v=o.useRef(null),[f,h]=o.useState(null),[_,g]=o.useState(!1);o.useEffect(()=>{const M=p.current;if(!M)return;const L=()=>g(M.scrollWidth>M.clientWidth+1);if(L(),typeof ResizeObserver>"u")return;const $=new ResizeObserver(L);return $.observe(M),()=>$.disconnect()},[f]);const k=e.map(M=>`${M.id}\0${M.section??""}\0${M.group??""}`).join(""),b=f&&f.shape===k?f.pages:null,[N,x]=o.useState(0);o.useEffect(()=>{const M=v.current;if(!M||typeof ResizeObserver>"u")return;const L=new ResizeObserver(()=>x(M.offsetHeight));return L.observe(M),()=>L.disconnect()},[]);const[B,w]=o.useState(0);o.useEffect(()=>{const M=C.current;if(!M||typeof ResizeObserver>"u")return;let L=null;const $=typeof requestAnimationFrame=="function"?H=>requestAnimationFrame(H):H=>setTimeout(H,16),G=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:H=>clearTimeout(H),W=new ResizeObserver(()=>{L==null&&(L=$(()=>{L=null,w(H=>H+1)}))});return Array.from(M.children).forEach(H=>W.observe(H)),()=>{W.disconnect(),L!=null&&G(L)}},[k]),o.useLayoutEffect(()=>{const M=C.current,L=v.current;if(!M||!L)return;const $=S=>S.getBoundingClientRect().height||S.offsetHeight,G=new Map;y.current?.querySelectorAll("[data-chrome-section]").forEach(S=>{G.set(S.dataset.chromeSection??"",$(S))});const W=S=>$(L)-(G.get(S??"")??0),H=Array.from(M.children).map(S=>$(S)),U=[];e.forEach((S,j)=>{const I=U[U.length-1],q=I?e[I[0]]:void 0;q&&S.group!=null&&q.group===S.group&&q.section===S.section?I.push(j):U.push([j])});const P=[];let z=[],V=0;const F=()=>{z.length&&P.push(z),z=[],V=0};U.forEach(S=>{const j=S.reduce((q,re)=>q+H[re],0),I=W(e[S[0]].section);z.length&&e[z[0]].section!==e[S[0]].section&&F(),j>I?S.forEach(q=>{z.length&&V+H[q]>I+.01&&F(),z.push(q),V+=H[q]}):(z.length&&V+j>I+.01&&F(),S.forEach(q=>z.push(q)),V+=j)}),F(),h(S=>S&&S.shape===k&&JSON.stringify(S.pages)===JSON.stringify(P)?S:{shape:k,pages:P})},[k,N,s,l,u,B]);const A=Ao,D=A,E=r??n.jsxs(n.Fragment,{children:[n.jsx("img",{src:D,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),O=(M,L,$)=>({header:n.jsxs("div",{className:"report-doc__header",children:[n.jsx("h2",{className:"report-doc__title h3b",children:$!=null&&t?.[$]||null}),a]}),footer:n.jsxs("div",{className:"report-doc__footer caption-1",children:[n.jsx("span",{className:"report-doc__footer-left",children:E}),n.jsx("span",{className:"report-doc__page-no",children:i(M,L)})]})}),R=Array.from(new Set(e.map(M=>M.section??""))),K={...s?{"--report-page-w":s}:null,...l?{"--report-page-h":l}:null,...u?{"--report-margin":u}:null,...d};return n.jsxs("div",{ref:p,className:we("report-doc",c),style:K,tabIndex:_?0:void 0,role:_?"group":void 0,"aria-label":_?m("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[n.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[n.jsx("div",{ref:v,className:"report-doc__ruler"}),n.jsx("div",{ref:y,children:R.map(M=>{const L=O(1,1,M||void 0);return n.jsxs("div",{"data-chrome-section":M,children:[L.header,L.footer]},M)})}),n.jsx("div",{ref:C,className:"report-doc__measure-blocks",children:e.map(M=>n.jsx("div",{children:M.content},M.id))})]}),b&&n.jsx("div",{className:"report-doc__pages",children:b.map((M,L)=>{const{header:$,footer:G}=O(L+1,b.length,e[M[0]].section);return n.jsxs("section",{className:"report-doc__page",children:[$,M.map(W=>n.jsx("div",{children:e[W].content},e[W].id)),G]},L)})})]})}function u8({title:e,fields:t,columns:a=4,className:r,style:i}){return n.jsxs("div",{className:we("report-info",r),style:{"--report-info-cols":String(a),...i},children:[e&&n.jsx("p",{className:"report-info__title h5b",children:e}),n.jsx("div",{className:"report-info__grid",children:t.map((s,l)=>n.jsxs("div",{className:"report-info__field body-2",children:[n.jsx("span",{className:"report-info__label body-3",children:s.label}),n.jsx("span",{className:"report-info__value",children:s.value})]},l))})]})}const Qn=new Map;let Sr=null;const c8=12;function d8(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 Tr(){const e=new Map;for(const t of Qn.keys()){if(!t.isConnected)continue;const a=d8(t),r=e.get(a)??[];r.push(t),e.set(a,r)}for(const t of e.values()){t.sort((r,i)=>r.compareDocumentPosition(i)&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 i=r.getBoundingClientRect().height;i>0&&(a+=i+c8)}}}function p8(e){return typeof window>"u"?()=>{}:(Qn.set(e,(Qn.get(e)??0)+1),Qn.get(e)===1&&typeof ResizeObserver<"u"&&(Sr??(Sr=new ResizeObserver(()=>Tr())),Sr.observe(e)),Tr(),()=>{const t=(Qn.get(e)??1)-1;if(t>0){Qn.set(e,t),Tr();return}Qn.delete(e),Sr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),Tr()})}function m8({title:e,message:t,actionLabel:a,onAction:r,icon:i,onClose:s,className:l=""}){const{t:u}=xe.useTranslation(),c=a??u("common.update","\uC5C5\uB370\uC774\uD2B8"),d=o.useRef(null),m=o.useRef(!1);return o.useLayoutEffect(()=>{const p=d.current,C=p?.parentElement?.closest(".update-alert-stack")??p,y=C?p8(C):null;return()=>{y?.(),m.current&&p&&p.contains(document.activeElement)&&nr(p)}},[]),n.jsxs("div",{ref:d,className:we("update-alert",l),role:"alert",children:[s&&n.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{m.current=!0,s()},"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"}),n.jsxs("div",{className:"update-alert__top",children:[n.jsx("div",{className:"update-alert__icon",children:i??n.jsx(js,{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(pe,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:c})]})}function h8({title:e,titleLevel:t=3,description:a,topActions:r,children:i,footerLeft:s,footerRight:l,ariaLabel:u,onClick:c,draggable:d,onDragStart:m,onDragEnd:p,className:C}){const y=t?`h${t}`:"div",v=s!=null||l!=null,f=i!=null&&i!==!1,h=o.useCallback(_=>{c&&_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),c())},[c]);return n.jsxs("div",{className:we("training-card",c?"training-card--clickable":"",C),onClick:c,onKeyDown:c?h:void 0,role:c?"button":void 0,"aria-label":c?u??(typeof e=="string"?e:void 0):void 0,tabIndex:c?0:void 0,draggable:d,onDragStart:m,onDragEnd:p,children:[n.jsxs("div",{className:"training-card__header",children:[n.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?n.jsx(y,{className:"training-card__title h4",children:e}):e,r!=null&&n.jsx("div",{className:"training-card__top-actions",onClick:_=>_.stopPropagation(),children:r})]}),a!=null?typeof a=="string"?n.jsx("p",{className:"training-card__description body-3",children:a}):a:n.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),f&&n.jsx("div",{className:"training-card__body",children:i}),v&&n.jsxs("div",{className:"training-card__footer",children:[s!=null&&n.jsx("div",{className:"training-card__footer-left",children:s}),l!=null&&n.jsx("div",{className:"training-card__meta",children:l})]})]})}function C8({title:e,titleLevel:t=3,count:a,collapsed:r=!1,onToggle:i,beforeSort:s,sort:l,actions:u,empty:c=!1,emptyContent:d,dragOver:m=!1,onDragOver:p,onDragLeave:C,onDrop:y,children:v,className:f}){const{t:h}=xe.useTranslation(),_=o.useId(),g=t?`h${t}`:"span",k=i!=null,b=we("training-card-group",m&&"training-card-group--dragover",r&&"training-card-group--collapsed",k&&"training-card-group--collapsible",f);return n.jsxs("div",{className:b,onDragOver:p,onDragLeave:C,onDrop:y,role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?_:void 0,children:[n.jsxs("header",{className:"training-card-group__header",children:[k&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:r?"chevron-right":"chevron-down",ariaLabel:typeof e=="string"&&e?r?h("common.expandFor",{name:e}):h("common.collapseFor",{name:e}):r?h("common.expand","\uD3BC\uCE58\uAE30"):h("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!r,onClick:i}),typeof e=="string"?n.jsx(g,{id:_,className:"training-card-group__title h5b",children:e}):e,a!==void 0&&n.jsx("span",{className:"training-card-group__count body-3b",children:a}),(s!=null||l||u!=null)&&n.jsxs("span",{className:"training-card-group__actions",onClick:N=>N.stopPropagation(),children:[s,l&&n.jsx(pn,{size:40,options:l.options,value:l.value,placeholder:l.placeholder,onChange:l.onChange,ariaLabel:typeof e=="string"&&e?h("common.sortFor",{name:e}):void 0}),u]})]}),!r&&(c?n.jsx("div",{className:"training-card-group__empty body-3",children:d}):n.jsx("div",{className:"training-card-group__grid",children:v}))]})}const f8="speechear:saved_word_tables";function g8(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 b8(){try{const e=localStorage.getItem(f8);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(g8):[]}catch{return[]}}function Qc(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 xs(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function y8(e){const t=new Set;return e.map(a=>{let r=a.id;for(let i=2;t.has(r);i++)r=`${a.id}~${i}`;return t.add(r),r===a.id?a:{...a,id:r}})}function v8({title:e,titleIcon:t,disc:a,filterTitle:r,filterCollapsible:i,filterDefaultCollapsed:s,filterCollapsed:l,onFilterCollapsedChange:u,filterHeaderSummary:c,brand:d,code:m,items:p,onSaveComplete:C,onLoad:y,onRemoveItem:v,onReset:f,resetLabel:h,saveButtonLabel:_,secondarySaveButtonLabel:g,onReorder:k,showCellCount:b,onAddItem:N,className:x,renderSavePopup:B,renderWordSearch:w,hideControls:A,saveOnly:D,tableName:E,nameValue:O,onNameChange:R,descriptionValue:K,onDescriptionChange:M,namePlaceholder:L,descriptionPlaceholder:$,existingNames:G,editingName:W,onCancel:H,initialItemsPerPage:U,renderCellAction:P,actionsLeftExtra:z}){const{t:V}=xe.useTranslation(),F=h??V("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),S=p===void 0,j=!!R,[I,q]=o.useState([]),re=(O??"").trim(),ne=re||(L??"").trim(),le=(K??"").trim()||($??"").trim(),Y=(G??[]).map(ae=>ae.trim().toLowerCase()),oe=[W?.trim().toLowerCase(),...I].filter(ae=>!!ae),ke=[...Y];for(const ae of oe){const ye=ke.indexOf(ae);ye!==-1&&ke.splice(ye,1)}const Z=re!==""&&ke.includes(re.toLowerCase()),[Q,me]=o.useState(Array(4).fill(null)),[De,be]=o.useState(4),[te,ue]=o.useState(null),Ce=Q.slice(0,De),ge=!!d?.show,[fe,$e]=o.useState(!0),[ze,Te]=o.useState(!0),Fe=d&&{...d,top:fe,bottom:ze},[qe,mt]=o.useState("landscape"),[ct,rt]=o.useState(["image","word","standardPron"]),[Ct,Ae]=o.useState("show"),[We,_e]=o.useState(!0),[Ue,Be]=o.useState(!0),je=o.useRef(null),Se=o.useRef([]),[Xe,Qe]=o.useState(U==="all"?Number.POSITIVE_INFINITY:U??8),[dt,ht]=o.useState("right"),[wt,ft]=o.useState(!1),[Nt,gt]=o.useState(!1),{toastMessage:it,toastType:Ke,showWarning:se,clearToast:Ne}=Tl("warning"),Ve=o.useCallback(()=>ue(null),[ue]);N&&!S&&!b&&St("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[nt,Ie]=o.useState(()=>Math.max(p?.length??1,1)),Ge=S?De:b?Math.max(nt,p?.length??1,1):Math.max(p?.length??0,1),{width:bt,height:Re}=ma[qe],tt=!S&&!b,xt=p?.length??0,Lt=Math.min(Xe,Math.max(xt,1)),et=tt?Lt:Ge,ot=tt?Iu(p??[],et):null,lt=!!ot&&ot.length>1,st=S?Ce.some(ae=>ae!==null&&ae.length>1):(p??[]).some(ae=>(ae.words??[]).length>1),jt=E?.trim()||`${Mi(Na())} ${st?V("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):V("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,Vt=o.useCallback(()=>lt?Se.current.filter(ae=>ae!==null):je.current?[je.current]:[],[lt]),{print:mn,openNewWindow:hn,downloadHtml:jn}=Qo({getElements:Vt,paperW:bt,paperH:Re,fileName:jt,onPopupBlocked:()=>{se(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."))}}),On=ae=>{be(ae),me(ye=>ye.length>=ae?ye:[...ye,...Array(ae-ye.length).fill(null)]),ue(null)},Hn=ae=>{me(ye=>{const Le=[...ye];return Le[ae]=null,Le}),te===ae&&ue(null)},Ft=ae=>{if(te===null)return;const ye=te;me(He=>{const ut=[...He];return ut[ye]=ae.length>0?ae:null,ut});const Le=Ce.findIndex((He,ut)=>ut>ye&&He===null);ue(Le!==-1?Le:null)},vn=S?Ce.some(ae=>ae?.some(ye=>!!ye.colloquialPronunciation)):(p??[]).some(ae=>(ae.words??[]).some(ye=>!!ye.colloquialLabel)),It=o.useMemo(()=>aa()?S?Q.slice(0,De).flatMap(ae=>(ae??[]).map(ye=>[ye.word,ye.homonum])):(p??[]).flatMap(ae=>(ae.words??[]).map(ye=>[ye.label,ye.homonum])):[],[S,Q,De,p]),[zt,Mn]=o.useState(!1);o.useEffect(()=>{if(It.length===0)return;let ae=!1;return Promise.all(It.map(([ye,Le])=>vi(ye,Le))).then(ye=>{ae||Mn(ye.some(Boolean))},()=>{}),()=>{ae=!0}},[It]);const on=It.length>0&&zt,xn=o.useMemo(()=>[...S||b?[{label:V("wordTable.filter.columns","\uCE78 \uC218"),items:P5.map(ae=>({value:`${ae}\uCE78`,displayLabel:V("wordTable.filter.column",{count:ae})})),display:"segmented"}]:[],...tt&&(p?.length??0)>0?[nc(V,{hasPairs:st,itemCount:xt})]:[],...lt?[F5(V)]:[]],[V,S,b,tt,p?.length,st,xt,lt]),Vn={...S||b?{[V("wordTable.filter.columns","\uCE78 \uC218")]:`${Ge}\uCE78`}:{},...tt&&(p?.length??0)>0?{[V(st?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Lt}\uAC1C`}:{},...lt?{[V("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:dt}:{}},_n=(ae,ye)=>{ye===V("wordTable.filter.columns","\uCE78 \uC218")?S?On(parseInt(ae)):Ie(parseInt(ae)):ye===V(st?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Qe(ac(parseInt(ae),xt)):ye===V("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&ht(rc(ae))},Wt=S?y8(Ce.filter(ae=>ae!==null&&ae.length>0).map(ae=>({id:xs(ae),words:ae.map(Qc)}))):p??[],$t=()=>{S&&me(ae=>ae.length>De?ae.slice(0,De):ae)},qt=(ae=!1)=>{if(gt(ae),j&&C){const ye=ne.trim().toLowerCase();ye&&q(Le=>Le.includes(ye)?Le:[...Le,ye]),C(ne,Wt,le||void 0,ae),$t();return}if(D&&C){C("",Wt,void 0,ae),$t();return}if(C){ft(!0);return}jn()},[Cn,Ot]=o.useState(!1),[sn,Dt]=o.useState(""),ie=sn.trim(),ve=ie!==""&&Y.includes(ie.toLowerCase()),Me=()=>{Dt(ne?V("wordTable.save.copyName",{name:ne,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),Ot(!0)},Je=()=>{!ie||ve||!C||(C(ie,Wt,le||void 0,!0),$t(),Ot(!1))},Oe=Wt.length===0,Ye=Oe||j&&(ne===""||Z),J=()=>{if(Oe){se(V("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(j&&ne===""){se(V("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}j&&Z&&se(V("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},de=n.jsx(ha,{items:Wt,orientation:qe,contentTypes:ct,cutLine:Ct,showOutline:We,showDivLine:Ue,count:Ge});return n.jsxs(n.Fragment,{children:[n.jsxs(pa,{type:"page",icon:t,title:e,disc:a,className:we("word-table-block",x),children:[Cn&&n.jsx(Fn,{size:"small",title:g??V("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>Ot(!1),footer:({closeWithAnimation:ae})=>n.jsxs(n.Fragment,{children:[n.jsx(pe,{htmlType:"button",size:48,type:"bar",label:V("common.cancel","\uCDE8\uC18C"),onClick:ae}),n.jsx(pe,{htmlType:"button",size:48,type:"bar",variant:"main",label:V("common.save","\uC800\uC7A5"),disabled:!ie||ve,onClick:Je})]}),children:n.jsx(Zn,{label:V("wordTable.save.nameLabel","\uC774\uB984"),value:sn,onChange:Dt,placeholder:V("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:Je,error:ve?V("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),wt&&C&&B?.({defaultName:typeof e=="string"?e:V("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:de,previewW:bt,previewH:Re,items:Wt,existingNames:b8().map(ae=>ae.name),saveAsNew:Nt,onSave:(ae,ye)=>{C(ae,Wt,ye,Nt),$t(),ft(!1)},onCancel:()=>ft(!1)}),(S||N)&&te!==null&&w?.({cellIndex:te,onConfirm:S?Ft:ae=>{if(N){const ye=ae[0];if(ye){const Le=new Set((p??[]).map(ut=>ut.id));let He=xs([ye]);for(let ut=2;Le.has(He);ut++)He=`${xs([ye])}~${ut}`;N({id:He,words:[Qc(ye)]})}}ue(null)},onClose:Ve}),!A&&n.jsx(Yo,{title:r,collapsible:i,defaultCollapsed:s,collapsed:l,onCollapsedChange:u,headerSummary:c,hasImage:on,hasColloquial:vn,contentTypes:ct,orientation:qe,showOutline:We,cutLine:Ct,showDivLine:Ue,setters:{setContentTypes:rt,setOrientation:mt,setShowOutline:_e,setCutLine:Ae,setShowDivLine:Be,setShowTopInfo:$e,setShowBottomInfo:Te},showCutLine:(tt?et:Ge)>1,showDivLine2:st,middleSections:xn,extraSelected:Vn,onExtraSelect:_n,showPaperBands:ge,showTopInfo:fe,showBottomInfo:ze}),lt&&ot?n.jsx("div",{className:"word-table-block__pages",children:ot.map((ae,ye)=>n.jsx(ha,{orientation:qe,contentTypes:ct,cutLine:Ct,showOutline:We,showDivLine:Ue,count:et,items:ae,onRemoveItem:v,onReorder:k&&((Le,He)=>k(Le+ye*et,He+ye*et)),renderCellAction:P&&((Le,He)=>P(Le+ye*et,He)),brand:Fe,code:m,contentRef:Le=>{Se.current[ye]=Le},pageNumber:{current:ye+1,total:ot.length},pageNumberPosition:dt},ye))}):n.jsx(ha,{orientation:qe,contentTypes:ct,cutLine:Ct,showOutline:We,showDivLine:Ue,count:Ge,items:S?void 0:p??[],editCells:S?Ce:void 0,activeCell:te,onActivateCell:S||N?ue:void 0,onRemoveCell:S?Hn:void 0,onRemoveItem:S?void 0:v,onReorder:S?void 0:k,renderCellAction:S?void 0:P,brand:Fe,code:m,showFillerAdd:!!N,contentRef:je}),!A&&!D&&(f||z!=null)&&n.jsxs("div",{className:"word-table-block__table-actions",children:[f&&n.jsx(pe,{htmlType:"button",size:48,type:"bar",label:F,onClick:f}),z]}),j&&!A&&n.jsxs(wr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[n.jsx(Sn,{variant:"custom",label:V("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:n.jsx(Zn,{required:!0,value:O??"",onChange:R,placeholder:L?L+V("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):V("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:V("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:Z?V("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===" ")&&!(O??"").trim()&&(L??"").trim()&&(ae.preventDefault(),R?.(L??""))}})}),n.jsx(Sn,{variant:"custom",label:V("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:n.jsx(Zn,{value:K??"",onChange:M,placeholder:$?$+V("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):V("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:V("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:ae=>{(ae.key==="Tab"&&!ae.shiftKey||ae.key===" ")&&!(K??"").trim()&&($??"").trim()&&(ae.preventDefault(),M?.($??""))}})})]})]}),!A&&n.jsxs("div",{className:"word-table-block__actions",children:[n.jsxs("div",{className:"word-table-block__actions-left",children:[!D&&y&&n.jsx(pe,{htmlType:"button",size:40,type:"bar",label:V("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:y}),!D&&n.jsx(pe,{htmlType:"button",size:40,type:"bar",label:V("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:hn})]}),n.jsxs("div",{className:"word-table-block__actions-right",children:[H&&n.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:V("common.cancel","\uCDE8\uC18C"),onClick:H}),!D&&n.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:V("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:mn}),g&&n.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:g,onClick:()=>j?Me():qt(!0),disabled:Oe,onDisabledClick:()=>{se(V("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),n.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",label:_??V("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>qt(!1),disabled:Ye,onDisabledClick:J})]})]}),n.jsx(ca,{message:it,type:Ke,onClose:Ne})]})}function ed({items:e,className:t}){const a=e.length,r=a<=3?1:2,i=Math.ceil(a/r)||1,s=r*i;return n.jsx("div",{className:we("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:s},(l,u)=>{const c=e[u];return c?n.jsx("div",{className:"word-table-thumb__cell",children:(c.words?.length?c.words:[{label:c.id}]).map((d,m)=>n.jsxs(o.Fragment,{children:[m>0&&n.jsx("span",{className:"word-table-thumb__divider"}),n.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},m))},u):n.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},u)})})}function x8({items:e,name:t,description:a,createdAt:r,code:i,published:s,publishedLabel:l,shared:u,sharedLabel:c,isNew:d,publisherName:m,publishedAt:p,likeCount:C,downloadCount:y,onPublisherClick:v,selected:f,onClick:h,onMore:_,titleNode:g,className:k}){const{t:b}=xe.useTranslation(),N=g!=null,x=m!=null||p!=null||C!=null||y!=null,B=w=>{w.target===w.currentTarget&&!N&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),h?.())};return n.jsxs("div",{className:we("word-table-button",f?"word-table-button--selected":"",x?"":"word-table-button--no-footer",k),role:"button",tabIndex:0,"aria-label":i?`${t} (${i})`:t,onClick:N?void 0:h,onKeyDown:B,children:[d&&n.jsx("span",{className:"word-table-button__new-dot","aria-label":b("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),n.jsx(ed,{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:[g??n.jsx("div",{className:"word-table-button__title h4",children:t}),a&&n.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),_&&!N&&n.jsx(pe,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:b("common.moreFor",{name:t}),onClick:w=>{w.stopPropagation(),_(w)}})]}),(i||r||s||u)&&n.jsxs("div",{className:"word-table-button__meta-row",children:[n.jsx("span",{className:"word-table-button__meta-left",children:n.jsx("span",{className:"word-table-button__meta caption-1",children:r?ji(r,b):""})}),n.jsxs("span",{className:"word-table-button__meta-right",children:[(s||u)&&n.jsxs("span",{className:"word-table-button__badges",children:[s&&n.jsx(kt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:l??b("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),u&&n.jsx(kt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??b("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]}),i&&n.jsx("span",{className:"word-table-button__code caption-1",children:i})]})]}),x&&n.jsxs("div",{className:"word-table-button__footer",children:[n.jsxs("span",{className:"word-table-button__store-by",children:[m&&(v?n.jsx("button",{className:"training-card__publisher body-4",type:"button","aria-label":b("wordTable.publisherFilter",{name:m,defaultValue:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30"}),onClick:w=>{w.stopPropagation(),v()},children:m}):n.jsx("span",{className:"training-card__publisher training-card__publisher--static body-4",children:m})),p&&n.jsx("span",{className:"training-card__date body-4",children:ji(p,b)})]}),n.jsxs("span",{className:"word-table-button__store-stats",children:[C!=null&&n.jsx(kt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(C),"aria-label":b("common.likeCount",{count:C,defaultValue:`\uC88B\uC544\uC694 ${C}`})}),y!=null&&n.jsx(kt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(y),"aria-label":b("common.downloadCount",{count:y,defaultValue:`\uAC00\uC838\uAC04 \uC218 ${y}`})})]})]})]})}/**
1069
+ `).map((l,u,c)=>n.jsxs(o.Fragment,{children:[l,u<c.length-1&&n.jsx("br",{})]},u))})}),n.jsxs("div",{className:"site-footer__links",children:[n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:s("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:s("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:s("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:s("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:s("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:s("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:s("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:s("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:s("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:s("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:Ao,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:s("footer.ceo","\uB300\uD45C")})," ",n.jsx("span",{className:"footer-meta caption-1",children:s("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:s("footer.address","\uC8FC\uC18C")})," ",n.jsx("span",{className:"footer-meta caption-1",children:s("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:s("footer.support","\uACE0\uAC1D\uC13C\uD130")})," ",n.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",i]})]})]})]}),n.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function v3({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:i,className:s,containerClassName:l,renderLink:u,menuLabel:c}){const{t:d}=xe.useTranslation(),m=c??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[p,C]=o.useState(!1),y=o.useId(),x=o.useRef(null);o.useEffect(()=>{if(!p)return;const _=Gn(()=>{const b=document.getElementById(y);b&&b.contains(document.activeElement)&&x.current?.focus(),C(!1)}),g=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,k=b=>{b.matches&&C(!1)};return g&&(g.matches&&C(!1),g.addEventListener?.("change",k)),()=>{_(),g?.removeEventListener?.("change",k)}},[p,y]);const f=l?`${l} landing-header__inner`:"landing-header__inner",h=(_,g)=>u?u(_,{onClick:g}):n.jsx("a",{href:_.href,onClick:g,"aria-current":_.current?"page":void 0,children:_.label});return n.jsxs("header",{className:s?`landing-header ${s}`:"landing-header",children:[n.jsxs("div",{className:f,children:[e!=null&&(()=>{const _=typeof e=="string"?n.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?n.jsx("a",{href:a,className:"landing-header__brand",children:_}):n.jsx("div",{className:"landing-header__brand",children:_})})(),r.length>0&&n.jsx("nav",{className:"landing-header__links",children:r.map((_,g)=>n.jsx("span",{children:h(_)},`${g}:${_.href}`))}),n.jsxs("div",{className:"landing-header__actions",children:[i,r.length>0&&n.jsx("button",{ref:x,type:"button",onClick:()=>C(_=>!_),"aria-expanded":p,"aria-controls":y,"aria-label":p?m.close:m.open,className:p?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:n.jsxs("span",{className:"landing-header__burger",children:[n.jsx("span",{}),n.jsx("span",{}),n.jsx("span",{})]})})]})]}),r.length>0&&n.jsx("nav",{id:y,hidden:!p,className:"landing-header__drawer",children:n.jsx("div",{className:l??void 0,children:r.map((_,g)=>n.jsx("span",{className:"landing-header__drawer-item",children:h(_,()=>C(!1))},`${g}:${_.href}`))})})]})}function x3({children:e,action:t,onClick:a,className:r}){const i=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:i,onClick:a,...ju(a),children:[n.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}function _3({mountedRef:e}){const t=o.useRef({phase:"sound",at:0}),a=o.useRef(0),r=o.useRef(null),i=o.useRef(null),s=o.useCallback(()=>{const f=t.current,h=f.phase!=="sound"&&f.at>0;i.current=h?{phase:f.phase,elapsed:Math.max(0,Date.now()-f.at)}:null},[]),l=o.useCallback(()=>{const f=i.current;return i.current=null,f},[]),u=o.useCallback(()=>{a.current+=1,t.current={phase:"sound",at:0}},[]),c=o.useCallback((f,h,_=0)=>{if(!(f>0))return Promise.resolve(!0);const g=a.current;return t.current={phase:h,at:Date.now()-Math.max(0,_)},new Promise(k=>{const b=setTimeout(()=>{r.current===b&&(r.current=null),k(!!e.current&&g===a.current)},f);r.current=b})},[e]),d=o.useCallback(()=>{t.current={phase:"sound",at:Date.now()}},[]),m=o.useCallback(()=>{t.current={phase:"sound",at:0}},[]),p=o.useCallback(()=>{const f=t.current;return f.phase!=="sound"&&f.at>0},[]),C=o.useCallback(()=>a.current,[]),y=o.useCallback(f=>f===a.current,[]),x=o.useCallback(()=>{a.current+=1},[]);return o.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null)},[]),o.useMemo(()=>({positionRef:t,isRunning:p,generation:C,isCurrent:y,abort:u,waitPad:c,enterSound:d,leave:m,pause:s,resume:l,__bumpGenerationForTest:x}),[p,C,y,u,c,d,m,s,l,x])}const fa=9,w3=e=>Math.round(Math.min(fa,Math.max(0,e))/fa*100),B3=e=>e/100*fa,za=2,dc=.1,A3=e=>Math.min(za,Math.max(0,e)),k3=.1,N3=e=>Math.round(e*1e6)/1e6;function Wa(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return A3(t);const a=Math.min(fa,Math.max(0,Number(e.level)||0))/fa,r=Number(e.mainVolume);return r>0?a>0?N3(Math.min(za,Math.max(k3,a/r))):0:1}const pc=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function mc(e){return pc(e)}function ns(e){return pc(e)*Wa(e)}function as(e,t=TC()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,ns(e)/a)}function qa(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=Wa({level:a.level,mainVolume:a.mainVolume})),a}const Ua={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},rs=o.createContext(null);function br(){return o.useContext(rs)}const os=e=>`${SC()}/${e}`,hc=e=>Array.from({length:10},(t,a)=>os(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),yr={get defaultNoise(){return os("noise1.mp3")},get street(){return hc("noise2")},get restaurant(){return hc("noise3")},get buzz(){return os("noise4.mp3")}};function E3(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return yr.defaultNoise;case"street":return yr.street[t];case"restaurant":return yr.restaurant[t];case"buzz":return yr.buzz;default:return null}}function D3({noisePlayer:e,audioRef:t,playbackStateRef:a,sequencer:r}){const i=o.useRef(e?.registerAnalyser);i.current=e?.registerAnalyser;const s=o.useRef(null),[l,u]=o.useState(null),c=o.useRef(null),d=o.useRef(null),m=o.useRef(null),p=o.useRef(null),C=o.useRef(0),y=o.useRef(null),x=o.useCallback(()=>!!r?.isRunning(),[r]),f=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),y.current!==null&&(clearTimeout(y.current),y.current=null)},[]),h=o.useCallback((A,v=250)=>{const w=s.current;if(!w)return;const B=d.current;if(B){d.current=null;try{w.pause()}catch{}w.src=B,w.load()}if(!w.src)return;C.current+=1,f();try{Xr(),Ka(w).then(O=>{if(s.current===w)try{i.current?.("noise",O)}catch{}})}catch{}const E=w.paused?0:Ya(w);w.paused&&Pn(w,0),w.play().catch(()=>{});const D=performance.now(),N=()=>{const O=Math.min(1,(performance.now()-D)/v);try{Pn(w,E+(A-E)*O)}catch{}O<1?p.current=requestAnimationFrame(N):p.current=null};p.current=requestAnimationFrame(N)},[f]),_=o.useCallback((A=250,v)=>{const w=s.current;if(!w||w.paused){v?.();return}const B=++C.current;f();const E=performance.now(),D=Ya(w),N=()=>{const O=Math.min(1,(performance.now()-E)/A);try{Pn(w,D*(1-O))}catch{}if(O<1)p.current=requestAnimationFrame(N);else{p.current=null,y.current!==null&&(clearTimeout(y.current),y.current=null);try{w.pause()}catch{}v?.()}};p.current=requestAnimationFrame(N),y.current=setTimeout(()=>{if(y.current=null,C.current===B){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{w.paused||(Pn(w,0),w.pause(),v?.())}catch{}}},A+150)},[f]);o.useEffect(()=>{const A=document.createElement("audio");return A.loop=!0,A.crossOrigin="anonymous",s.current=A,()=>{f();try{A.pause(),A.removeAttribute("src"),A.load()}catch{}s.current=null,c.current=null,d.current=null}},[f]);const g=e?as(e.settings):0,k=!!e?.settings.enabled&&g>0;o.useEffect(()=>{if(!k)return;let A=0;const v=setInterval(()=>{const w=s.current;if(!w||w.paused){A=0;return}const B=t.current;if(B&&!B.paused&&!B.ended||x()||a.current==="playing"){A=0;return}A+=1,A>=2&&(A=0,_())},400);return()=>clearInterval(v)},[_,k,t,a,x]),o.useEffect(()=>{const A=()=>{const v=s.current;if(document.hidden){if(v&&!v.paused){f();try{v.pause()}catch{}}return}if(!v||!v.paused)return;const w=t.current,B=!!w&&!w.paused&&!w.ended||x()||a.current==="playing",E=m.current;B&&E?.enabled&&E.volume>0&&h(E.volume)};return document.addEventListener("visibilitychange",A),()=>document.removeEventListener("visibilitychange",A)},[f,h,t,a,x]),o.useEffect(()=>{m.current=e?{enabled:e.settings.enabled,volume:g,type:e.settings.type}:null},[e,e?.settings.enabled,g,e?.settings.type]);const b=o.useRef(null);return o.useEffect(()=>()=>{b.current?.(),b.current=null},[]),o.useEffect(()=>{const A=e?.settings,v=s.current;if(!v)return;const w=A?as(A):0;if(!A||!A.enabled||w===0){_();return}if(c.current!==A.type){const B=E3(A.type);B&&(c.current=A.type,u(B),d.current=B,_(150,()=>{if(d.current!==B)return;d.current=null,v.src=B,v.load();const E=t.current;if(E&&!E.paused||x()){b.current?.();const D=()=>{v.removeEventListener("canplay",D),b.current===N&&(b.current=null);const O=t.current,P=m.current;(O&&!O.paused&&!O.ended||x())&&P?.enabled&&P.volume>0&&h(P.volume)},N=()=>v.removeEventListener("canplay",D);b.current=N,v.addEventListener("canplay",D)}}))}else{const B=t.current,E=!!B&&!B.paused&&!B.ended||x()||a.current==="playing";if(E&&d.current)h(w);else if(E&&v.paused&&v.src)h(w);else if(!v.paused)if(!E)_();else{f();const D=Ya(v),N=performance.now(),O=()=>{const P=Math.min(1,(performance.now()-N)/150);try{Pn(v,D+(w-D)*P)}catch{}P<1?p.current=requestAnimationFrame(O):p.current=null};p.current=requestAnimationFrame(O)}}},[e?.settings,e?.settings.enabled,g,e?.settings.type,f,h,_,t,a,m,x]),o.useEffect(()=>{const A=s.current;if(A)try{A.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:s,activeNoiseUrl:l,noiseSettingsRef:m,cancelNoiseFade:f,fadeInNoise:h,fadeOutNoise:_}}function S3({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:i,setProgress:s,setPlaybackState:l,setStateLocal:u,fadeInNoise:c,fadeOutNoise:d,noiseSettingsRef:m,onDoneRef:p,handleEndRef:C}){const y=o.useRef(null),x=o.useRef(0),f=o.useRef(null),h=o.useRef(0),_=o.useRef(!1);o.useEffect(()=>()=>{h.current++;try{if(f.current&&(cancelAnimationFrame(f.current),f.current=null),_.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}_.current=!1}}catch{}},[]);const g=(A,v=1)=>{try{const w=(A||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(A||"").length);return Math.max(700,Math.round(w*300/Math.max(.25,v)))}catch{return 1200}},k=o.useCallback(A=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof p.current=="function"&&p.current(!1)}catch{}return}const v=window.speechSynthesis,w=++h.current;try{try{v.cancel()}catch{}const B=A??e,E=Array.isArray(B)?B.filter(L=>!!L):[B||""];E.length===0&&E.push("");const D=Math.max(.3,Math.min(3,t));x.current=E.reduce((L,M)=>L+g(M,D||1),0),y.current=performance.now(),s(0),l("playing"),u("playMode");const N=m.current;N?.enabled&&(N?.volume??0)>0&&c(N.volume);const O=()=>{try{const L=y.current||performance.now(),M=performance.now()-L,$=x.current||1200,Z=Math.min(1,M/$);try{r.current&&(r.current.style.left=`${Z*100}%`),i.current&&i.current.style.setProperty("--progress",String(Z))}catch{}Z<1&&(f.current=requestAnimationFrame(O))}catch{}},P=()=>{if(w===h.current)try{f.current&&(cancelAnimationFrame(f.current),f.current=null),s(1),l("stopped");try{C.current?.()}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{}},G=L=>{const M=new SpeechSynthesisUtterance(E[L]);try{M.rate=D}catch{}try{M.volume=Math.max(0,Math.min(1,a))}catch{}M.onend=()=>{if(w===h.current){if(L<E.length-1){try{G(L+1)}catch{P()}return}P()}},M.onerror=()=>{P()},M.onstart=()=>{if(!(L>0))try{f.current&&(cancelAnimationFrame(f.current),f.current=null),f.current=requestAnimationFrame(O)}catch{}},_.current=!0,v.speak(M)};try{G(0)}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}},[e,t,a,c,r,i,s,l,u,m,p,C]),b=o.useCallback(()=>{h.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}f.current&&(cancelAnimationFrame(f.current),f.current=null),d(),y.current=null}catch{}l("stopped"),u("active"),s(0)},[d,l,u,s]);return{startTTS:k,stopTTS:b}}const T3=.01,j3=.3;async function M3(e,t,a,r=!1){let i=null;try{const s=window.AudioContext||window.webkitAudioContext;i=new s;const l=await i.decodeAudioData(e.slice(0)),u=l.numberOfChannels>0?l.getChannelData(0):null;if(!u)return null;let c=0;if(r){const y=Math.floor(j3*l.sampleRate),x=Math.min(u.length,y);for(;c<x&&Math.abs(u[c])<=T3;)c++;c>=x&&(c=0)}const d=u.length-c,m=a&&a>0?Math.min(d,Math.floor(a*l.sampleRate)):d,p=Math.max(t,m),C=Math.floor(p/t)||1;return new Array(t).fill(0).map((y,x)=>{const f=c+x*C,h=Math.min(f+C,c+p,u.length);let _=0;for(let g=f;g<h;g++){const k=Math.abs(u[g]);k>_&&(_=k)}return _})}catch{return null}finally{try{i?.close?.()}catch{}}}async function Cc(e,t,a,r=!1){try{const i=await fetch(e);if(i.ok===!1)return null;const s=await i.arrayBuffer();return await M3(s,t,a,r)}catch(i){try{const s=Ai(i)}catch{}return null}}const ss=45,L3=74,$3=2;function vr(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function xr(e){return vr(e)/45}const R3=e=>Math.max(0,(typeof e=="number"&&Number.isFinite(e)?e:0)*1e3),fc=e=>Math.max(0,typeof e=="number"&&Number.isFinite(e)?e:0);function gc({durationsSec:e,leadInMs:t=0,tailMs:a=0}){const r=fc(t),i=fc(a),s=[];let l=0;return e.forEach((u,c)=>{for(const[d,m]of[["lead",r],["sound",R3(u)],["tail",i]])s.push({kind:d,track:c,startMs:l,durMs:m}),l+=m}),{segments:s,totalMs:l,trackCount:e.length}}function bc(e,t){const a=(t|0)*3;if(t<0||a+2>=e.segments.length)return null;const[r,i,s]=[e.segments[a],e.segments[a+1],e.segments[a+2]];return{lead:r,sound:i,tail:s,totalMs:r.durMs+i.durMs+s.durMs}}function P3(e,t){const a=bc(e,t.track);if(!a||!(a.totalMs>0))return 0;const r=a[t.kind],i=Math.min(Math.max(0,Number.isFinite(t.elapsedMs)?t.elapsedMs:0),r.durMs);return Math.max(0,Math.min(1,(r.startMs-a.lead.startMs+i)/a.totalMs))}function F3(e,t,a){const r=Math.max(0,Math.floor(a)),i=bc(e,t);if(!i||r===0||!(i.totalMs>0)||i.lead.durMs===0&&i.tail.durMs===0||!(i.sound.durMs>0))return{lead:0,sound:r,tail:0};const s=Math.round(i.lead.durMs/i.totalMs*r),l=Math.round(i.tail.durMs/i.totalMs*r),u=Math.max(1,r-s-l),c=s+u+l-r;return{lead:Math.max(0,s-Math.ceil(c/2)),sound:u,tail:Math.max(0,l-Math.floor(c/2))}}function I3({currentTime:e,sources:t,index:a,audioDuration:r}){const i=a||0,s=Array.isArray(t)&&t.length>0?t[i]:void 0,l=s?s.duration||r||0:r||0;if(!(l>0))return 0;const u=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,u/l))}function O3({phase:e,phaseElapsedMs:t,currentTime:a,trackDurationSec:r,leadInMs:i,tailMs:s}){const l=gc({durationsSec:[r],leadInMs:i,tailMs:s});return P3(l,{track:0,kind:e,elapsedMs:e==="sound"?(Number.isFinite(a)?a:0)*1e3:t})}function H3({bars:e,trackDurationSec:t,leadInMs:a,tailMs:r}){return F3(gc({durationsSec:[t],leadInMs:a,tailMs:r}),0,e)}function V3(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function z3({ended:e,completedByEnd:t}){return!!e||!!t}function W3(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function q3(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function U3(e,t,a){const r=Array.isArray(e)?e:e?[e]:[],i=[];for(const s of r)if(s){if(typeof s=="object"&&s!==null&&"src"in s&&s.src){const l=s;i.push({code:l.code??null,src:l.src});continue}if(typeof s=="string"&&(s.startsWith("http")||s.includes("/"))){i.push({code:null,src:s});continue}if(typeof s=="string"||typeof s=="number"){const l=String(s),u=a(l,t);u&&i.push({code:l,resolvedPath:u})}}return i}const yc=4,G3=xr(yc/ss);function K3(e){const{src:t,segments:a,progress:r=0,waveProgressRef:i,noiseSrc:s,noiseRatio:l=0,noiseSpeed:u=1,totalDuration:c=0,mainVolume:d=1,onReadyChange:m,showSoundWaveForm:p=!0,leadInMs:C=0,tailMs:y=0,trackDurationSec:x=0}=e,f=o.useRef(null),h=o.useRef(null),[_,g]=o.useState(null),[k,b]=o.useState(!1),[A,v]=o.useState(null),[w,B]=o.useState(2),[E,D]=o.useState(0),[N,O]=o.useState(null),[P,G]=o.useState(!1),[L,M]=o.useState(!1),$=3,Z=3,q=1,H=300,W=o.useRef(0),R=o.useCallback(()=>{const be=f.current,te=h&&h.current?h.current:be?be.closest(".audio-player__wave"):null,ue=te?te.getBoundingClientRect():be?be.getBoundingClientRect():null,Ce=ue?ue.width:0,ge=ue?Math.max(100,ue.width):320,fe=ue?ue.height:0,$e=Math.max(q,Math.min(H,Math.floor((ge+Z)/($+Z)))),ze=$e*$,Te=Math.max(0,$e-1),Fe=Math.max(0,Te>0?(ge-ze)/Te:Z);return{bars:$e,gap:Fe,height:fe,width:Ce}},[]),z=o.useRef(void 0),V=o.useRef(null),F=o.useCallback(async(be,te,{quiet:ue=!1}={})=>{const Ce=++W.current,ge=()=>W.current===Ce;try{if(ue||b(!1),z.current=be,!be){ge()&&g(null);return}let fe=te;if(!fe)try{for(let Te=0;Te<4&&!(f.current||h.current);Te++)await new Promise(Fe=>requestAnimationFrame(Fe));await new Promise(Te=>requestAnimationFrame(Te));const ze=R();ze.height>0&&D(ze.height),fe=ze.bars,B(ze.gap)}catch{fe=120}V.current=fe;const $e=await Cc(be,fe);if(!ge())return;if(!$e){g(null),b(!1);return}g($e),v(fe),b(!0)}catch{if(!ge())return;g(null),b(!1)}},[b,g,D,B,v,R]);o.useEffect(()=>{const be=h.current;if(!be||typeof ResizeObserver>"u")return;let te=null;const ue=new ResizeObserver(()=>{te!==null&&cancelAnimationFrame(te),te=requestAnimationFrame(()=>{te=null;try{const Ce=R();if(Ce.width<=0||(Ce.height>0&&D(Ce.height),V.current===null||Ce.bars===V.current))return;const ge=z.current;B(Ce.gap),ge?F(ge,Ce.bars,{quiet:!0}).catch(()=>{}):V.current=Ce.bars}catch{}})});return ue.observe(be),()=>{ue.disconnect(),te!==null&&cancelAnimationFrame(te)}},[R,F]),o.useEffect(()=>{const be=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;F(typeof be=="string"?be:void 0).catch(()=>{}),M(!1)},[t,a,F]),o.useEffect(()=>{let be=!1;if(G(!1),!s||!A){O(null);return}const te=c>0?c*(u||1):void 0;return Cc(s,A,te,!0).then(ue=>{be||(O(ue),ue||G(!0))}).catch(()=>{be||(O(null),G(!0))}),()=>{be=!0}},[s,A,c,u]);const S=Math.max(0,Math.min(1,d)),j=o.useMemo(()=>_&&_.length&&Math.max(..._)||1,[_]),I=A||40,U=o.useMemo(()=>H3({bars:I,trackDurationSec:x,leadInMs:C,tailMs:y}),[I,x,C,y]),re=o.useMemo(()=>Array.from({length:I}).map((be,te)=>{const ue=te>=U.lead&&te<U.lead+U.sound,Ce=U.sound>0&&ue?Math.min(I-1,Math.round((te-U.lead)/U.sound*I)):-1,ge=ue?_&&_[Ce]!=null?_[Ce]:null:_?0:null,fe=ge==null?null:Math.min(1,ge/j*S),$e=fe!=null&&E>0&&vr(fe)<=yc,ze=fe==null?.15:$e?0:xr(fe),Te=$e,Fe=I>1?te/(I-1):0;return n.jsx("div",{className:Te?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ze,"--i":te,"--mix":Fe}},te)}),[I,_,j,S,E,U]),ne={"--progress":String(Math.max(0,Math.min(1,r)))},le=o.useMemo(()=>N&&N.length&&Math.max(...N.map(be=>Number.isFinite(be)?Math.abs(be):0))||1,[N]),K=S*Math.max(0,l),oe=!s||!N||!N.length?1:Math.max(1,K),ke={"--bar-gap":`${w}px`,"--wave-h":`${vr(oe)}px`,"--wave-h1":`${ss}px`},Y=k&&(s?!!N||P:!0);o.useEffect(()=>{Y&&M(!0)},[Y]);const Q=L?k:Y;o.useEffect(()=>{m?.(Q)},[Q,m]);const me=A||40,De=o.useMemo(()=>Array.from({length:me}).map((be,te)=>{const ue=N&&N[te]!=null?N[te]:null,Ce=ue==null?0:Math.abs(ue)/le*K,ge=Math.max(G3,xr(Ce)),fe=me>1?te/(me-1):0;return n.jsx("div",{className:"audio-player__bar",style:{"--val":ge,"--i":te,"--mix":fe}},te)}),[me,N,le,K,E]);return n.jsxs("div",{className:"audio-player__wave",ref:h,style:ke,children:[s&&n.jsx("div",{className:`audio-player__wave-noise ${Y?"is-ready":""}`,"aria-hidden":"true",children:De}),p&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${Q?"is-ready":""}`,ref:f,children:re}),n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${Q?"is-ready":""}`,ref:i,style:ne,children:re})]})]})}const Y3={idle:"\uB300\uAE30",synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"},vc={idle:!1,synthesizing:!0,resolving:!0,checking_exists:!0,getting_signed_url:!0,downloading:!0,measuring_duration:!0,ready:!1,error:!0};function is(e,t){return new Promise((a,r)=>{const i=document.createElement("audio");let s=!1;const l=()=>{try{i.removeAttribute("src"),i.load()}catch{}},u=()=>{if(s)return;s=!0;const d=isFinite(i.duration)&&i.duration||0;l(),a(d)},c=d=>{s||(s=!0,l(),t.rejectOnError?r(new Error(d)):a(0))};i.addEventListener("loadedmetadata",u),i.addEventListener("error",()=>c("audio load failed")),setTimeout(()=>c("audio load timeout"),t.timeoutMs),i.src=e})}const Z3=2e3;function xc(e,t=Z3){return new Promise(a=>{let r=!1;const i=()=>{r||(r=!0,a())};e.addEventListener("canplay",i,{once:!0}),e.addEventListener("error",i,{once:!0}),setTimeout(i,t)})}function X3({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=o.useRef(!1),i=o.useRef([]),s=o.useCallback(c=>{if(r.current=c,!c||!i.current.length)return;const d=i.current;i.current=[];for(const m of d)m(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),u=o.useCallback(()=>!e&&!t||r.current?Promise.resolve(!0):new Promise(c=>{const d=p=>{clearTimeout(m),i.current=i.current.filter(C=>C!==d),c(p)},m=setTimeout(()=>d(!0),a);i.current.push(d)}),[e,t,a]);return o.useEffect(()=>()=>{const c=i.current;i.current=[];for(const d of c)d(!1)},[]),{onReadyChange:s,waitForReady:u,markNotReady:l}}function J3(){const e=o.useRef([]),t=o.useCallback(i=>(e.current.push(i),i),[]),a=o.useCallback(i=>{const s=new Set([...i].filter(Boolean));e.current=e.current.filter(l=>{if(s.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=o.useCallback(()=>{a([])},[a]);return o.useEffect(()=>()=>{for(const i of e.current)try{URL.revokeObjectURL(i)}catch{}e.current=[]},[]),{track:t,keepOnly:a,revokeAll:r}}function Q3({offsetY:e=8}={}){const t=o.useRef(null),[a,r]=o.useState(null),i=o.useCallback(()=>r(null),[]),s=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",i),()=>document.removeEventListener("mousedown",i)},[a,i]),{ref:t,rect:a,show:s,hide:i}}function e7(e){if(!e)return 0;const t=e.duration;if(Number.isFinite(t)&&t>0)return t;if(t===0)return 0;try{const a=e.seekable;if(a&&a.length>0){const r=a.end(a.length-1);if(Number.isFinite(r)&&r>0)return r}}catch{}return null}const t7=400,n7=2e3,_c=5;function a7({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:i,sequencer:s,leadInMs:l=0,tailMs:u=0}){const c=o.useRef(null),d=o.useRef(0),m=o.useRef(null),p=o.useCallback(()=>{c.current!==null&&(cancelAnimationFrame(c.current),c.current=null)},[]),C=o.useCallback(()=>{if(c.current!==null)return;let x=0;const f=()=>{if(Ln){const h=typeof performance<"u"&&performance.now?performance.now():Date.now();if(x>0&&h-x>t7){const _=m.current===null||h-m.current>n7;if(m.current=h,_&&d.current<_c){d.current+=1;const g=d.current;let k=null;try{k=typeof document<"u"?document.visibilityState:null}catch{}St(`progress-ticker-slow-frames#${g}`,`[ihab-core] \uC9C4\uD589 \uC0AC\uC2AC\uC758 \uD2C0 \uC0AC\uC774\uAC00 ${Math.round(h-x)}ms \uC785\uB2C8\uB2E4(\uBCF4\uD1B5 16ms).`,k==="hidden"?"\uC774 \uCE78\uC774 **\uC228\uC5B4 \uC788\uC5B4** \uBE0C\uB77C\uC6B0\uC800\uAC00 \uD2C0\uC744 \uC904\uC600\uC2B5\uB2C8\uB2E4 \u2014 \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC740 \uD2C0\uB9C8\uB2E4 \uADF8\uB824\uC9C0\uBBC0\uB85C, \uC9C0\uAE08 \uC7AC\uB294 \uAC12\uC740 **\uC0AC\uB78C\uC774 \uBCF4\uB294 \uD654\uBA74\uACFC \uB2E4\uB985\uB2C8\uB2E4.** \uCE78\uC744 \uC55E\uC73C\uB85C \uAEBC\uB0B4\uACE0 \uB2E4\uC2DC \uC7AC\uC2ED\uC2DC\uC624.":"\uCE78\uC740 \uBCF4\uC774\uB294\uB370 \uD2C0\uC774 \uB290\uB9BD\uB2C8\uB2E4 \u2014 \uAC19\uC740 \uD654\uBA74\uC5D0\uC11C \uBB34\uAC70\uC6B4 \uC77C\uC774 \uB3C4\uB294\uC9C0 \uBCF4\uC2ED\uC2DC\uC624. \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC774 \uB04A\uACA8 \uBCF4\uC774\uB294 \uAC83\uC740 \uC774 \uD0D3\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.",g>=_c?`(${g}\uBC88\uC9F8 \u2014 \uB354\uB294 \uC548 \uC54C\uB9BD\uB2C8\uB2E4)`:`(${g}\uBC88\uC9F8)`)}}x=h}try{const h=e.current,_=Array.isArray(r.current)?r.current[i.current||0]:void 0,g=!!_&&Number.isFinite(_.duration)&&(_.duration??0)>0,k=g?0:e7(h),b=t.current,A=(l||0)>0||(u||0)>0,v=A&&(s?.positionRef.current?.phase??"sound")!=="sound";if(k===null&&!v)try{b&&b.style.visibility!=="hidden"&&(b.style.visibility="hidden")}catch{}else{const w=g?_.duration:k||0;Ln&&v&&!(w>0)&&St("progress-ticker-pad-without-duration","[ihab-core] \uB738\uC774 \uB3C4\uB294\uB370 **\uC18C\uB9AC \uAE38\uC774\uB97C \uBAA8\uB985\uB2C8\uB2E4** \u2014 \uC7AC\uC0DD\uBC14\uAC00 \uB738\uB9CC\uC73C\uB85C \uC5B4\uB9BC\uC7A1\uC544 \uC6C0\uC9C1\uC785\uB2C8\uB2E4.","\uC18C\uB9AC \uAE38\uC774 \uC7AC\uAE30(measureAudioDuration)\uAC00 0 \uC744 \uC92C\uAC70\uB098 `<audio>` \uAC00 \uC544\uC9C1 \uC548 \uC2E4\uB838\uC2B5\uB2C8\uB2E4. \uAE38\uC774\uB97C \uC54C\uAC8C \uB418\uBA74 \uB9C8\uCEE4\uAC00 \uADF8 \uC21C\uAC04 **\uB4A4\uB85C \uBB3C\uB7EC\uB0A9\uB2C8\uB2E4**(\uC5B4\uB9BC\uC740 \uB298 \uCC38\uBCF4\uB2E4 \uD07D\uB2C8\uB2E4). \uC774 \uC904\uC774 \uBCF4\uC774\uBA74 \uADF8 \uC790\uB9AC\uB97C \uC54C\uB824 \uC8FC\uC2ED\uC2DC\uC624 \u2014 \uD3C9\uC18C \uAE38\uC5D0\uC11C\uB294 \uC548 \uB098\uC640\uC57C \uD569\uB2C8\uB2E4.");const B=A?O3({phase:s?.positionRef.current?.phase??"sound",phaseElapsedMs:s?.positionRef.current?Math.max(0,Date.now()-s.positionRef.current.at):0,currentTime:h&&typeof h.currentTime=="number"?h.currentTime:0,trackDurationSec:w,leadInMs:l||0,tailMs:u||0}):I3({currentTime:h&&typeof h.currentTime=="number"?h.currentTime:0,sources:r.current,index:i.current,audioDuration:k??0});try{b&&(b.style.visibility&&(b.style.visibility=""),b.style.left=`${B*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(B))}catch{}}}catch{}c.current=requestAnimationFrame(f)};c.current=requestAnimationFrame(f)},[e,t,a,r,i,s,l,u]),y=o.useCallback(x=>{p();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${x*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(x))}catch{}},[p,t,a]);return o.useEffect(()=>p,[p]),{start:C,stop:p,settleTo:y}}function ls({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:i=!1,ttsText:s=null,className:l,showSoundWaveForm:u=!0,showNoiseWaveForm:c=!0,leadInMs:d=0,tailMs:m=0}){const{t:p}=xe.useTranslation(),C=e,y=br(),x=o.useRef(y?.registerAnalyser);o.useEffect(()=>{x.current=y?.registerAnalyser});const f=o.useRef(null),h=o.useRef(null),_=o.useRef(null),g=J3(),k=o.useRef(null),b=o.useRef(!1),A=o.useRef(null),{ref:v,rect:w,show:B,hide:E}=Q3();o.useEffect(()=>()=>{x.current?.("main",null),x.current?.("noise",null)},[]);const[D,N]=o.useState(!1),[O,P]=o.useState("idle"),[G,L]=o.useState("stopped"),M=o.useRef("stopped");o.useEffect(()=>{M.current=G},[G]);const[$,Z]=o.useState(0),[q,H]=o.useState("active"),W=o.useRef(!1);o.useEffect(()=>{if(q!=="playMode"||!W.current)return;W.current=!1;const J=typeof document<"u"?document.activeElement:null;if(J&&J!==document.body)return;const de=_.current?.querySelectorAll("button")[1];try{de?.focus()}catch{}},[q]);const[R,z]=o.useState(null),[V,F]=o.useState(null),[S,j]=o.useState(0),[I,U]=o.useState(!1),[re,ne]=o.useState(0),le=y?.playbackRate??1,K=y?.mainVolume??1,oe=y?ns(y.settings):0,ke=y?mc(y.settings):K,[Y,Q]=o.useState("idle"),[me,De]=o.useState(""),[be]=o.useState("top"),te=o.useRef(null),ue=o.useRef(0),Ce=o.useRef(null),ge=o.useRef(!0),fe=_3({mountedRef:ge}),$e=o.useRef(null),ze=o.useRef(d),Te=o.useRef(m);o.useEffect(()=>{ze.current=Math.max(0,d||0)},[d]),o.useEffect(()=>{Te.current=Math.max(0,m||0)},[m]);const{start:Fe,stop:qe,settleTo:mt}=a7({audioRef:f,fillRef:h,waveProgressRef:Ce,sourcesRef:te,currentIndexRef:ue,sequencer:fe,leadInMs:d,tailMs:m}),{onReadyChange:ct,waitForReady:rt,markNotReady:Ct}=X3({showSoundWaveForm:u,showNoiseWaveForm:c}),Ae=o.useRef(null),We=o.useRef(i),_e=o.useRef(r),Ue=o.useRef(null),Be=o.useRef(!1),[je,Se]=o.useState(!1),Xe=o.useCallback(J=>{Be.current=J,Se(J)},[]),Qe=o.useRef(null),{activeNoiseUrl:dt,noiseSettingsRef:ht,fadeInNoise:wt,fadeOutNoise:ft}=D3({noisePlayer:y,audioRef:f,playbackStateRef:M,sequencer:fe}),{startTTS:Nt,stopTTS:gt}=S3({ttsText:s,playbackRate:le,mainVolume:ke,fillRef:h,waveProgressRef:Ce,setProgress:Z,setPlaybackState:L,setStateLocal:H,fadeInNoise:wt,fadeOutNoise:ft,noiseSettingsRef:ht,onDoneRef:_e,handleEndRef:Qe});o.useEffect(()=>{Ie.current=gt});const it=J=>{if(typeof window>"u"||!window.speechSynthesis){try{De(p("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}Nt(J);return}tt("tts"),Nt(J)},Ke=Array.isArray(t)?t.filter(Boolean):t?[t]:[],se=(!Ke||Ke.length===0)&&!!s,Ne=Array.isArray(R)&&R.length>0?R:Array.isArray(V)&&V.length>0?V:null,Ve=Math.max(Array.isArray(Ne)?Ne.length:0,Ke.length);o.useEffect(()=>(ge.current=!0,()=>{ge.current=!1}),[]);const nt=()=>{fe.abort()},Ie=o.useRef(null),Ge=o.useRef(null),bt=o.useRef(null),Re=o.useRef(null);Re.current||(Re.current=()=>{bt.current=null;const J=f.current;if(Ge.current==="audio"&&J&&(!J.paused||fe.isRunning())){nt();try{J.pause()}catch{}ge.current&&(L("paused"),qe(),ft())}else if(Ge.current==="tts")try{Ie.current?.()}catch{}});const tt=J=>{Ge.current=J,bt.current=ir(Re.current)},xt=()=>{bt.current?.(),bt.current=null};o.useEffect(()=>()=>{Re.current&&lr(Re.current)},[]);const Lt=o.useRef(le);o.useEffect(()=>{Lt.current=le||1},[le]);const et=o.useCallback(J=>{const de=Lt.current||1;try{J.defaultPlaybackRate=de}catch{}try{J.playbackRate=de}catch{}},[]),ot=o.useCallback((J,de)=>{J.src=de,et(J),J.load(),et(J)},[et]),lt=o.useCallback(()=>{Ue.current&&(clearTimeout(Ue.current),Ue.current=null),Q("idle")},[]),st=o.useCallback(async(J,de=3,ae=50,ye=0)=>{lt();const Le=fe.generation(),He=!!J&&J.currentTime>0&&!J.ended,ut=Math.max(0,ze.current-Math.max(0,ye));if(ut>0&&!He){tt("audio"),Fe(),L("playing");const yt=ht.current;if(yt?.enabled&&(yt.volume??0)>0)try{wt(yt.volume)}catch{}if(!await fe.waitPad(ut,"lead",ye)||!ge.current||!fe.isCurrent(Le))return!1}fe.enterSound();for(let yt=0;yt<de;yt++){if(!ge.current||!fe.isCurrent(Le))return!1;try{return tt("audio"),await J.play(),!0}catch(he){if((he instanceof Error||typeof he=="object"&&he&&"name"in he?he.name:void 0)==="AbortError"){if(!fe.isCurrent(Le))return!1;await new Promise(T=>setTimeout(T,ae));continue}try{De(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{De(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[p,Fe,fe,wt,ht,lt]),jt=o.useCallback(J=>{const de=fe.generation(),ae=Math.max(0,Te.current-Math.max(0,J));Fe();const ye=ht.current;if(ye?.enabled&&(ye.volume??0)>0)try{wt(ye.volume)}catch{}const Le=()=>{try{$e.current?.()}catch{}};if(ae<=0){fe.leave(),Le();return}fe.waitPad(ae,"tail",J).then(He=>{fe.leave(),He&&fe.isCurrent(de)&&Le()}).catch(()=>{})},[fe,Fe,wt,ht]),Vt=o.useCallback(()=>{const J=f.current;if(!J)return;const de=()=>{L("playing"),H("playMode"),U(!0),Fe();try{Xr(),Ka(J).then(He=>{if(ge.current)try{x.current?.("main",He)}catch{}})}catch{}const Le=ht.current;Le?.enabled&&(Le?.volume??0)>0&&wt(Le.volume)},ae=()=>{z3({ended:!!J?.ended,completedByEnd:Be.current})||(L("paused"),qe(),ft())},ye=()=>{const Le=()=>{try{const He=te.current,ut=V3(He,ue.current);if(ut!==null){ue.current=ut,j(ut),U(!0);const yt=He?.[ut]&&He[ut].src;if(yt&&J){ot(J,yt),st(J).catch(()=>{});return}}}catch{}L("stopped"),Z(1);try{if(J)try{J.currentTime=0}catch{}}catch{}qe(),U(!1),ft();try{!We.current&&Qe.current&&Qe.current()}catch{}};if($e.current=Le,Te.current>0){Fe(),fe.waitPad(Te.current,"tail").then(He=>{fe.leave(),He&&Le()}).catch(()=>{});return}Le()};return J.addEventListener("play",de),J.addEventListener("pause",ae),J.addEventListener("ended",ye),()=>{try{J.removeEventListener("play",de),J.removeEventListener("pause",ae),J.removeEventListener("ended",ye),qe()}catch{}}},[wt,ft,st,ht,Fe,qe,fe]);o.useEffect(()=>Vt(),[Vt]),o.useEffect(()=>{We.current=i},[i]),o.useEffect(()=>{_e.current=r},[r]),o.useEffect(()=>{if(i||q!=="active")return;const J=A.current;if(!J)return;let de=null;const ae=requestAnimationFrame(()=>{try{const ye=J.getTotalLength();if(!ye)return;const Le=ye*.2;J.style.strokeDasharray=`${ye-Le} ${Le}`;const He="triFlow_"+Math.random().toString(36).slice(2);de=document.createElement("style"),de.textContent=`@keyframes ${He}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${ye}}}`,document.head.appendChild(de),J.style.animation=`${He} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(ae),de?.remove()}},[q,i]),o.useEffect(()=>{te.current=R},[R]),o.useEffect(()=>{ue.current=S},[S]),o.useEffect(()=>{const J=_.current,de=k.current;if(!J||!de)return;let ae=null;const ye=32,Le=60,He=()=>{try{const yt=Array.from(J.querySelectorAll(":scope > .button"));let he=0;yt.forEach(Pe=>{if(Pe===de)return;const Ze=Pe.getBoundingClientRect();he+=Ze.width});const T=J.getBoundingClientRect().width,X=Math.max(0,Math.floor(T-he-8)),ce=Ve;if(!ce||X<=0){Array.from(de.children).forEach(Pe=>{try{Pe.style.width=""}catch{}});return}let Ee=Math.floor(X/ce);Ee>Le&&(Ee=Le),Ee<ye&&(Ee=Math.max(ye,Math.floor(X/ce))),Array.from(de.querySelectorAll(".button")).forEach(Pe=>{try{Pe.style.width=`${Ee}px`}catch{}})}catch{}},ut=requestAnimationFrame(He);try{ae=new ResizeObserver(()=>{requestAnimationFrame(He)}),ae.observe(J),ae.observe(de),window.addEventListener("resize",He)}catch{}return()=>{try{cancelAnimationFrame(ut)}catch{}try{ae&&(ae.disconnect(),ae=null)}catch{}try{window.removeEventListener("resize",He)}catch{}}},[R,V,Ve]),o.useEffect(()=>()=>{try{Ae.current&&(clearTimeout(Ae.current),Ae.current=null),Ue.current&&(clearTimeout(Ue.current),Ue.current=null)}catch{}},[]);const mn=(J,de)=>{z(J),ne(de),Ct(),F(W3(J)),te.current=J},hn=()=>{H("playMode"),j(0),U(!0)},jn=async(J,de)=>{Xe(!1),b.current=!1,ot(J,de),await xc(J),await rt()!==!1&&(N(!1),hn(),await st(J))},Hn=async(J,de=!1)=>{const ae=f.current;N(!0),P("measuring_duration");try{const ye=await is(J,{timeoutMs:1e4,rejectOnError:!0});mn([{src:J,objectUrl:null,duration:ye}],ye),P("ready"),de&&ae&&await jn(ae,J)}finally{b.current=!1,N(!1)}},Vn=async(J,de=!1)=>{const ae=f.current;N(!0),P("measuring_duration");try{const ye=await Promise.all(J.map(He=>is(He,{timeoutMs:1e4})));if(!ge.current)return;const Le=J.map((He,ut)=>({src:He,objectUrl:null,duration:ye[ut]||0}));mn(Le,q3(Le)),P("ready"),de&&ae&&Le.length>0&&await jn(ae,Le[0].src)}finally{b.current=!1,N(!1)}},Ft=async(J=!1,de=!0)=>{const ae=f.current,ye=t?Array.isArray(t)?t:[t]:[];if(!ye||ye.length===0||!ye.some(Boolean))return!1;if(b.current)return null;b.current=!0,de&&N(!0),P("resolving");try{const Le=U3(t,a,pi),He=[];let ut=0;for(const yt of Le){let he=yt.src??null,T=null;if(!he&&yt.resolvedPath){try{P("getting_signed_url"),he=await mi(yt.resolvedPath)}catch{he=null}if(!ge.current)return!1;if(!he)try{P("downloading");const ce=await hi(yt.resolvedPath);if(!ge.current)return!1;if(ce){const Ee=ce instanceof Blob?ce:new Blob([ce]);T=g.track(URL.createObjectURL(Ee)),he=T}}catch{P("error");try{De(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),H("active")}catch{}}}if(!he)continue;let X=0;try{P("measuring_duration"),X=await is(he,{timeoutMs:3e3})}catch{X=0}if(!ge.current){if(T)try{URL.revokeObjectURL(T)}catch{}for(const ce of He)if(ce.objectUrl)try{URL.revokeObjectURL(ce.objectUrl)}catch{}return!1}ut+=X||0,He.push({...yt,src:he,objectUrl:T,duration:X})}if(mn(He,ut),He.length>0&&J&&ae){const yt=He[0];Xe(!1);try{g.keepOnly(He.map(he=>he.objectUrl))}catch{}if(P("ready"),b.current=!1,yt.src&&ae)try{if(ot(ae,yt.src),await xc(ae),await rt()===!1)return!1;de&&N(!1),hn(),ae&&await st(ae)}catch{de&&N(!1)}else de&&N(!1);H("playMode"),j(0),U(!0)}return He.length>0}finally{b.current=!1,de&&N(!1),P(Le=>Le==="ready"?"ready":"idle")}},vn=async J=>{const de=fe.isRunning();if(J.paused&&!de){if(Be.current){await zt();return}const ae=fe.resume();if(ae){if(L("playing"),ae.phase==="tail"){jt(ae.elapsed);return}await st(J,3,50,ae.elapsed);return}await st(J),L("playing")}else fe.pause(),nt(),J.pause(),L("paused"),de&&(qe(),ft())},It=async()=>{const J=f.current;if(!(!J&&!se)){if(se){const de=window.speechSynthesis;if(q==="active"){const ae=wa(),ye=Array.isArray(s)?s.filter(Boolean):s?[s]:[];if(ae&&ye.length>0){if(b.current)return;H("load"),N(!0),P("synthesizing"),b.current=!0;try{const Le=await Promise.all(ye.map(He=>Promise.resolve(ae(He))));Le.length>1?await Vn(Le,!0):await Hn(Le[0],!0)}catch{b.current=!1,N(!1),H("active"),it(ye.length>0?ye:void 0)}return}it(ye.length>0?ye:void 0);return}if(q==="playMode"){const ae=!!de&&(de.speaking||de.paused)&&!(J&&(J.currentSrc||J.getAttribute("src")));if(J&&!ae){await vn(J);return}try{if(de&&de.paused)try{tt("tts"),de.resume(),L("playing")}catch{}else try{de.pause(),L("paused")}catch{}}catch{}}return}if(q==="active"){if(i&&Array.isArray(te.current)&&te.current.length>0){const ae=te.current[0];try{if(ae.src&&J)try{ot(J,ae.src),hn(),J&&await st(J)}catch{}hn();return}catch{}}H("load");let de;try{de=await Ft(!0)}catch{de=!1}if(de===!1&&ge.current){try{De(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}H("active")}return}if(q!=="load"&&(q==="playMode"||q==="active"))try{J&&await vn(J)}catch(de){(de instanceof Error||typeof de=="object"&&de&&"name"in de)&&de.name}}},zt=async()=>{const J=f.current;if(J)try{const de=te.current;if(Array.isArray(de)&&de.length>1){await $t(0);return}Xe(!1);try{J.currentTime=0}catch{}J&&await st(J),L("playing"),H("playMode")}catch{}},Mn=()=>{nt(),xt(),Ie.current?.();const J=f.current;try{if(J){try{J.pause()}catch{}try{J.currentTime=0}catch{}}}catch{}ft(),L("stopped"),H("active"),Z(0),U(!1)},on=async(J,{sameSegment:de=!1}={})=>{nt();const ae=fe.generation(),ye=f.current,Le=te.current?.[J]?.src;try{if(Xe(!1),j(J),U(!0),ue.current=J,!Le||!ye||(de||Ct(),ot(ye,Le),!de&&await rt()===!1)||!fe.isCurrent(ae)||(await st(ye),!fe.isCurrent(ae)))return;L("playing"),H("playMode")}catch{}},xn=async()=>{const J=te.current,de=ue.current||0;if(!J||de<=0){await zt();return}await on(de-1)},zn=async()=>{const J=te.current,de=ue.current||0;if(!J||de>=J.length-1){Mn();return}await on(de+1)},_n=()=>{if(Be.current)return;const J=200,de=340;Xe(!0),nt(),xt();try{Z(1)}catch{}mt(1);try{Q("hold")}catch{}try{const ae=f.current,ye=se&&!!ae?.src;if(!se||ye){if(ae){ae.pause();try{ae.currentTime=0}catch{}}}else gt();ft()}catch{}try{L("stopped")}catch{}if(U(!1),!We.current)try{Ue.current&&(clearTimeout(Ue.current),Ue.current=null),Ue.current=setTimeout(()=>{try{Q("out")}catch{}Ue.current=setTimeout(()=>{try{typeof _e.current=="function"&&_e.current(!0)}catch{}try{Q("idle")}catch{}Ue.current=null},de)},J)}catch{}};o.useEffect(()=>{Qe.current=_n});const Wt=o.useCallback(()=>De(""),[]),$t=async J=>{(te.current||[])[J]&&await on(J,{sameSegment:J===ue.current})},qt=G==="playing",Cn=o.useMemo(()=>{if(!V||V.length<=1)return V;const J=V[S];return J?[J]:V},[V,S]),Ot=i===!0;o.useEffect(()=>{try{const J=f.current;J&&typeof J.playbackRate=="number"&&et(J)}catch{}},[le,et]);const sn=o.useRef({raf:null,timer:null});o.useEffect(()=>{const J=f.current;if(!J)return;const de=Math.max(0,Math.min(1,ke)),ae=sn.current,ye=()=>{ae.raf!==null&&(cancelAnimationFrame(ae.raf),ae.raf=null),ae.timer!==null&&(clearTimeout(ae.timer),ae.timer=null)};ye();const Le=Ya(J);if(J.paused||Math.abs(Le-de)<.001||typeof requestAnimationFrame!="function"){try{Pn(J,de)}catch{}return}const He=performance.now(),ut=()=>{const yt=Math.min(1,(performance.now()-He)/150);try{Pn(J,Le+(de-Le)*yt)}catch{}ae.raf=yt<1?requestAnimationFrame(ut):null};return ae.raf=requestAnimationFrame(ut),ae.timer=setTimeout(()=>{ye();try{Pn(J,de)}catch{}},200),ye},[ke]);const Dt=Y==="hold",ie=Y==="out",ve=q==="playMode"&&!D&&!je||Dt||ie,Me=G!=="stopped"||Dt||ie,Je=G==="paused",Oe=Math.max(0,Math.min(100,($||0)*100)),Ye=we("audio-player__fill",ve?"is-visible":"",Me?"is-expanded":"",Je?"is-paused":"",ie?"is-out":"");return n.jsxs("div",{className:`audio-player ${Ot?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof C=="string"?C:void 0,children:[n.jsxs("div",{className:`audio-player__panel ${qt?"is-playing":""} ${D?"is-loading":""} ${q!=="default"?"is-revealed":""}`,children:[D?n.jsxs("div",{className:"audio-player__loading",role:vc[O]?"status":void 0,"aria-live":vc[O]?"polite":"off",children:[n.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),n.jsx("span",{className:"audio-player__loading-text",children:p(`training.audioStatus.${O}`,{defaultValue:Y3[O]})})]}):null,q==="active"?n.jsx("button",{className:"audio-player__button",type:"button",disabled:Ot,onClick:()=>{W.current=mr(),E(),It()},"aria-label":typeof C=="string"?C:p("training.listen","\uB4E3\uAE30"),onMouseEnter:B,onMouseLeave:E,onFocus:B,onBlur:E,children:n.jsx("span",{ref:v,className:"audio-player__button-triangle-wrap",children:n.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:n.jsx("path",{ref:A,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(Bn,{anchorRect:w,text:typeof C=="string"&&C?C:p("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),n.jsxs("div",{className:`audio-player__play ${q==="playMode"||qt?"is-visible":""}`,inert:!(q==="playMode"||qt)||void 0,children:[n.jsxs("div",{ref:_,className:"audio-player__buttons",children:[n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:xn,ariaLabel:p("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:q!=="playMode"}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:qt?"pause":"play",onClick:It,ariaLabel:p("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":qt,width:"60px",variant:"transparent-white",disabled:q!=="playMode"}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Mn,ariaLabel:p("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:q!=="playMode"}),Ve>1?n.jsx("div",{ref:k,className:"audio-player__source-buttons",children:Array.from({length:Ve}).map((J,de)=>n.jsx(pe,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(de+1),onClick:()=>{try{$t(de)}catch{}},ariaLabel:p("training.sourcePlay",{n:de+1}),variant:"transparent-white",selected:I&&S===de,disabled:q!=="playMode"||!(Array.isArray(R)&&R[de]),showTooltipInfo:!0},de))}):null,!Array.isArray(R)||R.length<=1?n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:zt,ariaLabel:p("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:q!=="playMode"}):null,n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:zn,ariaLabel:p("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:q!=="playMode"}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:_n,ariaLabel:p("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:q!=="playMode"})]}),n.jsxs("div",{className:"audio-player__slider",children:[n.jsx("div",{className:Ye,ref:h,style:{left:`${Oe}%`},"aria-hidden":"true"}),(u||c)&&n.jsx(K3,{segments:Cn,progress:$,totalDuration:re,waveProgressRef:Ce,showSoundWaveForm:u,leadInMs:d,tailMs:m,trackDurationSec:R?.[S]?.duration??0,noiseSrc:c&&y?.settings.enabled&&oe>0?dt:null,noiseRatio:y?Wa(y.settings):0,noiseSpeed:y?.settings.speed??1,mainVolume:K,onReadyChange:ct})]})]}),n.jsx("audio",{ref:f,crossOrigin:"anonymous",preload:"auto"})]}),!u&&n.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[n.jsx(at,{icon:"triangle-alert",size:14}),p("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),n.jsx(ca,{message:me,position:be,onClose:Wt})]})}function _r(e){const{t}=xe.useTranslation(),{text:a,label:r,anchorRect:i=null,onClose:s,closeOnOutsideClick:l=!0,isMobilePopup:u=!1}=e||{},[c,d]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",c)}catch{}},[c]);const{increase:m,decrease:p,canIncrease:C,canDecrease:y,fontSize:x,lineHeight:f}=wl({storageKey:"tooltip-fontScale"}),h=o.useCallback(()=>d(A=>A==="dark"?"light":"dark"),[]),_=o.useCallback(A=>{try{A.stopPropagation()}catch{}try{typeof s=="function"&&s()}catch{}},[s]),g=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],k={fontSize:`${x}px`,lineHeight:`${f}px`,"--tt-line-height":`${f}px`,"--tt-marker-size":"28px"},b=n.jsxs("div",{className:`tooltip-textbox__root ${c==="dark"?"is-dark":""}`,children:[n.jsxs("div",{className:"tooltip-textbox__box",children:[r&&n.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),n.jsx("div",{className:"tooltip-textbox__text body-1",style:k,children:g.map((A,v)=>n.jsxs("div",{className:"tooltip-textbox__line",children:[g.length>1?n.jsx("div",{className:"tooltip-textbox__marker",children:n.jsx("span",{className:"tooltip-textbox__line-number button-1",children:v+1})}):null,n.jsx("span",{className:"tooltip-textbox__line-text",children:A})]},v))})]}),n.jsxs("div",{className:"tooltip-textbox__buttons",children:[n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:p,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!y}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:m,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!C}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:c==="dark"?"moon":"sun-medium",onClick:h,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:c==="dark"?"transparent-white":"transparent-gray"}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:_,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:c==="dark"?"transparent-white":"transparent-gray"})]})]});return i?n.jsx(cn,{anchorRect:i,className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,onClose:s,closeOnOutsideClick:l,isMobilePopup:u,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:b}):n.jsx("div",{className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,children:b})}function wc({state:e="disabled"}){const{t}=xe.useTranslation();return n.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[n.jsx("div",{className:"bullet__dot",children:n.jsx(at,{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 Bc(e,t,a){const r=o.useRef(t),i=o.useRef(a);o.useEffect(()=>{r.current=t,i.current=a}),o.useEffect(()=>{if(!e||typeof document>"u")return;let s=null,l=10;const u=()=>{s=null;const c=r.current(),d=c?Array.from(c.querySelectorAll(fn)).find(m=>!m.closest('[aria-hidden="true"]')):void 0;if(d){try{d.focus()}catch{}if(document.activeElement===d)return}--l>0&&(s=requestAnimationFrame(u))};return s=requestAnimationFrame(u),()=>{s!==null&&cancelAnimationFrame(s);const c=document.activeElement;if(!c||c===document.body||!document.contains(c)||c.closest(".tooltip-content")){const d=i.current();if(d)try{d.focus()}catch{}}}},[e])}function Ac({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:i=!1,onPreviewTextBtn:s,previewText:l=null,useFaded:u,usePlayAllBtn:c=!1,onPlayAll:d,playAllActive:m=!1}){const{t:p}=xe.useTranslation(),C=ln("(max-width: 767px)"),y=`training-step__title h4 ${u&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),x=`training-step__title-row training-step__title-row--${r}`.trim(),f=o.useRef(null),[h,_]=o.useState(!1),[g,k]=o.useState(null),[b,A]=o.useState(null);Bc(h&&!!g,()=>{if(typeof document>"u")return null;const D=Array.from(document.querySelectorAll(".tooltip-content"));for(let N=D.length-1;N>=0;N--)if(D[N].querySelector(".tooltip-textbox__root"))return D[N];return null},()=>f.current?.querySelector("button")??null);const v=o.useRef(s);o.useEffect(()=>{v.current=s});const w=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(()=>{_(!1),k(null),A(null)},[]);o.useEffect(()=>{if(!h)return;let D;try{typeof v.current=="function"&&(D=v.current())}catch{}if(D===!1){B();return}A(typeof D<"u"&&D!==null?D:null)},[w]);const E=o.useCallback(()=>{let D;try{typeof s=="function"&&(D=s())}catch{}if(D!==!1){if(A(typeof D<"u"&&D!==null?D:l),!f.current){_(N=>!N);return}if(h)_(!1),k(null),A(null);else{const N=f.current.getBoundingClientRect();k(N),_(!0)}}},[s,l,h]);return n.jsxs("div",{className:x,children:[n.jsx("p",{className:y,children:n.jsx("span",{className:"training-step__title-text",children:e??t})}),i||c?n.jsxs("div",{className:"title-controls",children:[n.jsxs("div",{className:"title-buttons",children:[c&&n.jsx(pe,{htmlType:"button",size:32,type:C?"dot":"bar",icon:"play-circle",label:C?void 0:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:m,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||m,onDisabledClick:m&&r!=="disabled"?()=>{}:void 0}),i&&n.jsx("div",{ref:f,children:n.jsx(pe,{htmlType:"button",size:32,type:C?"dot":"bar",icon:"eye",label:C?void 0:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:E,className:h?"is-selected":void 0,"aria-expanded":h,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof s!="function"})})]}),h&&n.jsx(_r,{text:b??l,label:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:g,onClose:B,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function us(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Jn({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:i={},children:s,className:l="",onDone:u=void 0,useTitleFaded:c=void 0,lockedHint:d}){const{t:m}=xe.useTranslation(),[p,C]=o.useState(()=>us(e,t));o.useEffect(()=>{const v=us(e,t);if(v!==p){const w=setTimeout(()=>C(v),0);return()=>clearTimeout(w)}},[e,t,p]);const y=o.useCallback((...v)=>{us(e,t)==="done"||p==="done"||typeof u=="function"&&u(...v)},[e,t,p,u]),[x,f]=o.useState(!1),[h,_]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),g=o.useCallback(v=>{if(!v)return null;try{const w=v;if(typeof v=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const D=w.currentTarget??w.target;if(D&&typeof D.getBoundingClientRect=="function")return D.getBoundingClientRect()}if(v instanceof DOMRect)return v;const B=v;if(B&&typeof B.getBoundingClientRect=="function")return B.getBoundingClientRect();const E=v?.current;return E&&typeof E.getBoundingClientRect=="function"?E.getBoundingClientRect():null}catch{return null}},[]),k=o.useCallback((v,{text:w="",label:B="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:E=!1,alignX:D="center",alignY:N="top"}={})=>{const O=g(v);_({text:w,label:B,anchorRect:O,backdrop:E,alignX:D,alignY:N}),f(!0)},[g]),b=o.useCallback(()=>{f(!1),_(v=>({...v,anchorRect:null}))},[]),A=o.Children.map(s,v=>{if(o.isValidElement(v)){const w=v;if(typeof w.type=="string")return w;const B=w.props??{},E=typeof B.onDone=="function"?B.onDone:y,D=typeof B.disabled=="boolean";let N=p==="disabled";return D&&(N=!!B.disabled),o.cloneElement(w,{onDone:E,disabled:N,showTooltip:k,hideTooltip:b})}return v});return n.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[n.jsx(wc,{state:p}),n.jsxs("div",{className:"training-step__content",children:[n.jsx(Ac,{state:p,title:r,...i,useFaded:c}),p==="disabled"&&d&&typeof e=="number"&&typeof t=="number"&&e===t+1&&n.jsx("p",{className:"training-step__locked-hint caption-1",role:"status",children:d}),A]}),x?n.jsx(cn,{anchorRect:h.anchorRect,backdrop:h.backdrop,onClose:b,ariaLabel:m("tooltip.textbox","\uBCF8\uBB38"),children:n.jsx(_r,{text:h.text,onClose:b})}):null]})}function kc({context:e,state:t="disabled",theme:a="light"}){const{t:r}=xe.useTranslation(),[i,s]=o.useState("disabled"),[l,u]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const c=()=>u(P=>P==="dark"?"light":"dark"),{increase:d,decrease:m,canIncrease:p,canDecrease:C,fontSize:y,lineHeight:x}=wl({storageKey:"textbox_fontScale"}),[f,h]=o.useState(""),_=o.useRef(null),g=o.useRef(!1),k=o.useCallback(()=>{g.current=mr()&&!!_.current&&_.current.contains(document.activeElement),s("active")},[]),b=o.useCallback(()=>h(""),[]),A=P=>{try{h(P)}catch{}},v=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(t!=="disabled"){const P=setTimeout(()=>s(t),0);return()=>clearTimeout(P)}},[t]);const w=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[B,E]=o.useState(w);B!==w&&(E(w),s("disabled"));const D=t==="disabled"?i:t,N=D==="disabled"?"training-text-box--disabled":D==="active"?"training-text-box--active":D==="done"?"training-text-box--done":"",O=o.useMemo(()=>({fontSize:`${y}px`,lineHeight:`${x}px`}),[y,x]);return o.useEffect(()=>{if(D==="disabled"||!g.current)return;g.current=!1;const P=document.activeElement;P&&P!==document.body||_.current?.querySelector(".training-text-box__buttons button")?.focus()},[D]),n.jsxs("div",{ref:_,className:`training-text-box ${N} ${D!=="disabled"&&l==="dark"?"is-dark":""}`,children:[D==="disabled"&&n.jsx("div",{className:"training-text-box__preview",children:n.jsx(pe,{htmlType:"button",size:48,type:"bar",onClick:k,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:w})}),D!=="disabled"&&n.jsxs("div",{className:"training-text-box__buttons","aria-hidden":D==="disabled",children:[n.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:m,onDisabledClick:()=>A(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:!C,useBorder:!1,showTooltipInfo:!0,...!v&&{width:"60px"}}),n.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>A(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!p,useBorder:!1,showTooltipInfo:!0,...!v&&{width:"60px"}}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:c,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),n.jsx(ca,{message:f,position:"top",onClose:b})]})}function Qn(e){return e==="active"||e==="done"}function cs({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:i,useTitleFaded:s,onDone:l,onChange:u,answer:c,wrongAnswers:d,choices:m,multiSelect:p=!1,correctCount:C=0,useDisabledCovered:y=!1,choiceIcons:x,shuffleChoices:f=!0}){const{t:h}=xe.useTranslation(),_=i??h("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),g=typeof e=="number"?e:-1,k=typeof t!="number"?"disabled":g<t?"done":g===t?"active":"disabled",b=Array.isArray(m)&&m.length?m:typeof c<"u"?[c].concat(Array.isArray(d)?d:[]):void 0,A=d?d.join("||"):"",v=m?m.join("||"):"",[w,B]=o.useState(()=>Array.isArray(b)?f?ka(b):b.slice():void 0);o.useEffect(()=>{Array.isArray(b)&&b.length?B(f?ka(b):b.slice()):B(void 0)},[c,A,v,f]);const[E,D]=o.useState(null),[N,O]=o.useState(()=>new Set);o.useEffect(()=>{D(null),O(new Set)},[v,c,A]);const P=o.useRef(void 0);o.useEffect(()=>{const M=P.current;typeof M=="number"&&typeof t=="number"&&typeof e=="number"&&M>=e&&t<e&&(D(null),O(new Set)),P.current=t},[t,e]);const G=o.useCallback(M=>{if(!Qn(k))return;const $=w?.[M];if($==null)return;const Z=$;if(p){const q=new Set(N);q.has(Z)?q.delete(Z):q.add(Z),O(q),typeof u=="function"&&u({selectedValues:[...q],__ts:Date.now()}),typeof l=="function"&&l({selectedValues:[...q],__ts:Date.now()})}else D(Z),typeof u=="function"&&u({selectedIndex:M,selectedValue:Z,__ts:Date.now()}),typeof l=="function"&&l({selectedIndex:M,selectedValue:Z,__ts:Date.now()})},[w,k,p,u,N]),L=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return n.jsx(Jn,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:_,useTitleFaded:s,children:n.jsx("div",{className:L,children:Array.isArray(w)&&w.length>0?w.map((M,$)=>n.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:()=>G($),ariaLabel:String(M),label:M,useLabel:!0,icon:x?x[String(M)]:void 0,variant:"default",disabled:k==="disabled",selected:p?N.has(M):E===M,useDisabledCovered:y,minWidth:0},String(M))):null})})}function ds({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:i,onDone:s,onChange:l,context:u,demoSelected:c}){const{t:d}=xe.useTranslation(),m=i??d("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,C=typeof t!="number"?"disabled":p<t?"done":p===t?"active":"disabled",y=u&&typeof u=="object"?u.sentence||"":typeof u=="string"?u:"",x=u&&typeof u=="object"?u.choices:void 0,[f,h]=o.useState(c??null),_=`${String(y)}\0${JSON.stringify(x??null)}`,[g,k]=o.useState(_);g!==_&&(k(_),c==null&&h(null));const[b,A]=o.useState(c);Object.is(b,c)||(A(c),h(c??null));const v=o.useRef(void 0);o.useEffect(()=>{const D=v.current;typeof D=="number"&&typeof t=="number"&&typeof e=="number"&&D>=e&&t<e&&c==null&&h(null),v.current=t},[t,e,c]);const w=o.useCallback(D=>{const N=typeof D=="object"&&D!==null?Object.assign({},D,{__ts:Date.now()}):{value:D,__ts:Date.now()};typeof l=="function"&&l(N),Qn(C)&&typeof s=="function"&&s(N)},[l,C,s]),B=o.useCallback(()=>{Qn(C)&&(h(!1),w(!1))},[w,C]),E=o.useCallback(()=>{Qn(C)&&(h(!0),w(!0))},[w,C]);return n.jsxs(Jn,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:m,onDone:s,useTitleFaded:!1,children:[n.jsx(kc,{context:u,state:C}),n.jsx("div",{className:"training-step__buttons",children:Array.isArray(x)&&x.length>0?x.slice(0,6).map((D,N)=>n.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:()=>{Qn(C)&&(h(N),w&&w(N))},disabled:C==="disabled",ariaLabel:String(D),label:D,variant:C,selected:f===N},N)):n.jsxs(n.Fragment,{children:[n.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:B,disabled:C==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!1}),n.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:E,disabled:C==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!0})]})})]})}function ps({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:i,btnLabel:s,soundSrc:l,bucketPath:u,usePreviewTextBtn:c,previewText:d=null,onPreviewTextBtn:m,disabled:p,_pageIndex:C,showSoundWaveForm:y,showNoiseWaveForm:x,leadInMs:f,tailMs:h}){const{t:_}=xe.useTranslation(),g=r??_("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),k=p??(typeof t=="number"&&typeof e=="number"?e>t:!1);return n.jsx(Jn,{index:e,stepIndex:t,isLast:a,title:g,onDone:i,titleProps:{usePreviewTextBtn:c,previewText:d,onPreviewTextBtn:m},children:n.jsx(ls,{soundSrc:l,ttsText:l?null:d??g,bucketPath:u,btnLabel:s||_("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:k,className:"training-step__listen-sticky",showSoundWaveForm:y,showNoiseWaveForm:x,leadInMs:f,tailMs:h},`audio-p${C??0}-s${e}`)})}const r7=[];function ms({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:i,onDone:s,onChange:l,context:u=r7}){const{t:c}=xe.useTranslation(),d=i??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),m=F=>typeof F=="string"?F:F&&(F.context||F.sentence||F.question||"")||"",[p,C]=o.useState(Array.isArray(u)?u:[]),[y,x]=o.useState(()=>(p||[]).map((F,S)=>({id:S,text:m(F)}))),f=o.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]),h=f!=="disabled",_=o.useRef(void 0),g=o.useRef(void 0);o.useEffect(()=>{if(_.current===u)return;_.current=u;const F=Array.isArray(u)?u:[];C(F);const S=(j=>{const I=(j||[]).map((le,K)=>({id:K,text:m(le)}));if(I.length<=1)return I;const U=(le,K)=>{if(le.length!==K.length)return!1;for(let oe=0;oe<le.length;oe++)if(le[oe].text!==K[oe].text)return!1;return!0};let re=ka(I),ne=0;for(;U(re,I)&&ne<20;)re=ka(I),ne+=1;return re})(F);x(S);try{if(typeof l=="function"){const j=S.filter((I,U)=>I.text===m(F[U])).length;l({shuffled:S,score:j,total:(F||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&f==="active"){const j=S.filter((I,U)=>I.text===m(F[U])).length;g.current=u,s({shuffled:S,score:j,total:(F||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[u]),o.useEffect(()=>{if(f!=="active"||g.current===u||(g.current=u,typeof s!="function"))return;const F=Array.isArray(u)?u:[],S=y.filter((j,I)=>j.text===m(F[I])).length;s({shuffled:y,score:S,total:F.length,initial:!0,__ts:Date.now()})},[f,u]);const k=(F,S)=>{const j=[...y],I=F+S;if(I<0||I>=j.length)return;const U=j[I];j[I]=j[F],j[F]=U,Z(j);try{if(typeof s=="function"&&f==="active"){const re=j.filter((ne,le)=>ne.text===m(p[le])).length;s({shuffled:j,score:re,total:(p||[]).length,__ts:Date.now()})}}catch{}},[b,A]=o.useState(null),v=o.useRef(null),w=o.useRef(null),B=o.useRef(null),E=o.useRef(null),D=o.useRef(null),N=o.useRef({x:0,y:0}),O=o.useRef(null),P=o.useRef({dx:0,dy:0}),G=()=>{if(O.current!==null)return;const F=()=>{if(!v.current){O.current=null;return}O.current=requestAnimationFrame(F);const S=N.current,j=P.current||{dx:0,dy:0};v.current&&(v.current.style.transform=`translate3d(${S.x-j.dx}px, ${S.y-j.dy}px, 0)`)};O.current=requestAnimationFrame(F)},L=o.useRef(new Map),M=o.useRef(new Map),$=()=>{const F=new Map;return L.current.forEach((S,j)=>{S&&S.getBoundingClientRect&&F.set(j,S.getBoundingClientRect())}),F},Z=F=>{const S=$();x(F);try{if(typeof l=="function"){const j=F.filter((I,U)=>I.text===m(p[U])).length;l({shuffled:F,score:j,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const j=$();F.forEach(I=>{const U=S.get(I.id),re=j.get(I.id),ne=L.current.get(I.id);if(!ne||!U||!re)return;const le=U.top-re.top;le&&(ne.style.transition="none",ne.style.transform=`translateY(${le}px)`,requestAnimationFrame(()=>{ne.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",ne.style.transform="";const K=()=>{ne.style.transition="",ne.removeEventListener("transitionend",K)};ne.addEventListener("transitionend",K)}))})})},q=(F,S)=>{try{try{S.dataTransfer?.setData("text/plain",String(F))}catch{}try{S.dataTransfer&&(S.dataTransfer.effectAllowed="move")}catch{}try{const j=document.createElement("div");j.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(j),S.dataTransfer?.setDragImage(j,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(j)}catch{}})}catch{}}catch{}A(F);try{const j=y[F],I=document.createElement("div");I.className="order-list__dragging-object order-list__dragging-object--visible",I.textContent=j&&j.text?j.text:"",document.body.appendChild(I),v.current=I;const U=L.current.get(j.id);let re=S.clientX||0,ne=S.clientY||0;try{if(U&&U.getBoundingClientRect){const Q=U.getBoundingClientRect();re=Q.left+Q.width/2,ne=Q.top+Q.height/2}}catch{}const le=I.getBoundingClientRect(),K=le.width/2,oe=le.height/2;P.current={dx:K,dy:oe},I.style.transition="none",N.current={x:re,y:ne},I.style.transform=`translate3d(${re-K}px, ${ne-oe}px, 0)`,requestAnimationFrame(()=>{try{I.style.transition=""}catch{}G()});const ke=Q=>{const me=Q;N.current={x:me.clientX,y:me.clientY},G()};B.current=ke,document.addEventListener("mousemove",ke);const Y=Q=>{const me=Q;N.current={x:me.clientX,y:me.clientY},G()};w.current=Y,document.addEventListener("dragover",Y);try{S.dataTransfer?.setData("text/plain",String(F));try{S.dataTransfer?.setData("application/json",JSON.stringify({idx:F}))}catch{}}catch{}}catch{}},H=(F,S)=>{S.preventDefault();try{S.dataTransfer&&(S.dataTransfer.dropEffect="move")}catch{}try{D.current!==null&&(clearTimeout(D.current),D.current=null);const j=S.currentTarget&&S.currentTarget.closest?S.currentTarget.closest(".order-list__item"):null;if(j&&E.current!==j){if(E.current)try{E.current.classList.remove("drag-over")}catch{}try{j.classList.add("drag-over")}catch{}E.current=j}}catch{}},W=(F,S)=>{S.preventDefault();const j=S.dataTransfer?.getData("text/plain")||"",I=j?parseInt(j,10):b,U=F;if(typeof I!="number"||isNaN(I)||I===U){A(null),V(),R();return}const re=cf(y,I,U);Z(re),A(null),R();try{if(typeof s=="function"&&f==="active"){const ne=re.filter((le,K)=>le.text===m(p[K])).length;s({shuffled:re,score:ne,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const ne=document.querySelectorAll(".order-list .order-list__item")[U];if(!ne)return;const le=ne.querySelector(".order-list__slot")||ne;try{le.classList.add("pulse"),le.offsetHeight,le.classList.add("to-dark");const K=()=>{le.classList.remove("pulse","to-dark"),le.removeEventListener("transitionend",K)};le.addEventListener("transitionend",K)}catch{}})}catch{}V()},R=()=>{if(v.current){try{document.body.removeChild(v.current)}catch{}v.current=null}w.current&&(document.removeEventListener("dragover",w.current),w.current=null),B.current&&(document.removeEventListener("mousemove",B.current),B.current=null),O.current!==null&&(cancelAnimationFrame(O.current),O.current=null)},z=()=>{A(null),V(),R()};o.useEffect(()=>()=>R(),[]);const V=()=>{try{if(D.current!==null&&(clearTimeout(D.current),D.current=null),E.current){try{E.current.classList.remove("drag-over")}catch{}E.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(F=>F.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const F=Math.max(1,(y||[]).length);y.forEach((S,j)=>{const I=M.current.get(S.id);if(!I)return;let U=50;F>1&&(U=Math.round(j/(F-1)*100));try{I.style.setProperty("--marker-pos",U+"%")}catch{}})}catch{}},[y]),o.useEffect(()=>()=>{R(),D.current!==null&&(clearTimeout(D.current),D.current=null)},[]),n.jsx(Jn,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:d,children:n.jsx("div",{className:"order-list",children:y.map((F,S)=>{const j=Math.max(1,(y||[]).length),I=j>1?Math.round(S/(j-1)*100):50;return n.jsx("div",{className:"order-list__item",children:n.jsxs("div",{className:"order-list__slot","data-disabled":f==="disabled","aria-disabled":f==="disabled",children:[f!=="disabled"?n.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":I+"%"},ref:U=>{const re=M.current;U?re.set(F.id,U):re.delete(F.id)},children:n.jsx("span",{className:"order-list__slot-number button-1",children:S+1})}):null,n.jsxs("div",{ref:U=>{const re=L.current;U?re.set(F.id,U):re.delete(F.id)},className:`order-list__draggable ${b===S?"dragging":""}`,"data-disabled":f==="disabled","aria-disabled":f==="disabled",tabIndex:f==="disabled"?-1:0,draggable:h,onDragStart:h?U=>q(S,U):void 0,onDragEnter:h?U=>H(S,U):void 0,onDragOver:h?U=>H(S,U):void 0,onDragLeave:h?()=>{try{D.current!==null&&clearTimeout(D.current),D.current=setTimeout(()=>{try{const U=document.querySelectorAll(".order-list .order-list__item");U&&U[S]&&(U[S].classList.remove("drag-over"),E.current===U[S]&&(E.current=null))}catch{}},80)}catch{}}:void 0,onDrop:h?U=>W(S,U):void 0,onDragEnd:h?z:void 0,children:[n.jsx("span",{className:"order-list__item-text body-2",children:F.text}),h?n.jsxs("span",{className:"order-list__item-buttons",children:[n.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:()=>k(S,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:S===0,useBorder:!1,useDisabledInvisible:!0}),n.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:()=>k(S,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:S===y.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},F.id)})})})}const o7=8e3;function s7(e,t){return new Promise(a=>{let r=!1;const i=()=>{r||(r=!0,a())};e.then(i,i),setTimeout(i,t)})}function Nc({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:i,onDone:s,onChange:l,context:u=[],selectable:c=!1,hideLabel:d=!1,hideAudio:m=!1,maxCards:p,playAllGapMs:C=0}){const{t:y}=xe.useTranslation(),x=i??y("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),f=o.useMemo(()=>Array.isArray(u)?u:u&&u.items||[],[u]),h=p??3,_=(f||[]).slice(0,h);(f||[]).length>h&&console.warn(`TrainingStepCard: ${f.length} items passed but only ${h} shown`);const g=typeof e=="number"?e:-1,k=typeof t!="number"?"disabled":g<t?"done":g===t?"active":"disabled",[b,A]=o.useState(null),v=o.useRef([]),[w,B]=o.useState(!1),E=o.useRef(null),D=o.useRef(!0);o.useEffect(()=>(D.current=!0,()=>{D.current=!1}),[]);const N=o.useMemo(()=>f.map($=>$?.id??$?.word??"").join("|"),[f]);o.useEffect(()=>{A(null)},[N]);const O=o.useRef(void 0);o.useEffect(()=>{const $=O.current;typeof $=="number"&&typeof t=="number"&&typeof e=="number"&&$>=e&&t<e&&A(null),O.current=t},[t,e]);const P=o.useCallback(($,Z)=>{if(c)return;const q={item:$,index:Z,__ts:Date.now()};try{typeof l=="function"&&l(q)}catch{}if(k==="active"&&typeof s=="function")try{s(q)}catch{}},[c,l,k,s]),G=o.useRef(C);o.useEffect(()=>{G.current=Math.max(0,C||0)},[C]);const L=o.useCallback(async()=>{if(w||k==="disabled")return;B(!0);let $=!1;const Z=new Promise(q=>{E.current=()=>{$=!0,q()}});try{for(let q=0;q<_.length&&!(!D.current||$);q++){const H=v.current[q];if(!H)continue;await Promise.race([s7(H.play(),o7),Z]);const W=Math.max(0,G.current||0);W>0&&q<_.length-1&&!$&&D.current&&await Promise.race([new Promise(R=>{setTimeout(R,W)}),Z])}}finally{E.current=null,B(!1)}},[w,k,_.length]),M=o.useCallback(($,Z)=>{if(!Qn(k))return;A(Z);const q={selectedValue:$.word||$.title||"",selectedIndex:Z,item:$,__ts:Date.now()};try{typeof l=="function"&&l(q)}catch{}if(typeof s=="function")try{s(q)}catch{}},[l,k,s]);return n.jsx(Jn,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:x,onDone:s,titleProps:{usePlayAllBtn:!m&&_.length>0,onPlayAll:L,playAllActive:w},children:n.jsx("div",{className:"training-step__cards",onClickCapture:$=>{const Z=E.current;if(!Z)return;const q=$.target;q&&typeof q.closest=="function"&&q.closest(".training-word-card__bottom")&&Z()},children:_.length===0?n.jsx("div",{className:"training-step__empty",children:y("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):_.map(($,Z)=>n.jsx(Wo,{ref:q=>{v.current[Z]=q},item:$,disabled:k==="disabled",onPlayDone:()=>P($,Z),selectable:c,selected:c&&b===Z,onSelect:c?()=>M($,Z):void 0,flipDelay:Z*120,hideLabel:d,hideAudio:m},$&&$.id||Z))})})}const i7=160,Ec=()=>{};function Sn(e){const t=o.useId();if(!("variant"in e)){const{label:g,sub:k,onClick:b,children:A,align:v="horizontal",icon:w,useFullWidth:B=!1}=e,E=D=>{b&&D.target===D.currentTarget&&(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),b())};return n.jsxs("div",{className:we("panel-row",v==="vertical"?"panel-row--vertical":"",B?"panel-row--label-fixed panel-row--fill":"",b?"panel-row--clickable":""),onClick:b,onKeyDown:b?E:void 0,role:b?"button":void 0,tabIndex:b?0:void 0,children:[w!=null&&n.jsx("div",{className:"panel-row__icon",children:w}),g!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:g}),k&&n.jsx("div",{className:"panel-row__sub caption-1",children:k})]}),n.jsx("div",{className:"panel-row__right",children:A})]})}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(Oa,{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:i,onClick:s,required:l,error:u,align:c="horizontal",useFullWidth:d=!1,icon:m}=e,p=a==="button"?void 0:s;let C=null;const y=a==="toggle"?`panel-toggle-${t}`:void 0,x=u?`panel-error-${t}`:void 0,f=`panel-helper-${t}`;if(a==="toggle"){const g=e;C=n.jsx(cu,{checked:g.checked,onChange:g.onChange,id:y})}else if(a==="segmented"){const g=e;C=n.jsx(gn,{options:g.options,value:g.value,onChange:g.onChange,size:g.size??40,ariaLabel:r})}else if(a==="dropdown"){const g=e,k=g.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:g.dropdowns.map((b,A)=>n.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:n.jsx(pn,{options:b.options,value:b.value,onChange:b.onChange,placeholder:b.placeholder,block:d,error:!!u,ariaDescribedBy:x,ariaLabel:b.ariaLabel??([r,b.placeholder].filter(Boolean).join(" ")||void 0)})},A))}):n.jsx(pn,{options:g.options??[],value:g.value??"",onChange:g.onChange??Ec,block:d,error:!!u,ariaLabel:r,ariaDescribedBy:x});C=u?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[k,n.jsx("span",{id:x,className:"caption-1 panel-row__error",role:"alert",children:u})]}):k}else if(a==="button"){const g=e;g.buttons?.length?C=n.jsx("div",{className:"panel-row__button-group",children:g.buttons.map((k,b)=>n.jsx(pe,{htmlType:"button",size:k.btnSize??40,variant:k.btnVariant??"default",disabled:k.disabled,onClick:k.onClick,children:k.label},b))}):C=n.jsx(pe,{htmlType:"button",size:g.btnSize??40,variant:g.btnVariant??"default",disabled:g.disabled,onClick:g.onClick,children:g.buttonLabel})}else if(a==="text"){const g=e;C=n.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:g.valueColor?{color:g.valueColor}:void 0,children:g.value})}else if(a==="input"){const g=e;C=n.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[n.jsx(Xn,{value:g.value,onChange:g.onChange??Ec,onKeyDown:g.onKeyDown,onEnter:g.onEnter,placeholder:g.placeholder,ghostText:g.ghostText,ghostHint:g.ghostHint,inputMode:g.inputMode,readOnly:g.readOnly,disabled:g.disabled,type:g.type,autoComplete:g.autoComplete,maxLength:g.maxLength,showCount:g.showCount,multiline:g.multiline,rows:g.rows,fullWidth:d,error:u,ariaLabel:r,required:l,ariaDescribedBy:g.helperText?f:void 0}),g.helperText&&n.jsx("div",{id:f,className:"panel-row__helper caption-1",children:g.helperText})]})}else a==="custom"&&(C=e.children);u&&a!=="input"&&a!=="dropdown"&&(C=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[C,n.jsx("span",{id:x,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const h=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,_=g=>{p&&g.target===g.currentTarget&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),p())};return n.jsxs("div",{className:we("panel-row",c==="vertical"?"panel-row--vertical":"",h?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",p?"panel-row--clickable":""),onClick:p,onKeyDown:p?_:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,children:[m!=null&&n.jsx("div",{className:"panel-row__icon",children:m}),n.jsxs("div",{className:"panel-row__left",children:[y?n.jsxs("label",{htmlFor:y,className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}):n.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}),i&&n.jsx("div",{className:"panel-row__sub caption-1",children:i})]}),n.jsx("div",{className:"panel-row__right",children:C})]})}function Dc(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function l7({devices:e,onRelease:t,emptyLabel:a}){const{t:r,i18n:i}=xe.useTranslation();return n.jsx("div",{className:"panel-row panel-row--device",children:["left","right"].map(s=>{const l=e[s],u=s==="left"?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:u}),l&&t&&n.jsx(pe,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${u} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(s)})]}),l?n.jsxs("div",{className:"panel-row__device-info",children:[n.jsxs("span",{className:"panel-row__device-kind",children:[l.device&&n.jsx(kt,{size:"small",variant:Du(l.device),fill:"soft",label:Su(l.device,r)}),Dc(l)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:Dc(l)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:l.productName||l.brand}),Ho(l.wornYear,l.wornMonth,l.wornDay,i.language)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:Ho(l.wornYear,l.wornMonth,l.wornDay,i.language)})})]}):n.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},s)})})}function wr({title:e,titleLevel:t=2,icon:a,disc:r,actions:i,size:s="medium",minHeight:l,maxWidth:u,className:c,scrollable:d,scrollbarGutter:m="auto",compactRows:p=!1,useBorder:C=!0,useBg:y=!0,useRowBorder:x=!0,labelWidth:f,form:h=!1,loading:_,empty:g,children:k}){const b=we("panel",`panel--${s}`,h?"panel--form":"",l!==void 0?"panel--fill":"",C?"":"panel--no-border",y?"":"panel--no-bg",x?"":"panel--no-row-border",p?"panel--compact-rows":"",c),A={};l!==void 0&&(A.minHeight=l),u!==void 0&&(A.maxWidth=typeof u=="number"?`${u}px`:u),f!==void 0&&(A["--panel-label-width"]=typeof f=="number"?`${f}px`:f);const v=t?`h${t}`:"div";return n.jsxs("div",{className:b,style:Object.keys(A).length?A:void 0,children:[(!!e||r!=null)&&n.jsxs("div",{className:we("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&n.jsx(at,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[!!e&&n.jsx(v,{className:`panel__title ${r!=null?"body-3b":"h5b"}`,children:e}),r!=null&&n.jsx("p",{className:"panel__disc caption-1",children:r})]}),i&&n.jsx("div",{className:"panel__actions",children:i})]}),_?n.jsx(Sn,{variant:"loading"}):g!=null&&o.Children.toArray(k).length===0?n.jsx(Sn,{variant:"empty",children:g}):d?n.jsx("div",{className:we("panel__body--scroll",m==="stable"&&"panel__body--gutter-stable"),children:k}):k]})}function u7({cols:e=2,layout:t="grid",gap:a=1,collapseAt:r,className:i,style:s,children:l}){const u=o.useRef(null),[c,d]=o.useState();o.useEffect(()=>{const p=u.current;if(r===void 0||!p||(d(p.clientWidth),typeof ResizeObserver>"u"))return;const C=new ResizeObserver(([y])=>d(y.contentRect.width));return C.observe(p),()=>C.disconnect()},[r]);const m=r!==void 0&&c!==void 0&&c<=r;return n.jsx("div",{ref:u,className:we("panel-grid",t==="columns"&&"panel-grid--columns",i),style:{"--panel-grid-cols":m?1:e,"--panel-grid-gap":typeof a=="number"?`${a}px`:a,...s},children:l})}function c7(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 Sc(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"}]}c7(Rt.t.bind(Rt)),Sc(Rt.t.bind(Rt));const Br="none",d7=.5,p7=1.5,m7=.25;function hs({title:e,valueLabel:t,value:a,min:r,max:i,step:s,tickStep:l,size:u,disabled:c,onChange:d}){return n.jsxs(Sn,{variant:"custom",label:e,useFullWidth:!0,children:[n.jsx(wu,{value:a,onChange:d,min:r,max:i,step:s,size:u,showBgTick:!0,tickStep:l,ariaLabel:e,disabled:c,className:"noise-settings__slider-input"}),n.jsx("div",{className:we("noise-settings__value","button-1",c?"noise-settings__value--disabled":""),children:t})]})}function Tc({anchorRect:e,onClose:t,hideNoiseRows:a=!1}){const{t:r}=xe.useTranslation(),i=ln("(max-width: 767px)")?40:24,s=br(),l=Wa(s?.settings??Ua),u=s?.settings.type??"defaultNoise",c=s?.settings.enabled??!0,d=s?.playbackRate??1,m=s?.mainVolume??1,p=Math.round(m*100),C=o.useCallback(_=>{try{s?.setMainVolume(Math.max(0,Math.min(1,_/100)))}catch{}},[s]),y=o.useCallback(_=>{try{s?.setPlaybackRate(_)}catch{}},[s]),x=o.useCallback(_=>{const g=Math.min(za,Math.max(0,Math.round(_*10)/10));try{s?.setSettings({noiseRatio:g})}catch{}},[s]),f=o.useCallback(_=>{try{_===Br?s?.setSettings({enabled:!1}):s?.setSettings({type:_,enabled:!0})}catch{}},[s]),h=[{key:Br,label:r("training.noise.type.none","\uC5C6\uC74C")},...Sc(r).map(_=>({key:_.value,label:_.label}))];return n.jsx(cn,{anchorRect:e,offset:12,onClose:t,ariaLabel:r("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:n.jsxs("div",{className:"noise-settings__header",children:[n.jsx("span",{children:r("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),n.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:r("common.close","\uB2EB\uAE30"),onClick:t})]}),children:n.jsxs(wr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[n.jsx(hs,{title:r("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:i,onChange:C}),n.jsx(hs,{title:r("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:d7,max:p7,step:m7,size:i,onChange:y}),!a&&n.jsxs(n.Fragment,{children:[n.jsx(Sn,{variant:"custom",label:r("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:n.jsx(gn,{ariaLabel:r("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:h,value:c?u:Br,onChange:f})}),n.jsx(hs,{title:r("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:r("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:l.toFixed(1)}),value:l,min:0,max:za,step:dc,size:i,disabled:!c,onChange:x})]}),a&&n.jsx("div",{className:"noise-settings__width-ghost","aria-hidden":"true",inert:!0,children:n.jsx(Sn,{variant:"custom",label:"\xA0",useFullWidth:!0,children:n.jsx(gn,{ariaLabel:"width-ghost",size:40,shape:"rounded",options:h,value:Br,onChange:()=>{}})})})]})})}function jc({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:i=0,stepCount:s=0,pageIndex:l=0,pageCount:u=1,resultOpen:c=!1,hideNoiseRows:d=!1}){const{t:m}=xe.useTranslation(),[p,C]=o.useState(!1),[y,x]=o.useState(null),[f,h]=o.useState(!1),_=o.useRef(null),g=o.useRef(null),k=br(),b=u>0,A=b&&l<u-1,v=!b||l>=u-1,w=i===Math.max(0,s);o.useEffect(()=>{e||(C(!1),x(null))},[e]);const B=o.useCallback(()=>{C(!1),x(null)},[]),E=o.useCallback(()=>{if(p){C(!1),x(null);return}const Z=_?.current?.getBoundingClientRect();Z&&x(Z),t?.(),C(!0)},[p,t]),D=o.useCallback(()=>{if(p){C(!1),x(null);return}const Z=g?.current?.getBoundingClientRect();Z&&x(Z),t?.(),C(!0)},[p,t]),N=ln("(max-width: 767px)"),O=o.useRef(null),[P,G]=o.useState(null),L=o.useCallback(()=>{h(Z=>{const q=!Z;return G(q?O.current?.getBoundingClientRect()??null:null),q})},[]),M=o.useCallback(()=>{h(!1),G(null)},[]);o.useEffect(()=>{c&&(h(!1),G(null))},[c]);const $=n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:m("training.meter.sentence","\uC7AC\uC0DD")}),n.jsx(Fo,{analyser:k?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:m("training.meter.sentence","\uC7AC\uC0DD")})]}),n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:m("training.meter.noise","\uC18C\uC74C")}),n.jsx(Fo,{analyser:k?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:m("training.meter.noise","\uC18C\uC74C")})]})]});return Bc(e&&p,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[_.current,g.current].map(Z=>Z?.querySelector("button")??null).find(Z=>!!Z&&Z.getClientRects().length>0)??_.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:_,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(pe,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:E,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:m("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:m("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),n.jsx("div",{className:"pp-bottom__settings--mobile",children:n.jsx("div",{ref:g,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(pe,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:D,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:m("training.settings","\uC124\uC815")})})})]}):null,e&&n.jsx("div",{ref:O,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:n.jsx(pe,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:L,selected:f,"aria-expanded":N?f:void 0,ariaLabel:m("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&f&&!N&&n.jsx("div",{className:"pp-bottom__meters",children:$})]}),e&&f&&N&&P&&n.jsx(cn,{anchorRect:P,onClose:M,ariaLabel:m("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"),children:n.jsx("div",{className:"pp-bottom__meters pp-bottom__meters--floating",children:$})}),n.jsxs("div",{className:"pp-bottom__right",children:[v&&n.jsx(pe,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:m("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:m("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!w}),A&&n.jsx(pe,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:m("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:m("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!w})]}),e&&p&&n.jsx(Tc,{anchorRect:y,onClose:B,hideNoiseRows:d})]})}function Mc({title:e,subtitle:t,desc:a,depth:r,icon:i,wrapperStyle:s,iconTooltip:l,pageIndex:u,pageCount:c,progressMax:d,progressIndex:m,onBack:p,onClose:C}){const{t:y}=xe.useTranslation(),x=ln("(max-width: 767px)"),f=Number.isInteger(m)?m:u||0,h=Number.isInteger(d)?d:c||0,_=p||C,g=Array.isArray(r)?x?r[r.length-1]:r.join(" / "):r,k=typeof e=="string"?e.trim():e,b=typeof t=="string"?t.trim():t,A=!!(k||b),v=A?k||b:y("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),w=g||(k?t:void 0),B=x&&typeof w=="string"&&(w.includes(" \xB7 ")||w.includes(" / "))?w.split(/\s[·/]\s/).pop():w,E=o.useMemo(()=>{const D=s&&typeof s=="object"?{...s}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[s]);return n.jsxs("header",{className:"pp-title training-popup-title",children:[n.jsxs("div",{className:"pp-title__left",children:[_?n.jsx(pe,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:y("common.back","\uB4A4\uB85C"),onClick:_,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,n.jsx("div",{children:i?n.jsx(tu,{icon:i,label:e,tooltip:l,wrapperStyle:E}):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${A?"":" pp-title__title--empty"}`,children:v}),a?n.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),n.jsx(Nu,{max:Math.max(0,h??0),index:Math.max(0,f??0)})]})}function h7(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function C7(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 Lc=(e,t)=>{if(!t)return t;const a=typeof Rt?.t=="function"?Rt.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function $c(e,t,a){const r=e,i=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",s=$i().find(u=>u.key===(r?.category_0||r?.category_main_code)),l=s?.subs?.find(u=>u.key===(r?.category_1||r?.category_sub_code));return{title:i,label:r?.title||i,depth:t,icon:s?.icon,wrapperStyle:s?.color?{"--t-item-fg":s.color}:void 0,iconTooltip:[s?Lc(`topic.${s.key}`,s.label):void 0,l?Lc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function Cs(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function Rc(e,t,a){if(!e||typeof e!="object"||Array.isArray(e))return e;const r=e,i=typeof a=="number"&&a>0?a:Date.now();return{...r,...r.shownAt===void 0&&t?{shownAt:t}:{},...r.answeredAt===void 0?{answeredAt:new Date(i).toISOString()}:{}}}function f7(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function g7({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:i=[],emptyMessage:s,buildResults:l,metaPatch:u}){const c=$c(t,a,r),d=typeof u=="function"?u(c)||{}:u||{},m=t?.id||t?.title||i.length;return{id:`${e}:${m}`,meta:{...c,...d},pages:i,emptyMessage:s,buildResults:l}}function b7(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function y7(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 v7(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 Pc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function x7(e,t,a,r){return Pc(e,t*a+r)}function _7({payload:e,selected:t,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const i=e;if(Array.isArray(i.selectedValues))return r.every(s=>i.selectedValues.includes(s))&&i.selectedValues.every(s=>r.includes(s));if(typeof i.correct=="boolean")return i.correct}if(r.length){if(typeof t=="number"&&Array.isArray(a)&&a.length)return r.some(i=>String(i)===String(a[t]));if(typeof t<"u")return r.some(i=>String(i)===String(t))}}function w7(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 Fc=o.createContext(null);function B7(){const e=o.useContext(Fc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function A7({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:i,choices:s=[],onDone:l,onChange:u}){const{t:c}=xe.useTranslation(),d=typeof e=="number"?e:-1,m=typeof t!="number"?"disabled":d<t?"done":d===t?"active":"disabled",[p,C]=o.useState(()=>s.map(()=>null)),y=JSON.stringify(s),x=s.length;o.useEffect(()=>{C(Array.from({length:x},()=>null))},[y]);const f=o.useRef(void 0);o.useEffect(()=>{const k=f.current;typeof k=="number"&&typeof t=="number"&&typeof e=="number"&&k>=e&&t<e&&C(Array.from({length:x},()=>null)),f.current=t},[t,e,x]);const h=o.useMemo(()=>p.filter(k=>k!==null).length+1,[p]),_=o.useCallback(k=>{if(!Qn(m))return;const b=p;let A;if(b[k]!=null){const w=b[k];A=b.map(B=>B!==null&&B>=w?null:B)}else A=[...b],A[k]=h;C(A);const v={selectedOrder:A,words:s,__ts:Date.now()};try{typeof u=="function"&&u(v)}catch{}if(b[k]==null&&A.length>0&&A.every(w=>w!==null))try{typeof l=="function"&&l(v)}catch{}},[m,p,h,u,l,s]),g=i??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return n.jsx(Jn,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:g,onDone:l,children:n.jsx("div",{className:"training-step__cards",children:s.map((k,b)=>n.jsx(Wo,{item:{word:k},disabled:m==="disabled",selectable:!0,selected:p[b]!==null,orderRank:p[b],onSelect:()=>_(b),flipDelay:b*120,hideLabel:!1,hideAudio:!0},`${k}-${b}`))})})}function Ar(e){return null}Ar.__isTrainingPage=!0;function ga(e,t){const a=B7();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 Ic({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:i,isLast:s,onDone:l}=ga(e,t);return n.jsx(ps,{...a,index:r,stepIndex:i,isLast:s,onDone:l})}function Oc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:i,isLast:s,onDone:l,onChange:u}=ga(e,t);return n.jsx(cs,{...a,index:r,stepIndex:i,isLast:s,onDone:l,onChange:u})}function Hc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:i,isLast:s,onDone:l,onChange:u}=ga(e,t);return n.jsx(ds,{...a,index:r,stepIndex:i,isLast:s,onDone:l,onChange:u})}function Vc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:i,isLast:s,onDone:l,onChange:u}=ga(e,t);return n.jsx(ms,{...a,index:r,stepIndex:i,isLast:s,onDone:l,onChange:u})}function zc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:i,isLast:s,onDone:l,onChange:u}=ga(e,t);return n.jsx(Nc,{...a,index:r,stepIndex:i,isLast:s,onDone:l,onChange:u})}function k7({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:i,isLast:s,onDone:l,onChange:u}=ga(e,t);return n.jsx(A7,{...a,index:r,stepIndex:i,isLast:s,onDone:l,onChange:u})}const Wc=3e4,N7=/^(https?:|blob:|data:audio|\/|\.\/)/;function qc(e){return typeof e=="string"&&N7.test(e)?e:null}const E7=e=>typeof e=="string"&&e.trim()!==""?e:null,fs=Symbol("timed-out");function D7(e,t){if(t<=0)return Promise.resolve(fs);let a;return Promise.race([Promise.resolve(e),new Promise(r=>{a=setTimeout(()=>r(fs),t)})]).finally(()=>clearTimeout(a))}function S7(e){return e?wa()||Kr()?!0:typeof window<"u"&&!!window.speechSynthesis:!1}function T7(e,t){const a=[],r=qc(t);r&&a.push({kind:"raw",resolve:async()=>r});const i=(e??"").trim();if(!i)return a;for(const[s,l]of[["urlResolver",wa()],["fallbackUrlResolver",Kr()]])l&&a.push({kind:s,resolve:async u=>{let c;try{c=await D7(l(i),u)}catch(m){return St(`question-sound-threw-${s}`,`[core] configureTTS \uC758 ${s} \uAC00 \uB358\uC84C\uB2E4 \u2014 \uADF8 \uCC28\uB840\uB294 \uAC74\uB108\uB6F4\uB2E4.`,m),null}return c===fs?(St(`question-sound-slow-${s}`,`[core] configureTTS \uC758 ${s} \uAC00 ${Wc}ms \uBC14\uD034 \uC548\uC5D0 \uC548 \uD480\uB838\uB2E4 \u2014 \uADF8 \uCC28\uB840\uB97C \uBC84\uB9AC\uACE0 \uB2E4\uC74C\uC73C\uB85C \uAC04\uB2E4. \uC11C\uBC84 \uD569\uC131\uC744 \uAE30\uB2E4\uB9AC\uB294 \uB9AC\uC878\uBC84\uB77C\uBA74 \uC774 \uC790\uB9AC\uAC00 \uAE38\uC5B4\uC9C4\uB2E4. \uC18C\uB9AC\uAC00 \uC544\uC608 \uC548 \uB098\uBA74 \uC5EC\uAE30\uBD80\uD130 \uBCF4\uB77C.`),null):E7(c)||(St(`question-sound-empty-${s}`,`[core] configureTTS \uC758 ${s} \uAC00 \uC8FC\uC18C\uB97C \uC548 \uC92C\uB2E4(\uBC1B\uC740 \uAC83: ${JSON.stringify(c)}) \u2014 \uADF8 \uCC28\uB840\uB294 \uAC74\uB108\uB6F4\uB2E4.`),null)}});return a}function j7(){return Date.now()+Wc}const M7=(e,t)=>Math.max(0,e-Date.now())/Math.max(1,t);function L7(e){St("question-sound-none",`[core] "${e}" \uC758 \uC18C\uB9AC \uC8FC\uC18C\uB97C \uD55C \uC790\uB9AC\uC5D0\uC11C\uB3C4 \uBABB \uC5BB\uC5C8\uB2E4 \u2014 \uBE0C\uB77C\uC6B0\uC800 \uB0AD\uB3C5\uC73C\uB85C \uAC04\uB2E4. configureTTS \uAC00 \uAC78\uB824 \uC788\uB294\uC9C0, \uB9AC\uC878\uBC84\uAC00 \uC8FC\uC18C\uB97C \uC8FC\uB294\uC9C0 \uC704 \uC904\uB4E4\uC744 \uBCF4\uB77C.`)}function kr(...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 i of r){if(typeof i=="string"&&i.trim().length)return i.trim();if(typeof i=="number"||typeof i=="boolean")return String(i)}}}return null}function $7(e){return kr(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function R7(e){return qc(kr(e?.questionSound,e?.soundSrc,e?.audioSrc,e?.sound,e?.audio,e?.src))}function Uc(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=kr(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 Gc(e){const{score:t,contextsLength:a,results:r=[],subtitle:i,onReplay:s,onClose:l,inline:u=!1,pending:c=!1}=e||{},{t:d}=xe.useTranslation(),m=o.useId(),p=o.useCallback(()=>!c,[c]);o.useEffect(()=>{const D=a??0;if(t!=null&&D>0&&t/D>.5){const N=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(N)}},[t,a]);const C=o.useCallback(D=>{const N=Uc(D),O=kr(D?.wording,D?.label);return N===!0?{variant:"main",label:O??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:N===!1?{variant:"danger",label:O??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:O??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),y=a??0,x=t??0,f=o.useMemo(()=>Array.isArray(r)?r:[],[r]),h=o.useRef(null),[_,g]=o.useState(null),k=o.useCallback(()=>{h.current?.(),h.current=null,g(null)},[]);o.useEffect(()=>k,[k]);const b=o.useRef(0),A=(D,N)=>{if(!Ln)return;const O=Math.round(performance.now()-b.current);console.debug(`[core][\uB2E4\uC2DC\uB4E3\uAE30] +${O}ms ${D}`,N??"")},v=o.useRef(0),w=o.useCallback((D,N,O)=>{k();const P=++v.current,G=()=>v.current===P;b.current=Ln?performance.now():0,A(`\uB20C\uB800\uB2E4 \u2014 \uC904 ${D}`,{text:N,rawUrl:O}),g(D),h.current=()=>{A("\uBA48\uCD94\uAC1C\uAC00 \uBD88\uB838\uB2E4(\uC8FC\uC18C \uC5BB\uAE30 \uC804)"),v.current++,Ur()};const L=q=>{A("\uD2BC\uB2E4",q);const H=ur(q,W=>{A(`\uB05D\uB0AC\uB2E4 \u2014 ${W?"\uB05D\uAE4C\uC9C0 \uB4E4\uC5C8\uB2E4":"\uBABB \uD2C0\uC5C8\uAC70\uB098 \uBA48\uCDC4\uB2E4"}`,{mine:G()}),W&&G()&&(h.current=null,g(null))});return h.current=()=>{A("\uBA48\uCD94\uAC1C\uAC00 \uBD88\uB838\uB2E4(\uD2B8\uB294 \uC911)"),v.current++,H.stop(),Ur()},H.done},M=T7(N,O);A("\uCC28\uB840",M.map(q=>q.kind));const $=M[0]?.kind==="raw",Z=$?L(O):Promise.resolve(!1);(async()=>{if(await Z||!G())return;const q=j7(),H=$?M.slice(1):M;for(let W=0;W<H.length;W++){if(!G())return;A(`${H[W].kind} \uC5D0\uAC8C \uBB3B\uB294\uB2E4`);const R=await H[W].resolve(M7(q,H.length-W));if(A(`${H[W].kind} \uAC00 \uB2F5\uD588\uB2E4`,R),!G()||R&&(await L(R)||!G()))return}G()&&(A("\uC8FC\uC18C\uB97C \uD558\uB098\uB3C4 \uBABB \uC5BB\uC5C8\uB2E4 \u2014 \uB0AD\uB3C5\uC73C\uB85C \uAC04\uB2E4"),L7(N),h.current=()=>{v.current++,Ur()},A("\uB0AD\uB3C5\uD55C\uB2E4"),BC(N,{onEnd:()=>{G()&&(h.current=null,g(null))}}))})()},[k]),B=o.useMemo(()=>f.map(D=>{const N=D??{},O=$7(N)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:P,label:G}=C(N),L=Array.isArray(N.corrects)?N.corrects:[],M=L.length?L.join(", "):N.answer!=null&&N.answer!==""?String(N.answer):null,$=typeof N.selectedText=="string"?N.selectedText:null,Z=Uc(N)===!0,q=R7(N),H=!!q||S7(O);return{problem:O,variant:P,label:G,answer:M,selectedText:$,isCorrect:Z,sound:q,canHear:H}}),[f,C,d]),E=o.useMemo(()=>B.some(D=>D.answer!==null||D.selectedText!==null),[B]);return n.jsx(In,{onClose:l,closeOnBackdrop:!1,inline:u,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:p,footerClassName:"trp-result__foot",footer:({animateThen:D,closeWithAnimation:N})=>n.jsxs(n.Fragment,{children:[c&&n.jsx("p",{id:m,className:"trp-actions__reason caption-1",role:"status",children:d("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsxs("div",{className:"trp-actions",children:[n.jsx(pe,{htmlType:"button",size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>D(s)}),n.jsx(pe,{htmlType:"button",size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:N,disabled:c,onDisabledClick:c?()=>{}:void 0,"aria-describedby":c?m:void 0})]})]}),children:()=>n.jsxs("div",{className:"trp-result is-on",children:[n.jsxs("header",{className:"trp-result__head",children:[n.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),n.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),i&&n.jsx("p",{className:"trp-result__subtitle body-3",children:i}),n.jsx("div",{className:"trp-score",children:n.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:x,total:y}),children:[n.jsx("span",{className:"trp-score__big",children:x}),n.jsx("span",{className:"trp-score__sep",children:"/"}),n.jsx("span",{className:"trp-score__total",children:y})]})})]}),B.length>0&&n.jsx("section",{className:"trp-result__body",children:n.jsxs("div",{className:`result-table${E?" 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")}),E&&n.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),n.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),B.map((D,N)=>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(N+1).padStart(2,"0")}),n.jsx("div",{className:"trp-row__q body-2",children:D.problem}),D.canHear&&n.jsx(pe,{htmlType:"button",size:32,type:"dot",useBorder:!1,icon:_===N?"square":"volume-2",className:"trp-row__replay",ariaLabel:_===N?d("training.result.replaySoundStop",{no:N+1,defaultValue:"{{no}}\uBC88 \uB4E3\uAE30 \uBA48\uCDA4"}):d("training.result.replaySound",{no:N+1,defaultValue:"{{no}}\uBC88 \uB2E4\uC2DC \uB4E3\uAE30"}),onClick:()=>_===N?k():w(N,D.problem,D.sound)})]}),E&&n.jsxs("div",{className:"trp-row__answers",children:[D.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:D.answer})]}),n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${D.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),n.jsx("span",{className:`trp-row__answer-value body-2 ${D.isCorrect?"is-correct":"is-wrong"}`,children:D.selectedText??"\u2014"})]})]}),n.jsx("div",{className:"trp-row__judge",children:n.jsx(kt,{variant:D.variant,label:D.label,fill:"soft",minWidth:80})})]},N))]})})]})})}const gs=new Set;function P7(e){o.useEffect(()=>{if(!e||gs.has(e))return;gs.add(e);const t=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,i=0,s=0;const l=()=>{const m=Date.now();a==null&&(a=m),r==null&&(r=m)},u=()=>{r!=null&&(i+=Date.now()-r,r=null)};t()&&l();const c=()=>{if(u(),a==null||i-s<1e3||s===0&&i<5e3)return;const m=a+s;s=i,mf({trainingType:e,startedAt:new Date(m).toISOString(),endedAt:new Date(a+i).toISOString()})},d=()=>{t()?l():c()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",c),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",c),c(),gs.delete(e)}},[e])}function Nr(e,t){return e&&e.id||`page-${t??0}`}function Er(e,t){return e&&e.key||`step-${t??0}`}function Dr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function F7(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const I7=300,O7=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Tn=Object.freeze({}),Kc=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function bs(e){const t=e,a=t?.results||t?.answers||[],r=Array.isArray(a)&&a.length>0?a.length:null,i=Array.isArray(a)?a.filter(s=>s?.correct===!0||s?.isCorrect===!0||s?.score===1||s?.heard===!0||s?.judgement===!0).length:null;return{results:a,correct:r!=null?i:null,total:r}}const H7=e=>n.jsx(Gc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function V7(e){const{scenario:t,title:a,subTitle:r,depth:i,icon:s,wrapperStyle:l,iconTooltip:u,pageIndex:c,pageCount:d,stepIndex:m,stepCount:p,onBack:C,onComplete:y,onRoundFinished:x,onNext:f,onSettings:h,useNoiseSetting:_=!0,children:g,ariaLabel:k,label:b,buildResults:A,onResult:v,typeKey:w,entryPoint:B,dailyTotal:E,itemRef:D,renderResultPopup:N,noiseOverride:O,hideNoiseRows:P=!1}=e;P7(w&&!Kc.has(w)?w:"");const G=o.useRef(0);o.useEffect(()=>{G.current=Date.now()},[]);const{t:L}=xe.useTranslation(),M=v,$=!!t,Z=t?.id||null,q=t?.meta||{},H=Array.isArray(t?.pages)?t.pages:[],W=Array.isArray(g)||o.isValidElement(g)&&typeof g!="function"?o.Children.toArray(g).filter(o.isValidElement):[],R=W.length>0,z=ie=>ie===Ar||ie?.__isTrainingPage===!0,V=R&&W.some(ie=>z(ie.type)),F=V?W.filter(ie=>z(ie.type)).map((ie,ve)=>{const Me=ie.props||{};return{id:`children-page-${ve}`,steps:o.Children.toArray(Me.children).filter(o.isValidElement),pageTop:Me.pageTop||Me.top||null,pageBottom:Me.pageBottom||Me.bottom||null}}):[{id:"children-page-0",steps:W}],S=R&&!$&&typeof g!="function",j=S?Math.max(1,F.length):0;o.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),o.useEffect(()=>{if(typeof document>"u"||!document.body)return;const ie=document.body;return ie.dataset.ihabTrainingPopupCount=String(Number(ie.dataset.ihabTrainingPopupCount||"0")+1),ie.classList.add("ihab-training-popup-open"),()=>{const ve=Number(ie.dataset.ihabTrainingPopupCount||"1")-1;ve>0?ie.dataset.ihabTrainingPopupCount=String(ve):(delete ie.dataset.ihabTrainingPopupCount,ie.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return hy()},[]);const[I,U]=o.useState({...Ua,enabled:!1}),re=o.useRef(I);o.useEffect(()=>{re.current=I},[I]);const ne=o.useRef(O),le=o.useRef(!1),K=o.useRef(null);o.useEffect(()=>{let ie=!1;const ve=Me=>{if(ie)return;le.current=!0;const Je=Me?qa({...Ua,enabled:!1},Me):{...Ua},Oe=K.current;K.current=null;const Ye=Oe?qa(Je,Oe):Je;re.current=Ye,U(Ye),Oe&&!ne.current&&Di(Ye),Qa(Ye);const J=ne.current;if(J){const de=typeof J=="function"?J(Ye):J,ae=qa(Ye,de);re.current=ae,U(ae),Qa(ae)}};return gf().then(ve),()=>{ie=!0}},[]);const[oe,ke]=o.useState(null),[Y,Q]=o.useState(null),me=o.useCallback((ie,ve)=>{ie==="main"?ke(ve):Q(ve)},[]),De=o.useRef(null),be=o.useRef(null),te=o.useCallback(()=>{be.current!==null&&(clearTimeout(be.current),be.current=null);const ie=De.current;De.current=null,ie&&Di(ie)},[]);o.useEffect(()=>{if(typeof window>"u")return;const ie=()=>{document.visibilityState==="hidden"&&te()};return window.addEventListener("pagehide",te),document.addEventListener("visibilitychange",ie),()=>{window.removeEventListener("pagehide",te),document.removeEventListener("visibilitychange",ie),te()}},[te]);const ue=o.useCallback(ie=>{const ve=qa(re.current,ie);if(re.current=ve,U(ve),!le.current){K.current={...K.current??{},...ie},Qa(ve);return}ne.current||(De.current=ve,be.current!==null&&clearTimeout(be.current),be.current=setTimeout(te,I7)),Qa(ve)},[te]),Ce=I.mainSpeed,ge=I.mainVolume,fe=o.useCallback(ie=>ue({mainSpeed:ie}),[ue]),$e=o.useCallback(ie=>ue({mainVolume:ie}),[ue]),ze=o.useMemo(()=>({settings:I,setSettings:ue,registerAnalyser:me,mainAnalyser:oe,noiseAnalyser:Y,playbackRate:Ce,setPlaybackRate:fe,mainVolume:ge,setMainVolume:$e}),[I,ue,me,oe,Y,Ce,fe,ge,$e]),Te=o.useRef(null),[Fe,qe]=o.useState(0),mt=o.useRef([]),[ct,rt]=o.useState("center"),[Ct,Ae]=o.useState(!1),We=o.useRef(!1),_e=o.useRef(null),Ue=o.useCallback(ie=>{We.current||(We.current=!0,Ae(!0),_e.current=setTimeout(()=>{try{ie()}catch{We.current=!1,Ae(!1)}},O7()?0:i7))},[]);o.useEffect(()=>()=>{_e.current&&clearTimeout(_e.current)},[]);const Be=o.useRef(C);o.useEffect(()=>{Be.current=C}),o.useEffect(()=>{const ie=Te.current,ve=document.activeElement;if(uo(ie,ve),ie){const Me=Array.from(ie.querySelectorAll(fn)).filter(Je=>!Je.closest('[aria-hidden="true"]'))[0];if(Me)try{Me.focus()}catch{}}return()=>{const Me=document.activeElement;if(!Me||Me===document.body||ie&&ie.contains(Me))try{co(ve)?.focus?.()}catch{}}},[]),o.useEffect(()=>Gn(()=>Ue(()=>{const ie=Be.current;typeof ie=="function"&&ie()})),[Ue]),io(Te,!0);const[je,Se]=o.useState(!1),Xe=o.useRef(!1),[Qe,dt]=o.useState(null),ht=o.useRef(0),wt=o.useRef(0),ft=()=>{ht.current+=1,wt.current+=1,dt(null)},[Nt,gt]=o.useState(""),[it,Ke]=o.useState(()=>Dr()),se=o.useRef(typeof c=="number"?c:null);o.useEffect(()=>{!$&&!S||(Ke(Dr()),ft())},[$,Z,S]),o.useEffect(()=>{S&&Ke(ie=>{const ve=Math.max(0,Math.min(ie.pageIndex,Math.max(0,j-1)));return ve!==ie.pageIndex?{...ie,pageIndex:ve,stepIndex:0}:ie})},[S,j]);const Ne=S?Math.max(0,Math.min(it.pageIndex,j-1)):0,Ve=S?F[Ne]:null,nt=S&&Ve&&Array.isArray(Ve.steps)?Ve.steps:[],Ie=$?it.pageIndex:S?Ne:typeof c=="number"?c:0,Ge=$?H[Math.max(0,Math.min(it.pageIndex,Math.max(0,H.length-1)))]:null,bt=$&&Ge&&Array.isArray(Ge.steps)?Ge.steps:[],Re=$?bt.length:S?nt.length:typeof p=="number"?p:0,tt=$||S?Math.max(0,Math.min(it.stepIndex,Math.max(0,Re))):typeof m=="number"?m:0,xt=$?H.length:S?j:typeof d=="number"?d:0;o.useEffect(()=>{if(!$&&!S)return;const ie=$?Nr(Ge,Ie):Ve?.id||`children-page-${Ie??0}`,ve=new Date().toISOString();for(let Me=0;Me<=tt;Me+=1){const Je=$?Er(bt[Me],Me):`step-${Me}`,Oe=lt(ie,Je);ot.current.has(Oe)||ot.current.set(Oe,ve)}},[$,S,Ie,tt,Ve?.id]),o.useLayoutEffect(()=>{const ie=se.current;if(typeof Ie=="number"&&ie!==null&&Ie!==ie&&Ie>ie)try{gt(L("training.problemNotice",{n:Ie+1}))}catch{}se.current=typeof Ie=="number"?Ie:se.current},[Ie,c,L]),o.useLayoutEffect(()=>{const ie=Te.current;if(!ie)return;const ve=()=>ie.querySelector(".page-popup__scroll");let Me=null,Je=null,Oe=null;const Ye=Le=>{const He=ve();if(!He)return;const ut=He.scrollHeight<=He.clientHeight;if(rt(ut?"center":"top"),Le&&!Xe.current){Xe.current=!0;try{Se(!0)}catch{}try{ae.disconnect()}catch{}}},J=()=>{Me!==null&&cancelAnimationFrame(Me),Me=requestAnimationFrame(()=>{Je!==null&&clearTimeout(Je),Je=setTimeout(()=>Ye(!0),60)})},de=()=>{Oe!==null&&cancelAnimationFrame(Oe),Oe=requestAnimationFrame(()=>Ye(!1))};J(),window.addEventListener("resize",de);const ae=new MutationObserver(J);ae.observe(ie,{childList:!0,subtree:!0,attributes:!0});const ye=setTimeout(()=>{Xe.current||Ye(!0)},400);return()=>{window.removeEventListener("resize",de),Me!==null&&cancelAnimationFrame(Me),Je!==null&&clearTimeout(Je),Oe!==null&&cancelAnimationFrame(Oe),clearTimeout(ye);try{ae.disconnect()}catch{}}},[Te]);const Lt=o.useCallback(ie=>{Te.current&&(Te.current._childOnNext=ie)},[]),et=o.useCallback(ie=>{Te.current&&(Te.current._childOnResult=ie)},[]),ot=o.useRef(new Map),lt=(ie,ve)=>`${ie}\0${ve}`,st=o.useCallback((ie,ve,Me)=>{Ke(Je=>{const Oe=Je.answersByPage[ie]||{},Ye=Oe[ve],J=Cs(Me),de=Cs(Ye);if(Ye&&de>J)return Je;const ae=Rc(Me,ot.current.get(lt(ie,ve)),J);return{...Je,answersByPage:{...Je.answersByPage,[ie]:{...Oe,[ve]:ae}}}})},[Ke]),jt=o.useCallback((ie,ve,Me)=>{const Je=Nr(Ge,Ie),Oe=Er(ie,ve);st(Je,Oe,Me)},[Ge,Ie,st]),Vt=o.useCallback((ie,ve,Me)=>{const Je=Nr(Ge,Ie),Oe=Er(ie,ve);st(Je,Oe,Me),!Me?.allowChange&&ie?.autoAdvance!==!1&&Ke(Ye=>({...Ye,stepIndex:Math.max(Ye.stepIndex,ve+1)}))},[Ge,Ie,st,Ke]),mn=o.useCallback((ie,ve)=>{const Me=Ve?.id||`children-page-${Ie??0}`,Je=typeof ve=="number"?ve:tt??0,Oe=`step-${Je}`;st(Me,Oe,ie),ie?.allowChange||Ke(Ye=>({...Ye,stepIndex:Math.max(Ye.stepIndex,Je+1)}))},[Ve,Ie,tt,st,Ke]),hn=o.useCallback((ie,ve)=>{const Me=Ve?.id||`children-page-${Ie??0}`,Je=`step-${typeof ve=="number"?ve:tt??0}`;st(Me,Je,ie)},[Ve,Ie,tt,st]),jn=S?{currentPageIndex:Ie??0,currentStepIndex:tt??0,totalStepsInPage:nt.length,handleStepDone:mn,handleStepChange:hn}:null,Hn=async()=>{const ie=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:H,flowState:it,answersByPage:it.answersByPage})):null;return typeof M=="function"&&await Promise.resolve(M(ie))||ie},Vn=async()=>{const ie=Ve?.id||`children-page-${it.pageIndex}`,ve=it.answersByPage[ie]||{},Me=V?(()=>{const Ye={};let J=0;return F.forEach(de=>{const ae=it.answersByPage[de.id]||{},ye=Array.isArray(de.steps)?de.steps.length:0;for(let Le=0;Le<ye;Le+=1){const He=ae[`step-${Le}`];typeof He<"u"&&(Ye[`step-${J+Le}`]=He)}J+=ye}),Ye})():ve;if(typeof A=="function"){const Ye=await Promise.resolve(A(Me,{pageAnswers:ve,answersByPage:it.answersByPage,pages:F,currentPageId:ie}));return typeof M=="function"&&await Promise.resolve(M(Ye))||Ye}const Je=Object.entries(ve).map(([Ye,J],de)=>({index:de,key:Ye,payload:J})),Oe={results:Je,answers:Je,score:0};return typeof M=="function"&&await Promise.resolve(M(Oe))||Oe},Ft=()=>{const ie=++ht.current,ve=()=>ie!==ht.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($){const Oe=Hn();dt(Tn);const Ye=Oe;Promise.resolve(Ye).then(J=>{ve()||dt(J||{isEmpty:!0})}).catch(J=>{!ve()&&dt({isEmpty:!0})});return}if(S){const Oe=Vn();dt(Tn);const Ye=Oe;Promise.resolve(Ye).then(J=>{ve()||dt(J||{isEmpty:!0})}).catch(J=>{!ve()&&dt({isEmpty:!0})});return}const Me=Te.current&&Te.current._childOnResult,Je=Oe=>{try{return Oe?Oe():void 0}catch{return}};if(typeof Me=="function"){const Oe=Je(Me);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:wn&&wn.tagName.toUpperCase()==="SCRIPT"&&wn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Oe&&typeof Oe.then!="function"?dt(Oe):dt(Oe&&typeof Oe.then=="function"?Tn:{});const Ye=()=>{ve()||dt(J=>J===Tn?{}:J)};Promise.resolve(Oe).then(J=>{J&&!ve()?dt(J):Ye()}).catch(J=>{Ye()});return}if(typeof M=="function"){const Oe=Je(M);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:wn&&wn.tagName.toUpperCase()==="SCRIPT"&&wn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Oe&&typeof Oe.then!="function"?dt(Oe):dt(Oe&&typeof Oe.then=="function"?Tn:{});const Ye=()=>{ve()||dt(J=>J===Tn?{}:J)};Promise.resolve(Oe).then(J=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:wn&&wn.tagName.toUpperCase()==="SCRIPT"&&wn.src||new URL("components.cjs.js",document.baseURI).href}catch{}J&&!ve()?dt(J):Ye()}).catch(J=>{console.error("viewResults external handler failed",J),Ye()});return}},vn=()=>{if($){if(typeof Ie=="number"&&typeof xt=="number"&&Ie<xt-1){Ke(ve=>({...ve,pageIndex:ve.pageIndex+1,stepIndex:0}));return}return Ft()}if(S){const ve=nt.length;if(typeof tt=="number"&&tt<ve-1){Ke(Me=>({...Me,stepIndex:Me.stepIndex+1}));return}if(typeof Ie=="number"&&typeof xt=="number"&&Ie<xt-1){Ke(Me=>({...Me,pageIndex:Me.pageIndex+1,stepIndex:0}));return}return Ft()}if(typeof f=="function"){try{f()}catch{}return}const ie=Te.current&&Te.current._childOnNext;if(typeof ie=="function"){try{ie()}catch{}return}},It=$?q.title||q.label||k||L("common.popup","\uD31D\uC5C5"):a||b||(Array.isArray(i)?i[i.length-1]:void 0)||k||L("common.popup","\uD31D\uC5C5"),zt=k||It,Mn=$?q.title??q.label??It:a??b??It,on=(ie,ve)=>{const Me=Nr(Ge,Ie),Je=Er(ie,ve),Oe=it.answersByPage[Me]?.[Je],Ye=F7(ie,{page:Ge,pageIndex:Ie,step:ie,stepIndex:ve,storedPayload:Oe,answersByPage:it.answersByPage,flowState:it}),J={key:Je,index:ve,stepIndex:tt,isLast:ve===bt.length-1};switch(ie?.type){case"listen":return n.jsx(ps,{...J,...Ye,onDone:de=>Vt(ie,ve,de)});case"confirm":return n.jsx(cs,{...J,...Ye,onDone:de=>Vt(ie,ve,de),onChange:de=>jt(ie,ve,de)});case"confirmWithText":return n.jsx(ds,{...J,...Ye,onDone:de=>Vt(ie,ve,de),onChange:de=>jt(ie,ve,de)});case"orderList":return n.jsx(ms,{...J,...Ye,onDone:de=>Vt(ie,ve,de),onChange:de=>jt(ie,ve,de)});default:return null}},xn=o.useRef(void 0);o.useEffect(()=>{const ie=xn.current;if(xn.current=Ie,ie===void 0||ie===Ie||!mr())return;const ve=Te.current;if(!ve)return;const Me=document.activeElement;if(!(!Me||Me===document.body||!ve.contains(Me)||Me.disabled===!0))return;const Je=ve.querySelector(`.training-steps ${fn.split(", ").join(", .training-steps ")}`)??Array.from(ve.querySelectorAll(fn)).find(Oe=>!Oe.closest('[aria-hidden="true"]'));try{Je?.focus()}catch{}},[Ie]);const zn=$?H.length>0?n.jsx("div",{className:"training-steps",children:bt.map((ie,ve)=>on(ie,ve))},`replay-${Fe}`):n.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:n.jsx("div",{className:"pp-empty",children:t?.emptyMessage||L("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,_n=S?n.jsxs(Fc.Provider,{value:jn,children:[Ve?.pageTop?n.jsx("div",{className:"training-page-top",children:Ve.pageTop}):null,n.jsx("div",{className:"training-steps",children:nt.map((ie,ve)=>{const Me=ie;return o.cloneElement(Me,{...Me.props,_stepIndex:ve,_totalSteps:nt.length,_stepKey:`step-${ve}`,_pageIndex:Ie})})},`replay-${Fe}`),Ve?.pageBottom?n.jsx("div",{className:"training-page-bottom",children:Ve.pageBottom}):null]}):null,Wt=o.useRef(-1),$t=o.useCallback(()=>{if(!w)return;const ie=Qe,{results:ve,correct:Me,total:Je}=bs(Qe),Oe={correct:Me,total:Je,attempt:mt.current.length+1,previousAttempts:[...mt.current]};if(Wt.current===wt.current)return Oe;Wt.current=wt.current,hf({items:ff(ve),category:Kc.has(w)?"sentence":"word",trainingType:w,entryPoint:B??"sentence",itemRef:D??null,correct:Me,total:Je,score:typeof ie?.score=="number"?ie.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-G.current)/1e3)),dailyTotal:E??null});try{x?.(Oe)}catch{}return Oe},[w,B,E,D,Qe,x]);o.useEffect(()=>{!Qe||Qe===Tn||Qe?.isEmpty||(bs(Qe).total??0)>0&&$t()},[Qe,$t]);const qt=o.useCallback(()=>{const ie=$t();ft(),Ue(()=>{typeof y=="function"&&y(ie),typeof C=="function"&&C()})},[y,C,$t,dt,Ue]),Cn=o.useCallback(()=>gt(""),[gt]),Ot=o.useCallback(()=>{Ue(()=>{typeof C=="function"&&C()})},[C,Ue]),sn=n.jsxs("div",{className:`page-popup${Ct?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":zt,children:[n.jsxs("div",{ref:Te,className:`page-popup__panel ${je?"":"page-popup__panel--measuring"} ${ct==="center"?"page-popup__panel--center":ct==="top"?"page-popup__panel--top":""}`,children:[n.jsx(Mc,{title:Mn,subtitle:$?q.subtitle||q.label:Array.isArray(i)?i.join(" / "):void 0,desc:$?void 0:r,depth:$?q.depth:i,icon:$?q.icon:s,wrapperStyle:$?q.wrapperStyle:l,iconTooltip:$?q.iconTooltip:u,progressMax:xt,progressIndex:Ie,pageIndex:Ie,pageCount:xt,onBack:Ot,onClose:Ot}),n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content ${ct==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:S?_n:$?zn:typeof g=="function"?g({registerOnNext:Lt,registerOnResult:et,panelRef:Te,setResultOverlay:dt}):g})}),n.jsx(jc,{onSettings:h,onNext:vn,onResult:Ft,useNoiseSettingBtn:!!($?q.useNoiseSetting??!0:_),stepIndex:tt,stepCount:Re,pageIndex:Ie,pageCount:xt,resultOpen:!!(Qe&&!Qe.isEmpty),hideNoiseRows:P})]}),Qe&&!Qe.isEmpty&&(N??H7)({score:Qe.score,results:Qe.results||Qe.answers||[],contextsLength:Qe.results?Qe.results.length:Qe.answers?Qe.answers.length:0,onReplay:()=>{if(G.current=Date.now(),Qe!==Tn){const{correct:ie,total:ve}=bs(Qe);mt.current.push({correct:ie,total:ve})}if(ft(),qe(ie=>ie+1),$){if(Ke(Dr()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(S){Ke(Dr());return}try{const ie=Te.current&&Te.current._childOnResult;typeof ie=="function"&&ie({replay:!0})}catch{}},onClose:qt,pending:Qe===Tn}),Qe?.isEmpty&&n.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":L("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:n.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:n.jsx("div",{className:"page-popup__empty",children:L("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),n.jsx("div",{className:"page-popup__bottom",children:n.jsx(pe,{htmlType:"button",variant:"main",size:48,onClick:qt,label:L("training.result.done","\uC644\uB8CC")})})]})}),n.jsx(ca,{message:Nt,position:"top",onClose:Cn})]}),Dt=n.jsx(rs.Provider,{value:ze,children:sn});return typeof document<"u"&&document.body?en.createPortal(Dt,document.body):Dt}const On=V7;On.Page=Ar,On.ListenStep=Ic,On.ConfirmStep=Oc,On.ConfirmWithTextStep=Hc,On.OrderListStep=Vc,On.CardStep=zc,On.CardOrderStep=k7;function z7({label:e,homonum:t}){const a=aa()?.(e,t)??"",{imgRef:r,loading:i,hasImage:s,onLoad:l,onError:u}=zo(a);return s?n.jsxs("div",{className:"tooltip-word-image__cell",children:[i&&n.jsx("div",{className:"tooltip-word-image__spinner"}),n.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:i?0:1},onLoad:l,onError:u})]}):n.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:n.jsx("span",{children:e})})}function Yc({words:e,anchorRect:t}){const a=o.useRef(null),[r,i]=o.useState(null);return o.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:s,offsetHeight:l}=a.current,u=window.innerWidth;let c=t.left+t.width/2-s/2,d=t.top-l-8;d<8&&(d=t.bottom+8),c=Math.max(8,Math.min(c,u-s-8)),i({left:c,top:d})},[t]),!t||e.length===0?null:en.createPortal(n.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:n.jsx("div",{className:"tooltip-word-image__cells",children:e.map(s=>n.jsx(z7,{label:s.label,homonum:s.homonum},`${s.label}_${s.homonum??1}`))})}),document.body)}function W7({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:i,groups:s,selected:l=[],onSelect:u,maxSelect:c,onClearSelection:d,onPrint:m,onPrintEmpty:p,className:C,emptyHint:y,sectionType:x="page",disc:f}){const{t:h,i18n:_}=xe.useTranslation(),g=_.language?.startsWith("ko")??!1,{anchorRect:k,openAt:b,close:A}=Sa(),[v,w]=o.useState(null),B=o.useCallback(()=>{A(),w(null)},[A]);K4(B,!!v);const E=(r??"").trim(),D=/^[^,[\]\s]+$/.test(E)?E:"",N=D.length>0,O=r===void 0&&t===void 0,P=N?"match":O?"original":"ganada",[G,L]=o.useState(()=>P),[M,$]=o.useState("50"),[Z,q]=o.useState(1),[H,W]=o.useState(N);H!==N&&(W(N),L(P));const R=G==="match"&&!N||G==="original"&&!O?P:G,z=o.useMemo(()=>[...N?[{value:"match",label:h("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...O?[{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,N,O]),V=o.useMemo(()=>["10","25","50","100"].map(te=>({value:te,label:h("wordSearch.pageSize",{count:Number(te),defaultValue:`${te}\uAC1C\uC529 \uBCF4\uAE30`})})),[h]),F=te=>te.words?.[0],S=o.useMemo(()=>{const te=[...D].length,ue=ZC(D),Ce=new Map;return ge=>{let fe=Ce.get(ge);return fe===void 0&&(fe=ue((ge.words?.[0]?.label??"").slice(0,te))?0:1,Ce.set(ge,fe)),fe}},[D]),j=o.useCallback((te,ue)=>{const Ce=$e=>F($e)?.label??"",ge=$e=>F($e)?.syllables??[...Ce($e)].length,fe=$e=>($e.words??[]).reduce((ze,Te)=>{const Fe=parseInt(Te.grade??"",10);return Number.isFinite(Fe)&&Fe<ze?Fe:ze},999);switch(R){case"match":return S(te)-S(ue)||an(Ce(te),Ce(ue));case"ganada":return an(Ce(te),Ce(ue));case"ganada_desc":return an(Ce(ue),Ce(te));case"syllable":return ge(te)-ge(ue)||an(Ce(te),Ce(ue));case"syllable_desc":return ge(ue)-ge(te)||an(Ce(te),Ce(ue));case"grade":return fe(te)-fe(ue)||an(Ce(te),Ce(ue));case"grade_desc":return fe(ue)-fe(te)||an(Ce(te),Ce(ue));default:return 0}},[R,S]),I=o.useMemo(()=>i.slice().sort(j),[i,j]),U=Number(M)||10,re=o.useMemo(()=>(s??[]).flatMap(te=>te.items.slice().sort(j).map(ue=>({item:ue,label:te.label}))),[s,j]),ne=s?re.length:I.length,le=Math.max(1,Math.ceil(ne/U)),K=Math.min(Z,le),oe=o.useMemo(()=>I.slice((K-1)*U,K*U),[I,K,U]),ke=o.useMemo(()=>{if(!s)return null;const te=re.slice((K-1)*U,K*U),ue=new Map;for(const{item:Ce,label:ge}of te)ue.has(ge)||ue.set(ge,[]),ue.get(ge).push(Ce);return[...ue.entries()].map(([Ce,ge])=>({label:Ce,items:ge}))},[s,re,K,U]);o.useEffect(()=>{q(1)},[G,M,ne,r]);const Y=ne>0?n.jsxs("div",{className:"word-search-result-block__toolbar",children:[n.jsx(pn,{size:40,options:z,value:R,onChange:L,ariaLabel:h("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),n.jsx(pn,{size:40,options:V,value:M,onChange:$,ariaLabel:h("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),n.jsx(cr,{page:K,totalPages:le,onChange:q})]}):void 0,Q=te=>{u&&u(te)},me=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:g?sf(a):a})]}):void 0,De=t!==void 0&&t>0&&c!==void 0&&a?h("wordSearch.resultDisc",{unit:g?uf(a):a,max:c,selected:l.length}):void 0,be=f??De;return n.jsxs(pa,{type:x,className:we("word-search-result-block",C),children:[n.jsxs("div",{className:"word-search-result-block__inner",children:[(me||Y||be)&&n.jsxs("div",{className:"word-search-result-block__head",children:[n.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&n.jsx(at,{icon:e,className:"word-search-result-block__head-icon"}),me&&n.jsx("span",{className:"word-search-result-block__title h3",children:me})]}),Y&&n.jsx("div",{className:"word-search-result-block__head-actions",children:Y}),be&&n.jsx("div",{className:"word-search-result-block__head-disc body-3",children:be})]}),(s?s.length===0:i.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.")}),y&&n.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:y})]}),s?(ke??[]).map(te=>n.jsx("div",{className:"word-search-result-block__group",children:n.jsx("div",{className:"word-search-result-block__items",children:te.items.map(ue=>{const Ce=l.includes(ue.id);return n.jsx("div",{onMouseEnter:ge=>{b(ge.currentTarget),w(ue.words??[])},onMouseLeave:B,children:n.jsx(pe,{htmlType:"button",size:"word",align:"grid",label:(ue.words??[]).map(ge=>ge.label),subLabel:(ue.words??[]).some(ge=>ge.subLabel)?(ue.words??[]).map(ge=>ge.subLabel):void 0,selected:Ce,onClick:()=>Q(ue.id),minWidth:200})},ue.id)})})},te.label)):n.jsx("div",{className:"word-search-result-block__items",children:oe.map(te=>{const ue=l.includes(te.id);return n.jsx("div",{onMouseEnter:Ce=>{b(Ce.currentTarget),w(te.words??[])},onMouseLeave:B,children:n.jsx(pe,{htmlType:"button",size:"word",align:"grid",label:(te.words??[]).map(Ce=>Ce.label),subLabel:(te.words??[]).some(Ce=>Ce.subLabel)?(te.words??[]).map(Ce=>Ce.subLabel):void 0,selected:ue,onClick:()=>Q(te.id),minWidth:200})},te.id)})}),v&&k&&n.jsx(Yc,{words:v,anchorRect:k})]}),le>1&&n.jsx("div",{className:"word-search-result-block__pagination-bottom",children:n.jsx(cr,{page:K,totalPages:le,onChange:q})}),(d||m)&&n.jsxs("div",{className:"word-search-result-block__actions",children:[d&&n.jsx(pe,{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}),m&&n.jsx("div",{onClick:l.length===0?p:void 0,children:n.jsx(pe,{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:m})})]})]})}function q7(e,t){return t.map(a=>{const r=typeof a=="string"?a:a.label,i=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:i}})}function U7({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:i=4,minCount:s=1,combinationSections:l,combinationSectionsForSlot:u,onSelect:c,placeholder:d="-",className:m,title:p,titleIcon:C,disc:y,showInfoButton:x=!0,onClearPhoneme:f,onSearch:h,onSearchEmpty:_,searchDisabled:g=!1,searchLabel:k,searchChecking:b=!1,pairMode:A=!1,sectionType:v="page",beforeSearchContent:w,beforeContent:B,afterContent:E,hideCountControl:D=!1,ordinal:N=!1}){const{t:O}=xe.useTranslation(),P=o.useMemo(()=>O("wordPairs.infoNotes",{returnObjects:!0}),[O]),G=o.useMemo(()=>Array.from({length:i-s+1},(S,j)=>{const I=s+j;return{key:String(I),label:O("wordPairs.count",{n:I})}}),[O,i,s]),L=o.useMemo(()=>O("wordPairs.ordinals",{returnObjects:!0}),[O]),M=o.useCallback(S=>N?O("wordPairs.phonemeOrdinalLabel",{ordinal:L[S-1]??S}):a===1?O("wordPairs.phonemeSingleLabel","\uC74C\uC808"):O("wordPairs.phonemeN",{n:S}),[N,L,a,O]),$=o.useCallback(S=>N?O("wordPairs.phonemeContrastOrdinalLabel",{ordinal:L[S-1]??S}):a===1?O("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):O("wordPairs.phonemeContrast",{n:S}),[N,L,a,O]),Z=o.useCallback((S,j)=>j?n.jsxs(n.Fragment,{children:[S,n.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):S,[]),{anchorRect:q,toggleAt:H,close:W}=Sa(),R=o.useCallback(S=>r(Number(S)),[r]),z=ln("(max-width: 767px)"),V=o.useCallback(S=>q7(S,e).map(({label:j,value:I,displayLabel:U})=>{const re=!!I&&I!=="\uC5C6\uC74C";return n.jsxs("span",{className:we("phoneme-select-block__cell-jamo-part",I?"":"phoneme-select-block__cell-jamo-part--empty",re?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[n.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${I==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:I==="\uC5C6\uC74C"?"x":I||d}),re&&n.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:U??j})]},j)}),[e,d]),F=n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-tooltip-ignore":!0,children:n.jsx(pe,{htmlType:"button",size:40,type:z?"dot":void 0,icon:"info",label:z?void 0:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:q?"is-selected":void 0,"aria-expanded":!!q,"aria-haspopup":"dialog",onClick:S=>H(S.currentTarget)})}),q&&n.jsx(Kn,{title:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:P,anchorRect:q,onClose:W})]});return n.jsxs(pa,{type:v,title:p,icon:C,disc:y,action:x?F:void 0,className:we("phoneme-select-block",m),children:[B,!D&&n.jsx("div",{className:"phoneme-select-block__controls",children:n.jsx(gn,{options:G,value:String(a),onChange:R,size:40,ariaLabel:O("wordPairs.countLabel","\uC74C\uC18C \uAC1C\uC218"),className:"phoneme-select-block__count-control"})}),n.jsx("div",{className:"phoneme-select-block__cells",children:A?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((S,j)=>{const I=t[j*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:V(I)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:M(j+1)})]},j)})}),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((S,j)=>{const I=t[j*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:V(I)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:$(j+1)})]},j)})})]}):t.map((S,j)=>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:V(S)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:M(j+1)})]},j))}),(l||u)&&n.jsx("div",{className:"phoneme-select-block__panels",children:n.jsx("div",{className:"phoneme-select-block__detail",children:A?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((S,j)=>{const I=t[j*2]??{};return n.jsx(Dn,{title:Z(M(j+1),j===0),sections:u?u(I,j*2):l,selected:I,onSelect:c?.(j*2),align:"newline"},j)})}),n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((S,j)=>{const I=t[j*2+1]??{};return n.jsx(Dn,{title:$(j+1),sections:u?u(I,j*2+1):l,selected:I,onSelect:c?.(j*2+1),align:"newline"},j)})})]}):t.map((S,j)=>n.jsx(Dn,{title:Z(M(j+1),j===0),sections:u?u(S,j):l,selected:S,onSelect:c?.(j),align:"newline"},j))})}),w&&n.jsx("div",{className:"phoneme-select-block__before-search",children:w}),(f||h||b)&&(()=>{const S=t.every(j=>{const I=UC(j);return Object.entries(I).every(([U,re])=>!re||U==="coda"&&re===xi)});return n.jsxs("div",{className:"phoneme-select-block__search-row",onClick:S?_:void 0,children:[f&&n.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:O("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:S,onClick:S?void 0:f}),h?n.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:b?n.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:k??O("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:S||g||b,onDisabledClick:b?()=>{}:void 0,"aria-busy":b||void 0,onClick:h}):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:k??O("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),E]})}function G7({title:e,sections:t,selected:a,onSelect:r,collapsible:i,defaultCollapsed:s,collapsed:l,onCollapsedChange:u,headerSummary:c,headerAction:d,className:m}){const{t:p}=xe.useTranslation();return n.jsx(Dn,{className:m,title:e??p("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,collapsible:i,defaultCollapsed:s,collapsed:l,onCollapsedChange:u,headerSummary:c,headerAction:d,align:"inline"})}function K7({title:e,headerAction:t,sections:a,selected:r,onSelect:i,className:s}){const{t:l}=xe.useTranslation();return a.length===0?null:n.jsx(Dn,{className:s,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:i,align:"newline"})}function Y7({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:i,positionCount:s,onPositionCountChange:l,inputMode:u,onInputModeChange:c,className:d}){const{t:m}=xe.useTranslation(),p={searchMode:m("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:m("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:m("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:m("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:m("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:m("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:m("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:m("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:m("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:m("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:m("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},C=h=>m("wordPairs.count",{n:h}),y=[{label:p.searchMode,items:[p.include,p.pick,p.explicit],display:"segmented",labelAction:n.jsx(Ra,{title:m("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[m("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),m("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),m("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:p.phonemeOrder,items:[p.orderAny,p.orderMatch],display:"segmented",labelAction:n.jsx(Ra,{items:m("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:p.count,items:[C(1),C(2)],display:"segmented"},{label:p.inputMode,items:[p.charInput,p.pronInput],display:"segmented",labelAction:n.jsx(Ra,{title:m("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[m("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),m("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],x={[p.searchMode]:t==="explicit"?p.explicit:t==="pick"?p.pick:p.include,[p.phonemeOrder]:r==="ordered"?p.orderMatch:p.orderAny,[p.count]:C(s),[p.inputMode]:u==="phoneme"?p.pronInput:p.charInput},f=(h,_)=>{_===p.searchMode?a(h===p.explicit?"explicit":h===p.pick?"pick":"include"):_===p.phonemeOrder?i(h===p.orderMatch?"ordered":"unordered"):_===p.count?l(h===C(2)?2:1):_===p.inputMode&&c(h===p.pronInput?"phoneme":"word")};return n.jsx(Dn,{className:d,title:e??m("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:y,selected:x,onSelect:f,align:"inline"})}function Z7(e){const{title:t,items:a,columns:r,resizeStorageKey:i,gridTemplateColumns:s,mobileGridTemplateColumns:l,searchPlaceholder:u,searchFn:c,defaultSortKey:d,defaultSortAsc:m=!0,selectedId:p,selectedIds:C,onSelect:y,onClose:x,pageSizeOptions:f=[10,25,50,100],initialPageSize:h,emptyText:_,noMatchText:g,countLabel:k,topContent:b,className:A=""}=e,{t:v}=xe.useTranslation(),w=u??v("common.search","\uAC80\uC0C9"),B=_??v("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),E=g??v("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"),[D,N]=o.useState(""),[O,P]=o.useState(d??r[0]?.key??""),[G,L]=o.useState(m),[M,$]=o.useState(String(h??f[0]??10)),[Z,q]=o.useState(1);o.useEffect(()=>{q(1)},[D,M]);const H=c!==null,W=o.useCallback((ne,le)=>{if(!le)return!0;const K=le.toLowerCase();return r.some(oe=>{const ke=ne[oe.key];return ke==null?!1:String(ke).toLowerCase().includes(K)})},[r]),R=c??W,z=o.useMemo(()=>{const ne=H?a.filter(le=>R(le,D)):a;return O?[...ne].sort((le,K)=>{const oe=le[O],ke=K[O];return oe===ke?0:bo(oe,ke,G)}):ne},[a,D,O,G,H,R]),V=Math.max(1,Math.ceil(z.length/Number(M)));Z>V&&q(V);const F=Math.min(Z,V),S=z.slice((F-1)*Number(M),F*Number(M)),j=o.useCallback(ne=>{O===ne?L(le=>!le):(P(ne),L(!0)),q(1)},[O]),I=o.useMemo(()=>{if(typeof k=="function"){const ne=z.length,le=k(ne);if(typeof le=="string"){const K=le.lastIndexOf(String(ne));if(K>=0)return{prefix:le.slice(0,K),suffix:le.slice(K+String(ne).length)}}return{label:le}}if(typeof k=="string"&&k.includes("{n}")){const[ne,le]=k.split("{n}");return{prefix:ne,suffix:le}}return{prefix:v("common.totalCountPrefix","\uCD1D "),suffix:v("common.totalCountSuffix","\uAC1C")}},[k,z.length,v]),U=o.useMemo(()=>r.map(ne=>({label:ne.label,onClick:ne.sortable!==!1?()=>j(ne.key):void 0,className:ne.className,sortDir:ne.sortable!==!1&&O===ne.key?G?"asc":"desc":null})),[r,O,G,j]),re=o.useMemo(()=>f.map(ne=>({value:String(ne),label:v("common.pageSizeLabel",{n:ne})})),[f,v]);return n.jsxs(In,{className:`popup-list ${A}`,title:t,onClose:x,children:[b,"label"in I&&n.jsx("p",{className:"toolbar__count body-1",children:I.label}),n.jsx(Do,{count:"label"in I?void 0:{value:z.length,prefix:I.prefix,suffix:I.suffix},search:H?{value:D,onChange:N,placeholder:w}:void 0,pageSize:{options:re,value:M,onChange:$},pagination:{page:F,total:V,onChange:q}}),n.jsx(Oo,{size:"medium",gridTemplateColumns:s,mobileGridTemplateColumns:l,resizable:!0,resizeStorageKey:i,fields:U,items:S,onRowClick:y,renderRow:ne=>{const le=C!=null?ne.id!=null&&C.has(ne.id):p!=null&&ne.id===p;return r.map(K=>({content:K.render?K.render(ne):ne[K.key]??"",className:we(K.className,le&&"popup-list__row--selected")}))},empty:H&&D!==""&&a.length>0?E:B})]})}function Zc(e){const{title:t,message:a,topContent:r,details:i,children:s,confirmLabel:l,cancelLabel:u,hideCancel:c=!1,extraAction:d,confirmVariant:m="main",confirmDisabled:p=!1,onConfirm:C,closeOnConfirm:y=!0,onClose:x,inline:f,size:h="small",className:_,initialFocus:g="close"}=e,{t:k}=xe.useTranslation(),b=o.useRef(null);o.useEffect(()=>{if(f||g==="close")return;const D=b.current?.closest(".popup-panel"),N=Array.from(D?.querySelectorAll(".popup-footer--buttons button")??[]),O=g==="confirm"?N[N.length-1]:c?void 0:N[d?1:0];O&&!O.disabled&&O.focus()},[]);const A=o.useRef(!1),[v,w]=o.useState(!1),B=D=>{let N=!1;return{close:()=>{N=!0,D()},didClose:()=>N}},E=async D=>{if(A.current)return;A.current=!0;const N=typeof document<"u"?document.activeElement:null;w(!0);let O=!1;try{O=await D()}catch(P){typeof console<"u"&&console.error(P)}finally{O||(A.current=!1,w(!1),requestAnimationFrame(()=>{const P=document.activeElement;(!P||P===document.body)&&N?.isConnected&&N.focus()}))}};return n.jsxs(In,{title:t,onClose:x,closeDisabled:v,inline:f,size:h,className:we("confirm-popup",r!=null&&"confirm-popup--has-top",_),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||v,onClick:async({closeWithAnimation:D})=>{await E(async()=>{const N=B(D);await d.onClick(N.close);const O=d.closeOnClick??!0;return O&&D(),O||N.didClose()})}}]:[],...c?[]:[{label:u??k("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:v,onClick:({closeWithAnimation:D})=>D()}],{label:l??k("common.confirm","\uD655\uC778"),variant:m,disabled:p||v,onClick:async({closeWithAnimation:D})=>{await E(async()=>{const N=B(D);return await C(N.close),y&&D(),y||N.didClose()})}}],children:[r!=null&&n.jsx("div",{className:"confirm-popup__top",children:r}),i&&i.length>0&&n.jsx(wr,{children:i.map((D,N)=>n.jsx(Sn,{label:D.label,children:n.jsx("span",{className:"panel-row__text body-2",children:D.value})},N))}),n.jsx("p",{ref:b,className:"body-2 confirm-popup__message",children:a}),s]})}function X7(e,t,a={}){const{t:r}=xe.useTranslation(),[i,s]=o.useState(!1),l=o.useRef(!1),u=o.useCallback(()=>{l.current=!0},[]),c=o.useCallback(()=>l.current?(l.current=!1,!0):e?(s(!0),!1):!0,[e]),d=i?n.jsx(Zc,{title:a.title??r("common.discardConfirm.title","\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?"),message:a.message??r("common.discardConfirm.body","\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4."),confirmLabel:a.confirmLabel??r("common.discardConfirm.confirm","\uC785\uB825 \uCDE8\uC18C"),confirmVariant:"danger",onConfirm:()=>{s(!1),t()},onClose:()=>s(!1)}):null;return{beforeClose:c,discardPopup:d,allowClose:u}}function J7({onApply:e,onCancel:t}){const{t:a}=xe.useTranslation(),[r,i]=o.useState(""),[s,l]=o.useState(!1),[u,c]=o.useState(null),d=o.useRef(null),m=o.useId();o.useEffect(()=>{d.current?.focus()},[]);const p=o.useCallback(async x=>{const f=r.trim();if(f){l(!0),c(null);try{await e(f),x()}catch(h){c(Ai(h)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),C=o.useCallback((x,f)=>{x.key==="Enter"&&!x.nativeEvent.isComposing&&p(f)},[p]),y=x=>{i(x.target.value),c(null)};return n.jsx(In,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:t,closeDisabled:s,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:s,onClick:({closeWithAnimation:x})=>x()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||s,onClick:({closeWithAnimation:x})=>{p(x)}}],children:({closeWithAnimation:x})=>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"),"aria-invalid":u?!0:void 0,"aria-errormessage":u?m:void 0,"aria-describedby":u?m:void 0,placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:y,onKeyDown:f=>C(f,x),disabled:s,autoComplete:"off",spellCheck:!1}),u&&n.jsx("p",{id:m,className:"coupon-input-popup__error caption-1",role:"alert",children:u})]})})}const Xc=["var(--color-main)","var(--color-sub)"],Q7=2e3;function e8(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 ys({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:i,trigger:s=0}){const l=o.useMemo(()=>{const f=Math.floor(t/2),h=t-f,_=(g,k)=>Array.from({length:g}).map((b,A)=>{const v=6+Math.random()*12,w=Math.round(Math.min(18,v*Math.min(1.5,1+r*.4))),B=Xc[Math.floor(Math.random()*Xc.length)],E=Math.random()*300,D=(360+Math.random()*260)*r*1.2,N=(k==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,O=Math.cos(N)*D,P=Math.sin(N)*D*1.35,G=Math.random()*720-360,L=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),M=Math.random()>.7?"50%":"3px";return{id:`${k}-${A}`,side:k,size:w,color:B,delay:E,vx:O,vy:P,angularVel:G,life:L,borderRadius:M}});return[..._(f,"left"),..._(h,"right")]},[t,r]),u=o.useRef(null),c=o.useRef({}),d=o.useRef(null),m=o.useRef(i);o.useEffect(()=>{m.current=i},[i]);const p=o.useRef(null),C=o.useRef(null),y=()=>{if(typeof document>"u")return null;let f=document.querySelector("[data-ihab-effect-root]");return f||(f=document.createElement("div"),f.className="app-effect",f.dataset.ihabEffectRoot="",f.style.position="fixed",f.style.inset="0",f.style.pointerEvents="none",f.style.zIndex="99998",document.body.appendChild(f)),f};if(typeof document<"u"&&C.current==null&&(C.current=y()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const W=setTimeout(()=>m.current?.(),0);return()=>clearTimeout(W)}const f=1200,h=performance.now(),_=C.current&&C.current!==document.body?C.current.getBoundingClientRect():null,g=Math.max(60,(window.innerHeight||800)*.05),k=W=>Math.max(40,(W||window.innerWidth)*.02),b=_?.width||window.innerWidth||375,A=_?.height||window.innerHeight||812,v=W=>{const R=[...W].sort((z,V)=>z-V);return R[Math.floor(R.length/2)]||1},w=v(l.map(W=>Math.abs(W.vy))),B=v(l.map(W=>Math.abs(W.vx))),E=Math.sqrt(2*f*(A*.72+g))/w,D=w*E/f,N=b*.5/(B*D),O=(W,R,z)=>Math.min(z,Math.max(R,W)),P=O(E,.8,2.4),G=O(N,.7,2.2),L=a>0?a/Q7:1,M=l.map(W=>({...W,life:W.life*L,vx:W.vx*G,vy:W.vy*P,startTime:h+W.delay,ended:!1})),$=_?{x:_.left-k(_.width),y:_.top+_.height+g}:{x:-k(window.innerWidth),y:window.innerHeight+g},Z=_?{x:_.left+_.width+k(_.width),y:_.top+_.height+g}:{x:window.innerWidth+k(window.innerWidth),y:window.innerHeight+g},q=W=>{let R=!1;for(const z of M){const V=c.current[z.id];if(!V||!V)continue;if(W<z.startTime){V.style.display="none",R=!0;continue}if(!z._inited){const oe=z.side==="left"?$.x:Z.x,ke=z.side==="left"?$.y:Z.y;V.style.left=`${oe}px`,V.style.top=`${ke}px`,V.style.transform="translate3d(0px, 0px, 0)",V.style.display="block",V.style.zIndex="100000",typeof z.color=="string"&&z.color.startsWith("var(")&&(V.style.background=e8(V,z.color)??"#FF0060"),z._inited=!0}const F=(W-z.startTime)/1e3;if(F<0)continue;const S=z.life/1e3;if(F>=S){V.style.opacity="0",V.style.display="none",z.ended=!0;continue}R=!0;const j=z.side==="left"?$.x:Z.x,I=z.side==="left"?$.y:Z.y,U=j+z.vx*F,re=I+z.vy*F+.5*f*F*F,ne=(z.angularVel||0)*F,le=U-j,K=re-I;V.style.transform=`translate3d(${le}px, ${K}px, 0) rotate(${ne}deg)`,V.style.opacity=`${Math.max(0,1-F/S)}`}R?d.current=requestAnimationFrame(q):m.current?.()};d.current=requestAnimationFrame(q);const H=setTimeout(()=>{try{if((C.current?C.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 R of l){const z=document.createElement("span");z.className=`confetti confetti--${R.side}`,z.setAttribute("aria-hidden","true"),z.style.display="none",z.style.position="fixed",z.style.left="0px",z.style.top="0px",z.style.width=`${R.size}px`,z.style.height=`${Math.max(4,R.size*.6)}px`,z.style.background=R.color,z.style.borderRadius=R.borderRadius,z.style.transform="translate3d(0,0,0)",z.style.opacity="0",W.appendChild(z),c.current[R.id]=z}(document.body||C.current).appendChild(W),p.current=W}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(H),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,a,s,l]),!e)return null;const x=n.jsx("div",{className:"party-container",ref:u,children:l.map(f=>n.jsx("span",{"aria-hidden":!0,ref:h=>{c.current[f.id]=h},className:`confetti confetti--${f.side}`,style:{width:`${f.size}px`,height:`${Math.max(4,f.size*.6)}px`,background:f.color,borderRadius:f.borderRadius}},`${f.id}-${s}`))});return typeof document<"u"?en.createPortal(x,C.current||document.body):x}const vs=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function t8({trigger:e=0,active:t=!1}){const[a,r]=o.useState(null);o.useEffect(()=>{if(typeof window>"u")return;const s=l=>{const u=l.detail??{};r(c=>({n:(c?.n??0)+1,count:vs(u.count),strength:vs(u.strength),duration:vs(u.duration)}))};return window.addEventListener("party:trigger",s),()=>window.removeEventListener("party:trigger",s)},[]);const i=o.useCallback(()=>r(null),[]);return n.jsxs(n.Fragment,{children:[n.jsx(ys,{active:t,trigger:e}),a&&n.jsx(ys,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:i})]})}function n8({title:e,sub:t,rightAction:a,titleAction:r,badge:i,badgeVariant:s="default",documentTitle:l,onBack:u,backLabel:c,wrap:d=!1}){const{t:m}=xe.useTranslation();L4(typeof e=="string"?e:l??null);const p=c??m("common.back","\uB4A4\uB85C");return n.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[n.jsxs("div",{className:"page-title__main",children:[n.jsxs("div",{className:"page-title__title-row",children:[u&&n.jsx(pe,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:p,showTooltipInfo:p,onClick:u}),n.jsx("h1",{className:"page-title__title h1",children:e}),i&&n.jsx("div",{className:"page-title__badge",children:n.jsx(kt,{label:i,size:"small",variant:s,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 a8(e){return e??""}const Jc=o.createContext({words:[],loading:!1});function r8(){return o.useContext(Jc)}function o8({words:e,loading:t,error:a,statusMessage:r,localVersion:i,remoteVersion:s,progress:l,clearAndRefetch:u,checkRemoteVersion:c,children:d}){const m=o.useMemo(()=>({words:e,loading:t,error:a,statusMessage:r,localVersion:i,remoteVersion:s,progress:l,clearAndRefetch:u,checkRemoteVersion:c}),[e,t,a,r,i,s,l,u,c]);return n.jsx(Jc.Provider,{value:m,children:d})}function s8({items:e,actions:t,columns:a,flat:r=!1,className:i,style:s}){const l=a??e.length;return n.jsx("section",{className:we("summary-strip",r&&"summary-strip--flat",i),style:{"--summary-strip-cols":String(l),...s},children:n.jsxs("div",{className:"summary-strip__row",children:[n.jsx("div",{className:"summary-strip__items",children:e.map((u,c)=>n.jsxs("div",{className:"summary-strip__item",children:[n.jsx("p",{className:"summary-strip__label caption-1",children:u.label}),n.jsx("p",{className:"summary-strip__value body-3b",title:typeof u.value=="string"||typeof u.value=="number"?String(u.value):void 0,children:u.value})]},c))}),t&&n.jsx("div",{className:"summary-strip__actions",children:t})]})})}const i8=(e,t)=>`${e} / ${t}`;function l8({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:i=i8,pageWidth:s,pageHeight:l,margin:u,className:c,style:d}){const{t:m}=xe.useTranslation(),p=o.useRef(null),C=o.useRef(null),y=o.useRef(null),x=o.useRef(null),[f,h]=o.useState(null),[_,g]=o.useState(!1);o.useEffect(()=>{const L=p.current;if(!L)return;const M=()=>g(L.scrollWidth>L.clientWidth+1);if(M(),typeof ResizeObserver>"u")return;const $=new ResizeObserver(M);return $.observe(L),()=>$.disconnect()},[f]);const k=e.map(L=>`${L.id}\0${L.section??""}\0${L.group??""}`).join(""),b=f&&f.shape===k?f.pages:null,[A,v]=o.useState(0);o.useEffect(()=>{const L=x.current;if(!L||typeof ResizeObserver>"u")return;const M=new ResizeObserver(()=>v(L.offsetHeight));return M.observe(L),()=>M.disconnect()},[]);const[w,B]=o.useState(0);o.useEffect(()=>{const L=C.current;if(!L||typeof ResizeObserver>"u")return;let M=null;const $=typeof requestAnimationFrame=="function"?H=>requestAnimationFrame(H):H=>setTimeout(H,16),Z=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:H=>clearTimeout(H),q=new ResizeObserver(()=>{M==null&&(M=$(()=>{M=null,B(H=>H+1)}))});return Array.from(L.children).forEach(H=>q.observe(H)),()=>{q.disconnect(),M!=null&&Z(M)}},[k]),o.useLayoutEffect(()=>{const L=C.current,M=x.current;if(!L||!M)return;const $=S=>S.getBoundingClientRect().height||S.offsetHeight,Z=new Map;y.current?.querySelectorAll("[data-chrome-section]").forEach(S=>{Z.set(S.dataset.chromeSection??"",$(S))});const q=S=>$(M)-(Z.get(S??"")??0),H=Array.from(L.children).map(S=>$(S)),W=[];e.forEach((S,j)=>{const I=W[W.length-1],U=I?e[I[0]]:void 0;U&&S.group!=null&&U.group===S.group&&U.section===S.section?I.push(j):W.push([j])});const R=[];let z=[],V=0;const F=()=>{z.length&&R.push(z),z=[],V=0};W.forEach(S=>{const j=S.reduce((U,re)=>U+H[re],0),I=q(e[S[0]].section);z.length&&e[z[0]].section!==e[S[0]].section&&F(),j>I?S.forEach(U=>{z.length&&V+H[U]>I+.01&&F(),z.push(U),V+=H[U]}):(z.length&&V+j>I+.01&&F(),S.forEach(U=>z.push(U)),V+=j)}),F(),h(S=>S&&S.shape===k&&JSON.stringify(S.pages)===JSON.stringify(R)?S:{shape:k,pages:R})},[k,A,s,l,u,w]);const E=Ao,D=E,N=r??n.jsxs(n.Fragment,{children:[n.jsx("img",{src:D,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),O=(L,M,$)=>({header:n.jsxs("div",{className:"report-doc__header",children:[n.jsx("h2",{className:"report-doc__title h3b",children:$!=null&&t?.[$]||null}),a]}),footer:n.jsxs("div",{className:"report-doc__footer caption-1",children:[n.jsx("span",{className:"report-doc__footer-left",children:N}),n.jsx("span",{className:"report-doc__page-no",children:i(L,M)})]})}),P=Array.from(new Set(e.map(L=>L.section??""))),G={...s?{"--report-page-w":s}:null,...l?{"--report-page-h":l}:null,...u?{"--report-margin":u}:null,...d};return n.jsxs("div",{ref:p,className:we("report-doc",c),style:G,tabIndex:_?0:void 0,role:_?"group":void 0,"aria-label":_?m("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[n.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[n.jsx("div",{ref:x,className:"report-doc__ruler"}),n.jsx("div",{ref:y,children:P.map(L=>{const M=O(1,1,L||void 0);return n.jsxs("div",{"data-chrome-section":L,children:[M.header,M.footer]},L)})}),n.jsx("div",{ref:C,className:"report-doc__measure-blocks",children:e.map(L=>n.jsx("div",{children:L.content},L.id))})]}),b&&n.jsx("div",{className:"report-doc__pages",children:b.map((L,M)=>{const{header:$,footer:Z}=O(M+1,b.length,e[L[0]].section);return n.jsxs("section",{className:"report-doc__page",children:[$,L.map(q=>n.jsx("div",{children:e[q].content},e[q].id)),Z]},M)})})]})}function u8({title:e,fields:t,columns:a=4,className:r,style:i}){return n.jsxs("div",{className:we("report-info",r),style:{"--report-info-cols":String(a),...i},children:[e&&n.jsx("p",{className:"report-info__title h5b",children:e}),n.jsx("div",{className:"report-info__grid",children:t.map((s,l)=>n.jsxs("div",{className:"report-info__field body-2",children:[n.jsx("span",{className:"report-info__label body-3",children:s.label}),n.jsx("span",{className:"report-info__value",children:s.value})]},l))})]})}const ea=new Map;let Sr=null;const c8=12;function d8(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 Tr(){const e=new Map;for(const t of ea.keys()){if(!t.isConnected)continue;const a=d8(t),r=e.get(a)??[];r.push(t),e.set(a,r)}for(const t of e.values()){t.sort((r,i)=>r.compareDocumentPosition(i)&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 i=r.getBoundingClientRect().height;i>0&&(a+=i+c8)}}}function p8(e){return typeof window>"u"?()=>{}:(ea.set(e,(ea.get(e)??0)+1),ea.get(e)===1&&typeof ResizeObserver<"u"&&(Sr??(Sr=new ResizeObserver(()=>Tr())),Sr.observe(e)),Tr(),()=>{const t=(ea.get(e)??1)-1;if(t>0){ea.set(e,t),Tr();return}ea.delete(e),Sr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),Tr()})}function m8({title:e,message:t,actionLabel:a,onAction:r,icon:i,onClose:s,className:l=""}){const{t:u}=xe.useTranslation(),c=a??u("common.update","\uC5C5\uB370\uC774\uD2B8"),d=o.useRef(null),m=o.useRef(!1);return o.useLayoutEffect(()=>{const p=d.current,C=p?.parentElement?.closest(".update-alert-stack")??p,y=C?p8(C):null;return()=>{y?.(),m.current&&p&&p.contains(document.activeElement)&&nr(p)}},[]),n.jsxs("div",{ref:d,className:we("update-alert",l),role:"alert",children:[s&&n.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{m.current=!0,s()},"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"}),n.jsxs("div",{className:"update-alert__top",children:[n.jsx("div",{className:"update-alert__icon",children:i??n.jsx(js,{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(pe,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:c})]})}function h8({title:e,titleLevel:t=3,description:a,topActions:r,children:i,footerLeft:s,footerRight:l,ariaLabel:u,onClick:c,draggable:d,onDragStart:m,onDragEnd:p,className:C}){const y=t?`h${t}`:"div",x=s!=null||l!=null,f=i!=null&&i!==!1,h=o.useCallback(_=>{c&&_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),c())},[c]);return n.jsxs("div",{className:we("training-card",c?"training-card--clickable":"",C),onClick:c,onKeyDown:c?h:void 0,role:c?"button":void 0,"aria-label":c?u??(typeof e=="string"?e:void 0):void 0,tabIndex:c?0:void 0,draggable:d,onDragStart:m,onDragEnd:p,children:[n.jsxs("div",{className:"training-card__header",children:[n.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?n.jsx(y,{className:"training-card__title h4",children:e}):e,r!=null&&n.jsx("div",{className:"training-card__top-actions",onClick:_=>_.stopPropagation(),children:r})]}),a!=null?typeof a=="string"?n.jsx("p",{className:"training-card__description body-3",children:a}):a:n.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),f&&n.jsx("div",{className:"training-card__body",children:i}),x&&n.jsxs("div",{className:"training-card__footer",children:[s!=null&&n.jsx("div",{className:"training-card__footer-left",children:s}),l!=null&&n.jsx("div",{className:"training-card__meta",children:l})]})]})}function C8({title:e,titleLevel:t=3,count:a,collapsed:r=!1,onToggle:i,beforeSort:s,sort:l,actions:u,empty:c=!1,emptyContent:d,dragOver:m=!1,onDragOver:p,onDragLeave:C,onDrop:y,children:x,className:f}){const{t:h}=xe.useTranslation(),_=o.useId(),g=t?`h${t}`:"span",k=i!=null,b=we("training-card-group",m&&"training-card-group--dragover",r&&"training-card-group--collapsed",k&&"training-card-group--collapsible",f);return n.jsxs("div",{className:b,onDragOver:p,onDragLeave:C,onDrop:y,role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?_:void 0,children:[n.jsxs("header",{className:"training-card-group__header",children:[k&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:r?"chevron-right":"chevron-down",ariaLabel:typeof e=="string"&&e?r?h("common.expandFor",{name:e}):h("common.collapseFor",{name:e}):r?h("common.expand","\uD3BC\uCE58\uAE30"):h("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!r,onClick:i}),typeof e=="string"?n.jsx(g,{id:_,className:"training-card-group__title h5b",children:e}):e,a!==void 0&&n.jsx("span",{className:"training-card-group__count body-3b",children:a}),(s!=null||l||u!=null)&&n.jsxs("span",{className:"training-card-group__actions",onClick:A=>A.stopPropagation(),children:[s,l&&n.jsx(pn,{size:40,options:l.options,value:l.value,placeholder:l.placeholder,onChange:l.onChange,ariaLabel:typeof e=="string"&&e?h("common.sortFor",{name:e}):void 0}),u]})]}),!r&&(c?n.jsx("div",{className:"training-card-group__empty body-3",children:d}):n.jsx("div",{className:"training-card-group__grid",children:x}))]})}const f8="speechear:saved_word_tables";function g8(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 b8(){try{const e=localStorage.getItem(f8);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(g8):[]}catch{return[]}}function Qc(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 xs(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function y8(e){const t=new Set;return e.map(a=>{let r=a.id;for(let i=2;t.has(r);i++)r=`${a.id}~${i}`;return t.add(r),r===a.id?a:{...a,id:r}})}function v8({title:e,titleIcon:t,disc:a,filterTitle:r,filterCollapsible:i,filterDefaultCollapsed:s,filterCollapsed:l,onFilterCollapsedChange:u,filterHeaderSummary:c,brand:d,code:m,items:p,onSaveComplete:C,onLoad:y,onRemoveItem:x,onReset:f,resetLabel:h,saveButtonLabel:_,secondarySaveButtonLabel:g,onReorder:k,showCellCount:b,onAddItem:A,className:v,renderSavePopup:w,renderWordSearch:B,hideControls:E,saveOnly:D,tableName:N,nameValue:O,onNameChange:P,descriptionValue:G,onDescriptionChange:L,namePlaceholder:M,descriptionPlaceholder:$,existingNames:Z,editingName:q,onCancel:H,initialItemsPerPage:W,renderCellAction:R,actionsLeftExtra:z}){const{t:V}=xe.useTranslation(),F=h??V("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),S=p===void 0,j=!!P,[I,U]=o.useState([]),re=(O??"").trim(),ne=re||(M??"").trim(),le=(G??"").trim()||($??"").trim(),K=(Z??[]).map(ae=>ae.trim().toLowerCase()),oe=[q?.trim().toLowerCase(),...I].filter(ae=>!!ae),ke=[...K];for(const ae of oe){const ye=ke.indexOf(ae);ye!==-1&&ke.splice(ye,1)}const Y=re!==""&&ke.includes(re.toLowerCase()),[Q,me]=o.useState(Array(4).fill(null)),[De,be]=o.useState(4),[te,ue]=o.useState(null),Ce=Q.slice(0,De),ge=!!d?.show,[fe,$e]=o.useState(!0),[ze,Te]=o.useState(!0),Fe=d&&{...d,top:fe,bottom:ze},[qe,mt]=o.useState("landscape"),[ct,rt]=o.useState(["image","word","standardPron"]),[Ct,Ae]=o.useState("show"),[We,_e]=o.useState(!0),[Ue,Be]=o.useState(!0),je=o.useRef(null),Se=o.useRef([]),[Xe,Qe]=o.useState(W==="all"?Number.POSITIVE_INFINITY:W??8),[dt,ht]=o.useState("right"),[wt,ft]=o.useState(!1),[Nt,gt]=o.useState(!1),{toastMessage:it,toastType:Ke,showWarning:se,clearToast:Ne}=Tl("warning"),Ve=o.useCallback(()=>ue(null),[ue]);A&&!S&&!b&&St("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[nt,Ie]=o.useState(()=>Math.max(p?.length??1,1)),Ge=S?De:b?Math.max(nt,p?.length??1,1):Math.max(p?.length??0,1),{width:bt,height:Re}=ma[qe],tt=!S&&!b,xt=p?.length??0,Lt=Math.min(Xe,Math.max(xt,1)),et=tt?Lt:Ge,ot=tt?Iu(p??[],et):null,lt=!!ot&&ot.length>1,st=S?Ce.some(ae=>ae!==null&&ae.length>1):(p??[]).some(ae=>(ae.words??[]).length>1),jt=N?.trim()||`${Mi(Na())} ${st?V("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):V("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,Vt=o.useCallback(()=>lt?Se.current.filter(ae=>ae!==null):je.current?[je.current]:[],[lt]),{print:mn,openNewWindow:hn,downloadHtml:jn}=Qo({getElements:Vt,paperW:bt,paperH:Re,fileName:jt,onPopupBlocked:()=>{se(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."))}}),Hn=ae=>{be(ae),me(ye=>ye.length>=ae?ye:[...ye,...Array(ae-ye.length).fill(null)]),ue(null)},Vn=ae=>{me(ye=>{const Le=[...ye];return Le[ae]=null,Le}),te===ae&&ue(null)},Ft=ae=>{if(te===null)return;const ye=te;me(He=>{const ut=[...He];return ut[ye]=ae.length>0?ae:null,ut});const Le=Ce.findIndex((He,ut)=>ut>ye&&He===null);ue(Le!==-1?Le:null)},vn=S?Ce.some(ae=>ae?.some(ye=>!!ye.colloquialPronunciation)):(p??[]).some(ae=>(ae.words??[]).some(ye=>!!ye.colloquialLabel)),It=o.useMemo(()=>aa()?S?Q.slice(0,De).flatMap(ae=>(ae??[]).map(ye=>[ye.word,ye.homonum])):(p??[]).flatMap(ae=>(ae.words??[]).map(ye=>[ye.label,ye.homonum])):[],[S,Q,De,p]),[zt,Mn]=o.useState(!1);o.useEffect(()=>{if(It.length===0)return;let ae=!1;return Promise.all(It.map(([ye,Le])=>vi(ye,Le))).then(ye=>{ae||Mn(ye.some(Boolean))},()=>{}),()=>{ae=!0}},[It]);const on=It.length>0&&zt,xn=o.useMemo(()=>[...S||b?[{label:V("wordTable.filter.columns","\uCE78 \uC218"),items:P5.map(ae=>({value:`${ae}\uCE78`,displayLabel:V("wordTable.filter.column",{count:ae})})),display:"segmented"}]:[],...tt&&(p?.length??0)>0?[nc(V,{hasPairs:st,itemCount:xt})]:[],...lt?[F5(V)]:[]],[V,S,b,tt,p?.length,st,xt,lt]),zn={...S||b?{[V("wordTable.filter.columns","\uCE78 \uC218")]:`${Ge}\uCE78`}:{},...tt&&(p?.length??0)>0?{[V(st?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Lt}\uAC1C`}:{},...lt?{[V("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:dt}:{}},_n=(ae,ye)=>{ye===V("wordTable.filter.columns","\uCE78 \uC218")?S?Hn(parseInt(ae)):Ie(parseInt(ae)):ye===V(st?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Qe(ac(parseInt(ae),xt)):ye===V("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&ht(rc(ae))},Wt=S?y8(Ce.filter(ae=>ae!==null&&ae.length>0).map(ae=>({id:xs(ae),words:ae.map(Qc)}))):p??[],$t=()=>{S&&me(ae=>ae.length>De?ae.slice(0,De):ae)},qt=(ae=!1)=>{if(gt(ae),j&&C){const ye=ne.trim().toLowerCase();ye&&U(Le=>Le.includes(ye)?Le:[...Le,ye]),C(ne,Wt,le||void 0,ae),$t();return}if(D&&C){C("",Wt,void 0,ae),$t();return}if(C){ft(!0);return}jn()},[Cn,Ot]=o.useState(!1),[sn,Dt]=o.useState(""),ie=sn.trim(),ve=ie!==""&&K.includes(ie.toLowerCase()),Me=()=>{Dt(ne?V("wordTable.save.copyName",{name:ne,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),Ot(!0)},Je=()=>{!ie||ve||!C||(C(ie,Wt,le||void 0,!0),$t(),Ot(!1))},Oe=Wt.length===0,Ye=Oe||j&&(ne===""||Y),J=()=>{if(Oe){se(V("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(j&&ne===""){se(V("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}j&&Y&&se(V("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},de=n.jsx(ha,{items:Wt,orientation:qe,contentTypes:ct,cutLine:Ct,showOutline:We,showDivLine:Ue,count:Ge});return n.jsxs(n.Fragment,{children:[n.jsxs(pa,{type:"page",icon:t,title:e,disc:a,className:we("word-table-block",v),children:[Cn&&n.jsx(In,{size:"small",title:g??V("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>Ot(!1),footer:({closeWithAnimation:ae})=>n.jsxs(n.Fragment,{children:[n.jsx(pe,{htmlType:"button",size:48,type:"bar",label:V("common.cancel","\uCDE8\uC18C"),onClick:ae}),n.jsx(pe,{htmlType:"button",size:48,type:"bar",variant:"main",label:V("common.save","\uC800\uC7A5"),disabled:!ie||ve,onClick:Je})]}),children:n.jsx(Xn,{label:V("wordTable.save.nameLabel","\uC774\uB984"),value:sn,onChange:Dt,placeholder:V("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:Je,error:ve?V("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),wt&&C&&w?.({defaultName:typeof e=="string"?e:V("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:de,previewW:bt,previewH:Re,items:Wt,existingNames:b8().map(ae=>ae.name),saveAsNew:Nt,onSave:(ae,ye)=>{C(ae,Wt,ye,Nt),$t(),ft(!1)},onCancel:()=>ft(!1)}),(S||A)&&te!==null&&B?.({cellIndex:te,onConfirm:S?Ft:ae=>{if(A){const ye=ae[0];if(ye){const Le=new Set((p??[]).map(ut=>ut.id));let He=xs([ye]);for(let ut=2;Le.has(He);ut++)He=`${xs([ye])}~${ut}`;A({id:He,words:[Qc(ye)]})}}ue(null)},onClose:Ve}),!E&&n.jsx(Yo,{title:r,collapsible:i,defaultCollapsed:s,collapsed:l,onCollapsedChange:u,headerSummary:c,hasImage:on,hasColloquial:vn,contentTypes:ct,orientation:qe,showOutline:We,cutLine:Ct,showDivLine:Ue,setters:{setContentTypes:rt,setOrientation:mt,setShowOutline:_e,setCutLine:Ae,setShowDivLine:Be,setShowTopInfo:$e,setShowBottomInfo:Te},showCutLine:(tt?et:Ge)>1,showDivLine2:st,middleSections:xn,extraSelected:zn,onExtraSelect:_n,showPaperBands:ge,showTopInfo:fe,showBottomInfo:ze}),lt&&ot?n.jsx("div",{className:"word-table-block__pages",children:ot.map((ae,ye)=>n.jsx(ha,{orientation:qe,contentTypes:ct,cutLine:Ct,showOutline:We,showDivLine:Ue,count:et,items:ae,onRemoveItem:x,onReorder:k&&((Le,He)=>k(Le+ye*et,He+ye*et)),renderCellAction:R&&((Le,He)=>R(Le+ye*et,He)),brand:Fe,code:m,contentRef:Le=>{Se.current[ye]=Le},pageNumber:{current:ye+1,total:ot.length},pageNumberPosition:dt},ye))}):n.jsx(ha,{orientation:qe,contentTypes:ct,cutLine:Ct,showOutline:We,showDivLine:Ue,count:Ge,items:S?void 0:p??[],editCells:S?Ce:void 0,activeCell:te,onActivateCell:S||A?ue:void 0,onRemoveCell:S?Vn:void 0,onRemoveItem:S?void 0:x,onReorder:S?void 0:k,renderCellAction:S?void 0:R,brand:Fe,code:m,showFillerAdd:!!A,contentRef:je}),!E&&!D&&(f||z!=null)&&n.jsxs("div",{className:"word-table-block__table-actions",children:[f&&n.jsx(pe,{htmlType:"button",size:48,type:"bar",label:F,onClick:f}),z]}),j&&!E&&n.jsxs(wr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[n.jsx(Sn,{variant:"custom",label:V("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:n.jsx(Xn,{required:!0,value:O??"",onChange:P,placeholder:M?M+V("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):V("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:V("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:Y?V("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===" ")&&!(O??"").trim()&&(M??"").trim()&&(ae.preventDefault(),P?.(M??""))}})}),n.jsx(Sn,{variant:"custom",label:V("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:n.jsx(Xn,{value:G??"",onChange:L,placeholder:$?$+V("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):V("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:V("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:ae=>{(ae.key==="Tab"&&!ae.shiftKey||ae.key===" ")&&!(G??"").trim()&&($??"").trim()&&(ae.preventDefault(),L?.($??""))}})})]})]}),!E&&n.jsxs("div",{className:"word-table-block__actions",children:[n.jsxs("div",{className:"word-table-block__actions-left",children:[!D&&y&&n.jsx(pe,{htmlType:"button",size:40,type:"bar",label:V("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:y}),!D&&n.jsx(pe,{htmlType:"button",size:40,type:"bar",label:V("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:hn})]}),n.jsxs("div",{className:"word-table-block__actions-right",children:[H&&n.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:V("common.cancel","\uCDE8\uC18C"),onClick:H}),!D&&n.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:V("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:mn}),g&&n.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:g,onClick:()=>j?Me():qt(!0),disabled:Oe,onDisabledClick:()=>{se(V("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),n.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",label:_??V("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>qt(!1),disabled:Ye,onDisabledClick:J})]})]}),n.jsx(ca,{message:it,type:Ke,onClose:Ne})]})}function ed({items:e,className:t}){const a=e.length,r=a<=3?1:2,i=Math.ceil(a/r)||1,s=r*i;return n.jsx("div",{className:we("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:s},(l,u)=>{const c=e[u];return c?n.jsx("div",{className:"word-table-thumb__cell",children:(c.words?.length?c.words:[{label:c.id}]).map((d,m)=>n.jsxs(o.Fragment,{children:[m>0&&n.jsx("span",{className:"word-table-thumb__divider"}),n.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},m))},u):n.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},u)})})}function x8({items:e,name:t,description:a,createdAt:r,code:i,published:s,publishedLabel:l,shared:u,sharedLabel:c,isNew:d,publisherName:m,publishedAt:p,likeCount:C,downloadCount:y,onPublisherClick:x,selected:f,onClick:h,onMore:_,titleNode:g,className:k}){const{t:b}=xe.useTranslation(),A=g!=null,v=m!=null||p!=null||C!=null||y!=null,w=B=>{B.target===B.currentTarget&&!A&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),h?.())};return n.jsxs("div",{className:we("word-table-button",f?"word-table-button--selected":"",v?"":"word-table-button--no-footer",k),role:"button",tabIndex:0,"aria-label":i?`${t} (${i})`:t,onClick:A?void 0:h,onKeyDown:w,children:[d&&n.jsx("span",{className:"word-table-button__new-dot","aria-label":b("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),n.jsx(ed,{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:[g??n.jsx("div",{className:"word-table-button__title h4",children:t}),a&&n.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),_&&!A&&n.jsx(pe,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:b("common.moreFor",{name:t}),onClick:B=>{B.stopPropagation(),_(B)}})]}),(i||r||s||u)&&n.jsxs("div",{className:"word-table-button__meta-row",children:[n.jsx("span",{className:"word-table-button__meta-left",children:n.jsx("span",{className:"word-table-button__meta caption-1",children:r?ji(r,b):""})}),n.jsxs("span",{className:"word-table-button__meta-right",children:[(s||u)&&n.jsxs("span",{className:"word-table-button__badges",children:[s&&n.jsx(kt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:l??b("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),u&&n.jsx(kt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??b("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]}),i&&n.jsx("span",{className:"word-table-button__code caption-1",children:i})]})]}),v&&n.jsxs("div",{className:"word-table-button__footer",children:[n.jsxs("span",{className:"word-table-button__store-by",children:[m&&(x?n.jsx("button",{className:"training-card__publisher body-4",type:"button","aria-label":b("wordTable.publisherFilter",{name:m,defaultValue:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30"}),onClick:B=>{B.stopPropagation(),x()},children:m}):n.jsx("span",{className:"training-card__publisher training-card__publisher--static body-4",children:m})),p&&n.jsx("span",{className:"training-card__date body-4",children:ji(p,b)})]}),n.jsxs("span",{className:"word-table-button__store-stats",children:[C!=null&&n.jsx(kt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(C),"aria-label":b("common.likeCount",{count:C,defaultValue:`\uC88B\uC544\uC694 ${C}`})}),y!=null&&n.jsx(kt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(y),"aria-label":b("common.downloadCount",{count:y,defaultValue:`\uAC00\uC838\uAC04 \uC218 ${y}`})})]})]})]})}/**
1070
1070
  * @license lucide-react v1.38.0 - ISC
1071
1071
  *
1072
1072
  * This source code is licensed under the ISC license.
@@ -1076,4 +1076,4 @@ ${b.badge}`:b.badge:void 0;if(x&&c(b.code))return null;if(!b.badge&&!m)return p(
1076
1076
  *
1077
1077
  * This source code is licensed under the ISC license.
1078
1078
  * See the LICENSE file in the root directory of this source tree.
1079
- */const B8=[["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"}]],A8=ee("circle-x",B8);function k8(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function _s({icon:e,label:t,state:a,pct:r,subText:i}){const{t:s}=xe.useTranslation(),l=a==="done",u=a==="pending",c=a==="error",d=l?100:r??0;return n.jsxs("div",{className:"wdup-phase-card",children:[n.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":c?" wdup-phase-card__icon--error":""}`,children:l?n.jsx(Rs,{size:22,color:"white",strokeWidth:2.5}):c?n.jsx(A8,{size:22,color:"white",strokeWidth:2.5}):n.jsx("span",{className:`wdup-phase-card__icon-inner${u?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),n.jsxs("div",{className:"wdup-phase-card__body",children:[n.jsxs("div",{className:"wdup-phase-card__top",children:[n.jsx("span",{className:`wdup-phase-card__label body-2${u?" wdup-phase-card__label--pending":""}`,children:t}),l?n.jsx(kt,{variant:"sub",fill:"soft",size:"small",label:s("common.done","\uC644\uB8CC")}):c?n.jsx(kt,{variant:"danger",fill:"soft",size:"small",label:s("common.failed","\uC2E4\uD328")}):(i||r!==void 0)&&n.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[i,i&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!u&&n.jsx("div",{className:"wdup-bar",children:n.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":c?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||c?`${c?100:d}%`:void 0}})})]})]})}function N8({title:e,progress:t,onDone:a,onRetry:r,onClose:i,inline:s}){const{t:l}=xe.useTranslation(),{phase:u,error:c,wordCount:d,imagePage:m,imageDone:p,imageTotal:C,pairPercent:y}=t,v=k8(u),f=u==="done",h=!!c;function _(B){return h&&v===B?"error":v>B?"done":v===B?"active":"pending"}const g=_(1),k=_(2),b=_(3),N=u==="image-match"&&C?Math.round((p??0)/C*100):void 0,x=o.useMemo(()=>{if(k!=="done"){if(u==="image-list")return l("wordData.checkingPage",{page:m??1});if(u==="image-match"&&C)return l("wordData.imageCount",{done:oo(p),total:oo(C)})}},[k,u,m,C,p,l]);return n.jsx(Fn,{inline:s,className:"popup--word-data-update",title:e,footer:h&&r?n.jsx(pe,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):h?n.jsx(pe,{htmlType:"button",size:56,variant:"main",onClick:i??a,children:l("common.close","\uB2EB\uAE30")}):n.jsx(pe,{htmlType:"button",size:56,variant:"main",disabled:!f,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:n.jsxs("div",{className:"wdup-cards",children:[n.jsx(_s,{icon:n.jsx(Ts,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:g,subText:g==="active"?l("wordData.downloadingCount",{n:oo(d),count:d}):void 0}),n.jsx(_s,{icon:n.jsx(w8,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:k,pct:N,subText:x}),n.jsx(_s,{icon:n.jsx(Ls,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:b,pct:b==="active"?y??0:void 0,subText:void 0})]})})}function E8({enabled:e=!1,renderResultPopup:t}={}){const{t:a}=xe.useTranslation(),[r,i]=o.useState(null),[s,l]=o.useState(null),u=y=>{let v=null;y==="noise"?v={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:y==="short"?v={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:y==="long"?v={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:y==="order"&&(v={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),l(v),i(y)},c=o.useCallback(()=>{i(null),l(null)},[]),d=o.useCallback(()=>u("noise"),[]),m=o.useCallback(()=>u("short"),[]),p=o.useCallback(()=>u("long"),[]),C=o.useCallback(()=>u("order"),[]);return e?n.jsxs("div",{className:"debug-result-launcher",children:[n.jsxs("div",{className:"debug-buttons",children:[n.jsx("button",{type:"button",className:"debug-button",onClick:d,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:C,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&s?t?.({score:s.score,contextsLength:s.contextsLength,results:s.results,onReplay:c,onClose:c}):null]}):null}exports.Accordion=eb,exports.ActionCard=w4,exports.Alert=Ub,exports.AppHeader=sb,exports.AudioMeter=Fo,exports.AudioPlayer=ls,exports.Avatar=Qb,exports.Badge=kt,exports.BarChart=zy,exports.BarChartControls=gu,exports.Board=gy,exports.BottomNav=Ll,exports.BrandIdentity=Il,exports.Breadcrumb=ny,exports.BulkBar=Sy,exports.Button=pe,exports.CORE_VERSION=m4,exports.Calendar=c5,exports.CardStep=zc,exports.ChartLegend=So,exports.ChartSection=To,exports.ChartTotal=Ha,exports.Checkbox=du,exports.ChoiceChips=b3,exports.CircleBadge=Vb,exports.CodeBox=Ey,exports.ColorPicker=iy,exports.CompanyMeta=wy,exports.ConfirmPopup=Zc,exports.ConfirmStep=Oc,exports.ConfirmWithTextStep=Hc,exports.ContrastFilterPanel=Y7,exports.CoreScope=B4,exports.CountTile=my,exports.CouponInputPopup=J7,exports.DEFAULT_NOISE_SETTINGS=Ua,exports.DatePicker=Ry,exports.DebugResultLauncher=E8,exports.DescriptionTooltip=Gn,exports.DeviceSideTable=i5,exports.Dialog=fy,exports.Divider=zb,exports.Dropdown=pn,exports.EffectPartyPopper=ys,exports.EffectPartyPopperHost=t8,exports.EmptyState=x4,exports.ErrorState=_4,exports.FILTER_ALL_VALUE=dn,exports.FileUpload=ty,exports.FilterPanel=Dn,exports.FilterSectionInfo=Ra,exports.Footer=y3,exports.GameIntro=Uy,exports.Header=Ol,exports.Icon=at,exports.IconGridMenu=g3,exports.IconRenderer=at,exports.InfoTooltip=Bn,exports.ItemActions=jy,exports.LEVEL_MAX=fa,exports.LINE_CHART_HOVER_DELAY_MS=bu,exports.LandingBottomSticky=x3,exports.LandingHeader=v3,exports.LineChart=qy,exports.ListPopup=Z7,exports.ListenStep=Ic,exports.Loader=Oa,exports.MARKS=fr,exports.MARK_ICON=Ru,exports.MARK_VARIANT=Pu,exports.MediaQueryOverrideContext=Wi,exports.MenuTooltip=Ma,exports.NOISE_RATIO_MAX=za,exports.NOISE_RATIO_STEP=dc,exports.NoisePlayerContext=rs,exports.NoiseSettingsTooltip=Tc,exports.NoticeBox=A4,exports.OrderListStep=Vc,exports.PASS_CARD_BG_VARS=Yn,exports.POS_LABEL=Ou,exports.PROMO_BANNER_BG_COMPONENTS=_l,exports.PROMO_BANNER_BG_OPTIONS=j4,exports.PROMO_BANNER_BG_VARS=Da,exports.Page=Ar,exports.PageTitle=n8,exports.Pagination=cr,exports.Panel=wr,exports.PanelGrid=u7,exports.PanelRow=Sn,exports.PanelRowDevice=l7,exports.PassCard=Zl,exports.PassCardBg=Fb,exports.PassCardBgIHAB=Ib,exports.PassCardBgLeftColorGrid=Ob,exports.PassCardBgTwoCircle=ql,exports.PaymentPlan=Pb,exports.PersonCard=by,exports.PhonemeFilterPanel=K7,exports.PhonemeSelectBlock=U7,exports.Popup=Fn,exports.ProgressBar=Qy,exports.ProgressIndicator=Nu,exports.PromoBanner=X4,exports.PromoBannerBgDark=il,exports.PromoBannerBgDeep=tl,exports.PromoBannerBgDiagonal=dl,exports.PromoBannerBgDots=ml,exports.PromoBannerBgInstagram=xl,exports.PromoBannerBgMain=Yi,exports.PromoBannerBgNaver=yl,exports.PromoBannerBgOutline=Cl,exports.PromoBannerBgRadial=ul,exports.PromoBannerBgSoft=Xi,exports.PromoBannerBgSoftSub=al,exports.PromoBannerBgSub=Qi,exports.PromoBannerBgSuccess=gl,exports.PromoBannerBgWarm=ol,exports.PublicationCard=vy,exports.Radio=eu,exports.RadioGroup=Wb,exports.Rating=ry,exports.ReportDocument=l8,exports.ReportInfoPanel=u8,exports.RingChart=Ky,exports.SENTENCE_TRAINING_TYPES=es,exports.SearchSummary=Yb,exports.Section=pa,exports.SectionHeadFloat=mu,exports.SectionHeader=_y,exports.SegmentedControl=gn,exports.ShortcutBadge=Ql,exports.SideNav=Fl,exports.Slider=wu,exports.SoundCompass=Hb,exports.SplashLogo=xy,exports.StatChart=Yy,exports.SummaryStrip=s8,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=nu,exports.Table=Oo,exports.TableFilterPanel=Yo,exports.Tabs=Zb,exports.TextBoxTooltip=_r,exports.TextField=Zn,exports.Timeline=yy,exports.Toast=ca,exports.Toggle=cu,exports.Toolbar=Do,exports.Tooltip=cn,exports.TooltipInfo=Bn,exports.TooltipTextBox=_r,exports.TopBanner=J4,exports.TrainingBlock=p5,exports.TrainingBlockButton=ko,exports.TrainingBlockGrid=h5,exports.TrainingCard=h8,exports.TrainingCardGroup=C8,exports.TrainingPagePopup=In,exports.TrainingPagePopupBottom=jc,exports.TrainingPagePopupTitle=Mc,exports.TrainingResultPopup=Gc,exports.TrainingStep=Xn,exports.TrainingStepAudioPlayer=ls,exports.TrainingStepBullet=wc,exports.TrainingStepCard=Nc,exports.TrainingStepConfirm=cs,exports.TrainingStepConfirmWithText=ds,exports.TrainingStepListen=ps,exports.TrainingStepOrderList=ms,exports.TrainingStepTextBox=kc,exports.TrainingStepTitle=Ac,exports.TrainingTooltip=au,exports.TrainingWordCard=Wo,exports.UpdateAlert=m8,exports.WAVE_A_MAX=$3,exports.WAVE_H1_PX=ss,exports.WAVE_HMAX_PX=L3,exports.WORD_LABEL_I18N_KEYS=B5,exports.WORD_TABLE_PAPER=ma,exports.WORD_TYPE_LABEL=Hu,exports.WordDataProvider=o8,exports.WordDataUpdatePopup=N8,exports.WordImageTooltip=Yc,exports.WordSearchFilterPanel=G7,exports.WordSearchResultBlock=W7,exports.WordTable=ha,exports.WordTableBlock=v8,exports.WordTableButton=x8,exports.WordTablePopup=z5,exports.WordTableThumbnail=ed,exports.buildMonthChartData=Fy,exports.cellKey=X5,exports.cellLabel=Z5,exports.cellsForLabels=u3,exports.clearPassCardBgTheme=Nn,exports.clearPromoBannerBgTheme=Kt,exports.closeTrainingPopup=h7,exports.companyTypeLabel=a8,exports.createTrainingScenario=g7,exports.cx=we,exports.deriveNoiseContexts=w7,exports.derivePassCard=Vl,exports.draftValues=C3,exports.effectiveNoiseVolume=ns,exports.effectiveSpeechVolume=mc,exports.expandSlashLabel=Ko,exports.formatDuration=c3,exports.getControlDateRange=Gy,exports.getPayloadTimestamp=Cs,exports.getPromoBannerBgTheme=fo,exports.getSelectedFromPayload=y7,exports.getSelectedText=v7,exports.getStepPayload=Pc,exports.getSteppedPayload=x7,exports.injectPassCardBgTheme=kn,exports.injectPromoBannerBgTheme=Gt,exports.isSelectionCorrect=_7,exports.labelOfCellKey=uc,exports.labelsForSave=Y5,exports.levelToPct=w3,exports.markAfterClick=$u,exports.marksForSave=qo,exports.mergeNoiseSettings=qa,exports.missesByType=o3,exports.monthKeyOf=Va,exports.monthKeyOfDate=jo,exports.nextFocus=t3,exports.nextMisses=r3,exports.noiseElementVolume=as,exports.noiseRatioOf=Wa,exports.pageStartIndexes=Fu,exports.parseMonthKey=ua,exports.passCardBgIhabTheme=Xl,exports.passCardBgLeftColorGridTheme=Jl,exports.passCardBgTwoCircleTheme=Wl,exports.pctToLevel=B3,exports.posLabels=Vu,exports.printWordTable=v5,exports.promoBannerBgDarkTheme=sl,exports.promoBannerBgDeepTheme=el,exports.promoBannerBgDiagonalTheme=cl,exports.promoBannerBgDotsTheme=pl,exports.promoBannerBgInstagramTheme=vl,exports.promoBannerBgMainTheme=Ki,exports.promoBannerBgNaverTheme=bl,exports.promoBannerBgOutlineTheme=hl,exports.promoBannerBgRadialTheme=ll,exports.promoBannerBgSoftSubTheme=nl,exports.promoBannerBgSoftTheme=Zi,exports.promoBannerBgSubTheme=Ji,exports.promoBannerBgSuccessTheme=fl,exports.promoBannerBgWarmTheme=rl,exports.recommendTables=i3,exports.regenerateUnpinned=h3,exports.removeItem=m3,exports.resolveTrainingItems=f7,exports.resolveTrainingPopupMeta=$c,exports.reviewCells=q5,exports.reviewMeta=K5,exports.reviewSetPlan=s3,exports.reviewTableName=G5,exports.scoreKey=Cr,exports.scoreSheetHeader=J5,exports.shouldConfirmDiscard=y5,exports.splitTrainingVariants=C7,exports.summarize=b5,exports.summarizeMisses=a3,exports.tableTrends=e3,exports.toDraft=d3,exports.toTrainingText=b7,exports.togglePin=p3,exports.uncoveredLabels=l3,exports.useAnchoredMenu=ja,exports.useBarChartControl=fu,exports.useCalendarMonth=pu,exports.useComboboxSuggestions=lu,exports.useDiscardGuard=X7,exports.useFitScale=qu,exports.useNoisePlayer=br,exports.useSoundCompassExam=Z4,exports.useToastLifecycle=Au,exports.useWordData=r8,exports.useWordTableDisplaySettings=ic,exports.useWordTablePrint=Qo,exports.waveBarPx=vr,exports.waveBarVal=xr,exports.weakItems=Q5,exports.weekValueOf=Mo,exports.withStepTimes=Rc,exports.wordTypeLabels=zu;
1079
+ */const B8=[["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"}]],A8=ee("circle-x",B8);function k8(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function _s({icon:e,label:t,state:a,pct:r,subText:i}){const{t:s}=xe.useTranslation(),l=a==="done",u=a==="pending",c=a==="error",d=l?100:r??0;return n.jsxs("div",{className:"wdup-phase-card",children:[n.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":c?" wdup-phase-card__icon--error":""}`,children:l?n.jsx(Rs,{size:22,color:"white",strokeWidth:2.5}):c?n.jsx(A8,{size:22,color:"white",strokeWidth:2.5}):n.jsx("span",{className:`wdup-phase-card__icon-inner${u?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),n.jsxs("div",{className:"wdup-phase-card__body",children:[n.jsxs("div",{className:"wdup-phase-card__top",children:[n.jsx("span",{className:`wdup-phase-card__label body-2${u?" wdup-phase-card__label--pending":""}`,children:t}),l?n.jsx(kt,{variant:"sub",fill:"soft",size:"small",label:s("common.done","\uC644\uB8CC")}):c?n.jsx(kt,{variant:"danger",fill:"soft",size:"small",label:s("common.failed","\uC2E4\uD328")}):(i||r!==void 0)&&n.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[i,i&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!u&&n.jsx("div",{className:"wdup-bar",children:n.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":c?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||c?`${c?100:d}%`:void 0}})})]})]})}function N8({title:e,progress:t,onDone:a,onRetry:r,onClose:i,inline:s}){const{t:l}=xe.useTranslation(),{phase:u,error:c,wordCount:d,imagePage:m,imageDone:p,imageTotal:C,pairPercent:y}=t,x=k8(u),f=u==="done",h=!!c;function _(w){return h&&x===w?"error":x>w?"done":x===w?"active":"pending"}const g=_(1),k=_(2),b=_(3),A=u==="image-match"&&C?Math.round((p??0)/C*100):void 0,v=o.useMemo(()=>{if(k!=="done"){if(u==="image-list")return l("wordData.checkingPage",{page:m??1});if(u==="image-match"&&C)return l("wordData.imageCount",{done:oo(p),total:oo(C)})}},[k,u,m,C,p,l]);return n.jsx(In,{inline:s,className:"popup--word-data-update",title:e,footer:h&&r?n.jsx(pe,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):h?n.jsx(pe,{htmlType:"button",size:56,variant:"main",onClick:i??a,children:l("common.close","\uB2EB\uAE30")}):n.jsx(pe,{htmlType:"button",size:56,variant:"main",disabled:!f,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:n.jsxs("div",{className:"wdup-cards",children:[n.jsx(_s,{icon:n.jsx(Ts,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:g,subText:g==="active"?l("wordData.downloadingCount",{n:oo(d),count:d}):void 0}),n.jsx(_s,{icon:n.jsx(w8,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:k,pct:A,subText:v}),n.jsx(_s,{icon:n.jsx(Ls,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:b,pct:b==="active"?y??0:void 0,subText:void 0})]})})}function E8({enabled:e=!1,renderResultPopup:t}={}){const{t:a}=xe.useTranslation(),[r,i]=o.useState(null),[s,l]=o.useState(null),u=y=>{let x=null;y==="noise"?x={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:y==="short"?x={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:y==="long"?x={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:y==="order"&&(x={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),l(x),i(y)},c=o.useCallback(()=>{i(null),l(null)},[]),d=o.useCallback(()=>u("noise"),[]),m=o.useCallback(()=>u("short"),[]),p=o.useCallback(()=>u("long"),[]),C=o.useCallback(()=>u("order"),[]);return e?n.jsxs("div",{className:"debug-result-launcher",children:[n.jsxs("div",{className:"debug-buttons",children:[n.jsx("button",{type:"button",className:"debug-button",onClick:d,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:C,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&s?t?.({score:s.score,contextsLength:s.contextsLength,results:s.results,onReplay:c,onClose:c}):null]}):null}exports.Accordion=eb,exports.ActionCard=w4,exports.Alert=Ub,exports.AppHeader=sb,exports.AudioMeter=Fo,exports.AudioPlayer=ls,exports.Avatar=Qb,exports.Badge=kt,exports.BarChart=zy,exports.BarChartControls=gu,exports.Board=gy,exports.BottomNav=Ll,exports.BrandIdentity=Il,exports.Breadcrumb=ny,exports.BulkBar=Sy,exports.Button=pe,exports.CORE_VERSION=m4,exports.Calendar=c5,exports.CardStep=zc,exports.ChartLegend=So,exports.ChartSection=To,exports.ChartTotal=Ha,exports.Checkbox=du,exports.ChoiceChips=b3,exports.CircleBadge=Vb,exports.CodeBox=Ey,exports.ColorPicker=iy,exports.CompanyMeta=wy,exports.ConfirmPopup=Zc,exports.ConfirmStep=Oc,exports.ConfirmWithTextStep=Hc,exports.ContrastFilterPanel=Y7,exports.CoreScope=B4,exports.CountTile=my,exports.CouponInputPopup=J7,exports.DEFAULT_NOISE_SETTINGS=Ua,exports.DatePicker=Ry,exports.DebugResultLauncher=E8,exports.DescriptionTooltip=Kn,exports.DeviceSideTable=i5,exports.Dialog=fy,exports.Divider=zb,exports.Dropdown=pn,exports.EffectPartyPopper=ys,exports.EffectPartyPopperHost=t8,exports.EmptyState=x4,exports.ErrorState=_4,exports.FILTER_ALL_VALUE=dn,exports.FileUpload=ty,exports.FilterPanel=Dn,exports.FilterSectionInfo=Ra,exports.Footer=y3,exports.GameIntro=Uy,exports.Header=Ol,exports.Icon=at,exports.IconGridMenu=g3,exports.IconRenderer=at,exports.InfoTooltip=Bn,exports.ItemActions=jy,exports.LEVEL_MAX=fa,exports.LINE_CHART_HOVER_DELAY_MS=bu,exports.LandingBottomSticky=x3,exports.LandingHeader=v3,exports.LineChart=qy,exports.ListPopup=Z7,exports.ListenStep=Ic,exports.Loader=Oa,exports.MARKS=fr,exports.MARK_ICON=Ru,exports.MARK_VARIANT=Pu,exports.MediaQueryOverrideContext=Wi,exports.MenuTooltip=Ma,exports.NOISE_RATIO_MAX=za,exports.NOISE_RATIO_STEP=dc,exports.NoisePlayerContext=rs,exports.NoiseSettingsTooltip=Tc,exports.NoticeBox=A4,exports.OrderListStep=Vc,exports.PASS_CARD_BG_VARS=Zn,exports.POS_LABEL=Ou,exports.PROMO_BANNER_BG_COMPONENTS=_l,exports.PROMO_BANNER_BG_OPTIONS=j4,exports.PROMO_BANNER_BG_VARS=Da,exports.Page=Ar,exports.PageTitle=n8,exports.Pagination=cr,exports.Panel=wr,exports.PanelGrid=u7,exports.PanelRow=Sn,exports.PanelRowDevice=l7,exports.PassCard=Zl,exports.PassCardBg=Fb,exports.PassCardBgIHAB=Ib,exports.PassCardBgLeftColorGrid=Ob,exports.PassCardBgTwoCircle=ql,exports.PaymentPlan=Pb,exports.PersonCard=by,exports.PhonemeFilterPanel=K7,exports.PhonemeSelectBlock=U7,exports.Popup=In,exports.ProgressBar=Qy,exports.ProgressIndicator=Nu,exports.PromoBanner=X4,exports.PromoBannerBgDark=il,exports.PromoBannerBgDeep=tl,exports.PromoBannerBgDiagonal=dl,exports.PromoBannerBgDots=ml,exports.PromoBannerBgInstagram=xl,exports.PromoBannerBgMain=Yi,exports.PromoBannerBgNaver=yl,exports.PromoBannerBgOutline=Cl,exports.PromoBannerBgRadial=ul,exports.PromoBannerBgSoft=Xi,exports.PromoBannerBgSoftSub=al,exports.PromoBannerBgSub=Qi,exports.PromoBannerBgSuccess=gl,exports.PromoBannerBgWarm=ol,exports.PublicationCard=vy,exports.Radio=eu,exports.RadioGroup=Wb,exports.Rating=ry,exports.ReportDocument=l8,exports.ReportInfoPanel=u8,exports.RingChart=Ky,exports.SENTENCE_TRAINING_TYPES=es,exports.SearchSummary=Yb,exports.Section=pa,exports.SectionHeadFloat=mu,exports.SectionHeader=_y,exports.SegmentedControl=gn,exports.ShortcutBadge=Ql,exports.SideNav=Fl,exports.Slider=wu,exports.SoundCompass=Hb,exports.SplashLogo=xy,exports.StatChart=Yy,exports.SummaryStrip=s8,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=nu,exports.Table=Oo,exports.TableFilterPanel=Yo,exports.Tabs=Zb,exports.TextBoxTooltip=_r,exports.TextField=Xn,exports.Timeline=yy,exports.Toast=ca,exports.Toggle=cu,exports.Toolbar=Do,exports.Tooltip=cn,exports.TooltipInfo=Bn,exports.TooltipTextBox=_r,exports.TopBanner=J4,exports.TrainingBlock=p5,exports.TrainingBlockButton=ko,exports.TrainingBlockGrid=h5,exports.TrainingCard=h8,exports.TrainingCardGroup=C8,exports.TrainingPagePopup=On,exports.TrainingPagePopupBottom=jc,exports.TrainingPagePopupTitle=Mc,exports.TrainingResultPopup=Gc,exports.TrainingStep=Jn,exports.TrainingStepAudioPlayer=ls,exports.TrainingStepBullet=wc,exports.TrainingStepCard=Nc,exports.TrainingStepConfirm=cs,exports.TrainingStepConfirmWithText=ds,exports.TrainingStepListen=ps,exports.TrainingStepOrderList=ms,exports.TrainingStepTextBox=kc,exports.TrainingStepTitle=Ac,exports.TrainingTooltip=au,exports.TrainingWordCard=Wo,exports.UpdateAlert=m8,exports.WAVE_A_MAX=$3,exports.WAVE_H1_PX=ss,exports.WAVE_HMAX_PX=L3,exports.WORD_LABEL_I18N_KEYS=B5,exports.WORD_TABLE_PAPER=ma,exports.WORD_TYPE_LABEL=Hu,exports.WordDataProvider=o8,exports.WordDataUpdatePopup=N8,exports.WordImageTooltip=Yc,exports.WordSearchFilterPanel=G7,exports.WordSearchResultBlock=W7,exports.WordTable=ha,exports.WordTableBlock=v8,exports.WordTableButton=x8,exports.WordTablePopup=z5,exports.WordTableThumbnail=ed,exports.buildMonthChartData=Fy,exports.cellKey=X5,exports.cellLabel=Z5,exports.cellsForLabels=u3,exports.clearPassCardBgTheme=Nn,exports.clearPromoBannerBgTheme=Kt,exports.closeTrainingPopup=h7,exports.companyTypeLabel=a8,exports.createTrainingScenario=g7,exports.cx=we,exports.deriveNoiseContexts=w7,exports.derivePassCard=Vl,exports.draftValues=C3,exports.effectiveNoiseVolume=ns,exports.effectiveSpeechVolume=mc,exports.expandSlashLabel=Ko,exports.formatDuration=c3,exports.getControlDateRange=Gy,exports.getPayloadTimestamp=Cs,exports.getPromoBannerBgTheme=fo,exports.getSelectedFromPayload=y7,exports.getSelectedText=v7,exports.getStepPayload=Pc,exports.getSteppedPayload=x7,exports.injectPassCardBgTheme=kn,exports.injectPromoBannerBgTheme=Gt,exports.isSelectionCorrect=_7,exports.labelOfCellKey=uc,exports.labelsForSave=Y5,exports.levelToPct=w3,exports.markAfterClick=$u,exports.marksForSave=qo,exports.mergeNoiseSettings=qa,exports.missesByType=o3,exports.monthKeyOf=Va,exports.monthKeyOfDate=jo,exports.nextFocus=t3,exports.nextMisses=r3,exports.noiseElementVolume=as,exports.noiseRatioOf=Wa,exports.pageStartIndexes=Fu,exports.parseMonthKey=ua,exports.passCardBgIhabTheme=Xl,exports.passCardBgLeftColorGridTheme=Jl,exports.passCardBgTwoCircleTheme=Wl,exports.pctToLevel=B3,exports.posLabels=Vu,exports.printWordTable=v5,exports.promoBannerBgDarkTheme=sl,exports.promoBannerBgDeepTheme=el,exports.promoBannerBgDiagonalTheme=cl,exports.promoBannerBgDotsTheme=pl,exports.promoBannerBgInstagramTheme=vl,exports.promoBannerBgMainTheme=Ki,exports.promoBannerBgNaverTheme=bl,exports.promoBannerBgOutlineTheme=hl,exports.promoBannerBgRadialTheme=ll,exports.promoBannerBgSoftSubTheme=nl,exports.promoBannerBgSoftTheme=Zi,exports.promoBannerBgSubTheme=Ji,exports.promoBannerBgSuccessTheme=fl,exports.promoBannerBgWarmTheme=rl,exports.recommendTables=i3,exports.regenerateUnpinned=h3,exports.removeItem=m3,exports.resolveTrainingItems=f7,exports.resolveTrainingPopupMeta=$c,exports.reviewCells=q5,exports.reviewMeta=K5,exports.reviewSetPlan=s3,exports.reviewTableName=G5,exports.scoreKey=Cr,exports.scoreSheetHeader=J5,exports.shouldConfirmDiscard=y5,exports.splitTrainingVariants=C7,exports.summarize=b5,exports.summarizeMisses=a3,exports.tableTrends=e3,exports.toDraft=d3,exports.toTrainingText=b7,exports.togglePin=p3,exports.uncoveredLabels=l3,exports.useAnchoredMenu=ja,exports.useBarChartControl=fu,exports.useCalendarMonth=pu,exports.useComboboxSuggestions=lu,exports.useDiscardGuard=X7,exports.useFitScale=qu,exports.useNoisePlayer=br,exports.useSoundCompassExam=Z4,exports.useToastLifecycle=Au,exports.useWordData=r8,exports.useWordTableDisplaySettings=ic,exports.useWordTablePrint=Qo,exports.waveBarPx=vr,exports.waveBarVal=xr,exports.weakItems=Q5,exports.weekValueOf=Mo,exports.withStepTimes=Rc,exports.wordTypeLabels=zu;