@ihabdevteam/core 0.127.0 → 0.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -0
- package/dist/components.cjs.js +14 -14
- package/dist/components.esm.css +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/i18n.cjs.js +1 -1
- package/dist/ihabdevteam-core.cjs.js +16 -16
- package/dist/ihabdevteam-core.d.ts +9 -1
- package/dist/packages/core/src/components/Header.css +8 -0
- package/dist/packages/core/src/components/Popup/Popup.d.ts +8 -0
- package/dist/packages/core/src/components/Popup/Popup.js +21 -2
- package/dist/packages/core/src/components/SideNav.css +16 -7
- package/dist/packages/core/src/components/SideNav.js +11 -1
- package/dist/packages/core/src/version.d.ts +1 -1
- package/dist/packages/core/src/version.js +1 -1
- package/dist/utils.cjs.js +1 -1
- package/package.json +1 -1
package/dist/components.cjs.js
CHANGED
|
@@ -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 Jl=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},Ql=i.createContext({}),ec=()=>i.useContext(Ql),tc=i.forwardRef(({color:e,size:n,strokeWidth:a,absoluteStrokeWidth:r,className:o="",children:s,iconNode:l,...c},
|
|
31
|
+
*/const Jl=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},Ql=i.createContext({}),ec=()=>i.useContext(Ql),tc=i.forwardRef(({color:e,size:n,strokeWidth:a,absoluteStrokeWidth:r,className:o="",children:s,iconNode:l,...c},u)=>{const{size:d=24,strokeWidth:h=2,absoluteStrokeWidth:p=!1,color:m="currentColor",className:g=""}=ec()??{},C=r??p?Number(a??h)*24/Number(n??d):a??h;return i.createElement("svg",{ref:u,...Sa,width:n??d??Sa.width,height:n??d??Sa.height,stroke:e??m,strokeWidth:C,className:Xr("lucide",g,o),...!s&&!Jl(c)&&{"aria-hidden":"true"},...c},[...l.map(([f,b])=>i.createElement(f,b)),...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.
|
|
@@ -803,9 +803,9 @@
|
|
|
803
803
|
*
|
|
804
804
|
* This source code is licensed under the ISC license.
|
|
805
805
|
* See the LICENSE file in the root directory of this source tree.
|
|
806
|
-
*/const _h=[["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"}]],wh=G("thumbs-up",_h),fo={"alert-triangle":Qr,"align-start-vertical":rc,anchor:Rp,armchair:Ip,"arrow-down":sc,"arrow-left":lc,"arrow-right":uc,"arrow-right-left":pc,"arrow-up-a-z":Op,"audio-lines":mc,baby:Cc,ban:bc,"bar-chart-2":Vp,bell:vc,"book-marked":_c,"book-open":kc,"bow-arrow":Nc,braces:Sc,bug:jc,calendar:po,"calendar-check":Tc,"calendar-days":Lc,camera:Rc,car:qp,"chart-column":Ic,"chart-line":Oc,"chart-pie":Vc,check:eo,"chevron-down":ho,"chevron-left":to,"chevron-right":no,"chevron-up":mo,circle:fh,"clipboard-list":Gc,coffee:Gp,combine:Zc,copy:Xc,"chevrons-left-right-ellipsis":Qc,"credit-card":tu,database:ao,diff:ru,download:ro,ear:iu,edit:cu,"edit-2":du,"edit-3":hu,ellipsis:oo,eraser:Cu,"external-link":bu,eye:vu,"file-text":_u,"flip-horizontal":ku,"folder-open":Nu,"folder-plus":Su,gamepad:ju,"gamepad-2":Zp,gavel:Tu,"git-merge":so,globe:$u,headphones:Pu,heart:Fu,home:Hu,inbox:Xp,info:zu,"key-round":qu,landmark:Gu,layers:Zu,"layout-dashboard":Xu,leaf:Qu,lightbulb:td,link:ad,"link-2":od,"link-2-off":id,list:cd,"list-checks":dd,"list-ordered":hd,"list-tree":Qp,loader:fd,lock:gd,"log-out":yd,mail:xd,"map-pin":wd,menu:yh,"message-circle":Ad,"message-circle-question-mark":Bd,"message-square":Dd,"message-square-more":th,"message-square-text":Ed,minus:ah,"minus-circle":Md,moon:xh,"more-horizontal":oo,package:$d,palette:Pd,"party-popper":Fd,pause:Hd,pencil:zd,phone:qd,play:Gd,"play-circle":Zd,plus:Xd,printer:Qd,"refresh-cw":t1,repeat:a1,replace:o1,rocket:i1,"rotate-ccw":c1,"rotate-cw":d1,salad:h1,"scan-search":f1,search:y1,"circle-alert":io,"alert-circle":io,"check-circle":lo,scissors:x1,"search-x":w1,send:A1,settings:B1,"share-2":oh,"shield-check":D1,"shopping-cart":E1,shuffle:M1,"skip-back":$1,"skip-forward":P1,sparkles:ih,square:F1,star:H1,store:z1,"sun-medium":q1,table:G1,"table-2":Z1,tag:X1,terminal:Q1,"text-cursor-input":tp,"text-initial":ap,"thumbs-up":wh,ticket:op,trash:cp,triangle:gh,"trash-2":ip,"trending-up":dp,"triangle-alert":Qr,trophy:hp,type:ch,unlink:fp,upload:gp,user:Da,"user-plus":vp,"user-round":_p,"user-round-check":kp,users:Np,"users-round":Sp,volume:dh,"volume-2":co,wrench:Ep,x:uo,zap:Lp};function kh(e){return fo[e]??null}const Co=new Set;function Ah(e){return Yr&&!(e in fo)&&!Co.has(e)&&(Co.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 Nh=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 Bh(e){const n=e.toLowerCase();if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")||e.includes("/assets/"))return null;const a=(e.split("/").pop()||"").replace(/\.svg$/,"");return a?Nh(a):null}const go=new Map;function Sh(e){const n=typeof e=="string"?Bh(e):null,a=n?kh(n)??go.get(n)??null:null,[r,o]=i.useState(null);return i.useEffect(()=>{if(!n||a)return;let s=!1;return Ah(n).then(l=>{go.set(n,l),s||o(l)}),()=>{s=!0}},[n,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 bo(e,n){(n==null||n>e.length)&&(n=e.length);for(var a=0,r=Array(n);a<n;a++)r[a]=e[a];return r}function Dh(e){if(Array.isArray(e))return e}function jh(e,n){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,o,s,l,c=[],
|
|
807
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Th(e,n){return Dh(e)||jh(e,n)||Mh(e,n)||Eh()}function Mh(e,n){if(e){if(typeof e=="string")return bo(e,n);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)?bo(e,n):void 0}}const yo=Object.entries,vo=Object.setPrototypeOf,Lh=Object.isFrozen,$h=Object.getPrototypeOf,Rh=Object.getOwnPropertyDescriptor;let it=Object.freeze,ut=Object.seal,Bn=Object.create,xo=typeof Reflect<"u"&&Reflect,ja=xo.apply,Ea=xo.construct;it||(it=function(n){return n}),ut||(ut=function(n){return n}),ja||(ja=function(n,a){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return n.apply(a,o)}),Ea||(Ea=function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return new n(...r)});const yn=st(Array.prototype.forEach),Ph=st(Array.prototype.lastIndexOf),_o=st(Array.prototype.pop),In=st(Array.prototype.push),Ih=st(Array.prototype.splice),Sn=Array.isArray,Fn=st(String.prototype.toLowerCase),Ta=st(String.prototype.toString),wo=st(String.prototype.match),On=st(String.prototype.replace),ko=st(String.prototype.indexOf),Fh=st(String.prototype.trim),Oh=st(Number.prototype.toString),Hh=st(Boolean.prototype.toString),Ao=typeof BigInt>"u"?null:st(BigInt.prototype.toString),No=typeof Symbol>"u"?null:st(Symbol.prototype.toString),Nt=st(Object.prototype.hasOwnProperty),Hn=st(Object.prototype.toString),mt=st(RegExp.prototype.test),vn=Vh(TypeError);function st(e){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return ja(e,n,r)}}function Vh(e){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return Ea(e,a)}}function We(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fn;if(vo&&vo(e,null),!Sn(n))return e;let r=n.length;for(;r--;){let o=n[r];if(typeof o=="string"){const s=a(o);s!==o&&(Lh(n)||(n[r]=s),o=s)}e[o]=!0}return e}function zh(e){for(let n=0;n<e.length;n++)Nt(e,n)||(e[n]=null);return e}function Dt(e){const n=Bn(null);for(const r of yo(e)){var a=Th(r,2);const o=a[0],s=a[1];Nt(e,o)&&(Sn(s)?n[o]=zh(s):s&&typeof s=="object"&&s.constructor===Object?n[o]=Dt(s):n[o]=s)}return n}function Wh(e){switch(typeof e){case"string":return e;case"number":return Oh(e);case"boolean":return Hh(e);case"bigint":return Ao?Ao(e):"0";case"symbol":return No?No(e):"Symbol()";case"undefined":return Hn(e);case"function":case"object":{if(e===null)return Hn(e);const n=e,a=Ot(n,"toString");if(typeof a=="function"){const r=a(n);return typeof r=="string"?r:Hn(r)}return Hn(e)}default:return Hn(e)}}function Ot(e,n){for(;e!==null;){const r=Rh(e,n);if(r){if(r.get)return st(r.get);if(typeof r.value=="function")return st(r.value)}e=$h(e)}function a(){return null}return a}function qh(e){try{return mt(e,""),!0}catch{return!1}}const Bo=it(["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"]),Ma=it(["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"]),La=it(["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"]),Uh=it(["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"]),$a=it(["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"]),Gh=it(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),So=it(["#text"]),Do=it(["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"]),Ra=it(["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"]),jo=it(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ra=it(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Kh=ut(/{{[\w\W]*|^[\w\W]*}}/g),Zh=ut(/<%[\w\W]*|^[\w\W]*%>/g),Yh=ut(/\${[\w\W]*/g),Xh=ut(/^data-[\-\w.\u00B7-\uFFFF]+$/),Jh=ut(/^aria-[\-\w]+$/),Eo=ut(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Qh=ut(/^(?:\w+script|data):/i),em=ut(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),tm=ut(/^html$/i),nm=ut(/^[a-z][.\w]*(-[.\w]+)+$/i),To=ut(/<[/\w!]/g),Mo=ut(/<[/\w]/g),am=ut(/<\/no(script|embed|frames)/i),rm=ut(/\/>/i),jt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Lo=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],om=it(We({},Lo)),sm=(function(){const e={};return yn(Lo,n=>{e[n]=ut(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),it(e)})(),im=function(){return typeof window>"u"?null:window},lm=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";a&&a.hasAttribute(o)&&(r=a.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return n.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},$o=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},rn=function(n,a,r,o){return Nt(n,a)&&Sn(n[a])?We(o.base?Dt(o.base):{},n[a],o.transform):r},Pa=function(n,a,r){const o=Nt(n,a)?n[a]:void 0;return o&&typeof o=="object"?Dt(o):r()};function Ro(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:im();const n=ce=>Ro(ce);if(n.version="3.4.14",n.removed=[],!e||!e.document||e.document.nodeType!==jt.document||!e.Element)return n.isSupported=!1,n;let a=e.document;const r=a,o=r.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,l=e.Node,c=e.Element,d=e.NodeFilter,u=e.NamedNodeMap;u===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const h=e.DOMParser,p=e.trustedTypes,f=c.prototype,g=Ot(f,"cloneNode"),C=Ot(f,"remove"),m=Ot(f,"nextSibling"),v=Ot(f,"childNodes"),b=Ot(f,"parentNode"),w=Ot(f,"shadowRoot"),_=Ot(f,"attributes"),y=l&&l.prototype?Ot(l.prototype,"nodeType"):null,S=l&&l.prototype?Ot(l.prototype,"nodeName"):null,x=l&&l.prototype?Ot(l.prototype,"ownerDocument"):null,A=function(N){return y?y(N):N.nodeType},M=function(N){return S?S(N):N.nodeName};if(typeof s=="function"){const ce=a.createElement("template");ce.content&&ce.content.ownerDocument&&(a=ce.content.ownerDocument)}let k,D="",O,R=!1,j=0;const P=function(){if(j>0)throw vn('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.')},B=function(N){P(),j++;try{return k.createHTML(N)}finally{j--}},F=function(N){P(),j++;try{return k.createScriptURL(N)}finally{j--}},Z=function(){return R||(O=lm(p,o),R=!0),O},Y=a,J=Y.implementation,E=Y.createNodeIterator,$=Y.createDocumentFragment,L=Y.getElementsByTagName,V=r.importNode;let H=$o();n.isSupported=typeof yo=="function"&&typeof b=="function"&&J&&J.createHTMLDocument!==void 0;const X=Kh,I=Zh,U=Yh,q=Xh,le=Jh,de=Qh,Ce=em,ve=nm;let he=Eo,T=null;const W=We({},[...Bo,...Ma,...La,...$a,...So]);let Q=null;const _e=We({},[...Do,...Ra,...jo,...ra]);let ue=Object.seal(Bn(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}})),ie=null,ae=null;const se=Object.seal(Bn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Se=!0,He=!0,Ve=!1,Re=!0,Ee=!1,je=!0,Ae=!1,ze=!1,at=null,ge=null,Pe=!1,$e=!1,Ke=!1,Ze=!1,Ue=!0,Ie=!1;const dt="user-content-";let ct=!0,qe=!1,ot={},Te=null;const Me=We({},["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 tt=null;const ft=We({},["audio","video","img","source","image","track"]);let Ye=null;const Xe=We({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ht="http://www.w3.org/1998/Math/MathML",Et="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let vt=Qe,Tt=!1,Gt=null;const an=We({},[ht,Et,Qe],Ta),It=it(["mi","mo","mn","ms","mtext"]);let zt=We({},It);const Wt=it(["annotation-xml"]);let xt=We({},Wt);const fn=We({},["title","style","font","a","script"]);let _t=null;const Cn=["application/xhtml+xml","text/html"],Kt="text/html";let Ge=null,Mt=null;const wt=a.createElement("form"),Zt=function(N){return N instanceof RegExp||N instanceof Function},Ft=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Mt&&Mt===N)return;(!N||typeof N!="object")&&(N={}),N=Dt(N),_t=Cn.indexOf(N.PARSER_MEDIA_TYPE)===-1?Kt:N.PARSER_MEDIA_TYPE,Ge=_t==="application/xhtml+xml"?Ta:Fn,T=rn(N,"ALLOWED_TAGS",W,{transform:Ge}),Q=rn(N,"ALLOWED_ATTR",_e,{transform:Ge}),Gt=rn(N,"ALLOWED_NAMESPACES",an,{transform:Ta}),Ye=rn(N,"ADD_URI_SAFE_ATTR",Xe,{transform:Ge,base:Xe}),tt=rn(N,"ADD_DATA_URI_TAGS",ft,{transform:Ge,base:ft}),Te=rn(N,"FORBID_CONTENTS",Me,{transform:Ge}),ie=rn(N,"FORBID_TAGS",Dt({}),{transform:Ge}),ae=rn(N,"FORBID_ATTR",Dt({}),{transform:Ge}),ot=Nt(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?Dt(N.USE_PROFILES):N.USE_PROFILES:!1,Se=N.ALLOW_ARIA_ATTR!==!1,He=N.ALLOW_DATA_ATTR!==!1,Ve=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ee=N.SAFE_FOR_TEMPLATES||!1,je=N.SAFE_FOR_XML!==!1,Ae=N.WHOLE_DOCUMENT||!1,$e=N.RETURN_DOM||!1,Ke=N.RETURN_DOM_FRAGMENT||!1,Ze=N.RETURN_TRUSTED_TYPE||!1,Pe=N.FORCE_BODY||!1,Ue=N.SANITIZE_DOM!==!1,Ie=N.SANITIZE_NAMED_PROPS||!1,ct=N.KEEP_CONTENT!==!1,qe=N.IN_PLACE||!1,he=qh(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:Eo,vt=typeof N.NAMESPACE=="string"?N.NAMESPACE:Qe,zt=Pa(N,"MATHML_TEXT_INTEGRATION_POINTS",()=>We({},It)),xt=Pa(N,"HTML_INTEGRATION_POINTS",()=>We({},Wt));const z=Pa(N,"CUSTOM_ELEMENT_HANDLING",()=>Bn(null));if(ue=Bn(null),Nt(z,"tagNameCheck")&&Zt(z.tagNameCheck)&&(ue.tagNameCheck=z.tagNameCheck),Nt(z,"attributeNameCheck")&&Zt(z.attributeNameCheck)&&(ue.attributeNameCheck=z.attributeNameCheck),Nt(z,"allowCustomizedBuiltInElements")&&typeof z.allowCustomizedBuiltInElements=="boolean"&&(ue.allowCustomizedBuiltInElements=z.allowCustomizedBuiltInElements),ut(ue),Ee&&(He=!1),Ke&&($e=!0),ot&&(T=We({},So),Q=Bn(null),ot.html===!0&&(We(T,Bo),We(Q,Do)),ot.svg===!0&&(We(T,Ma),We(Q,Ra),We(Q,ra)),ot.svgFilters===!0&&(We(T,La),We(Q,Ra),We(Q,ra)),ot.mathMl===!0&&(We(T,$a),We(Q,jo),We(Q,ra))),se.tagCheck=null,se.attributeCheck=null,Nt(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?se.tagCheck=N.ADD_TAGS:Sn(N.ADD_TAGS)&&(T===W&&(T=Dt(T)),We(T,N.ADD_TAGS,Ge))),Nt(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?se.attributeCheck=N.ADD_ATTR:Sn(N.ADD_ATTR)&&(Q===_e&&(Q=Dt(Q)),We(Q,N.ADD_ATTR,Ge))),Nt(N,"ADD_FORBID_CONTENTS")&&Sn(N.ADD_FORBID_CONTENTS)&&(Te===Me&&(Te=Dt(Te)),We(Te,N.ADD_FORBID_CONTENTS,Ge)),ct&&(T["#text"]=!0),Ae&&We(T,["html","head","body"]),T.table&&(We(T,["tbody"]),delete ie.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw vn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw vn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const re=k;k=N.TRUSTED_TYPES_POLICY;try{D=B("")}catch(we){throw k=re,we}}else N.TRUSTED_TYPES_POLICY===null?(k=void 0,D=""):(k===void 0&&(k=Z()),k&&typeof D=="string"&&(D=B("")));it&&it(N),Mt=N},Lt=We({},[...Ma,...La,...Uh]),qt=We({},[...$a,...Gh]),oe=function(N,z,re){return z.namespaceURI===Qe?N==="svg":z.namespaceURI===ht?N==="svg"&&(re==="annotation-xml"||zt[re]):!!Lt[N]},me=function(N,z,re){return z.namespaceURI===Qe?N==="math":z.namespaceURI===Et?N==="math"&&xt[re]:!!qt[N]},fe=function(N,z,re){return z.namespaceURI===Et&&!xt[re]||z.namespaceURI===ht&&!zt[re]?!1:!qt[N]&&(fn[N]||!Lt[N])},Ne=function(N){let z=b(N);(!z||!z.tagName)&&(z={namespaceURI:vt,tagName:"template"});const re=Fn(N.tagName),we=Fn(z.tagName);return Gt[N.namespaceURI]?N.namespaceURI===Et?oe(re,z,we):N.namespaceURI===ht?me(re,z,we):N.namespaceURI===Qe?fe(re,z,we):!!(_t==="application/xhtml+xml"&&Gt[N.namespaceURI]):!1},K=function(N){In(n.removed,{element:N});try{b(N).removeChild(N)}catch{if(C(N),!b(N))throw vn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},te=function(N,z,re){try{N.removeAttributeNode(z)}catch{try{N.removeAttribute(re)}catch{}}},be=function(N){ee(N);const z=v(N);if(z){const we=[];yn(z,Be=>{In(we,Be)}),yn(we,Be=>{try{C(Be)}catch{}})}const re=_(N);if(re)for(let we=re.length-1;we>=0;--we){const Be=re[we],Le=Be&&Be.name;typeof Le=="string"&&te(N,Be,Le)}},xe=function(N,z,re){if(!re)try{re=z.getAttributeNode(N)}catch{re=null}In(n.removed,{attribute:re||null,from:z});try{re?z.removeAttributeNode(re):z.removeAttribute(N)}catch{try{z.removeAttribute(N)}catch{}}if(N==="is")if($e||Ke)try{K(z)}catch{}else try{z.setAttribute(N,"")}catch{}},De=function(N){const z=_(N);if(z)for(let re=z.length-1;re>=0;--re){const we=z[re],Be=we&&we.name;typeof Be!="string"||Q[Ge(Be)]||te(N,we,Be)}},ee=function(N){const z=[N];for(;z.length>0;){const re=z.pop();A(re)===jt.element&&De(re);const Be=v(re);if(Be)for(let Le=Be.length-1;Le>=0;--Le)z.push(Be[Le])}},ke=function(N,z){return je?N==="patchsrc"?!0:N==="for"&&z!=="label"&&z!=="output":!1},Fe=function(N){if(!je)return;const z=[N];for(;z.length>0;){const re=z.pop(),we=A(re);if(we===jt.processingInstruction||we===jt.comment&&mt(Mo,re.data)){try{C(re)}catch{}continue}if(we===jt.element){const Le=re,Je=Ge(M(re));try{Le.hasAttribute&&Le.hasAttribute("patchsrc")&&Le.removeAttribute("patchsrc"),Le.hasAttribute&&Le.hasAttribute("for")&&ke("for",Je)&&Le.removeAttribute("for")}catch{}}const Be=v(re);if(Be)for(let Le=Be.length-1;Le>=0;--Le)z.push(Be[Le])}},et=function(N){let z=null,re=null;if(Pe)N="<remove></remove>"+N;else{const Le=wo(N,/^[\r\n\t ]+/);re=Le&&Le[0]}_t==="application/xhtml+xml"&&vt===Qe&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const we=k?B(N):N;if(vt===Qe)try{z=new h().parseFromString(we,_t)}catch{}if(!z||!z.documentElement){z=J.createDocument(vt,"template",null);try{z.documentElement.innerHTML=Tt?D:we}catch{}}const Be=z.body||z.documentElement;return N&&re&&Be.insertBefore(a.createTextNode(re),Be.childNodes[0]||null),vt===Qe?L.call(z,Ae?"html":"body")[0]:Ae?z.documentElement:Be},Ct=function(N){const z=x?x(N):N.ownerDocument;return E.call(z||N,N,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Bt=function(N){return N=On(N,X," "),N=On(N,I," "),N=On(N,U," "),N},$t=function(N){var z;N.normalize();const re=x?x(N):N.ownerDocument,we=E.call(re||N,N,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null);let Be=we.nextNode();for(;Be;)Be.data=Bt(Be.data),Be=we.nextNode();const Le=(z=N.querySelectorAll)===null||z===void 0?void 0:z.call(N,"template");Le&&yn(Le,Je=>{St(Je.content)&&$t(Je.content)})},Rt=function(N){const z=S?S(N):null;return typeof z!="string"||Ge(z)!=="form"?!1:typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||N.attributes!==_(N)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function"||N.nodeType!==y(N)||N.childNodes!==v(N)},St=function(N){if(!y||typeof N!="object"||N===null)return!1;try{return y(N)===jt.documentFragment}catch{return!1}},gn=function(N){if(!y||typeof N!="object"||N===null)return!1;try{return typeof y(N)=="number"}catch{return!1}};function Ut(ce,N,z){ce.length!==0&&yn(ce,re=>{re.call(n,N,z,Mt)})}const ql=function(N,z){return!!(je&&N.hasChildNodes()&&!gn(N.firstElementChild)&&mt(To,N.textContent)&&mt(To,N.innerHTML)||je&&N.namespaceURI===Qe&&om[z]&&(gn(N.firstElementChild)||typeof N.textContent=="string"&&mt(sm[z],N.textContent))||N.nodeType===jt.processingInstruction||je&&N.nodeType===jt.comment&&mt(Mo,N.data))},na=function(N,z){if(N instanceof RegExp)return mt(N,z);if(N instanceof Function){for(var re=arguments.length,we=new Array(re>2?re-2:0),Be=2;Be<re;Be++)we[Be-2]=arguments[Be];return!!N(z,...we)}return!1},Ul=function(N,z,re){if(!ie[z]&&Gr(z)&&na(ue.tagNameCheck,z))return!1;if(ct&&!Te[z]){const we=b(N),Be=v(N);if(Be&&we){const Le=Be.length;for(let Je=Le-1;Je>=0;--Je){const nt=N===re?g(Be[Je],!0):Be[Je];we.insertBefore(nt,m(N))}}}return K(N),!0},zr=function(N,z,re,we){return N.length===0?z:z===re||z===we?Dt(z):z},Wr=function(N,z){return N===z||b(N)!==null?!1:(qe&&ee(N),!0)},qr=function(N,z){if(Ut(H.beforeSanitizeElements,N,null),Wr(N,z))return!0;if(Rt(N))return K(N),!0;const re=Ge(M(N));if(T=zr(H.uponSanitizeElement,T,W,at),Ut(H.uponSanitizeElement,N,{tagName:re,allowedTags:T}),Wr(N,z))return!0;if(ql(N,re))return K(N),!0;if(ie[re]||!(se.tagCheck instanceof Function&&se.tagCheck(re))&&!T[re]){const Be=Ul(N,re,z);return Be===!1&&Ut(H.afterSanitizeElements,N,null),Be}if(A(N)===jt.element&&!Ne(N)||(re==="noscript"||re==="noembed"||re==="noframes")&&mt(am,N.innerHTML))return K(N),!0;if(Ee&&N.nodeType===jt.text){const Be=Bt(N.textContent);N.textContent!==Be&&(In(n.removed,{element:N.cloneNode()}),N.textContent=Be)}return Ut(H.afterSanitizeElements,N,null),!1},Ur=function(N,z,re){if(ae[z]||ke(z,N)||Ue&&(z==="id"||z==="name")&&(re in a||re in wt))return!1;const we=Q[z]||se.attributeCheck instanceof Function&&se.attributeCheck(z,N);return He&&mt(q,z)||Se&&mt(le,z)?!0:we?Ye[z]||mt(he,On(re,Ce,""))||(z==="src"||z==="xlink:href"||z==="href")&&N!=="script"&&ko(re,"data:")===0&&tt[N]||Ve&&!mt(de,On(re,Ce,""))?!0:!re:Gr(N)&&na(ue.tagNameCheck,N)&&na(ue.attributeNameCheck,z,N)||z==="is"&&ue.allowCustomizedBuiltInElements&&na(ue.tagNameCheck,re)},Gl=We({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Gr=function(N){return!Gl[Fn(N)]&&mt(ve,N)},Kl=function(N,z,re,we){if(k&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!re)switch(p.getAttributeType(N,z)){case"TrustedHTML":return B(we);case"TrustedScriptURL":return F(we)}return we},Zl=function(N,z,re,we){try{re?N.setAttributeNS(re,z,we):N.setAttribute(z,we),Rt(N)?K(N):_o(n.removed)}catch{xe(z,N)}},Kr=function(N){Ut(H.beforeSanitizeAttributes,N,null);const z=N.attributes;if(!z||Rt(N))return;Q=zr(H.uponSanitizeAttribute,Q,_e,ge);const re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q,forceKeepAttr:void 0};let we=z.length;const Be=Ge(N.nodeName);for(;we--;){const Le=z[we],Je=Le.name,nt=Le.namespaceURI,kt=Le.value,At=Ge(Je),Na=kt;let gt=Je==="value"?Na:Fh(Na);if(re.attrName=At,re.attrValue=gt,re.keepAttr=!0,re.forceKeepAttr=void 0,Ut(H.uponSanitizeAttribute,N,re),gt=re.attrValue,Ie&&(At==="id"||At==="name")&&ko(gt,dt)!==0&&(xe(Je,N,Le),gt=dt+gt),je&&mt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,gt)){xe(Je,N,Le);continue}if(At==="attributename"&&wo(gt,"href")){xe(Je,N,Le);continue}if(!re.forceKeepAttr){if(!re.keepAttr){xe(Je,N,Le);continue}if(!Re&&mt(rm,gt)){xe(Je,N,Le);continue}if(Ee&&(gt=Bt(gt)),!Ur(Be,At,gt)){xe(Je,N,Le);continue}gt=Kl(Be,At,nt,gt),gt!==Na&&Zl(N,Je,nt,gt)}}Ut(H.afterSanitizeAttributes,N,null)},aa=function(N){let z=null;const re=Ct(N);for(Ut(H.beforeSanitizeShadowDOM,N,null);z=re.nextNode();)if(Ut(H.uponSanitizeShadowNode,z,null),qr(z,N),Kr(z),St(z.content)&&aa(z.content),A(z)===jt.element){const we=w(z);St(we)&&(Aa(we),aa(we))}Ut(H.afterSanitizeShadowDOM,N,null)},Aa=function(N){const z=[{node:N,shadow:null}];for(;z.length>0;){const re=z.pop();if(re.shadow){aa(re.shadow);continue}const we=re.node,Le=A(we)===jt.element,Je=v(we);if(Je)for(let nt=Je.length-1;nt>=0;--nt)z.push({node:Je[nt],shadow:null});if(Le){const nt=S?S(we):null;if(typeof nt=="string"&&Ge(nt)==="template"){const kt=we.content;St(kt)&&z.push({node:kt,shadow:null})}}if(Le){const nt=w(we);St(nt)&&z.push({node:null,shadow:nt},{node:nt,shadow:null})}}};return n.sanitize=function(ce){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=null,re=null,we=null,Be=null;if(Tt=!ce,Tt&&(ce="<!-->"),typeof ce!="string"&&!gn(ce)&&(ce=Wh(ce),typeof ce!="string"))throw vn("dirty is not a string, aborting");if(!n.isSupported)return ce;ze?(T=at,Q=ge):Ft(N),(H.uponSanitizeElement.length>0||H.uponSanitizeAttribute.length>0)&&(T=Dt(T)),H.uponSanitizeAttribute.length>0&&(Q=Dt(Q)),n.removed=[];const Le=qe&&typeof ce!="string"&&gn(ce);if(Le){Fe(ce);const kt=M(ce);if(typeof kt=="string"){const At=Ge(kt);if(!T[At]||ie[At])throw be(ce),vn("root node is forbidden and cannot be sanitized in-place")}if(Rt(ce))throw be(ce),vn("root node is clobbered and cannot be sanitized in-place");try{Aa(ce)}catch(At){throw be(ce),At}}else if(gn(ce))z=et("<!---->"),re=z.ownerDocument.importNode(ce,!0),re.nodeType===jt.element&&re.nodeName==="BODY"||re.nodeName==="HTML"?z=re:z.appendChild(re),Aa(re);else{if(!$e&&!Ee&&!Ae&&ce.indexOf("<")===-1)return k&&Ze?B(ce):ce;if(z=et(ce),!z)return $e?null:Ze?D:""}z&&Pe&&K(z.firstChild);const Je=Le?ce:z;try{const kt=Ct(Je);for(;we=kt.nextNode();)qr(we,Je),Kr(we),St(we.content)&&aa(we.content)}catch(kt){throw Le&&(be(ce),yn(n.removed,At=>{At.element&&ee(At.element)})),kt}if(Le)return yn(n.removed,kt=>{kt.element&&ee(kt.element)}),Ee&&$t(ce),ce;if($e){if(Ee&&$t(z),Ke)for(Be=$.call(z.ownerDocument);z.firstChild;)Be.appendChild(z.firstChild);else Be=z;return(Q.shadowroot||Q.shadowrootmode)&&(Be=V.call(r,Be,!0)),Be}let nt=Ae?z.outerHTML:z.innerHTML;return Ae&&T["!doctype"]&&z.ownerDocument&&z.ownerDocument.doctype&&z.ownerDocument.doctype.name&&mt(tm,z.ownerDocument.doctype.name)&&(nt="<!DOCTYPE "+z.ownerDocument.doctype.name+`>
|
|
808
|
-
`+nt),Ee&&(nt=Bt(nt)),k&&Ze?
|
|
806
|
+
*/const _h=[["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"}]],wh=G("thumbs-up",_h),fo={"alert-triangle":Qr,"align-start-vertical":rc,anchor:Rp,armchair:Ip,"arrow-down":sc,"arrow-left":lc,"arrow-right":uc,"arrow-right-left":pc,"arrow-up-a-z":Op,"audio-lines":mc,baby:Cc,ban:bc,"bar-chart-2":Vp,bell:vc,"book-marked":_c,"book-open":kc,"bow-arrow":Nc,braces:Sc,bug:jc,calendar:po,"calendar-check":Tc,"calendar-days":Lc,camera:Rc,car:qp,"chart-column":Ic,"chart-line":Oc,"chart-pie":Vc,check:eo,"chevron-down":ho,"chevron-left":to,"chevron-right":no,"chevron-up":mo,circle:fh,"clipboard-list":Gc,coffee:Gp,combine:Zc,copy:Xc,"chevrons-left-right-ellipsis":Qc,"credit-card":tu,database:ao,diff:ru,download:ro,ear:iu,edit:cu,"edit-2":du,"edit-3":hu,ellipsis:oo,eraser:Cu,"external-link":bu,eye:vu,"file-text":_u,"flip-horizontal":ku,"folder-open":Nu,"folder-plus":Su,gamepad:ju,"gamepad-2":Zp,gavel:Tu,"git-merge":so,globe:$u,headphones:Pu,heart:Fu,home:Hu,inbox:Xp,info:zu,"key-round":qu,landmark:Gu,layers:Zu,"layout-dashboard":Xu,leaf:Qu,lightbulb:td,link:ad,"link-2":od,"link-2-off":id,list:cd,"list-checks":dd,"list-ordered":hd,"list-tree":Qp,loader:fd,lock:gd,"log-out":yd,mail:xd,"map-pin":wd,menu:yh,"message-circle":Ad,"message-circle-question-mark":Bd,"message-square":Dd,"message-square-more":th,"message-square-text":Ed,minus:ah,"minus-circle":Md,moon:xh,"more-horizontal":oo,package:$d,palette:Pd,"party-popper":Fd,pause:Hd,pencil:zd,phone:qd,play:Gd,"play-circle":Zd,plus:Xd,printer:Qd,"refresh-cw":t1,repeat:a1,replace:o1,rocket:i1,"rotate-ccw":c1,"rotate-cw":d1,salad:h1,"scan-search":f1,search:y1,"circle-alert":io,"alert-circle":io,"check-circle":lo,scissors:x1,"search-x":w1,send:A1,settings:B1,"share-2":oh,"shield-check":D1,"shopping-cart":E1,shuffle:M1,"skip-back":$1,"skip-forward":P1,sparkles:ih,square:F1,star:H1,store:z1,"sun-medium":q1,table:G1,"table-2":Z1,tag:X1,terminal:Q1,"text-cursor-input":tp,"text-initial":ap,"thumbs-up":wh,ticket:op,trash:cp,triangle:gh,"trash-2":ip,"trending-up":dp,"triangle-alert":Qr,trophy:hp,type:ch,unlink:fp,upload:gp,user:Da,"user-plus":vp,"user-round":_p,"user-round-check":kp,users:Np,"users-round":Sp,volume:dh,"volume-2":co,wrench:Ep,x:uo,zap:Lp};function kh(e){return fo[e]??null}const Co=new Set;function Ah(e){return Yr&&!(e in fo)&&!Co.has(e)&&(Co.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 Nh=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 Bh(e){const n=e.toLowerCase();if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")||e.includes("/assets/"))return null;const a=(e.split("/").pop()||"").replace(/\.svg$/,"");return a?Nh(a):null}const go=new Map;function Sh(e){const n=typeof e=="string"?Bh(e):null,a=n?kh(n)??go.get(n)??null:null,[r,o]=i.useState(null);return i.useEffect(()=>{if(!n||a)return;let s=!1;return Ah(n).then(l=>{go.set(n,l),s||o(l)}),()=>{s=!0}},[n,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 bo(e,n){(n==null||n>e.length)&&(n=e.length);for(var a=0,r=Array(n);a<n;a++)r[a]=e[a];return r}function Dh(e){if(Array.isArray(e))return e}function jh(e,n){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,o,s,l,c=[],u=!0,d=!1;try{if(s=(a=a.call(e)).next,n!==0)for(;!(u=(r=s.call(a)).done)&&(c.push(r.value),c.length!==n);u=!0);}catch(h){d=!0,o=h}finally{try{if(!u&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(d)throw o}}return c}}function Eh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
807
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Th(e,n){return Dh(e)||jh(e,n)||Mh(e,n)||Eh()}function Mh(e,n){if(e){if(typeof e=="string")return bo(e,n);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)?bo(e,n):void 0}}const yo=Object.entries,vo=Object.setPrototypeOf,Lh=Object.isFrozen,$h=Object.getPrototypeOf,Rh=Object.getOwnPropertyDescriptor;let it=Object.freeze,ut=Object.seal,Bn=Object.create,xo=typeof Reflect<"u"&&Reflect,ja=xo.apply,Ea=xo.construct;it||(it=function(n){return n}),ut||(ut=function(n){return n}),ja||(ja=function(n,a){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return n.apply(a,o)}),Ea||(Ea=function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return new n(...r)});const yn=st(Array.prototype.forEach),Ph=st(Array.prototype.lastIndexOf),_o=st(Array.prototype.pop),In=st(Array.prototype.push),Ih=st(Array.prototype.splice),Sn=Array.isArray,Fn=st(String.prototype.toLowerCase),Ta=st(String.prototype.toString),wo=st(String.prototype.match),On=st(String.prototype.replace),ko=st(String.prototype.indexOf),Fh=st(String.prototype.trim),Oh=st(Number.prototype.toString),Hh=st(Boolean.prototype.toString),Ao=typeof BigInt>"u"?null:st(BigInt.prototype.toString),No=typeof Symbol>"u"?null:st(Symbol.prototype.toString),Nt=st(Object.prototype.hasOwnProperty),Hn=st(Object.prototype.toString),mt=st(RegExp.prototype.test),vn=Vh(TypeError);function st(e){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return ja(e,n,r)}}function Vh(e){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return Ea(e,a)}}function We(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fn;if(vo&&vo(e,null),!Sn(n))return e;let r=n.length;for(;r--;){let o=n[r];if(typeof o=="string"){const s=a(o);s!==o&&(Lh(n)||(n[r]=s),o=s)}e[o]=!0}return e}function zh(e){for(let n=0;n<e.length;n++)Nt(e,n)||(e[n]=null);return e}function Dt(e){const n=Bn(null);for(const r of yo(e)){var a=Th(r,2);const o=a[0],s=a[1];Nt(e,o)&&(Sn(s)?n[o]=zh(s):s&&typeof s=="object"&&s.constructor===Object?n[o]=Dt(s):n[o]=s)}return n}function Wh(e){switch(typeof e){case"string":return e;case"number":return Oh(e);case"boolean":return Hh(e);case"bigint":return Ao?Ao(e):"0";case"symbol":return No?No(e):"Symbol()";case"undefined":return Hn(e);case"function":case"object":{if(e===null)return Hn(e);const n=e,a=Ot(n,"toString");if(typeof a=="function"){const r=a(n);return typeof r=="string"?r:Hn(r)}return Hn(e)}default:return Hn(e)}}function Ot(e,n){for(;e!==null;){const r=Rh(e,n);if(r){if(r.get)return st(r.get);if(typeof r.value=="function")return st(r.value)}e=$h(e)}function a(){return null}return a}function qh(e){try{return mt(e,""),!0}catch{return!1}}const Bo=it(["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"]),Ma=it(["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"]),La=it(["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"]),Uh=it(["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"]),$a=it(["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"]),Gh=it(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),So=it(["#text"]),Do=it(["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"]),Ra=it(["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"]),jo=it(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ra=it(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Kh=ut(/{{[\w\W]*|^[\w\W]*}}/g),Zh=ut(/<%[\w\W]*|^[\w\W]*%>/g),Yh=ut(/\${[\w\W]*/g),Xh=ut(/^data-[\-\w.\u00B7-\uFFFF]+$/),Jh=ut(/^aria-[\-\w]+$/),Eo=ut(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Qh=ut(/^(?:\w+script|data):/i),em=ut(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),tm=ut(/^html$/i),nm=ut(/^[a-z][.\w]*(-[.\w]+)+$/i),To=ut(/<[/\w!]/g),Mo=ut(/<[/\w]/g),am=ut(/<\/no(script|embed|frames)/i),rm=ut(/\/>/i),jt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Lo=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],om=it(We({},Lo)),sm=(function(){const e={};return yn(Lo,n=>{e[n]=ut(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),it(e)})(),im=function(){return typeof window>"u"?null:window},lm=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";a&&a.hasAttribute(o)&&(r=a.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return n.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},$o=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},rn=function(n,a,r,o){return Nt(n,a)&&Sn(n[a])?We(o.base?Dt(o.base):{},n[a],o.transform):r},Pa=function(n,a,r){const o=Nt(n,a)?n[a]:void 0;return o&&typeof o=="object"?Dt(o):r()};function Ro(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:im();const n=ce=>Ro(ce);if(n.version="3.4.14",n.removed=[],!e||!e.document||e.document.nodeType!==jt.document||!e.Element)return n.isSupported=!1,n;let a=e.document;const r=a,o=r.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const h=e.DOMParser,p=e.trustedTypes,m=c.prototype,g=Ot(m,"cloneNode"),C=Ot(m,"remove"),f=Ot(m,"nextSibling"),b=Ot(m,"childNodes"),y=Ot(m,"parentNode"),w=Ot(m,"shadowRoot"),_=Ot(m,"attributes"),v=l&&l.prototype?Ot(l.prototype,"nodeType"):null,B=l&&l.prototype?Ot(l.prototype,"nodeName"):null,x=l&&l.prototype?Ot(l.prototype,"ownerDocument"):null,A=function(N){return v?v(N):N.nodeType},M=function(N){return B?B(N):N.nodeName};if(typeof s=="function"){const ce=a.createElement("template");ce.content&&ce.content.ownerDocument&&(a=ce.content.ownerDocument)}let k,j="",H,R=!1,E=0;const P=function(){if(E>0)throw vn('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.')},D=function(N){P(),E++;try{return k.createHTML(N)}finally{E--}},z=function(N){P(),E++;try{return k.createScriptURL(N)}finally{E--}},Z=function(){return R||(H=lm(p,o),R=!0),H},Y=a,J=Y.implementation,S=Y.createNodeIterator,L=Y.createDocumentFragment,$=Y.getElementsByTagName,F=r.importNode;let O=$o();n.isSupported=typeof yo=="function"&&typeof y=="function"&&J&&J.createHTMLDocument!==void 0;const X=Kh,I=Zh,U=Yh,q=Xh,le=Jh,de=Qh,Ce=em,ve=nm;let he=Eo,T=null;const W=We({},[...Bo,...Ma,...La,...$a,...So]);let Q=null;const _e=We({},[...Do,...Ra,...jo,...ra]);let ue=Object.seal(Bn(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}})),ie=null,ae=null;const se=Object.seal(Bn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Se=!0,He=!0,Ve=!1,Re=!0,Ee=!1,je=!0,Ae=!1,ze=!1,at=null,ge=null,Pe=!1,$e=!1,Ke=!1,Ze=!1,Ue=!0,Ie=!1;const dt="user-content-";let ct=!0,qe=!1,ot={},Te=null;const Me=We({},["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 tt=null;const ft=We({},["audio","video","img","source","image","track"]);let Ye=null;const Xe=We({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ht="http://www.w3.org/1998/Math/MathML",Et="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let vt=Qe,Tt=!1,Gt=null;const an=We({},[ht,Et,Qe],Ta),It=it(["mi","mo","mn","ms","mtext"]);let zt=We({},It);const Wt=it(["annotation-xml"]);let xt=We({},Wt);const fn=We({},["title","style","font","a","script"]);let _t=null;const Cn=["application/xhtml+xml","text/html"],Kt="text/html";let Ge=null,Mt=null;const wt=a.createElement("form"),Zt=function(N){return N instanceof RegExp||N instanceof Function},Ft=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Mt&&Mt===N)return;(!N||typeof N!="object")&&(N={}),N=Dt(N),_t=Cn.indexOf(N.PARSER_MEDIA_TYPE)===-1?Kt:N.PARSER_MEDIA_TYPE,Ge=_t==="application/xhtml+xml"?Ta:Fn,T=rn(N,"ALLOWED_TAGS",W,{transform:Ge}),Q=rn(N,"ALLOWED_ATTR",_e,{transform:Ge}),Gt=rn(N,"ALLOWED_NAMESPACES",an,{transform:Ta}),Ye=rn(N,"ADD_URI_SAFE_ATTR",Xe,{transform:Ge,base:Xe}),tt=rn(N,"ADD_DATA_URI_TAGS",ft,{transform:Ge,base:ft}),Te=rn(N,"FORBID_CONTENTS",Me,{transform:Ge}),ie=rn(N,"FORBID_TAGS",Dt({}),{transform:Ge}),ae=rn(N,"FORBID_ATTR",Dt({}),{transform:Ge}),ot=Nt(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?Dt(N.USE_PROFILES):N.USE_PROFILES:!1,Se=N.ALLOW_ARIA_ATTR!==!1,He=N.ALLOW_DATA_ATTR!==!1,Ve=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ee=N.SAFE_FOR_TEMPLATES||!1,je=N.SAFE_FOR_XML!==!1,Ae=N.WHOLE_DOCUMENT||!1,$e=N.RETURN_DOM||!1,Ke=N.RETURN_DOM_FRAGMENT||!1,Ze=N.RETURN_TRUSTED_TYPE||!1,Pe=N.FORCE_BODY||!1,Ue=N.SANITIZE_DOM!==!1,Ie=N.SANITIZE_NAMED_PROPS||!1,ct=N.KEEP_CONTENT!==!1,qe=N.IN_PLACE||!1,he=qh(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:Eo,vt=typeof N.NAMESPACE=="string"?N.NAMESPACE:Qe,zt=Pa(N,"MATHML_TEXT_INTEGRATION_POINTS",()=>We({},It)),xt=Pa(N,"HTML_INTEGRATION_POINTS",()=>We({},Wt));const V=Pa(N,"CUSTOM_ELEMENT_HANDLING",()=>Bn(null));if(ue=Bn(null),Nt(V,"tagNameCheck")&&Zt(V.tagNameCheck)&&(ue.tagNameCheck=V.tagNameCheck),Nt(V,"attributeNameCheck")&&Zt(V.attributeNameCheck)&&(ue.attributeNameCheck=V.attributeNameCheck),Nt(V,"allowCustomizedBuiltInElements")&&typeof V.allowCustomizedBuiltInElements=="boolean"&&(ue.allowCustomizedBuiltInElements=V.allowCustomizedBuiltInElements),ut(ue),Ee&&(He=!1),Ke&&($e=!0),ot&&(T=We({},So),Q=Bn(null),ot.html===!0&&(We(T,Bo),We(Q,Do)),ot.svg===!0&&(We(T,Ma),We(Q,Ra),We(Q,ra)),ot.svgFilters===!0&&(We(T,La),We(Q,Ra),We(Q,ra)),ot.mathMl===!0&&(We(T,$a),We(Q,jo),We(Q,ra))),se.tagCheck=null,se.attributeCheck=null,Nt(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?se.tagCheck=N.ADD_TAGS:Sn(N.ADD_TAGS)&&(T===W&&(T=Dt(T)),We(T,N.ADD_TAGS,Ge))),Nt(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?se.attributeCheck=N.ADD_ATTR:Sn(N.ADD_ATTR)&&(Q===_e&&(Q=Dt(Q)),We(Q,N.ADD_ATTR,Ge))),Nt(N,"ADD_FORBID_CONTENTS")&&Sn(N.ADD_FORBID_CONTENTS)&&(Te===Me&&(Te=Dt(Te)),We(Te,N.ADD_FORBID_CONTENTS,Ge)),ct&&(T["#text"]=!0),Ae&&We(T,["html","head","body"]),T.table&&(We(T,["tbody"]),delete ie.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw vn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw vn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const re=k;k=N.TRUSTED_TYPES_POLICY;try{j=D("")}catch(we){throw k=re,we}}else N.TRUSTED_TYPES_POLICY===null?(k=void 0,j=""):(k===void 0&&(k=Z()),k&&typeof j=="string"&&(j=D("")));it&&it(N),Mt=N},Lt=We({},[...Ma,...La,...Uh]),qt=We({},[...$a,...Gh]),oe=function(N,V,re){return V.namespaceURI===Qe?N==="svg":V.namespaceURI===ht?N==="svg"&&(re==="annotation-xml"||zt[re]):!!Lt[N]},me=function(N,V,re){return V.namespaceURI===Qe?N==="math":V.namespaceURI===Et?N==="math"&&xt[re]:!!qt[N]},fe=function(N,V,re){return V.namespaceURI===Et&&!xt[re]||V.namespaceURI===ht&&!zt[re]?!1:!qt[N]&&(fn[N]||!Lt[N])},Ne=function(N){let V=y(N);(!V||!V.tagName)&&(V={namespaceURI:vt,tagName:"template"});const re=Fn(N.tagName),we=Fn(V.tagName);return Gt[N.namespaceURI]?N.namespaceURI===Et?oe(re,V,we):N.namespaceURI===ht?me(re,V,we):N.namespaceURI===Qe?fe(re,V,we):!!(_t==="application/xhtml+xml"&&Gt[N.namespaceURI]):!1},K=function(N){In(n.removed,{element:N});try{y(N).removeChild(N)}catch{if(C(N),!y(N))throw vn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},te=function(N,V,re){try{N.removeAttributeNode(V)}catch{try{N.removeAttribute(re)}catch{}}},be=function(N){ee(N);const V=b(N);if(V){const we=[];yn(V,Be=>{In(we,Be)}),yn(we,Be=>{try{C(Be)}catch{}})}const re=_(N);if(re)for(let we=re.length-1;we>=0;--we){const Be=re[we],Le=Be&&Be.name;typeof Le=="string"&&te(N,Be,Le)}},xe=function(N,V,re){if(!re)try{re=V.getAttributeNode(N)}catch{re=null}In(n.removed,{attribute:re||null,from:V});try{re?V.removeAttributeNode(re):V.removeAttribute(N)}catch{try{V.removeAttribute(N)}catch{}}if(N==="is")if($e||Ke)try{K(V)}catch{}else try{V.setAttribute(N,"")}catch{}},De=function(N){const V=_(N);if(V)for(let re=V.length-1;re>=0;--re){const we=V[re],Be=we&&we.name;typeof Be!="string"||Q[Ge(Be)]||te(N,we,Be)}},ee=function(N){const V=[N];for(;V.length>0;){const re=V.pop();A(re)===jt.element&&De(re);const Be=b(re);if(Be)for(let Le=Be.length-1;Le>=0;--Le)V.push(Be[Le])}},ke=function(N,V){return je?N==="patchsrc"?!0:N==="for"&&V!=="label"&&V!=="output":!1},Fe=function(N){if(!je)return;const V=[N];for(;V.length>0;){const re=V.pop(),we=A(re);if(we===jt.processingInstruction||we===jt.comment&&mt(Mo,re.data)){try{C(re)}catch{}continue}if(we===jt.element){const Le=re,Je=Ge(M(re));try{Le.hasAttribute&&Le.hasAttribute("patchsrc")&&Le.removeAttribute("patchsrc"),Le.hasAttribute&&Le.hasAttribute("for")&&ke("for",Je)&&Le.removeAttribute("for")}catch{}}const Be=b(re);if(Be)for(let Le=Be.length-1;Le>=0;--Le)V.push(Be[Le])}},et=function(N){let V=null,re=null;if(Pe)N="<remove></remove>"+N;else{const Le=wo(N,/^[\r\n\t ]+/);re=Le&&Le[0]}_t==="application/xhtml+xml"&&vt===Qe&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const we=k?D(N):N;if(vt===Qe)try{V=new h().parseFromString(we,_t)}catch{}if(!V||!V.documentElement){V=J.createDocument(vt,"template",null);try{V.documentElement.innerHTML=Tt?j:we}catch{}}const Be=V.body||V.documentElement;return N&&re&&Be.insertBefore(a.createTextNode(re),Be.childNodes[0]||null),vt===Qe?$.call(V,Ae?"html":"body")[0]:Ae?V.documentElement:Be},Ct=function(N){const V=x?x(N):N.ownerDocument;return S.call(V||N,N,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Bt=function(N){return N=On(N,X," "),N=On(N,I," "),N=On(N,U," "),N},$t=function(N){var V;N.normalize();const re=x?x(N):N.ownerDocument,we=S.call(re||N,N,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Be=we.nextNode();for(;Be;)Be.data=Bt(Be.data),Be=we.nextNode();const Le=(V=N.querySelectorAll)===null||V===void 0?void 0:V.call(N,"template");Le&&yn(Le,Je=>{St(Je.content)&&$t(Je.content)})},Rt=function(N){const V=B?B(N):null;return typeof V!="string"||Ge(V)!=="form"?!1:typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||N.attributes!==_(N)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function"||N.nodeType!==v(N)||N.childNodes!==b(N)},St=function(N){if(!v||typeof N!="object"||N===null)return!1;try{return v(N)===jt.documentFragment}catch{return!1}},gn=function(N){if(!v||typeof N!="object"||N===null)return!1;try{return typeof v(N)=="number"}catch{return!1}};function Ut(ce,N,V){ce.length!==0&&yn(ce,re=>{re.call(n,N,V,Mt)})}const ql=function(N,V){return!!(je&&N.hasChildNodes()&&!gn(N.firstElementChild)&&mt(To,N.textContent)&&mt(To,N.innerHTML)||je&&N.namespaceURI===Qe&&om[V]&&(gn(N.firstElementChild)||typeof N.textContent=="string"&&mt(sm[V],N.textContent))||N.nodeType===jt.processingInstruction||je&&N.nodeType===jt.comment&&mt(Mo,N.data))},na=function(N,V){if(N instanceof RegExp)return mt(N,V);if(N instanceof Function){for(var re=arguments.length,we=new Array(re>2?re-2:0),Be=2;Be<re;Be++)we[Be-2]=arguments[Be];return!!N(V,...we)}return!1},Ul=function(N,V,re){if(!ie[V]&&Gr(V)&&na(ue.tagNameCheck,V))return!1;if(ct&&!Te[V]){const we=y(N),Be=b(N);if(Be&&we){const Le=Be.length;for(let Je=Le-1;Je>=0;--Je){const nt=N===re?g(Be[Je],!0):Be[Je];we.insertBefore(nt,f(N))}}}return K(N),!0},zr=function(N,V,re,we){return N.length===0?V:V===re||V===we?Dt(V):V},Wr=function(N,V){return N===V||y(N)!==null?!1:(qe&&ee(N),!0)},qr=function(N,V){if(Ut(O.beforeSanitizeElements,N,null),Wr(N,V))return!0;if(Rt(N))return K(N),!0;const re=Ge(M(N));if(T=zr(O.uponSanitizeElement,T,W,at),Ut(O.uponSanitizeElement,N,{tagName:re,allowedTags:T}),Wr(N,V))return!0;if(ql(N,re))return K(N),!0;if(ie[re]||!(se.tagCheck instanceof Function&&se.tagCheck(re))&&!T[re]){const Be=Ul(N,re,V);return Be===!1&&Ut(O.afterSanitizeElements,N,null),Be}if(A(N)===jt.element&&!Ne(N)||(re==="noscript"||re==="noembed"||re==="noframes")&&mt(am,N.innerHTML))return K(N),!0;if(Ee&&N.nodeType===jt.text){const Be=Bt(N.textContent);N.textContent!==Be&&(In(n.removed,{element:N.cloneNode()}),N.textContent=Be)}return Ut(O.afterSanitizeElements,N,null),!1},Ur=function(N,V,re){if(ae[V]||ke(V,N)||Ue&&(V==="id"||V==="name")&&(re in a||re in wt))return!1;const we=Q[V]||se.attributeCheck instanceof Function&&se.attributeCheck(V,N);return He&&mt(q,V)||Se&&mt(le,V)?!0:we?Ye[V]||mt(he,On(re,Ce,""))||(V==="src"||V==="xlink:href"||V==="href")&&N!=="script"&&ko(re,"data:")===0&&tt[N]||Ve&&!mt(de,On(re,Ce,""))?!0:!re:Gr(N)&&na(ue.tagNameCheck,N)&&na(ue.attributeNameCheck,V,N)||V==="is"&&ue.allowCustomizedBuiltInElements&&na(ue.tagNameCheck,re)},Gl=We({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Gr=function(N){return!Gl[Fn(N)]&&mt(ve,N)},Kl=function(N,V,re,we){if(k&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!re)switch(p.getAttributeType(N,V)){case"TrustedHTML":return D(we);case"TrustedScriptURL":return z(we)}return we},Zl=function(N,V,re,we){try{re?N.setAttributeNS(re,V,we):N.setAttribute(V,we),Rt(N)?K(N):_o(n.removed)}catch{xe(V,N)}},Kr=function(N){Ut(O.beforeSanitizeAttributes,N,null);const V=N.attributes;if(!V||Rt(N))return;Q=zr(O.uponSanitizeAttribute,Q,_e,ge);const re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q,forceKeepAttr:void 0};let we=V.length;const Be=Ge(N.nodeName);for(;we--;){const Le=V[we],Je=Le.name,nt=Le.namespaceURI,kt=Le.value,At=Ge(Je),Na=kt;let gt=Je==="value"?Na:Fh(Na);if(re.attrName=At,re.attrValue=gt,re.keepAttr=!0,re.forceKeepAttr=void 0,Ut(O.uponSanitizeAttribute,N,re),gt=re.attrValue,Ie&&(At==="id"||At==="name")&&ko(gt,dt)!==0&&(xe(Je,N,Le),gt=dt+gt),je&&mt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,gt)){xe(Je,N,Le);continue}if(At==="attributename"&&wo(gt,"href")){xe(Je,N,Le);continue}if(!re.forceKeepAttr){if(!re.keepAttr){xe(Je,N,Le);continue}if(!Re&&mt(rm,gt)){xe(Je,N,Le);continue}if(Ee&&(gt=Bt(gt)),!Ur(Be,At,gt)){xe(Je,N,Le);continue}gt=Kl(Be,At,nt,gt),gt!==Na&&Zl(N,Je,nt,gt)}}Ut(O.afterSanitizeAttributes,N,null)},aa=function(N){let V=null;const re=Ct(N);for(Ut(O.beforeSanitizeShadowDOM,N,null);V=re.nextNode();)if(Ut(O.uponSanitizeShadowNode,V,null),qr(V,N),Kr(V),St(V.content)&&aa(V.content),A(V)===jt.element){const we=w(V);St(we)&&(Aa(we),aa(we))}Ut(O.afterSanitizeShadowDOM,N,null)},Aa=function(N){const V=[{node:N,shadow:null}];for(;V.length>0;){const re=V.pop();if(re.shadow){aa(re.shadow);continue}const we=re.node,Le=A(we)===jt.element,Je=b(we);if(Je)for(let nt=Je.length-1;nt>=0;--nt)V.push({node:Je[nt],shadow:null});if(Le){const nt=B?B(we):null;if(typeof nt=="string"&&Ge(nt)==="template"){const kt=we.content;St(kt)&&V.push({node:kt,shadow:null})}}if(Le){const nt=w(we);St(nt)&&V.push({node:null,shadow:nt},{node:nt,shadow:null})}}};return n.sanitize=function(ce){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=null,re=null,we=null,Be=null;if(Tt=!ce,Tt&&(ce="<!-->"),typeof ce!="string"&&!gn(ce)&&(ce=Wh(ce),typeof ce!="string"))throw vn("dirty is not a string, aborting");if(!n.isSupported)return ce;ze?(T=at,Q=ge):Ft(N),(O.uponSanitizeElement.length>0||O.uponSanitizeAttribute.length>0)&&(T=Dt(T)),O.uponSanitizeAttribute.length>0&&(Q=Dt(Q)),n.removed=[];const Le=qe&&typeof ce!="string"&&gn(ce);if(Le){Fe(ce);const kt=M(ce);if(typeof kt=="string"){const At=Ge(kt);if(!T[At]||ie[At])throw be(ce),vn("root node is forbidden and cannot be sanitized in-place")}if(Rt(ce))throw be(ce),vn("root node is clobbered and cannot be sanitized in-place");try{Aa(ce)}catch(At){throw be(ce),At}}else if(gn(ce))V=et("<!---->"),re=V.ownerDocument.importNode(ce,!0),re.nodeType===jt.element&&re.nodeName==="BODY"||re.nodeName==="HTML"?V=re:V.appendChild(re),Aa(re);else{if(!$e&&!Ee&&!Ae&&ce.indexOf("<")===-1)return k&&Ze?D(ce):ce;if(V=et(ce),!V)return $e?null:Ze?j:""}V&&Pe&&K(V.firstChild);const Je=Le?ce:V;try{const kt=Ct(Je);for(;we=kt.nextNode();)qr(we,Je),Kr(we),St(we.content)&&aa(we.content)}catch(kt){throw Le&&(be(ce),yn(n.removed,At=>{At.element&&ee(At.element)})),kt}if(Le)return yn(n.removed,kt=>{kt.element&&ee(kt.element)}),Ee&&$t(ce),ce;if($e){if(Ee&&$t(V),Ke)for(Be=L.call(V.ownerDocument);V.firstChild;)Be.appendChild(V.firstChild);else Be=V;return(Q.shadowroot||Q.shadowrootmode)&&(Be=F.call(r,Be,!0)),Be}let nt=Ae?V.outerHTML:V.innerHTML;return Ae&&T["!doctype"]&&V.ownerDocument&&V.ownerDocument.doctype&&V.ownerDocument.doctype.name&&mt(tm,V.ownerDocument.doctype.name)&&(nt="<!DOCTYPE "+V.ownerDocument.doctype.name+`>
|
|
808
|
+
`+nt),Ee&&(nt=Bt(nt)),k&&Ze?D(nt):nt},n.setConfig=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ft(ce),ze=!0,at=T,ge=Q},n.clearConfig=function(){Mt=null,ze=!1,at=null,ge=null,k=H,j=""},n.isValidAttribute=function(ce,N,V){Mt||Ft({});const re=Ge(ce),we=Ge(N);return Ur(re,we,V)},n.addHook=function(ce,N){typeof N=="function"&&Nt(O,ce)&&In(O[ce],N)},n.removeHook=function(ce,N){if(Nt(O,ce)){if(N!==void 0){const V=Ph(O[ce],N);return V===-1?void 0:Ih(O[ce],V,1)[0]}return _o(O[ce])}},n.removeHooks=function(ce){Nt(O,ce)&&(O[ce]=[])},n.removeAllHooks=function(){O=$o()},n}var cm=Ro();const um=/^(?:[a-z]+:)?\/\//i;let dm="";function pm(){return dm}function Ia(e){const n=String(e||"").trim();if(!n)return"";if(um.test(n)||n.startsWith("data:")||n.startsWith("blob:"))return n;const a=n.startsWith("/")?n:`/${n}`,r=pm();return r?`${r}${a}`:a}const Po="__ihab_core_storage_resolvers__";function Vn(){return globalThis[Po]??null}function hm(e){globalThis[Po]=e}let Io=class extends Error{constructor(n){super(`
|
|
809
809
|
[ihabdevteam-core] ${n}() \uD638\uCD9C \uC2E4\uD328 \u2014 configureStorage()\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
|
|
810
810
|
|
|
811
811
|
\uC571 \uCD08\uAE30\uD654 \uC2DC\uC810(main.tsx \uB4F1)\uC5D0 \uC544\uB798\uC640 \uAC19\uC774 \uD55C \uBC88 \uD638\uCD9C\uD558\uC138\uC694:
|
|
@@ -824,19 +824,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
824
824
|
\uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
|
|
825
825
|
npm install @supabase/supabase-js
|
|
826
826
|
pnpm add @supabase/supabase-js
|
|
827
|
-
`),this.name="StorageNotConfiguredError"}};function mm(e){hm(e)}function Fo(e,n){if(!e)return null;const a=Vn();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function Oo(e){if(!e)return null;const n=Vn();if(!n)throw new Io("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function Ho(e){const n=Vn();if(!n)throw new Io("downloadSound");return n.download(e)}function fm(){return Vn()?.noiseBaseUrl??"/sounds/noise"}function Vo(){const e=Number(Vn()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}const zo="__ihab_core_tts_config__";function Fa(){return globalThis[zo]?.urlResolver??null}function Cm(){return globalThis[zo]?.fallbackUrlResolver??null}const gm="__ihab_core_pronunciation_resolver__";function bm(){return globalThis[gm]??null}let on=null;const zn=new WeakMap,Oa=new WeakMap,Ha=new WeakMap;let Wo=!1;const qo=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function ym(){if(Wo||typeof document>"u")return;Wo=!0;const e=()=>{try{on&&on.state!=="running"&&on.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function Uo(){if(on)return on;try{const e=window.AudioContext||window.webkitAudioContext;return e?(on=new e,ym(),on):null}catch{return null}}function Va(){try{on?.resume()}catch{}}function za(e,n){const a=zn.get(n);if(a)return a;try{const r=e.createMediaElementSource(n),o=e.createGain(),s=e.createAnalyser();s.fftSize=1024,s.smoothingTimeConstant=.6,o.gain.value=qo(Oa.get(n)??n.volume),r.connect(o),o.connect(s),o.connect(e.destination);try{n.volume=1}catch{}const l={gain:o,analyser:s};return zn.set(n,l),l}catch{return null}}function oa(e){if(!e)return Promise.resolve(null);const n=zn.get(e);if(n)return Promise.resolve(n.analyser);const a=Uo();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(za(a,e)?.analyser??null);const r=Ha.get(e);if(r)return r;const o=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?za(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Ha.delete(e)});return Ha.set(e,o),o}function vm(e){if(!e)return null;const n=zn.get(e);if(n)return n.analyser;const a=Uo();return a?a.state==="running"?za(a,e)?.analyser??null:(oa(e),null):null}function sn(e,n){const a=qo(n);Oa.set(e,a);const r=zn.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const o=r.gain.gain;try{const s=r.gain.context.currentTime;o.cancelScheduledValues(s),o.setTargetAtTime(a,s,.01)}catch{try{o.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function sa(e){return Oa.get(e)??e.volume}function xm(e,n){e.getFloatTimeDomainData(n);let a=0;for(let r=0;r<n.length;r++){const o=n[r];a+=o*o}return Math.sqrt(a/n.length)}const _m="__ihab_core_image_config__";function Dn(){return globalThis[_m]??null}const Go="word_image_existence_map_v1";let xn=null;const ia=new Map;function wm(){if(xn)return xn;try{const e=typeof localStorage<"u"?localStorage.getItem(Go):null;xn=e?JSON.parse(e):{}}catch{xn={}}return xn}let Wa=null;function km(){Wa||(Wa=setTimeout(()=>{Wa=null;try{typeof localStorage<"u"&&xn&&localStorage.setItem(Go,JSON.stringify(xn))}catch{}},200))}function Am(e,n){return`${e}_${n??1}`}async function Ko(e,n){const a=wm(),r=Am(e,n);if(r in a)return a[r];if(ia.has(r))return ia.get(r);const o=Dn();if(!o)return!1;const s=o(e,n);if(!s)return!1;const l=fetch(s,{method:"HEAD",signal:AbortSignal.timeout(8e3)}).then(c=>c.ok).catch(()=>!1).then(c=>(a[r]=c,km(),ia.delete(r),c));return ia.set(r,l),l}const Zo=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],Yo=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],Nm=["","\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 Wn(e){if(!e)return null;const n=e.charCodeAt(0)-44032;return n<0||n>=11172?null:{cho:Math.floor(n/588),jung:Math.floor(n%588/28),jong:n%28}}function Bm(e){const n=Wn(e[0]||"");return n?Zo[n.cho]:""}function Sm(e,n){if(!n)return!0;const a=[...n],r=c=>Zo.includes(c),o=c=>Yo.includes(c),s=a.map(c=>r(c)?"cho":o(c)?"jung":Wn(c)?"syl":"other");if(s.includes("other"))return e.includes(n);const l=[...e];for(let c=0;c+a.length<=l.length;c++){let d=!0;for(let u=0;u<a.length;u++){const h=l[c+u],p=s[u];if(p==="cho"){if(Bm(h)!==a[u]){d=!1;break}}else if(p==="jung"){const f=Wn(h);if(!f||Yo[f.jung]!==a[u]){d=!1;break}}else{const f=Wn(a[u]);if(f&&f.jong===0){const g=Wn(h);if(!g||g.cho!==f.cho||g.jung!==f.jung){d=!1;break}}else if(h!==a[u]){d=!1;break}}}if(d)return!0}return!1}const Dm={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(Dm).map(([e,n])=>[n.join(""),Nm[Number(e)]]));const jm="word_pair_index_v2",Em="word_pair_index_sig_v2";let la=null;function Tm(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(jm),n=localStorage.getItem(Em);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function Mm(){if(la)return la;const e=Tm();return e?(la=e.index,e.sig,la):null}const Lm={\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"}},qa=/[ㄱ-ㅎ]/,$m=/[ㅏ-ㅣ]/;function Xo(e){for(let n=e.length-1;n>=0;n--){const a=e[n],r=a.charCodeAt(0);if(r>=44032&&r<=55203||qa.test(a)||$m.test(a))return a}return null}function Rm(e){const n=Xo(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":qa.test(n)?"\uC774":"\uAC00"}function Pm(e){return`${e}${Rm(e)}`}function Im(e){const n=Xo(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":qa.test(n)?"\uC744":"\uB97C"}function Fm(e){return`${e}${Im(e)}`}function Om(e,n,a){const r=e.slice(),[o]=r.splice(n,1);return r.splice(a,0,o),r}function qn(e,n=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const o=Math.floor(n()*(r+1));[a[r],a[o]]=[a[o],a[r]]}return a}function Jo(e,n="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"){if(e instanceof Error)return e.message||n;if(typeof e=="string")return e||n;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 n}const Hm="__ihab_core_word_pool__";function Vm(){return globalThis[Hm]??null}const Qo=globalThis;function es(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function zm(e){es("time",()=>Qo.__ihabTrainingTimeLogger?.(e))}function Wm(e){es("completion",()=>Qo.__ihabTrainingCompletionLogger?.(e))}function Ht(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function qm(e){for(const n of["correct","isCorrect","heard","judgement"])if(typeof e[n]=="boolean")return e[n];return e.score===1?!0:e.score===0?!1:null}function Um(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:Ht(r.contextCode)??Ht(r.itemId)??Ht(r.itemCode)??Ht(r.id),question:Ht(r.question)??Ht(r.sentence)??Ht(r.word)??Ht(r.targetSyllable),answer:Ht(r.answer),selected:Ht(r.selectedText)??Ht(r.selected),correct:qm(r)}}):[]}const Ua=globalThis;async function Gm(){try{return await Ua.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function Km(e){const n=a=>{};try{const a=Ua.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function Ga(e){try{Ua.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function Zm(e){if(typeof document<"u")try{const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.opacity="0",n.style.pointerEvents="none",document.body.appendChild(n),n.focus(),n.select(),n.setSelectionRange(0,e.length);const a=document.execCommand("copy");if(document.body.removeChild(n),a)return!0}catch{}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}function Ym(){return Ka(new Date)}function Ka(e){if(e==null||e==="")return"";const n=e instanceof Date?e:new Date(e);return isNaN(n.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n)}function ts(e,n){if(!e)return"";const a=new Date(e).getTime();if(Number.isNaN(a))return"";const r=Math.max(0,Math.floor((Date.now()-a)/1e3)),o=Math.floor(r/60),s=Math.floor(o/60),l=Math.floor(s/24),c=Math.floor(l/7),d=Math.floor(l/30),u=Math.floor(l/365);return o<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):o<60?n("store.time.minutesAgo",{n:o}):s<24?n("store.time.hoursAgo",{n:s}):l<7?n("store.time.daysAgo",{n:l}):c<5?n("store.time.weeksAgo",{n:c}):l<365?n("store.time.monthsAgo",{n:Math.min(d,11)}):n("store.time.yearsAgo",{n:u})}function ns(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:o=!1,fallback:s="\u2014"}=n;if(!e)return s;const l=Ka(e instanceof Date?e:String(e));if(!l)return s;const[c,d,u]=l.split("-"),h=r?d:String(Number(d)),p=r?u:String(Number(u));return`${c}${a}${h}${a}${p}${o?".":""}`}function Un(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function as(e,n){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),o=Number(a[2]),s=a[1].padStart(2,"0");return o===0?n("date.timeH",{h:r,hh:s,mm:a[2]}):n("date.timeHM",{h:r,hh:s,m:o,mm:a[2]})}function Za(e){return(e??0).toLocaleString("ko-KR")}const Xm=[{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"}]}],Jm=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];function rs(){return Xm}function Qm(){return Jm}const e0=[],t0=[],n0=[],a0=[];function r0(){return{LISTEN_IN_NOISE:e0,SHORT_STORY:t0,LONG_STORY:n0,ORDERING_SENTENCE:a0}}const o0=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}];let ca=null,os=null,ss=null;function s0(){const e=Vm();if(e&&e.entries.length>0){const n=Mm();if(ca&&os===e&&ss===n)return ca;const a=new Set,r=[];for(const o of e.entries)!o.word||a.has(o.word)||(a.add(o.word),r.push({w:o.word,s:o.syllables,p:n?.[o.word]?[...n[o.word].cho??[],...n[o.word].jung??[],...n[o.word].jong??[]]:[],pron:o.pronunciation||o.word,grade:o.grade}));return ca=r,os=e,ss=n,ca}return[]}new Proxy([],{get(e,n){const a=s0(),r=a[n];return typeof r=="function"?r.bind(a):r}});const i0="0.127.0";function l0(e){return typeof window>"u"?"":cm.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function c0(e){const[n,a]=i.useState(null),[r,o]=i.useState(null),[s,l]=i.useState(null),[c,d]=i.useState(null);return i.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),o(null),l(null);return}const u=e.split("/").pop();let h=e;u&&(e.startsWith("/")?h=Ia(e):/^(Logo|Symbol)/i.test(u)?h=Ia(`logo/${u}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),h=e)),a(h)},[e]),i.useEffect(()=>{if(!n)return;let u=!1;async function h(){try{let p=await fetch(n);p.ok||(p=await fetch(n));const f=p.headers.get("content-type")||"";if(u)return;if(f.includes("svg")){o("mask");return}if(f.startsWith("image/")){o("img");return}const g=await fetch(n);if(!g.ok)throw new Error("not ok");const C=await g.text();if(u)return;if(/^\s*<svg[\s>]/i.test(C)){const m=l0(C);if(!m){o("none");return}l(m),o("inline");return}o("none")}catch{u||o("none")}}return h(),()=>{u=!0}},[n]),i.useEffect(()=>{let u=!1,h=null;return r==="mask"&&n&&fetch(n).then(p=>{if(!p.ok)throw new Error("fetch failed");return p.blob()}).then(p=>{u||(h=URL.createObjectURL(p),d(h))}).catch(()=>{u||o("img")}),()=>{u=!0,h&&URL.revokeObjectURL(h),d(null)}},[r,n]),{iconToUse:n,mode:r,svgText:s,blobUrl:c}}function Oe(e){const{icon:n,label:a,className:r,imgClassName:o,maskClassName:s,svgClassName:l,wrapperStyle:c,size:d}=e||{},u=r??"iconRenderer-icon",h=o??"iconRenderer-icon-image",p=s??"iconRenderer-icon-mask",f=l??"iconRenderer-icon-svg",g=typeof n=="string"?n:null,C=Sh(g),{iconToUse:m,mode:v,svgText:b,blobUrl:w}=c0(g),_=(A,M={})=>t.jsx("span",{className:u,style:c,...M,children:A}),y=(A,M={})=>t.jsx("img",{src:A,alt:typeof a=="string"?a:a?String(a):"",className:h,...M});if(!n)return null;if(typeof n!="string")return _(n);if(n==="none")return _(t.jsx("span",{className:f,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(C)try{return _(i.createElement(C,{className:f,size:typeof d=="number"?d:20}),{"aria-hidden":"true"})}catch{}if(m&&m.endsWith(".svg")){if(v==="mask"){const A={"--icon-url":w?`url(${w})`:`url(${m})`};return _(t.jsx("span",{className:p,style:A}),{"aria-hidden":"true"})}return v==="img"?_(y(m,{onError:A=>{A.currentTarget.onerror=null,A.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):v==="inline"?_(t.jsx("span",{className:f,dangerouslySetInnerHTML:b?{__html:b}:void 0}),{"aria-hidden":"true"}):_(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return y(Ia(n),{style:c,onError:A=>{A.currentTarget.onerror=null,A.currentTarget.style.display="none"}});const S=typeof d=="number"?d:20,x=`<svg width="${S}" height="${S}" 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 _(t.jsx("span",{className:f,dangerouslySetInnerHTML:{__html:x}}),{"aria-hidden":"true"})}function u0({icon:e,emoji:n,title:a,message:r,hint:o,action:s,compact:l,className:c}){return t.jsxs("div",{className:ye("empty-state",l&&"empty-state--compact",c),children:[n&&t.jsx("span",{className:"empty-state__emoji",children:n}),e&&t.jsx(Oe,{icon:e,className:"empty-state__icon"}),a&&t.jsx("p",{className:"empty-state__title body-2",children:a}),r&&t.jsx("p",{className:"empty-state__message body-3",children:r}),o&&t.jsx("p",{className:"empty-state__hint caption-1",children:o}),s&&t.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:s.onClick,children:[s.icon&&t.jsx(Oe,{icon:s.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:s.label})]})]})}function d0({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:o,className:s}){const{t:l}=pe.useTranslation();return t.jsxs("div",{className:ye("empty-state","error-state",s),role:"alert",children:[t.jsx(Oe,{icon:a,className:"empty-state__icon error-state__icon"}),t.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),n&&t.jsx("p",{className:"empty-state__hint caption-1",children:n}),r&&t.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[t.jsx(Oe,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:o??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function p0({icon:e,title:n,description:a,cta:r,tone:o="main",disabled:s=!1,onClick:l,className:c=""}){const d=()=>{s||l?.()};return t.jsx("section",{role:"button",tabIndex:s?-1:0,"aria-disabled":s||void 0,"aria-label":n,onClick:d,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),d())},className:ye("action-card",`action-card--${o}`,s&&"action-card--disabled",c),children:t.jsxs("div",{className:"action-card__body",children:[t.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:t.jsx(Oe,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{className:"action-card__title",children:n}),t.jsx("p",{className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(Oe,{icon:"arrow-right",size:18})})]})]})})}function h0({as:e="div",className:n="",children:a,storage:r,...o}){r&&mm({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=ye("ihabdevteam-core-scope",n);return t.jsx(e,{className:s,...o,children:a})}function m0({title:e="",lines:n=[],notices:a=null,children:r,variant:o="default",dismissible:s=!1,className:l=""}){const{t:c}=pe.useTranslation(),[d,u]=i.useState(!1),h=i.useCallback(()=>u(!0),[]);if(d)return null;const p=`notice-box notice-box--${o} body-2 ${l}`.trim();if(a&&Array.isArray(a)&&a.length)return t.jsx("div",{className:p,role:"note",children:a.map((g,C)=>t.jsxs("div",{className:"notice-box__inner",children:[g.title?t.jsx("span",{className:"notice-box__title body-3",children:g.title}):null,t.jsx("div",{className:"notice-box__body",children:g.lines&&g.lines.length?t.jsx("div",{children:g.lines.map((m,v)=>t.jsx("span",{className:"notice-box__line body-3",children:m},v))}):g.children??null})]},C))});const f=e||n.length?t.jsxs("div",{className:"notice-box__inner",children:[e?t.jsx("span",{className:"notice-box__title body-1",children:e}):null,t.jsx("div",{className:"notice-box__body",children:n.length?t.jsx("ul",{children:n.map((g,C)=>t.jsx("li",{className:"notice-box__line",children:g},C))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{className:p,role:"note",children:[f,s&&t.jsx("button",{className:"notice-box__dismiss",onClick:h,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}function Ya(e,n=!0){i.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=o=>{if(o.key!=="Tab")return;const s=Array.from(a.querySelectorAll(Gn)).filter(d=>!d.closest('[aria-hidden="true"]'));if(!s.length){o.preventDefault();return}const l=s[0],c=s[s.length-1];o.shiftKey&&document.activeElement===l?(o.preventDefault(),c.focus()):!o.shiftKey&&document.activeElement===c&&(o.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const Gn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';function ln(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:o=20,onClose:s,closeOnOutsideClick:l=!0,className:c="",role:d="dialog",ariaLabel:u="",children:h,backdrop:p=!1,isMobilePopup:f=!1,useBorder:g=!0,header:C}=e||{},m=i.useRef(null),[v,b]=i.useState({position:"fixed",left:0,top:-9999}),[w,_]=i.useState(!1),[y,S]=i.useState("bottom"),[x,A]=i.useState(!1),[M,k]=i.useState(!1),D=!n&&!a,O=i.useCallback((B=!1)=>{if(M&&f)return;const F=a?a.getBoundingClientRect():n;if(!F||!m.current)return;const Z=m.current,{offsetWidth:Y,offsetHeight:J}=Z,E=window.innerWidth,$=window.innerHeight,L=E-F.right,V=F.left,H=F.top,X=$-F.bottom;let I=0,U=0,q="top";if(H>=J+r)q="top",U=F.top-r-J,I=F.left+F.width/2-Y/2;else if(X>=J+r)q="bottom",U=F.bottom+r,I=F.left+F.width/2-Y/2;else if(L>=Y+r)q="right",I=F.right+r,U=F.top+F.height/2-J/2;else if(V>=Y+r)q="left",I=F.left-r-Y,U=F.top+F.height/2-J/2;else{const ve=Math.max(H,X,L,V);ve===H?(q="top",U=F.top-r-J,I=F.left+F.width/2-Y/2):ve===X?(q="bottom",U=F.bottom+r,I=F.left+F.width/2-Y/2):ve===L?(q="right",I=F.right+r,U=F.top+F.height/2-J/2):(q="left",I=F.left-r-Y,U=F.top+F.height/2-J/2)}const le=Number(o)||8;I=Math.min(Math.max(I,le),E-Y-le),U=Math.min(Math.max(U,le),$-J-le);const de=Math.round(I),Ce=Math.round(U);B&&m.current?(m.current.style.left=`${de}px`,m.current.style.top=`${Ce}px`,m.current.dataset.placement=q):(S(q||y),b({position:"fixed",left:de,top:Ce}),A(!0))},[M,f,a,n,r,o,y]);i.useLayoutEffect(()=>{if(D)return;if(M&&f){b({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),A(!0);return}O();const B=requestAnimationFrame(()=>O());return()=>cancelAnimationFrame(B)},[n,a,r,h,o,D,M,f,O]),i.useEffect(()=>{if(D||M&&f||!m.current||typeof ResizeObserver>"u")return;const B=new ResizeObserver(()=>{n&&O()});return B.observe(m.current),()=>B.disconnect()},[n,h,o,D,M,f,O]),i.useEffect(()=>{if(D||M&&f)return;const B=()=>O(!0);return window.addEventListener("resize",B),document.addEventListener("scroll",B,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",B),document.removeEventListener("scroll",B,{capture:!0})}},[n,r,h,o,D,M,f,O]),i.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const B=window.matchMedia("(max-width: 768px)"),F=()=>k(!!B.matches);F();try{B.addEventListener?B.addEventListener("change",F):B.addListener(F)}catch{try{B.addListener(F)}catch{}}return()=>{try{B.removeEventListener?B.removeEventListener("change",F):B.removeListener(F)}catch{}}},[]);const R=i.useRef(!1),j=i.useCallback((B=!1)=>{if(!(w||R.current)){if(R.current=!0,B){_(!0);try{s&&s()}catch{}return}_(!0),setTimeout(()=>{s&&s()},200)}},[w,s,_]);i.useEffect(()=>{const B=Y=>{const J=m.current;if(!J)return;const E=Y.target;if(E&&!J.contains(E)){try{if(E.closest&&E.closest("[data-tooltip-ignore]"))return}catch{}l&&j(!0)}},F=Y=>{const J=m.current;if(!J)return;const E=Y.target;if(E&&!J.contains(E)){try{if(E.closest&&E.closest("[data-tooltip-ignore]"))return}catch{}l&&j(!0)}},Z=Y=>{if(Y.key==="Escape"){Y.stopPropagation(),j();return}if(Y.key==="Tab"){const J=m.current;if(!J)return;const E=J.querySelectorAll(Gn);if(!E||E.length===0)return;const $=E[0],L=E[E.length-1],V=document.activeElement;Y.shiftKey?V===$&&(Y.preventDefault(),L.focus()):V===L&&(Y.preventDefault(),$.focus())}};return document.addEventListener("pointerdown",B,!0),document.addEventListener("click",F,!0),document.addEventListener("keydown",Z),()=>{document.removeEventListener("pointerdown",B,!0),document.removeEventListener("click",F,!0),document.removeEventListener("keydown",Z)}},[s,l,j]),i.useEffect(()=>{const B=()=>{j(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",B),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",B)}},[j]);const P=t.jsxs("div",{ref:m,className:`tooltip-content ${D?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${w?"is-closing":""} ${c} ${M&&f?"is-mobile":""}`,role:d,"aria-label":u||void 0,style:D?{}:{...v,visibility:x?"visible":"hidden"},tabIndex:-1,"data-placement":y,"data-left":D?"":v.left,"data-top":D?"":v.top,"data-anchor-left":n?Math.round(n.left):"","data-anchor-top":n?Math.round(n.top):"","data-anchor-width":n?Math.round(n.width):"","data-anchor-height":n?Math.round(n.height):"",children:[C!=null&&t.jsx("div",{className:"tooltip-content__header h5",children:C}),h]});if(D||typeof document>"u")return P;if(p||M&&f){const B=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&j(!0)}}),P]});return Pt.createPortal(B,document.body)}return Pt.createPortal(P,document.body)}function cn(e){const{anchorRect:n,text:a,offset:r=8,onClose:o,className:s="",ariaLabel:l}=e||{};return a?t.jsx(ln,{anchorRect:n,offset:r,onClose:o,closeOnOutsideClick:!1,className:`tooltip-info ${s}`,ariaLabel:l||a,children:t.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function _n(e){const{t:n}=pe.useTranslation(),{anchorRect:a,title:r,items:o,activeIndex:s=-1,showIndex:l=!0,onClose:c,offset:d=12,closeOnOutsideClick:u=!0}=e||{},h=(Array.isArray(o)?o:o?[o]:[]).map(p=>typeof p=="string"?{text:p}:p);return!h.length&&!r?null:t.jsx(ln,{anchorRect:a,offset:d,onClose:c,closeOnOutsideClick:u,useBorder:!1,className:"tooltip-description",ariaLabel:r||n("tooltip.description","\uC124\uBA85"),children:t.jsxs("div",{className:"tooltip-description__box",children:[r&&t.jsx("span",{className:"tooltip-description__title body-2",children:r}),t.jsx("ol",{className:"tooltip-description__items",children:h.map((p,f)=>t.jsxs("li",{className:`tooltip-description__item body-3${f===s?" tooltip-description__item--active":""}`,children:[l&&h.length>1&&t.jsxs("span",{className:"tooltip-description__index button-1",children:[f+1,"."]}),p.color&&t.jsx("span",{className:"tooltip-description__dot",style:{background:p.color},"aria-hidden":"true"}),t.jsx("span",{children:p.text})]},f))})]})})}function ne(e){const{size:n=48,type:a,htmlType:r,href:o,target:s,rel:l,icon:c,rightIcon:d,label:u,count:h,subLabel:p,children:f,ariaLabel:g,variant:C="default",align:m="center",selected:v,toggleable:b=!1,disabled:w=!1,useLabel:_=!0,useBorder:y=!0,useBG:S=!0,useDisabledCovered:x=!1,useDisabledInvisible:A=!1,width:M,minWidth:k,onClick:D,onDisabledClick:O,showTooltipInfo:R=!1,tooltipInfoText:j=null,tooltipDescription:P=null,iconSize:B="medium",iconColor:F,shape:Z="rounded",color:Y,className:J,...E}=e,$=typeof n=="string"&&isNaN(Number(n))?n.toLowerCase():String(Number(n)||48),L=$.match(/^\d+$/)?`button${$}`:`button-${$}`,V=Number(n),H=!isNaN(V)&&V<40?"button-2":"button-1",X=u??f,I=w||!!E.disabled,U=I?x?"disabled-covered":A?"disabled-invisibled":"disabled":C,q=U?`button--variant-${U}`:"",le=m?`button--align-${m}`:"",de=Z?`button--shape-${Z}`:"",Ce=typeof F=="string"&&F.startsWith("--")?`var(${F})`:F,ve={...M?{width:typeof M=="number"?`${M}px`:M}:{},...k?{minWidth:typeof k=="number"?`${k}px`:k}:{},...y?{}:{"--button-border":I?"0":"1px solid transparent"},...Ce?{"--button-icon-color":Ce}:{},...Y?{"--color-main":Y}:{}},he=_===!1?"":X,T=Array.isArray(he)?he.length>0:!!he,W=!!d,Q=a??(T||c||W?"bar":"dot"),_e=`${L}--${Q}`,ue=i.useRef(null),ie=i.useRef(I),[ae,se]=i.useState(!!v),[Se,He]=i.useState(!1),[Ve,Re]=i.useState(null),Ee=i.useCallback(()=>He(!1),[]);i.useEffect(()=>{typeof v=="boolean"&&se(v)},[v]),i.useEffect(()=>{if(ie.current&&!I&&ue.current){const Me=ue.current;Me.blur(),Me.style.pointerEvents="none";const tt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{ue.current&&(ue.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(tt)}ie.current=I},[I]);const je=typeof v=="boolean"?!!v:ae,Ae=b||typeof v=="boolean"?je?"true":"false":void 0,ze=ye("button",L,_e,q,le,de,je?"is-selected":null,S?null:"button--no-bg",J),at=`button__icon button__icon--${B}`,ge=Array.isArray(p)?p:p!==void 0?[p]:[],Pe=()=>{if(Array.isArray(he))return he.map((tt,ft)=>{const Ye=ge[ft];return t.jsxs("span",{className:`button__label-text${Ye!==void 0?" button__label-text--has-sub":""}`,children:[tt,Ye!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:Ye})]},ft)});const Me=p!==void 0;return t.jsxs("span",{className:`button__label-text${Me?" button__label-text--has-sub":""}`,children:[he,h!=null&&t.jsx("span",{className:"button__count",children:h}),Me&&t.jsx("span",{className:"button__sub-label-text caption-1",children:p})]})},$e=Me=>{I||(typeof E.onMouseLeave=="function"&&E.onMouseLeave(Me),typeof v!="boolean"&&se(!1),Me.currentTarget.blur())},Ke=Me=>{if(I){O?.(Me);return}typeof v!="boolean"&&b&&se(tt=>!tt),D?.(Me)},Ze=i.useCallback(()=>{(R||P)&&(He(!0),Re(ue.current?.getBoundingClientRect()??null))},[R,P]),Ue=i.useCallback(()=>{(R||P)&&(He(!1),Re(null))},[R,P]),Ie={...E};delete Ie.disabled,delete Ie.className,delete Ie.faded,delete Ie.useFaded,delete Ie.loading,delete Ie.onMouseLeave,delete Ie.onPointerEnter,delete Ie.onPointerLeave,delete Ie.onFocus,delete Ie.onBlur,I&&(Object.keys(Ie).forEach(Me=>{/^on[A-Z]/.test(Me)&&typeof Ie[Me]=="function"&&delete Ie[Me]}),Ie["aria-disabled"]="true");const dt=(typeof R=="string"?R:null)??(typeof j=="string"?j:null)??(typeof g=="string"?g:null)??(typeof X=="string"?X:null)??void 0,ct=typeof g=="string"?g:typeof X=="string"?X:dt,qe=(Me,tt)=>t.jsx(Oe,{icon:Me,label:tt??ct,className:at,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),ot=()=>Q==="dot"?t.jsxs(t.Fragment,{children:[qe(c),T&&t.jsx("span",{className:`button__label ${H}`,children:Pe()})]}):m==="center"&&c?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:qe(c)}),T&&t.jsx("span",{className:`button__label ${H}`,children:Pe()})]}),W&&t.jsx("span",{className:"button__right",children:qe(d)})]}):t.jsxs(t.Fragment,{children:[c&&t.jsx("span",{className:"button__left",children:qe(c,g??X)}),T&&t.jsx("span",{className:`button__label ${H}`,children:Pe()}),W&&t.jsx("span",{className:"button__right",children:qe(d)})]}),Te=!!o&&!I;return t.jsxs(t.Fragment,{children:[t.jsx(Te?"a":"button",{...Ie,ref:ue,...Te?{href:o,target:s,rel:l??(s==="_blank"?"noreferrer":void 0)}:{type:r,disabled:I&&!O},className:ze,"aria-pressed":Ae,"aria-label":ct,"aria-disabled":Te&&I?!0:void 0,style:ve,onClick:Ke,onMouseLeave:$e,onPointerEnter:Me=>{Ze(),!I&&typeof E.onPointerEnter=="function"&&E.onPointerEnter(Me)},onPointerLeave:Me=>{Ue(),!I&&typeof E.onPointerLeave=="function"&&E.onPointerLeave(Me)},onFocus:Me=>{Ze(),!I&&typeof E.onFocus=="function"&&E.onFocus(Me)},onBlur:Me=>{$e(Me),Ue(),!I&&typeof E.onBlur=="function"&&E.onBlur(Me)},children:ot()}),Se&&P?t.jsx(_n,{anchorRect:Ve,title:P.title,items:P.items,onClose:Ee}):Se&&dt?t.jsx(cn,{anchorRect:Ve,text:dt,onClose:Ee}):null]})}function rt(e,n,a){const r=i.useRef(null);return i.useLayoutEffect(()=>{const o=r.current?.parentElement??null;return n(o,e),()=>a(o)},[e,n,a]),r}const Kn={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},Xa=new WeakMap;function is(e){if(e)return Xa.get(e)}function bt(e,n){e&&(e.style.setProperty(Kn.title,n.title),e.style.setProperty(Kn.description,n.description),Xa.set(e,n))}function yt(e){e&&(e.style.removeProperty(Kn.title),e.style.removeProperty(Kn.description),Xa.delete(e))}const ls={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function cs(){const e=rt(ls,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const us={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function ds(){const e=rt(us,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const ps={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function hs(){const e=rt(ps,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const ms={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function fs(){const e=rt(ms,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Cs={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function gs(){const e=rt(Cs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const bs={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function ys(){const e=rt(bs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const vs={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function xs(){const e=rt(vs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const _s={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ws(){const e=rt(_s,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const ks={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function As(){const e=rt(ks,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Ns={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Bs(){const e=rt(Ns,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Ss={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Ds(){const e=rt(Ss,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:t.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const js={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Es(){const e=rt(js,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Ts={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Ms(){const e=rt(Ts,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Ls={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function $s(){const e=rt(Ls,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const f0=[{key:"main",label:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"soft",label:"\uC18C\uD504\uD2B8",textTone:"dark"},{key:"sub",label:"\uC11C\uBE0C \uCEEC\uB7EC",textTone:"light"},{key:"deep",label:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"softSub",label:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",textTone:"dark"},{key:"warm",label:"\uC6DC(\uAC15\uC870)",textTone:"dark"},{key:"dark",label:"\uB2E4\uD06C",textTone:"light"},{key:"radial",label:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"diagonal",label:"\uB300\uAC01\uC120 \uD328\uD134",textTone:"dark"},{key:"dots",label:"\uB3C4\uD2B8 \uD328\uD134",textTone:"dark"},{key:"outline",label:"\uC544\uC6C3\uB77C\uC778",textTone:"dark"},{key:"success",label:"\uC131\uACF5/\uC644\uB8CC",textTone:"light"},{key:"naver",label:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",textTone:"light"},{key:"instagram",label:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4",textTone:"light"}],Rs={main:cs,soft:ds,sub:hs,deep:fs,softSub:gs,warm:ys,dark:xs,radial:ws,diagonal:As,dots:Bs,outline:Ds,success:Es,naver:Ms,instagram:$s};function Ps({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:o=.1,lineHeightRatio:s=1.4}={}){const l=v=>Math.max(a,Math.min(r,Number(v))),[c,d]=i.useState(()=>{try{const v=localStorage.getItem(e),b=v?Number(v):1;return Number.isFinite(b)?b:1}catch{return 1}});i.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const u=v=>{d(typeof v=="function"?b=>l(v(b)):l(v))},h=()=>u(v=>+(v+o).toFixed(6)),p=()=>u(v=>+(v-o).toFixed(6)),f=c<r-Number.EPSILON,g=c>a+Number.EPSILON,C=Math.round(n*c),m=Math.round(C*s);return{scale:c,setScale:u,increase:h,decrease:p,canIncrease:f,canDecrease:g,fontSize:C,lineHeight:m}}const Is=i.createContext(null);function C0(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}function Xt(e){const n=i.useContext(Is),a=s=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(s).matches,[r,o]=i.useState(a(e));return i.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const s=window.matchMedia(e),l=d=>o(d.matches),c=s;return c.addEventListener?c.addEventListener("change",l):c.addListener&&c.addListener(l),o(s.matches),()=>{c.removeEventListener?c.removeEventListener("change",l):c.removeListener&&c.removeListener(l)}},[e]),n&&typeof n.mobile=="boolean"&&C0(e)?n.mobile:r}function Ja(e){const n=i.useRef(e);return i.useEffect(()=>{n.current=e}),n}function Fs(e,n){const a=Ja(n);i.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const Qa=" \xB7 ",Os=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Qa)?e.split(Qa).pop()??e:e})(),g0=i.createContext(!1);function b0(e){const n=i.useContext(g0);i.useEffect(()=>{if(n||typeof e!="string"||!e)return;const a=document.title;return document.title=Os?`${e}${Qa}${Os}`:e,()=>{document.title=a}},[e,n])}const Hs=[{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"}];function y0(e,n,a){const{t:r}=pe.useTranslation(),[o,s]=i.useState(()=>{const C=a?.initialPageSize;return C&&Hs.some(m=>m.value===C)?C:"25"}),[l,c]=i.useState(1),[d,u]=i.useState(n);d!==n&&(u(n),l!==1&&c(1));const h=i.useMemo(()=>Hs.map(C=>({...C,label:r("visits.showN",{n:C.value})})),[r]),p=i.useCallback(C=>{s(C),c(1)},[]),f=Math.max(1,Math.ceil(e.length/Number(o))),g=Math.min(l,f);return{pageRows:i.useMemo(()=>e.slice((g-1)*Number(o),g*Number(o)),[e,g,o]),pageSizeProps:{options:h,value:o,onChange:p},paginationProps:{page:g,total:f,onChange:c},setPage:c}}function v0(){const[e,n]=i.useState(null),a=i.useCallback(o=>{n(s=>s?.key===o?{key:o,asc:!s.asc}:{key:o,asc:!0})},[]),r=i.useCallback((o,s)=>({label:o,sortDir:e?.key===s?e.asc?"asc":"desc":null,onClick:()=>a(s)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}const un="\uC804\uCCB4";Object.fromEntries(Object.entries(Lm).map(([e,{nucleus:n}])=>[e,n]));const x0={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"})},_0={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"})},w0={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 k0(e,n){if("place"in n)return x0[n.place](e);const a=_0[n.vowel](e);return n.glide?`${a} \xB7 ${w0[n.glide](e)}`:a}const A0=(e,{defaultValue:n})=>n,Vs=(e,n)=>({jamos:e,phonetic:n,tooltip:k0(A0,n)}),Jt=(e,n)=>n.map(a=>Vs([a],{place:e})),pt=(e,n,a)=>Vs([...e],a?{vowel:n,glide:a}:{vowel:n}),er={cho:[Jt("labial",["\u3142","\u3143","\u314D","\u3141"]),Jt("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Jt("alveolar",["\u3145","\u3146"]),Jt("palatal",["\u3148","\u3149","\u314A"]),Jt("velar",["\u3131","\u3132","\u314B"]),Jt("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:[Jt("labial",["\u3142","\u3141"]),Jt("alveolar",["\u3137","\u3134","\u3139"]),Jt("velar",["\u3131","\u3147"])]},N0=e=>e===B0?[]:Array.from(e),B0="__NO_CODA__",tr=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:o})=>({v:a.join(""),phonetic:r,tooltip:o}))),zs={cho:tr(er.cho),jung:tr(er.jung),jong:tr(er.jong)};zs.jung.flat().forEach(({v:e})=>{for(const n of N0(e));}),new Set(zs.cho.flat().map(e=>e.v));const jn=[];let ua=!1;function Ws(e){if(e.key!=="Escape"||e.defaultPrevented)return;const n=jn[jn.length-1];n&&(e.stopPropagation(),n())}function nr(e){return jn.push(e),!ua&&typeof document<"u"&&(document.addEventListener("keydown",Ws),ua=!0),()=>{const n=jn.lastIndexOf(e);n>=0&&jn.splice(n,1),jn.length===0&&ua&&typeof document<"u"&&(document.removeEventListener("keydown",Ws),ua=!1)}}function S0(e,n=!0){const a=Ja(e);i.useEffect(()=>{if(n)return nr(()=>{a.current?.()})},[n,a])}function da(){const[e,n]=i.useState(null),a=i.useCallback(s=>n(s.getBoundingClientRect()),[]),r=i.useCallback(()=>n(null),[]),o=i.useCallback(s=>{const l=s.getBoundingClientRect();n(c=>c?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:o}}function qs(e="warning"){const[n,a]=i.useState(""),[r,o]=i.useState(e),[s,l]=i.useState(0),c=i.useCallback((p,f)=>{o(f),a(p),l(g=>g+1)},[]),d=i.useCallback(p=>c(p,"warning"),[c]),u=i.useCallback(p=>c(p,"normal"),[c]),h=i.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:s,showToast:c,showWarning:d,showNormal:u,clearToast:h}}function Zn({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[o,s]=i.useState(!1),[l,c]=i.useState({}),d=i.useRef(null),u=i.useRef(null),h=i.useCallback(()=>{d.current&&c(e(d.current.getBoundingClientRect()))},[e]);i.useEffect(()=>{if(!o)return;h();const g=b=>{const w=b.target;r&&w.closest?.(r)||d.current?.contains(w)||u.current?.contains(w)||s(!1)};document.addEventListener("mousedown",g);const C=b=>{u.current?.contains(b.target)||(n==="reposition"?h():n==="close"&&s(!1))};n!=="ignore"&&window.addEventListener("scroll",C,!0);const m=()=>{a==="reposition"?h():a==="close"&&s(!1)};a!=="ignore"&&window.addEventListener("resize",m);const v=b=>{b.key==="Escape"&&s(!1)};return document.addEventListener("keydown",v),()=>{document.removeEventListener("mousedown",g),n!=="ignore"&&window.removeEventListener("scroll",C,!0),a!=="ignore"&&window.removeEventListener("resize",m),document.removeEventListener("keydown",v)}},[o,h,n,a,r]);const p=i.useCallback(()=>s(g=>!g),[]),f=i.useCallback(()=>s(!1),[]);return{open:o,setOpen:s,toggle:p,close:f,style:l,triggerRef:d,menuRef:u}}function D0(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:o,playMs:s=1100,feedbackMs:l=1500}={}){const[c,d]=i.useState([]),[u,h]=i.useState(0),[p,f]=i.useState("idle"),[g,C]=i.useState(null),[m,v]=i.useState([]),[b,w]=i.useState(null),[_,y]=i.useState(0),S=i.useRef(0),x=i.useCallback(E=>{S.current=typeof E=="function"?E(S.current):E,y(S.current)},[]),A=i.useRef(r),M=i.useRef(o);i.useEffect(()=>{A.current=r,M.current=o},[r,o]);const k=i.useRef([]),D=()=>{k.current.forEach(clearTimeout),k.current=[]},O=(E,$)=>{k.current.push(setTimeout($,E))};i.useEffect(()=>()=>D(),[]);const R=c[u]?.id??null,j=i.useCallback(()=>{D(),f("playing"),v([]),w(null),x(0);let E=0;e.forEach(($,L)=>{O(E,()=>{h(L),C($.id),A.current?.($)}),O(E+1e3,()=>{C(null),v(V=>[...V,$.id])}),E+=1300}),O(E,()=>{f("done"),M.current?.({score:0,total:e.length})})},[e,x]),P=i.useCallback((E,$)=>{if($>=E.length){f("done"),M.current?.({score:S.current,total:E.length});return}h($),w(null),f("playing"),C(E[$].id),A.current?.(E[$]),O(s,()=>{C(null),f("waiting")})},[s]),B=i.useCallback(()=>{D();const E=qn(e);d(E),x(0),v([]),P(E,0)},[e,P,x]),F=i.useCallback(()=>{n==="playback"?(d(e),j()):B()},[n,e,j,B]),Z=i.useCallback(()=>{D(),f("idle"),C(null),v([]),w(null),h(0),x(0),d([])},[x]);i.useEffect(()=>{a?F():Z()},[n,e.length,a]);const Y=i.useCallback(E=>{p!=="waiting"||n==="playback"||(w(E),E===c[u]?.id&&x($=>$+1),n==="exam"?(f("playing"),O(400,()=>P(c,u+1))):(f("feedback"),O(l,()=>P(c,u+1))))},[p,n,c,u,P,l,x]),J=n==="playback"?e.length:c.length;return{bind:{activeSpeakerId:g,playedIds:m,selectedId:b,answerId:R,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:Y},index:u,total:J,score:_,phase:p,done:p==="done",start:F,reset:Z}}function j0({title:e,description:n,actionLabel:a,onAction:r,bg:o,color:s,size:l="medium",actionVariant:c,titleColor:d,descriptionColor:u,className:h=""}){const p=o??s??"main",f=i.useRef(null),[g,C]=i.useState("main"),m=Xt("(max-width: 767px)");i.useLayoutEffect(()=>{const w=f.current;w&&(d!==void 0&&w.style.setProperty("--promo-banner-bg-title",d),u!==void 0&&w.style.setProperty("--promo-banner-bg-description",u))},[d,u]),i.useLayoutEffect(()=>{const w=f.current;if(!w)return;const _=is(w);C(_?.actionVariant??"main")},[p]);const v=ye("promo-banner",`promo-banner--${l}`,h),b=Rs[p];return t.jsxs("div",{ref:f,className:v,role:"note",children:[t.jsx(b,{}),t.jsxs("div",{className:"promo-banner__text",children:[t.jsx("span",{className:`promo-banner__title ${l==="small"?"body-2":"h2"}`,children:e}),n&&t.jsx("span",{className:"promo-banner__description body-3",children:n})]}),a&&r&&t.jsx(ne,{size:40,variant:c??g,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...m?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function E0({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":o}){const{t:s}=pe.useTranslation(),l=o??s("topBanner.ariaLabel","\uBC30\uB108"),c=i.Children.toArray(e),d=c.length,[u,h]=i.useState(0),[p,f]=i.useState(!1),g=d>0?u%d:0;return i.useEffect(()=>{if(d<2||n<=0||p)return;const C=window.setInterval(()=>h(m=>(m+1)%d),n);return()=>window.clearInterval(C)},[d,n,p]),d===0?null:t.jsxs("section",{className:ye("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),onFocus:()=>f(!0),onBlur:()=>f(!1),children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${g*100}%)`},children:c.map((C,m)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":m!==g,...m!==g?{inert:!0}:{},children:C},m))})}),d>1&&t.jsx("div",{className:`top-banner__dots${(a?.[g]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((C,m)=>t.jsx("button",{type:"button",className:`top-banner__dot${m===g?" top-banner__dot--active":""}`,"aria-label":s("topBanner.dotAriaLabel",{count:d,index:m+1,defaultValue:`${d}\uAC1C \uC911 ${m+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":m===g,onClick:()=>h(m)},m))})]})}function T0({title:e,body:n,open:a=!1,onToggle:r,avatar:o,titleClassName:s="body-2",bodyClassName:l="body-2",className:c=""}){const{t:d}=pe.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),children:[t.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:u=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),r?.();else if(u.key==="ArrowDown"||u.key==="ArrowUp"){u.preventDefault();const h=u.currentTarget.closest('[role="list"]');if(!h)return;const p=Array.from(h.querySelectorAll("[data-accordion-header]")),f=p.indexOf(u.currentTarget);(u.key==="ArrowDown"?p[f+1]:p[f-1])?.focus()}},children:[o&&t.jsx("div",{className:"accordion-item__avatar",children:o}),t.jsx("div",{className:`accordion-item__title ${s}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(Oe,{icon:a?"chevron-up":"chevron-down",label:a?d("accordion.collapse","\uC811\uAE30"):d("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&t.jsx("div",{className:`accordion-item__body ${l}`,children:typeof n=="string"?t.jsx("p",{children:n}):n})]})}function M0({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:o}){const[s,l]=i.useState(n);return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>t.jsx(T0,{title:c.title,body:c.body,avatar:c.avatar,open:d===s,onToggle:()=>l(d===s?-1:d),bodyClassName:o},d))})}function L0(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("polyline",{points:"2,6 5,9 10,3"})})}function $0(){return t.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[t.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),t.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function R0(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:t.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function lt(e){const{type:n="bar",size:a,className:r="","aria-label":o}=e;if(n==="dot"){const{icon:_,number:y,position:S="top-right",onClick:x,animate:A=!1}=e,M=y!==void 0?"number":_??"check",k=typeof a=="number"?a:32,D=ye("circle-badge",`circle-badge--${M}`,`circle-badge--${S}`,`circle-badge--${k}`,A?"circle-badge--animate":"",x?"circle-badge--clickable":"",r),O=y!==void 0?`${y}\uBC88\uC9F8 \uC120\uD0DD`:{check:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",minus:"\uC81C\uC678"}[_??"check"];return t.jsxs("span",{className:D,onClick:x,onKeyDown:x?R=>{R.key!=="Enter"&&R.key!==" "||(R.preventDefault(),R.currentTarget.click())}:void 0,"aria-label":o??O,role:x?"button":void 0,tabIndex:x?0:void 0,children:[y!==void 0&&y,y===void 0&&_==="check"&&t.jsx(L0,{}),y===void 0&&_==="remove"&&t.jsx($0,{}),y===void 0&&_==="minus"&&t.jsx(R0,{})]})}const{label:s,children:l,variant:c="default",fill:d="filled",minWidth:u,iconLeft:h,iconRight:p,color:f}=e,g=typeof a=="number"?"medium":a??"medium",C={small:"caption-2b",medium:"body-3b",large:"body-2b"}[g]??"body-2b",m={small:12,medium:14,large:16}[g]??14,v=ye("badge",`badge--${c}`,`badge--${g}`,d!=="filled"?`badge--${d}`:"",C,r),b=f?.startsWith("--")?`var(${f})`:f,w=u!==void 0||b?{...u!==void 0?{minWidth:typeof u=="number"?`${u}px`:u}:{},...b?{"--badge-color":b}:{}}:void 0;return t.jsxs("span",{className:v,style:w,children:[h&&t.jsx(Oe,{icon:h,size:m,className:"badge__icon"}),s??l,p&&t.jsx(Oe,{icon:p,size:m,className:"badge__icon"})]})}function pa({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:o}=pe.useTranslation(),s=r==="small"?40:48,[l,c]=i.useState([{title:null,columns:e}]),d=l[l.length-1];i.useEffect(()=>{c(C=>{try{if(!Array.isArray(C)||C.length===0)return[{title:null,columns:e}];const m=C.slice(),v=m[0]&&typeof m[0].title<"u"?m[0].title:null;return m[0]={title:v,columns:e},m}catch{return[{title:null,columns:e}]}})},[e]);const u=i.useCallback(()=>c(C=>C.length>1?C.slice(0,C.length-1):C),[]),h=i.useRef(null),p=i.useRef(null),f=l.length;i.useEffect(()=>{p.current||(p.current=document.activeElement);let C=0,m=0;const v=()=>{const b=h.current?.querySelector("button:not([disabled])");if(b&&b.offsetParent){b.focus({preventScroll:!0});return}m++<20&&(C=requestAnimationFrame(v))};return C=requestAnimationFrame(v),()=>cancelAnimationFrame(C)},[f]),i.useEffect(()=>()=>{p.current?.focus?.({preventScroll:!0})},[]);const g=i.useCallback(C=>{if(C){if(Array.isArray(C.children)&&C.children.length){c(m=>[...m,{title:C.label||null,columns:[{title:null,items:C.children||[]}]}]);return}try{typeof C.onClick=="function"&&C.onClick()}catch{}try{C&&C.closeOnSelect&&typeof n=="function"&&n()}catch{}}},[n]);return t.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(l.length>1||d.title)&&t.jsxs("div",{className:"tooltip-menu__header",children:[l.length>1?t.jsx(ne,{size:s,type:"dot",icon:"chevron-left",ariaLabel:o("common.back","\uB4A4\uB85C"),onClick:u,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),t.jsx("div",{className:"tooltip-menu__columns",ref:h,children:d.columns&&d.columns.map((C,m)=>t.jsxs("div",{className:"tooltip-menu__column",children:[C.title?t.jsx("div",{className:"tooltip-menu__column-title body-3",children:C.title}):null,t.jsx("div",{className:"tooltip-menu__items",children:(C.items||[]).map((v,b)=>t.jsx(ne,{className:"tooltip-menu__item",size:s,type:v.label?"bar":"dot",icon:v.selected?"check":v.icon||"none",rightIcon:Array.isArray(v.children)&&v.children.length?"chevron-right":v.badgeCount?t.jsx(lt,{type:"dot",position:"inline",number:Math.min(v.badgeCount,99),size:24,"aria-label":`${v.badgeCount}`}):void 0,label:v.label,ariaLabel:v.label,onClick:()=>g(v),selected:v.selected,disabled:v.disabled,showTooltipInfo:v.tooltip||!1,useBorder:!1,align:"left"},b))})]},m))})]})}const P0=52,Us=10;function Gs({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:o,moreItems:s=[]}){const{t:l}=pe.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",u=r==="manager"?l("nav.modeLabelMalgwi","\uB9D0\uADC0"):l("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),h=i.useRef(null),[p,f]=i.useState(0),g=e.length;i.useEffect(()=>{const B=h.current;if(!B||(f(B.clientWidth),typeof ResizeObserver>"u"))return;const F=new ResizeObserver(Z=>f(Z[0].contentRect.width));return F.observe(B),()=>F.disconnect()},[]);const C=p>0?Math.floor((p+Us)/(P0+Us)):g,m=p>0&&C<g,v=m?C:g,b=e.slice(0,v),w=e.slice(v),_=m||s.length>0,y=i.useCallback(B=>({position:"fixed",bottom:window.innerHeight-B.top+8,right:window.innerWidth-B.right,zIndex:1e4}),[]),S=i.useId(),{open:x,toggle:A,close:M,style:k,triggerRef:D,menuRef:O}=Zn({computeStyle:y,onScroll:"ignore",onResize:"ignore"}),R=i.useCallback(()=>o?.(c),[o,c]),j=i.useMemo(()=>w.find(B=>B.key===n)??s.find(B=>B.selected||B.key&&B.key===n),[w,n,s]),P=i.useMemo(()=>[{items:[...w.map(B=>({label:B.label,icon:B.icon,selected:B.key===n,closeOnSelect:!0,onClick:()=>{B.key&&a&&a(B.key),M()}})),...s.map(B=>({label:B.label,icon:B.icon,badgeCount:B.badgeCount,selected:B.selected??(!!B.key&&B.key===n),closeOnSelect:!0,onClick:()=>{B.onClick?.(),M()}}))]}],[w,s,n,a,M]);return t.jsxs("nav",{className:"bottom-nav","aria-label":l("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[o&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(ne,{size:52,type:"dot",icon:d,ariaLabel:u,className:"bottom-nav-item",onClick:R})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",ref:h,children:b.map(B=>t.jsx(ne,{size:52,type:"dot",icon:B.icon,ariaLabel:B.label,selected:B.key===n,disabled:B.state==="disabled",className:"bottom-nav-item",onClick:()=>B.key&&a?.(B.key)},B.key))}),_&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),t.jsx("div",{className:"bottom-nav__right",children:t.jsxs("div",{ref:D,children:[t.jsx(ne,{size:52,type:"dot",icon:j?.icon??"ellipsis",ariaLabel:j?.label??l("nav.more","\uB354\uBCF4\uAE30"),selected:!!j,className:"bottom-nav-item",onClick:A,"aria-expanded":x,"aria-controls":x?S:void 0}),x&&Pt.createPortal(t.jsx("div",{id:S,role:"group","aria-label":l("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:k,ref:O,children:t.jsx(pa,{columns:P,onClose:M})}),document.body)]})})]})]})}function I0(e){const{t:n}=pe.useTranslation(),{activeKey:a,unreadCount:r,onDebug:o,onNotification:s,onSetting:l,onHelp:c,onAccount:d}=e||{},u="default";return t.jsxs("div",{className:"side-nav__footer",children:[o&&t.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:o,selected:a==="debug"}),t.jsxs("span",{className:"side-nav__notification-wrap",children:[t.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"bell",ariaLabel:n("nav.notifications","\uC54C\uB9BC"),onClick:s,selected:a==="notifications"}),!!r&&t.jsx(lt,{type:"dot",number:Math.min(r,99),size:24})]}),t.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"settings",ariaLabel:n("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),t.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),t.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]})}function Ks(e){const{item:n,itemKey:a,label:r,icon:o,active:s,onClick:l,style:c,state:d,labelStyle:u}=e||{},h=n?.key??a??"",p=n?.label??r??"",f=n?.icon??o??"",g=n?.badge??0,C=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(Oe,{icon:f,label:typeof p=="string"?p:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),m=d==="disabled",v=`side-nav__item ${s?"active":""} ${d||""} ${m?"disabled":""} ${n?.child?"side-nav__item--child":""}`,b=i.useCallback(w=>{if(!m){try{w.currentTarget.blur()}catch{}l?.(h,w.currentTarget)}},[m,h,l]);return t.jsxs("button",{className:v,onClick:b,"aria-label":typeof p=="string"?p:void 0,style:c,"aria-disabled":m,children:[C,t.jsx("span",{className:"side-nav__label button-1 f",style:u,children:p}),g>0&&t.jsx(lt,{type:"dot",position:"inline",number:Math.min(g,99),size:24,"aria-label":`${g}`}),d==="loading"&&t.jsx("span",{className:"side-nav__spinner","aria-label":"loading"})]})}function Zs(e){const{t:n}=pe.useTranslation(),{items:a=[],activeKey:r,onChange:o,unreadCount:s,onDebug:l,onNotification:c,onAccount:d,onSetting:u,onHelp:h,appMode:p,onAppModeChange:f}=e||{},g=i.useCallback(()=>f?.(p==="malgwi"?"manager":"malgwi"),[f,p]);return t.jsxs("nav",{"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[t.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(C=>!C.section&&(C.key||C.label)).map((C,m)=>t.jsxs(i.Fragment,{children:[C.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(Ks,{item:C,active:C.key===r,state:C.disabled?"disabled":void 0,onClick:(v,b)=>{if(C.disabled)return;if(C.href){window.open(C.href,"_blank","noopener,noreferrer");try{b?.blur()}catch{}return}o?.(C.key);try{const _=document.querySelector(".content-area");_?_.scrollTop=0:window.scrollTo({top:0})}catch{}try{b?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const w=document.querySelector(".header");if(w&&!(typeof w.matches=="function"&&w.matches(":hover"))){w.classList.add("header--force-collapsed");const _=()=>{w.classList.remove("header--force-collapsed"),w.removeEventListener("mouseenter",_)};w.addEventListener("mouseenter",_)}}})]},C.key??`side-nav__item-${m}`)),f&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),f&&t.jsx(Ks,{item:{key:"__mode-switch__",label:p==="malgwi"?n("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"):n("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"),icon:p==="malgwi"?"arrow-right":"arrow-left"},onClick:g})]}),t.jsx(I0,{activeKey:r,unreadCount:s,onDebug:l,onNotification:c,onAccount:d,onSetting:u,onHelp:h})]})}var ar='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',rr='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',F0='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 Ys({appMode:e}){const{t:n}=pe.useTranslation(),a=e==="manager",r=a?rr:ar,o=F0,s=Xt("(min-width: 768px) and (max-width: 1023px)");return t.jsx("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:s?t.jsx("img",{src:o,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):t.jsx("img",{src:r,alt:a?n("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):n("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function Xs({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:o,unreadCount:s,onDebug:l,onNotification:c,onAccount:d,onSetting:u,onHelp:h,appMode:p,onAppModeChange:f}){const{t:g}=pe.useTranslation(),C=Xt("(max-width: 767px)"),m=i.useMemo(()=>{const k=[];return l&&k.push({key:"debug",icon:"terminal",label:g("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&k.push({key:"notifications",icon:"bell",label:g("nav.notifications","\uC54C\uB9BC"),badgeCount:s,onClick:c}),u&&k.push({key:"settings",icon:"settings",label:g("nav.settings","\uC124\uC815"),onClick:u}),h&&k.push({key:"help",icon:"message-circle-question-mark",label:g("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:h}),d&&k.push({key:"account",icon:"user-round",label:g("nav.account","\uACC4\uC815"),onClick:d}),k},[g,l,c,u,h,d,s]),v=i.useCallback(k=>({position:"fixed",top:k.bottom+8,right:Math.max(8,window.innerWidth-k.right),zIndex:1e4}),[]),b=i.useId(),{open:w,toggle:_,close:y,style:S,triggerRef:x,menuRef:A}=Zn({computeStyle:v,onScroll:"ignore",onResize:"ignore"}),M=i.useMemo(()=>[{items:m.map(k=>({label:k.label,icon:k.icon,badgeCount:k.badgeCount,selected:k.selected??(!!k.key&&k.key===e),closeOnSelect:!0,onClick:()=>{k.onClick?.(),y()}}))}],[m,e,y]);return t.jsxs("aside",{className:`header${p==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(Ys,{appMode:p}),t.jsxs("div",{className:"header__menu-button",ref:x,children:[t.jsx(ne,{size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:g("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:_,"aria-expanded":w,"aria-controls":w?b:void 0}),w&&Pt.createPortal(t.jsx("div",{id:b,role:"group","aria-label":g("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:S,ref:A,children:t.jsx(pa,{columns:M,onClose:y})}),document.body)]})]}),t.jsx(Zs,{items:a,activeKey:e??void 0,onChange:n,unreadCount:s,onDebug:l,onNotification:c,onAccount:d,onSetting:u,onHelp:h,appMode:p,onAppModeChange:f}),C&&t.jsx(Gs,{items:a,activeKey:e??void 0,onChange:n,appMode:p,onAppModeChange:f})]})}const O0=Xs;var H0={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}}},V0={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],yearMonth:"{{year}}\uB144 {{month}}\uC6D4",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704"},z0={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},W0={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},q0={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},U0={selected:"\uC120\uD0DD\uB428"},G0={placeholder:"\uC120\uD0DD"},K0={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},Z0={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"},Y0={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274"},X0={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."}}},J0={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."}},Q0={profile:{planSuffix:"\uD50C\uB79C",plan:"\uD50C\uB79C"},basicInfo:{name:{placeholder:"\uD64D\uAE38\uB3D9"}},security:{title:"\uBCF4\uC548",password:{label:"\uBE44\uBC00\uBC88\uD638"},twoFactor:{label:"2\uB2E8\uACC4 \uC778\uC99D",sub:"\uACC4\uC815 \uBCF4\uC548\uC744 \uAC15\uD654\uD558\uC138\uC694"}}},e2={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},t2={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",diffPhonemeCount:"\uB2E4\uB978 \uC74C\uC18C\uC758 \uCD1D \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",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",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:{eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30"},n2={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"},a2={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"}},r2={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"}}}},o2={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"}},s2={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},i2={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"}},l2={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."}},c2={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},u2={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"},d2={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},p2={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"},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:"\uC0AD\uC81C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78\uC744 \uB20C\uB7EC \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB9E4\uAE30\uC138\uC694.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"}},h2={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB2E8\uC5B4\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB4F1\uAE09",grade:"{{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193"},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"}},m2={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},f2={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"}},g2={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},b2={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},y2={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"},v2={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"}},x2={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB300\uB9BD\uC30D\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},phonemeSelect:{title:"\uC74C\uC18C \uC120\uD0DD",vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",infoInclude:"\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.",infoPick:"\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694.",infoContrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."},count:"{{n}}\uAC1C",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4.",selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},searchLabel:{error:"\uB370\uC774\uD130 \uBD88\uB7EC\uC624\uAE30 \uC2E4\uD328",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},confirmMessage:"\uC120\uD0DD\uD55C {{unit}} {{count}}\uAC1C\uB97C \uD3EC\uD568\uD55C \uB2E8\uC5B4 \uD45C \uC815\uBCF4\uAC00 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",resetOptions:"\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654",phonemeContrast:"\uB300\uB9BD {{n}}\uBC88 \uC74C\uC808",infoNotes:["\uBBF8\uB9AC\uBCF4\uAE30 \uAE00\uC790\uB294 \uC120\uD0DD\uD55C \uC74C\uC18C\uC758 \uC870\uD569 \uC608\uC2DC\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uAC80\uC0C9\uC740 \uD574\uB2F9 \uC74C\uC18C\uAC00 \uD3EC\uD568\uB41C \uBAA8\uB4E0 \uB2E8\uC5B4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4.","\uCD08\uC131 '\u3147'\uC740 \uC120\uD0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E8\uC5B4 \uC55E\uC5D0 \uC624\uB294 \u3147\uC740 \uC2E4\uC9C8\uC801\uC73C\uB85C \uBB34\uC74C\uC774\uC5B4\uC11C \uB300\uB9BD\uC30D \uC131\uB9BD\uC5D0 \uC601\uD5A5\uC744 \uC8FC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","\uCD08\uC131\uACFC \uC885\uC131\uB9CC \uC120\uD0DD\uD558\uBA74 \uBAA8\uC74C\uC740 '\u314F'\uB85C \uC790\uB3D9 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","\uC74C\uC18C \uAC1C\uC218\uB97C \uB298\uB9AC\uBA74 \uAC01 \uC74C\uC18C \uC0AC\uC774\uC758 \uB300\uB9BD\uC30D\uC744 \uAC80\uC0C9\uD569\uB2C8\uB2E4."]},_2={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"}},w2={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
827
|
+
`),this.name="StorageNotConfiguredError"}};function mm(e){hm(e)}function Fo(e,n){if(!e)return null;const a=Vn();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function Oo(e){if(!e)return null;const n=Vn();if(!n)throw new Io("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function Ho(e){const n=Vn();if(!n)throw new Io("downloadSound");return n.download(e)}function fm(){return Vn()?.noiseBaseUrl??"/sounds/noise"}function Vo(){const e=Number(Vn()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}const zo="__ihab_core_tts_config__";function Fa(){return globalThis[zo]?.urlResolver??null}function Cm(){return globalThis[zo]?.fallbackUrlResolver??null}const gm="__ihab_core_pronunciation_resolver__";function bm(){return globalThis[gm]??null}let on=null;const zn=new WeakMap,Oa=new WeakMap,Ha=new WeakMap;let Wo=!1;const qo=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function ym(){if(Wo||typeof document>"u")return;Wo=!0;const e=()=>{try{on&&on.state!=="running"&&on.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function Uo(){if(on)return on;try{const e=window.AudioContext||window.webkitAudioContext;return e?(on=new e,ym(),on):null}catch{return null}}function Va(){try{on?.resume()}catch{}}function za(e,n){const a=zn.get(n);if(a)return a;try{const r=e.createMediaElementSource(n),o=e.createGain(),s=e.createAnalyser();s.fftSize=1024,s.smoothingTimeConstant=.6,o.gain.value=qo(Oa.get(n)??n.volume),r.connect(o),o.connect(s),o.connect(e.destination);try{n.volume=1}catch{}const l={gain:o,analyser:s};return zn.set(n,l),l}catch{return null}}function oa(e){if(!e)return Promise.resolve(null);const n=zn.get(e);if(n)return Promise.resolve(n.analyser);const a=Uo();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(za(a,e)?.analyser??null);const r=Ha.get(e);if(r)return r;const o=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?za(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Ha.delete(e)});return Ha.set(e,o),o}function vm(e){if(!e)return null;const n=zn.get(e);if(n)return n.analyser;const a=Uo();return a?a.state==="running"?za(a,e)?.analyser??null:(oa(e),null):null}function sn(e,n){const a=qo(n);Oa.set(e,a);const r=zn.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const o=r.gain.gain;try{const s=r.gain.context.currentTime;o.cancelScheduledValues(s),o.setTargetAtTime(a,s,.01)}catch{try{o.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function sa(e){return Oa.get(e)??e.volume}function xm(e,n){e.getFloatTimeDomainData(n);let a=0;for(let r=0;r<n.length;r++){const o=n[r];a+=o*o}return Math.sqrt(a/n.length)}const _m="__ihab_core_image_config__";function Dn(){return globalThis[_m]??null}const Go="word_image_existence_map_v1";let xn=null;const ia=new Map;function wm(){if(xn)return xn;try{const e=typeof localStorage<"u"?localStorage.getItem(Go):null;xn=e?JSON.parse(e):{}}catch{xn={}}return xn}let Wa=null;function km(){Wa||(Wa=setTimeout(()=>{Wa=null;try{typeof localStorage<"u"&&xn&&localStorage.setItem(Go,JSON.stringify(xn))}catch{}},200))}function Am(e,n){return`${e}_${n??1}`}async function Ko(e,n){const a=wm(),r=Am(e,n);if(r in a)return a[r];if(ia.has(r))return ia.get(r);const o=Dn();if(!o)return!1;const s=o(e,n);if(!s)return!1;const l=fetch(s,{method:"HEAD",signal:AbortSignal.timeout(8e3)}).then(c=>c.ok).catch(()=>!1).then(c=>(a[r]=c,km(),ia.delete(r),c));return ia.set(r,l),l}const Zo=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],Yo=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],Nm=["","\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 Wn(e){if(!e)return null;const n=e.charCodeAt(0)-44032;return n<0||n>=11172?null:{cho:Math.floor(n/588),jung:Math.floor(n%588/28),jong:n%28}}function Bm(e){const n=Wn(e[0]||"");return n?Zo[n.cho]:""}function Sm(e,n){if(!n)return!0;const a=[...n],r=c=>Zo.includes(c),o=c=>Yo.includes(c),s=a.map(c=>r(c)?"cho":o(c)?"jung":Wn(c)?"syl":"other");if(s.includes("other"))return e.includes(n);const l=[...e];for(let c=0;c+a.length<=l.length;c++){let u=!0;for(let d=0;d<a.length;d++){const h=l[c+d],p=s[d];if(p==="cho"){if(Bm(h)!==a[d]){u=!1;break}}else if(p==="jung"){const m=Wn(h);if(!m||Yo[m.jung]!==a[d]){u=!1;break}}else{const m=Wn(a[d]);if(m&&m.jong===0){const g=Wn(h);if(!g||g.cho!==m.cho||g.jung!==m.jung){u=!1;break}}else if(h!==a[d]){u=!1;break}}}if(u)return!0}return!1}const Dm={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(Dm).map(([e,n])=>[n.join(""),Nm[Number(e)]]));const jm="word_pair_index_v2",Em="word_pair_index_sig_v2";let la=null;function Tm(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(jm),n=localStorage.getItem(Em);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function Mm(){if(la)return la;const e=Tm();return e?(la=e.index,e.sig,la):null}const Lm={\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"}},qa=/[ㄱ-ㅎ]/,$m=/[ㅏ-ㅣ]/;function Xo(e){for(let n=e.length-1;n>=0;n--){const a=e[n],r=a.charCodeAt(0);if(r>=44032&&r<=55203||qa.test(a)||$m.test(a))return a}return null}function Rm(e){const n=Xo(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":qa.test(n)?"\uC774":"\uAC00"}function Pm(e){return`${e}${Rm(e)}`}function Im(e){const n=Xo(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":qa.test(n)?"\uC744":"\uB97C"}function Fm(e){return`${e}${Im(e)}`}function Om(e,n,a){const r=e.slice(),[o]=r.splice(n,1);return r.splice(a,0,o),r}function qn(e,n=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const o=Math.floor(n()*(r+1));[a[r],a[o]]=[a[o],a[r]]}return a}function Jo(e,n="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"){if(e instanceof Error)return e.message||n;if(typeof e=="string")return e||n;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 n}const Hm="__ihab_core_word_pool__";function Vm(){return globalThis[Hm]??null}const Qo=globalThis;function es(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function zm(e){es("time",()=>Qo.__ihabTrainingTimeLogger?.(e))}function Wm(e){es("completion",()=>Qo.__ihabTrainingCompletionLogger?.(e))}function Ht(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function qm(e){for(const n of["correct","isCorrect","heard","judgement"])if(typeof e[n]=="boolean")return e[n];return e.score===1?!0:e.score===0?!1:null}function Um(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:Ht(r.contextCode)??Ht(r.itemId)??Ht(r.itemCode)??Ht(r.id),question:Ht(r.question)??Ht(r.sentence)??Ht(r.word)??Ht(r.targetSyllable),answer:Ht(r.answer),selected:Ht(r.selectedText)??Ht(r.selected),correct:qm(r)}}):[]}const Ua=globalThis;async function Gm(){try{return await Ua.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function Km(e){const n=a=>{};try{const a=Ua.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function Ga(e){try{Ua.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function Zm(e){if(typeof document<"u")try{const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.opacity="0",n.style.pointerEvents="none",document.body.appendChild(n),n.focus(),n.select(),n.setSelectionRange(0,e.length);const a=document.execCommand("copy");if(document.body.removeChild(n),a)return!0}catch{}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}function Ym(){return Ka(new Date)}function Ka(e){if(e==null||e==="")return"";const n=e instanceof Date?e:new Date(e);return isNaN(n.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n)}function ts(e,n){if(!e)return"";const a=new Date(e).getTime();if(Number.isNaN(a))return"";const r=Math.max(0,Math.floor((Date.now()-a)/1e3)),o=Math.floor(r/60),s=Math.floor(o/60),l=Math.floor(s/24),c=Math.floor(l/7),u=Math.floor(l/30),d=Math.floor(l/365);return o<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):o<60?n("store.time.minutesAgo",{n:o}):s<24?n("store.time.hoursAgo",{n:s}):l<7?n("store.time.daysAgo",{n:l}):c<5?n("store.time.weeksAgo",{n:c}):l<365?n("store.time.monthsAgo",{n:Math.min(u,11)}):n("store.time.yearsAgo",{n:d})}function ns(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:o=!1,fallback:s="\u2014"}=n;if(!e)return s;const l=Ka(e instanceof Date?e:String(e));if(!l)return s;const[c,u,d]=l.split("-"),h=r?u:String(Number(u)),p=r?d:String(Number(d));return`${c}${a}${h}${a}${p}${o?".":""}`}function Un(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function as(e,n){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),o=Number(a[2]),s=a[1].padStart(2,"0");return o===0?n("date.timeH",{h:r,hh:s,mm:a[2]}):n("date.timeHM",{h:r,hh:s,m:o,mm:a[2]})}function Za(e){return(e??0).toLocaleString("ko-KR")}const Xm=[{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"}]}],Jm=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];function rs(){return Xm}function Qm(){return Jm}const e0=[],t0=[],n0=[],a0=[];function r0(){return{LISTEN_IN_NOISE:e0,SHORT_STORY:t0,LONG_STORY:n0,ORDERING_SENTENCE:a0}}const o0=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}];let ca=null,os=null,ss=null;function s0(){const e=Vm();if(e&&e.entries.length>0){const n=Mm();if(ca&&os===e&&ss===n)return ca;const a=new Set,r=[];for(const o of e.entries)!o.word||a.has(o.word)||(a.add(o.word),r.push({w:o.word,s:o.syllables,p:n?.[o.word]?[...n[o.word].cho??[],...n[o.word].jung??[],...n[o.word].jong??[]]:[],pron:o.pronunciation||o.word,grade:o.grade}));return ca=r,os=e,ss=n,ca}return[]}new Proxy([],{get(e,n){const a=s0(),r=a[n];return typeof r=="function"?r.bind(a):r}});const i0="0.128.0";function l0(e){return typeof window>"u"?"":cm.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function c0(e){const[n,a]=i.useState(null),[r,o]=i.useState(null),[s,l]=i.useState(null),[c,u]=i.useState(null);return i.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),o(null),l(null);return}const d=e.split("/").pop();let h=e;d&&(e.startsWith("/")?h=Ia(e):/^(Logo|Symbol)/i.test(d)?h=Ia(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),h=e)),a(h)},[e]),i.useEffect(()=>{if(!n)return;let d=!1;async function h(){try{let p=await fetch(n);p.ok||(p=await fetch(n));const m=p.headers.get("content-type")||"";if(d)return;if(m.includes("svg")){o("mask");return}if(m.startsWith("image/")){o("img");return}const g=await fetch(n);if(!g.ok)throw new Error("not ok");const C=await g.text();if(d)return;if(/^\s*<svg[\s>]/i.test(C)){const f=l0(C);if(!f){o("none");return}l(f),o("inline");return}o("none")}catch{d||o("none")}}return h(),()=>{d=!0}},[n]),i.useEffect(()=>{let d=!1,h=null;return r==="mask"&&n&&fetch(n).then(p=>{if(!p.ok)throw new Error("fetch failed");return p.blob()}).then(p=>{d||(h=URL.createObjectURL(p),u(h))}).catch(()=>{d||o("img")}),()=>{d=!0,h&&URL.revokeObjectURL(h),u(null)}},[r,n]),{iconToUse:n,mode:r,svgText:s,blobUrl:c}}function Oe(e){const{icon:n,label:a,className:r,imgClassName:o,maskClassName:s,svgClassName:l,wrapperStyle:c,size:u}=e||{},d=r??"iconRenderer-icon",h=o??"iconRenderer-icon-image",p=s??"iconRenderer-icon-mask",m=l??"iconRenderer-icon-svg",g=typeof n=="string"?n:null,C=Sh(g),{iconToUse:f,mode:b,svgText:y,blobUrl:w}=c0(g),_=(A,M={})=>t.jsx("span",{className:d,style:c,...M,children:A}),v=(A,M={})=>t.jsx("img",{src:A,alt:typeof a=="string"?a:a?String(a):"",className:h,...M});if(!n)return null;if(typeof n!="string")return _(n);if(n==="none")return _(t.jsx("span",{className:m,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(C)try{return _(i.createElement(C,{className:m,size:typeof u=="number"?u:20}),{"aria-hidden":"true"})}catch{}if(f&&f.endsWith(".svg")){if(b==="mask"){const A={"--icon-url":w?`url(${w})`:`url(${f})`};return _(t.jsx("span",{className:p,style:A}),{"aria-hidden":"true"})}return b==="img"?_(v(f,{onError:A=>{A.currentTarget.onerror=null,A.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):b==="inline"?_(t.jsx("span",{className:m,dangerouslySetInnerHTML:y?{__html:y}:void 0}),{"aria-hidden":"true"}):_(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return v(Ia(n),{style:c,onError:A=>{A.currentTarget.onerror=null,A.currentTarget.style.display="none"}});const B=typeof u=="number"?u:20,x=`<svg width="${B}" height="${B}" 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 _(t.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:x}}),{"aria-hidden":"true"})}function u0({icon:e,emoji:n,title:a,message:r,hint:o,action:s,compact:l,className:c}){return t.jsxs("div",{className:ye("empty-state",l&&"empty-state--compact",c),children:[n&&t.jsx("span",{className:"empty-state__emoji",children:n}),e&&t.jsx(Oe,{icon:e,className:"empty-state__icon"}),a&&t.jsx("p",{className:"empty-state__title body-2",children:a}),r&&t.jsx("p",{className:"empty-state__message body-3",children:r}),o&&t.jsx("p",{className:"empty-state__hint caption-1",children:o}),s&&t.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:s.onClick,children:[s.icon&&t.jsx(Oe,{icon:s.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:s.label})]})]})}function d0({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:o,className:s}){const{t:l}=pe.useTranslation();return t.jsxs("div",{className:ye("empty-state","error-state",s),role:"alert",children:[t.jsx(Oe,{icon:a,className:"empty-state__icon error-state__icon"}),t.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),n&&t.jsx("p",{className:"empty-state__hint caption-1",children:n}),r&&t.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[t.jsx(Oe,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:o??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function p0({icon:e,title:n,description:a,cta:r,tone:o="main",disabled:s=!1,onClick:l,className:c=""}){const u=()=>{s||l?.()};return t.jsx("section",{role:"button",tabIndex:s?-1:0,"aria-disabled":s||void 0,"aria-label":n,onClick:u,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),u())},className:ye("action-card",`action-card--${o}`,s&&"action-card--disabled",c),children:t.jsxs("div",{className:"action-card__body",children:[t.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:t.jsx(Oe,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{className:"action-card__title",children:n}),t.jsx("p",{className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(Oe,{icon:"arrow-right",size:18})})]})]})})}function h0({as:e="div",className:n="",children:a,storage:r,...o}){r&&mm({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=ye("ihabdevteam-core-scope",n);return t.jsx(e,{className:s,...o,children:a})}function m0({title:e="",lines:n=[],notices:a=null,children:r,variant:o="default",dismissible:s=!1,className:l=""}){const{t:c}=pe.useTranslation(),[u,d]=i.useState(!1),h=i.useCallback(()=>d(!0),[]);if(u)return null;const p=`notice-box notice-box--${o} body-2 ${l}`.trim();if(a&&Array.isArray(a)&&a.length)return t.jsx("div",{className:p,role:"note",children:a.map((g,C)=>t.jsxs("div",{className:"notice-box__inner",children:[g.title?t.jsx("span",{className:"notice-box__title body-3",children:g.title}):null,t.jsx("div",{className:"notice-box__body",children:g.lines&&g.lines.length?t.jsx("div",{children:g.lines.map((f,b)=>t.jsx("span",{className:"notice-box__line body-3",children:f},b))}):g.children??null})]},C))});const m=e||n.length?t.jsxs("div",{className:"notice-box__inner",children:[e?t.jsx("span",{className:"notice-box__title body-1",children:e}):null,t.jsx("div",{className:"notice-box__body",children:n.length?t.jsx("ul",{children:n.map((g,C)=>t.jsx("li",{className:"notice-box__line",children:g},C))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{className:p,role:"note",children:[m,s&&t.jsx("button",{className:"notice-box__dismiss",onClick:h,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}function Ya(e,n=!0){i.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=o=>{if(o.key!=="Tab")return;const s=Array.from(a.querySelectorAll(Gn)).filter(u=>!u.closest('[aria-hidden="true"]'));if(!s.length){o.preventDefault();return}const l=s[0],c=s[s.length-1];o.shiftKey&&document.activeElement===l?(o.preventDefault(),c.focus()):!o.shiftKey&&document.activeElement===c&&(o.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const Gn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';function ln(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:o=20,onClose:s,closeOnOutsideClick:l=!0,className:c="",role:u="dialog",ariaLabel:d="",children:h,backdrop:p=!1,isMobilePopup:m=!1,useBorder:g=!0,header:C}=e||{},f=i.useRef(null),[b,y]=i.useState({position:"fixed",left:0,top:-9999}),[w,_]=i.useState(!1),[v,B]=i.useState("bottom"),[x,A]=i.useState(!1),[M,k]=i.useState(!1),j=!n&&!a,H=i.useCallback((D=!1)=>{if(M&&m)return;const z=a?a.getBoundingClientRect():n;if(!z||!f.current)return;const Z=f.current,{offsetWidth:Y,offsetHeight:J}=Z,S=window.innerWidth,L=window.innerHeight,$=S-z.right,F=z.left,O=z.top,X=L-z.bottom;let I=0,U=0,q="top";if(O>=J+r)q="top",U=z.top-r-J,I=z.left+z.width/2-Y/2;else if(X>=J+r)q="bottom",U=z.bottom+r,I=z.left+z.width/2-Y/2;else if($>=Y+r)q="right",I=z.right+r,U=z.top+z.height/2-J/2;else if(F>=Y+r)q="left",I=z.left-r-Y,U=z.top+z.height/2-J/2;else{const ve=Math.max(O,X,$,F);ve===O?(q="top",U=z.top-r-J,I=z.left+z.width/2-Y/2):ve===X?(q="bottom",U=z.bottom+r,I=z.left+z.width/2-Y/2):ve===$?(q="right",I=z.right+r,U=z.top+z.height/2-J/2):(q="left",I=z.left-r-Y,U=z.top+z.height/2-J/2)}const le=Number(o)||8;I=Math.min(Math.max(I,le),S-Y-le),U=Math.min(Math.max(U,le),L-J-le);const de=Math.round(I),Ce=Math.round(U);D&&f.current?(f.current.style.left=`${de}px`,f.current.style.top=`${Ce}px`,f.current.dataset.placement=q):(B(q||v),y({position:"fixed",left:de,top:Ce}),A(!0))},[M,m,a,n,r,o,v]);i.useLayoutEffect(()=>{if(j)return;if(M&&m){y({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),A(!0);return}H();const D=requestAnimationFrame(()=>H());return()=>cancelAnimationFrame(D)},[n,a,r,h,o,j,M,m,H]),i.useEffect(()=>{if(j||M&&m||!f.current||typeof ResizeObserver>"u")return;const D=new ResizeObserver(()=>{n&&H()});return D.observe(f.current),()=>D.disconnect()},[n,h,o,j,M,m,H]),i.useEffect(()=>{if(j||M&&m)return;const D=()=>H(!0);return window.addEventListener("resize",D),document.addEventListener("scroll",D,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",D),document.removeEventListener("scroll",D,{capture:!0})}},[n,r,h,o,j,M,m,H]),i.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const D=window.matchMedia("(max-width: 768px)"),z=()=>k(!!D.matches);z();try{D.addEventListener?D.addEventListener("change",z):D.addListener(z)}catch{try{D.addListener(z)}catch{}}return()=>{try{D.removeEventListener?D.removeEventListener("change",z):D.removeListener(z)}catch{}}},[]);const R=i.useRef(!1),E=i.useCallback((D=!1)=>{if(!(w||R.current)){if(R.current=!0,D){_(!0);try{s&&s()}catch{}return}_(!0),setTimeout(()=>{s&&s()},200)}},[w,s,_]);i.useEffect(()=>{const D=Y=>{const J=f.current;if(!J)return;const S=Y.target;if(S&&!J.contains(S)){try{if(S.closest&&S.closest("[data-tooltip-ignore]"))return}catch{}l&&E(!0)}},z=Y=>{const J=f.current;if(!J)return;const S=Y.target;if(S&&!J.contains(S)){try{if(S.closest&&S.closest("[data-tooltip-ignore]"))return}catch{}l&&E(!0)}},Z=Y=>{if(Y.key==="Escape"){Y.stopPropagation(),E();return}if(Y.key==="Tab"){const J=f.current;if(!J)return;const S=J.querySelectorAll(Gn);if(!S||S.length===0)return;const L=S[0],$=S[S.length-1],F=document.activeElement;Y.shiftKey?F===L&&(Y.preventDefault(),$.focus()):F===$&&(Y.preventDefault(),L.focus())}};return document.addEventListener("pointerdown",D,!0),document.addEventListener("click",z,!0),document.addEventListener("keydown",Z),()=>{document.removeEventListener("pointerdown",D,!0),document.removeEventListener("click",z,!0),document.removeEventListener("keydown",Z)}},[s,l,E]),i.useEffect(()=>{const D=()=>{E(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",D),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",D)}},[E]);const P=t.jsxs("div",{ref:f,className:`tooltip-content ${j?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${w?"is-closing":""} ${c} ${M&&m?"is-mobile":""}`,role:u,"aria-label":d||void 0,style:j?{}:{...b,visibility:x?"visible":"hidden"},tabIndex:-1,"data-placement":v,"data-left":j?"":b.left,"data-top":j?"":b.top,"data-anchor-left":n?Math.round(n.left):"","data-anchor-top":n?Math.round(n.top):"","data-anchor-width":n?Math.round(n.width):"","data-anchor-height":n?Math.round(n.height):"",children:[C!=null&&t.jsx("div",{className:"tooltip-content__header h5",children:C}),h]});if(j||typeof document>"u")return P;if(p||M&&m){const D=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&E(!0)}}),P]});return Pt.createPortal(D,document.body)}return Pt.createPortal(P,document.body)}function cn(e){const{anchorRect:n,text:a,offset:r=8,onClose:o,className:s="",ariaLabel:l}=e||{};return a?t.jsx(ln,{anchorRect:n,offset:r,onClose:o,closeOnOutsideClick:!1,className:`tooltip-info ${s}`,ariaLabel:l||a,children:t.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function _n(e){const{t:n}=pe.useTranslation(),{anchorRect:a,title:r,items:o,activeIndex:s=-1,showIndex:l=!0,onClose:c,offset:u=12,closeOnOutsideClick:d=!0}=e||{},h=(Array.isArray(o)?o:o?[o]:[]).map(p=>typeof p=="string"?{text:p}:p);return!h.length&&!r?null:t.jsx(ln,{anchorRect:a,offset:u,onClose:c,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||n("tooltip.description","\uC124\uBA85"),children:t.jsxs("div",{className:"tooltip-description__box",children:[r&&t.jsx("span",{className:"tooltip-description__title body-2",children:r}),t.jsx("ol",{className:"tooltip-description__items",children:h.map((p,m)=>t.jsxs("li",{className:`tooltip-description__item body-3${m===s?" tooltip-description__item--active":""}`,children:[l&&h.length>1&&t.jsxs("span",{className:"tooltip-description__index button-1",children:[m+1,"."]}),p.color&&t.jsx("span",{className:"tooltip-description__dot",style:{background:p.color},"aria-hidden":"true"}),t.jsx("span",{children:p.text})]},m))})]})})}function ne(e){const{size:n=48,type:a,htmlType:r,href:o,target:s,rel:l,icon:c,rightIcon:u,label:d,count:h,subLabel:p,children:m,ariaLabel:g,variant:C="default",align:f="center",selected:b,toggleable:y=!1,disabled:w=!1,useLabel:_=!0,useBorder:v=!0,useBG:B=!0,useDisabledCovered:x=!1,useDisabledInvisible:A=!1,width:M,minWidth:k,onClick:j,onDisabledClick:H,showTooltipInfo:R=!1,tooltipInfoText:E=null,tooltipDescription:P=null,iconSize:D="medium",iconColor:z,shape:Z="rounded",color:Y,className:J,...S}=e,L=typeof n=="string"&&isNaN(Number(n))?n.toLowerCase():String(Number(n)||48),$=L.match(/^\d+$/)?`button${L}`:`button-${L}`,F=Number(n),O=!isNaN(F)&&F<40?"button-2":"button-1",X=d??m,I=w||!!S.disabled,U=I?x?"disabled-covered":A?"disabled-invisibled":"disabled":C,q=U?`button--variant-${U}`:"",le=f?`button--align-${f}`:"",de=Z?`button--shape-${Z}`:"",Ce=typeof z=="string"&&z.startsWith("--")?`var(${z})`:z,ve={...M?{width:typeof M=="number"?`${M}px`:M}:{},...k?{minWidth:typeof k=="number"?`${k}px`:k}:{},...v?{}:{"--button-border":I?"0":"1px solid transparent"},...Ce?{"--button-icon-color":Ce}:{},...Y?{"--color-main":Y}:{}},he=_===!1?"":X,T=Array.isArray(he)?he.length>0:!!he,W=!!u,Q=a??(T||c||W?"bar":"dot"),_e=`${$}--${Q}`,ue=i.useRef(null),ie=i.useRef(I),[ae,se]=i.useState(!!b),[Se,He]=i.useState(!1),[Ve,Re]=i.useState(null),Ee=i.useCallback(()=>He(!1),[]);i.useEffect(()=>{typeof b=="boolean"&&se(b)},[b]),i.useEffect(()=>{if(ie.current&&!I&&ue.current){const Me=ue.current;Me.blur(),Me.style.pointerEvents="none";const tt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{ue.current&&(ue.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(tt)}ie.current=I},[I]);const je=typeof b=="boolean"?!!b:ae,Ae=y||typeof b=="boolean"?je?"true":"false":void 0,ze=ye("button",$,_e,q,le,de,je?"is-selected":null,B?null:"button--no-bg",J),at=`button__icon button__icon--${D}`,ge=Array.isArray(p)?p:p!==void 0?[p]:[],Pe=()=>{if(Array.isArray(he))return he.map((tt,ft)=>{const Ye=ge[ft];return t.jsxs("span",{className:`button__label-text${Ye!==void 0?" button__label-text--has-sub":""}`,children:[tt,Ye!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:Ye})]},ft)});const Me=p!==void 0;return t.jsxs("span",{className:`button__label-text${Me?" button__label-text--has-sub":""}`,children:[he,h!=null&&t.jsx("span",{className:"button__count",children:h}),Me&&t.jsx("span",{className:"button__sub-label-text caption-1",children:p})]})},$e=Me=>{I||(typeof S.onMouseLeave=="function"&&S.onMouseLeave(Me),typeof b!="boolean"&&se(!1),Me.currentTarget.blur())},Ke=Me=>{if(I){H?.(Me);return}typeof b!="boolean"&&y&&se(tt=>!tt),j?.(Me)},Ze=i.useCallback(()=>{(R||P)&&(He(!0),Re(ue.current?.getBoundingClientRect()??null))},[R,P]),Ue=i.useCallback(()=>{(R||P)&&(He(!1),Re(null))},[R,P]),Ie={...S};delete Ie.disabled,delete Ie.className,delete Ie.faded,delete Ie.useFaded,delete Ie.loading,delete Ie.onMouseLeave,delete Ie.onPointerEnter,delete Ie.onPointerLeave,delete Ie.onFocus,delete Ie.onBlur,I&&(Object.keys(Ie).forEach(Me=>{/^on[A-Z]/.test(Me)&&typeof Ie[Me]=="function"&&delete Ie[Me]}),Ie["aria-disabled"]="true");const dt=(typeof R=="string"?R:null)??(typeof E=="string"?E:null)??(typeof g=="string"?g:null)??(typeof X=="string"?X:null)??void 0,ct=typeof g=="string"?g:typeof X=="string"?X:dt,qe=(Me,tt)=>t.jsx(Oe,{icon:Me,label:tt??ct,className:at,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),ot=()=>Q==="dot"?t.jsxs(t.Fragment,{children:[qe(c),T&&t.jsx("span",{className:`button__label ${O}`,children:Pe()})]}):f==="center"&&c?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:qe(c)}),T&&t.jsx("span",{className:`button__label ${O}`,children:Pe()})]}),W&&t.jsx("span",{className:"button__right",children:qe(u)})]}):t.jsxs(t.Fragment,{children:[c&&t.jsx("span",{className:"button__left",children:qe(c,g??X)}),T&&t.jsx("span",{className:`button__label ${O}`,children:Pe()}),W&&t.jsx("span",{className:"button__right",children:qe(u)})]}),Te=!!o&&!I;return t.jsxs(t.Fragment,{children:[t.jsx(Te?"a":"button",{...Ie,ref:ue,...Te?{href:o,target:s,rel:l??(s==="_blank"?"noreferrer":void 0)}:{type:r,disabled:I&&!H},className:ze,"aria-pressed":Ae,"aria-label":ct,"aria-disabled":Te&&I?!0:void 0,style:ve,onClick:Ke,onMouseLeave:$e,onPointerEnter:Me=>{Ze(),!I&&typeof S.onPointerEnter=="function"&&S.onPointerEnter(Me)},onPointerLeave:Me=>{Ue(),!I&&typeof S.onPointerLeave=="function"&&S.onPointerLeave(Me)},onFocus:Me=>{Ze(),!I&&typeof S.onFocus=="function"&&S.onFocus(Me)},onBlur:Me=>{$e(Me),Ue(),!I&&typeof S.onBlur=="function"&&S.onBlur(Me)},children:ot()}),Se&&P?t.jsx(_n,{anchorRect:Ve,title:P.title,items:P.items,onClose:Ee}):Se&&dt?t.jsx(cn,{anchorRect:Ve,text:dt,onClose:Ee}):null]})}function rt(e,n,a){const r=i.useRef(null);return i.useLayoutEffect(()=>{const o=r.current?.parentElement??null;return n(o,e),()=>a(o)},[e,n,a]),r}const Kn={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},Xa=new WeakMap;function is(e){if(e)return Xa.get(e)}function bt(e,n){e&&(e.style.setProperty(Kn.title,n.title),e.style.setProperty(Kn.description,n.description),Xa.set(e,n))}function yt(e){e&&(e.style.removeProperty(Kn.title),e.style.removeProperty(Kn.description),Xa.delete(e))}const ls={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function cs(){const e=rt(ls,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const us={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function ds(){const e=rt(us,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const ps={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function hs(){const e=rt(ps,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const ms={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function fs(){const e=rt(ms,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Cs={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function gs(){const e=rt(Cs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const bs={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function ys(){const e=rt(bs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const vs={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function xs(){const e=rt(vs,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const _s={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ws(){const e=rt(_s,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const ks={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function As(){const e=rt(ks,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Ns={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Bs(){const e=rt(Ns,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Ss={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Ds(){const e=rt(Ss,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:t.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const js={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Es(){const e=rt(js,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Ts={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Ms(){const e=rt(Ts,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Ls={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function $s(){const e=rt(Ls,bt,yt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const f0=[{key:"main",label:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"soft",label:"\uC18C\uD504\uD2B8",textTone:"dark"},{key:"sub",label:"\uC11C\uBE0C \uCEEC\uB7EC",textTone:"light"},{key:"deep",label:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"softSub",label:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",textTone:"dark"},{key:"warm",label:"\uC6DC(\uAC15\uC870)",textTone:"dark"},{key:"dark",label:"\uB2E4\uD06C",textTone:"light"},{key:"radial",label:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"diagonal",label:"\uB300\uAC01\uC120 \uD328\uD134",textTone:"dark"},{key:"dots",label:"\uB3C4\uD2B8 \uD328\uD134",textTone:"dark"},{key:"outline",label:"\uC544\uC6C3\uB77C\uC778",textTone:"dark"},{key:"success",label:"\uC131\uACF5/\uC644\uB8CC",textTone:"light"},{key:"naver",label:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",textTone:"light"},{key:"instagram",label:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4",textTone:"light"}],Rs={main:cs,soft:ds,sub:hs,deep:fs,softSub:gs,warm:ys,dark:xs,radial:ws,diagonal:As,dots:Bs,outline:Ds,success:Es,naver:Ms,instagram:$s};function Ps({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:o=.1,lineHeightRatio:s=1.4}={}){const l=b=>Math.max(a,Math.min(r,Number(b))),[c,u]=i.useState(()=>{try{const b=localStorage.getItem(e),y=b?Number(b):1;return Number.isFinite(y)?y:1}catch{return 1}});i.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const d=b=>{u(typeof b=="function"?y=>l(b(y)):l(b))},h=()=>d(b=>+(b+o).toFixed(6)),p=()=>d(b=>+(b-o).toFixed(6)),m=c<r-Number.EPSILON,g=c>a+Number.EPSILON,C=Math.round(n*c),f=Math.round(C*s);return{scale:c,setScale:d,increase:h,decrease:p,canIncrease:m,canDecrease:g,fontSize:C,lineHeight:f}}const Is=i.createContext(null);function C0(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}function Xt(e){const n=i.useContext(Is),a=s=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(s).matches,[r,o]=i.useState(a(e));return i.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const s=window.matchMedia(e),l=u=>o(u.matches),c=s;return c.addEventListener?c.addEventListener("change",l):c.addListener&&c.addListener(l),o(s.matches),()=>{c.removeEventListener?c.removeEventListener("change",l):c.removeListener&&c.removeListener(l)}},[e]),n&&typeof n.mobile=="boolean"&&C0(e)?n.mobile:r}function Ja(e){const n=i.useRef(e);return i.useEffect(()=>{n.current=e}),n}function Fs(e,n){const a=Ja(n);i.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const Qa=" \xB7 ",Os=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Qa)?e.split(Qa).pop()??e:e})(),g0=i.createContext(!1);function b0(e){const n=i.useContext(g0);i.useEffect(()=>{if(n||typeof e!="string"||!e)return;const a=document.title;return document.title=Os?`${e}${Qa}${Os}`:e,()=>{document.title=a}},[e,n])}const Hs=[{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"}];function y0(e,n,a){const{t:r}=pe.useTranslation(),[o,s]=i.useState(()=>{const C=a?.initialPageSize;return C&&Hs.some(f=>f.value===C)?C:"25"}),[l,c]=i.useState(1),[u,d]=i.useState(n);u!==n&&(d(n),l!==1&&c(1));const h=i.useMemo(()=>Hs.map(C=>({...C,label:r("visits.showN",{n:C.value})})),[r]),p=i.useCallback(C=>{s(C),c(1)},[]),m=Math.max(1,Math.ceil(e.length/Number(o))),g=Math.min(l,m);return{pageRows:i.useMemo(()=>e.slice((g-1)*Number(o),g*Number(o)),[e,g,o]),pageSizeProps:{options:h,value:o,onChange:p},paginationProps:{page:g,total:m,onChange:c},setPage:c}}function v0(){const[e,n]=i.useState(null),a=i.useCallback(o=>{n(s=>s?.key===o?{key:o,asc:!s.asc}:{key:o,asc:!0})},[]),r=i.useCallback((o,s)=>({label:o,sortDir:e?.key===s?e.asc?"asc":"desc":null,onClick:()=>a(s)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}const un="\uC804\uCCB4";Object.fromEntries(Object.entries(Lm).map(([e,{nucleus:n}])=>[e,n]));const x0={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"})},_0={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"})},w0={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 k0(e,n){if("place"in n)return x0[n.place](e);const a=_0[n.vowel](e);return n.glide?`${a} \xB7 ${w0[n.glide](e)}`:a}const A0=(e,{defaultValue:n})=>n,Vs=(e,n)=>({jamos:e,phonetic:n,tooltip:k0(A0,n)}),Jt=(e,n)=>n.map(a=>Vs([a],{place:e})),pt=(e,n,a)=>Vs([...e],a?{vowel:n,glide:a}:{vowel:n}),er={cho:[Jt("labial",["\u3142","\u3143","\u314D","\u3141"]),Jt("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Jt("alveolar",["\u3145","\u3146"]),Jt("palatal",["\u3148","\u3149","\u314A"]),Jt("velar",["\u3131","\u3132","\u314B"]),Jt("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:[Jt("labial",["\u3142","\u3141"]),Jt("alveolar",["\u3137","\u3134","\u3139"]),Jt("velar",["\u3131","\u3147"])]},N0=e=>e===B0?[]:Array.from(e),B0="__NO_CODA__",tr=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:o})=>({v:a.join(""),phonetic:r,tooltip:o}))),zs={cho:tr(er.cho),jung:tr(er.jung),jong:tr(er.jong)};zs.jung.flat().forEach(({v:e})=>{for(const n of N0(e));}),new Set(zs.cho.flat().map(e=>e.v));const jn=[];let ua=!1;function Ws(e){if(e.key!=="Escape"||e.defaultPrevented)return;const n=jn[jn.length-1];n&&(e.stopPropagation(),n())}function nr(e){return jn.push(e),!ua&&typeof document<"u"&&(document.addEventListener("keydown",Ws),ua=!0),()=>{const n=jn.lastIndexOf(e);n>=0&&jn.splice(n,1),jn.length===0&&ua&&typeof document<"u"&&(document.removeEventListener("keydown",Ws),ua=!1)}}function S0(e,n=!0){const a=Ja(e);i.useEffect(()=>{if(n)return nr(()=>{a.current?.()})},[n,a])}function da(){const[e,n]=i.useState(null),a=i.useCallback(s=>n(s.getBoundingClientRect()),[]),r=i.useCallback(()=>n(null),[]),o=i.useCallback(s=>{const l=s.getBoundingClientRect();n(c=>c?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:o}}function qs(e="warning"){const[n,a]=i.useState(""),[r,o]=i.useState(e),[s,l]=i.useState(0),c=i.useCallback((p,m)=>{o(m),a(p),l(g=>g+1)},[]),u=i.useCallback(p=>c(p,"warning"),[c]),d=i.useCallback(p=>c(p,"normal"),[c]),h=i.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:s,showToast:c,showWarning:u,showNormal:d,clearToast:h}}function Zn({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[o,s]=i.useState(!1),[l,c]=i.useState({}),u=i.useRef(null),d=i.useRef(null),h=i.useCallback(()=>{u.current&&c(e(u.current.getBoundingClientRect()))},[e]);i.useEffect(()=>{if(!o)return;h();const g=y=>{const w=y.target;r&&w.closest?.(r)||u.current?.contains(w)||d.current?.contains(w)||s(!1)};document.addEventListener("mousedown",g);const C=y=>{d.current?.contains(y.target)||(n==="reposition"?h():n==="close"&&s(!1))};n!=="ignore"&&window.addEventListener("scroll",C,!0);const f=()=>{a==="reposition"?h():a==="close"&&s(!1)};a!=="ignore"&&window.addEventListener("resize",f);const b=y=>{y.key==="Escape"&&s(!1)};return document.addEventListener("keydown",b),()=>{document.removeEventListener("mousedown",g),n!=="ignore"&&window.removeEventListener("scroll",C,!0),a!=="ignore"&&window.removeEventListener("resize",f),document.removeEventListener("keydown",b)}},[o,h,n,a,r]);const p=i.useCallback(()=>s(g=>!g),[]),m=i.useCallback(()=>s(!1),[]);return{open:o,setOpen:s,toggle:p,close:m,style:l,triggerRef:u,menuRef:d}}function D0(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:o,playMs:s=1100,feedbackMs:l=1500}={}){const[c,u]=i.useState([]),[d,h]=i.useState(0),[p,m]=i.useState("idle"),[g,C]=i.useState(null),[f,b]=i.useState([]),[y,w]=i.useState(null),[_,v]=i.useState(0),B=i.useRef(0),x=i.useCallback(S=>{B.current=typeof S=="function"?S(B.current):S,v(B.current)},[]),A=i.useRef(r),M=i.useRef(o);i.useEffect(()=>{A.current=r,M.current=o},[r,o]);const k=i.useRef([]),j=()=>{k.current.forEach(clearTimeout),k.current=[]},H=(S,L)=>{k.current.push(setTimeout(L,S))};i.useEffect(()=>()=>j(),[]);const R=c[d]?.id??null,E=i.useCallback(()=>{j(),m("playing"),b([]),w(null),x(0);let S=0;e.forEach((L,$)=>{H(S,()=>{h($),C(L.id),A.current?.(L)}),H(S+1e3,()=>{C(null),b(F=>[...F,L.id])}),S+=1300}),H(S,()=>{m("done"),M.current?.({score:0,total:e.length})})},[e,x]),P=i.useCallback((S,L)=>{if(L>=S.length){m("done"),M.current?.({score:B.current,total:S.length});return}h(L),w(null),m("playing"),C(S[L].id),A.current?.(S[L]),H(s,()=>{C(null),m("waiting")})},[s]),D=i.useCallback(()=>{j();const S=qn(e);u(S),x(0),b([]),P(S,0)},[e,P,x]),z=i.useCallback(()=>{n==="playback"?(u(e),E()):D()},[n,e,E,D]),Z=i.useCallback(()=>{j(),m("idle"),C(null),b([]),w(null),h(0),x(0),u([])},[x]);i.useEffect(()=>{a?z():Z()},[n,e.length,a]);const Y=i.useCallback(S=>{p!=="waiting"||n==="playback"||(w(S),S===c[d]?.id&&x(L=>L+1),n==="exam"?(m("playing"),H(400,()=>P(c,d+1))):(m("feedback"),H(l,()=>P(c,d+1))))},[p,n,c,d,P,l,x]),J=n==="playback"?e.length:c.length;return{bind:{activeSpeakerId:g,playedIds:f,selectedId:y,answerId:R,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:Y},index:d,total:J,score:_,phase:p,done:p==="done",start:z,reset:Z}}function j0({title:e,description:n,actionLabel:a,onAction:r,bg:o,color:s,size:l="medium",actionVariant:c,titleColor:u,descriptionColor:d,className:h=""}){const p=o??s??"main",m=i.useRef(null),[g,C]=i.useState("main"),f=Xt("(max-width: 767px)");i.useLayoutEffect(()=>{const w=m.current;w&&(u!==void 0&&w.style.setProperty("--promo-banner-bg-title",u),d!==void 0&&w.style.setProperty("--promo-banner-bg-description",d))},[u,d]),i.useLayoutEffect(()=>{const w=m.current;if(!w)return;const _=is(w);C(_?.actionVariant??"main")},[p]);const b=ye("promo-banner",`promo-banner--${l}`,h),y=Rs[p];return t.jsxs("div",{ref:m,className:b,role:"note",children:[t.jsx(y,{}),t.jsxs("div",{className:"promo-banner__text",children:[t.jsx("span",{className:`promo-banner__title ${l==="small"?"body-2":"h2"}`,children:e}),n&&t.jsx("span",{className:"promo-banner__description body-3",children:n})]}),a&&r&&t.jsx(ne,{size:40,variant:c??g,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...f?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function E0({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":o}){const{t:s}=pe.useTranslation(),l=o??s("topBanner.ariaLabel","\uBC30\uB108"),c=i.Children.toArray(e),u=c.length,[d,h]=i.useState(0),[p,m]=i.useState(!1),g=u>0?d%u:0;return i.useEffect(()=>{if(u<2||n<=0||p)return;const C=window.setInterval(()=>h(f=>(f+1)%u),n);return()=>window.clearInterval(C)},[u,n,p]),u===0?null:t.jsxs("section",{className:ye("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),onFocus:()=>m(!0),onBlur:()=>m(!1),children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${g*100}%)`},children:c.map((C,f)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":f!==g,...f!==g?{inert:!0}:{},children:C},f))})}),u>1&&t.jsx("div",{className:`top-banner__dots${(a?.[g]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((C,f)=>t.jsx("button",{type:"button",className:`top-banner__dot${f===g?" top-banner__dot--active":""}`,"aria-label":s("topBanner.dotAriaLabel",{count:u,index:f+1,defaultValue:`${u}\uAC1C \uC911 ${f+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":f===g,onClick:()=>h(f)},f))})]})}function T0({title:e,body:n,open:a=!1,onToggle:r,avatar:o,titleClassName:s="body-2",bodyClassName:l="body-2",className:c=""}){const{t:u}=pe.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),children:[t.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 h=d.currentTarget.closest('[role="list"]');if(!h)return;const p=Array.from(h.querySelectorAll("[data-accordion-header]")),m=p.indexOf(d.currentTarget);(d.key==="ArrowDown"?p[m+1]:p[m-1])?.focus()}},children:[o&&t.jsx("div",{className:"accordion-item__avatar",children:o}),t.jsx("div",{className:`accordion-item__title ${s}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(Oe,{icon:a?"chevron-up":"chevron-down",label:a?u("accordion.collapse","\uC811\uAE30"):u("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&t.jsx("div",{className:`accordion-item__body ${l}`,children:typeof n=="string"?t.jsx("p",{children:n}):n})]})}function M0({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:o}){const[s,l]=i.useState(n);return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,u)=>t.jsx(T0,{title:c.title,body:c.body,avatar:c.avatar,open:u===s,onToggle:()=>l(u===s?-1:u),bodyClassName:o},u))})}function L0(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("polyline",{points:"2,6 5,9 10,3"})})}function $0(){return t.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[t.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),t.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function R0(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:t.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function lt(e){const{type:n="bar",size:a,className:r="","aria-label":o}=e;if(n==="dot"){const{icon:_,number:v,position:B="top-right",onClick:x,animate:A=!1}=e,M=v!==void 0?"number":_??"check",k=typeof a=="number"?a:32,j=ye("circle-badge",`circle-badge--${M}`,`circle-badge--${B}`,`circle-badge--${k}`,A?"circle-badge--animate":"",x?"circle-badge--clickable":"",r),H=v!==void 0?`${v}\uBC88\uC9F8 \uC120\uD0DD`:{check:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",minus:"\uC81C\uC678"}[_??"check"];return t.jsxs("span",{className:j,onClick:x,onKeyDown:x?R=>{R.key!=="Enter"&&R.key!==" "||(R.preventDefault(),R.currentTarget.click())}:void 0,"aria-label":o??H,role:x?"button":void 0,tabIndex:x?0:void 0,children:[v!==void 0&&v,v===void 0&&_==="check"&&t.jsx(L0,{}),v===void 0&&_==="remove"&&t.jsx($0,{}),v===void 0&&_==="minus"&&t.jsx(R0,{})]})}const{label:s,children:l,variant:c="default",fill:u="filled",minWidth:d,iconLeft:h,iconRight:p,color:m}=e,g=typeof a=="number"?"medium":a??"medium",C={small:"caption-2b",medium:"body-3b",large:"body-2b"}[g]??"body-2b",f={small:12,medium:14,large:16}[g]??14,b=ye("badge",`badge--${c}`,`badge--${g}`,u!=="filled"?`badge--${u}`:"",C,r),y=m?.startsWith("--")?`var(${m})`:m,w=d!==void 0||y?{...d!==void 0?{minWidth:typeof d=="number"?`${d}px`:d}:{},...y?{"--badge-color":y}:{}}:void 0;return t.jsxs("span",{className:b,style:w,children:[h&&t.jsx(Oe,{icon:h,size:f,className:"badge__icon"}),s??l,p&&t.jsx(Oe,{icon:p,size:f,className:"badge__icon"})]})}function pa({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:o}=pe.useTranslation(),s=r==="small"?40:48,[l,c]=i.useState([{title:null,columns:e}]),u=l[l.length-1];i.useEffect(()=>{c(C=>{try{if(!Array.isArray(C)||C.length===0)return[{title:null,columns:e}];const f=C.slice(),b=f[0]&&typeof f[0].title<"u"?f[0].title:null;return f[0]={title:b,columns:e},f}catch{return[{title:null,columns:e}]}})},[e]);const d=i.useCallback(()=>c(C=>C.length>1?C.slice(0,C.length-1):C),[]),h=i.useRef(null),p=i.useRef(null),m=l.length;i.useEffect(()=>{p.current||(p.current=document.activeElement);let C=0,f=0;const b=()=>{const y=h.current?.querySelector("button:not([disabled])");if(y&&y.offsetParent){y.focus({preventScroll:!0});return}f++<20&&(C=requestAnimationFrame(b))};return C=requestAnimationFrame(b),()=>cancelAnimationFrame(C)},[m]),i.useEffect(()=>()=>{p.current?.focus?.({preventScroll:!0})},[]);const g=i.useCallback(C=>{if(C){if(Array.isArray(C.children)&&C.children.length){c(f=>[...f,{title:C.label||null,columns:[{title:null,items:C.children||[]}]}]);return}try{typeof C.onClick=="function"&&C.onClick()}catch{}try{C&&C.closeOnSelect&&typeof n=="function"&&n()}catch{}}},[n]);return t.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(l.length>1||u.title)&&t.jsxs("div",{className:"tooltip-menu__header",children:[l.length>1?t.jsx(ne,{size:s,type:"dot",icon:"chevron-left",ariaLabel:o("common.back","\uB4A4\uB85C"),onClick:d,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:"tooltip-menu__title button-1",children:u.title})]}),t.jsx("div",{className:"tooltip-menu__columns",ref:h,children:u.columns&&u.columns.map((C,f)=>t.jsxs("div",{className:"tooltip-menu__column",children:[C.title?t.jsx("div",{className:"tooltip-menu__column-title body-3",children:C.title}):null,t.jsx("div",{className:"tooltip-menu__items",children:(C.items||[]).map((b,y)=>t.jsx(ne,{className:"tooltip-menu__item",size:s,type:b.label?"bar":"dot",icon:b.selected?"check":b.icon||"none",rightIcon:Array.isArray(b.children)&&b.children.length?"chevron-right":b.badgeCount?t.jsx(lt,{type:"dot",position:"inline",number:Math.min(b.badgeCount,99),size:24,"aria-label":`${b.badgeCount}`}):void 0,label:b.label,ariaLabel:b.label,onClick:()=>g(b),selected:b.selected,disabled:b.disabled,showTooltipInfo:b.tooltip||!1,useBorder:!1,align:"left"},y))})]},f))})]})}const P0=52,Us=10;function Gs({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:o,moreItems:s=[]}){const{t:l}=pe.useTranslation(),c=r==="manager"?"malgwi":"manager",u=r==="manager"?"arrow-left":"arrow-right",d=r==="manager"?l("nav.modeLabelMalgwi","\uB9D0\uADC0"):l("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),h=i.useRef(null),[p,m]=i.useState(0),g=e.length;i.useEffect(()=>{const D=h.current;if(!D||(m(D.clientWidth),typeof ResizeObserver>"u"))return;const z=new ResizeObserver(Z=>m(Z[0].contentRect.width));return z.observe(D),()=>z.disconnect()},[]);const C=p>0?Math.floor((p+Us)/(P0+Us)):g,f=p>0&&C<g,b=f?C:g,y=e.slice(0,b),w=e.slice(b),_=f||s.length>0,v=i.useCallback(D=>({position:"fixed",bottom:window.innerHeight-D.top+8,right:window.innerWidth-D.right,zIndex:1e4}),[]),B=i.useId(),{open:x,toggle:A,close:M,style:k,triggerRef:j,menuRef:H}=Zn({computeStyle:v,onScroll:"ignore",onResize:"ignore"}),R=i.useCallback(()=>o?.(c),[o,c]),E=i.useMemo(()=>w.find(D=>D.key===n)??s.find(D=>D.selected||D.key&&D.key===n),[w,n,s]),P=i.useMemo(()=>[{items:[...w.map(D=>({label:D.label,icon:D.icon,selected:D.key===n,closeOnSelect:!0,onClick:()=>{D.key&&a&&a(D.key),M()}})),...s.map(D=>({label:D.label,icon:D.icon,badgeCount:D.badgeCount,selected:D.selected??(!!D.key&&D.key===n),closeOnSelect:!0,onClick:()=>{D.onClick?.(),M()}}))]}],[w,s,n,a,M]);return t.jsxs("nav",{className:"bottom-nav","aria-label":l("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[o&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(ne,{size:52,type:"dot",icon:u,ariaLabel:d,className:"bottom-nav-item",onClick:R})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",ref:h,children:y.map(D=>t.jsx(ne,{size:52,type:"dot",icon:D.icon,ariaLabel:D.label,selected:D.key===n,disabled:D.state==="disabled",className:"bottom-nav-item",onClick:()=>D.key&&a?.(D.key)},D.key))}),_&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),t.jsx("div",{className:"bottom-nav__right",children:t.jsxs("div",{ref:j,children:[t.jsx(ne,{size:52,type:"dot",icon:E?.icon??"ellipsis",ariaLabel:E?.label??l("nav.more","\uB354\uBCF4\uAE30"),selected:!!E,className:"bottom-nav-item",onClick:A,"aria-expanded":x,"aria-controls":x?B:void 0}),x&&Pt.createPortal(t.jsx("div",{id:B,role:"group","aria-label":l("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:k,ref:H,children:t.jsx(pa,{columns:P,onClose:M})}),document.body)]})})]})]})}function I0(e){const{t:n}=pe.useTranslation(),{activeKey:a,unreadCount:r,onDebug:o,onNotification:s,onSetting:l,onHelp:c,onAccount:u}=e||{},d="default";return o||s||l||c||u?t.jsxs("div",{className:"side-nav__footer",children:[o&&t.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:o,selected:a==="debug"}),s&&t.jsxs("span",{className:"side-nav__notification-wrap",children:[t.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"bell",ariaLabel:n("nav.notifications","\uC54C\uB9BC"),onClick:s,selected:a==="notifications"}),!!r&&t.jsx(lt,{type:"dot",number:Math.min(r,99),size:24})]}),l&&t.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"settings",ariaLabel:n("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),c&&t.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),u&&t.jsx(ne,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:u,selected:a==="account"})]}):null}function Ks(e){const{item:n,itemKey:a,label:r,icon:o,active:s,onClick:l,style:c,state:u,labelStyle:d}=e||{},h=n?.key??a??"",p=n?.label??r??"",m=n?.icon??o??"",g=n?.badge??0,C=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(Oe,{icon:m,label:typeof p=="string"?p:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),f=u==="disabled",b=`side-nav__item ${s?"active":""} ${u||""} ${f?"disabled":""} ${n?.child?"side-nav__item--child":""}`,y=i.useCallback(w=>{if(!f){try{w.currentTarget.blur()}catch{}l?.(h,w.currentTarget)}},[f,h,l]);return t.jsxs("button",{className:b,onClick:y,"aria-label":typeof p=="string"?p:void 0,style:c,"aria-disabled":f,children:[C,t.jsx("span",{className:"side-nav__label button-1 f",style:d,children:p}),g>0&&t.jsx(lt,{type:"dot",position:"inline",number:Math.min(g,99),size:24,"aria-label":`${g}`}),u==="loading"&&t.jsx("span",{className:"side-nav__spinner","aria-label":"loading"})]})}function Zs(e){const{t:n}=pe.useTranslation(),{items:a=[],activeKey:r,onChange:o,unreadCount:s,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:h,appMode:p,onAppModeChange:m}=e||{},g=i.useCallback(()=>m?.(p==="malgwi"?"manager":"malgwi"),[m,p]);return t.jsxs("nav",{"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[t.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(C=>!C.section&&(C.key||C.label)).map((C,f)=>t.jsxs(i.Fragment,{children:[C.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(Ks,{item:C,active:C.key===r,state:C.disabled?"disabled":void 0,onClick:(b,y)=>{if(C.disabled)return;if(C.href){window.open(C.href,"_blank","noopener,noreferrer");try{y?.blur()}catch{}return}o?.(C.key);try{const _=document.querySelector(".content-area");_?_.scrollTop=0:window.scrollTo({top:0})}catch{}try{y?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const w=document.querySelector(".header");if(w&&!(typeof w.matches=="function"&&w.matches(":hover"))){w.classList.add("header--force-collapsed");const _=()=>{w.classList.remove("header--force-collapsed"),w.removeEventListener("mouseenter",_)};w.addEventListener("mouseenter",_)}}})]},C.key??`side-nav__item-${f}`)),m&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),m&&t.jsx(Ks,{item:{key:"__mode-switch__",label:p==="malgwi"?n("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"):n("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"),icon:p==="malgwi"?"arrow-right":"arrow-left"},onClick:g})]}),t.jsx(I0,{activeKey:r,unreadCount:s,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:h})]})}var ar='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',rr='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',F0='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 Ys({appMode:e}){const{t:n}=pe.useTranslation(),a=e==="manager",r=a?rr:ar,o=F0,s=Xt("(min-width: 768px) and (max-width: 1023px)");return t.jsx("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:s?t.jsx("img",{src:o,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):t.jsx("img",{src:r,alt:a?n("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):n("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function Xs({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:o,unreadCount:s,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:h,appMode:p,onAppModeChange:m}){const{t:g}=pe.useTranslation(),C=Xt("(max-width: 767px)"),f=i.useMemo(()=>{const k=[];return l&&k.push({key:"debug",icon:"terminal",label:g("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&k.push({key:"notifications",icon:"bell",label:g("nav.notifications","\uC54C\uB9BC"),badgeCount:s,onClick:c}),d&&k.push({key:"settings",icon:"settings",label:g("nav.settings","\uC124\uC815"),onClick:d}),h&&k.push({key:"help",icon:"message-circle-question-mark",label:g("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:h}),u&&k.push({key:"account",icon:"user-round",label:g("nav.account","\uACC4\uC815"),onClick:u}),k},[g,l,c,d,h,u,s]),b=i.useCallback(k=>({position:"fixed",top:k.bottom+8,right:Math.max(8,window.innerWidth-k.right),zIndex:1e4}),[]),y=i.useId(),{open:w,toggle:_,close:v,style:B,triggerRef:x,menuRef:A}=Zn({computeStyle:b,onScroll:"ignore",onResize:"ignore"}),M=i.useMemo(()=>[{items:f.map(k=>({label:k.label,icon:k.icon,badgeCount:k.badgeCount,selected:k.selected??(!!k.key&&k.key===e),closeOnSelect:!0,onClick:()=>{k.onClick?.(),v()}}))}],[f,e,v]);return t.jsxs("aside",{className:`header${p==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(Ys,{appMode:p}),t.jsxs("div",{className:"header__menu-button",ref:x,children:[t.jsx(ne,{size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:g("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:_,"aria-expanded":w,"aria-controls":w?y:void 0}),w&&Pt.createPortal(t.jsx("div",{id:y,role:"group","aria-label":g("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:B,ref:A,children:t.jsx(pa,{columns:M,onClose:v})}),document.body)]})]}),t.jsx(Zs,{items:a,activeKey:e??void 0,onChange:n,unreadCount:s,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:h,appMode:p,onAppModeChange:m}),C&&t.jsx(Gs,{items:a,activeKey:e??void 0,onChange:n,appMode:p,onAppModeChange:m})]})}const O0=Xs;var H0={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}}},V0={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],yearMonth:"{{year}}\uB144 {{month}}\uC6D4",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704"},z0={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},W0={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},q0={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},U0={selected:"\uC120\uD0DD\uB428"},G0={placeholder:"\uC120\uD0DD"},K0={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},Z0={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"},Y0={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274"},X0={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."}}},J0={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."}},Q0={profile:{planSuffix:"\uD50C\uB79C",plan:"\uD50C\uB79C"},basicInfo:{name:{placeholder:"\uD64D\uAE38\uB3D9"}},security:{title:"\uBCF4\uC548",password:{label:"\uBE44\uBC00\uBC88\uD638"},twoFactor:{label:"2\uB2E8\uACC4 \uC778\uC99D",sub:"\uACC4\uC815 \uBCF4\uC548\uC744 \uAC15\uD654\uD558\uC138\uC694"}}},e2={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},t2={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",diffPhonemeCount:"\uB2E4\uB978 \uC74C\uC18C\uC758 \uCD1D \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",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",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:{eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30"},n2={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"},a2={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"}},r2={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"}}}},o2={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"}},s2={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},i2={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"}},l2={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."}},c2={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},u2={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"},d2={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},p2={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"},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:"\uC0AD\uC81C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78\uC744 \uB20C\uB7EC \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB9E4\uAE30\uC138\uC694.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"}},h2={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB2E8\uC5B4\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB4F1\uAE09",grade:"{{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193"},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"}},m2={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},f2={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"}},g2={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},b2={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},y2={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"},v2={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"}},x2={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB300\uB9BD\uC30D\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},phonemeSelect:{title:"\uC74C\uC18C \uC120\uD0DD",vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",infoInclude:"\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.",infoPick:"\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694.",infoContrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."},count:"{{n}}\uAC1C",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4.",selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},searchLabel:{error:"\uB370\uC774\uD130 \uBD88\uB7EC\uC624\uAE30 \uC2E4\uD328",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},confirmMessage:"\uC120\uD0DD\uD55C {{unit}} {{count}}\uAC1C\uB97C \uD3EC\uD568\uD55C \uB2E8\uC5B4 \uD45C \uC815\uBCF4\uAC00 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",resetOptions:"\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654",phonemeContrast:"\uB300\uB9BD {{n}}\uBC88 \uC74C\uC808",infoNotes:["\uBBF8\uB9AC\uBCF4\uAE30 \uAE00\uC790\uB294 \uC120\uD0DD\uD55C \uC74C\uC18C\uC758 \uC870\uD569 \uC608\uC2DC\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uAC80\uC0C9\uC740 \uD574\uB2F9 \uC74C\uC18C\uAC00 \uD3EC\uD568\uB41C \uBAA8\uB4E0 \uB2E8\uC5B4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4.","\uCD08\uC131 '\u3147'\uC740 \uC120\uD0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E8\uC5B4 \uC55E\uC5D0 \uC624\uB294 \u3147\uC740 \uC2E4\uC9C8\uC801\uC73C\uB85C \uBB34\uC74C\uC774\uC5B4\uC11C \uB300\uB9BD\uC30D \uC131\uB9BD\uC5D0 \uC601\uD5A5\uC744 \uC8FC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","\uCD08\uC131\uACFC \uC885\uC131\uB9CC \uC120\uD0DD\uD558\uBA74 \uBAA8\uC74C\uC740 '\u314F'\uB85C \uC790\uB3D9 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","\uC74C\uC18C \uAC1C\uC218\uB97C \uB298\uB9AC\uBA74 \uAC01 \uC74C\uC18C \uC0AC\uC774\uC758 \uB300\uB9BD\uC30D\uC744 \uAC80\uC0C9\uD569\uB2C8\uB2E4."]},_2={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"}},w2={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
828
828
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
829
829
|
\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"},k2={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"}}},A2={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},N2={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"}},B2={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},S2={phaseWordDownload:"\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC",phaseImageCheck:"\uC774\uBBF8\uC9C0 \uD655\uC778",phasePairAnalysis:"\uB2E8\uC5B4\uC30D \uBD84\uC11D",downloadingCount:"{{n}}\uAC1C \uB2E4\uC6B4\uB85C\uB4DC \uC911",checkingPage:"{{page}}\uD398\uC774\uC9C0 \uBAA9\uB85D \uD655\uC778 \uC911",imageCount:"{{done}} / {{total}}\uAC1C"},D2={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},j2={ariaLabel:"\uC120\uD0DD \uD0ED"},E2={ariaLabel:"\uD0ED"},T2={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},M2={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},L2={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"}},$2={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30",crossword:"\uAC00\uB85C\uC138\uB85C"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",count:"\uC804\uCCB4",done:"\uC644\uB8CC",remaining:"\uBBF8\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},filter:{countSuffix:" \uD6C8\uB828"},time:{countLabel:"{{n}}\uD68C \uD6C8\uB828",empty:"\uD6C8\uB828 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},daily:{title:"\uC624\uB298\uC758 \uB4E3\uAE30 \uAE30\uB85D",empty:"\uC644\uB8CC\uD55C \uD68C\uCC28\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},crossword:{title:"\uAC00\uB85C\uC138\uB85C\uD034\uC988",empty:"\uC644\uB8CC\uD55C \uB808\uBCA8\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",trainingType:{LISTEN_IN_NOISE:"\uC18C\uC74C \uD558 \uBB38\uC7A5",SHORT_STORY:"\uC9E7\uC740 \uC774\uC57C\uAE30",LONG_STORY:"\uAE34 \uC774\uC57C\uAE30",ORDERING_SENTENCE:"\uBB38\uC7A5 \uC21C\uC11C\uD654"}},R2={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"}},P2={manage:{unit:"\uAC74"}},I2={cancelLabel:"\uCDE8\uC18C"},F2={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},O2={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"},H2={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},V2={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"},z2={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},W2={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},q2={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},U2={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},G2={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"}},K2={common:H0,calendar:V0,passCard:z0,searchField:W0,rating:q0,colorPicker:U0,dropdown:G0,accordion:K0,header:Z0,nav:Y0,settings:X0,usage:J0,account:Q0,help:e2,training:t2,trainingSettings:n2,customers:a2,payment:r2,coupons:o2,visits:s2,company:i2,trainingType:l2,myWordTraining:c2,myWordTable:u2,keyWords:d2,wordTable:p2,wordSearch:h2,wordPrint:m2,topic:f2,accessLinkManager:C2,login:g2,trainingPlanRun:b2,device:y2,manager:v2,wordPairs:x2,game:_2,footer:w2,landing:k2,date:A2,trainingSetPage:N2,wordTrainingPreview:B2,wordData:S2,textField:D2,segmentedControl:j2,tabs:E2,fileUpload:T2,avatar:M2,myHomework:L2,trainingStatus:$2,store:R2,homework:P2,inquiry:I2,progress:F2,trainingMiss:O2,table:H2,wordScore:V2,topBanner:z2,datePicker:W2,report:q2,tooltip:U2,phonemeProfile:G2},Z2={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}}},Y2={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yearMonth:"{{month}}/{{year}}",prevMonth:"Previous month",addOnDate:"Add a visit on {{date}}",nextMonth:"Next month",prevWeek:"Previous week",nextWeek:"Next week",legend:{visited:"Visited",scheduled:"Scheduled",noVisit:"No Show"},periodSelect:"Period unit"},X2={planSuffix:"Plan",labeledPlan:"{{label}} Plan",couponCode:"Pass Code",specialLabel:"Open Special",unitDay:"d",unitYear:"yr",remainingDay:"{{n}}d left",remainingHour:"{{n}}h left",remainingMinute:"{{n}}m left",remainingSecond:"{{n}}s left",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},J2={clearAriaLabel:"Clear search"},Q2={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},ef={selected:"selected"},tf={placeholder:"Select"},nf={collapse:"Collapse",expand:"Expand"},af={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu"},rf={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu"},of={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."}}},sf={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"}},lf={profile:{planSuffix:"",plan:"Plan"},basicInfo:{name:{placeholder:"John Doe"}},security:{title:"Security",password:{label:"Password"},twoFactor:{label:"Two-Factor Authentication",sub:"Strengthen your account security"}}},cf={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},uf={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",diffPhonemeCount:"Total differing phonemes",n:"{{n}}"},filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Grade",excludeImageInfo:"Only words with images: keeps only results with a registered word image.",sameStructureInfo:"Only same phoneme structure: keeps only pairs where the correct and wrong answers share the same syllable structure (length, batchim, etc.).",selectSection:"Select",excludeImage:"Only words with images",sameStructure:"Only same phoneme structure"},noQuestions:"No questions available.",countQuestions:"{{n}} questions",countSentences:"{{n}} sentences",comingSoon:"Coming Soon",nextQuestion:"Next",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playAll:"Play All",stop:"Stop",preview:"Preview",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",done:"Done",viewResult:"View Results"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen"},df={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"},pf={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"}},hf={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},mf={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"}},ff={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},Cf={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},gf={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."}},bf={comingSoon:"Word training is coming soon."},yf={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"}},vf={title:"Key Words",empty:"No key words available."},xf={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap a cell to mark \u25CB \xB7 \u25B3 \xB7 \u2715.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"}},_f={editBanner:{message:"Saving will update the word table you're editing."},filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},wf={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},kf={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"}},Af={maxUses:"Max uses (leave blank for unlimited)",redirect:"Redirect URL (leave blank for app home)",creating:"Creating\u2026",create:"Create link",created:"\u2713 Link created",copied:"Copied!",copy:"Copy",loading:"Loading\u2026",empty:"No links created yet.",uses:"Used {{count}} times",expiresAt:"Expires: {{date}}",createdAt:"Created: {{date}}",confirmDelete:"Delete this link?",deactivate:"Deactivate",delete:"Delete",status:{active:"Active",expired:"Expired",inactive:"Inactive"}},Nf={passwordPlaceholder:"Enter password"},Bf={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"},Sf={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"}},Df={editBanner:{message:"Saving will update the contrast pair table you're editing."},phonemeSelect:{title:"Phoneme Selection",vs:"vs"},caution:"Caution",mode:{include:"Phoneme Include",pick:"Phoneme Contrast",contrast:"Specify Contrast",infoTitle:"Contrast Mode",infoInclude:"Include \u2014 finds words containing all selected phonemes, plus their minimal pair.",infoPick:"Contrast \u2014 matches only if the selected phoneme is the actual point of difference in the pair.",infoContrast:"Specify Contrast \u2014 directly choose phonemes for the base word and the contrasting word to find pairs."},count:"{{n}}",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:"Reflects the National Institute of Korean Language's basic vocabulary grade.",selectLabel:"Select",onlyHasImage:"Only words with images",onlySameStructure:"Only same phoneme structure"},searchLabel:{error:"Failed to load data",loading:"Loading\u2026"},confirmMessage:"The word table with {{count}} selected {{unit}} will be lost.",resetOptions:"Reset Options",phonemeContrast:"Contrast Syllable {{n}}",infoNotes:["The preview character is an example of the selected phoneme combination. The actual search covers all words containing the phoneme.","Initial consonant '\u3147' cannot be selected. \u3147 at the start of a word is effectively silent.","If only onset and coda are selected, the vowel is automatically displayed as '\u314F'.","Increasing the phoneme count searches for minimal pairs between each phoneme."]},jf={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"}},Ef={lead:`IHAB builds trust
|
|
830
830
|
through sound
|
|
831
|
-
and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},Tf={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"}}},Mf={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},Lf={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},$f={answer:"Answer",distractor:"Distractor"},Rf={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},Pf={clearAriaLabel:"Clear input"},If={ariaLabel:"Select tab"},Ff={ariaLabel:"Tabs"},Of={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Hf={ariaLabel:"User avatar"},Vf={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"}},zf={weekly:{title:"Weekly Training",daily:"Daily Listening",crossword:"Crossword"},homework:{title:"Homework Progress",totalRate:"Overall rate",count:"Total",done:"Done",remaining:"Remaining"},today:{tooltipTotal:"Total",tooltipDone:"Done"},filter:{countSuffix:" sessions"},time:{countLabel:"{{n}} sessions",empty:"No training records"},daily:{title:"Today's Listening Record",empty:"No completed sessions"},crossword:{title:"Crossword Quiz",empty:"No completed levels"},visit:{title:"Linked Visit Records"},detail:"Details",trainingType:{LISTEN_IN_NOISE:"Sentence in Noise",SHORT_STORY:"Short Story",LONG_STORY:"Long Story",ORDERING_SENTENCE:"Sentence Ordering"}},Wf={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)"}},qf={manage:{unit:"item(s)"}},Uf={cancelLabel:"Cancel"},Gf={subtitle:"Select a topic to start listening practice."},Kf={steps:"Step {{current}} of {{total}}"},Zf={panelTitle:"Training misses",viewItems:"Items",viewTypes:"Types",colPending:"Left",colTrend:"Change",colRuns:"Runs",unitItem:" items",skippedOnly:"{{n}} older record(s) were excluded \u2014 they do not say what was answered.",summaryLabel:"Recorded",summaryValue:"{{items}} items \xB7 {{pending}} still missed",nextLabel:"Next to work on",nextCount:"{{count}}",nextCountCapped:"{{shown}} of {{total}}",picked:"\u2192 {{what}}",typeClear:"All caught up",typePending:"{{pending}} of {{total}} left",flat:"no change",runs:"{{count}} run(s)",avgDuration:"{{sec}}s avg"},Yf={resetColumns:"Reset column widths"},Xf={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}}"},Jf={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Qf={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},eC={previewRegion:"Report preview \u2014 scrollable sideways"},tC={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},nC={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},aC={common:Z2,calendar:Y2,passCard:X2,searchField:J2,rating:Q2,colorPicker:ef,dropdown:tf,accordion:nf,header:af,nav:rf,settings:of,usage:sf,account:lf,help:cf,training:uf,trainingSettings:df,customers:pf,payment:hf,coupons:mf,visits:ff,company:Cf,trainingType:gf,myWordTraining:bf,myWordTable:yf,keyWords:vf,wordTable:xf,wordSearch:_f,wordPrint:wf,topic:kf,accessLinkManager:Af,login:Nf,device:Bf,manager:Sf,wordPairs:Df,game:jf,footer:Ef,landing:Tf,date:Mf,trainingSetPage:Lf,wordTrainingPreview:$f,wordData:Rf,textField:Pf,segmentedControl:If,tabs:Ff,fileUpload:Of,avatar:Hf,myHomework:Vf,trainingStatus:zf,store:Wf,homework:qf,inquiry:Uf,trainingPlanRun:Gf,progress:Kf,trainingMiss:Zf,table:Yf,wordScore:Xf,topBanner:Jf,datePicker:Qf,report:eC,tooltip:tC,phonemeProfile:nC};const rC=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Js="ko",oC="ihab_display_language";function Qs(){try{const e=localStorage.getItem(oC);if(e&&rC.some(n=>n.code===e))return e}catch{}return Js}function ei(e){try{document.documentElement.lang=e}catch{}}bn.on("languageChanged",ei),ei(Qs()),bn.use(pe.initReactI18next).init({resources:{ko:{translation:K2},en:{translation:aC}},lng:Qs(),fallbackLng:Js,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function ti(e){if(!(e==null||e===""))return Un(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function sC(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function iC(e){if(e.durationDays&&e.durationDays>0){const o=e.durationDays;return o%365===0?`${o/365}\uB144`:`${o}\uC77C`}const n=(e.code??"").match(/(\d+)(d|y)\b/i);if(n)return n[2].toLowerCase()==="y"?`${n[1]}\uB144`:`${n[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);return r?r[1].replace(/\s+/g,""):a||"\uC774\uC6A9\uAD8C"}function lC(e){const n=(e??"").match(/(\d+)(d|y)\b/i);if(!n)return null;const a=Number(n[1]);return n[2].toLowerCase()==="y"?a*365:a}function ni(e){return{type:e.type??sC(e),plan:iC(e),label:e.label,price:ti(e.price),originalPrice:ti(e.originalPrice),discountLabel:e.discountLabel}}var cC='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',uC='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>',dC='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',pC='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',hC='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>',mC='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',ai='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 wn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},or=new WeakMap;function fC(e){if(e)return or.get(e)}function Qt(e,n){e&&(e.style.setProperty(wn.text,n.text),e.style.setProperty(wn.sub,n.sub),n.copyrightColor&&e.style.setProperty(wn.copyright,n.copyrightColor),or.set(e,n))}function en(e){e&&(e.style.removeProperty(wn.text),e.style.removeProperty(wn.sub),e.style.removeProperty(wn.copyright),or.delete(e))}const ri={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function oi(e={}){const n=rt(ri,Qt,en);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-two-circle__c1"}),t.jsx("div",{className:"pass-card-bg-two-circle__c3"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${ai}")`}})]})}const si="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 Yn='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 CC={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},gC=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function ii(e={}){const n=rt(CC,Qt,en),a="var(--color-main)",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[t.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:gC.map(({scale:s,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${s}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:si,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Yn}")`}})]})}const bC={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},yC=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function vC(e={}){const n=rt(bC,Qt,en),a="#ffffff",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[t.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:yC.map(({scale:s,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${s}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:si,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${ai}")`}})]})}const xC={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function _C(e={}){const n=rt(xC,Qt,en);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${Yn}")`}})]})}const wC={Logo_speechear_kr:{"":ar,_white:cC,_textWhite:uC,_black:dC},Logo_speechearManager_kr:{"":rr,_white:pC,_textWhite:hC,_black:mC}};function kC(e,n){if(e)return wC[e]?.[n??""]??void 0}const AC={speechear:ar,manager:rr},NC={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},li=10;function BC(e,n){if(e<=0)return n("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return n("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return n("passCard.remainingHour",{n:r});const o=Math.floor(e/60);return o>0?n("passCard.remainingMinute",{n:o}):n("passCard.remainingSecond",{n:Math.floor(e)})}function SC(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),o=a==="\uC624\uD508\uD2B9\uAC00"||a===bn.t("passCard.specialLabel");return r?t.jsx(_C,{}):o?t.jsx(vC,{}):t.jsx(ii,{})}return t.jsx(oi,{})}function ci({product:e,showPrice:n=!1,plan:a,type:r,endDate:o,remainingSeconds:s,state:l="active",bg:c,bgOnly:d=!1,textColor:u,subColor:h,copyrightColor:p,logoSrc:f,label:g,price:C,originalPrice:m,discountLabel:v,onUse:b,onRefund:w,onDelete:_}){const{t:y}=pe.useTranslation(),S=e?ni(e):void 0,x=r??S?.type??"speechear",A=a??S?.plan??"\uC774\uC6A9\uAD8C",M=g??S?.label,k=C??(n?S?.price:void 0),D=m??(n?S?.originalPrice:void 0),O=v??S?.discountLabel,R=i.useMemo(()=>{if(k)return null;const T=e?.durationDays??lC(e?.code);if(!T||T<=0)return null;const W=T*86400;let Q;if(s!=null)Q=s;else if((l==="active"||l==="expired")&&o){const ue=new Date(o).getTime();if(Number.isNaN(ue))return null;const ie=new Date;ie.setHours(0,0,0,0);const ae=new Date(ue);ae.setHours(0,0,0,0);const se=Math.round((ae.getTime()-ie.getTime())/864e5);Q=Math.max(0,se)*86400}else l==="expired"?Q=0:Q=W;const _e=Math.max(0,Math.min(100,Math.floor(Math.min(Q,W)/W*100)));return l==="pending"&&_e>=100?null:{percent:_e,remainingLabel:BC(Q,y)}},[k,l,o,s,e?.durationDays,e?.code,y]),j=i.useRef(null),[P,B]=i.useState({}),[F,Z]=i.useState(null),Y=!!(b||w||_),J=i.useRef(!1),E=i.useRef(void 0),[$,L]=i.useState(f);i.useLayoutEffect(()=>{L(f)},[f]),i.useLayoutEffect(()=>{const T=j.current;T&&(u!==void 0&&T.style.setProperty("--pass-card-text",u),h!==void 0&&T.style.setProperty("--pass-card-sub",h),p!==void 0&&T.style.setProperty("--pass-card-copyright",p))},[u,h,p]),i.useLayoutEffect(()=>{const T=j.current;if(!T)return;const W=fC(T);if(!f){const Q=NC[x],_e=l==="expired"?"_black":W?.logoColor??"",ue=kC(Q,_e);L(ue)}},[c,f,x,l]);const V=T=>{const W=j.current;if(!W)return null;const{left:Q,top:_e,width:ue,height:ie}=W.getBoundingClientRect(),ae=(T.clientX-Q)/ue-.5;return{rotateX:-((T.clientY-_e)/ie-.5)*li,rotateY:ae*li}},H=(T,W)=>{const Q=W*-.7,_e=T*.7+10,ue=20+(Math.abs(T)+Math.abs(W))*.4;return`${Q}px ${_e}px ${ue}px rgba(0, 0, 0, 0.18)`},X=i.useCallback(T=>{J.current=!0,clearTimeout(E.current),E.current=setTimeout(()=>{J.current=!1},200);const W=V(T);W&&B({transform:`perspective(800px) rotateX(${W.rotateX}deg) rotateY(${W.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:H(W.rotateX,W.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),I=i.useCallback(T=>{const W=V(T);if(!W)return;const Q=J.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";B({transform:`perspective(800px) rotateX(${W.rotateX}deg) rotateY(${W.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:H(W.rotateX,W.rotateY),transition:Q})},[]),U=i.useCallback(()=>{clearTimeout(E.current),J.current=!1,B({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),q=i.useCallback(()=>Z(null),[]),le=i.useMemo(()=>{const T=A.replace("\uC774\uC6A9\uAD8C","").trim(),W=T.match(/^(.*?)(일|년)$/);return W?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:W[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:W[2]==="\uB144"?y("passCard.unitYear","\uB144"):y("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:T})},[A,y]),de=i.useMemo(()=>{const T=Un(k);if(!T)return null;const W=T.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!W)return t.jsx("span",{className:"h1",children:T});const[,Q,_e,ue]=W;return t.jsxs(t.Fragment,{children:[Q&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:Q}),t.jsx("span",{className:"h1 pass-card__price-amount",children:_e}),ue.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:ue.trim()})]})},[k]),Ce=i.useCallback(()=>{Y&&Z(T=>{if(T)return null;const W=j.current?.getBoundingClientRect();if(!W)return null;const Q=50;return{left:W.left,right:W.right,width:W.width,height:W.height,x:W.x,y:W.y+Q,top:W.top+Q,bottom:W.bottom+Q}})},[Y]),ve=i.useCallback(T=>{Y&&(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),Ce())},[Y,Ce]),he=[{items:[...b?[{label:y("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{b(),Z(null)},closeOnSelect:!0}]:[],...w?[{label:y("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{w(),Z(null)},closeOnSelect:!0}]:[],..._?[{label:y("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{_(),Z(null)},closeOnSelect:!0}]:[]]}];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card-frame",children:t.jsxs("div",{ref:j,className:`pass-card pass-card--${l}${Y?" pass-card--clickable":""}`,style:P,onMouseEnter:X,onMouseMove:I,onMouseLeave:U,onClick:Ce,onKeyDown:Y?ve:void 0,role:Y?"button":void 0,tabIndex:Y?0:void 0,children:[c??SC(x,A,M),!d&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card__top",children:t.jsxs("div",{className:"pass-card__top-left",children:[t.jsx("img",{src:$??AC[x],className:"pass-card__logo",alt:x==="manager"?y("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):y("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:le}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:M?y("passCard.labeledPlan",{label:M}):y("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),k?t.jsxs("div",{className:"pass-card__price-area",children:[O&&t.jsx("span",{className:"pass-card__discount body-3",children:O}),t.jsxs("div",{className:"pass-card__price",children:[D&&t.jsx("span",{className:"pass-card__price-original body-3",children:Un(D)}),de]})]}):R?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:R.remainingLabel}),t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:R.percent}),t.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):t.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),F&&t.jsx(ln,{anchorRect:F,onClose:q,ariaLabel:y("tooltip.menu","\uBA54\uB274"),children:t.jsx(pa,{columns:he,onClose:q,size:"small"})})]})}const DC={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function jC(e={}){const n=`passcard-sound-line-grad-${i.useId()}`,a=rt(DC,Qt,en);return t.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[t.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:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:n,x1:"0",y1:"0",x2:"1",y2:"0",children:[t.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),t.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),t.jsx("g",{transform:"translate(25, 45)",children:t.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(#${n})`,strokeWidth:"50",strokeLinecap:"round"})})]}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${Yn}")`}})]})}const EC={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function TC(e={}){const n=rt(EC,Qt,en);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${Yn}")`}})]})}function MC(e,n){if(e){if(n==="manager_pro")return t.jsx(TC,{});if(n==="manager_standard")return t.jsx(jC,{});if(n==="manager_lite")return t.jsx(ii,{})}}function LC(e){const n=Un(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,o,s]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),o,s.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:s.trim()})]})}function $C(e){const{t:n}=pe.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:o,onSelect:s,period:l="monthly",ownedCodes:c}=e||{},d=_=>!!_&&!!c?.includes(_),u=(o.tiers||[]).some(_=>/오픈\s*특가/.test(_.label??"")&&d(_.code)),h=_=>{const y=_.prices?_.prices[l]:_.price;return y?(o.tiers||[]).some(S=>!!S.badge&&S.originals?.[l]===y):!1},p=o.colorToken?`var(--color-${o.colorToken})`:"var(--color-gray)",f=n("payment.plan.freePrice","\uBB34\uB8CC"),g=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),C=_=>_.prices?_.prices[l]:_.price,m=(o.tiers||[]).length>0&&(o.tiers||[]).every(_=>{const y=C(_);return y==="\uBB34\uB8CC"||y===f||y==="0\uC6D0"}),v=(o.tiers||[]).length>0&&(o.tiers||[]).every(_=>{const y=C(_);return y==="\uBB38\uC758"||y===g}),b=o.group==="org",w=b?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:p,"--plan-color":p},children:[o.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(lt,{label:o.cardBadge,variant:"main",size:"medium",fill:"soft"})}),t.jsxs("div",{className:"payment-plan__title",children:[t.jsx("p",{className:"payment-plan__quote body-3b",style:{color:p},children:o.quote||"\xA0"}),t.jsx("h3",{className:"payment-plan__title-heading h1",children:o.tier??o.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:o.subtitle})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.recommendedFor||[]).map((_,y)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Oe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:p}}),_]},y))})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.features||[]).map((_,y)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Oe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:p}}),_]},y))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:m?null:v?t.jsx(ne,{className:"payment-plan__contact-button",label:n("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>o.tiers?.[0]&&s?.({...o.tiers[0],productId:o.id,productTitle:o.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(o.tiers||[]).map(_=>{const y=_.label||a,S=/오픈\s*특가/.test(y),x=S||_.openPromo===!0,A=y.replace(/^오픈\s*특가\s*/,"")||a,M=_.prices?_.prices[l]:_.price,k=_.badge?x?`${r}
|
|
832
|
-
${_.badge}`:_.badge:void 0;if(S&&d(_.code))return null;if(!_.badge&&!u)return h(_)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${_.highlight?" payment-plan__pricing-row--highlight":""}`,children:[t.jsx("div",{className:"payment-plan__pricing-row-title",children:t.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:_.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:LC(M)})})]},_.id);const D=o.tier??(b?o.title:void 0),O=t.jsx(ci,{showPrice:!0,product:{type:w,code:_.code,name:A,label:D,price:M,originalPrice:_.originals?.[l]??void 0,discountLabel:k},bg:MC(b,o.id)}),R=()=>s?.({..._,productId:o.id,productTitle:o.title,preview:O});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:R,onKeyDown:s?j=>{j.target===j.currentTarget&&(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),R())}:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,children:O},_.id)})})})})]})}function RC({variant:e="default"}){return t.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var sr='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 ui={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function PC(){const e=rt(ui,Qt,en);return t.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${sr}")`}})})}const di={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function IC(e={}){const n=rt(di,Qt,en);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),t.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${Yn}")`}})]})}function pi({keys:e,anchor:n="top-right",scale:a,className:r=""}){const o=Array.isArray(e)?e:[e];return t.jsx("span",{className:ye("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:o.map((s,l)=>t.jsxs("span",{className:"shortcut-badge__group",children:[l>0&&t.jsx("span",{className:"shortcut-badge__plus",children:"+"}),t.jsx("kbd",{className:"shortcut-badge__key",children:s})]},`${s}-${l}`))})}const Xn=(e,n,a)=>e+(n-e)*a;function FC({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:o,selectedId:s=null,answerId:l=null,showFeedback:c=!1,pulseSelected:d=!1,pulseSelectedDuration:u,pulseScale:h,clickable:p=!1,onSelectSpeaker:f,buttonSize:g=40,showIcon:C=!0,onCenterClick:m,centerLabel:v,centerDisabled:b=!1,centerAttention:w=!1,shortcutAnchor:_="top-right",shortcutScale:y,scaleShortcut:S=!1}){const x=Math.max(0,Math.min(1,a)),A=n/2,M=110/300,k=.18,D=T=>n*(M+(T-1)*k),O=T=>{const W=D(T.row??1),Q=T.angleDeg*Math.PI/180;return{x:A+W*Math.cos(Q),y:A+W*Math.sin(Q)}},R=Math.max(...e.map(T=>T.row??1),1),j=n*.08,P=n*.1,B=n*.24,F=n-2*j,Z=n-P-B,Y=n-B/2,J=i.useMemo(()=>[...new Set(e.map(T=>T.deg))].sort((T,W)=>T-W),[e]),E=J.length,$=Math.max(68,E>1?F/(E-1):0),L=i.useMemo(()=>new Map(J.map((T,W)=>[T,W])),[J]),V=T=>{const W=L.get(T.deg)??0,Q=A+(W-(E-1)/2)*$,_e=R>1?Math.min(68,Z/(R-1)):0,ue=_e*(R-1),ie=P+(Z-ue)/2,ae=R===1?P+Z*.4:ie+(R-(T.row??1))*_e;return{x:Q,y:ae}},H=T=>{const W=O(T),Q=V(T);return{x:Xn(W.x,Q.x,x),y:Xn(W.y,Q.y,x)}},X={x:A,y:Xn(A,Y,x)},I=Math.round(g*1.2),U=Math.round(Math.max(16,Math.min(80,g*.7))),q=[],le=new Map;for(const T of e){const W=T.row??1;le.has(W)||le.set(W,[]),le.get(W).push(T)}for(const[T,W]of le.entries()){if(W.length<2)continue;const Q=[...W].sort((Ae,ze)=>Ae.deg-ze.deg),_e=Q.map(Ae=>H(Ae)),ue=Q.map(Ae=>Ae.deg),ie=ue[ue.length-1]-ue[0],ae=ie/(ue.length-1),se=360-ie,Se=Q.length>=3&&ae>0&&se<=ae*1.5,He=Math.round(D(T)*1e3)/1e3,Ve=(Ae,ze,at,ge)=>{const Pe=(ze.angleDeg-Ae.angleDeg+540)%360-180;if(Pe===0)return`L ${ge.x} ${ge.y}`;if(x===0)return`A ${He} ${He} 0 0 ${Pe>0?1:0} ${ge.x} ${ge.y}`;const $e=(Ae.angleDeg+Pe/2)*Math.PI/180,Ke={x:A+He*Math.cos($e),y:A+He*Math.sin($e)},Ze={x:(at.x+ge.x)/2,y:(at.y+ge.y)/2},Ue={x:Xn(Ke.x,Ze.x,x),y:Xn(Ke.y,Ze.y,x)},Ie={x:2*Ue.x-Ze.x,y:2*Ue.y-Ze.y};return`Q ${Ie.x} ${Ie.y} ${ge.x} ${ge.y}`},Re=Se?[...Q,Q[0]]:Q,Ee=Se?[..._e,_e[0]]:_e;let je=`M ${Ee[0].x} ${Ee[0].y}`;for(let Ae=1;Ae<Ee.length;Ae++)je+=" "+Ve(Re[Ae-1],Re[Ae],Ee[Ae-1],Ee[Ae]);q.push({key:`arc-${T}`,d:je})}const de=i.useMemo(()=>new Set(o??[]),[o]),Ce=T=>{if(r===T.id)return"active";if(c){if(T.id===l)return"correct";if(T.id===s&&s!==l)return"wrong"}return de.has(T.id)?"played":"idle"},ve=T=>r===T.id?"loop":c?T.id===l?"loop":null:d&&T.id===s?"once":null,he=(T,W)=>{switch(T){case"played":case"correct":return t.jsx(eo,{size:W});case"wrong":return t.jsx(uo,{size:W});default:return t.jsx(co,{size:W})}};return t.jsx("div",{className:"sound-compass",children:t.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:n,height:n},children:[t.jsxs("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,className:"sound-compass__svg",children:[x===0&&e.map(T=>{const{x:W,y:Q}=H(T);return t.jsx("line",{x1:X.x,y1:X.y,x2:W,y2:Q,stroke:"#dde3ec",strokeWidth:"1"},T.id)}),q.map(T=>t.jsx("path",{d:T.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},T.key))]}),w&&!b&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:I,height:I,left:X.x-I/2,top:X.y-I/2}}),m?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${b?" sound-compass__center--disabled":""}`,style:{width:I,height:I,left:X.x,top:X.y},"aria-label":v,"aria-disabled":b||void 0,tabIndex:b?-1:0,onClick:b?void 0:m,children:t.jsx(Da,{size:U,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:I,height:I,left:X.x,top:X.y},children:t.jsx(Da,{size:U,color:"currentColor",strokeWidth:1.5})}),e.map((T,W)=>{const{x:Q,y:_e}=H(T),ue=Ce(T),ie=ve(T),ae={...y!==void 0||S?{"--shortcut-badge-scale":String(y??Math.max(.75,Math.min(3,g/56)))}:null,pointerEvents:p?"auto":"none",cursor:p?"pointer":"default",zIndex:ue!=="idle"?10:1},se=g,Se=Math.round(Math.max(10,Math.min(56,se*.38))),He=Math.round(Math.max(7,Math.min(18,se*.2))),Ve=Math.round(Math.max(10,Math.min(56,se*.4))),Re=C==="answered"&&(ue==="played"||ue==="correct"||ue==="wrong"),Ee=C===!0||Re,je=!Re;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...ae,left:Q-se/2,top:_e-se/2},children:[ie&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ue}`+(ie==="once"?" sound-compass__pulse--once":""),style:{width:se,height:se,...ie==="once"&&u!==void 0?{"--sc-pulse-duration-once":`${u}ms`}:null,...h!==void 0?{"--sc-pulse-scale":String(h)}:null}}),t.jsxs("button",{type:"button",tabIndex:p?0:-1,"aria-disabled":p?void 0:!0,onClick:p?()=>f?.(T.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ue}`,style:{width:se,height:se},"aria-label":T.label,children:[Ee&&he(ue,Se),je&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:C===!0?He:Ve},children:W+1})]}),T.shortcut&&t.jsx(pi,{keys:T.shortcut,anchor:_,className:"sound-compass__speaker-shortcut"})]},T.id)})]})})}function OC({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:ye("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function HC({orientation:e="horizontal",label:n,className:a=""}){const r=ye("divider",`divider--${e}`,n&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?t.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):n?t.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[t.jsx("span",{className:"divider__line"}),t.jsx("span",{className:"divider__label caption-1",children:n}),t.jsx("span",{className:"divider__line"})]}):t.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function hi({checked:e,onChange:n,name:a,value:r,disabled:o=!1,label:s,className:l=""}){const c=i.useId();return t.jsxs("label",{className:`radio${o?" radio--disabled":""} ${l}`.trim(),htmlFor:c,children:[t.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:o,onChange:d=>n?.(d.target.checked)}),t.jsx("span",{className:"radio__dot"}),s&&t.jsx("span",{className:"radio__label body-2",children:s})]})}function VC({options:e,value:n,onChange:a,name:r,disabled:o=!1,direction:s="vertical",className:l=""}){const c=i.useId(),d=r??`radio-group-${c}`;return t.jsx("div",{className:`radio-group radio-group--${s} ${l}`.trim(),role:"radiogroup",children:e.map(u=>t.jsx(hi,{name:d,value:u.value,checked:n===u.value,disabled:o||u.disabled,label:u.label,onChange:h=>{h&&a?.(u.value)}},u.value))})}const zC={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function WC({tone:e="info",title:n,message:a,children:r,dismissible:o=!1,onDismiss:s,className:l=""}){const{t:c}=pe.useTranslation(),[d,u]=i.useState(!1),h=i.useCallback(()=>{u(!0),s?.()},[s]);if(d)return null;const p=ye("alert",`alert--${e}`,l),f=!!n,g=!!(a||r);return t.jsxs("div",{className:p,role:"alert",children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(Oe,{icon:zC[e],size:20,className:"alert__icon"}),f&&t.jsx("span",{className:"alert__title body-2",children:n}),!f&&g&&t.jsx("div",{className:"alert__message body-3",children:a??r})]}),f&&g&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a??r})]}),o&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:h,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const qC={ready:"search",guide:"info",error:"circle-alert"};function UC(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let o=0,s=0;for(const l of a){const c=e.indexOf(l,o);c<0||(c>o&&r.push(e.slice(o,c)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:l},s++)),o=c+l.length)}return o<e.length&&r.push(e.slice(o)),r}function GC({status:e="guide",label:n,children:a,emphasis:r,icon:o,className:s=""}){const l=o===!1?null:o??qC[e],c=ye("search-summary",`search-summary--${e}`,s),d=n??a,u=typeof d=="string"&&r&&r.length>0?UC(d,r):d;return t.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(Oe,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:u})]})}function Jn({title:e,items:n}){const{t:a}=pe.useTranslation(),{anchorRect:r,openAt:o,close:s}=da();return t.jsxs(t.Fragment,{children:[t.jsx(ne,{size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:l=>o(l.currentTarget),onPointerLeave:s,onFocus:l=>o(l.currentTarget),onBlur:s}),r&&t.jsx(_n,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:s})]})}function KC({items:e=[],value:n,onChange:a,className:r="",size:o=40}){const s=i.useId(),{t:l}=pe.useTranslation(),c=i.useRef(null),d=n??e[0]?.key,u=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),h=(g,C=u())=>{if(C.length===0)return;const m=(g%C.length+C.length)%C.length;C[m]?.focus(),C[m]?.click()},p=g=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(g.key))return;g.preventDefault();const C=u(),m=C.indexOf(g.currentTarget);g.key==="ArrowRight"||g.key==="ArrowDown"?h(m+1,C):g.key==="ArrowLeft"||g.key==="ArrowUp"?h(m-1,C):g.key==="Home"?h(0,C):h(C.length-1,C)},f=e.find(g=>g.key===d);return t.jsxs("div",{className:`tabs ${r}`.trim(),children:[t.jsx("div",{ref:c,className:`tabs__list tabs__list--${o}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(g=>t.jsx("button",{id:`tabs__tab-${s}-${g.key}`,type:"button",role:"tab","aria-selected":g.key===d,"aria-controls":`tabs__panel-${s}-${g.key}`,disabled:g.disabled,tabIndex:g.key===d?0:-1,className:`tabs__tab body-2${g.key===d?" tabs__tab--active":""}`,onClick:()=>a?.(g.key),onKeyDown:p,children:g.label},g.key))}),f&&t.jsx("div",{id:`tabs__panel-${s}-${f.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${s}-${f.key}`,tabIndex:0,className:"tabs__panel",children:f.panel},f.key)]})}const ZC={xs:12,sm:16,md:20,lg:28,xl:36};function YC(e){const n=e.trim().split(/\s+/).filter(Boolean);return n.length===0?"":n.length===1?[...n[0]].slice(0,2).join("").toUpperCase():([...n[0]][0]+[...n[n.length-1]][0]).toUpperCase()}function XC({src:e,name:n,size:a="md",shape:r="circle",className:o=""}){const{t:s}=pe.useTranslation(),[l,c]=i.useState(!1),d=n?YC(n):"",u=!!e&&!l,h=!u&&!!d,p=n||s("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${o}`.trim(),role:"img","aria-label":p,children:[u&&t.jsx("img",{className:"avatar__image",src:e,alt:p,onError:()=>c(!0)}),!u&&h&&t.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!u&&!h&&t.jsx(Oe,{icon:"user-round",size:ZC[a],className:"avatar__icon"})]})}function JC(e,n){if(!n)return!0;const a=n.split(",").map(s=>s.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),o=e.type.toLowerCase();return a.some(s=>{const l=s.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?o.startsWith(l.slice(0,-1)):o===l})}function QC({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:o=!0,files:s,onRemove:l,className:c=""}){const{t:d}=pe.useTranslation(),u=i.useRef(null),[h,p]=i.useState(!1),[f,g]=i.useState([]),C=s??f,m=x=>{if(!x||x.length===0)return;const A=Array.from(x).filter(k=>JC(k,n));if(A.length===0)return;const M=a?A:A.slice(0,1);if(s===void 0){const k=a?[...C,...M]:M;g(k),e?.(k)}else e?.(M)},v=x=>{x.preventDefault(),!r&&p(!0)},b=x=>{x.preventDefault(),p(!1)},w=x=>{x.preventDefault(),p(!1),!r&&m(x.dataTransfer.files)},_=x=>{m(x.target.files),x.target.value=""},y=()=>{r||u.current?.click()},S=x=>{if(l){l(x);return}if(s===void 0){const A=C.filter((M,k)=>k!==x);g(A),e?.(A)}};return t.jsxs("div",{className:`file-upload ${c}`.trim(),children:[t.jsxs("div",{className:ye("file-upload__dropzone",h&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:y,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),y())},onDragOver:v,onDragLeave:b,onDrop:w,children:[t.jsx(Oe,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:d("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),t.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:x=>{x.stopPropagation(),y()},children:d("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:u,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:_,tabIndex:-1})]}),o&&C.length>0&&t.jsx("ul",{className:"file-upload__list",children:C.map((x,A)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:x.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":d("fileUpload.removeAriaLabel",{name:x.name}),onClick:()=>S(A),children:t.jsx(Oe,{icon:"x",size:14})})]},`${x.name}-${A}`))})]})}function eg({items:e,className:n=""}){return t.jsx("nav",{className:`breadcrumb ${n}`.trim(),"aria-label":"breadcrumb",children:t.jsx("ol",{className:"breadcrumb__list",children:e.map((a,r)=>{const o=r===e.length-1;return t.jsxs("li",{className:"breadcrumb__item",children:[o?t.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:a.label}):t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:a.onClick,children:a.label}),!o&&t.jsx(Oe,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},r)})})})}const tg={small:14,medium:20,large:28};function ng({value:e,onChange:n,max:a=5,readOnly:r=!1,size:o="medium",ariaLabel:s,className:l=""}){const{t:c}=pe.useTranslation(),d=r||!n,[u,h]=i.useState(null),p=u??e,f=tg[o],g=y=>{d||n?.(y)},C=y=>{d||h(y)},m=i.useRef(null),v=y=>{const S=Math.min(a,Math.max(1,y));n?.(S),Array.from(m.current?.querySelectorAll("[data-star]")??[]).find(x=>x.dataset.star===String(S))?.focus()},b=y=>{if(!d){switch(y.key){case"ArrowRight":case"ArrowUp":v((e||0)+1);break;case"ArrowLeft":case"ArrowDown":v((e||1)-1);break;case"Home":v(1);break;case"End":v(a);break;default:return}y.preventDefault()}},w=e>=1&&e<=a?Math.round(e):1,_=()=>{d||h(null)};return t.jsx("div",{className:`rating rating--${o}${d?" rating--readOnly":""} ${l}`.trim(),ref:m,onKeyDown:b,role:d?"img":"radiogroup","aria-label":d?c("rating.valueLabel",{value:e,max:a}):s??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:_,children:Array.from({length:a},(y,S)=>{const x=S+1,A=Math.max(0,Math.min(1,p-S)),M=A>0&&A<1,k=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(Oe,{icon:"star",size:f,className:"rating__star rating__star--empty"}),A>0&&t.jsx("span",{className:`rating__star-fill${M?" rating__star-fill--half":""}`,children:t.jsx(Oe,{icon:"star",size:f,className:"rating__star rating__star--filled"})})]});return d?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:k},x):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===x,"aria-label":c("rating.starLabel",{n:x}),"data-star":x,tabIndex:x===w?0:-1,onClick:()=>g(x),onMouseEnter:()=>C(x),children:k},x)})})}const ag=20,rg=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function og({value:e,onChange:n,palette:a=rg,size:r=40,className:o=""}){const{t:s}=pe.useTranslation();return t.jsx("div",{className:`color-picker ${o}`.trim(),role:"group",children:a.map(l=>{const c=e?.toLowerCase()===l.toLowerCase();return t.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:l},onClick:()=>n(l),"aria-pressed":c,"aria-label":c?`${l} ${s("colorPicker.selected","\uC120\uD0DD\uB428")}`:l,children:c&&t.jsx(Oe,{icon:"check",size:ag,className:"color-picker__check"})},l)})})}function sg({icon:e,count:n,title:a,className:r="",onClick:o,onMouseEnter:s,onMouseLeave:l}){const c=ye("count-tile",o&&"count-tile--clickable",r);return t.jsxs("div",{className:c,onClick:o,onKeyDown:o?d=>{d.key!=="Enter"&&d.key!==" "||(d.preventDefault(),d.currentTarget.click())}:void 0,onMouseEnter:s,onMouseLeave:l,role:o?"button":"img",tabIndex:o?0:void 0,"aria-label":a?`${a} ${n}`:String(n),children:[t.jsx(Oe,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]})}function ig(){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:t.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function lg({open:e,onClose:n,ariaLabel:a,title:r,children:o,size:s="md",closeOnBackdrop:l=!0,closeOnEscape:c=!0,showClose:d=!0,className:u,contentClassName:h}){const{t:p}=pe.useTranslation(),f=i.useId(),g=i.useRef(null),C=i.useCallback(()=>n(),[n]);return i.useEffect(()=>{if(!e)return;const m=document.activeElement,{overflow:v}=document.body.style;return document.body.style.overflow="hidden",g.current?.focus(),()=>{document.body.style.overflow=v,m?.focus?.()}},[e]),i.useEffect(()=>{if(!(!e||!c))return nr(C)},[e,c,C]),Ya(g,e),!e||typeof document>"u"?null:Pt.createPortal(t.jsx("div",{className:ye("dialog",u),onClick:l?C:void 0,children:t.jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?f:void 0,tabIndex:-1,className:ye("dialog__surface",`dialog__surface--${s}`,h),onClick:m=>m.stopPropagation(),children:[r?t.jsx("div",{className:"dialog__header",children:t.jsx("h2",{id:f,className:"dialog__title h4b",children:r})}):null,d?t.jsx("button",{type:"button",className:"dialog__close","aria-label":p("common.close","\uB2EB\uAE30"),onClick:C,children:t.jsx(ig,{})}):null,t.jsx("div",{className:"dialog__body",children:o})]})}),document.body)}function cg({columns:e,rows:n,rowKey:a,title:r,toolbar:o,empty:s="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:l,caption:c,className:d=""}){const u=!l&&n.length===0;return t.jsxs("div",{className:ye("board",d),children:[r||o?t.jsxs("div",{className:"board__head",children:[r?t.jsx("h2",{className:"board__title",children:r}):t.jsx("span",{}),o?t.jsx("div",{className:"board__toolbar",children:o}):null]}):null,t.jsxs("table",{className:"board__table",children:[c?t.jsx("caption",{className:"board__caption",children:c}):null,t.jsx("thead",{children:t.jsx("tr",{children:e.map(h=>t.jsx("th",{scope:"col",className:ye("board__th",`board__cell--${h.headerAlign??h.align??"left"}`),style:h.width?{width:h.width}:void 0,children:h.header},h.key))})}),t.jsx("tbody",{children:l?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):u?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:s})}):n.map((h,p)=>t.jsx("tr",{className:"board__row",children:e.map(f=>t.jsx("td",{className:ye("board__td",`board__cell--${f.align??"left"}`),children:f.render(h,p)},f.key))},a(h,p)))})]})]})}function ug({name:e,role:n,photo:a,media:r,credentials:o,size:s=190,className:l=""}){return t.jsxs("div",{className:ye("person-card",l),children:[t.jsx("div",{className:"person-card__photo",style:{width:s,height:s},children:r??(a?t.jsx("img",{src:a,alt:n?`${e} ${n}`:e}):null)}),t.jsx("h3",{className:"person-card__name",children:e}),n?t.jsx("p",{className:"person-card__role",children:n}):null,o?.length?t.jsx("ul",{className:"person-card__credentials",children:o.map(c=>t.jsx("li",{children:c},c))}):null]})}function dg({groups:e,className:n=""}){return t.jsx("div",{className:ye("timeline",n),children:e.map(a=>t.jsxs("section",{className:"timeline__group",children:[t.jsx("h3",{className:"timeline__title",children:a.title}),t.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,o)=>t.jsxs("li",{className:"timeline__row",children:[r.label?t.jsx("span",{className:"timeline__label",children:r.label}):null,t.jsx("div",{className:"timeline__items",children:r.items.map((s,l)=>t.jsx("p",{children:s},l))})]},`${r.label??""}-${o}`))})]},a.title))})}function pg({title:e,kind:n,body:a,badge:r,badgeSrc:o,footer:s,width:l,className:c=""}){const d=r??(o?t.jsx("img",{src:o,alt:""}):null);return t.jsxs("div",{className:ye("publication-card",c),style:l?{width:l,flexShrink:0}:void 0,children:[d?t.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:d}):null,t.jsx("h3",{className:"publication-card__title",children:e}),n?t.jsx("p",{className:"publication-card__kind",children:n}):null,t.jsx("p",{className:"publication-card__body",children:a}),s?t.jsx("div",{className:"publication-card__footer",children:s}):null]})}function hg({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const o=Ja(a);return i.useEffect(()=>{if(!o.current)return;const s=setTimeout(()=>o.current?.(),r);return()=>clearTimeout(s)},[r,o]),t.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:t.jsx("img",{src:e,alt:n,className:"splash-logo__image"})})}function mg({eyebrow:e,eyebrowIndex:n,title:a,description:r,level:o=2,tone:s="dark",className:l=""}){const c=o===1?"h1":"h2";return t.jsxs("div",{className:ye("section-header",`section-header--${s}`,l),children:[e?t.jsxs("p",{className:"section-header__eyebrow",children:[n?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"section-header__index",children:n}),t.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?t.jsx(c,{className:"section-header__title",children:a}):null,r?t.jsx("div",{className:"section-header__description",children:r}):null]})}function fg({items:e,className:n=""}){return t.jsx("ul",{className:ye("company-meta",n),children:e.map((a,r)=>t.jsxs("li",{className:"company-meta__item",children:[r>0?t.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function mi({value:e,onChange:n,suggestions:a,openOnFocus:r=!1}){const o=i.useId(),[s,l]=i.useState(!1),[c,d]=i.useState(-1),u=i.useRef(null),h=i.useMemo(()=>{if(!a.length)return[];const m=e??"";return m?a.filter(v=>v.toLowerCase().includes(m.toLowerCase())):r?a:[]},[a,e,r]);i.useEffect(()=>{s||d(-1)},[s]),i.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const p=i.useCallback(m=>{n?.(m),l(!1)},[n]),f=i.useCallback(()=>l(!0),[]),g=i.useCallback(()=>{u.current=setTimeout(()=>l(!1),120)},[]),C=i.useCallback(m=>{m.key==="ArrowDown"?(m.preventDefault(),l(!0),d(v=>Math.min(h.length-1,v+1))):m.key==="ArrowUp"?(m.preventDefault(),d(v=>Math.max(-1,v-1))):m.key==="Enter"?c>=0&&!m.nativeEvent.isComposing&&p(h[c]):m.key==="Escape"&&s&&(m.preventDefault(),l(!1))},[h,c,s,p]);return{listId:o,open:s,activeIdx:c,filtered:h,handleFocus:f,handleBlur:g,handleKeyDown:C,handleSelect:p}}function kn(e){const{value:n,defaultValue:a,name:r,inputRef:o,onChange:s,label:l,ariaLabel:c,required:d,placeholder:u,type:h="text",disabled:p=!1,readOnly:f=!1,error:g,helperText:C,maxLength:m,size:v=48,variant:b="input",fullWidth:w=!1,newline:_=!1,multiline:y=!1,rows:S=3,leftIcon:x,rightIcon:A,clearable:M=!1,list:k,showCount:D=!0,className:O="",onFocus:R,onBlur:j,onKeyDown:P,onEnter:B,inputMode:F,autoComplete:Z,autoFocus:Y,suggestions:J,openOnFocus:E=!1}=e,{t:$}=pe.useTranslation(),L=i.useId();!l&&!c&&Ba(`TextField:unnamed:${L}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const V=`tf-${L}`,H=`tf-helper-${L}`,X=i.useRef(null),I=mi({value:n??"",onChange:s,suggestions:J??[],openOnFocus:E}),U=!!J&&I.open&&I.filtered.length>0,q=i.useCallback(ae=>{X.current=ae,typeof o=="function"?o(ae):o&&(o.current=ae)},[o]),le=n!==void 0,de=le&&h==="password",Ce=(n??"").length;i.useEffect(()=>{const ae=X.current;if(!de||!ae)return;const se=n??"";ae.value!==se&&(ae.value=se)},[de,n]),i.useEffect(()=>{if(!_||!X.current)return;const ae=X.current;ae.style.height="",ae.scrollHeight>ae.clientHeight&&(ae.style.height=`${ae.scrollHeight}px`)},[n,_]);const ve=m!=null&&Ce>m,he=v===32?16:20,T=ye("text-field",`text-field--s${v}`,b==="display"?"text-field--display":"",w?"text-field--full-width":"",p?"text-field--disabled":"",f?"text-field--readonly":"",g?"text-field--error":"",x?"text-field--has-left-icon":"",A||M?"text-field--has-right-icon":"",O),W={id:V,...de?{}:le?{value:n}:{defaultValue:a},ref:q,placeholder:u,name:r,disabled:p,readOnly:f,autoFocus:Y,tabIndex:f?-1:void 0,maxLength:m,list:k,inputMode:F,autoComplete:Z,"aria-label":!l&&c?c:void 0,"aria-required":d,"aria-invalid":!!g,"aria-describedby":C||g?H:void 0,role:J?"combobox":void 0,"aria-autocomplete":J?"list":void 0,"aria-haspopup":J?"listbox":void 0,"aria-expanded":J?I.open:void 0,"aria-controls":U?I.listId:void 0,"aria-activedescendant":U&&I.activeIdx>=0?`${I.listId}-option-${I.activeIdx}`:void 0,onChange:ae=>s?.(ae.target.value),onFocus:(ae=>{R?.(ae),J&&I.handleFocus()}),onBlur:(ae=>{j?.(ae),J&&I.handleBlur()}),onKeyDown:(ae=>{B&&ae.key==="Enter"&&!ae.nativeEvent.isComposing&&(ae.preventDefault(),B()),P?.(ae),J&&I.handleKeyDown(ae)})},Q=M&&!p&&!f&&Ce>0,_e=()=>_?t.jsx("textarea",{...W,className:"text-field__input text-field__input--auto body-2",rows:1}):y?t.jsx("textarea",{...W,className:"text-field__input text-field__input--textarea body-2",rows:S}):t.jsx("input",{...W,type:h,className:"text-field__input body-2"}),ue=b==="display"&&!_&&!y&&!!u,ie=()=>t.jsxs(t.Fragment,{children:[_e(),ue&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:u})]});return t.jsxs("div",{className:T,children:[l&&t.jsxs("label",{htmlFor:V,className:"text-field__label caption-1",children:[l,d&&t.jsx("span",{className:"text-field__required",children:"*"})]}),t.jsxs("div",{className:"text-field__wrap",children:[x&&t.jsx("span",{className:"text-field__icon text-field__icon--left",children:t.jsx(Oe,{icon:x,label:"",className:"",svgClassName:"text-field__icon-svg",size:he})}),ie(),m!=null&&D&&t.jsxs("span",{className:`text-field__count caption-2${ve?" text-field__count--over":""}`,children:[Ce,"/",m]}),Q&&t.jsx(ne,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:$("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:ae=>{ae.preventDefault()},onClick:()=>s?.(""),tabIndex:-1}),A&&!Q&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(Oe,{icon:A,label:"",className:"",svgClassName:"text-field__icon-svg",size:he})})]}),J&&I.open&&I.filtered.length>0&&t.jsx("ul",{id:I.listId,className:"text-field__suggestions",role:"listbox",children:I.filtered.map((ae,se)=>t.jsx("li",{id:`${I.listId}-option-${se}`,role:"option","aria-selected":se===I.activeIdx,className:`text-field__suggestion body-2${se===I.activeIdx?" is-active":""}`,onMouseDown:Se=>Se.preventDefault(),onClick:()=>{I.handleSelect(ae),X.current?.focus()},children:ae},`${ae}-${se}`))}),(C||g)&&t.jsx("div",{className:"text-field__footer",children:t.jsx("span",{id:H,className:"text-field__helper caption-1",role:g?"alert":void 0,children:g||C})})]})}function Vt({options:e,value:n,onChange:a,placeholder:r,disabled:o=!1,block:s=!1,size:l=48,error:c=!1,className:d="",ariaLabel:u}){const{t:h}=pe.useTranslation(),p=r??h("dropdown.placeholder","\uC120\uD0DD"),f=i.useId(),g=i.useRef(null),C=i.useCallback(j=>{const P=window.innerHeight-j.bottom<260&&j.top>260;return{position:"fixed",left:j.left,minWidth:j.width,...P?{bottom:window.innerHeight-j.top+6}:{top:j.bottom+6},zIndex:9999}},[]),{open:m,setOpen:v,toggle:b,style:w,triggerRef:_,menuRef:y}=Zn({computeStyle:C}),[S,x]=i.useState(-1),A=i.useCallback(()=>x(-1),[]),M=e.find(j=>j.value===n);i.useEffect(()=>{if(m){const j=e.findIndex(P=>P.value===n);x(j>=0?j:0),requestAnimationFrame(()=>{const P=y.current;if(!P)return;const B=P.querySelectorAll(".dropdown__option")[j];B&&(P.scrollTop=Math.max(0,B.offsetTop-P.clientHeight/2+B.clientHeight/2))})}},[m,e,n,y]);const k=i.useCallback(()=>{o||b()},[o,b]),D=i.useCallback(j=>{j.disabled||(a?.(j.value),v(!1))},[a,v]),O=i.useCallback(j=>{if(!o){if(!m){(j.key==="Enter"||j.key===" "||j.key==="ArrowDown")&&(j.preventDefault(),v(!0));return}if(j.key==="Escape"){j.preventDefault(),v(!1);return}j.key==="ArrowDown"?(j.preventDefault(),x(P=>{let B=P+1;for(;B<e.length&&e[B].disabled;)B++;return B<e.length?B:P})):j.key==="ArrowUp"?(j.preventDefault(),x(P=>{let B=P-1;for(;B>=0&&e[B].disabled;)B--;return B>=0?B:P})):j.key==="Enter"&&S>=0&&(j.preventDefault(),D(e[S]))}},[o,m,e,S,D,v]),R=m?t.jsx("div",{ref:y,id:f,className:"dropdown__menu",role:"listbox",style:w,onMouseLeave:A,children:e.map((j,P)=>t.jsxs("button",{id:`${f}-option-${P}`,type:"button",role:"option","aria-selected":j.value===n,className:ye("dropdown__option body-2",j.value===n?"dropdown__option--active":"",P===S?"dropdown__option--active":"",j.disabled?"dropdown__option--disabled":""),onMouseDown:B=>B.preventDefault(),onClick:()=>D(j),onMouseEnter:()=>x(P),disabled:j.disabled,children:[t.jsx("span",{className:"dropdown__option-check",children:j.value===n&&t.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),j.label]},j.value))}):null;return t.jsxs("div",{ref:g,className:ye("dropdown",`dropdown--s${l}`,m?"dropdown--open":"",s?"dropdown--block":"",c?"dropdown--error":"",d),onKeyDown:O,children:[t.jsxs("button",{ref:_,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":m,"aria-controls":m?f:void 0,"aria-activedescendant":m&&S>=0?`${f}-option-${S}`:void 0,"aria-label":u,"aria-invalid":c||void 0,disabled:o,onClick:k,children:[t.jsx("span",{className:`dropdown__trigger-label body-2${M?"":" dropdown__trigger-label--placeholder"}`,children:M?M.label:p}),t.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&Pt.createPortal(R,g.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function ha({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:o,className:s=""}){const{t:l}=pe.useTranslation(),c=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),d=o??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),u=()=>a(Math.max(1,e-1)),h=()=>a(Math.min(n,e+1));return t.jsxs("div",{className:ye("pagination",s),children:[t.jsx(ne,{size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:u}),t.jsxs("span",{className:"pagination__info body-3",children:[e," / ",n]}),t.jsx(ne,{size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:d,disabled:e>=n,onClick:h})]})}function An(e){const{t:n}=pe.useTranslation(),{options:a=[],value:r=a[0]?.key,onChange:o=v=>{},className:s="",size:l=48,shape:c="pill",useBG:d=!0,fullWidth:u=!1,ariaLabel:h}=e||{},p=i.useRef(null),f=a.filter(v=>!v.disabled),g=v=>{if(!f.length)return;const b=Math.max(0,f.findIndex(_=>_.key===r)),w=v==="first"?f[0]:v==="last"?f[f.length-1]:f[(b+v+f.length)%f.length];w&&(o(w.key),Array.from(p.current?.querySelectorAll("[data-segkey]")??[]).find(_=>_.dataset.segkey===w.key)?.focus())},C=v=>{switch(v.key){case"ArrowRight":case"ArrowDown":g(1);break;case"ArrowLeft":case"ArrowUp":g(-1);break;case"Home":g("first");break;case"End":g("last");break;default:return}v.preventDefault()},m=f.some(v=>v.key===r)?r:f[0]?.key;return t.jsx("div",{ref:p,onKeyDown:C,className:ye("segmented-control",`segmented-control--${c}`,`segmented-control--${l}`,u&&"segmented-control--full",!d&&"segmented-control--no-bg",s),role:"radiogroup","aria-label":h??n("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(v=>t.jsx(ne,{role:"radio","aria-checked":v.key===r,"data-segkey":v.key,tabIndex:v.key===m?0:-1,label:v.label,count:v.count,disabled:v.disabled,className:v.key===r?"is-selected":"",onClick:()=>{v.disabled||o(v.key)},size:l,shape:c,useBorder:!1,useBG:!1},v.key))})}function ir({count:e,search:n,segment:a,filters:r,pageSize:o,pagination:s,actions:l,className:c}){const{t:d}=pe.useTranslation(),u=e!=null&&t.jsxs("p",{className:"toolbar__count body-1",children:[e.prefix??d("common.totalPrefix","\uCD1D "),t.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),h=!!(n||r?.length||o||s||l);return t.jsxs("div",{className:ye("toolbar",c),children:[t.jsxs("div",{className:"toolbar__row",children:[u,a&&(Array.isArray(a)?a:[a]).map((p,f)=>t.jsx(An,{size:40,...p},p.ariaLabel??f))]}),h&&t.jsx("div",{className:"toolbar__row",children:t.jsxs("div",{className:"toolbar__row-end",children:[n&&t.jsx(kn,{className:"toolbar__search",size:40,value:n.value,onChange:n.onChange,placeholder:n.placeholder??d("common.search","\uAC80\uC0C9"),ariaLabel:n.placeholder??d("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((p,f)=>t.jsx(Vt,{size:40,options:p.options,value:p.value,onChange:p.onChange,ariaLabel:p.ariaLabel},f)),o&&t.jsx(Vt,{size:40,options:o.options,value:o.value,onChange:o.onChange,ariaLabel:o.ariaLabel??d("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),s&&t.jsx(ha,{page:s.page,totalPages:s.total,onChange:s.onChange,prevLabel:s.prevLabel,nextLabel:s.nextLabel}),l]})})]})}function fi(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(fi).join(""):""}function Cg(e){let n=e.replace(/\r\n/g,`
|
|
831
|
+
and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},Tf={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"}}},Mf={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},Lf={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},$f={answer:"Answer",distractor:"Distractor"},Rf={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},Pf={clearAriaLabel:"Clear input"},If={ariaLabel:"Select tab"},Ff={ariaLabel:"Tabs"},Of={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Hf={ariaLabel:"User avatar"},Vf={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"}},zf={weekly:{title:"Weekly Training",daily:"Daily Listening",crossword:"Crossword"},homework:{title:"Homework Progress",totalRate:"Overall rate",count:"Total",done:"Done",remaining:"Remaining"},today:{tooltipTotal:"Total",tooltipDone:"Done"},filter:{countSuffix:" sessions"},time:{countLabel:"{{n}} sessions",empty:"No training records"},daily:{title:"Today's Listening Record",empty:"No completed sessions"},crossword:{title:"Crossword Quiz",empty:"No completed levels"},visit:{title:"Linked Visit Records"},detail:"Details",trainingType:{LISTEN_IN_NOISE:"Sentence in Noise",SHORT_STORY:"Short Story",LONG_STORY:"Long Story",ORDERING_SENTENCE:"Sentence Ordering"}},Wf={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)"}},qf={manage:{unit:"item(s)"}},Uf={cancelLabel:"Cancel"},Gf={subtitle:"Select a topic to start listening practice."},Kf={steps:"Step {{current}} of {{total}}"},Zf={panelTitle:"Training misses",viewItems:"Items",viewTypes:"Types",colPending:"Left",colTrend:"Change",colRuns:"Runs",unitItem:" items",skippedOnly:"{{n}} older record(s) were excluded \u2014 they do not say what was answered.",summaryLabel:"Recorded",summaryValue:"{{items}} items \xB7 {{pending}} still missed",nextLabel:"Next to work on",nextCount:"{{count}}",nextCountCapped:"{{shown}} of {{total}}",picked:"\u2192 {{what}}",typeClear:"All caught up",typePending:"{{pending}} of {{total}} left",flat:"no change",runs:"{{count}} run(s)",avgDuration:"{{sec}}s avg"},Yf={resetColumns:"Reset column widths"},Xf={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}}"},Jf={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Qf={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},eC={previewRegion:"Report preview \u2014 scrollable sideways"},tC={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},nC={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},aC={common:Z2,calendar:Y2,passCard:X2,searchField:J2,rating:Q2,colorPicker:ef,dropdown:tf,accordion:nf,header:af,nav:rf,settings:of,usage:sf,account:lf,help:cf,training:uf,trainingSettings:df,customers:pf,payment:hf,coupons:mf,visits:ff,company:Cf,trainingType:gf,myWordTraining:bf,myWordTable:yf,keyWords:vf,wordTable:xf,wordSearch:_f,wordPrint:wf,topic:kf,accessLinkManager:Af,login:Nf,device:Bf,manager:Sf,wordPairs:Df,game:jf,footer:Ef,landing:Tf,date:Mf,trainingSetPage:Lf,wordTrainingPreview:$f,wordData:Rf,textField:Pf,segmentedControl:If,tabs:Ff,fileUpload:Of,avatar:Hf,myHomework:Vf,trainingStatus:zf,store:Wf,homework:qf,inquiry:Uf,trainingPlanRun:Gf,progress:Kf,trainingMiss:Zf,table:Yf,wordScore:Xf,topBanner:Jf,datePicker:Qf,report:eC,tooltip:tC,phonemeProfile:nC};const rC=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Js="ko",oC="ihab_display_language";function Qs(){try{const e=localStorage.getItem(oC);if(e&&rC.some(n=>n.code===e))return e}catch{}return Js}function ei(e){try{document.documentElement.lang=e}catch{}}bn.on("languageChanged",ei),ei(Qs()),bn.use(pe.initReactI18next).init({resources:{ko:{translation:K2},en:{translation:aC}},lng:Qs(),fallbackLng:Js,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function ti(e){if(!(e==null||e===""))return Un(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function sC(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function iC(e){if(e.durationDays&&e.durationDays>0){const o=e.durationDays;return o%365===0?`${o/365}\uB144`:`${o}\uC77C`}const n=(e.code??"").match(/(\d+)(d|y)\b/i);if(n)return n[2].toLowerCase()==="y"?`${n[1]}\uB144`:`${n[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);return r?r[1].replace(/\s+/g,""):a||"\uC774\uC6A9\uAD8C"}function lC(e){const n=(e??"").match(/(\d+)(d|y)\b/i);if(!n)return null;const a=Number(n[1]);return n[2].toLowerCase()==="y"?a*365:a}function ni(e){return{type:e.type??sC(e),plan:iC(e),label:e.label,price:ti(e.price),originalPrice:ti(e.originalPrice),discountLabel:e.discountLabel}}var cC='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',uC='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>',dC='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',pC='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',hC='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>',mC='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',ai='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 wn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},or=new WeakMap;function fC(e){if(e)return or.get(e)}function Qt(e,n){e&&(e.style.setProperty(wn.text,n.text),e.style.setProperty(wn.sub,n.sub),n.copyrightColor&&e.style.setProperty(wn.copyright,n.copyrightColor),or.set(e,n))}function en(e){e&&(e.style.removeProperty(wn.text),e.style.removeProperty(wn.sub),e.style.removeProperty(wn.copyright),or.delete(e))}const ri={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function oi(e={}){const n=rt(ri,Qt,en);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-two-circle__c1"}),t.jsx("div",{className:"pass-card-bg-two-circle__c3"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${ai}")`}})]})}const si="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 Yn='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 CC={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},gC=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function ii(e={}){const n=rt(CC,Qt,en),a="var(--color-main)",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[t.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:gC.map(({scale:s,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${s}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:si,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Yn}")`}})]})}const bC={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},yC=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function vC(e={}){const n=rt(bC,Qt,en),a="#ffffff",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[t.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:yC.map(({scale:s,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${s}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:si,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${ai}")`}})]})}const xC={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function _C(e={}){const n=rt(xC,Qt,en);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${Yn}")`}})]})}const wC={Logo_speechear_kr:{"":ar,_white:cC,_textWhite:uC,_black:dC},Logo_speechearManager_kr:{"":rr,_white:pC,_textWhite:hC,_black:mC}};function kC(e,n){if(e)return wC[e]?.[n??""]??void 0}const AC={speechear:ar,manager:rr},NC={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},li=10;function BC(e,n){if(e<=0)return n("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return n("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return n("passCard.remainingHour",{n:r});const o=Math.floor(e/60);return o>0?n("passCard.remainingMinute",{n:o}):n("passCard.remainingSecond",{n:Math.floor(e)})}function SC(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),o=a==="\uC624\uD508\uD2B9\uAC00"||a===bn.t("passCard.specialLabel");return r?t.jsx(_C,{}):o?t.jsx(vC,{}):t.jsx(ii,{})}return t.jsx(oi,{})}function ci({product:e,showPrice:n=!1,plan:a,type:r,endDate:o,remainingSeconds:s,state:l="active",bg:c,bgOnly:u=!1,textColor:d,subColor:h,copyrightColor:p,logoSrc:m,label:g,price:C,originalPrice:f,discountLabel:b,onUse:y,onRefund:w,onDelete:_}){const{t:v}=pe.useTranslation(),B=e?ni(e):void 0,x=r??B?.type??"speechear",A=a??B?.plan??"\uC774\uC6A9\uAD8C",M=g??B?.label,k=C??(n?B?.price:void 0),j=f??(n?B?.originalPrice:void 0),H=b??B?.discountLabel,R=i.useMemo(()=>{if(k)return null;const T=e?.durationDays??lC(e?.code);if(!T||T<=0)return null;const W=T*86400;let Q;if(s!=null)Q=s;else if((l==="active"||l==="expired")&&o){const ue=new Date(o).getTime();if(Number.isNaN(ue))return null;const ie=new Date;ie.setHours(0,0,0,0);const ae=new Date(ue);ae.setHours(0,0,0,0);const se=Math.round((ae.getTime()-ie.getTime())/864e5);Q=Math.max(0,se)*86400}else l==="expired"?Q=0:Q=W;const _e=Math.max(0,Math.min(100,Math.floor(Math.min(Q,W)/W*100)));return l==="pending"&&_e>=100?null:{percent:_e,remainingLabel:BC(Q,v)}},[k,l,o,s,e?.durationDays,e?.code,v]),E=i.useRef(null),[P,D]=i.useState({}),[z,Z]=i.useState(null),Y=!!(y||w||_),J=i.useRef(!1),S=i.useRef(void 0),[L,$]=i.useState(m);i.useLayoutEffect(()=>{$(m)},[m]),i.useLayoutEffect(()=>{const T=E.current;T&&(d!==void 0&&T.style.setProperty("--pass-card-text",d),h!==void 0&&T.style.setProperty("--pass-card-sub",h),p!==void 0&&T.style.setProperty("--pass-card-copyright",p))},[d,h,p]),i.useLayoutEffect(()=>{const T=E.current;if(!T)return;const W=fC(T);if(!m){const Q=NC[x],_e=l==="expired"?"_black":W?.logoColor??"",ue=kC(Q,_e);$(ue)}},[c,m,x,l]);const F=T=>{const W=E.current;if(!W)return null;const{left:Q,top:_e,width:ue,height:ie}=W.getBoundingClientRect(),ae=(T.clientX-Q)/ue-.5;return{rotateX:-((T.clientY-_e)/ie-.5)*li,rotateY:ae*li}},O=(T,W)=>{const Q=W*-.7,_e=T*.7+10,ue=20+(Math.abs(T)+Math.abs(W))*.4;return`${Q}px ${_e}px ${ue}px rgba(0, 0, 0, 0.18)`},X=i.useCallback(T=>{J.current=!0,clearTimeout(S.current),S.current=setTimeout(()=>{J.current=!1},200);const W=F(T);W&&D({transform:`perspective(800px) rotateX(${W.rotateX}deg) rotateY(${W.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:O(W.rotateX,W.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),I=i.useCallback(T=>{const W=F(T);if(!W)return;const Q=J.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";D({transform:`perspective(800px) rotateX(${W.rotateX}deg) rotateY(${W.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:O(W.rotateX,W.rotateY),transition:Q})},[]),U=i.useCallback(()=>{clearTimeout(S.current),J.current=!1,D({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),q=i.useCallback(()=>Z(null),[]),le=i.useMemo(()=>{const T=A.replace("\uC774\uC6A9\uAD8C","").trim(),W=T.match(/^(.*?)(일|년)$/);return W?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:W[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:W[2]==="\uB144"?v("passCard.unitYear","\uB144"):v("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:T})},[A,v]),de=i.useMemo(()=>{const T=Un(k);if(!T)return null;const W=T.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!W)return t.jsx("span",{className:"h1",children:T});const[,Q,_e,ue]=W;return t.jsxs(t.Fragment,{children:[Q&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:Q}),t.jsx("span",{className:"h1 pass-card__price-amount",children:_e}),ue.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:ue.trim()})]})},[k]),Ce=i.useCallback(()=>{Y&&Z(T=>{if(T)return null;const W=E.current?.getBoundingClientRect();if(!W)return null;const Q=50;return{left:W.left,right:W.right,width:W.width,height:W.height,x:W.x,y:W.y+Q,top:W.top+Q,bottom:W.bottom+Q}})},[Y]),ve=i.useCallback(T=>{Y&&(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),Ce())},[Y,Ce]),he=[{items:[...y?[{label:v("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{y(),Z(null)},closeOnSelect:!0}]:[],...w?[{label:v("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{w(),Z(null)},closeOnSelect:!0}]:[],..._?[{label:v("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{_(),Z(null)},closeOnSelect:!0}]:[]]}];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card-frame",children:t.jsxs("div",{ref:E,className:`pass-card pass-card--${l}${Y?" pass-card--clickable":""}`,style:P,onMouseEnter:X,onMouseMove:I,onMouseLeave:U,onClick:Ce,onKeyDown:Y?ve:void 0,role:Y?"button":void 0,tabIndex:Y?0:void 0,children:[c??SC(x,A,M),!u&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card__top",children:t.jsxs("div",{className:"pass-card__top-left",children:[t.jsx("img",{src:L??AC[x],className:"pass-card__logo",alt:x==="manager"?v("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):v("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:le}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:M?v("passCard.labeledPlan",{label:M}):v("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),k?t.jsxs("div",{className:"pass-card__price-area",children:[H&&t.jsx("span",{className:"pass-card__discount body-3",children:H}),t.jsxs("div",{className:"pass-card__price",children:[j&&t.jsx("span",{className:"pass-card__price-original body-3",children:Un(j)}),de]})]}):R?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:R.remainingLabel}),t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:R.percent}),t.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):t.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),z&&t.jsx(ln,{anchorRect:z,onClose:q,ariaLabel:v("tooltip.menu","\uBA54\uB274"),children:t.jsx(pa,{columns:he,onClose:q,size:"small"})})]})}const DC={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function jC(e={}){const n=`passcard-sound-line-grad-${i.useId()}`,a=rt(DC,Qt,en);return t.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[t.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:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:n,x1:"0",y1:"0",x2:"1",y2:"0",children:[t.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),t.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),t.jsx("g",{transform:"translate(25, 45)",children:t.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(#${n})`,strokeWidth:"50",strokeLinecap:"round"})})]}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${Yn}")`}})]})}const EC={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function TC(e={}){const n=rt(EC,Qt,en);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${Yn}")`}})]})}function MC(e,n){if(e){if(n==="manager_pro")return t.jsx(TC,{});if(n==="manager_standard")return t.jsx(jC,{});if(n==="manager_lite")return t.jsx(ii,{})}}function LC(e){const n=Un(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,o,s]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),o,s.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:s.trim()})]})}function $C(e){const{t:n}=pe.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:o,onSelect:s,period:l="monthly",ownedCodes:c}=e||{},u=_=>!!_&&!!c?.includes(_),d=(o.tiers||[]).some(_=>/오픈\s*특가/.test(_.label??"")&&u(_.code)),h=_=>{const v=_.prices?_.prices[l]:_.price;return v?(o.tiers||[]).some(B=>!!B.badge&&B.originals?.[l]===v):!1},p=o.colorToken?`var(--color-${o.colorToken})`:"var(--color-gray)",m=n("payment.plan.freePrice","\uBB34\uB8CC"),g=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),C=_=>_.prices?_.prices[l]:_.price,f=(o.tiers||[]).length>0&&(o.tiers||[]).every(_=>{const v=C(_);return v==="\uBB34\uB8CC"||v===m||v==="0\uC6D0"}),b=(o.tiers||[]).length>0&&(o.tiers||[]).every(_=>{const v=C(_);return v==="\uBB38\uC758"||v===g}),y=o.group==="org",w=y?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:p,"--plan-color":p},children:[o.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(lt,{label:o.cardBadge,variant:"main",size:"medium",fill:"soft"})}),t.jsxs("div",{className:"payment-plan__title",children:[t.jsx("p",{className:"payment-plan__quote body-3b",style:{color:p},children:o.quote||"\xA0"}),t.jsx("h3",{className:"payment-plan__title-heading h1",children:o.tier??o.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:o.subtitle})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.recommendedFor||[]).map((_,v)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Oe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:p}}),_]},v))})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.features||[]).map((_,v)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Oe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:p}}),_]},v))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:f?null:b?t.jsx(ne,{className:"payment-plan__contact-button",label:n("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>o.tiers?.[0]&&s?.({...o.tiers[0],productId:o.id,productTitle:o.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(o.tiers||[]).map(_=>{const v=_.label||a,B=/오픈\s*특가/.test(v),x=B||_.openPromo===!0,A=v.replace(/^오픈\s*특가\s*/,"")||a,M=_.prices?_.prices[l]:_.price,k=_.badge?x?`${r}
|
|
832
|
+
${_.badge}`:_.badge:void 0;if(B&&u(_.code))return null;if(!_.badge&&!d)return h(_)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${_.highlight?" payment-plan__pricing-row--highlight":""}`,children:[t.jsx("div",{className:"payment-plan__pricing-row-title",children:t.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:_.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:LC(M)})})]},_.id);const j=o.tier??(y?o.title:void 0),H=t.jsx(ci,{showPrice:!0,product:{type:w,code:_.code,name:A,label:j,price:M,originalPrice:_.originals?.[l]??void 0,discountLabel:k},bg:MC(y,o.id)}),R=()=>s?.({..._,productId:o.id,productTitle:o.title,preview:H});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:R,onKeyDown:s?E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),R())}:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,children:H},_.id)})})})})]})}function RC({variant:e="default"}){return t.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var sr='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 ui={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function PC(){const e=rt(ui,Qt,en);return t.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${sr}")`}})})}const di={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function IC(e={}){const n=rt(di,Qt,en);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),t.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${Yn}")`}})]})}function pi({keys:e,anchor:n="top-right",scale:a,className:r=""}){const o=Array.isArray(e)?e:[e];return t.jsx("span",{className:ye("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:o.map((s,l)=>t.jsxs("span",{className:"shortcut-badge__group",children:[l>0&&t.jsx("span",{className:"shortcut-badge__plus",children:"+"}),t.jsx("kbd",{className:"shortcut-badge__key",children:s})]},`${s}-${l}`))})}const Xn=(e,n,a)=>e+(n-e)*a;function FC({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:o,selectedId:s=null,answerId:l=null,showFeedback:c=!1,pulseSelected:u=!1,pulseSelectedDuration:d,pulseScale:h,clickable:p=!1,onSelectSpeaker:m,buttonSize:g=40,showIcon:C=!0,onCenterClick:f,centerLabel:b,centerDisabled:y=!1,centerAttention:w=!1,shortcutAnchor:_="top-right",shortcutScale:v,scaleShortcut:B=!1}){const x=Math.max(0,Math.min(1,a)),A=n/2,M=110/300,k=.18,j=T=>n*(M+(T-1)*k),H=T=>{const W=j(T.row??1),Q=T.angleDeg*Math.PI/180;return{x:A+W*Math.cos(Q),y:A+W*Math.sin(Q)}},R=Math.max(...e.map(T=>T.row??1),1),E=n*.08,P=n*.1,D=n*.24,z=n-2*E,Z=n-P-D,Y=n-D/2,J=i.useMemo(()=>[...new Set(e.map(T=>T.deg))].sort((T,W)=>T-W),[e]),S=J.length,L=Math.max(68,S>1?z/(S-1):0),$=i.useMemo(()=>new Map(J.map((T,W)=>[T,W])),[J]),F=T=>{const W=$.get(T.deg)??0,Q=A+(W-(S-1)/2)*L,_e=R>1?Math.min(68,Z/(R-1)):0,ue=_e*(R-1),ie=P+(Z-ue)/2,ae=R===1?P+Z*.4:ie+(R-(T.row??1))*_e;return{x:Q,y:ae}},O=T=>{const W=H(T),Q=F(T);return{x:Xn(W.x,Q.x,x),y:Xn(W.y,Q.y,x)}},X={x:A,y:Xn(A,Y,x)},I=Math.round(g*1.2),U=Math.round(Math.max(16,Math.min(80,g*.7))),q=[],le=new Map;for(const T of e){const W=T.row??1;le.has(W)||le.set(W,[]),le.get(W).push(T)}for(const[T,W]of le.entries()){if(W.length<2)continue;const Q=[...W].sort((Ae,ze)=>Ae.deg-ze.deg),_e=Q.map(Ae=>O(Ae)),ue=Q.map(Ae=>Ae.deg),ie=ue[ue.length-1]-ue[0],ae=ie/(ue.length-1),se=360-ie,Se=Q.length>=3&&ae>0&&se<=ae*1.5,He=Math.round(j(T)*1e3)/1e3,Ve=(Ae,ze,at,ge)=>{const Pe=(ze.angleDeg-Ae.angleDeg+540)%360-180;if(Pe===0)return`L ${ge.x} ${ge.y}`;if(x===0)return`A ${He} ${He} 0 0 ${Pe>0?1:0} ${ge.x} ${ge.y}`;const $e=(Ae.angleDeg+Pe/2)*Math.PI/180,Ke={x:A+He*Math.cos($e),y:A+He*Math.sin($e)},Ze={x:(at.x+ge.x)/2,y:(at.y+ge.y)/2},Ue={x:Xn(Ke.x,Ze.x,x),y:Xn(Ke.y,Ze.y,x)},Ie={x:2*Ue.x-Ze.x,y:2*Ue.y-Ze.y};return`Q ${Ie.x} ${Ie.y} ${ge.x} ${ge.y}`},Re=Se?[...Q,Q[0]]:Q,Ee=Se?[..._e,_e[0]]:_e;let je=`M ${Ee[0].x} ${Ee[0].y}`;for(let Ae=1;Ae<Ee.length;Ae++)je+=" "+Ve(Re[Ae-1],Re[Ae],Ee[Ae-1],Ee[Ae]);q.push({key:`arc-${T}`,d:je})}const de=i.useMemo(()=>new Set(o??[]),[o]),Ce=T=>{if(r===T.id)return"active";if(c){if(T.id===l)return"correct";if(T.id===s&&s!==l)return"wrong"}return de.has(T.id)?"played":"idle"},ve=T=>r===T.id?"loop":c?T.id===l?"loop":null:u&&T.id===s?"once":null,he=(T,W)=>{switch(T){case"played":case"correct":return t.jsx(eo,{size:W});case"wrong":return t.jsx(uo,{size:W});default:return t.jsx(co,{size:W})}};return t.jsx("div",{className:"sound-compass",children:t.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:n,height:n},children:[t.jsxs("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,className:"sound-compass__svg",children:[x===0&&e.map(T=>{const{x:W,y:Q}=O(T);return t.jsx("line",{x1:X.x,y1:X.y,x2:W,y2:Q,stroke:"#dde3ec",strokeWidth:"1"},T.id)}),q.map(T=>t.jsx("path",{d:T.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},T.key))]}),w&&!y&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:I,height:I,left:X.x-I/2,top:X.y-I/2}}),f?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${y?" sound-compass__center--disabled":""}`,style:{width:I,height:I,left:X.x,top:X.y},"aria-label":b,"aria-disabled":y||void 0,tabIndex:y?-1:0,onClick:y?void 0:f,children:t.jsx(Da,{size:U,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:I,height:I,left:X.x,top:X.y},children:t.jsx(Da,{size:U,color:"currentColor",strokeWidth:1.5})}),e.map((T,W)=>{const{x:Q,y:_e}=O(T),ue=Ce(T),ie=ve(T),ae={...v!==void 0||B?{"--shortcut-badge-scale":String(v??Math.max(.75,Math.min(3,g/56)))}:null,pointerEvents:p?"auto":"none",cursor:p?"pointer":"default",zIndex:ue!=="idle"?10:1},se=g,Se=Math.round(Math.max(10,Math.min(56,se*.38))),He=Math.round(Math.max(7,Math.min(18,se*.2))),Ve=Math.round(Math.max(10,Math.min(56,se*.4))),Re=C==="answered"&&(ue==="played"||ue==="correct"||ue==="wrong"),Ee=C===!0||Re,je=!Re;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...ae,left:Q-se/2,top:_e-se/2},children:[ie&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ue}`+(ie==="once"?" sound-compass__pulse--once":""),style:{width:se,height:se,...ie==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...h!==void 0?{"--sc-pulse-scale":String(h)}:null}}),t.jsxs("button",{type:"button",tabIndex:p?0:-1,"aria-disabled":p?void 0:!0,onClick:p?()=>m?.(T.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ue}`,style:{width:se,height:se},"aria-label":T.label,children:[Ee&&he(ue,Se),je&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:C===!0?He:Ve},children:W+1})]}),T.shortcut&&t.jsx(pi,{keys:T.shortcut,anchor:_,className:"sound-compass__speaker-shortcut"})]},T.id)})]})})}function OC({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:ye("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function HC({orientation:e="horizontal",label:n,className:a=""}){const r=ye("divider",`divider--${e}`,n&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?t.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):n?t.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[t.jsx("span",{className:"divider__line"}),t.jsx("span",{className:"divider__label caption-1",children:n}),t.jsx("span",{className:"divider__line"})]}):t.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function hi({checked:e,onChange:n,name:a,value:r,disabled:o=!1,label:s,className:l=""}){const c=i.useId();return t.jsxs("label",{className:`radio${o?" radio--disabled":""} ${l}`.trim(),htmlFor:c,children:[t.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:o,onChange:u=>n?.(u.target.checked)}),t.jsx("span",{className:"radio__dot"}),s&&t.jsx("span",{className:"radio__label body-2",children:s})]})}function VC({options:e,value:n,onChange:a,name:r,disabled:o=!1,direction:s="vertical",className:l=""}){const c=i.useId(),u=r??`radio-group-${c}`;return t.jsx("div",{className:`radio-group radio-group--${s} ${l}`.trim(),role:"radiogroup",children:e.map(d=>t.jsx(hi,{name:u,value:d.value,checked:n===d.value,disabled:o||d.disabled,label:d.label,onChange:h=>{h&&a?.(d.value)}},d.value))})}const zC={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function WC({tone:e="info",title:n,message:a,children:r,dismissible:o=!1,onDismiss:s,className:l=""}){const{t:c}=pe.useTranslation(),[u,d]=i.useState(!1),h=i.useCallback(()=>{d(!0),s?.()},[s]);if(u)return null;const p=ye("alert",`alert--${e}`,l),m=!!n,g=!!(a||r);return t.jsxs("div",{className:p,role:"alert",children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(Oe,{icon:zC[e],size:20,className:"alert__icon"}),m&&t.jsx("span",{className:"alert__title body-2",children:n}),!m&&g&&t.jsx("div",{className:"alert__message body-3",children:a??r})]}),m&&g&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a??r})]}),o&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:h,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const qC={ready:"search",guide:"info",error:"circle-alert"};function UC(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let o=0,s=0;for(const l of a){const c=e.indexOf(l,o);c<0||(c>o&&r.push(e.slice(o,c)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:l},s++)),o=c+l.length)}return o<e.length&&r.push(e.slice(o)),r}function GC({status:e="guide",label:n,children:a,emphasis:r,icon:o,className:s=""}){const l=o===!1?null:o??qC[e],c=ye("search-summary",`search-summary--${e}`,s),u=n??a,d=typeof u=="string"&&r&&r.length>0?UC(u,r):u;return t.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(Oe,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:d})]})}function Jn({title:e,items:n}){const{t:a}=pe.useTranslation(),{anchorRect:r,openAt:o,close:s}=da();return t.jsxs(t.Fragment,{children:[t.jsx(ne,{size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:l=>o(l.currentTarget),onPointerLeave:s,onFocus:l=>o(l.currentTarget),onBlur:s}),r&&t.jsx(_n,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:s})]})}function KC({items:e=[],value:n,onChange:a,className:r="",size:o=40}){const s=i.useId(),{t:l}=pe.useTranslation(),c=i.useRef(null),u=n??e[0]?.key,d=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),h=(g,C=d())=>{if(C.length===0)return;const f=(g%C.length+C.length)%C.length;C[f]?.focus(),C[f]?.click()},p=g=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(g.key))return;g.preventDefault();const C=d(),f=C.indexOf(g.currentTarget);g.key==="ArrowRight"||g.key==="ArrowDown"?h(f+1,C):g.key==="ArrowLeft"||g.key==="ArrowUp"?h(f-1,C):g.key==="Home"?h(0,C):h(C.length-1,C)},m=e.find(g=>g.key===u);return t.jsxs("div",{className:`tabs ${r}`.trim(),children:[t.jsx("div",{ref:c,className:`tabs__list tabs__list--${o}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(g=>t.jsx("button",{id:`tabs__tab-${s}-${g.key}`,type:"button",role:"tab","aria-selected":g.key===u,"aria-controls":`tabs__panel-${s}-${g.key}`,disabled:g.disabled,tabIndex:g.key===u?0:-1,className:`tabs__tab body-2${g.key===u?" tabs__tab--active":""}`,onClick:()=>a?.(g.key),onKeyDown:p,children:g.label},g.key))}),m&&t.jsx("div",{id:`tabs__panel-${s}-${m.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${s}-${m.key}`,tabIndex:0,className:"tabs__panel",children:m.panel},m.key)]})}const ZC={xs:12,sm:16,md:20,lg:28,xl:36};function YC(e){const n=e.trim().split(/\s+/).filter(Boolean);return n.length===0?"":n.length===1?[...n[0]].slice(0,2).join("").toUpperCase():([...n[0]][0]+[...n[n.length-1]][0]).toUpperCase()}function XC({src:e,name:n,size:a="md",shape:r="circle",className:o=""}){const{t:s}=pe.useTranslation(),[l,c]=i.useState(!1),u=n?YC(n):"",d=!!e&&!l,h=!d&&!!u,p=n||s("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${o}`.trim(),role:"img","aria-label":p,children:[d&&t.jsx("img",{className:"avatar__image",src:e,alt:p,onError:()=>c(!0)}),!d&&h&&t.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:u}),!d&&!h&&t.jsx(Oe,{icon:"user-round",size:ZC[a],className:"avatar__icon"})]})}function JC(e,n){if(!n)return!0;const a=n.split(",").map(s=>s.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),o=e.type.toLowerCase();return a.some(s=>{const l=s.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?o.startsWith(l.slice(0,-1)):o===l})}function QC({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:o=!0,files:s,onRemove:l,className:c=""}){const{t:u}=pe.useTranslation(),d=i.useRef(null),[h,p]=i.useState(!1),[m,g]=i.useState([]),C=s??m,f=x=>{if(!x||x.length===0)return;const A=Array.from(x).filter(k=>JC(k,n));if(A.length===0)return;const M=a?A:A.slice(0,1);if(s===void 0){const k=a?[...C,...M]:M;g(k),e?.(k)}else e?.(M)},b=x=>{x.preventDefault(),!r&&p(!0)},y=x=>{x.preventDefault(),p(!1)},w=x=>{x.preventDefault(),p(!1),!r&&f(x.dataTransfer.files)},_=x=>{f(x.target.files),x.target.value=""},v=()=>{r||d.current?.click()},B=x=>{if(l){l(x);return}if(s===void 0){const A=C.filter((M,k)=>k!==x);g(A),e?.(A)}};return t.jsxs("div",{className:`file-upload ${c}`.trim(),children:[t.jsxs("div",{className:ye("file-upload__dropzone",h&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:v,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),v())},onDragOver:b,onDragLeave:y,onDrop:w,children:[t.jsx(Oe,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:u("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),t.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:x=>{x.stopPropagation(),v()},children:u("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:_,tabIndex:-1})]}),o&&C.length>0&&t.jsx("ul",{className:"file-upload__list",children:C.map((x,A)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:x.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":u("fileUpload.removeAriaLabel",{name:x.name}),onClick:()=>B(A),children:t.jsx(Oe,{icon:"x",size:14})})]},`${x.name}-${A}`))})]})}function eg({items:e,className:n=""}){return t.jsx("nav",{className:`breadcrumb ${n}`.trim(),"aria-label":"breadcrumb",children:t.jsx("ol",{className:"breadcrumb__list",children:e.map((a,r)=>{const o=r===e.length-1;return t.jsxs("li",{className:"breadcrumb__item",children:[o?t.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:a.label}):t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:a.onClick,children:a.label}),!o&&t.jsx(Oe,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},r)})})})}const tg={small:14,medium:20,large:28};function ng({value:e,onChange:n,max:a=5,readOnly:r=!1,size:o="medium",ariaLabel:s,className:l=""}){const{t:c}=pe.useTranslation(),u=r||!n,[d,h]=i.useState(null),p=d??e,m=tg[o],g=v=>{u||n?.(v)},C=v=>{u||h(v)},f=i.useRef(null),b=v=>{const B=Math.min(a,Math.max(1,v));n?.(B),Array.from(f.current?.querySelectorAll("[data-star]")??[]).find(x=>x.dataset.star===String(B))?.focus()},y=v=>{if(!u){switch(v.key){case"ArrowRight":case"ArrowUp":b((e||0)+1);break;case"ArrowLeft":case"ArrowDown":b((e||1)-1);break;case"Home":b(1);break;case"End":b(a);break;default:return}v.preventDefault()}},w=e>=1&&e<=a?Math.round(e):1,_=()=>{u||h(null)};return t.jsx("div",{className:`rating rating--${o}${u?" rating--readOnly":""} ${l}`.trim(),ref:f,onKeyDown:y,role:u?"img":"radiogroup","aria-label":u?c("rating.valueLabel",{value:e,max:a}):s??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:_,children:Array.from({length:a},(v,B)=>{const x=B+1,A=Math.max(0,Math.min(1,p-B)),M=A>0&&A<1,k=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(Oe,{icon:"star",size:m,className:"rating__star rating__star--empty"}),A>0&&t.jsx("span",{className:`rating__star-fill${M?" rating__star-fill--half":""}`,children:t.jsx(Oe,{icon:"star",size:m,className:"rating__star rating__star--filled"})})]});return u?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:k},x):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===x,"aria-label":c("rating.starLabel",{n:x}),"data-star":x,tabIndex:x===w?0:-1,onClick:()=>g(x),onMouseEnter:()=>C(x),children:k},x)})})}const ag=20,rg=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function og({value:e,onChange:n,palette:a=rg,size:r=40,className:o=""}){const{t:s}=pe.useTranslation();return t.jsx("div",{className:`color-picker ${o}`.trim(),role:"group",children:a.map(l=>{const c=e?.toLowerCase()===l.toLowerCase();return t.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:l},onClick:()=>n(l),"aria-pressed":c,"aria-label":c?`${l} ${s("colorPicker.selected","\uC120\uD0DD\uB428")}`:l,children:c&&t.jsx(Oe,{icon:"check",size:ag,className:"color-picker__check"})},l)})})}function sg({icon:e,count:n,title:a,className:r="",onClick:o,onMouseEnter:s,onMouseLeave:l}){const c=ye("count-tile",o&&"count-tile--clickable",r);return t.jsxs("div",{className:c,onClick:o,onKeyDown:o?u=>{u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),u.currentTarget.click())}:void 0,onMouseEnter:s,onMouseLeave:l,role:o?"button":"img",tabIndex:o?0:void 0,"aria-label":a?`${a} ${n}`:String(n),children:[t.jsx(Oe,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]})}function ig(){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:t.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function lg({open:e,onClose:n,ariaLabel:a,title:r,children:o,size:s="md",closeOnBackdrop:l=!0,closeOnEscape:c=!0,showClose:u=!0,className:d,contentClassName:h}){const{t:p}=pe.useTranslation(),m=i.useId(),g=i.useRef(null),C=i.useCallback(()=>n(),[n]);return i.useEffect(()=>{if(!e)return;const f=document.activeElement,{overflow:b}=document.body.style;return document.body.style.overflow="hidden",g.current?.focus(),()=>{document.body.style.overflow=b,f?.focus?.()}},[e]),i.useEffect(()=>{if(!(!e||!c))return nr(C)},[e,c,C]),Ya(g,e),!e||typeof document>"u"?null:Pt.createPortal(t.jsx("div",{className:ye("dialog",d),onClick:l?C:void 0,children:t.jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?m:void 0,tabIndex:-1,className:ye("dialog__surface",`dialog__surface--${s}`,h),onClick:f=>f.stopPropagation(),children:[r?t.jsx("div",{className:"dialog__header",children:t.jsx("h2",{id:m,className:"dialog__title h4b",children:r})}):null,u?t.jsx("button",{type:"button",className:"dialog__close","aria-label":p("common.close","\uB2EB\uAE30"),onClick:C,children:t.jsx(ig,{})}):null,t.jsx("div",{className:"dialog__body",children:o})]})}),document.body)}function cg({columns:e,rows:n,rowKey:a,title:r,toolbar:o,empty:s="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:l,caption:c,className:u=""}){const d=!l&&n.length===0;return t.jsxs("div",{className:ye("board",u),children:[r||o?t.jsxs("div",{className:"board__head",children:[r?t.jsx("h2",{className:"board__title",children:r}):t.jsx("span",{}),o?t.jsx("div",{className:"board__toolbar",children:o}):null]}):null,t.jsxs("table",{className:"board__table",children:[c?t.jsx("caption",{className:"board__caption",children:c}):null,t.jsx("thead",{children:t.jsx("tr",{children:e.map(h=>t.jsx("th",{scope:"col",className:ye("board__th",`board__cell--${h.headerAlign??h.align??"left"}`),style:h.width?{width:h.width}:void 0,children:h.header},h.key))})}),t.jsx("tbody",{children:l?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):d?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:s})}):n.map((h,p)=>t.jsx("tr",{className:"board__row",children:e.map(m=>t.jsx("td",{className:ye("board__td",`board__cell--${m.align??"left"}`),children:m.render(h,p)},m.key))},a(h,p)))})]})]})}function ug({name:e,role:n,photo:a,media:r,credentials:o,size:s=190,className:l=""}){return t.jsxs("div",{className:ye("person-card",l),children:[t.jsx("div",{className:"person-card__photo",style:{width:s,height:s},children:r??(a?t.jsx("img",{src:a,alt:n?`${e} ${n}`:e}):null)}),t.jsx("h3",{className:"person-card__name",children:e}),n?t.jsx("p",{className:"person-card__role",children:n}):null,o?.length?t.jsx("ul",{className:"person-card__credentials",children:o.map(c=>t.jsx("li",{children:c},c))}):null]})}function dg({groups:e,className:n=""}){return t.jsx("div",{className:ye("timeline",n),children:e.map(a=>t.jsxs("section",{className:"timeline__group",children:[t.jsx("h3",{className:"timeline__title",children:a.title}),t.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,o)=>t.jsxs("li",{className:"timeline__row",children:[r.label?t.jsx("span",{className:"timeline__label",children:r.label}):null,t.jsx("div",{className:"timeline__items",children:r.items.map((s,l)=>t.jsx("p",{children:s},l))})]},`${r.label??""}-${o}`))})]},a.title))})}function pg({title:e,kind:n,body:a,badge:r,badgeSrc:o,footer:s,width:l,className:c=""}){const u=r??(o?t.jsx("img",{src:o,alt:""}):null);return t.jsxs("div",{className:ye("publication-card",c),style:l?{width:l,flexShrink:0}:void 0,children:[u?t.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:u}):null,t.jsx("h3",{className:"publication-card__title",children:e}),n?t.jsx("p",{className:"publication-card__kind",children:n}):null,t.jsx("p",{className:"publication-card__body",children:a}),s?t.jsx("div",{className:"publication-card__footer",children:s}):null]})}function hg({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const o=Ja(a);return i.useEffect(()=>{if(!o.current)return;const s=setTimeout(()=>o.current?.(),r);return()=>clearTimeout(s)},[r,o]),t.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:t.jsx("img",{src:e,alt:n,className:"splash-logo__image"})})}function mg({eyebrow:e,eyebrowIndex:n,title:a,description:r,level:o=2,tone:s="dark",className:l=""}){const c=o===1?"h1":"h2";return t.jsxs("div",{className:ye("section-header",`section-header--${s}`,l),children:[e?t.jsxs("p",{className:"section-header__eyebrow",children:[n?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"section-header__index",children:n}),t.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?t.jsx(c,{className:"section-header__title",children:a}):null,r?t.jsx("div",{className:"section-header__description",children:r}):null]})}function fg({items:e,className:n=""}){return t.jsx("ul",{className:ye("company-meta",n),children:e.map((a,r)=>t.jsxs("li",{className:"company-meta__item",children:[r>0?t.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function mi({value:e,onChange:n,suggestions:a,openOnFocus:r=!1}){const o=i.useId(),[s,l]=i.useState(!1),[c,u]=i.useState(-1),d=i.useRef(null),h=i.useMemo(()=>{if(!a.length)return[];const f=e??"";return f?a.filter(b=>b.toLowerCase().includes(f.toLowerCase())):r?a:[]},[a,e,r]);i.useEffect(()=>{s||u(-1)},[s]),i.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const p=i.useCallback(f=>{n?.(f),l(!1)},[n]),m=i.useCallback(()=>l(!0),[]),g=i.useCallback(()=>{d.current=setTimeout(()=>l(!1),120)},[]),C=i.useCallback(f=>{f.key==="ArrowDown"?(f.preventDefault(),l(!0),u(b=>Math.min(h.length-1,b+1))):f.key==="ArrowUp"?(f.preventDefault(),u(b=>Math.max(-1,b-1))):f.key==="Enter"?c>=0&&!f.nativeEvent.isComposing&&p(h[c]):f.key==="Escape"&&s&&(f.preventDefault(),l(!1))},[h,c,s,p]);return{listId:o,open:s,activeIdx:c,filtered:h,handleFocus:m,handleBlur:g,handleKeyDown:C,handleSelect:p}}function kn(e){const{value:n,defaultValue:a,name:r,inputRef:o,onChange:s,label:l,ariaLabel:c,required:u,placeholder:d,type:h="text",disabled:p=!1,readOnly:m=!1,error:g,helperText:C,maxLength:f,size:b=48,variant:y="input",fullWidth:w=!1,newline:_=!1,multiline:v=!1,rows:B=3,leftIcon:x,rightIcon:A,clearable:M=!1,list:k,showCount:j=!0,className:H="",onFocus:R,onBlur:E,onKeyDown:P,onEnter:D,inputMode:z,autoComplete:Z,autoFocus:Y,suggestions:J,openOnFocus:S=!1}=e,{t:L}=pe.useTranslation(),$=i.useId();!l&&!c&&Ba(`TextField:unnamed:${$}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const F=`tf-${$}`,O=`tf-helper-${$}`,X=i.useRef(null),I=mi({value:n??"",onChange:s,suggestions:J??[],openOnFocus:S}),U=!!J&&I.open&&I.filtered.length>0,q=i.useCallback(ae=>{X.current=ae,typeof o=="function"?o(ae):o&&(o.current=ae)},[o]),le=n!==void 0,de=le&&h==="password",Ce=(n??"").length;i.useEffect(()=>{const ae=X.current;if(!de||!ae)return;const se=n??"";ae.value!==se&&(ae.value=se)},[de,n]),i.useEffect(()=>{if(!_||!X.current)return;const ae=X.current;ae.style.height="",ae.scrollHeight>ae.clientHeight&&(ae.style.height=`${ae.scrollHeight}px`)},[n,_]);const ve=f!=null&&Ce>f,he=b===32?16:20,T=ye("text-field",`text-field--s${b}`,y==="display"?"text-field--display":"",w?"text-field--full-width":"",p?"text-field--disabled":"",m?"text-field--readonly":"",g?"text-field--error":"",x?"text-field--has-left-icon":"",A||M?"text-field--has-right-icon":"",H),W={id:F,...de?{}:le?{value:n}:{defaultValue:a},ref:q,placeholder:d,name:r,disabled:p,readOnly:m,autoFocus:Y,tabIndex:m?-1:void 0,maxLength:f,list:k,inputMode:z,autoComplete:Z,"aria-label":!l&&c?c:void 0,"aria-required":u,"aria-invalid":!!g,"aria-describedby":C||g?O:void 0,role:J?"combobox":void 0,"aria-autocomplete":J?"list":void 0,"aria-haspopup":J?"listbox":void 0,"aria-expanded":J?I.open:void 0,"aria-controls":U?I.listId:void 0,"aria-activedescendant":U&&I.activeIdx>=0?`${I.listId}-option-${I.activeIdx}`:void 0,onChange:ae=>s?.(ae.target.value),onFocus:(ae=>{R?.(ae),J&&I.handleFocus()}),onBlur:(ae=>{E?.(ae),J&&I.handleBlur()}),onKeyDown:(ae=>{D&&ae.key==="Enter"&&!ae.nativeEvent.isComposing&&(ae.preventDefault(),D()),P?.(ae),J&&I.handleKeyDown(ae)})},Q=M&&!p&&!m&&Ce>0,_e=()=>_?t.jsx("textarea",{...W,className:"text-field__input text-field__input--auto body-2",rows:1}):v?t.jsx("textarea",{...W,className:"text-field__input text-field__input--textarea body-2",rows:B}):t.jsx("input",{...W,type:h,className:"text-field__input body-2"}),ue=y==="display"&&!_&&!v&&!!d,ie=()=>t.jsxs(t.Fragment,{children:[_e(),ue&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:d})]});return t.jsxs("div",{className:T,children:[l&&t.jsxs("label",{htmlFor:F,className:"text-field__label caption-1",children:[l,u&&t.jsx("span",{className:"text-field__required",children:"*"})]}),t.jsxs("div",{className:"text-field__wrap",children:[x&&t.jsx("span",{className:"text-field__icon text-field__icon--left",children:t.jsx(Oe,{icon:x,label:"",className:"",svgClassName:"text-field__icon-svg",size:he})}),ie(),f!=null&&j&&t.jsxs("span",{className:`text-field__count caption-2${ve?" text-field__count--over":""}`,children:[Ce,"/",f]}),Q&&t.jsx(ne,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:L("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:ae=>{ae.preventDefault()},onClick:()=>s?.(""),tabIndex:-1}),A&&!Q&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(Oe,{icon:A,label:"",className:"",svgClassName:"text-field__icon-svg",size:he})})]}),J&&I.open&&I.filtered.length>0&&t.jsx("ul",{id:I.listId,className:"text-field__suggestions",role:"listbox",children:I.filtered.map((ae,se)=>t.jsx("li",{id:`${I.listId}-option-${se}`,role:"option","aria-selected":se===I.activeIdx,className:`text-field__suggestion body-2${se===I.activeIdx?" is-active":""}`,onMouseDown:Se=>Se.preventDefault(),onClick:()=>{I.handleSelect(ae),X.current?.focus()},children:ae},`${ae}-${se}`))}),(C||g)&&t.jsx("div",{className:"text-field__footer",children:t.jsx("span",{id:O,className:"text-field__helper caption-1",role:g?"alert":void 0,children:g||C})})]})}function Vt({options:e,value:n,onChange:a,placeholder:r,disabled:o=!1,block:s=!1,size:l=48,error:c=!1,className:u="",ariaLabel:d}){const{t:h}=pe.useTranslation(),p=r??h("dropdown.placeholder","\uC120\uD0DD"),m=i.useId(),g=i.useRef(null),C=i.useCallback(E=>{const P=window.innerHeight-E.bottom<260&&E.top>260;return{position:"fixed",left:E.left,minWidth:E.width,...P?{bottom:window.innerHeight-E.top+6}:{top:E.bottom+6},zIndex:9999}},[]),{open:f,setOpen:b,toggle:y,style:w,triggerRef:_,menuRef:v}=Zn({computeStyle:C}),[B,x]=i.useState(-1),A=i.useCallback(()=>x(-1),[]),M=e.find(E=>E.value===n);i.useEffect(()=>{if(f){const E=e.findIndex(P=>P.value===n);x(E>=0?E:0),requestAnimationFrame(()=>{const P=v.current;if(!P)return;const D=P.querySelectorAll(".dropdown__option")[E];D&&(P.scrollTop=Math.max(0,D.offsetTop-P.clientHeight/2+D.clientHeight/2))})}},[f,e,n,v]);const k=i.useCallback(()=>{o||y()},[o,y]),j=i.useCallback(E=>{E.disabled||(a?.(E.value),b(!1))},[a,b]),H=i.useCallback(E=>{if(!o){if(!f){(E.key==="Enter"||E.key===" "||E.key==="ArrowDown")&&(E.preventDefault(),b(!0));return}if(E.key==="Escape"){E.preventDefault(),b(!1);return}E.key==="ArrowDown"?(E.preventDefault(),x(P=>{let D=P+1;for(;D<e.length&&e[D].disabled;)D++;return D<e.length?D:P})):E.key==="ArrowUp"?(E.preventDefault(),x(P=>{let D=P-1;for(;D>=0&&e[D].disabled;)D--;return D>=0?D:P})):E.key==="Enter"&&B>=0&&(E.preventDefault(),j(e[B]))}},[o,f,e,B,j,b]),R=f?t.jsx("div",{ref:v,id:m,className:"dropdown__menu",role:"listbox",style:w,onMouseLeave:A,children:e.map((E,P)=>t.jsxs("button",{id:`${m}-option-${P}`,type:"button",role:"option","aria-selected":E.value===n,className:ye("dropdown__option body-2",E.value===n?"dropdown__option--active":"",P===B?"dropdown__option--active":"",E.disabled?"dropdown__option--disabled":""),onMouseDown:D=>D.preventDefault(),onClick:()=>j(E),onMouseEnter:()=>x(P),disabled:E.disabled,children:[t.jsx("span",{className:"dropdown__option-check",children:E.value===n&&t.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),E.label]},E.value))}):null;return t.jsxs("div",{ref:g,className:ye("dropdown",`dropdown--s${l}`,f?"dropdown--open":"",s?"dropdown--block":"",c?"dropdown--error":"",u),onKeyDown:H,children:[t.jsxs("button",{ref:_,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":f,"aria-controls":f?m:void 0,"aria-activedescendant":f&&B>=0?`${m}-option-${B}`:void 0,"aria-label":d,"aria-invalid":c||void 0,disabled:o,onClick:k,children:[t.jsx("span",{className:`dropdown__trigger-label body-2${M?"":" dropdown__trigger-label--placeholder"}`,children:M?M.label:p}),t.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&Pt.createPortal(R,g.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function ha({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:o,className:s=""}){const{t:l}=pe.useTranslation(),c=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),u=o??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=()=>a(Math.max(1,e-1)),h=()=>a(Math.min(n,e+1));return t.jsxs("div",{className:ye("pagination",s),children:[t.jsx(ne,{size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:d}),t.jsxs("span",{className:"pagination__info body-3",children:[e," / ",n]}),t.jsx(ne,{size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:u,disabled:e>=n,onClick:h})]})}function An(e){const{t:n}=pe.useTranslation(),{options:a=[],value:r=a[0]?.key,onChange:o=b=>{},className:s="",size:l=48,shape:c="pill",useBG:u=!0,fullWidth:d=!1,ariaLabel:h}=e||{},p=i.useRef(null),m=a.filter(b=>!b.disabled),g=b=>{if(!m.length)return;const y=Math.max(0,m.findIndex(_=>_.key===r)),w=b==="first"?m[0]:b==="last"?m[m.length-1]:m[(y+b+m.length)%m.length];w&&(o(w.key),Array.from(p.current?.querySelectorAll("[data-segkey]")??[]).find(_=>_.dataset.segkey===w.key)?.focus())},C=b=>{switch(b.key){case"ArrowRight":case"ArrowDown":g(1);break;case"ArrowLeft":case"ArrowUp":g(-1);break;case"Home":g("first");break;case"End":g("last");break;default:return}b.preventDefault()},f=m.some(b=>b.key===r)?r:m[0]?.key;return t.jsx("div",{ref:p,onKeyDown:C,className:ye("segmented-control",`segmented-control--${c}`,`segmented-control--${l}`,d&&"segmented-control--full",!u&&"segmented-control--no-bg",s),role:"radiogroup","aria-label":h??n("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(b=>t.jsx(ne,{role:"radio","aria-checked":b.key===r,"data-segkey":b.key,tabIndex:b.key===f?0:-1,label:b.label,count:b.count,disabled:b.disabled,className:b.key===r?"is-selected":"",onClick:()=>{b.disabled||o(b.key)},size:l,shape:c,useBorder:!1,useBG:!1},b.key))})}function ir({count:e,search:n,segment:a,filters:r,pageSize:o,pagination:s,actions:l,className:c}){const{t:u}=pe.useTranslation(),d=e!=null&&t.jsxs("p",{className:"toolbar__count body-1",children:[e.prefix??u("common.totalPrefix","\uCD1D "),t.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),h=!!(n||r?.length||o||s||l);return t.jsxs("div",{className:ye("toolbar",c),children:[t.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((p,m)=>t.jsx(An,{size:40,...p},p.ariaLabel??m))]}),h&&t.jsx("div",{className:"toolbar__row",children:t.jsxs("div",{className:"toolbar__row-end",children:[n&&t.jsx(kn,{className:"toolbar__search",size:40,value:n.value,onChange:n.onChange,placeholder:n.placeholder??u("common.search","\uAC80\uC0C9"),ariaLabel:n.placeholder??u("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((p,m)=>t.jsx(Vt,{size:40,options:p.options,value:p.value,onChange:p.onChange,ariaLabel:p.ariaLabel},m)),o&&t.jsx(Vt,{size:40,options:o.options,value:o.value,onChange:o.onChange,ariaLabel:o.ariaLabel??u("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),s&&t.jsx(ha,{page:s.page,totalPages:s.total,onChange:s.onChange,prevLabel:s.prevLabel,nextLabel:s.nextLabel}),l]})})]})}function fi(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(fi).join(""):""}function Cg(e){let n=e.replace(/\r\n/g,`
|
|
833
833
|
`).replace(/\r/g,`
|
|
834
834
|
`);n=n.replace(/^\n+/,"").replace(/\n+$/,"");const a=n.split(`
|
|
835
835
|
`).map(s=>s.replace(/\t/g," ")),r=a.filter(s=>s.trim().length>0),o=r.length>0?Math.min(...r.map(s=>s.match(/^ */)?.[0].length??0)):0;return a.map(s=>s.slice(o)).join(`
|
|
836
836
|
`)}const gg=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),bg=/^(?: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 yg(e,n){let a=e;const r=[],o=/sh|bash/.test(n.toLowerCase()),s=(l,c)=>r.push({type:l,content:c});for(;a.length>0;){const l=a.match(/^\s+/);if(l){s("whitespace",l[0]),a=a.slice(l[0].length);continue}if(!o&&a.startsWith("//")){const C=a.indexOf(`
|
|
837
|
-
`),
|
|
838
|
-
`),m=C===-1?a:a.slice(0,C);s("comment",m),a=a.slice(m.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){s("comment",c[0]),a=a.slice(c[0].length);continue}const d=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(d){s("string",d[0]),a=a.slice(d[0].length);continue}const u=a.match(/^\d+(?:\.\d+)?/);if(u){s("number",u[0]),a=a.slice(u[0].length);continue}const h=a.match(bg);if(h){s("keyword",h[0]),a=a.slice(h[0].length);continue}const p=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(p){const C=p[0];s(o&&gg.has(C)?"command":"identifier",C),a=a.slice(C.length);continue}const f=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(f){s("operator",f[0]),a=a.slice(f[0].length);continue}const g=a.match(/^[()[\]{};.,]/);if(g){s("punctuation",g[0]),a=a.slice(1);continue}s("other",a[0]),a=a.slice(1)}return r}function vg({children:e,language:n="bash",title:a="",showCopy:r=!0,size:o="default",className:s=""}){const{t:l}=pe.useTranslation(),[c,d]=i.useState(!1),u=Cg(fi(e)),h=i.useRef(null);i.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const p=async()=>{try{if(!await Zm(u))return;d(!0),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>d(!1),2e3)}catch{}},f=yg(u,n),g=o==="small"?"caption-1":"body-3";return t.jsxs("div",{className:ye("code-box",o==="small"?"code-box--small":"",s),children:[(a||r)&&t.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":l("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[t.jsx("div",{className:"code-box__title caption-1",children:a}),r&&t.jsx(ne,{className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:p,ariaLabel:c?l("common.copied","\uBCF5\uC0AC\uB428"):l("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),t.jsx("pre",{className:"code-box__inner","data-lang":n,children:t.jsx("code",{children:f.map((C,m)=>t.jsx("span",{className:`code-token ${C.type} ${g}`,children:C.content},m))})})]})}function Qn(e){const{variant:n="spinner",size:a=24,progress:r=null,label:o}=e||{};if(n==="bar"){const l=Math.max(0,Math.min(100,Number(r)||0));return t.jsx("div",{className:"loader-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l,"aria-label":o||"Loading",children:t.jsx("div",{className:"loader-bar__inner",style:{width:`${l}%`}})})}const s=typeof a=="number"?`${a}px`:a;return t.jsx("div",{className:"loader-spinner",style:{width:s,height:s},role:"status","aria-label":o||"Loading",children:t.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:a,height:a,children:[t.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),t.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})})}function Ci({checked:e,onChange:n,disabled:a=!1,label:r,ariaLabel:o,labelPosition:s="right",className:l="",id:c}){const d=r&&t.jsx("span",{className:"toggle__label body-3",children:r});return t.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[s==="left"&&d,t.jsx("input",{id:c,type:"checkbox",checked:e,disabled:a,onChange:u=>n?.(u.target.checked),"aria-label":!r&&o?o:void 0}),t.jsx("span",{className:"toggle__slider"}),s==="right"&&d]})}function gi({checked:e=!1,onChange:n,disabled:a,indeterminate:r,label:o,size:s="medium",className:l,title:c,ariaLabel:d}){const u=i.useRef(null),h=i.useId();return i.useEffect(()=>{u.current&&(u.current.indeterminate=!!r)},[r]),t.jsxs("label",{className:ye("checkbox",s==="small"&&"checkbox--small",s==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:h,title:c,children:[t.jsx("input",{ref:u,id:h,type:"checkbox",className:"checkbox__input",checked:e,onChange:p=>n?.(p.target.checked),disabled:a,"aria-label":!o&&d?d:void 0}),t.jsx("span",{className:"checkbox__box"}),o&&t.jsx("span",{className:"checkbox__label body-3",children:o})]})}function xg({count:e,actions:n,onClear:a,clearLabel:r="\uC120\uD0DD \uD574\uC81C",visible:o,content:s,max:l}){const{t:c}=pe.useTranslation(),d=o!==void 0?o:e>0,u=i.useRef(null),[h,p]=i.useState(!1);return i.useEffect(()=>{const f=u.current;if(!f)return;const g=()=>{const m=f.firstElementChild??f,v=Array.from(m.children);if(v.length<2){p(!1);return}const b=v[0].offsetTop;p(v.some(w=>w.offsetTop!==b))};if(g(),typeof ResizeObserver>"u")return;const C=new ResizeObserver(g);return C.observe(f),()=>C.disconnect()},[s,e]),t.jsxs("div",{className:`bulk-bar ${d?"bulk-bar--visible":""}`,children:[t.jsx("span",{ref:u,className:"bulk-bar__count body-2",children:s??t.jsx("b",{children:c("common.selectedCount",{count:e})})}),l!==void 0&&t.jsx(lt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),t.jsxs("div",{className:`bulk-bar__actions${h?" bulk-bar__actions--stacked":""}`,children:[t.jsx(ne,{size:40,label:r,onClick:a}),n.map((f,g)=>t.jsx(ne,{size:40,variant:f.variant??"default",icon:f.icon,label:f.label,onClick:f.onClick},g))]})]})}function bi(e){const n=()=>{if(e){const[p,f]=e.split("-");return{y:+p,m:+f-1}}const h=new Date;return{y:h.getFullYear(),m:h.getMonth()}},[a,r]=i.useState(()=>n().y),[o,s]=i.useState(()=>n().m),l=i.useRef(e);i.useEffect(()=>{if(e===l.current)return;l.current=e;const h=n();r(h.y),s(h.m)},[e]);const c=i.useCallback(()=>{o===0?(r(h=>h-1),s(11)):s(h=>h-1)},[o]),d=i.useCallback(()=>{o===11?(r(h=>h+1),s(0)):s(h=>h+1)},[o]),u=i.useCallback((h,p)=>{r(h),s(p)},[]);return{viewY:a,viewM:o,prevMonth:c,nextMonth:d,setViewYM:u}}function yi(e,n){return new Date(e,n+1,0).getDate()}function _g(e,n){return new Date(e,n,1).getDay()}function En(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function wg(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function kg(e,n,a){const r=n?+n.split("-")[0]:e-10,o=a?+a.split("-")[0]:e+10,s=[];for(let l=r;l<=o;l++)for(let c=0;c<12;c++){const d=`${l}-${String(c+1).padStart(2,"0")}`;n&&d<n.slice(0,7)||a&&d>a.slice(0,7)||s.push({value:d,label:`${l}\uB144 ${c+1}\uC6D4`})}return s}function Ag({value:e,onChange:n,size:a=48,min:r,max:o,disabled:s,placeholder:l="\uB0A0\uC9DC \uC120\uD0DD",className:c}){const{t:d}=pe.useTranslation(),u=i.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),h=new Date,{viewY:p,viewM:f,prevMonth:g,nextMonth:C,setViewYM:m}=bi(e),v=i.useCallback(E=>{const $=window.innerHeight-E.bottom,L=300,V=$<L&&E.top>L;return{position:"fixed",left:E.left,width:E.width,minWidth:260,...V?{bottom:window.innerHeight-E.top+6}:{top:E.bottom+6},zIndex:9999}},[]),{open:b,setOpen:w,toggle:_,style:y,triggerRef:S,menuRef:x}=Zn({computeStyle:v,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});i.useEffect(()=>{if(!b)return;const E=x.current;return(E?.querySelector(".date-picker__day--selected")??E?.querySelector(".date-picker__day--today")??E?.querySelector(Gn)??E)?.focus?.(),()=>{const $=document.activeElement;(!$||$===document.body)&&S.current?.focus?.()}},[b,x,S]);const[A,M]=i.useState(1),k=i.useRef(null),D=i.useRef(null);i.useEffect(()=>{if(!b)return;const E=En(h.getFullYear(),h.getMonth(),h.getDate()),$=e&&e.slice(0,7)===`${p}-${String(f+1).padStart(2,"0")}`?+e.slice(8):E.slice(0,7)===`${p}-${String(f+1).padStart(2,"0")}`?+E.slice(8):1;M($)},[b]),i.useEffect(()=>{if(D.current==null)return;const E=D.current;D.current=null,k.current?.querySelector(`[data-day="${E}"]`)?.focus()}),i.useEffect(()=>{M(E=>Math.min(E,yi(p,f)))},[p,f]);const O=i.useCallback(E=>{let $=En(E.getFullYear(),E.getMonth(),E.getDate());r&&$<r&&($=r),o&&$>o&&($=o);const[L,V,H]=$.split("-").map(Number);(L!==p||V-1!==f)&&m(L,V-1),M(H),D.current=H},[r,o,p,f,m]),R=i.useCallback(E=>{const $=new Date(p,f,A),L=H=>{$.setDate($.getDate()+H),O($)},V=H=>{$.setMonth($.getMonth()+H),O($)};switch(E.key){case"ArrowLeft":L(-1);break;case"ArrowRight":L(1);break;case"ArrowUp":L(-7);break;case"ArrowDown":L(7);break;case"Home":L(-$.getDay());break;case"End":L(6-$.getDay());break;case"PageUp":E.shiftKey?V(-12):V(-1);break;case"PageDown":E.shiftKey?V(12):V(1);break;default:return}E.preventDefault()},[p,f,A,O]),j=i.useCallback(E=>{n(En(p,f,E)),w(!1)},[p,f,n,w]),P=E=>{const $=En(p,f,E);return!!(r&&$<r||o&&$>o)},B=[];for(let E=0;E<_g(p,f);E++)B.push(null);for(let E=1;E<=yi(p,f);E++)B.push(E);const F=a===64?20:a===40?16:18,Z=kg(p,r,o),Y=`${p}-${String(f+1).padStart(2,"0")}`,J=b?Pt.createPortal(t.jsxs("div",{ref:x,className:"date-picker__dropdown",style:y,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[t.jsxs("div",{className:"date-picker__nav",children:[t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:g,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(to,{size:16,strokeWidth:2})}),t.jsx(Vt,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:Z,value:Y,onChange:E=>{const[$,L]=E.split("-");m(+$,+L-1)},block:!0,size:40}),t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:C,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(no,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:k,onKeyDown:R,children:[u.map(E=>t.jsx("div",{className:"date-picker__dow caption-1",children:E},E)),B.map((E,$)=>{if(E===null)return t.jsx("div",{},`e${$}`);const L=En(p,f,E),V=L===e,H=L===En(h.getFullYear(),h.getMonth(),h.getDate()),X=P(E),I=$%7;return t.jsx("button",{type:"button",disabled:X,"data-day":E,tabIndex:E===A?0:-1,"aria-current":H?"date":void 0,onClick:()=>!X&&j(E),className:ye("date-picker__day caption-1",V&&"date-picker__day--selected",H&&!V&&"date-picker__day--today",X&&"date-picker__day--disabled",I===0&&"date-picker__day--sun",I===6&&"date-picker__day--sat"),children:E},E)})]})]}),document.body):null;return t.jsxs("div",{className:ye("date-picker",`date-picker--s${a}`,b&&"date-picker--open",c),children:[t.jsxs("button",{ref:S,type:"button",className:"date-picker__trigger body-2",onClick:()=>!s&&_(),disabled:s,"aria-haspopup":"true","aria-expanded":b,children:[t.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?wg(e):l}),t.jsx(po,{size:F,className:"date-picker__icon",strokeWidth:1.5})]}),J]})}function lr({items:e,className:n}){return t.jsx("div",{className:n?`manager-bar-chart-legend ${n}`:"manager-bar-chart-legend",children:e.map((a,r)=>t.jsxs("span",{className:"manager-bar-chart-legend-item",children:[t.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function ma({label:e,children:n}){return e?t.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[t.jsx("span",{className:"barchart-total__label body-3",children:e}),t.jsx("span",{className:"barchart-total__value",children:n})]}):t.jsx("div",{className:"barchart-total",children:n})}function cr({title:e,titleClassName:n="h3",headRight:a,subRow:r,className:o,children:s}){return t.jsxs("section",{className:o?`manager-section ${o}`:"manager-section",children:[t.jsxs("div",{className:"manager-section__head",children:[t.jsx("div",{className:n,children:e}),a]}),r&&t.jsx("div",{className:"barchart-sub-row",children:r}),s]})}function dn(e,n){const a=new Date(e,n,1).getDay();return 1+(8-(a===0?7:a))%7}function Ng(){const e=new Date;let n=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<dn(n,a)){const l=new Date(n,a,0);n=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const o=Math.floor((r-dn(n,a))/7),s=`${n}\uB144 ${a+1}\uC6D4`;return{monthKey:s,value:`${s}#${o}`}}function Bg(e){const n=new Date,a=`${n.getFullYear()}\uB144 ${n.getMonth()+1}\uC6D4`,r=(d,u)=>`${d}\uB144 ${u+1}\uC6D4`,o=new Map;o.set(a,[]);for(const d of e){if(isNaN(d.date.getTime()))continue;const u=r(d.date.getFullYear(),d.date.getMonth());o.has(u)||o.set(u,[]),o.get(u).push(d)}const s=new Map;for(const[d,u]of o){const h=d.match(/^(\d+)년 (\d+)월$/);if(!h)continue;const p=Number(h[1]),f=Number(h[2])-1,g=new Date(p,f+1,0).getDate(),C=u.reduce((w,_)=>Math.max(w,_.parts?.length??0),0),m=new Array(g+1).fill(0),v=new Array(g+1).fill(0),b=Array.from({length:g+1},()=>new Array(C).fill(0));for(const w of u){const _=w.date.getDate();if(m[_]+=w.a,v[_]+=w.b,w.parts)for(let y=0;y<C;y++)b[_][y]+=w.parts[y]??0}s.set(d,{year:p,month:f,daysInMonth:g,partsLen:C,dayA:m,dayB:v,dayParts:b})}const l=(d,u,h)=>new Date(d,u,h).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),c={};for(const[d,u]of s){const{year:h,month:p,daysInMonth:f,dayA:g,dayB:C,dayParts:m}=u,v=h===n.getFullYear()&&p===n.getMonth(),b=n.getDate(),w=s.get(r(p===11?h+1:h,(p+1)%12)),_=u.partsLen,y=[];for(let x=1;x<=f;x++){const A=v&&x>b;y.push({label:String(x),a:A&&g[x]===0&&C[x]===0?-1:g[x],b:C[x],..._?{parts:m[x]}:{}})}const S=[];for(let x=dn(h,p);x<=f;x+=7){const A=Math.max(0,x+6-f),M=A&&w?Math.max(_,w.partsLen):_;let k=0,D=0;const O=new Array(M).fill(0);for(let j=x;j<=Math.min(x+6,f);j++){k+=g[j],D+=C[j];for(let P=0;P<_;P++)O[P]+=m[j][P]}if(A&&w)for(let j=1;j<=A&&!l(w.year,w.month,j);j++){k+=w.dayA[j],D+=w.dayB[j];for(let P=0;P<w.partsLen;P++)O[P]+=w.dayParts[j][P]}const R=A?`${(p+1)%12+1}/${A}`:`${x+6}`;S.push({label:`${S.length+1}\uC8FC`,sublabel:`[${x}\uC77C~${R}\uC77C]`,a:k,b:D,...M?{parts:O}:{}})}c[d]={weekly:S,daily:y}}return c}function Sg(){const e=new Date,n=e.getFullYear(),a=e.getMonth()+1,r=[];for(let o=2024;o<=n;o++){const s=o===n?a:12;for(let l=1;l<=s;l++){const c=`${o}\uB144 ${l}\uC6D4`;r.push({value:c,label:c,year:o,month:l})}}return r.reverse()}const Dg=Sg(),vi=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function xi(e){const{t:n,i18n:a}=pe.useTranslation(),[r,o]=i.useState("week"),s=i.useMemo(()=>Dg.filter(k=>k.value in e),[e]),l=i.useMemo(()=>{const k=[];for(const D of s){const O=new Date(D.year,D.month,0).getDate(),R=dn(D.year,D.month-1),j=Math.ceil((O-R+1)/7);for(let P=j-1;P>=0;P--)k.push({value:`${D.value}#${P}`,monthKey:D.value,year:D.year,month:D.month,week:P})}return k},[s]),c=i.useCallback(k=>{const D=n("calendar.yearMonth",{year:k.year,month:k.month});return a.language?.startsWith("ko")?`${D} ${vi[k.week]??`${k.week+1}`}\uC8FC`:`${D} Week ${k.week+1}`},[n,a.language]),d=i.useMemo(()=>s.map(k=>({value:k.value,label:n("calendar.yearMonth",{year:k.year,month:k.month})})),[n,s]),u=i.useMemo(()=>l.map(k=>({value:k.value,label:c(k)})),[l,c]),h=i.useMemo(()=>Ng(),[]),p=i.useMemo(()=>s.find(k=>k.value===h.monthKey)?.value??s[0]?.value??"",[s,h]),f=i.useMemo(()=>l.find(k=>k.value===h.value)?.value??l[0]?.value??"",[l,h]),[g,C]=i.useState(""),[m,v]=i.useState("");i.useEffect(()=>{s.find(k=>k.value===g)||C(p)},[s,g,p]),i.useEffect(()=>{l.find(k=>k.value===m)||v(f)},[l,m,f]);const b=r==="month"?d:u,w=r==="month"?g:m,_=r==="month"?C:v,y=i.useMemo(()=>{const k=n("calendar.dow",{returnObjects:!0});return Array.isArray(k)?k:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[n]),S=b.findIndex(k=>k.value===w),x=i.useCallback(()=>{const k=b.findIndex(D=>D.value===w);k<b.length-1&&_(b[k+1].value)},[b,w,_]),A=i.useCallback(()=>{const k=b.findIndex(D=>D.value===w);k>0&&_(b[k-1].value)},[b,w,_]),M=i.useMemo(()=>[{key:"week",label:n("manager.chart.periodWeek","\uC8FC")},{key:"month",label:n("manager.chart.periodMonth","\uC6D4")}],[n]);return{period:r,setPeriod:o,range:w,setRange:_,activeOptions:b,activeIdx:S,handlePrev:x,handleNext:A,periodOptions:M,monthRange:g,weekRange:m,weekRanges:l,DOW:y}}function jg({data:e,colorA:n,colorB:a,labelA:r,labelB:o,barWidth:s=10,height:l=140,maxOverride:c,tightMax:d,seriesColors:u,seriesLabels:h,rateLabels:p}){const f=!a,g=!!(u&&u.length>0),C=i.useMemo(()=>g?Math.max(0,...e.filter(A=>A.a!==-1).map(A=>(A.parts??[]).reduce((M,k)=>M+Math.max(0,k),0))):Math.max(0,...e.filter(A=>A.a!==-1).flatMap(A=>f?[A.a]:[A.a,A.b])),[e,f,g]),m=i.useMemo(()=>c??(d?C>0?C:10:Math.ceil(C/10)*10||10),[C,c,d]),v=l,b=g||f?1:2,w={"--bar-width":`${i.useMemo(()=>{const A=Math.max(1,e.length);return Math.max(8,Math.min(s,Math.round(120/(A*b)+6)))},[e.length,b,s])}px`},_=i.useMemo(()=>{const A=Math.round(m/2);return A!==m?[m,A,0]:[m,0]},[m]),[y,S]=i.useState(null),x=i.useCallback(()=>S(null),[]);return t.jsxs("div",{className:"manager-bar-chart-wrap",children:[t.jsx("div",{className:"manager-bar-chart-inner",children:t.jsx("div",{className:"manager-bar-chart-scroll",children:t.jsxs("div",{className:"manager-bar-chart-area",children:[t.jsxs("div",{className:"manager-bar-chart-plot",style:{height:v},children:[_.slice(0,-1).map((A,M)=>t.jsx("div",{className:"manager-bar-chart-gridline",style:{top:M*(v/(_.length-1))},children:t.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:A})},M)),e.map((A,M)=>{const k=A.a===-1,D=k?0:A.a/m*v,O=k?0:A.b/m*v,R=A.parts??[];return t.jsx("div",{className:"manager-bar-chart-col",style:{cursor:k?"default":"pointer"},onMouseEnter:k?void 0:j=>{const P=j.currentTarget.getBoundingClientRect(),B=[A.label,A.sublabel].filter(Boolean).join(" ");let F;if(g){const Z=(h??[]).map((J,E)=>({text:`${J}: ${R[E]??0}`,color:(u??[])[E]})),Y=Z.filter((J,E)=>(R[E]??0)>0);F=Y.length?Y:Z}else p&&!f?F=[{text:`${r} ${A.a}%`,color:n},{text:`${o} ${A.b}%`,color:a}]:p&&A.rawB!==void 0?F=[{text:`${p.total} ${A.rawB}`},{text:`${p.done} ${A.rawA??0}`,color:n}]:f?F=[{text:`${r}: ${A.a}`,color:n}]:F=[{text:`${r}: ${A.a}`,color:n},{text:`${o}: ${A.b}`,color:a}];S({rect:{left:P.left,top:P.top,right:P.right,bottom:P.bottom,width:P.width,height:P.height},title:B,items:F})},onMouseLeave:x,children:!k&&(g?t.jsx("div",{className:"manager-bar-chart-stack",style:w,children:(()=>{const j=R.reduce((P,B,F)=>B>0?F:P,-1);return R.map((P,B)=>P>0?t.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:P/m*v,background:(u??[])[B],borderRadius:B===j?"6px 6px 0 0":void 0}},B):null)})()}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:D,background:n}}),!f&&t.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:O,background:a}})]}))},M)})]}),t.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((A,M)=>{const k=A.a===-1;return t.jsxs("span",{className:`manager-bar-chart-x-axis__label${k?" manager-bar-chart-x-axis__label--future":""}`,children:[t.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[A.isToday&&t.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:n}}),A.label]}),A.sublabel&&t.jsx("span",{className:"caption-1",children:A.sublabel})]},M)})})]})})}),y&&t.jsx(_n,{anchorRect:y.rect,title:y.title,items:y.items,showIndex:!1,closeOnOutsideClick:!1})]})}function _i({control:e}){const{t:n}=pe.useTranslation(),{activeOptions:a,activeIdx:r,range:o,setRange:s,handlePrev:l,handleNext:c,periodOptions:d,period:u,setPeriod:h}=e,p=u==="week"?n("calendar.prevWeek","\uC774\uC804 \uC8FC"):n("calendar.prevMonth","\uC774\uC804 \uB2EC"),f=u==="week"?n("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):n("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return t.jsxs("div",{className:"manager-section-controls",children:[t.jsx(ne,{size:32,type:"dot",icon:"chevron-left",ariaLabel:p,showTooltipInfo:p,disabled:r===a.length-1,onClick:l}),t.jsx(Vt,{value:o,onChange:s,options:a,size:40,className:"month-dropdown",ariaLabel:n("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),t.jsx(ne,{size:32,type:"dot",icon:"chevron-right",ariaLabel:f,showTooltipInfo:f,disabled:r<=0,onClick:c}),t.jsx(An,{ariaLabel:n("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:d,value:u,onChange:g=>h(g),size:32})]})}function wi(e,n,a){const r=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(o,s)=>{const l=new Date(n);l.setDate(n.getDate()+s);const c=(e[`${l.getFullYear()}\uB144 ${l.getMonth()+1}\uC6D4`]?.daily??[])[l.getDate()-1],d=c?.a===-1||l>r;return{dt:l,entry:c,isFuture:d}})}function Eg(e,n,a,r){const{period:o,monthRange:s,weekRange:l,weekRanges:c,DOW:d}=n,u=r?.startsWith("ko"),h=new Date,p=h.getFullYear(),f=h.getMonth()+1,g=h.getDate();if(o==="month"){const v=e[s]??{weekly:[],daily:[]},b=s.match(/^(\d+)년 (\d+)월$/),w=b?Number(b[1]):null,_=b?Number(b[2]):null,y=w&&_?dn(w,_-1):1;return v.weekly.map((S,x)=>{const A=x+1;let M=S.label,k=!1,D=!1;if(w&&_){const O=y+x*7,R=new Date(w,_-1,O+6),j=R.getMonth()+1,P=R.getDate(),B=j===_?`${P}`:`${j}/${P}`;M=a("manager.chart.weekRange",{start:O,end:B});const F=new Date(p,f-1,g).getTime();k=F>=new Date(w,_-1,O).getTime()&&F<=R.getTime(),D=w>p||w===p&&(_>f||_===f&&O>g)}return{...S,label:M,sublabel:u?`${vi[A-1]??A}\uC8FC`:`Week ${A}`,isToday:k,a:D?-1:S.a,b:D?0:S.b}})}const C=c.find(v=>v.value===l);if(!C)return[];const m=new Date(C.year,C.month-1,dn(C.year,C.month-1)+C.week*7);return wi(e,m,h).map(({dt:v,entry:b,isFuture:w})=>{const _=v.getMonth()+1,y=v.getDate(),S=v.getFullYear();return{label:_===C.month&&S===C.year?`${y}`:`${_}/${y}`,sublabel:d[v.getDay()]??"",a:w?-1:b&&b.a>0?b.a:0,b:w?0:b&&b.b>0?b.b:0,isToday:S===p&&_===f&&y===g,...b?.parts?{parts:w?b.parts.map(()=>0):b.parts}:{}}})}const Tg={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function Mg({size:e="medium",barWidth:n,titleKey:a,data:r,colorA:o,colorB:s,labelAKey:l,labelBKey:c,showTotal:d=!1,totalUnitKey:u,totalLabelKey:h,control:p,hideControls:f=!1,rate:g=!1,tightMax:C=!1,avgMode:m=!1,totalFormat:v,series:b,loading:w=!1,onDetail:_}){const{t:y,i18n:S}=pe.useTranslation(),x=Tg[e],A=xi(r),M=p??A,k=i.useMemo(()=>Eg(r,M,y,S.language),[r,M,y,S.language]),D=i.useMemo(()=>{if(!g)return k;const P=M.period==="month"?M.monthRange.match(/^(\d+)년 (\d+)월$/):null,B=new Date;return k.map((F,Z)=>{let Y=F.a===-1?-1:F.b>0?Math.round(F.a/F.b*100):0;if(P&&F.a!==-1){const J=Number(P[1]),E=Number(P[2])-1,$=wi(r,new Date(J,E,dn(J,E)+Z*7),B).filter(L=>!L.isFuture);Y=$.length?Math.round($.reduce((L,{entry:V})=>L+(V&&V.b>0?V.a/V.b*100:0),0)/$.length):0}return{...F,a:Y,b:F.a===-1?0:c&&F.parts&&F.parts[1]>0?Math.round(F.parts[0]/F.parts[1]*100):0,rawA:F.a===-1?-1:F.a,rawB:F.b}})},[k,g,c,M.period,M.monthRange,r]),O=i.useMemo(()=>{if(g||m){const P=(M.period==="week"?k:r[M.monthRange]?.daily??[]).filter(F=>F.a!==-1);if(P.length===0)return 0;const B=g?P.reduce((F,Z)=>F+(Z.b>0?Z.a/Z.b*100:0),0):P.reduce((F,Z)=>F+(Z.a>0?Z.a:0),0);return Math.round(B/P.length)}return D.reduce((P,B)=>P+(B.a>0?B.a:0)+(c&&B.b>0?B.b:0),0)},[D,k,g,m,c,M.period,M.monthRange,r]),R=b&&b.length>0?b.map(P=>({color:P.color,label:P.label})):[{color:o,label:y(l)},...c?[{color:s,label:y(c)}]:[]],j=e==="small";return t.jsx(cr,{className:j?"manager-section--compact":e==="large"?"manager-section--full":void 0,title:y(a),titleClassName:j?"h5 chart-section-title--small":void 0,headRight:j?void 0:t.jsxs(t.Fragment,{children:[!f&&t.jsx(_i,{control:M}),_&&t.jsx("span",{className:"manager-bar-chart-detail-btn",children:t.jsx(ne,{size:32,type:"dot",icon:"list",ariaLabel:y("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:_})})]}),subRow:t.jsxs(t.Fragment,{children:[d?g||m||h&&v?t.jsx(ma,{label:j?void 0:`${y(M.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${y(h??l)}`,children:v?(v(O).match(/(\d+|[^\d]+)/g)??[]).map((P,B)=>/\d/.test(P)?t.jsx("span",{className:"barchart-total__num h0",children:P},B):t.jsx("span",{className:"barchart-total__unit h5",children:P},B)):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"barchart-total__num h0",children:O}),u&&t.jsx("span",{className:"barchart-total__unit h5",children:y(u)})]})}):t.jsxs(ma,{children:[t.jsx("span",{className:"barchart-total__num h0",children:O}),t.jsx("span",{className:"barchart-total__unit h5",children:y(l)}),u&&t.jsx("span",{className:"barchart-total__unit h5",children:y(u)})]}):t.jsx("span",{}),t.jsx(lr,{items:R,className:"caption-1"})]}),children:w?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(Qn,{size:32})}):t.jsx(jg,{data:D,colorA:o,colorB:c?s:void 0,labelA:y(l),labelB:c?y(c):void 0,barWidth:n??x.barWidth,height:x.height,maxOverride:g?100:void 0,tightMax:C,seriesColors:b?.map(P=>P.color),seriesLabels:b?.map(P=>P.label),rateLabels:g?{total:y("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:y("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}function Lg(e){if(e.period==="month"){const s=e.monthRange.match(/^(\d+)년 (\d+)월$/),l=new Date,c=s?Number(s[1]):l.getFullYear(),d=s?Number(s[2]):l.getMonth()+1;return{from:new Date(c,d-1,1,0,0,0),to:new Date(c,d,0,23,59,59)}}const n=e.weekRanges.find(s=>s.value===e.weekRange);if(!n){const s=new Date;return{from:s,to:s}}const a=dn(n.year,n.month-1),r=new Date(n.year,n.month-1,a+n.week*7,0,0,0),o=new Date(r);return o.setDate(r.getDate()+6),o.setHours(23,59,59),{from:r,to:o}}const ki={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Ai({done:e,total:n,segments:a,color:r="var(--color-main)",size:o="medium",strokeWidth:s,label:l="%",hideCenter:c=!1,hideLabel:d=!1}){const u=typeof o=="number"?o:ki[o].diameter,h=s??(typeof o=="number"?12:ki[o].strokeWidth),p=u/2,f=(u-h)/2,g=2*Math.PI*f;if(a&&a.length>0){const b=a.reduce((w,_)=>{const y=w.length>0?w[w.length-1].acc:0,S=Math.max(0,Math.min(_.ratio,1-y));return w.push({color:_.color,rotate:-90+y*360,dash:g*S,acc:y+S}),w},[]);return t.jsx("div",{className:"ring-chart",style:{width:u,height:u},children:t.jsxs("svg",{width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:h}),b.map((w,_)=>w.dash>0&&t.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:w.color,strokeWidth:h,strokeDasharray:`${w.dash} ${g}`,strokeLinecap:"round",transform:`rotate(${w.rotate} ${p} ${p})`},_))]})})}const C=(n??0)>0?Math.min((e??0)/n,1):0,m=g*C,v=g-m;return t.jsxs("div",{className:"ring-chart",style:{width:u,height:u},children:[t.jsxs("svg",{width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:h}),C>0&&t.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:r,strokeWidth:h,strokeDasharray:`${m} ${v}`,strokeLinecap:C<.02||C>.98?"butt":"round",transform:`rotate(-90 ${p} ${p})`})]}),!c&&t.jsxs("div",{className:`ring-chart__center${d?"":` ${u<=96?"ring-chart__center--small":o==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[t.jsx("span",{className:`ring-chart__pct ${u<=96?"h2":"h1"}`,children:Math.round(C*100)}),!d&&t.jsx("span",{className:`ring-chart__label ${u<=96?"caption-2":"caption-1"}${u<=96||o==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function $g({titleKey:e,headRight:n,icon:a,showTotal:r,totalLabelKey:o,legend:s,loading:l,className:c,...d}){const{t:u}=pe.useTranslation();if(!e)return t.jsx(Ai,{...d});const h=(d.total??0)>0?Math.round(Math.min((d.done??0)/d.total,1)*100):0,p=d.size==="small",f=d.size==="large",g=[c,p?"manager-section--compact":f?"manager-section--full":""].filter(Boolean).join(" ")||void 0,C=a&&t.jsx("span",{className:"chart-section-icon",children:t.jsx(Oe,{icon:a,className:"chart-section-icon-inner"})});return t.jsx(cr,{className:g,title:u(e),titleClassName:p?"h5 chart-section-title--small":void 0,headRight:C||(p?void 0:n),subRow:(r||s)&&t.jsxs(t.Fragment,{children:[r?t.jsxs(ma,{label:!p&&o?u(o):void 0,children:[t.jsx("span",{className:"barchart-total__num h0",children:h}),t.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):t.jsx("span",{}),s&&t.jsx(lr,{items:s})]}),children:l?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(Qn,{size:32})}):t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx(Ai,{...d,hideCenter:p||d.hideCenter})})})}function Rg({label:e,value:n,change:a,changeType:r,icon:o,tooltip:s,onClick:l}){const c=i.useRef(null),{anchorRect:d,openAt:u,close:h}=da(),p=i.useCallback(()=>{s&&c.current&&u(c.current)},[s,u]),f=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),g=a===void 0?void 0:a>0?`+${a}`:`${a}`,C=i.useCallback(m=>{l&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),l())},[l]);return t.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?C:void 0,onPointerEnter:p,onPointerLeave:h,onFocus:p,onBlur:h,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?`${e} ${n}`:void 0,children:[s&&d&&t.jsx(cn,{anchorRect:{left:d.left,top:d.top+21,right:d.right,bottom:d.bottom,width:d.width,height:d.height},text:s}),t.jsxs("div",{className:"manager-stat-card__label-row",children:[t.jsx("span",{className:"manager-stat-card__label h5",children:e}),o&&t.jsx("span",{className:"manager-stat-card__icon",children:t.jsx(Oe,{icon:o,className:"manager-stat-card__icon-inner"})})]}),t.jsx("div",{className:"manager-stat-card__content",children:t.jsxs("div",{className:"manager-stat-card__left",children:[t.jsx("div",{className:"manager-stat-card__value h2",children:n}),g&&t.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${f??"neutral"} caption-1`,children:g})]})})]})}function Ni({value:e,onChange:n,min:a=0,max:r=100,step:o=1,orientation:s="horizontal",size:l=24,disabled:c=!1,ariaLabel:d,length:u,className:h,label:p,formatValue:f,labelPos:g,labelAlign:C="right",showMinMax:m=!1,minLabel:v,maxLabel:b,showBgTick:w=!1,showFillTick:_=!1,tickStep:y,tickShape:S="dot"}){n&&!d&&Ba("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)),A=r>a?(x-a)/(r-a):0,M=s==="vertical",k=!n,D=V=>n?.(Number(V.target.value)),O=typeof u=="number"?`${u}px`:u,R={"--slider-ratio":String(A),"--slider-thumb":`${l}px`,...O?M?{height:O}:{width:O}:{}},j=y??o,P=(w||_)&&j>0&&r>a?Math.floor((r-a)/j+1e-6):0;if(P>0&&P<=100){const V=S!=="dash",H=le=>V?`radial-gradient(circle, ${le} 0.5px, transparent 1px)`:M?`linear-gradient(to bottom, transparent calc(50% - 2px), ${le} calc(50% - 2px), ${le} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${le} calc(50% - 2px), ${le} calc(50% + 2px), transparent calc(50% + 2px))`,X=V?"2px":"4px",I=[],U=[],q=[];for(let le=0;le<=P;le++){const de=le*j/(r-a);if(de>1+1e-6)break;const Ce=`${((M?1-de:de)*100).toFixed(4)}%`,ve=de<=A+1e-6;if(ve?!_:!w)continue;const he=ve?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";I.push(H(he)),U.push(M?`${X} var(--slider-thumb)`:`var(--slider-thumb) ${X}`),q.push(M?`center ${Ce}`:`${Ce} center`)}I.push(M?"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))"),U.push("100% 100%"),q.push("0 0"),R.backgroundImage=I.join(", "),R.backgroundSize=U.join(", "),R.backgroundPosition=q.join(", "),R.backgroundRepeat="no-repeat"}const B=t.jsx("input",{type:"range",className:ye("slider",`slider--${s}`,k&&"slider--static",!p&&!m&&h),min:a,max:r,step:o,value:x,disabled:c,readOnly:k,tabIndex:k?-1:void 0,"aria-label":d,"aria-orientation":s,onChange:D,style:R});if(!p&&!m)return B;const F=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??a}),Z=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:b??r}),Y=m?t.jsxs("div",{className:ye("slider-track-group",`slider-track-group--${s}`,!p&&h),children:[M?Z:F,B,M?F:Z]}):B;if(!p)return Y;const J=g??(M?"bottom":"right"),E=`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`,$=f?f(x):p==="percent"?E:p==="count"?`${x} / ${r}`:String(x),L=t.jsx("span",{className:"slider-wrap__value body-3b",children:$});return t.jsxs("div",{className:ye("slider-wrap",`slider-wrap--${s}`,`slider-wrap--label-${J}`,`slider-wrap--align-${C}`,h),children:[Y,L]})}const Pg=.86,Ig=250,ur=(e,n,a,r)=>{const o=Math.round(Math.min(r,Math.max(a,e-n)));return`${o<0?"-":"+"}${Math.abs(o)} dB`};function dr({analyser:e,audioElement:n,orientation:a="horizontal",length:r,label:o,labelPos:s,labelAlign:l="right",floorDb:c=-60,refDb:d=-35,displayMin:u=-5,displayMax:h=25,className:p,ariaLabel:f}){const g=i.useRef(null),C=i.useRef(null),m=i.useRef(null),[v,b]=i.useState(null);i.useEffect(()=>{const S=e??vm(n)??(v&&v.el===n?v.node:null),x=g.current;if(!S||!x){x?.style.setProperty("--meter-level","0"),C.current&&(C.current.textContent=ur(c,d,u,h));let P=!1;return!e&&n&&oa(n).then(B=>{!P&&B&&b({el:n,node:B})}),()=>{P=!0}}Va();const A=new Float32Array(S.fftSize);let M=0,k=0,D=0,O=0,R=null;const j=P=>{const B=xm(S,A);M=B>M?B:M*Pg;const F=M>1e-5?20*Math.log10(M):-1/0,Z=Math.max(c,F),Y=Z-d,J=Math.min(1,Math.max(0,(Y-u)/(h-u)));if(x.style.setProperty("--meter-level",J.toFixed(3)),C.current&&(k+=Z,D+=1,P-O>=Ig)){const E=k/D;R=R==null?E:R*.6+E*.4,C.current.textContent=ur(R,d,u,h),k=0,D=0,O=P}m.current=requestAnimationFrame(j)};return m.current=requestAnimationFrame(j),()=>{m.current!=null&&cancelAnimationFrame(m.current),m.current=null}},[e,n,v,c,d,u,h]);const w=typeof r=="number"?`${r}px`:r,_=t.jsx("div",{className:"audio-meter__track",style:w?a==="vertical"?{height:w}:{width:w}:{},children:t.jsx("div",{ref:g,className:"audio-meter__fill"})}),y=s??(a==="vertical"?"bottom":"right");return t.jsxs("div",{className:ye("audio-meter",`audio-meter--${a}`,o&&`audio-meter--label-${y}`,o&&`audio-meter--align-${l}`,p),role:"meter","aria-label":f,children:[_,o&&t.jsx("span",{ref:C,className:"audio-meter__value caption-2",children:ur(c,d,u,h)})]})}const Bi=500;function Si({message:e,position:n,duration:a,onClose:r}){const[o,s]=i.useState(!1),[l,c]=i.useState(!1),d=i.useRef(l),u=i.useRef(o);i.useEffect(()=>{d.current=l},[l]),i.useEffect(()=>{u.current=o},[o]);const h=i.useRef(null),p=i.useRef(""),f=i.useRef(r);i.useEffect(()=>{f.current=r});const g=a,C=i.useRef(null),m=i.useRef(0),v=i.useRef(0),b=i.useRef(!1),w=i.useRef(null),_=i.useRef(null),y=i.useRef(null),S=i.useRef(null),x=i.useRef(()=>{});x.current=k=>{k<0||(m.current=Date.now(),v.current=k,C.current=setTimeout(()=>{C.current=null,s(!1),w.current=setTimeout(()=>{c(!1);try{f.current()}catch{}},Bi)},k))};const A=i.useCallback(()=>{b.current||!C.current||(b.current=!0,clearTimeout(C.current),C.current=null,v.current=Math.max(0,v.current-(Date.now()-m.current)))},[]),M=i.useCallback(()=>{b.current&&(b.current=!1,x.current(v.current))},[]);return i.useEffect(()=>{if(e!==p.current&&(C.current&&(clearTimeout(C.current),C.current=null),w.current&&(clearTimeout(w.current),w.current=null)),e){if(u.current)return g>0&&!C.current&&(b.current=!1,x.current(g)),p.current=e,()=>{};const k=()=>{const D=h.current;if(D)try{D.classList.remove("is-visible"),D.style.transition="none",n==="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"),S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{S.current=null;try{D.style.opacity="",D.style.transform="",D.style.transition=""}catch{}},60)}catch{}};d.current?(k(),s(!0)):(c(!0),_.current=requestAnimationFrame(()=>{y.current=requestAnimationFrame(()=>{k(),s(!0)})})),g>0&&(b.current=!1,x.current(g))}else s(!1),w.current=setTimeout(()=>c(!1),Bi);return p.current=e,()=>{C.current&&clearTimeout(C.current),w.current&&clearTimeout(w.current),_.current&&cancelAnimationFrame(_.current),y.current&&cancelAnimationFrame(y.current),S.current&&clearTimeout(S.current),C.current=null,w.current=null,_.current=null,y.current=null,S.current=null}},[e,g,n]),{mounted:l,showing:o,popupRef:h,pause:A,resume:M}}function Tn({message:e="",position:n="top",type:a="normal",onClose:r=()=>{},duration:o=2e3}){const{mounted:s,showing:l,popupRef:c,pause:d,resume:u}=Si({message:e,position:n,duration:o,onClose:r});if(!s)return null;const h=a==="notice"||a==="warning"?a:"normal",p=t.jsx("div",{ref:c,className:`toast toast--${n} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onMouseEnter:d,onMouseLeave:u,onFocusCapture:d,onBlurCapture:u,children:t.jsx("div",{className:`toast__inner toast__inner--${h} body-2`,children:e})});return typeof document<"u"?Pt.createPortal(p,document.body):p}const Fg=24;function Og({value:e,max:n=100,size:a=8,color:r,trackColor:o,label:s,formatValue:l,labelPos:c,labelAlign:d="right",ariaLabel:u,className:h}){const p=Number.isFinite(n)&&n>0?n:1,f=Math.max(0,Math.min(Number.isFinite(e)?e:0,p)),g=f/p*100,C=c??(a>=Fg?"inside":"bottom"),m=C==="center"?"inside":C,v=m==="inside"&&(d==="left"?g>=15:d==="center"?g>=50:g>=85),b={};return r&&(b["--progress-bar-fill"]=r),o&&(b["--progress-bar-track"]=o),t.jsxs("div",{className:ye("progress-bar",`progress-bar--${a}`,`progress-bar--label-${m}`,s&&`progress-bar--align-${d}`,s&&v&&"progress-bar--label-on-fill",h),style:b,children:[t.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":p,"aria-label":u,children:t.jsx("div",{className:"progress-bar__fill",style:{width:`${g}%`}})}),s&&t.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(f):s==="percent"?`${Math.round(g)}%`:s==="raw"?String(f):`${f} / ${p}`})]})}const Hg="rgba(255, 255, 255, 0.16)";function Di({max:e,index:n,inactiveBg:a,inactiveColor:r,transparent:o,variant:s="numbered",announce:l=!1,ariaLabel:c}){const{t:d}=pe.useTranslation(),u=Xt("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const h=Number.isInteger(n)?Math.max(0,Math.min(n,e-1)):0,p=c??d("progress.steps",{current:h+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),f={};return a&&(f["--pi-inactive-bg"]=a),r&&(f["--pi-inactive-color"]=r),o&&(a||(f["--pi-inactive-bg"]=Hg),r||(f["--pi-inactive-color"]="var(--color-white)")),s==="dot"?t.jsx("div",{className:"progress-indicator progress-indicator--dot",style:f,role:l?"status":"img","aria-label":p,children:Array.from({length:e}).map((g,C)=>t.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${C<h?" done":C===h?" active":""}`},C))}):u?t.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:f,role:"list","aria-label":p,children:t.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[h+1," / ",e]})}):t.jsx("div",{className:"progress-indicator",style:f,role:"list","aria-label":p,children:Array.from({length:e}).map((g,C)=>t.jsx("span",{role:"listitem","aria-current":C===h?"step":void 0,className:`progress-indicator-dot ${C<h?" done":C===h?" active":""} body-3`,children:C+1},C))})}function Vg(e){if(!e)return[];const n=[];let a=0,r="";for(const o of e.trim()){if(o==="("?a++:o===")"&&a--,/\s/.test(o)&&a===0){r&&(n.push(r),r="");continue}r+=o}return r&&n.push(r),n}function zg({children:e,className:n,style:a}){return t.jsx("div",{className:n?`table-cell ${n}`:"table-cell",style:a,children:e})}function pr({variant:e="default",children:n,className:a,draggable:r,onClick:o,onMouseEnter:s,onMouseLeave:l,onDragStart:c,onDragEnd:d,expandedContent:u}){const h=i.useCallback(p=>{o&&p.target===p.currentTarget&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),o())},[o]);return e==="loading"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--loading",children:t.jsx(Qn,{size:28})})}):e==="empty"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--empty body-3",children:n})}):t.jsxs("div",{className:"table-row-wrap",children:[t.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:o,onKeyDown:o?h:void 0,onMouseEnter:s,onMouseLeave:l,onDragStart:c,onDragEnd:d,role:o?"button":void 0,tabIndex:o?0:void 0,children:n}),u&&t.jsx("div",{className:"table-row-expand",children:u})]})}function Wg({dir:e}){return t.jsx(e==="asc"?mo:ho,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function qg({children:e,onClick:n,className:a,sortDir:r,onResizeStart:o}){const s=i.useCallback(l=>{n&&l.target===l.currentTarget&&(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),n())},[n]);return t.jsxs("div",{onClick:n,onKeyDown:n?s:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,"aria-sort":r?r==="asc"?"ascending":"descending":void 0,className:ye("table-field body-3",a,r?"table-field--sorted":"",o?"table-field--resizable":""),children:[e,r&&t.jsx(Wg,{dir:r}),o&&t.jsx("span",{className:"table-field__resizer",onPointerDown:o,onClick:l=>l.stopPropagation(),"aria-hidden":"true"})]})}function hr({fields:e=[],headerGroups:n,items:a=[],renderRow:r,onRowClick:o,onRowMouseEnter:s,onRowMouseLeave:l,onRowDragStart:c,onRowDragEnd:d,draggingId:u,gridTemplateColumns:h,resizable:p=!1,resizeMode:f="grow",resizeStorageKey:g,size:C="small",title:m,icon:v,count:b,collapsed:w=!1,onToggleCollapse:_,headerActions:y,empty:S,loading:x,dragOver:A=!1,onDragOver:M,onDragLeave:k,onDrop:D,renderExpandedRow:O,expandedId:R}){const{t:j}=pe.useTranslation(),P=48,B=g?`table-cols:${g}`:null,F=i.useRef(null),Z=i.useRef(()=>!1),Y=i.useRef([]),J=i.useRef(null),[E,$]=i.useState(()=>{if(!B||typeof window>"u")return null;try{const T=JSON.parse(window.localStorage.getItem(B)??"null");return Array.isArray(T)&&T.every(W=>typeof W=="number")?T:null}catch{return null}}),L=i.useRef(E);i.useEffect(()=>{L.current=E},[E]);const V=i.useCallback(T=>{const W=J.current;W&&$(Q=>{if(!Q)return Q;const _e=[...Q];if(W.next!=null&&W.startWNext!=null){const ue=T.clientX-W.startX,ie=Math.max(P-W.startW,Math.min(W.startWNext-P,ue));_e[W.index]=W.startW+ie,_e[W.next]=W.startWNext-ie}else _e[W.index]=Math.max(P,W.startW+(T.clientX-W.startX));return _e})},[]),H=i.useCallback(()=>{if(J.current=null,window.removeEventListener("pointermove",V),window.removeEventListener("pointerup",H),document.body.style.cursor="",document.body.style.userSelect="",B&&L.current)try{window.localStorage.setItem(B,JSON.stringify(L.current))}catch{}},[V,B]),X=i.useCallback((T,W)=>{W.preventDefault(),W.stopPropagation();const Q=F.current;if(!Q)return;const _e=Array.from(Q.children).map(ie=>ie.getBoundingClientRect().width),ue=f==="fit"?e.findIndex((ie,ae)=>ae>T&&ie.resizable!==!1):-1;J.current=ue>=0?{index:T,startX:W.clientX,startW:_e[T],next:ue,startWNext:_e[ue]}:{index:T,startX:W.clientX,startW:_e[T]},$(_e),window.addEventListener("pointermove",V),window.addEventListener("pointerup",H),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[V,H,f,e]),I=i.useCallback(()=>{const T=F.current,W=T?.closest(".table-wrap");if(!T||!W)return;const Q=W.style.getPropertyValue("--table-grid-cols");W.style.setProperty("--table-grid-cols",e.map((Re,Ee)=>Z.current(Ee)?Y.current[Ee]:"max-content").join(" "));const _e=Array.from(W.querySelectorAll(".table-row")).filter(Re=>!Re.classList.contains("table-row--loading")&&!Re.classList.contains("table-row--empty")),ue=e.map((Re,Ee)=>{let je=T.children[Ee]?.getBoundingClientRect().width??0;for(const Ae of _e){const ze=Ae.children[Ee];ze&&(je=Math.max(je,ze.getBoundingClientRect().width))}return Math.max(P,Math.ceil(je))}),ie=window.getComputedStyle(T),ae=T.clientWidth-(parseFloat(ie.paddingLeft)||0)-(parseFloat(ie.paddingRight)||0);Q?W.style.setProperty("--table-grid-cols",Q):W.style.removeProperty("--table-grid-cols");let se=ue;const Se=ue.reduce((Re,Ee,je)=>Re+(Z.current(je)?Ee:0),0),He=ue.reduce((Re,Ee,je)=>Re+(Z.current(je)?0:Ee),0),Ve=ae-Se;if(ae>0&&He>0&&Ve>0){const Re=Ve/He;se=ue.map((je,Ae)=>Z.current(Ae)?je:Math.max(P,Math.round(je*Re)));const Ee=Math.round(Ve-se.reduce((je,Ae,ze)=>je+(Z.current(ze)?0:Ae),0));if(Ee!==0){let je=-1;se.forEach((Ae,ze)=>{!Z.current(ze)&&(je<0||Ae>se[je])&&(je=ze)}),je>=0&&(se[je]=Math.max(P,se[je]+Ee))}}if($(se),B)try{window.localStorage.setItem(B,JSON.stringify(se))}catch{}},[e,f,B]);i.useEffect(()=>()=>{J.current&&(window.removeEventListener("pointermove",V),window.removeEventListener("pointerup",H),document.body.style.cursor="",document.body.style.userSelect="")},[V,H]);const U=Vg(h),q=U.filter(T=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(T));q.length>0&&Ba(`table-content-track:${h}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${q.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: ${h})`);const le=T=>/^\d+(\.\d+)?px$/.test(U[T]??"");Z.current=le,Y.current=U;const de=T=>f==="fit"&&!le(T)?"fr":"px",Ce=E&&E.length===e.length&&(f==="fit"||a.length>0)?e.map((T,W)=>T.resizable===!1&&U[W]?U[W]:`${E[W]}${de(W)}`).join(" "):h,ve=Ce?{"--table-grid-cols":Ce}:void 0,he=m!==void 0;return t.jsx("div",{className:`table-wrap table-wrap--${C}${p?" table-wrap--resizable":""}${A?" table-wrap--dragover":""}${w?" table-wrap--collapsed":""}`,style:ve,onDragOver:M,onDragLeave:k,onDrop:D,children:t.jsxs("div",{className:"table body-2",children:[he&&t.jsxs("div",{className:"table-header",onClick:_,role:_?"button":void 0,tabIndex:_?0:void 0,"aria-expanded":_?!w:void 0,onKeyDown:_?T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),_())}:void 0,children:[_&&t.jsx(ne,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:w?"chevron-right":"chevron-down",ariaLabel:w?j("common.expand","\uD3BC\uCE58\uAE30"):j("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),v&&t.jsx(Oe,{icon:v,label:typeof m=="string"?m:void 0,className:"table-header__icon"}),t.jsx("span",{className:"table-header__title h5b",children:m}),b!==void 0&&t.jsx("span",{className:"table-header__count body-3b",children:b}),y&&t.jsx("span",{className:"table-header__actions",onClick:T=>T.stopPropagation(),children:y})]}),!w&&t.jsxs(t.Fragment,{children:[n&&n.length>0&&t.jsx("div",{className:"table-fields table-fields--groups",children:n.map((T,W)=>t.jsx("div",{className:ye("table-field body-3",T.className),style:{gridColumn:`span ${T.span}`},children:T.label},W))}),t.jsxs("div",{className:ye("table-fields-strip",p&&"table-fields-strip--resizable"),children:[t.jsx("div",{className:"table-fields",ref:F,children:e.map((T,W)=>t.jsx(qg,{onClick:T.onClick,className:T.className,sortDir:T.sortDir,onResizeStart:p&&W<e.length-1&&T.resizable!==!1&&(f!=="fit"||e.some((Q,_e)=>_e>W&&Q.resizable!==!1))?Q=>X(W,Q):void 0,children:T.label},W))}),p&&t.jsx(ne,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:j("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:j("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:I})]}),t.jsx("div",{className:"table-body",children:x?t.jsx(pr,{variant:"loading"}):a.length===0&&S?t.jsx(pr,{variant:"empty",children:S}):a.map((T,W)=>{const Q=u!=null&&T.id===u,_e=R!=null&&(R instanceof Set?R.has(T.id):T.id===R);return t.jsx(pr,{className:`${o?" table-row--clickable":""}${c?" table-row--draggable":""}${Q?" table-row--dragging":""}`.trim(),draggable:!!c,onClick:o?()=>o(T):void 0,onMouseEnter:s?ue=>s(T,ue):void 0,onMouseLeave:l?ue=>l(T,ue):void 0,onDragStart:c?ue=>c(T,ue):void 0,onDragEnd:d?ue=>d(T,ue):void 0,expandedContent:_e&&O?O(T):void 0,children:r(T).map((ue,ie)=>t.jsx(zg,{className:ue.className,style:ue.style,children:ue.content},ie))},String(T.id??W))})})]})]})})}function ji(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}function Ei(e,n){return n!=="wornAt"?String(e[n]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function Ug({rows:e,onSelect:n,onDelete:a,onWear:r,onRelease:o,onAdd:s}){const{t:l}=pe.useTranslation(),c=C=>C==="\uC88C"?l("device.direction.left","\uC88C"):l("device.direction.right","\uC6B0"),{\uC815\uB82C:d,\uCE78:u}=v0(),h=i.useMemo(()=>{if(!d)return e;const{key:C,asc:m}=d;return[...e].sort((v,b)=>{const w=C==="worn"?Number(b.worn)-Number(v.worn):Ei(v,C).localeCompare(Ei(b,C),"ko");return m?w:-w})},[e,d]),{pageRows:p,pageSizeProps:f,paginationProps:g}=y0(h,d);return t.jsxs("div",{className:"dlp-side-table",children:[t.jsx(ir,{count:{value:e.length,unit:l("customers.device.unit","\uAC1C")},pageSize:f,pagination:g,actions:s&&t.jsx(ne,{size:40,type:"bar",variant:"main",icon:"plus",label:l("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:s})}),t.jsx(hr,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...u(l("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},u(l("device.direction.label","\uBC29\uD5A5"),"side"),u(l("device.deviceType","\uC885\uB958"),"device"),u(l("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),u(l("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),u(l("device.productName","\uC81C\uD488\uBA85"),"productName"),u(l("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:p.map((C,m)=>({id:C.id??`${C.side}-${m}`,row:C})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:C})=>[{content:t.jsx("span",{className:"dlp-worn-check",onClick:m=>m.stopPropagation(),children:t.jsx(gi,{checked:C.worn,disabled:!r||!o,ariaLabel:C.worn?l("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):l("customers.device.wear","\uCC29\uC6A9"),onChange:m=>{m?r?.(C):o?.(C)}})})},{content:t.jsx("span",{children:c(C.side)})},{content:C.device?t.jsx(lt,{size:"small",variant:ji(C.device),fill:"soft",label:C.device}):t.jsx("span",{})},{content:t.jsx("span",{children:C.brand})},{content:t.jsx("span",{children:C.fitType||"-"})},{content:t.jsx("span",{children:C.productName||"-"})},{content:t.jsx("span",{className:"dlp-date",children:C.wornYear?`${C.wornYear}.${C.wornMonth}.${C.wornDay}`:"-"})},...a?[{content:t.jsx("span",{className:"dlp-row-actions",children:t.jsx(ne,{size:28,type:"bar",variant:"transparent-gray",label:l("common.delete","\uC0AD\uC81C"),onClick:m=>{m?.stopPropagation(),a(C)}})})}]:[]],onRowClick:({row:C})=>n(C),empty:l("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function Ti(e,n){return e?{role:n?.role??"button",tabIndex:0,...n?.selected===void 0?{}:{"aria-selected":n.selected},onKeyDown:a=>{a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a))}}:{}}function Gg(e,n){return new Date(e,n+1,0).getDate()}function Kg(e,n){return new Date(e,n,1).getDay()}function Zg({visits:e=[],onVisitClick:n,onVisitMove:a,onDayClick:r}){const{t:o}=pe.useTranslation(),s=i.useMemo(()=>o("calendar.dow",{returnObjects:!0}),[o]),[l,c]=i.useState(new Date().getFullYear()),[d,u]=i.useState(new Date().getMonth()),[h,p]=i.useState(null),f=i.useRef(null),g=new Date,C=i.useMemo(()=>{const y={};return e.forEach(S=>{y[S.date]||(y[S.date]=[]),y[S.date].push(S)}),y},[e]),m=i.useMemo(()=>{const y=Gg(l,d),S=Kg(l,d),x=[];for(let A=0;A<S;A++)x.push(null);for(let A=1;A<=y;A++)x.push(A);for(;x.length<35;)x.push(null);return x},[l,d]),v=i.useCallback(()=>{d===0?(c(y=>y-1),u(11)):u(y=>y-1)},[d]),b=i.useCallback(()=>{d===11?(c(y=>y+1),u(0)):u(y=>y+1)},[d]),w=y=>`${l}-${String(d+1).padStart(2,"0")}-${String(y).padStart(2,"0")}`,_=y=>g.getFullYear()===l&&g.getMonth()===d&&g.getDate()===y;return t.jsxs("div",{children:[t.jsxs("div",{className:"calendar-nav",children:[t.jsx("button",{className:"calendar-nav__button",onClick:v,"aria-label":o("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(Oe,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsx("span",{className:"calendar-nav__title h5",children:o("calendar.yearMonth",{year:l,month:d+1})}),t.jsx("button",{className:"calendar-nav__button",onClick:b,"aria-label":o("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(Oe,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsxs("div",{className:"calendar-nav__legend",children:[t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.visited","\uBC29\uBB38")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.scheduled","\uC608\uC57D")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),t.jsxs("div",{className:"calendar-grid",children:[s.map(y=>t.jsx("div",{className:"calendar-day-header body-3",children:y},y)),m.map((y,S)=>{if(y===null)return t.jsx("div",{className:"calendar-cell empty"},`empty-${S}`);const x=y,A=w(x),M=C[A]??[],k=h===A;return t.jsxs("div",{className:`calendar-cell${_(x)?" today":""}${k?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?o("calendar.addOnDate",{date:A}):void 0,onClick:r?()=>r(A):void 0,onKeyDown:r?D=>{D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),r(A))}:void 0,onDragOver:a?D=>{D.preventDefault(),p(A)}:void 0,onDragLeave:a?D=>{D.currentTarget.contains(D.relatedTarget)||p(null)}:void 0,onDrop:a?D=>{D.preventDefault(),f.current!=null&&(a(f.current,A),f.current=null),p(null)}:void 0,children:[t.jsx("div",{className:"calendar-cell__number body-3",children:x}),t.jsx("div",{className:"calendar-cell__badges",children:M.map((D,O)=>t.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${D.status==="noVisit"?" calendar-visit-badge--no-visit":D.status==="scheduled"?" calendar-visit-badge--scheduled":""}${n?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?R=>{f.current=D.id,R.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{f.current=null,p(null)}:void 0,onClick:n?R=>{R.stopPropagation(),n(D)}:void 0,...Ti(n?()=>n(D):void 0),"aria-label":[D.time?as(D.time,o):null,D.customer,o(D.status==="noVisit"?"calendar.legend.noVisit":D.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[D.time&&t.jsx("span",{className:"calendar-visit-badge__time body-3",children:as(D.time,o)}),t.jsx("span",{className:"calendar-visit-badge__name body-3",children:D.customer}),D.status==="noVisit"&&t.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},D.id??O))})]},x)})]})]})}const Yg={page:"h3",pagePopup:"h4",popup:"h5"};function Mn({type:e="page",title:n,icon:a,action:r,disc:o,children:s,className:l,style:c}){const d=Yg[e],u=n||o;return t.jsxs("div",{className:ye("section",`section--${e}`,l),style:c,children:[u&&t.jsxs("div",{className:"section__header",children:[t.jsxs("div",{className:"section__title-row",children:[a&&t.jsx(Oe,{icon:a,label:typeof n=="string"?n:void 0,className:"section__icon"}),t.jsxs("div",{className:"section__title-group",children:[n&&t.jsx("div",{className:`section__title ${d}`,children:n}),o&&t.jsx("div",{className:"section__disc body-3",children:o})]})]}),r&&t.jsx("div",{className:"section__action",children:r})]}),s]})}function Mi({icon:e,label:n,tooltip:a,wrapperStyle:r,color:o,bgColor:s,useHover:l=!0,iconSize:c="medium"}){const d=c==="small",u=ye("category-icon",d?"category-icon--small":""),h=d?16:20,p=i.useRef(null),[f,g]=i.useState(!1),C=i.useMemo(()=>{const x=r&&typeof r=="object"?{...r}:{};return!o&&!s?x:{...x,...o?{color:o,"--t-item-fg":o}:{},...s?{"--t-item-bg":s}:{}}},[r,o,s]),m=a||n,[v,b]=i.useState(null);i.useLayoutEffect(()=>{f&&b(p.current?.getBoundingClientRect()??null)},[f]),i.useEffect(()=>{if(!l&&f)try{g(!1)}catch{}},[l,f]),i.useEffect(()=>{if(!f)return;const x=A=>{const M=p.current;if(!M)return;const k=A.target;k&&!M.contains(k)&&g(!1)};return document.addEventListener("pointerdown",x,!0),()=>document.removeEventListener("pointerdown",x,!0)},[f]);const w=i.useCallback(()=>{l&&g(!0)},[l]),_=i.useCallback(()=>{l&&g(!1)},[l]),y=i.useCallback(()=>g(!1),[]),S=i.useCallback(x=>{if(x.key==="Escape"){g(!1);return}(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),g(A=>!A))},[]);return t.jsxs("span",{ref:p,className:"category-icon__wrap",onPointerEnter:w,onPointerLeave:_,onFocus:w,onBlur:_,onKeyDown:S,role:"button",tabIndex:0,"aria-label":typeof m=="string"?m:void 0,"aria-haspopup":!!m,"aria-expanded":f,"data-tooltip-ignore":!0,children:[t.jsx(Oe,{icon:e,label:n,className:u,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:C,size:h}),f&&m&&t.jsx(cn,{anchorRect:v,text:typeof m=="string"?m:void 0,offset:8,onClose:y,className:"category-icon__tooltip",ariaLabel:typeof m=="string"?m:void 0})]})}function Xg(e,n){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(n==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(n==="SHORT_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(n==="LONG_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(n==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}const o=a.sentences||a.items||[],s=r(Array.isArray(o)?o:[]);return s.length===0&&(a.contextCode||a.context_code)&&s.push(String(a.contextCode||a.context_code)),{previewCodes:s,previewBucket:null}}function Jg(e,n){const[a,r]=i.useState(!1),[o,s]=i.useState(-1),[l,c]=i.useState([]),d=i.useRef(null),u=i.useRef(!1),h=i.useRef(null),[p,f]=i.useState(!1),g=i.useRef([]),{previewCodes:C,previewBucket:m}=Xg(e,n);i.useEffect(()=>{if(!C.length)return;let b=!1;return(async()=>{const w=[],_=[];for(const y of C)try{const S=Fo(y,m);if(!S){w.push("");continue}let x=null;try{x=await Oo(S)}catch{}if(!x)try{const A=await Ho(S);A&&(x=URL.createObjectURL(A),_.push(x))}catch{}w.push(x??"")}catch{w.push("")}b?_.forEach(y=>{try{URL.revokeObjectURL(y)}catch{}}):(g.current.forEach(y=>{try{URL.revokeObjectURL(y)}catch{}}),g.current=_,c(w))})(),()=>{b=!0}},[C.join(","),m]),i.useEffect(()=>()=>{g.current.forEach(b=>{try{URL.revokeObjectURL(b)}catch{}}),g.current=[]},[]);const v=i.useCallback(async b=>{if(b.stopPropagation(),b.preventDefault(),u.current){u.current=!1;try{d.current?.pause()}catch{}r(!1),s(-1);return}if(l.filter(Boolean).length){u.current=!0,r(!0);for(let w=0;w<l.length&&u.current;w++){const _=l[w];if(_){s(w);try{await new Promise((y,S)=>{const x=new Audio(_);d.current=x,x.onended=()=>y(),x.onerror=()=>S(),x.play().catch(S)})}catch{break}}}u.current=!1,r(!1),s(-1)}},[l]);return i.useEffect(()=>()=>{u.current=!1;try{d.current?.pause()}catch{}d.current=null},[]),{playing:a,playingIndex:o,previewUrls:l,previewHover:p,setPreviewHover:f,previewBtnRef:h,handlePreview:v}}const Qg=e=>{if(!e)return[];const n=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(n)return[String(n)];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 o=r;return o.sentence||o.text||o.context||o.question||o.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function mr(e){const{index:n,type:a,trainingData:r,ariaLabel:o,depth:s,renderPopup:l,completed:c,completedIds:d,selectedIds:u,tooltipText:h,useDescriptionTooltip:p=!1,onRemove:f,hideCheckBadge:g=!1,showTypeLabel:C=!1,onComplete:m,onSelect:v,onMore:b,countLabelOverride:w,size:_="square"}=e||{},{t:y}=pe.useTranslation(),[S,x]=i.useState(!1),A=i.useRef(null),[M,k]=i.useState(!1);i.useEffect(()=>{A.current?.matches(":hover")&&k(!0)},[]);const{playing:D,playingIndex:O,previewUrls:R,previewHover:j,setPreviewHover:P,previewBtnRef:B,handlePreview:F}=Jg(r,a?.key),Z=i.useCallback(()=>{v?v():x(!0)},[v]),Y=i.useCallback(()=>x(!1),[]),J=i.useCallback(()=>k(!0),[]),E=i.useCallback(()=>k(!1),[]),$=i.useCallback(()=>P(!0),[P]),L=i.useCallback(()=>P(!1),[P]),[V,H]=i.useState(null);i.useLayoutEffect(()=>{j&&H(B.current?.getBoundingClientRect()??null)},[j,B]);const[X,I]=i.useState(null);i.useLayoutEffect(()=>{M&&!S&&p&&I(A.current?.getBoundingClientRect()??null)},[M,S,p]);const U=i.useCallback(ge=>{(ge.key==="Enter"||ge.key===" ")&&(ge.preventDefault(),Z())},[Z]),q=r||null,le=i.useMemo(()=>{if(!p)return null;const ge=h?(Array.isArray(h)?h:[h]).filter(Boolean):null,Pe=ge&&ge.length>0?ge:Qg(q);return Pe&&Pe.length>0?Pe:null},[p,h,q]),de=i.useCallback(ge=>{ge.stopPropagation(),f?.()},[f]),Ce=i.useCallback(ge=>ge.stopPropagation(),[]),ve=i.useCallback(ge=>{typeof m=="function"&&m(ge)},[m]),he=c||(d&&r?.id!=null?d.has(String(r.id)):!1),T=!he&&(u!=null&&r?.id!=null?u.has(String(r.id)):!1);Fs("speechear.popup.close",Y);const W=rs(),Q=`${a?.label||""} ${n+1}`,_e=q?.title||q?.name||Q;let ue=a?.icon,ie,ae="",se="";try{const ge=q?.category_0||q?.category_main_code||q?.category_main,Pe=q?.category_1||q?.category_sub_code||q?.category_sub,$e=W.find(Ke=>Ke.key===ge);$e?.icon&&(ue=$e.icon),!ie&&$e?.color&&(ie={"--t-item-fg":$e.color}),!ie&&q?.iconColor&&(ie={"--t-item-fg":q.iconColor}),ae=$e?.label||"";try{se=$e?.subs?.find(Ke=>Ke.key===Pe)?.label||""}catch{}}catch{}const Se=se?`${ae} / ${se}`:ae||a?.label||_e,He=ge=>y("training.countQuestions",{n:ge}),Ve=ge=>y("training.countSentences",{n:ge});let Re="";try{if(q)if(a?.key==="LISTEN_IN_NOISE"){let ge=0;Array.isArray(q.items)&&q.items.length>0?ge=q.items.length:Array.isArray(q.sentences)&&q.sentences.length>0?ge=q.sentences.length:q.sentences&&(ge=1),Re=Ve(ge)}else if(a?.key==="SHORT_STORY"){let ge=1;Array.isArray(r?.items)?ge=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?ge=r.raw.items.length:Array.isArray(q?.questions)?ge=q.questions.length:Array.isArray(q?.sentences)&&(ge=q.sentences.length),Re=He(ge)}else if(a?.key==="LONG_STORY"){let ge=1;if(Array.isArray(q.items)&&q.items.length>0){const Pe=q.items.reduce(($e,Ke)=>{const Ze=Ke.questionItems;return Array.isArray(Ze)?$e+Ze.length:Array.isArray(Ke.questions)?$e+Ke.questions.length:$e},0);ge=Pe>0?Pe:q.items.length}else Array.isArray(q.questions)&&q.questions.length>0?ge=q.questions.length:Array.isArray(q.sentences)&&q.sentences.length>0&&(ge=q.sentences.length);Re=He(ge)}else if(a?.key==="ORDERING_SENTENCE"){let ge=1;Array.isArray(q.items)&&q.items.length>0?ge=q.items.length:Array.isArray(q.sentences)&&q.sentences.length>0&&(ge=q.sentences.length),Re=Ve(ge)}else Array.isArray(q.items)&&(Re=q.items.length>0?He(q.items.length):"")}catch{}const Ee=_==="list",je=_==="compact",Ae=_==="small",ze=Ae&&a?.key?Qm().find(ge=>ge.key===a.key)?.label??"":"",at=!!C&&!!a?.label&&a.label!==String(_e)||Ae&&!!ze&&ze!==String(_e);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:A,className:`training-block-button${Ee?" training-block-button--list":""}${je?" training-block-button--compact":""}${Ae?" training-block-button--small":""}${he?" training-block-button--completed":""}${T?" training-block-button--selected":""}${at&&!Ae?" training-block-button--withType":""}${Ae&&!at?" training-block-button--no-type-label":""}`,onClick:Z,onPointerEnter:J,onPointerLeave:E,role:"button",tabIndex:0,onKeyDown:U,"aria-label":typeof o=="string"?o:typeof _e=="string"?_e:void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[C&&a?.label&&a.label!==String(_e)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ae&&ze&&ze!==String(_e)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:ze}),t.jsx(Mi,{icon:ue,label:_e,tooltip:Se,wrapperStyle:ie,iconSize:Ae||je?"small":"medium"}),!g&&(he||T)&&!(f&&M)&&t.jsx(lt,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":he?y("training.completed","\uD6C8\uB828 \uC644\uB8CC"):y("training.selected","\uC120\uD0DD\uB428")}),f&&M&&t.jsx(lt,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":y("common.remove","\uC81C\uAC70"),onClick:de}),t.jsx("div",{className:`training-block-button__title ${je?"body-3":Ae?"body-3b":"h3"}`,children:String(_e)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const ge=w!==void 0?w:Re;return ge?t.jsx("div",{className:`training-block-button__count ${Ae?"caption-2":"caption-1"}`,children:ge}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(Oe,{icon:"chevron-right",label:y("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Ae?12:20})})]}),(Ee||Ae)&&R.length>0&&t.jsx("div",{ref:B,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:Ce,onPointerEnter:$,onPointerLeave:L,children:t.jsx(ne,{size:Ae?28:32,type:"dot",icon:D?"pause":"play",variant:Ae?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:D?y("training.stop","\uC815\uC9C0"):y("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:F})})]}),b&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:ge=>{ge.stopPropagation(),b(ge)},children:t.jsx(ne,{size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:y("common.more","\uB354\uBCF4\uAE30")})})]}),j&&t.jsx(cn,{anchorRect:V,text:D?y("training.stop","\uC815\uC9C0"):y("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:L}),M&&!S&&p&&(le?t.jsx(_n,{anchorRect:X,items:le,activeIndex:O,onClose:E}):q?.subTitle?t.jsx(cn,{anchorRect:X,text:q.subTitle,offset:8,onClose:E}):null),S&&l&&l({trainingData:q,typeKey:a?.key??"",onClose:Y,onComplete:ve,popupTitle:String(_e),popupSubTitle:a?.subTitle,depth:s!=null?String(s):void 0,popupIcon:ue,popupIconTooltip:String(Se),popupWrapperStyle:ie})]})}const fa=20;function e4(e){const{t:n}=pe.useTranslation(),{type:a,trainingDatas:r,depth:o,renderPopup:s,completedIds:l,selectedIds:c,onItemComplete:d,size:u,useDescriptionTooltip:h,onRemove:p,onMore:f,sectionType:g="page"}=e||{},[,C]=i.useState(0),m=typeof r<"u"?Array.isArray(r)?r:[]:[],v=m.length,[b,w]=i.useState(Math.min(v,fa)),_=i.useMemo(()=>Array.isArray(o)?[...o,a?.label].filter(Boolean).join(" \xB7 "):[o||"",a?.label].filter(Boolean).join(" \xB7 "),[o,a?.label]);i.useEffect(()=>{w(Math.min(v,fa))},[v]),Fs("speechear.data.updated",()=>C(S=>S+1));function y(){w(S=>Math.min(v,S+fa))}return t.jsxs(Mn,{type:g,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[t.jsx("div",{className:"training-list",children:(m||[]).slice(0,b).map((S,x)=>{const A=S;return t.jsx(mr,{index:x,type:a,trainingData:A,depth:_,renderPopup:s,completedIds:l,selectedIds:c,size:u,useDescriptionTooltip:h,onRemove:typeof p=="function"&&c!=null&&A?.id!=null&&c.has(String(A.id))?()=>p(A):void 0,onComplete:typeof d=="function"&&A?.id!=null?()=>d(String(A.id)):void 0,onMore:typeof f=="function"?M=>f(A,M):void 0},A?.id!=null?`${a?.key||"t"}-${String(A.id)}`:`${a?.key||"t"}-${x}`)})}),v>fa&&b<v&&t.jsx("div",{className:"training-block__more",children:t.jsx(ne,{size:48,type:"bar",icon:"plus",onClick:y,ariaLabel:n("common.loadMore","\uB354\uBCF4\uAE30"),label:n("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function fr(e){const n=i.useRef(null),[a,r]=i.useState(!!e),[o,s]=i.useState(!1);i.useEffect(()=>{s(!1);const d=n.current;r(!!e&&!(d?.complete&&d.naturalWidth>0))},[e]);const l=i.useCallback(()=>r(!1),[]),c=i.useCallback(()=>{r(!1),s(!0)},[]);return{imgRef:n,loading:a,failed:o,hasImage:!!e&&!o,onLoad:l,onError:c}}let Ln=null;function t4(e){if(Ln&&Ln!==e)try{Ln()}catch{}return Ln=e,()=>{Ln===e&&(Ln=null)}}var n4='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 a4=n4,Cr=i.forwardRef(function({item:e,disabled:n=!1,onPlayDone:a,selectable:r=!1,selected:o=!1,onSelect:s,flipDelay:l=0,hideLabel:c=!1,hideAudio:d=!1,orderRank:u=null},h){const{t:p}=pe.useTranslation(),f=e.word||e.title||"",g=n||!f,C=e.audio??e.sound??e.audioKey,m=e.subLabel||e.pronunciation||"",v=e.colloquialLabel||"",[b,w]=i.useState({label:f,subLabel:m,colloquialLabel:v,homonum:e.homonum});f&&b.label!==f&&w({label:f,subLabel:m,colloquialLabel:v,homonum:e.homonum});const _=i.useRef(null),y=Xt("(max-width: 767px)"),[S,x]=i.useState(!1),[A,M]=i.useState(""),k=Dn()?.(b.label,b.homonum)??e.image??"",{imgRef:D,loading:O,hasImage:R,onLoad:j,onError:P}=fr(k);i.useEffect(()=>{let $=!1;return(async()=>{if(C){if(typeof C=="string"){if(C.startsWith("http")||C.includes("/")){M(C);return}}else if(typeof C=="object"&&!Array.isArray(C)){const V=C.src;if(V){M(V);return}}}const L=Fa();if(L&&f)try{const V=await Promise.resolve(L(f));!$&&V&&M(V)}catch{}})(),()=>{$=!0}},[C,f]),i.useEffect(()=>()=>{try{_.current?.pause()}catch{}_.current=null},[]);const B=i.useCallback(()=>new Promise($=>{if(typeof window<"u"&&window.speechSynthesis&&f){x(!0),window.speechSynthesis.cancel();const L=new SpeechSynthesisUtterance(f);L.lang="ko-KR",L.onend=()=>{x(!1);try{a?.()}catch{}$()},L.onerror=()=>{x(!1),$()},window.speechSynthesis.speak(L)}else $()}),[f,a]),F=i.useCallback($=>new Promise(L=>{let V=!1;const H=()=>{V||(V=!0,x(!1),L(!1))};try{const X=new Audio($);_.current=X,X.onended=()=>{if(!V){V=!0,x(!1);try{a?.()}catch{}L(!0)}},X.onerror=H,X.play().catch(H)}catch{H()}}),[a]),Z=i.useCallback(async()=>{if(n)return;const $=t4(()=>{try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1)});try{window.speechSynthesis?.cancel()}catch{}try{if(A&&(x(!0),await F(A)))return;const L=Cm();if(L&&f)try{const V=await Promise.resolve(L(f));if(V&&(x(!0),await F(V)))return}catch{}await B()}finally{$()}},[n,A,f,F,B]);i.useImperativeHandle(h,()=>({play:()=>Z()}),[Z]);const Y=$=>$.stopPropagation(),J=i.useCallback($=>{if($.stopPropagation(),!n){if(S){try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1);return}Z()}},[n,S,Z]),E=ye("training-word-card",n?"training-word-card--disabled":"",g?"training-word-card--flipped":"",r?"training-word-card--selectable":"",o?"training-word-card--selected":"");return t.jsx("div",{className:E,onClick:r&&!n?s:void 0,role:r?"button":void 0,"aria-pressed":r?o:void 0,tabIndex:r&&!n?0:void 0,"aria-disabled":r&&n?!0:void 0,onKeyDown:r&&!n?$=>{($.key==="Enter"||$.key===" "||$.key==="Spacebar")&&($.preventDefault(),s?.())}:void 0,children:t.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:g?"0ms":`${l}ms`},children:[t.jsxs("div",{className:"training-word-card__front",children:[o&&t.jsx("div",{className:"training-word-card__selected-badge",onClick:Y,children:t.jsx(lt,{type:"dot",size:40,position:"inline",animate:!0,icon:u!=null?void 0:"check",number:u??void 0,"aria-label":u!=null?p("training.nthSelected",{n:u}):p("training.selected","\uC120\uD0DD\uB428")})}),t.jsx("div",{className:"training-word-card__image-wrap",children:R?t.jsxs(t.Fragment,{children:[O&&t.jsx("div",{className:"training-word-card__spinner"}),t.jsx("img",{ref:D,className:"training-word-card__image",src:k,alt:b.label||p("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:O?0:1},onLoad:j,onError:P})]}):t.jsx("div",{className:"training-word-card__placeholder"})}),!c&&t.jsxs("div",{className:"training-word-card__body",children:[t.jsx("div",{className:"training-word-card__word",children:b.label}),b.subLabel&&t.jsxs("div",{className:"training-word-card__pronunciation",children:["[",b.subLabel,"]"]}),b.colloquialLabel&&t.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",b.colloquialLabel,"]"]})]}),!d&&t.jsx("div",{className:"training-word-card__bottom",onClick:r?Y:void 0,children:t.jsx(ne,{size:y?40:48,type:y?"dot":"bar",icon:S?"pause":"play",label:y?void 0:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:S,onClick:J,disabled:n,ariaLabel:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),t.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:t.jsx("img",{src:a4,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})});let ea=0,Li="",$i="",ta=0;function r4(){return Ri(!1)}function o4(){return Ri(!0)}function Ri(e){const n=typeof document<"u";ea===0&&n&&(Li=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(ta===0&&($i=document.body.style.paddingRight),ta++,document.body.style.paddingRight="0px"),ea++;let a=!1;return()=>{a||(a=!0,ea=Math.max(0,ea-1),e&&n&&(ta=Math.max(0,ta-1),ta===0&&(document.body.style.paddingRight=$i)),ea===0&&n&&(document.body.style.overflow=Li))}}const s4=260;function pn(e){const{t:n}=pe.useTranslation(),{title:a,subtitle:r,headerActions:o,children:s,buttons:l,footer:c,footerClassName:d="",onClose:u,closeDisabled:h=!1,beforeClose:p,className:f="",ariaLabel:g,useTitle:C=!0,inline:m=!1,size:v,resetScrollKey:b}=e||{},[w,_]=i.useState(!1),y=i.useRef(!1),S=i.useRef(null),x=i.useId(),A=i.useRef(null);i.useEffect(()=>{},[m,a,g,f]),i.useEffect(()=>{b!==void 0&&A.current&&(A.current.scrollTop=0)},[b]);const[M,k]=i.useState(!1);i.useEffect(()=>{const B=A.current;if(!B)return;const F=()=>k(B.scrollHeight>B.clientHeight+1);if(F(),typeof ResizeObserver>"u")return;const Z=new ResizeObserver(F);Z.observe(B);const Y=B.firstElementChild;return Y&&Z.observe(Y),()=>Z.disconnect()},[s,b]),i.useEffect(()=>{if(!m)return r4()},[m]),i.useEffect(()=>{if(m)return;const B=document.activeElement,F=S.current;return F&&!F.contains(document.activeElement)&&(F.querySelector(Gn)??F).focus(),()=>{B?.focus?.()}},[m]),Ya(S,!m);const D=i.useCallback(B=>{y.current||(y.current=!0,_(!0),setTimeout(()=>{try{B&&B()}catch{}},s4))},[]),O=i.useCallback(()=>{h||p&&p()===!1||D(u)},[D,u,h,p]),R=i.useRef(O);i.useEffect(()=>{R.current=O});const j=!m&&!!u;i.useEffect(()=>{if(j)return nr(()=>R.current())},[j]);const P=t.jsx("div",{className:`popup ${m?"popup--inline":""} ${w?"popup--closing":""} ${f}`,children:t.jsxs("div",{ref:S,className:`popup-panel${v?` popup-panel--${v}`:""}`,tabIndex:-1,role:m?void 0:"dialog","aria-modal":m?void 0:!0,"aria-labelledby":!m&&a?x:void 0,"aria-label":!m&&!a&&g?g:void 0,children:[!C&&(o||u)?t.jsxs("div",{className:"popup-close-float",children:[o,u&&t.jsx(ne,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:O,disabled:h,ariaLabel:n("common.close","\uB2EB\uAE30")})]}):a||o||u?t.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[t.jsxs("div",{className:"popup-header-main",children:[t.jsx("span",{id:x,className:"popup-title popup-title--left h2",children:a}),r&&t.jsx("span",{className:"popup-subtitle body-3",children:r})]}),t.jsxs("div",{className:"popup-header-actions",children:[o,u&&t.jsx(ne,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:O,disabled:h,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]}):null,t.jsx("div",{className:"popup-content",ref:A,tabIndex:M?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof s=="function"?s({animateThen:D,closeWithAnimation:O}):s})}),l?.length?t.jsx("div",{className:"popup-footer popup-footer--buttons",children:l.map((B,F)=>t.jsx(ne,{size:48,variant:B.variant??"default",label:B.label,disabled:B.disabled,onClick:()=>B.onClick?.({animateThen:D,closeWithAnimation:O})},F))}):c?t.jsx("div",{className:`popup-footer${d?` ${d}`:""}`,children:typeof c=="function"?c({animateThen:D,closeWithAnimation:O}):c}):null]})});return m||typeof document>"u"?P:Pt.createPortal(P,document.body)}function Ca(e){return String(e)}const Pi=["o","triangle","x"];function Ii(e,n){return e===n?null:n}const Fi={o:"circle",triangle:"triangle",x:"x"},Oi={o:"main",triangle:"warn",x:"danger"};function i4(e){let n=0,a=0,r=0;for(const s of Object.values(e))s==="o"?n++:s==="triangle"?a++:s==="x"&&r++;const o=n+a+r;return{marked:o,o:n,triangle:a,x:r,rate:o===0?null:(n+a*.5)/o}}function gr(e){const n={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(n[a]=r);return n}function Hi(e){const n=[];let a=0;for(const r of e)n.push(a),a+=r;return n}function l4(e,n){return!n&&e>0}const $n={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 c4(e="landscape"){const{printSize:n,printW:a,printH:r}=$n[e],o=document.createElement("style");o.textContent=`@page { size: ${n}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(o);const s=()=>{document.head.removeChild(o),window.removeEventListener("afterprint",s)};window.addEventListener("afterprint",s),window.print()}function Vi(e,n){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(n)),r=[];for(let o=0;o<e.length;o+=a)r.push(e.slice(o,o+a));return r}const u4={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 d4(e,n){const a=u4[e][n];if(a)return a;const r=Math.max(1,Math.ceil(n)),o=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let s,l;return e==="landscape"?(l=o,s=Math.ceil(r/l)):(s=o,l=Math.ceil(r/s)),(e==="landscape"?s<l:l<s)&&([s,l]=[l,s]),{cols:s,rows:l}}const p4={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},zi={\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"},Wi={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function br(e,n){return e?e.split("/").map(a=>n[a]??a).join("/"):""}function qi(e,n,a,r){if(r!=="\uC810\uC120")return{};const o=e%n,s=Math.floor(e/n),l=o<n-1,c=s<a-1;if(!l&&!c)return{};const d="#ddd",u=g=>`repeating-linear-gradient(to ${g}, ${d} 0, ${d} 5px, transparent 5px, transparent 10px)`,h=[],p=[],f=[];return l&&(h.push(u("bottom")),p.push("1px 100%"),f.push("right center")),c&&(h.push(u("right")),p.push("100% 1px"),f.push("center bottom")),{backgroundImage:h.join(", "),backgroundSize:p.join(", "),backgroundPosition:f.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const h4=280,m4=240,f4=280,C4=400,g4=120,b4=280;function Ui(e,n){const a=i.useRef(null),[r,o]=i.useState(1),[s,l]=i.useState(0),c=i.useCallback((d,u)=>{const h=d/e,p=n?u/n:1/0,f=Math.min(1,h,p);o(f),l(Math.max(0,(d-e*f)/2))},[e,n]);return i.useEffect(()=>{const d=a.current;if(!d)return;const u=n?d.parentElement??d:d;if(c(u.clientWidth,u.clientHeight),typeof ResizeObserver>"u")return;const h=new ResizeObserver(([p])=>c(p.contentRect.width,p.contentRect.height));return h.observe(u),()=>h.disconnect()},[c,n]),{scalerRef:a,scale:r,offset:s}}let tn=null;function Gi({label:e,subLabel:n,colloquialLabel:a,homonum:r,showWord:o=!0,showImage:s=!0,showPronunciation:l=!0,showColloquial:c=!0,buttonSize:d=40,wordInfo:u}){const{t:h}=pe.useTranslation(),p=i.useRef(null),f=i.useRef(null),g=i.useRef(null),[C,m]=i.useState(1),[v,b]=i.useState(!1),[w,_]=i.useState(""),[y,S]=i.useState(null),x=n&&n.length>0?n:bm()?.(e,r)??"",A=Dn()?.(e,r)??"",{imgRef:M,loading:k,failed:D,onLoad:O,onError:R}=fr(A),j=i.useCallback(()=>S(f.current?.getBoundingClientRect()??null),[]),P=i.useCallback(()=>S(null),[]),B=i.useMemo(()=>{if(!u)return null;const E=[];return u.grade&&E.push(`\uB09C\uC774\uB3C4: ${u.grade}\uB4F1\uAE09`),u.syllables&&E.push(`\uC74C\uC808 \uC218: ${u.syllables}\uC74C\uC808`),u.pos&&E.push(`\uD488\uC0AC: ${br(u.pos,zi)}`),u.wordType&&E.push(`\uC720\uD615: ${br(u.wordType,Wi)}`),E.length?E:null},[u]);i.useEffect(()=>{const E=Fa(),$=x||e;if(!E||!$)return;let L=!1;return Promise.resolve(E($)).then(V=>{!L&&V&&_(V)}),()=>{L=!0}},[x,e]),i.useEffect(()=>()=>{g.current?.pause(),tn?.audio===g.current&&(tn=null)},[]);const F=i.useCallback(async E=>{if(E.stopPropagation(),v){g.current?.pause(),b(!1),tn=null;return}if(w){tn?.stop(),b(!0);try{const $=new Audio(w);g.current=$;const L=()=>{b(!1),tn?.audio===$&&(tn=null)};tn={audio:$,stop:()=>{$.pause(),L()}},$.onended=L,$.onerror=L,await $.play()}catch{b(!1),tn?.audio===g.current&&(tn=null)}}},[v,w]),Z=s&&!!A&&!D,Y=Z&&o?h4:Z?f4:m4,J=Z&&o?C4:Z?b4:g4;return i.useEffect(()=>{const E=p.current;if(!E||typeof ResizeObserver>"u")return;const $=new ResizeObserver(([L])=>{const{width:V,height:H}=L.contentRect;m(Math.min(V/Y,H/J))});return $.observe(E),()=>$.disconnect()},[Y,J]),t.jsxs("div",{ref:p,className:"word-table-cell",children:[t.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${C})`},children:[Z&&t.jsxs("div",{className:"word-table-cell__image-wrap",children:[k&&t.jsx("div",{className:"word-table-cell__spinner"}),t.jsx("img",{ref:M,className:"word-table-cell__image",src:A,alt:e,draggable:!1,style:{opacity:k?0:1},onLoad:O,onError:R})]}),o&&t.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&x&&t.jsxs("span",{className:"word-table-cell__sub h3",children:["[",x,"]"]}),c&&a&&t.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),t.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":w,children:[t.jsx("span",{"data-play-state":"play",style:{display:v?"none":void 0},children:t.jsx(ne,{size:d,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:h("common.play","\uC7AC\uC0DD"),onClick:F})}),t.jsx("span",{"data-play-state":"pause",style:{display:v?void 0:"none"},children:t.jsx(ne,{size:d,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:h("common.pause","\uBA48\uCDA4"),onClick:F})})]}),u&&t.jsxs("div",{ref:f,className:"word-table-cell__info-button",onPointerEnter:j,onPointerLeave:P,onFocus:j,onBlur:P,children:[t.jsx(ne,{size:d,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:h("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:E=>E.stopPropagation()}),y&&B&&t.jsx(_n,{anchorRect:y,items:B,showIndex:!1})]})]})}function Rn({title:e,titleIcon:n,disc:a,className:r,orientation:o="landscape",contentTypes:s=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:c=!0,showDivLine:d=!0,items:u,editCells:h,count:p,activeCell:f=null,onActivateCell:g,onRemoveCell:C,onRemoveItem:m,onReorder:v,showFillerAdd:b=!1,contentRef:w,buttonSize:_=40,pageNumber:y,pageNumberPosition:S="right",fitHeight:x=!1,scoring:A=!1,marks:M,onMarkClick:k,scoreIndexOffset:D=0}){const O=i.useCallback((ve,he)=>{k?.(D+ve,he)},[k,D]),R=(ve,he)=>{const T=M?.[Ca(D+ve)]??null;return t.jsx("div",{className:ye("word-table-cell__score",T?"word-table-cell__score--marked":""),children:Pi.map(W=>t.jsx("span",{className:ye("word-table-cell__score-slot",T===W?"word-table-cell__score-slot--on":""),children:t.jsx(ne,{size:_,type:"dot",icon:Fi[W],variant:T===W?Oi[W]:"default",selected:T===W,useBorder:!1,showTooltipInfo:!1,ariaLabel:j(`wordTable.scoring.${W}`,{word:he,defaultValue:`${he} ${W}`}),onClick:Q=>{Q.stopPropagation(),O(ve,W)}})},W))})},{t:j}=pe.useTranslation(),P=h!==void 0,B=i.useRef(null),[F,Z]=i.useState(null),{width:Y,height:J}=$n[o],{scalerRef:E,scale:$,offset:L}=Ui(Y,x?J:void 0),V=P?h?.length??0:u?.length??0,H=Math.max(p??V,1),{cols:X,rows:I}=d4(o,H),U={word:s.length===0||s.includes("\uB2E8\uC5B4"),image:s.length===0||s.includes("\uC774\uBBF8\uC9C0"),pron:s.length===0||s.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:s.length===0||s.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},q=P?(h??[]).some(ve=>ve!==null&&ve.length>1):(u??[]).some(ve=>ve.words.length>1),le=ye("word-table-block__content",p4[l],c&&"word-table-block__content--outline",d&&q&&"word-table-block__content--div-line"),de={transform:`scale(${1/$})`,transformOrigin:"center center"},Ce=t.jsx("div",{ref:E,className:"word-table__scaler",style:{height:J*$},children:t.jsx("div",{className:ye("word-table",r),style:{width:Y,height:J,transform:`scale(${$})`,transformOrigin:"top left",marginLeft:L},children:t.jsxs("div",{ref:w,className:le,style:{gridTemplateColumns:`repeat(${X}, 1fr)`,gridTemplateRows:`repeat(${I}, 1fr)`},children:[P?t.jsx(t.Fragment,{children:(h??[]).map((ve,he)=>t.jsx("div",{className:ye("word-table-block__edit-cell",ve?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",f===he?"word-table-block__edit-cell--active":""),style:qi(he,X,I,l),children:ve?t.jsxs(t.Fragment,{children:[ve.map((T,W)=>t.jsxs(i.Fragment,{children:[W>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(Gi,{label:T.word,subLabel:T.pronunciation,homonum:T.homonum,showWord:U.word,showImage:U.image,showPronunciation:U.pron,showColloquial:U.colloq,buttonSize:_})]},W)),A&&R(he,ve.map(T=>T.word).join(" / ")),C&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ne,{size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ve.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ve.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>C(he)})})]}):g&&t.jsx("div",{style:de,children:t.jsx(ne,{size:"48",type:"bar",icon:"plus",label:j("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g(he)})})},he))}):t.jsxs(t.Fragment,{children:[(u??[]).map((ve,he)=>t.jsxs("div",{className:`word-table-block__card${v?" word-table-block__card--draggable":""}${F===he?" word-table-block__card--drag-over":""}`,style:qi(he,X,I,l),draggable:!!v,onDragStart:v?()=>{B.current=he}:void 0,onDragOver:v?T=>{T.preventDefault(),Z(he)}:void 0,onDragLeave:v?()=>Z(null):void 0,onDrop:v?T=>{T.preventDefault(),B.current!==null&&B.current!==he&&v(B.current,he),B.current=null,Z(null)}:void 0,onDragEnd:v?()=>{B.current=null,Z(null)}:void 0,children:[ve.words.map((T,W)=>t.jsxs(i.Fragment,{children:[W>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(Gi,{label:T.label,subLabel:T.subLabel,colloquialLabel:T.colloquialLabel,homonum:T.homonum,showWord:U.word,showImage:U.image,showPronunciation:U.pron,showColloquial:U.colloq,buttonSize:_,wordInfo:T.grade||T.syllables!=null||T.pos||T.wordType?{grade:T.grade,syllables:T.syllables,pos:T.pos,wordType:T.wordType}:void 0})]},W)),A&&R(he,ve.words.map(T=>T.label).join(" / ")),m&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ne,{size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ve.words.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ve.words.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>m(ve.id)})})]},ve.id)),Array.from({length:Math.max(0,X*I-(u?.length??0))}).map((ve,he)=>{const T=(u?.length??0)+he<H;return t.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:b&&g&&T&&t.jsx("div",{style:de,children:t.jsx(ne,{size:_,type:"bar",icon:"plus",label:j("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g((u?.length??0)+he)})})},`filler-${he}`)})]}),y&&S!=="none"&&t.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${S}`,children:j("wordTable.filter.pageIndicator",{current:y.current,total:y.total})})]})})});return e!=null||n||a?t.jsx(Mn,{type:"page",icon:n,title:e,disc:a,className:ye("word-table-block",r),children:Ce}):Ce}function nn({title:e,headerAction:n,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:o,onCollapsedChange:s,footer:l,sections:c,selected:d={},onSelect:u,align:h,sectionAlign:p,className:f}){const g=(h??(p==="vertical"?"newline":"inline"))==="inline",{t:C}=pe.useTranslation(),[m,v]=i.useState(r),b=o??m,w=()=>{const y=!b;v(y),s?.(y)},_=e||n||a;return t.jsxs("div",{className:ye("filter-panel",a?"filter-panel--collapsible":"",b?"filter-panel--collapsed":"",f),children:[_&&t.jsxs("div",{className:"filter-panel__header",children:[t.jsxs("div",{className:"filter-panel__title-row",children:[a&&t.jsx(ne,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:b?"chevron-down":"chevron-up",ariaLabel:b?C("common.expand","\uD3BC\uCE58\uAE30"):C("common.collapse","\uC811\uAE30"),"aria-expanded":!b,onClick:w}),e&&t.jsx("span",{className:"filter-panel__title h4",children:e})]}),t.jsx("div",{className:"filter-panel__header-actions",children:!b&&n})]}),!b&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:ye("filter-panel__sections",g?"filter-panel__sections--row":""),children:c.map(y=>{const S=d[y.label],x=S===void 0||(Array.isArray(S)?S.length===0:!1),A=(y.items??[]).filter(k=>k!=null),M=k=>{const D=typeof k=="string"?k:k.value,O=typeof k!="string"&&!!k.disabled,R=typeof k!="string"?k.labels:void 0,j=typeof k!="string"?k.displayLabel:void 0,P=typeof k!="string"?k.tooltip:void 0,B=typeof k!="string"?k.descriptionTooltip:void 0,F=typeof k!="string"?k.shape:void 0,Z=Array.isArray(S)?S.includes(D):S===D;return t.jsx(ne,{size:"keyboard",label:R??j??D,type:y.itemType??(R?"bar":D.length===1?"dot":void 0),selected:Z,disabled:O,shape:F,showTooltipInfo:!!P,tooltipInfoText:P,tooltipDescription:B,onClick:()=>u?.(D,y.label)},D)};return t.jsxs(i.Fragment,{children:[y.groupLabel&&t.jsxs("div",{className:"filter-panel__group-label-row",children:[t.jsx("div",{className:"filter-panel__group-label body-2",children:y.groupLabel}),y.groupAction]}),t.jsxs("div",{className:ye("filter-panel__section",y.layout==="row"?"filter-panel__section--row":"",y.block?"filter-panel__section--block":""),children:[t.jsxs("div",{className:"filter-panel__section-label-row",children:[t.jsx("span",{className:"filter-panel__section-label body-3",children:y.displayLabel??y.label}),y.labelAction??(y.labelInfo?t.jsx(Jn,{...y.labelInfo}):null)]}),y.type==="note"?t.jsx("div",{className:"filter-panel__note body-3",children:y.content}):y.type==="input"?t.jsx(kn,{className:"filter-panel__textfield",placeholder:y.placeholder,ariaLabel:y.displayLabel??y.label,value:d[y.label]??"",onChange:k=>u?.(k,y.label),error:y.error}):!y.multiple&&y.display==="segmented"?t.jsx(An,{ariaLabel:y.displayLabel??y.label,options:[...y.allOption?[{key:un,label:y.allLabel??C("common.all","\uC804\uCCB4")}]:[],...A.map(k=>{const D=typeof k=="string"?k:k.value,O=typeof k!="string"?k.displayLabel:void 0,R=typeof k!="string"?k.disabled:void 0;return{key:D,label:O??D,disabled:R}})],value:x&&y.allOption?un:d[y.label],onChange:k=>u?.(k,y.label),size:32}):!y.multiple&&y.display==="dropdown"?t.jsx(Vt,{className:"filter-panel__dropdown",size:40,options:[...y.allOption?[{value:un,label:y.allLabel??C("common.all","\uC804\uCCB4")}]:[],...A.map(k=>{const D=typeof k=="string"?k:k.value,O=typeof k!="string"?k.displayLabel:void 0,R=typeof k!="string"?k.disabled:void 0;return{value:D,label:O??D,disabled:R}})],value:x&&y.allOption?un:d[y.label],onChange:k=>u?.(k,y.label)}):t.jsxs("div",{className:y.groups?"filter-panel__item-groups":"filter-panel__items",children:[y.allOption&&!y.groups&&t.jsx(ne,{size:"keyboard",label:y.allLabel??C("common.all","\uC804\uCCB4"),selected:x,disabled:y.allOptionDisabled,onClick:()=>u?.(un,y.label)}),y.groups?y.groups.map((k,D)=>t.jsxs("div",{className:"filter-panel__item-group",children:[D===0&&y.allOption&&t.jsx(ne,{size:"keyboard",label:y.allLabel??C("common.all","\uC804\uCCB4"),selected:x,disabled:y.allOptionDisabled,onClick:()=>u?.(un,y.label)}),k.filter(O=>O!=null).map(M)]},D)):A.map(M)]})]})]},y.label)})}),l!=null&&l!==!1&&t.jsx("div",{className:"filter-panel__footer body-3",children:l})]})]})}const y4=[1,2,3,4,5,6,7,8,9,10,11,12],v4=[8,4,2,1];function Ki(e,n){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!n.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!n.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function Zi(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"\uAC00\uB85C",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"\uC138\uB85C",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function Yi(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Xi(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Ji(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Qi(e,n){return{label:e(n.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[n.itemCount,...v4.filter(a=>a<n.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function el(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"\uC67C\uCABD",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"\uC911\uC559",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"\uC624\uB978\uCABD",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}const tl={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function nl(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function al(e,n){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:n.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:n.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:n.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:n.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:n.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}}function rl(e,n,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?n===un?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(o=>o.includes(n)?o.filter(s=>s!==n):[...o,n]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(n==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(n==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(n),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(n==="\uD45C\uC2DC"),!0):!1}function x4(e){return"sections"in e}function yr(e){const{t:n}=pe.useTranslation(),{title:a,className:r}=e;if(x4(e))return t.jsx(nn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:o,hasColloquial:s,contentTypes:l,orientation:c,showOutline:d,cutLine:u,showDivLine:h,setters:p,showCutLine:f=!1,showDivLine2:g=!1,middleSections:C=[],extraSelected:m={},onExtraSelect:v}=e,b=[Ki(n,{hasImage:o,hasColloquial:s}),Zi(n),...C,Yi(n),...f?[Xi(n)]:[],...g?[Ji(n)]:[]],w={...al(n,{contentTypes:l,orientation:c,showOutline:d,cutLine:u,showDivLine:h}),...m},_=(y,S)=>{rl(n,y,S,p)||v?.(y,S)};return t.jsx(nn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:b,selected:w,onSelect:_,sectionAlign:"horizontal"})}function ol(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function vr(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}function _4(e,n,a,r="",o=""){if(e.length===0)return;const s=r?vr(r):"";if(s){const d=document.title;document.title=s;const u=()=>{document.title=d,window.removeEventListener("afterprint",u)};window.addEventListener("afterprint",u)}const l=document.createElement("iframe");l.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(l);const c=l.contentDocument;if(!c){l.remove();return}c.open(),c.write(xr(e,n,a,!0,s,o)),c.close(),l.contentWindow?.addEventListener("afterprint",()=>setTimeout(()=>l.remove(),0))}function xr(e,n,a,r=!1,o="",s=""){o=o?vr(o):"";const l=Array.from(document.styleSheets).flatMap(h=>{try{return Array.from(h.cssRules).map(p=>p.cssText)}catch{return[]}}).join(`
|
|
839
|
-
`),c=document.documentElement.getAttribute("data-theme")||"light",
|
|
837
|
+
`),f=C===-1?a:a.slice(0,C);s("comment",f),a=a.slice(f.length);continue}if(o&&a.startsWith("#")){const C=a.indexOf(`
|
|
838
|
+
`),f=C===-1?a:a.slice(0,C);s("comment",f),a=a.slice(f.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){s("comment",c[0]),a=a.slice(c[0].length);continue}const u=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(u){s("string",u[0]),a=a.slice(u[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){s("number",d[0]),a=a.slice(d[0].length);continue}const h=a.match(bg);if(h){s("keyword",h[0]),a=a.slice(h[0].length);continue}const p=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(p){const C=p[0];s(o&&gg.has(C)?"command":"identifier",C),a=a.slice(C.length);continue}const m=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(m){s("operator",m[0]),a=a.slice(m[0].length);continue}const g=a.match(/^[()[\]{};.,]/);if(g){s("punctuation",g[0]),a=a.slice(1);continue}s("other",a[0]),a=a.slice(1)}return r}function vg({children:e,language:n="bash",title:a="",showCopy:r=!0,size:o="default",className:s=""}){const{t:l}=pe.useTranslation(),[c,u]=i.useState(!1),d=Cg(fi(e)),h=i.useRef(null);i.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const p=async()=>{try{if(!await Zm(d))return;u(!0),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>u(!1),2e3)}catch{}},m=yg(d,n),g=o==="small"?"caption-1":"body-3";return t.jsxs("div",{className:ye("code-box",o==="small"?"code-box--small":"",s),children:[(a||r)&&t.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":l("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[t.jsx("div",{className:"code-box__title caption-1",children:a}),r&&t.jsx(ne,{className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:p,ariaLabel:c?l("common.copied","\uBCF5\uC0AC\uB428"):l("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),t.jsx("pre",{className:"code-box__inner","data-lang":n,children:t.jsx("code",{children:m.map((C,f)=>t.jsx("span",{className:`code-token ${C.type} ${g}`,children:C.content},f))})})]})}function Qn(e){const{variant:n="spinner",size:a=24,progress:r=null,label:o}=e||{};if(n==="bar"){const l=Math.max(0,Math.min(100,Number(r)||0));return t.jsx("div",{className:"loader-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l,"aria-label":o||"Loading",children:t.jsx("div",{className:"loader-bar__inner",style:{width:`${l}%`}})})}const s=typeof a=="number"?`${a}px`:a;return t.jsx("div",{className:"loader-spinner",style:{width:s,height:s},role:"status","aria-label":o||"Loading",children:t.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:a,height:a,children:[t.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),t.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})})}function Ci({checked:e,onChange:n,disabled:a=!1,label:r,ariaLabel:o,labelPosition:s="right",className:l="",id:c}){const u=r&&t.jsx("span",{className:"toggle__label body-3",children:r});return t.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[s==="left"&&u,t.jsx("input",{id:c,type:"checkbox",checked:e,disabled:a,onChange:d=>n?.(d.target.checked),"aria-label":!r&&o?o:void 0}),t.jsx("span",{className:"toggle__slider"}),s==="right"&&u]})}function gi({checked:e=!1,onChange:n,disabled:a,indeterminate:r,label:o,size:s="medium",className:l,title:c,ariaLabel:u}){const d=i.useRef(null),h=i.useId();return i.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)},[r]),t.jsxs("label",{className:ye("checkbox",s==="small"&&"checkbox--small",s==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:h,title:c,children:[t.jsx("input",{ref:d,id:h,type:"checkbox",className:"checkbox__input",checked:e,onChange:p=>n?.(p.target.checked),disabled:a,"aria-label":!o&&u?u:void 0}),t.jsx("span",{className:"checkbox__box"}),o&&t.jsx("span",{className:"checkbox__label body-3",children:o})]})}function xg({count:e,actions:n,onClear:a,clearLabel:r="\uC120\uD0DD \uD574\uC81C",visible:o,content:s,max:l}){const{t:c}=pe.useTranslation(),u=o!==void 0?o:e>0,d=i.useRef(null),[h,p]=i.useState(!1);return i.useEffect(()=>{const m=d.current;if(!m)return;const g=()=>{const f=m.firstElementChild??m,b=Array.from(f.children);if(b.length<2){p(!1);return}const y=b[0].offsetTop;p(b.some(w=>w.offsetTop!==y))};if(g(),typeof ResizeObserver>"u")return;const C=new ResizeObserver(g);return C.observe(m),()=>C.disconnect()},[s,e]),t.jsxs("div",{className:`bulk-bar ${u?"bulk-bar--visible":""}`,children:[t.jsx("span",{ref:d,className:"bulk-bar__count body-2",children:s??t.jsx("b",{children:c("common.selectedCount",{count:e})})}),l!==void 0&&t.jsx(lt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),t.jsxs("div",{className:`bulk-bar__actions${h?" bulk-bar__actions--stacked":""}`,children:[t.jsx(ne,{size:40,label:r,onClick:a}),n.map((m,g)=>t.jsx(ne,{size:40,variant:m.variant??"default",icon:m.icon,label:m.label,onClick:m.onClick},g))]})]})}function bi(e){const n=()=>{if(e){const[p,m]=e.split("-");return{y:+p,m:+m-1}}const h=new Date;return{y:h.getFullYear(),m:h.getMonth()}},[a,r]=i.useState(()=>n().y),[o,s]=i.useState(()=>n().m),l=i.useRef(e);i.useEffect(()=>{if(e===l.current)return;l.current=e;const h=n();r(h.y),s(h.m)},[e]);const c=i.useCallback(()=>{o===0?(r(h=>h-1),s(11)):s(h=>h-1)},[o]),u=i.useCallback(()=>{o===11?(r(h=>h+1),s(0)):s(h=>h+1)},[o]),d=i.useCallback((h,p)=>{r(h),s(p)},[]);return{viewY:a,viewM:o,prevMonth:c,nextMonth:u,setViewYM:d}}function yi(e,n){return new Date(e,n+1,0).getDate()}function _g(e,n){return new Date(e,n,1).getDay()}function En(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function wg(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function kg(e,n,a){const r=n?+n.split("-")[0]:e-10,o=a?+a.split("-")[0]:e+10,s=[];for(let l=r;l<=o;l++)for(let c=0;c<12;c++){const u=`${l}-${String(c+1).padStart(2,"0")}`;n&&u<n.slice(0,7)||a&&u>a.slice(0,7)||s.push({value:u,label:`${l}\uB144 ${c+1}\uC6D4`})}return s}function Ag({value:e,onChange:n,size:a=48,min:r,max:o,disabled:s,placeholder:l="\uB0A0\uC9DC \uC120\uD0DD",className:c}){const{t:u}=pe.useTranslation(),d=i.useMemo(()=>u("calendar.dow",{returnObjects:!0}),[u]),h=new Date,{viewY:p,viewM:m,prevMonth:g,nextMonth:C,setViewYM:f}=bi(e),b=i.useCallback(S=>{const L=window.innerHeight-S.bottom,$=300,F=L<$&&S.top>$;return{position:"fixed",left:S.left,width:S.width,minWidth:260,...F?{bottom:window.innerHeight-S.top+6}:{top:S.bottom+6},zIndex:9999}},[]),{open:y,setOpen:w,toggle:_,style:v,triggerRef:B,menuRef:x}=Zn({computeStyle:b,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});i.useEffect(()=>{if(!y)return;const S=x.current;return(S?.querySelector(".date-picker__day--selected")??S?.querySelector(".date-picker__day--today")??S?.querySelector(Gn)??S)?.focus?.(),()=>{const L=document.activeElement;(!L||L===document.body)&&B.current?.focus?.()}},[y,x,B]);const[A,M]=i.useState(1),k=i.useRef(null),j=i.useRef(null);i.useEffect(()=>{if(!y)return;const S=En(h.getFullYear(),h.getMonth(),h.getDate()),L=e&&e.slice(0,7)===`${p}-${String(m+1).padStart(2,"0")}`?+e.slice(8):S.slice(0,7)===`${p}-${String(m+1).padStart(2,"0")}`?+S.slice(8):1;M(L)},[y]),i.useEffect(()=>{if(j.current==null)return;const S=j.current;j.current=null,k.current?.querySelector(`[data-day="${S}"]`)?.focus()}),i.useEffect(()=>{M(S=>Math.min(S,yi(p,m)))},[p,m]);const H=i.useCallback(S=>{let L=En(S.getFullYear(),S.getMonth(),S.getDate());r&&L<r&&(L=r),o&&L>o&&(L=o);const[$,F,O]=L.split("-").map(Number);($!==p||F-1!==m)&&f($,F-1),M(O),j.current=O},[r,o,p,m,f]),R=i.useCallback(S=>{const L=new Date(p,m,A),$=O=>{L.setDate(L.getDate()+O),H(L)},F=O=>{L.setMonth(L.getMonth()+O),H(L)};switch(S.key){case"ArrowLeft":$(-1);break;case"ArrowRight":$(1);break;case"ArrowUp":$(-7);break;case"ArrowDown":$(7);break;case"Home":$(-L.getDay());break;case"End":$(6-L.getDay());break;case"PageUp":S.shiftKey?F(-12):F(-1);break;case"PageDown":S.shiftKey?F(12):F(1);break;default:return}S.preventDefault()},[p,m,A,H]),E=i.useCallback(S=>{n(En(p,m,S)),w(!1)},[p,m,n,w]),P=S=>{const L=En(p,m,S);return!!(r&&L<r||o&&L>o)},D=[];for(let S=0;S<_g(p,m);S++)D.push(null);for(let S=1;S<=yi(p,m);S++)D.push(S);const z=a===64?20:a===40?16:18,Z=kg(p,r,o),Y=`${p}-${String(m+1).padStart(2,"0")}`,J=y?Pt.createPortal(t.jsxs("div",{ref:x,className:"date-picker__dropdown",style:v,role:"dialog","aria-label":u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[t.jsxs("div",{className:"date-picker__nav",children:[t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:g,"aria-label":u("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(to,{size:16,strokeWidth:2})}),t.jsx(Vt,{className:"date-picker__nav-dropdown",ariaLabel:u("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:Z,value:Y,onChange:S=>{const[L,$]=S.split("-");f(+L,+$-1)},block:!0,size:40}),t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:C,"aria-label":u("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(no,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:k,onKeyDown:R,children:[d.map(S=>t.jsx("div",{className:"date-picker__dow caption-1",children:S},S)),D.map((S,L)=>{if(S===null)return t.jsx("div",{},`e${L}`);const $=En(p,m,S),F=$===e,O=$===En(h.getFullYear(),h.getMonth(),h.getDate()),X=P(S),I=L%7;return t.jsx("button",{type:"button",disabled:X,"data-day":S,tabIndex:S===A?0:-1,"aria-current":O?"date":void 0,onClick:()=>!X&&E(S),className:ye("date-picker__day caption-1",F&&"date-picker__day--selected",O&&!F&&"date-picker__day--today",X&&"date-picker__day--disabled",I===0&&"date-picker__day--sun",I===6&&"date-picker__day--sat"),children:S},S)})]})]}),document.body):null;return t.jsxs("div",{className:ye("date-picker",`date-picker--s${a}`,y&&"date-picker--open",c),children:[t.jsxs("button",{ref:B,type:"button",className:"date-picker__trigger body-2",onClick:()=>!s&&_(),disabled:s,"aria-haspopup":"true","aria-expanded":y,children:[t.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?wg(e):l}),t.jsx(po,{size:z,className:"date-picker__icon",strokeWidth:1.5})]}),J]})}function lr({items:e,className:n}){return t.jsx("div",{className:n?`manager-bar-chart-legend ${n}`:"manager-bar-chart-legend",children:e.map((a,r)=>t.jsxs("span",{className:"manager-bar-chart-legend-item",children:[t.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function ma({label:e,children:n}){return e?t.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[t.jsx("span",{className:"barchart-total__label body-3",children:e}),t.jsx("span",{className:"barchart-total__value",children:n})]}):t.jsx("div",{className:"barchart-total",children:n})}function cr({title:e,titleClassName:n="h3",headRight:a,subRow:r,className:o,children:s}){return t.jsxs("section",{className:o?`manager-section ${o}`:"manager-section",children:[t.jsxs("div",{className:"manager-section__head",children:[t.jsx("div",{className:n,children:e}),a]}),r&&t.jsx("div",{className:"barchart-sub-row",children:r}),s]})}function dn(e,n){const a=new Date(e,n,1).getDay();return 1+(8-(a===0?7:a))%7}function Ng(){const e=new Date;let n=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<dn(n,a)){const l=new Date(n,a,0);n=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const o=Math.floor((r-dn(n,a))/7),s=`${n}\uB144 ${a+1}\uC6D4`;return{monthKey:s,value:`${s}#${o}`}}function Bg(e){const n=new Date,a=`${n.getFullYear()}\uB144 ${n.getMonth()+1}\uC6D4`,r=(u,d)=>`${u}\uB144 ${d+1}\uC6D4`,o=new Map;o.set(a,[]);for(const u of e){if(isNaN(u.date.getTime()))continue;const d=r(u.date.getFullYear(),u.date.getMonth());o.has(d)||o.set(d,[]),o.get(d).push(u)}const s=new Map;for(const[u,d]of o){const h=u.match(/^(\d+)년 (\d+)월$/);if(!h)continue;const p=Number(h[1]),m=Number(h[2])-1,g=new Date(p,m+1,0).getDate(),C=d.reduce((w,_)=>Math.max(w,_.parts?.length??0),0),f=new Array(g+1).fill(0),b=new Array(g+1).fill(0),y=Array.from({length:g+1},()=>new Array(C).fill(0));for(const w of d){const _=w.date.getDate();if(f[_]+=w.a,b[_]+=w.b,w.parts)for(let v=0;v<C;v++)y[_][v]+=w.parts[v]??0}s.set(u,{year:p,month:m,daysInMonth:g,partsLen:C,dayA:f,dayB:b,dayParts:y})}const l=(u,d,h)=>new Date(u,d,h).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),c={};for(const[u,d]of s){const{year:h,month:p,daysInMonth:m,dayA:g,dayB:C,dayParts:f}=d,b=h===n.getFullYear()&&p===n.getMonth(),y=n.getDate(),w=s.get(r(p===11?h+1:h,(p+1)%12)),_=d.partsLen,v=[];for(let x=1;x<=m;x++){const A=b&&x>y;v.push({label:String(x),a:A&&g[x]===0&&C[x]===0?-1:g[x],b:C[x],..._?{parts:f[x]}:{}})}const B=[];for(let x=dn(h,p);x<=m;x+=7){const A=Math.max(0,x+6-m),M=A&&w?Math.max(_,w.partsLen):_;let k=0,j=0;const H=new Array(M).fill(0);for(let E=x;E<=Math.min(x+6,m);E++){k+=g[E],j+=C[E];for(let P=0;P<_;P++)H[P]+=f[E][P]}if(A&&w)for(let E=1;E<=A&&!l(w.year,w.month,E);E++){k+=w.dayA[E],j+=w.dayB[E];for(let P=0;P<w.partsLen;P++)H[P]+=w.dayParts[E][P]}const R=A?`${(p+1)%12+1}/${A}`:`${x+6}`;B.push({label:`${B.length+1}\uC8FC`,sublabel:`[${x}\uC77C~${R}\uC77C]`,a:k,b:j,...M?{parts:H}:{}})}c[u]={weekly:B,daily:v}}return c}function Sg(){const e=new Date,n=e.getFullYear(),a=e.getMonth()+1,r=[];for(let o=2024;o<=n;o++){const s=o===n?a:12;for(let l=1;l<=s;l++){const c=`${o}\uB144 ${l}\uC6D4`;r.push({value:c,label:c,year:o,month:l})}}return r.reverse()}const Dg=Sg(),vi=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function xi(e){const{t:n,i18n:a}=pe.useTranslation(),[r,o]=i.useState("week"),s=i.useMemo(()=>Dg.filter(k=>k.value in e),[e]),l=i.useMemo(()=>{const k=[];for(const j of s){const H=new Date(j.year,j.month,0).getDate(),R=dn(j.year,j.month-1),E=Math.ceil((H-R+1)/7);for(let P=E-1;P>=0;P--)k.push({value:`${j.value}#${P}`,monthKey:j.value,year:j.year,month:j.month,week:P})}return k},[s]),c=i.useCallback(k=>{const j=n("calendar.yearMonth",{year:k.year,month:k.month});return a.language?.startsWith("ko")?`${j} ${vi[k.week]??`${k.week+1}`}\uC8FC`:`${j} Week ${k.week+1}`},[n,a.language]),u=i.useMemo(()=>s.map(k=>({value:k.value,label:n("calendar.yearMonth",{year:k.year,month:k.month})})),[n,s]),d=i.useMemo(()=>l.map(k=>({value:k.value,label:c(k)})),[l,c]),h=i.useMemo(()=>Ng(),[]),p=i.useMemo(()=>s.find(k=>k.value===h.monthKey)?.value??s[0]?.value??"",[s,h]),m=i.useMemo(()=>l.find(k=>k.value===h.value)?.value??l[0]?.value??"",[l,h]),[g,C]=i.useState(""),[f,b]=i.useState("");i.useEffect(()=>{s.find(k=>k.value===g)||C(p)},[s,g,p]),i.useEffect(()=>{l.find(k=>k.value===f)||b(m)},[l,f,m]);const y=r==="month"?u:d,w=r==="month"?g:f,_=r==="month"?C:b,v=i.useMemo(()=>{const k=n("calendar.dow",{returnObjects:!0});return Array.isArray(k)?k:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[n]),B=y.findIndex(k=>k.value===w),x=i.useCallback(()=>{const k=y.findIndex(j=>j.value===w);k<y.length-1&&_(y[k+1].value)},[y,w,_]),A=i.useCallback(()=>{const k=y.findIndex(j=>j.value===w);k>0&&_(y[k-1].value)},[y,w,_]),M=i.useMemo(()=>[{key:"week",label:n("manager.chart.periodWeek","\uC8FC")},{key:"month",label:n("manager.chart.periodMonth","\uC6D4")}],[n]);return{period:r,setPeriod:o,range:w,setRange:_,activeOptions:y,activeIdx:B,handlePrev:x,handleNext:A,periodOptions:M,monthRange:g,weekRange:f,weekRanges:l,DOW:v}}function jg({data:e,colorA:n,colorB:a,labelA:r,labelB:o,barWidth:s=10,height:l=140,maxOverride:c,tightMax:u,seriesColors:d,seriesLabels:h,rateLabels:p}){const m=!a,g=!!(d&&d.length>0),C=i.useMemo(()=>g?Math.max(0,...e.filter(A=>A.a!==-1).map(A=>(A.parts??[]).reduce((M,k)=>M+Math.max(0,k),0))):Math.max(0,...e.filter(A=>A.a!==-1).flatMap(A=>m?[A.a]:[A.a,A.b])),[e,m,g]),f=i.useMemo(()=>c??(u?C>0?C:10:Math.ceil(C/10)*10||10),[C,c,u]),b=l,y=g||m?1:2,w={"--bar-width":`${i.useMemo(()=>{const A=Math.max(1,e.length);return Math.max(8,Math.min(s,Math.round(120/(A*y)+6)))},[e.length,y,s])}px`},_=i.useMemo(()=>{const A=Math.round(f/2);return A!==f?[f,A,0]:[f,0]},[f]),[v,B]=i.useState(null),x=i.useCallback(()=>B(null),[]);return t.jsxs("div",{className:"manager-bar-chart-wrap",children:[t.jsx("div",{className:"manager-bar-chart-inner",children:t.jsx("div",{className:"manager-bar-chart-scroll",children:t.jsxs("div",{className:"manager-bar-chart-area",children:[t.jsxs("div",{className:"manager-bar-chart-plot",style:{height:b},children:[_.slice(0,-1).map((A,M)=>t.jsx("div",{className:"manager-bar-chart-gridline",style:{top:M*(b/(_.length-1))},children:t.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:A})},M)),e.map((A,M)=>{const k=A.a===-1,j=k?0:A.a/f*b,H=k?0:A.b/f*b,R=A.parts??[];return t.jsx("div",{className:"manager-bar-chart-col",style:{cursor:k?"default":"pointer"},onMouseEnter:k?void 0:E=>{const P=E.currentTarget.getBoundingClientRect(),D=[A.label,A.sublabel].filter(Boolean).join(" ");let z;if(g){const Z=(h??[]).map((J,S)=>({text:`${J}: ${R[S]??0}`,color:(d??[])[S]})),Y=Z.filter((J,S)=>(R[S]??0)>0);z=Y.length?Y:Z}else p&&!m?z=[{text:`${r} ${A.a}%`,color:n},{text:`${o} ${A.b}%`,color:a}]:p&&A.rawB!==void 0?z=[{text:`${p.total} ${A.rawB}`},{text:`${p.done} ${A.rawA??0}`,color:n}]:m?z=[{text:`${r}: ${A.a}`,color:n}]:z=[{text:`${r}: ${A.a}`,color:n},{text:`${o}: ${A.b}`,color:a}];B({rect:{left:P.left,top:P.top,right:P.right,bottom:P.bottom,width:P.width,height:P.height},title:D,items:z})},onMouseLeave:x,children:!k&&(g?t.jsx("div",{className:"manager-bar-chart-stack",style:w,children:(()=>{const E=R.reduce((P,D,z)=>D>0?z:P,-1);return R.map((P,D)=>P>0?t.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:P/f*b,background:(d??[])[D],borderRadius:D===E?"6px 6px 0 0":void 0}},D):null)})()}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:j,background:n}}),!m&&t.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:H,background:a}})]}))},M)})]}),t.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((A,M)=>{const k=A.a===-1;return t.jsxs("span",{className:`manager-bar-chart-x-axis__label${k?" manager-bar-chart-x-axis__label--future":""}`,children:[t.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[A.isToday&&t.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:n}}),A.label]}),A.sublabel&&t.jsx("span",{className:"caption-1",children:A.sublabel})]},M)})})]})})}),v&&t.jsx(_n,{anchorRect:v.rect,title:v.title,items:v.items,showIndex:!1,closeOnOutsideClick:!1})]})}function _i({control:e}){const{t:n}=pe.useTranslation(),{activeOptions:a,activeIdx:r,range:o,setRange:s,handlePrev:l,handleNext:c,periodOptions:u,period:d,setPeriod:h}=e,p=d==="week"?n("calendar.prevWeek","\uC774\uC804 \uC8FC"):n("calendar.prevMonth","\uC774\uC804 \uB2EC"),m=d==="week"?n("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):n("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return t.jsxs("div",{className:"manager-section-controls",children:[t.jsx(ne,{size:32,type:"dot",icon:"chevron-left",ariaLabel:p,showTooltipInfo:p,disabled:r===a.length-1,onClick:l}),t.jsx(Vt,{value:o,onChange:s,options:a,size:40,className:"month-dropdown",ariaLabel:n("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),t.jsx(ne,{size:32,type:"dot",icon:"chevron-right",ariaLabel:m,showTooltipInfo:m,disabled:r<=0,onClick:c}),t.jsx(An,{ariaLabel:n("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:u,value:d,onChange:g=>h(g),size:32})]})}function wi(e,n,a){const r=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(o,s)=>{const l=new Date(n);l.setDate(n.getDate()+s);const c=(e[`${l.getFullYear()}\uB144 ${l.getMonth()+1}\uC6D4`]?.daily??[])[l.getDate()-1],u=c?.a===-1||l>r;return{dt:l,entry:c,isFuture:u}})}function Eg(e,n,a,r){const{period:o,monthRange:s,weekRange:l,weekRanges:c,DOW:u}=n,d=r?.startsWith("ko"),h=new Date,p=h.getFullYear(),m=h.getMonth()+1,g=h.getDate();if(o==="month"){const b=e[s]??{weekly:[],daily:[]},y=s.match(/^(\d+)년 (\d+)월$/),w=y?Number(y[1]):null,_=y?Number(y[2]):null,v=w&&_?dn(w,_-1):1;return b.weekly.map((B,x)=>{const A=x+1;let M=B.label,k=!1,j=!1;if(w&&_){const H=v+x*7,R=new Date(w,_-1,H+6),E=R.getMonth()+1,P=R.getDate(),D=E===_?`${P}`:`${E}/${P}`;M=a("manager.chart.weekRange",{start:H,end:D});const z=new Date(p,m-1,g).getTime();k=z>=new Date(w,_-1,H).getTime()&&z<=R.getTime(),j=w>p||w===p&&(_>m||_===m&&H>g)}return{...B,label:M,sublabel:d?`${vi[A-1]??A}\uC8FC`:`Week ${A}`,isToday:k,a:j?-1:B.a,b:j?0:B.b}})}const C=c.find(b=>b.value===l);if(!C)return[];const f=new Date(C.year,C.month-1,dn(C.year,C.month-1)+C.week*7);return wi(e,f,h).map(({dt:b,entry:y,isFuture:w})=>{const _=b.getMonth()+1,v=b.getDate(),B=b.getFullYear();return{label:_===C.month&&B===C.year?`${v}`:`${_}/${v}`,sublabel:u[b.getDay()]??"",a:w?-1:y&&y.a>0?y.a:0,b:w?0:y&&y.b>0?y.b:0,isToday:B===p&&_===m&&v===g,...y?.parts?{parts:w?y.parts.map(()=>0):y.parts}:{}}})}const Tg={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function Mg({size:e="medium",barWidth:n,titleKey:a,data:r,colorA:o,colorB:s,labelAKey:l,labelBKey:c,showTotal:u=!1,totalUnitKey:d,totalLabelKey:h,control:p,hideControls:m=!1,rate:g=!1,tightMax:C=!1,avgMode:f=!1,totalFormat:b,series:y,loading:w=!1,onDetail:_}){const{t:v,i18n:B}=pe.useTranslation(),x=Tg[e],A=xi(r),M=p??A,k=i.useMemo(()=>Eg(r,M,v,B.language),[r,M,v,B.language]),j=i.useMemo(()=>{if(!g)return k;const P=M.period==="month"?M.monthRange.match(/^(\d+)년 (\d+)월$/):null,D=new Date;return k.map((z,Z)=>{let Y=z.a===-1?-1:z.b>0?Math.round(z.a/z.b*100):0;if(P&&z.a!==-1){const J=Number(P[1]),S=Number(P[2])-1,L=wi(r,new Date(J,S,dn(J,S)+Z*7),D).filter($=>!$.isFuture);Y=L.length?Math.round(L.reduce(($,{entry:F})=>$+(F&&F.b>0?F.a/F.b*100:0),0)/L.length):0}return{...z,a:Y,b:z.a===-1?0:c&&z.parts&&z.parts[1]>0?Math.round(z.parts[0]/z.parts[1]*100):0,rawA:z.a===-1?-1:z.a,rawB:z.b}})},[k,g,c,M.period,M.monthRange,r]),H=i.useMemo(()=>{if(g||f){const P=(M.period==="week"?k:r[M.monthRange]?.daily??[]).filter(z=>z.a!==-1);if(P.length===0)return 0;const D=g?P.reduce((z,Z)=>z+(Z.b>0?Z.a/Z.b*100:0),0):P.reduce((z,Z)=>z+(Z.a>0?Z.a:0),0);return Math.round(D/P.length)}return j.reduce((P,D)=>P+(D.a>0?D.a:0)+(c&&D.b>0?D.b:0),0)},[j,k,g,f,c,M.period,M.monthRange,r]),R=y&&y.length>0?y.map(P=>({color:P.color,label:P.label})):[{color:o,label:v(l)},...c?[{color:s,label:v(c)}]:[]],E=e==="small";return t.jsx(cr,{className:E?"manager-section--compact":e==="large"?"manager-section--full":void 0,title:v(a),titleClassName:E?"h5 chart-section-title--small":void 0,headRight:E?void 0:t.jsxs(t.Fragment,{children:[!m&&t.jsx(_i,{control:M}),_&&t.jsx("span",{className:"manager-bar-chart-detail-btn",children:t.jsx(ne,{size:32,type:"dot",icon:"list",ariaLabel:v("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:_})})]}),subRow:t.jsxs(t.Fragment,{children:[u?g||f||h&&b?t.jsx(ma,{label:E?void 0:`${v(M.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${v(h??l)}`,children:b?(b(H).match(/(\d+|[^\d]+)/g)??[]).map((P,D)=>/\d/.test(P)?t.jsx("span",{className:"barchart-total__num h0",children:P},D):t.jsx("span",{className:"barchart-total__unit h5",children:P},D)):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"barchart-total__num h0",children:H}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:v(d)})]})}):t.jsxs(ma,{children:[t.jsx("span",{className:"barchart-total__num h0",children:H}),t.jsx("span",{className:"barchart-total__unit h5",children:v(l)}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:v(d)})]}):t.jsx("span",{}),t.jsx(lr,{items:R,className:"caption-1"})]}),children:w?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(Qn,{size:32})}):t.jsx(jg,{data:j,colorA:o,colorB:c?s:void 0,labelA:v(l),labelB:c?v(c):void 0,barWidth:n??x.barWidth,height:x.height,maxOverride:g?100:void 0,tightMax:C,seriesColors:y?.map(P=>P.color),seriesLabels:y?.map(P=>P.label),rateLabels:g?{total:v("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:v("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}function Lg(e){if(e.period==="month"){const s=e.monthRange.match(/^(\d+)년 (\d+)월$/),l=new Date,c=s?Number(s[1]):l.getFullYear(),u=s?Number(s[2]):l.getMonth()+1;return{from:new Date(c,u-1,1,0,0,0),to:new Date(c,u,0,23,59,59)}}const n=e.weekRanges.find(s=>s.value===e.weekRange);if(!n){const s=new Date;return{from:s,to:s}}const a=dn(n.year,n.month-1),r=new Date(n.year,n.month-1,a+n.week*7,0,0,0),o=new Date(r);return o.setDate(r.getDate()+6),o.setHours(23,59,59),{from:r,to:o}}const ki={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Ai({done:e,total:n,segments:a,color:r="var(--color-main)",size:o="medium",strokeWidth:s,label:l="%",hideCenter:c=!1,hideLabel:u=!1}){const d=typeof o=="number"?o:ki[o].diameter,h=s??(typeof o=="number"?12:ki[o].strokeWidth),p=d/2,m=(d-h)/2,g=2*Math.PI*m;if(a&&a.length>0){const y=a.reduce((w,_)=>{const v=w.length>0?w[w.length-1].acc:0,B=Math.max(0,Math.min(_.ratio,1-v));return w.push({color:_.color,rotate:-90+v*360,dash:g*B,acc:v+B}),w},[]);return t.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:p,cy:p,r:m,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:h}),y.map((w,_)=>w.dash>0&&t.jsx("circle",{cx:p,cy:p,r:m,fill:"none",stroke:w.color,strokeWidth:h,strokeDasharray:`${w.dash} ${g}`,strokeLinecap:"round",transform:`rotate(${w.rotate} ${p} ${p})`},_))]})})}const C=(n??0)>0?Math.min((e??0)/n,1):0,f=g*C,b=g-f;return t.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:p,cy:p,r:m,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:h}),C>0&&t.jsx("circle",{cx:p,cy:p,r:m,fill:"none",stroke:r,strokeWidth:h,strokeDasharray:`${f} ${b}`,strokeLinecap:C<.02||C>.98?"butt":"round",transform:`rotate(-90 ${p} ${p})`})]}),!c&&t.jsxs("div",{className:`ring-chart__center${u?"":` ${d<=96?"ring-chart__center--small":o==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[t.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:Math.round(C*100)}),!u&&t.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||o==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function $g({titleKey:e,headRight:n,icon:a,showTotal:r,totalLabelKey:o,legend:s,loading:l,className:c,...u}){const{t:d}=pe.useTranslation();if(!e)return t.jsx(Ai,{...u});const h=(u.total??0)>0?Math.round(Math.min((u.done??0)/u.total,1)*100):0,p=u.size==="small",m=u.size==="large",g=[c,p?"manager-section--compact":m?"manager-section--full":""].filter(Boolean).join(" ")||void 0,C=a&&t.jsx("span",{className:"chart-section-icon",children:t.jsx(Oe,{icon:a,className:"chart-section-icon-inner"})});return t.jsx(cr,{className:g,title:d(e),titleClassName:p?"h5 chart-section-title--small":void 0,headRight:C||(p?void 0:n),subRow:(r||s)&&t.jsxs(t.Fragment,{children:[r?t.jsxs(ma,{label:!p&&o?d(o):void 0,children:[t.jsx("span",{className:"barchart-total__num h0",children:h}),t.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):t.jsx("span",{}),s&&t.jsx(lr,{items:s})]}),children:l?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(Qn,{size:32})}):t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx(Ai,{...u,hideCenter:p||u.hideCenter})})})}function Rg({label:e,value:n,change:a,changeType:r,icon:o,tooltip:s,onClick:l}){const c=i.useRef(null),{anchorRect:u,openAt:d,close:h}=da(),p=i.useCallback(()=>{s&&c.current&&d(c.current)},[s,d]),m=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),g=a===void 0?void 0:a>0?`+${a}`:`${a}`,C=i.useCallback(f=>{l&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),l())},[l]);return t.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?C:void 0,onPointerEnter:p,onPointerLeave:h,onFocus:p,onBlur:h,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?`${e} ${n}`:void 0,children:[s&&u&&t.jsx(cn,{anchorRect:{left:u.left,top:u.top+21,right:u.right,bottom:u.bottom,width:u.width,height:u.height},text:s}),t.jsxs("div",{className:"manager-stat-card__label-row",children:[t.jsx("span",{className:"manager-stat-card__label h5",children:e}),o&&t.jsx("span",{className:"manager-stat-card__icon",children:t.jsx(Oe,{icon:o,className:"manager-stat-card__icon-inner"})})]}),t.jsx("div",{className:"manager-stat-card__content",children:t.jsxs("div",{className:"manager-stat-card__left",children:[t.jsx("div",{className:"manager-stat-card__value h2",children:n}),g&&t.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${m??"neutral"} caption-1`,children:g})]})})]})}function Ni({value:e,onChange:n,min:a=0,max:r=100,step:o=1,orientation:s="horizontal",size:l=24,disabled:c=!1,ariaLabel:u,length:d,className:h,label:p,formatValue:m,labelPos:g,labelAlign:C="right",showMinMax:f=!1,minLabel:b,maxLabel:y,showBgTick:w=!1,showFillTick:_=!1,tickStep:v,tickShape:B="dot"}){n&&!u&&Ba("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)),A=r>a?(x-a)/(r-a):0,M=s==="vertical",k=!n,j=F=>n?.(Number(F.target.value)),H=typeof d=="number"?`${d}px`:d,R={"--slider-ratio":String(A),"--slider-thumb":`${l}px`,...H?M?{height:H}:{width:H}:{}},E=v??o,P=(w||_)&&E>0&&r>a?Math.floor((r-a)/E+1e-6):0;if(P>0&&P<=100){const F=B!=="dash",O=le=>F?`radial-gradient(circle, ${le} 0.5px, transparent 1px)`:M?`linear-gradient(to bottom, transparent calc(50% - 2px), ${le} calc(50% - 2px), ${le} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${le} calc(50% - 2px), ${le} calc(50% + 2px), transparent calc(50% + 2px))`,X=F?"2px":"4px",I=[],U=[],q=[];for(let le=0;le<=P;le++){const de=le*E/(r-a);if(de>1+1e-6)break;const Ce=`${((M?1-de:de)*100).toFixed(4)}%`,ve=de<=A+1e-6;if(ve?!_:!w)continue;const he=ve?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";I.push(O(he)),U.push(M?`${X} var(--slider-thumb)`:`var(--slider-thumb) ${X}`),q.push(M?`center ${Ce}`:`${Ce} center`)}I.push(M?"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))"),U.push("100% 100%"),q.push("0 0"),R.backgroundImage=I.join(", "),R.backgroundSize=U.join(", "),R.backgroundPosition=q.join(", "),R.backgroundRepeat="no-repeat"}const D=t.jsx("input",{type:"range",className:ye("slider",`slider--${s}`,k&&"slider--static",!p&&!f&&h),min:a,max:r,step:o,value:x,disabled:c,readOnly:k,tabIndex:k?-1:void 0,"aria-label":u,"aria-orientation":s,onChange:j,style:R});if(!p&&!f)return D;const z=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:b??a}),Z=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:y??r}),Y=f?t.jsxs("div",{className:ye("slider-track-group",`slider-track-group--${s}`,!p&&h),children:[M?Z:z,D,M?z:Z]}):D;if(!p)return Y;const J=g??(M?"bottom":"right"),S=`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`,L=m?m(x):p==="percent"?S:p==="count"?`${x} / ${r}`:String(x),$=t.jsx("span",{className:"slider-wrap__value body-3b",children:L});return t.jsxs("div",{className:ye("slider-wrap",`slider-wrap--${s}`,`slider-wrap--label-${J}`,`slider-wrap--align-${C}`,h),children:[Y,$]})}const Pg=.86,Ig=250,ur=(e,n,a,r)=>{const o=Math.round(Math.min(r,Math.max(a,e-n)));return`${o<0?"-":"+"}${Math.abs(o)} dB`};function dr({analyser:e,audioElement:n,orientation:a="horizontal",length:r,label:o,labelPos:s,labelAlign:l="right",floorDb:c=-60,refDb:u=-35,displayMin:d=-5,displayMax:h=25,className:p,ariaLabel:m}){const g=i.useRef(null),C=i.useRef(null),f=i.useRef(null),[b,y]=i.useState(null);i.useEffect(()=>{const B=e??vm(n)??(b&&b.el===n?b.node:null),x=g.current;if(!B||!x){x?.style.setProperty("--meter-level","0"),C.current&&(C.current.textContent=ur(c,u,d,h));let P=!1;return!e&&n&&oa(n).then(D=>{!P&&D&&y({el:n,node:D})}),()=>{P=!0}}Va();const A=new Float32Array(B.fftSize);let M=0,k=0,j=0,H=0,R=null;const E=P=>{const D=xm(B,A);M=D>M?D:M*Pg;const z=M>1e-5?20*Math.log10(M):-1/0,Z=Math.max(c,z),Y=Z-u,J=Math.min(1,Math.max(0,(Y-d)/(h-d)));if(x.style.setProperty("--meter-level",J.toFixed(3)),C.current&&(k+=Z,j+=1,P-H>=Ig)){const S=k/j;R=R==null?S:R*.6+S*.4,C.current.textContent=ur(R,u,d,h),k=0,j=0,H=P}f.current=requestAnimationFrame(E)};return f.current=requestAnimationFrame(E),()=>{f.current!=null&&cancelAnimationFrame(f.current),f.current=null}},[e,n,b,c,u,d,h]);const w=typeof r=="number"?`${r}px`:r,_=t.jsx("div",{className:"audio-meter__track",style:w?a==="vertical"?{height:w}:{width:w}:{},children:t.jsx("div",{ref:g,className:"audio-meter__fill"})}),v=s??(a==="vertical"?"bottom":"right");return t.jsxs("div",{className:ye("audio-meter",`audio-meter--${a}`,o&&`audio-meter--label-${v}`,o&&`audio-meter--align-${l}`,p),role:"meter","aria-label":m,children:[_,o&&t.jsx("span",{ref:C,className:"audio-meter__value caption-2",children:ur(c,u,d,h)})]})}const Bi=500;function Si({message:e,position:n,duration:a,onClose:r}){const[o,s]=i.useState(!1),[l,c]=i.useState(!1),u=i.useRef(l),d=i.useRef(o);i.useEffect(()=>{u.current=l},[l]),i.useEffect(()=>{d.current=o},[o]);const h=i.useRef(null),p=i.useRef(""),m=i.useRef(r);i.useEffect(()=>{m.current=r});const g=a,C=i.useRef(null),f=i.useRef(0),b=i.useRef(0),y=i.useRef(!1),w=i.useRef(null),_=i.useRef(null),v=i.useRef(null),B=i.useRef(null),x=i.useRef(()=>{});x.current=k=>{k<0||(f.current=Date.now(),b.current=k,C.current=setTimeout(()=>{C.current=null,s(!1),w.current=setTimeout(()=>{c(!1);try{m.current()}catch{}},Bi)},k))};const A=i.useCallback(()=>{y.current||!C.current||(y.current=!0,clearTimeout(C.current),C.current=null,b.current=Math.max(0,b.current-(Date.now()-f.current)))},[]),M=i.useCallback(()=>{y.current&&(y.current=!1,x.current(b.current))},[]);return i.useEffect(()=>{if(e!==p.current&&(C.current&&(clearTimeout(C.current),C.current=null),w.current&&(clearTimeout(w.current),w.current=null)),e){if(d.current)return g>0&&!C.current&&(y.current=!1,x.current(g)),p.current=e,()=>{};const k=()=>{const j=h.current;if(j)try{j.classList.remove("is-visible"),j.style.transition="none",n==="top"?j.style.transform="translateX(-50%) translateY(-16px)":j.style.transform="translateX(-50%) translateY(16px)",j.style.opacity="0",j.offsetWidth,j.style.transition="",j.classList.add("is-visible"),B.current&&clearTimeout(B.current),B.current=setTimeout(()=>{B.current=null;try{j.style.opacity="",j.style.transform="",j.style.transition=""}catch{}},60)}catch{}};u.current?(k(),s(!0)):(c(!0),_.current=requestAnimationFrame(()=>{v.current=requestAnimationFrame(()=>{k(),s(!0)})})),g>0&&(y.current=!1,x.current(g))}else s(!1),w.current=setTimeout(()=>c(!1),Bi);return p.current=e,()=>{C.current&&clearTimeout(C.current),w.current&&clearTimeout(w.current),_.current&&cancelAnimationFrame(_.current),v.current&&cancelAnimationFrame(v.current),B.current&&clearTimeout(B.current),C.current=null,w.current=null,_.current=null,v.current=null,B.current=null}},[e,g,n]),{mounted:l,showing:o,popupRef:h,pause:A,resume:M}}function Tn({message:e="",position:n="top",type:a="normal",onClose:r=()=>{},duration:o=2e3}){const{mounted:s,showing:l,popupRef:c,pause:u,resume:d}=Si({message:e,position:n,duration:o,onClose:r});if(!s)return null;const h=a==="notice"||a==="warning"?a:"normal",p=t.jsx("div",{ref:c,className:`toast toast--${n} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onMouseEnter:u,onMouseLeave:d,onFocusCapture:u,onBlurCapture:d,children:t.jsx("div",{className:`toast__inner toast__inner--${h} body-2`,children:e})});return typeof document<"u"?Pt.createPortal(p,document.body):p}const Fg=24;function Og({value:e,max:n=100,size:a=8,color:r,trackColor:o,label:s,formatValue:l,labelPos:c,labelAlign:u="right",ariaLabel:d,className:h}){const p=Number.isFinite(n)&&n>0?n:1,m=Math.max(0,Math.min(Number.isFinite(e)?e:0,p)),g=m/p*100,C=c??(a>=Fg?"inside":"bottom"),f=C==="center"?"inside":C,b=f==="inside"&&(u==="left"?g>=15:u==="center"?g>=50:g>=85),y={};return r&&(y["--progress-bar-fill"]=r),o&&(y["--progress-bar-track"]=o),t.jsxs("div",{className:ye("progress-bar",`progress-bar--${a}`,`progress-bar--label-${f}`,s&&`progress-bar--align-${u}`,s&&b&&"progress-bar--label-on-fill",h),style:y,children:[t.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":m,"aria-valuemin":0,"aria-valuemax":p,"aria-label":d,children:t.jsx("div",{className:"progress-bar__fill",style:{width:`${g}%`}})}),s&&t.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(m):s==="percent"?`${Math.round(g)}%`:s==="raw"?String(m):`${m} / ${p}`})]})}const Hg="rgba(255, 255, 255, 0.16)";function Di({max:e,index:n,inactiveBg:a,inactiveColor:r,transparent:o,variant:s="numbered",announce:l=!1,ariaLabel:c}){const{t:u}=pe.useTranslation(),d=Xt("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const h=Number.isInteger(n)?Math.max(0,Math.min(n,e-1)):0,p=c??u("progress.steps",{current:h+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),m={};return a&&(m["--pi-inactive-bg"]=a),r&&(m["--pi-inactive-color"]=r),o&&(a||(m["--pi-inactive-bg"]=Hg),r||(m["--pi-inactive-color"]="var(--color-white)")),s==="dot"?t.jsx("div",{className:"progress-indicator progress-indicator--dot",style:m,role:l?"status":"img","aria-label":p,children:Array.from({length:e}).map((g,C)=>t.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${C<h?" done":C===h?" active":""}`},C))}):d?t.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:m,role:"list","aria-label":p,children:t.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[h+1," / ",e]})}):t.jsx("div",{className:"progress-indicator",style:m,role:"list","aria-label":p,children:Array.from({length:e}).map((g,C)=>t.jsx("span",{role:"listitem","aria-current":C===h?"step":void 0,className:`progress-indicator-dot ${C<h?" done":C===h?" active":""} body-3`,children:C+1},C))})}function Vg(e){if(!e)return[];const n=[];let a=0,r="";for(const o of e.trim()){if(o==="("?a++:o===")"&&a--,/\s/.test(o)&&a===0){r&&(n.push(r),r="");continue}r+=o}return r&&n.push(r),n}function zg({children:e,className:n,style:a}){return t.jsx("div",{className:n?`table-cell ${n}`:"table-cell",style:a,children:e})}function pr({variant:e="default",children:n,className:a,draggable:r,onClick:o,onMouseEnter:s,onMouseLeave:l,onDragStart:c,onDragEnd:u,expandedContent:d}){const h=i.useCallback(p=>{o&&p.target===p.currentTarget&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),o())},[o]);return e==="loading"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--loading",children:t.jsx(Qn,{size:28})})}):e==="empty"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--empty body-3",children:n})}):t.jsxs("div",{className:"table-row-wrap",children:[t.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:o,onKeyDown:o?h:void 0,onMouseEnter:s,onMouseLeave:l,onDragStart:c,onDragEnd:u,role:o?"button":void 0,tabIndex:o?0:void 0,children:n}),d&&t.jsx("div",{className:"table-row-expand",children:d})]})}function Wg({dir:e}){return t.jsx(e==="asc"?mo:ho,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function qg({children:e,onClick:n,className:a,sortDir:r,onResizeStart:o}){const s=i.useCallback(l=>{n&&l.target===l.currentTarget&&(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),n())},[n]);return t.jsxs("div",{onClick:n,onKeyDown:n?s:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,"aria-sort":r?r==="asc"?"ascending":"descending":void 0,className:ye("table-field body-3",a,r?"table-field--sorted":"",o?"table-field--resizable":""),children:[e,r&&t.jsx(Wg,{dir:r}),o&&t.jsx("span",{className:"table-field__resizer",onPointerDown:o,onClick:l=>l.stopPropagation(),"aria-hidden":"true"})]})}function hr({fields:e=[],headerGroups:n,items:a=[],renderRow:r,onRowClick:o,onRowMouseEnter:s,onRowMouseLeave:l,onRowDragStart:c,onRowDragEnd:u,draggingId:d,gridTemplateColumns:h,resizable:p=!1,resizeMode:m="grow",resizeStorageKey:g,size:C="small",title:f,icon:b,count:y,collapsed:w=!1,onToggleCollapse:_,headerActions:v,empty:B,loading:x,dragOver:A=!1,onDragOver:M,onDragLeave:k,onDrop:j,renderExpandedRow:H,expandedId:R}){const{t:E}=pe.useTranslation(),P=48,D=g?`table-cols:${g}`:null,z=i.useRef(null),Z=i.useRef(()=>!1),Y=i.useRef([]),J=i.useRef(null),[S,L]=i.useState(()=>{if(!D||typeof window>"u")return null;try{const T=JSON.parse(window.localStorage.getItem(D)??"null");return Array.isArray(T)&&T.every(W=>typeof W=="number")?T:null}catch{return null}}),$=i.useRef(S);i.useEffect(()=>{$.current=S},[S]);const F=i.useCallback(T=>{const W=J.current;W&&L(Q=>{if(!Q)return Q;const _e=[...Q];if(W.next!=null&&W.startWNext!=null){const ue=T.clientX-W.startX,ie=Math.max(P-W.startW,Math.min(W.startWNext-P,ue));_e[W.index]=W.startW+ie,_e[W.next]=W.startWNext-ie}else _e[W.index]=Math.max(P,W.startW+(T.clientX-W.startX));return _e})},[]),O=i.useCallback(()=>{if(J.current=null,window.removeEventListener("pointermove",F),window.removeEventListener("pointerup",O),document.body.style.cursor="",document.body.style.userSelect="",D&&$.current)try{window.localStorage.setItem(D,JSON.stringify($.current))}catch{}},[F,D]),X=i.useCallback((T,W)=>{W.preventDefault(),W.stopPropagation();const Q=z.current;if(!Q)return;const _e=Array.from(Q.children).map(ie=>ie.getBoundingClientRect().width),ue=m==="fit"?e.findIndex((ie,ae)=>ae>T&&ie.resizable!==!1):-1;J.current=ue>=0?{index:T,startX:W.clientX,startW:_e[T],next:ue,startWNext:_e[ue]}:{index:T,startX:W.clientX,startW:_e[T]},L(_e),window.addEventListener("pointermove",F),window.addEventListener("pointerup",O),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[F,O,m,e]),I=i.useCallback(()=>{const T=z.current,W=T?.closest(".table-wrap");if(!T||!W)return;const Q=W.style.getPropertyValue("--table-grid-cols");W.style.setProperty("--table-grid-cols",e.map((Re,Ee)=>Z.current(Ee)?Y.current[Ee]:"max-content").join(" "));const _e=Array.from(W.querySelectorAll(".table-row")).filter(Re=>!Re.classList.contains("table-row--loading")&&!Re.classList.contains("table-row--empty")),ue=e.map((Re,Ee)=>{let je=T.children[Ee]?.getBoundingClientRect().width??0;for(const Ae of _e){const ze=Ae.children[Ee];ze&&(je=Math.max(je,ze.getBoundingClientRect().width))}return Math.max(P,Math.ceil(je))}),ie=window.getComputedStyle(T),ae=T.clientWidth-(parseFloat(ie.paddingLeft)||0)-(parseFloat(ie.paddingRight)||0);Q?W.style.setProperty("--table-grid-cols",Q):W.style.removeProperty("--table-grid-cols");let se=ue;const Se=ue.reduce((Re,Ee,je)=>Re+(Z.current(je)?Ee:0),0),He=ue.reduce((Re,Ee,je)=>Re+(Z.current(je)?0:Ee),0),Ve=ae-Se;if(ae>0&&He>0&&Ve>0){const Re=Ve/He;se=ue.map((je,Ae)=>Z.current(Ae)?je:Math.max(P,Math.round(je*Re)));const Ee=Math.round(Ve-se.reduce((je,Ae,ze)=>je+(Z.current(ze)?0:Ae),0));if(Ee!==0){let je=-1;se.forEach((Ae,ze)=>{!Z.current(ze)&&(je<0||Ae>se[je])&&(je=ze)}),je>=0&&(se[je]=Math.max(P,se[je]+Ee))}}if(L(se),D)try{window.localStorage.setItem(D,JSON.stringify(se))}catch{}},[e,m,D]);i.useEffect(()=>()=>{J.current&&(window.removeEventListener("pointermove",F),window.removeEventListener("pointerup",O),document.body.style.cursor="",document.body.style.userSelect="")},[F,O]);const U=Vg(h),q=U.filter(T=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(T));q.length>0&&Ba(`table-content-track:${h}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${q.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: ${h})`);const le=T=>/^\d+(\.\d+)?px$/.test(U[T]??"");Z.current=le,Y.current=U;const de=T=>m==="fit"&&!le(T)?"fr":"px",Ce=S&&S.length===e.length&&(m==="fit"||a.length>0)?e.map((T,W)=>T.resizable===!1&&U[W]?U[W]:`${S[W]}${de(W)}`).join(" "):h,ve=Ce?{"--table-grid-cols":Ce}:void 0,he=f!==void 0;return t.jsx("div",{className:`table-wrap table-wrap--${C}${p?" table-wrap--resizable":""}${A?" table-wrap--dragover":""}${w?" table-wrap--collapsed":""}`,style:ve,onDragOver:M,onDragLeave:k,onDrop:j,children:t.jsxs("div",{className:"table body-2",children:[he&&t.jsxs("div",{className:"table-header",onClick:_,role:_?"button":void 0,tabIndex:_?0:void 0,"aria-expanded":_?!w:void 0,onKeyDown:_?T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),_())}:void 0,children:[_&&t.jsx(ne,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:w?"chevron-right":"chevron-down",ariaLabel:w?E("common.expand","\uD3BC\uCE58\uAE30"):E("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),b&&t.jsx(Oe,{icon:b,label:typeof f=="string"?f:void 0,className:"table-header__icon"}),t.jsx("span",{className:"table-header__title h5b",children:f}),y!==void 0&&t.jsx("span",{className:"table-header__count body-3b",children:y}),v&&t.jsx("span",{className:"table-header__actions",onClick:T=>T.stopPropagation(),children:v})]}),!w&&t.jsxs(t.Fragment,{children:[n&&n.length>0&&t.jsx("div",{className:"table-fields table-fields--groups",children:n.map((T,W)=>t.jsx("div",{className:ye("table-field body-3",T.className),style:{gridColumn:`span ${T.span}`},children:T.label},W))}),t.jsxs("div",{className:ye("table-fields-strip",p&&"table-fields-strip--resizable"),children:[t.jsx("div",{className:"table-fields",ref:z,children:e.map((T,W)=>t.jsx(qg,{onClick:T.onClick,className:T.className,sortDir:T.sortDir,onResizeStart:p&&W<e.length-1&&T.resizable!==!1&&(m!=="fit"||e.some((Q,_e)=>_e>W&&Q.resizable!==!1))?Q=>X(W,Q):void 0,children:T.label},W))}),p&&t.jsx(ne,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:I})]}),t.jsx("div",{className:"table-body",children:x?t.jsx(pr,{variant:"loading"}):a.length===0&&B?t.jsx(pr,{variant:"empty",children:B}):a.map((T,W)=>{const Q=d!=null&&T.id===d,_e=R!=null&&(R instanceof Set?R.has(T.id):T.id===R);return t.jsx(pr,{className:`${o?" table-row--clickable":""}${c?" table-row--draggable":""}${Q?" table-row--dragging":""}`.trim(),draggable:!!c,onClick:o?()=>o(T):void 0,onMouseEnter:s?ue=>s(T,ue):void 0,onMouseLeave:l?ue=>l(T,ue):void 0,onDragStart:c?ue=>c(T,ue):void 0,onDragEnd:u?ue=>u(T,ue):void 0,expandedContent:_e&&H?H(T):void 0,children:r(T).map((ue,ie)=>t.jsx(zg,{className:ue.className,style:ue.style,children:ue.content},ie))},String(T.id??W))})})]})]})})}function ji(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}function Ei(e,n){return n!=="wornAt"?String(e[n]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function Ug({rows:e,onSelect:n,onDelete:a,onWear:r,onRelease:o,onAdd:s}){const{t:l}=pe.useTranslation(),c=C=>C==="\uC88C"?l("device.direction.left","\uC88C"):l("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:d}=v0(),h=i.useMemo(()=>{if(!u)return e;const{key:C,asc:f}=u;return[...e].sort((b,y)=>{const w=C==="worn"?Number(y.worn)-Number(b.worn):Ei(b,C).localeCompare(Ei(y,C),"ko");return f?w:-w})},[e,u]),{pageRows:p,pageSizeProps:m,paginationProps:g}=y0(h,u);return t.jsxs("div",{className:"dlp-side-table",children:[t.jsx(ir,{count:{value:e.length,unit:l("customers.device.unit","\uAC1C")},pageSize:m,pagination:g,actions:s&&t.jsx(ne,{size:40,type:"bar",variant:"main",icon:"plus",label:l("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:s})}),t.jsx(hr,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...d(l("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},d(l("device.direction.label","\uBC29\uD5A5"),"side"),d(l("device.deviceType","\uC885\uB958"),"device"),d(l("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),d(l("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),d(l("device.productName","\uC81C\uD488\uBA85"),"productName"),d(l("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:p.map((C,f)=>({id:C.id??`${C.side}-${f}`,row:C})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:C})=>[{content:t.jsx("span",{className:"dlp-worn-check",onClick:f=>f.stopPropagation(),children:t.jsx(gi,{checked:C.worn,disabled:!r||!o,ariaLabel:C.worn?l("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):l("customers.device.wear","\uCC29\uC6A9"),onChange:f=>{f?r?.(C):o?.(C)}})})},{content:t.jsx("span",{children:c(C.side)})},{content:C.device?t.jsx(lt,{size:"small",variant:ji(C.device),fill:"soft",label:C.device}):t.jsx("span",{})},{content:t.jsx("span",{children:C.brand})},{content:t.jsx("span",{children:C.fitType||"-"})},{content:t.jsx("span",{children:C.productName||"-"})},{content:t.jsx("span",{className:"dlp-date",children:C.wornYear?`${C.wornYear}.${C.wornMonth}.${C.wornDay}`:"-"})},...a?[{content:t.jsx("span",{className:"dlp-row-actions",children:t.jsx(ne,{size:28,type:"bar",variant:"transparent-gray",label:l("common.delete","\uC0AD\uC81C"),onClick:f=>{f?.stopPropagation(),a(C)}})})}]:[]],onRowClick:({row:C})=>n(C),empty:l("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function Ti(e,n){return e?{role:n?.role??"button",tabIndex:0,...n?.selected===void 0?{}:{"aria-selected":n.selected},onKeyDown:a=>{a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a))}}:{}}function Gg(e,n){return new Date(e,n+1,0).getDate()}function Kg(e,n){return new Date(e,n,1).getDay()}function Zg({visits:e=[],onVisitClick:n,onVisitMove:a,onDayClick:r}){const{t:o}=pe.useTranslation(),s=i.useMemo(()=>o("calendar.dow",{returnObjects:!0}),[o]),[l,c]=i.useState(new Date().getFullYear()),[u,d]=i.useState(new Date().getMonth()),[h,p]=i.useState(null),m=i.useRef(null),g=new Date,C=i.useMemo(()=>{const v={};return e.forEach(B=>{v[B.date]||(v[B.date]=[]),v[B.date].push(B)}),v},[e]),f=i.useMemo(()=>{const v=Gg(l,u),B=Kg(l,u),x=[];for(let A=0;A<B;A++)x.push(null);for(let A=1;A<=v;A++)x.push(A);for(;x.length<35;)x.push(null);return x},[l,u]),b=i.useCallback(()=>{u===0?(c(v=>v-1),d(11)):d(v=>v-1)},[u]),y=i.useCallback(()=>{u===11?(c(v=>v+1),d(0)):d(v=>v+1)},[u]),w=v=>`${l}-${String(u+1).padStart(2,"0")}-${String(v).padStart(2,"0")}`,_=v=>g.getFullYear()===l&&g.getMonth()===u&&g.getDate()===v;return t.jsxs("div",{children:[t.jsxs("div",{className:"calendar-nav",children:[t.jsx("button",{className:"calendar-nav__button",onClick:b,"aria-label":o("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(Oe,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsx("span",{className:"calendar-nav__title h5",children:o("calendar.yearMonth",{year:l,month:u+1})}),t.jsx("button",{className:"calendar-nav__button",onClick:y,"aria-label":o("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(Oe,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsxs("div",{className:"calendar-nav__legend",children:[t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.visited","\uBC29\uBB38")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.scheduled","\uC608\uC57D")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),t.jsxs("div",{className:"calendar-grid",children:[s.map(v=>t.jsx("div",{className:"calendar-day-header body-3",children:v},v)),f.map((v,B)=>{if(v===null)return t.jsx("div",{className:"calendar-cell empty"},`empty-${B}`);const x=v,A=w(x),M=C[A]??[],k=h===A;return t.jsxs("div",{className:`calendar-cell${_(x)?" today":""}${k?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?o("calendar.addOnDate",{date:A}):void 0,onClick:r?()=>r(A):void 0,onKeyDown:r?j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),r(A))}:void 0,onDragOver:a?j=>{j.preventDefault(),p(A)}:void 0,onDragLeave:a?j=>{j.currentTarget.contains(j.relatedTarget)||p(null)}:void 0,onDrop:a?j=>{j.preventDefault(),m.current!=null&&(a(m.current,A),m.current=null),p(null)}:void 0,children:[t.jsx("div",{className:"calendar-cell__number body-3",children:x}),t.jsx("div",{className:"calendar-cell__badges",children:M.map((j,H)=>t.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${j.status==="noVisit"?" calendar-visit-badge--no-visit":j.status==="scheduled"?" calendar-visit-badge--scheduled":""}${n?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?R=>{m.current=j.id,R.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{m.current=null,p(null)}:void 0,onClick:n?R=>{R.stopPropagation(),n(j)}:void 0,...Ti(n?()=>n(j):void 0),"aria-label":[j.time?as(j.time,o):null,j.customer,o(j.status==="noVisit"?"calendar.legend.noVisit":j.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[j.time&&t.jsx("span",{className:"calendar-visit-badge__time body-3",children:as(j.time,o)}),t.jsx("span",{className:"calendar-visit-badge__name body-3",children:j.customer}),j.status==="noVisit"&&t.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},j.id??H))})]},x)})]})]})}const Yg={page:"h3",pagePopup:"h4",popup:"h5"};function Mn({type:e="page",title:n,icon:a,action:r,disc:o,children:s,className:l,style:c}){const u=Yg[e],d=n||o;return t.jsxs("div",{className:ye("section",`section--${e}`,l),style:c,children:[d&&t.jsxs("div",{className:"section__header",children:[t.jsxs("div",{className:"section__title-row",children:[a&&t.jsx(Oe,{icon:a,label:typeof n=="string"?n:void 0,className:"section__icon"}),t.jsxs("div",{className:"section__title-group",children:[n&&t.jsx("div",{className:`section__title ${u}`,children:n}),o&&t.jsx("div",{className:"section__disc body-3",children:o})]})]}),r&&t.jsx("div",{className:"section__action",children:r})]}),s]})}function Mi({icon:e,label:n,tooltip:a,wrapperStyle:r,color:o,bgColor:s,useHover:l=!0,iconSize:c="medium"}){const u=c==="small",d=ye("category-icon",u?"category-icon--small":""),h=u?16:20,p=i.useRef(null),[m,g]=i.useState(!1),C=i.useMemo(()=>{const x=r&&typeof r=="object"?{...r}:{};return!o&&!s?x:{...x,...o?{color:o,"--t-item-fg":o}:{},...s?{"--t-item-bg":s}:{}}},[r,o,s]),f=a||n,[b,y]=i.useState(null);i.useLayoutEffect(()=>{m&&y(p.current?.getBoundingClientRect()??null)},[m]),i.useEffect(()=>{if(!l&&m)try{g(!1)}catch{}},[l,m]),i.useEffect(()=>{if(!m)return;const x=A=>{const M=p.current;if(!M)return;const k=A.target;k&&!M.contains(k)&&g(!1)};return document.addEventListener("pointerdown",x,!0),()=>document.removeEventListener("pointerdown",x,!0)},[m]);const w=i.useCallback(()=>{l&&g(!0)},[l]),_=i.useCallback(()=>{l&&g(!1)},[l]),v=i.useCallback(()=>g(!1),[]),B=i.useCallback(x=>{if(x.key==="Escape"){g(!1);return}(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),g(A=>!A))},[]);return t.jsxs("span",{ref:p,className:"category-icon__wrap",onPointerEnter:w,onPointerLeave:_,onFocus:w,onBlur:_,onKeyDown:B,role:"button",tabIndex:0,"aria-label":typeof f=="string"?f:void 0,"aria-haspopup":!!f,"aria-expanded":m,"data-tooltip-ignore":!0,children:[t.jsx(Oe,{icon:e,label:n,className:d,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:C,size:h}),m&&f&&t.jsx(cn,{anchorRect:b,text:typeof f=="string"?f:void 0,offset:8,onClose:v,className:"category-icon__tooltip",ariaLabel:typeof f=="string"?f:void 0})]})}function Xg(e,n){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(n==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(n==="SHORT_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(n==="LONG_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(n==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}const o=a.sentences||a.items||[],s=r(Array.isArray(o)?o:[]);return s.length===0&&(a.contextCode||a.context_code)&&s.push(String(a.contextCode||a.context_code)),{previewCodes:s,previewBucket:null}}function Jg(e,n){const[a,r]=i.useState(!1),[o,s]=i.useState(-1),[l,c]=i.useState([]),u=i.useRef(null),d=i.useRef(!1),h=i.useRef(null),[p,m]=i.useState(!1),g=i.useRef([]),{previewCodes:C,previewBucket:f}=Xg(e,n);i.useEffect(()=>{if(!C.length)return;let y=!1;return(async()=>{const w=[],_=[];for(const v of C)try{const B=Fo(v,f);if(!B){w.push("");continue}let x=null;try{x=await Oo(B)}catch{}if(!x)try{const A=await Ho(B);A&&(x=URL.createObjectURL(A),_.push(x))}catch{}w.push(x??"")}catch{w.push("")}y?_.forEach(v=>{try{URL.revokeObjectURL(v)}catch{}}):(g.current.forEach(v=>{try{URL.revokeObjectURL(v)}catch{}}),g.current=_,c(w))})(),()=>{y=!0}},[C.join(","),f]),i.useEffect(()=>()=>{g.current.forEach(y=>{try{URL.revokeObjectURL(y)}catch{}}),g.current=[]},[]);const b=i.useCallback(async y=>{if(y.stopPropagation(),y.preventDefault(),d.current){d.current=!1;try{u.current?.pause()}catch{}r(!1),s(-1);return}if(l.filter(Boolean).length){d.current=!0,r(!0);for(let w=0;w<l.length&&d.current;w++){const _=l[w];if(_){s(w);try{await new Promise((v,B)=>{const x=new Audio(_);u.current=x,x.onended=()=>v(),x.onerror=()=>B(),x.play().catch(B)})}catch{break}}}d.current=!1,r(!1),s(-1)}},[l]);return i.useEffect(()=>()=>{d.current=!1;try{u.current?.pause()}catch{}u.current=null},[]),{playing:a,playingIndex:o,previewUrls:l,previewHover:p,setPreviewHover:m,previewBtnRef:h,handlePreview:b}}const Qg=e=>{if(!e)return[];const n=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(n)return[String(n)];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 o=r;return o.sentence||o.text||o.context||o.question||o.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function mr(e){const{index:n,type:a,trainingData:r,ariaLabel:o,depth:s,renderPopup:l,completed:c,completedIds:u,selectedIds:d,tooltipText:h,useDescriptionTooltip:p=!1,onRemove:m,hideCheckBadge:g=!1,showTypeLabel:C=!1,onComplete:f,onSelect:b,onMore:y,countLabelOverride:w,size:_="square"}=e||{},{t:v}=pe.useTranslation(),[B,x]=i.useState(!1),A=i.useRef(null),[M,k]=i.useState(!1);i.useEffect(()=>{A.current?.matches(":hover")&&k(!0)},[]);const{playing:j,playingIndex:H,previewUrls:R,previewHover:E,setPreviewHover:P,previewBtnRef:D,handlePreview:z}=Jg(r,a?.key),Z=i.useCallback(()=>{b?b():x(!0)},[b]),Y=i.useCallback(()=>x(!1),[]),J=i.useCallback(()=>k(!0),[]),S=i.useCallback(()=>k(!1),[]),L=i.useCallback(()=>P(!0),[P]),$=i.useCallback(()=>P(!1),[P]),[F,O]=i.useState(null);i.useLayoutEffect(()=>{E&&O(D.current?.getBoundingClientRect()??null)},[E,D]);const[X,I]=i.useState(null);i.useLayoutEffect(()=>{M&&!B&&p&&I(A.current?.getBoundingClientRect()??null)},[M,B,p]);const U=i.useCallback(ge=>{(ge.key==="Enter"||ge.key===" ")&&(ge.preventDefault(),Z())},[Z]),q=r||null,le=i.useMemo(()=>{if(!p)return null;const ge=h?(Array.isArray(h)?h:[h]).filter(Boolean):null,Pe=ge&&ge.length>0?ge:Qg(q);return Pe&&Pe.length>0?Pe:null},[p,h,q]),de=i.useCallback(ge=>{ge.stopPropagation(),m?.()},[m]),Ce=i.useCallback(ge=>ge.stopPropagation(),[]),ve=i.useCallback(ge=>{typeof f=="function"&&f(ge)},[f]),he=c||(u&&r?.id!=null?u.has(String(r.id)):!1),T=!he&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);Fs("speechear.popup.close",Y);const W=rs(),Q=`${a?.label||""} ${n+1}`,_e=q?.title||q?.name||Q;let ue=a?.icon,ie,ae="",se="";try{const ge=q?.category_0||q?.category_main_code||q?.category_main,Pe=q?.category_1||q?.category_sub_code||q?.category_sub,$e=W.find(Ke=>Ke.key===ge);$e?.icon&&(ue=$e.icon),!ie&&$e?.color&&(ie={"--t-item-fg":$e.color}),!ie&&q?.iconColor&&(ie={"--t-item-fg":q.iconColor}),ae=$e?.label||"";try{se=$e?.subs?.find(Ke=>Ke.key===Pe)?.label||""}catch{}}catch{}const Se=se?`${ae} / ${se}`:ae||a?.label||_e,He=ge=>v("training.countQuestions",{n:ge}),Ve=ge=>v("training.countSentences",{n:ge});let Re="";try{if(q)if(a?.key==="LISTEN_IN_NOISE"){let ge=0;Array.isArray(q.items)&&q.items.length>0?ge=q.items.length:Array.isArray(q.sentences)&&q.sentences.length>0?ge=q.sentences.length:q.sentences&&(ge=1),Re=Ve(ge)}else if(a?.key==="SHORT_STORY"){let ge=1;Array.isArray(r?.items)?ge=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?ge=r.raw.items.length:Array.isArray(q?.questions)?ge=q.questions.length:Array.isArray(q?.sentences)&&(ge=q.sentences.length),Re=He(ge)}else if(a?.key==="LONG_STORY"){let ge=1;if(Array.isArray(q.items)&&q.items.length>0){const Pe=q.items.reduce(($e,Ke)=>{const Ze=Ke.questionItems;return Array.isArray(Ze)?$e+Ze.length:Array.isArray(Ke.questions)?$e+Ke.questions.length:$e},0);ge=Pe>0?Pe:q.items.length}else Array.isArray(q.questions)&&q.questions.length>0?ge=q.questions.length:Array.isArray(q.sentences)&&q.sentences.length>0&&(ge=q.sentences.length);Re=He(ge)}else if(a?.key==="ORDERING_SENTENCE"){let ge=1;Array.isArray(q.items)&&q.items.length>0?ge=q.items.length:Array.isArray(q.sentences)&&q.sentences.length>0&&(ge=q.sentences.length),Re=Ve(ge)}else Array.isArray(q.items)&&(Re=q.items.length>0?He(q.items.length):"")}catch{}const Ee=_==="list",je=_==="compact",Ae=_==="small",ze=Ae&&a?.key?Qm().find(ge=>ge.key===a.key)?.label??"":"",at=!!C&&!!a?.label&&a.label!==String(_e)||Ae&&!!ze&&ze!==String(_e);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:A,className:`training-block-button${Ee?" training-block-button--list":""}${je?" training-block-button--compact":""}${Ae?" training-block-button--small":""}${he?" training-block-button--completed":""}${T?" training-block-button--selected":""}${at&&!Ae?" training-block-button--withType":""}${Ae&&!at?" training-block-button--no-type-label":""}`,onClick:Z,onPointerEnter:J,onPointerLeave:S,role:"button",tabIndex:0,onKeyDown:U,"aria-label":typeof o=="string"?o:typeof _e=="string"?_e:void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[C&&a?.label&&a.label!==String(_e)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ae&&ze&&ze!==String(_e)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:ze}),t.jsx(Mi,{icon:ue,label:_e,tooltip:Se,wrapperStyle:ie,iconSize:Ae||je?"small":"medium"}),!g&&(he||T)&&!(m&&M)&&t.jsx(lt,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":he?v("training.completed","\uD6C8\uB828 \uC644\uB8CC"):v("training.selected","\uC120\uD0DD\uB428")}),m&&M&&t.jsx(lt,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":v("common.remove","\uC81C\uAC70"),onClick:de}),t.jsx("div",{className:`training-block-button__title ${je?"body-3":Ae?"body-3b":"h3"}`,children:String(_e)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const ge=w!==void 0?w:Re;return ge?t.jsx("div",{className:`training-block-button__count ${Ae?"caption-2":"caption-1"}`,children:ge}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(Oe,{icon:"chevron-right",label:v("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:Ae?12:20})})]}),(Ee||Ae)&&R.length>0&&t.jsx("div",{ref:D,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:Ce,onPointerEnter:L,onPointerLeave:$,children:t.jsx(ne,{size:Ae?28:32,type:"dot",icon:j?"pause":"play",variant:Ae?"transparent-lightGray":"default",useBorder:!1,selected:j,ariaLabel:j?v("training.stop","\uC815\uC9C0"):v("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:z})})]}),y&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:ge=>{ge.stopPropagation(),y(ge)},children:t.jsx(ne,{size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:v("common.more","\uB354\uBCF4\uAE30")})})]}),E&&t.jsx(cn,{anchorRect:F,text:j?v("training.stop","\uC815\uC9C0"):v("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:$}),M&&!B&&p&&(le?t.jsx(_n,{anchorRect:X,items:le,activeIndex:H,onClose:S}):q?.subTitle?t.jsx(cn,{anchorRect:X,text:q.subTitle,offset:8,onClose:S}):null),B&&l&&l({trainingData:q,typeKey:a?.key??"",onClose:Y,onComplete:ve,popupTitle:String(_e),popupSubTitle:a?.subTitle,depth:s!=null?String(s):void 0,popupIcon:ue,popupIconTooltip:String(Se),popupWrapperStyle:ie})]})}const fa=20;function e4(e){const{t:n}=pe.useTranslation(),{type:a,trainingDatas:r,depth:o,renderPopup:s,completedIds:l,selectedIds:c,onItemComplete:u,size:d,useDescriptionTooltip:h,onRemove:p,onMore:m,sectionType:g="page"}=e||{},[,C]=i.useState(0),f=typeof r<"u"?Array.isArray(r)?r:[]:[],b=f.length,[y,w]=i.useState(Math.min(b,fa)),_=i.useMemo(()=>Array.isArray(o)?[...o,a?.label].filter(Boolean).join(" \xB7 "):[o||"",a?.label].filter(Boolean).join(" \xB7 "),[o,a?.label]);i.useEffect(()=>{w(Math.min(b,fa))},[b]),Fs("speechear.data.updated",()=>C(B=>B+1));function v(){w(B=>Math.min(b,B+fa))}return t.jsxs(Mn,{type:g,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[t.jsx("div",{className:"training-list",children:(f||[]).slice(0,y).map((B,x)=>{const A=B;return t.jsx(mr,{index:x,type:a,trainingData:A,depth:_,renderPopup:s,completedIds:l,selectedIds:c,size:d,useDescriptionTooltip:h,onRemove:typeof p=="function"&&c!=null&&A?.id!=null&&c.has(String(A.id))?()=>p(A):void 0,onComplete:typeof u=="function"&&A?.id!=null?()=>u(String(A.id)):void 0,onMore:typeof m=="function"?M=>m(A,M):void 0},A?.id!=null?`${a?.key||"t"}-${String(A.id)}`:`${a?.key||"t"}-${x}`)})}),b>fa&&y<b&&t.jsx("div",{className:"training-block__more",children:t.jsx(ne,{size:48,type:"bar",icon:"plus",onClick:v,ariaLabel:n("common.loadMore","\uB354\uBCF4\uAE30"),label:n("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function fr(e){const n=i.useRef(null),[a,r]=i.useState(!!e),[o,s]=i.useState(!1);i.useEffect(()=>{s(!1);const u=n.current;r(!!e&&!(u?.complete&&u.naturalWidth>0))},[e]);const l=i.useCallback(()=>r(!1),[]),c=i.useCallback(()=>{r(!1),s(!0)},[]);return{imgRef:n,loading:a,failed:o,hasImage:!!e&&!o,onLoad:l,onError:c}}let Ln=null;function t4(e){if(Ln&&Ln!==e)try{Ln()}catch{}return Ln=e,()=>{Ln===e&&(Ln=null)}}var n4='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 a4=n4,Cr=i.forwardRef(function({item:e,disabled:n=!1,onPlayDone:a,selectable:r=!1,selected:o=!1,onSelect:s,flipDelay:l=0,hideLabel:c=!1,hideAudio:u=!1,orderRank:d=null},h){const{t:p}=pe.useTranslation(),m=e.word||e.title||"",g=n||!m,C=e.audio??e.sound??e.audioKey,f=e.subLabel||e.pronunciation||"",b=e.colloquialLabel||"",[y,w]=i.useState({label:m,subLabel:f,colloquialLabel:b,homonum:e.homonum});m&&y.label!==m&&w({label:m,subLabel:f,colloquialLabel:b,homonum:e.homonum});const _=i.useRef(null),v=Xt("(max-width: 767px)"),[B,x]=i.useState(!1),[A,M]=i.useState(""),k=Dn()?.(y.label,y.homonum)??e.image??"",{imgRef:j,loading:H,hasImage:R,onLoad:E,onError:P}=fr(k);i.useEffect(()=>{let L=!1;return(async()=>{if(C){if(typeof C=="string"){if(C.startsWith("http")||C.includes("/")){M(C);return}}else if(typeof C=="object"&&!Array.isArray(C)){const F=C.src;if(F){M(F);return}}}const $=Fa();if($&&m)try{const F=await Promise.resolve($(m));!L&&F&&M(F)}catch{}})(),()=>{L=!0}},[C,m]),i.useEffect(()=>()=>{try{_.current?.pause()}catch{}_.current=null},[]);const D=i.useCallback(()=>new Promise(L=>{if(typeof window<"u"&&window.speechSynthesis&&m){x(!0),window.speechSynthesis.cancel();const $=new SpeechSynthesisUtterance(m);$.lang="ko-KR",$.onend=()=>{x(!1);try{a?.()}catch{}L()},$.onerror=()=>{x(!1),L()},window.speechSynthesis.speak($)}else L()}),[m,a]),z=i.useCallback(L=>new Promise($=>{let F=!1;const O=()=>{F||(F=!0,x(!1),$(!1))};try{const X=new Audio(L);_.current=X,X.onended=()=>{if(!F){F=!0,x(!1);try{a?.()}catch{}$(!0)}},X.onerror=O,X.play().catch(O)}catch{O()}}),[a]),Z=i.useCallback(async()=>{if(n)return;const L=t4(()=>{try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1)});try{window.speechSynthesis?.cancel()}catch{}try{if(A&&(x(!0),await z(A)))return;const $=Cm();if($&&m)try{const F=await Promise.resolve($(m));if(F&&(x(!0),await z(F)))return}catch{}await D()}finally{L()}},[n,A,m,z,D]);i.useImperativeHandle(h,()=>({play:()=>Z()}),[Z]);const Y=L=>L.stopPropagation(),J=i.useCallback(L=>{if(L.stopPropagation(),!n){if(B){try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1);return}Z()}},[n,B,Z]),S=ye("training-word-card",n?"training-word-card--disabled":"",g?"training-word-card--flipped":"",r?"training-word-card--selectable":"",o?"training-word-card--selected":"");return t.jsx("div",{className:S,onClick:r&&!n?s:void 0,role:r?"button":void 0,"aria-pressed":r?o:void 0,tabIndex:r&&!n?0:void 0,"aria-disabled":r&&n?!0:void 0,onKeyDown:r&&!n?L=>{(L.key==="Enter"||L.key===" "||L.key==="Spacebar")&&(L.preventDefault(),s?.())}:void 0,children:t.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:g?"0ms":`${l}ms`},children:[t.jsxs("div",{className:"training-word-card__front",children:[o&&t.jsx("div",{className:"training-word-card__selected-badge",onClick:Y,children:t.jsx(lt,{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")})}),t.jsx("div",{className:"training-word-card__image-wrap",children:R?t.jsxs(t.Fragment,{children:[H&&t.jsx("div",{className:"training-word-card__spinner"}),t.jsx("img",{ref:j,className:"training-word-card__image",src:k,alt:y.label||p("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:H?0:1},onLoad:E,onError:P})]}):t.jsx("div",{className:"training-word-card__placeholder"})}),!c&&t.jsxs("div",{className:"training-word-card__body",children:[t.jsx("div",{className:"training-word-card__word",children:y.label}),y.subLabel&&t.jsxs("div",{className:"training-word-card__pronunciation",children:["[",y.subLabel,"]"]}),y.colloquialLabel&&t.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",y.colloquialLabel,"]"]})]}),!u&&t.jsx("div",{className:"training-word-card__bottom",onClick:r?Y:void 0,children:t.jsx(ne,{size:v?40:48,type:v?"dot":"bar",icon:B?"pause":"play",label:v?void 0:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:B,onClick:J,disabled:n,ariaLabel:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),t.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:t.jsx("img",{src:a4,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})});let ea=0,Li="",$i="",ta=0;function r4(){return Ri(!1)}function o4(){return Ri(!0)}function Ri(e){const n=typeof document<"u";ea===0&&n&&(Li=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(ta===0&&($i=document.body.style.paddingRight),ta++,document.body.style.paddingRight="0px"),ea++;let a=!1;return()=>{a||(a=!0,ea=Math.max(0,ea-1),e&&n&&(ta=Math.max(0,ta-1),ta===0&&(document.body.style.paddingRight=$i)),ea===0&&n&&(document.body.style.overflow=Li))}}const s4=260;function pn(e){const{t:n}=pe.useTranslation(),{title:a,subtitle:r,headerActions:o,children:s,buttons:l,footer:c,footerClassName:u="",onClose:d,closeDisabled:h=!1,beforeClose:p,closeOnBackdrop:m=!0,className:g="",ariaLabel:C,useTitle:f=!0,inline:b=!1,size:y,resetScrollKey:w}=e||{},[_,v]=i.useState(!1),B=i.useRef(!1),x=i.useRef(null),A=i.useId(),M=i.useRef(null);i.useEffect(()=>{},[b,a,C,g]),i.useEffect(()=>{w!==void 0&&M.current&&(M.current.scrollTop=0)},[w]);const[k,j]=i.useState(!1);i.useEffect(()=>{const S=M.current;if(!S)return;const L=()=>j(S.scrollHeight>S.clientHeight+1);if(L(),typeof ResizeObserver>"u")return;const $=new ResizeObserver(L);$.observe(S);const F=S.firstElementChild;return F&&$.observe(F),()=>$.disconnect()},[s,w]),i.useEffect(()=>{if(!b)return r4()},[b]),i.useEffect(()=>{if(b)return;const S=document.activeElement,L=x.current;return L&&!L.contains(document.activeElement)&&(L.querySelector(Gn)??L).focus(),()=>{S?.focus?.()}},[b]),Ya(x,!b);const H=i.useCallback(S=>{B.current||(B.current=!0,v(!0),setTimeout(()=>{try{S&&S()}catch{}},s4))},[]),R=i.useCallback(()=>{h||p&&p()===!1||H(d)},[H,d,h,p]),E=i.useRef(R);i.useEffect(()=>{E.current=R});const P=!b&&!!d;i.useEffect(()=>{if(P)return nr(()=>E.current())},[P]);const D=P&&m,z=i.useRef(!1),Z=S=>{z.current=S.target===S.currentTarget},Y=S=>{const L=z.current;z.current=!1,L&&S.target===S.currentTarget&&R()},J=t.jsx("div",{className:`popup ${b?"popup--inline":""} ${_?"popup--closing":""} ${g}`,onPointerDown:D?Z:void 0,onClick:D?Y:void 0,children:t.jsxs("div",{ref:x,className:`popup-panel${y?` popup-panel--${y}`:""}`,tabIndex:-1,role:b?void 0:"dialog","aria-modal":b?void 0:!0,"aria-labelledby":!b&&a?A:void 0,"aria-label":!b&&!a&&C?C:void 0,children:[!f&&(o||d)?t.jsxs("div",{className:"popup-close-float",children:[o,d&&t.jsx(ne,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:R,disabled:h,ariaLabel:n("common.close","\uB2EB\uAE30")})]}):a||o||d?t.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[t.jsxs("div",{className:"popup-header-main",children:[t.jsx("span",{id:A,className:"popup-title popup-title--left h2",children:a}),r&&t.jsx("span",{className:"popup-subtitle body-3",children:r})]}),t.jsxs("div",{className:"popup-header-actions",children:[o,d&&t.jsx(ne,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:R,disabled:h,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]}):null,t.jsx("div",{className:"popup-content",ref:M,tabIndex:k?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof s=="function"?s({animateThen:H,closeWithAnimation:R}):s})}),l?.length?t.jsx("div",{className:"popup-footer popup-footer--buttons",children:l.map((S,L)=>t.jsx(ne,{size:48,variant:S.variant??"default",label:S.label,disabled:S.disabled,onClick:()=>S.onClick?.({animateThen:H,closeWithAnimation:R})},L))}):c?t.jsx("div",{className:`popup-footer${u?` ${u}`:""}`,children:typeof c=="function"?c({animateThen:H,closeWithAnimation:R}):c}):null]})});return b||typeof document>"u"?J:Pt.createPortal(J,document.body)}function Ca(e){return String(e)}const Pi=["o","triangle","x"];function Ii(e,n){return e===n?null:n}const Fi={o:"circle",triangle:"triangle",x:"x"},Oi={o:"main",triangle:"warn",x:"danger"};function i4(e){let n=0,a=0,r=0;for(const s of Object.values(e))s==="o"?n++:s==="triangle"?a++:s==="x"&&r++;const o=n+a+r;return{marked:o,o:n,triangle:a,x:r,rate:o===0?null:(n+a*.5)/o}}function gr(e){const n={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(n[a]=r);return n}function Hi(e){const n=[];let a=0;for(const r of e)n.push(a),a+=r;return n}function l4(e,n){return!n&&e>0}const $n={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 c4(e="landscape"){const{printSize:n,printW:a,printH:r}=$n[e],o=document.createElement("style");o.textContent=`@page { size: ${n}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(o);const s=()=>{document.head.removeChild(o),window.removeEventListener("afterprint",s)};window.addEventListener("afterprint",s),window.print()}function Vi(e,n){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(n)),r=[];for(let o=0;o<e.length;o+=a)r.push(e.slice(o,o+a));return r}const u4={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 d4(e,n){const a=u4[e][n];if(a)return a;const r=Math.max(1,Math.ceil(n)),o=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let s,l;return e==="landscape"?(l=o,s=Math.ceil(r/l)):(s=o,l=Math.ceil(r/s)),(e==="landscape"?s<l:l<s)&&([s,l]=[l,s]),{cols:s,rows:l}}const p4={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},zi={\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"},Wi={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function br(e,n){return e?e.split("/").map(a=>n[a]??a).join("/"):""}function qi(e,n,a,r){if(r!=="\uC810\uC120")return{};const o=e%n,s=Math.floor(e/n),l=o<n-1,c=s<a-1;if(!l&&!c)return{};const u="#ddd",d=g=>`repeating-linear-gradient(to ${g}, ${u} 0, ${u} 5px, transparent 5px, transparent 10px)`,h=[],p=[],m=[];return l&&(h.push(d("bottom")),p.push("1px 100%"),m.push("right center")),c&&(h.push(d("right")),p.push("100% 1px"),m.push("center bottom")),{backgroundImage:h.join(", "),backgroundSize:p.join(", "),backgroundPosition:m.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const h4=280,m4=240,f4=280,C4=400,g4=120,b4=280;function Ui(e,n){const a=i.useRef(null),[r,o]=i.useState(1),[s,l]=i.useState(0),c=i.useCallback((u,d)=>{const h=u/e,p=n?d/n:1/0,m=Math.min(1,h,p);o(m),l(Math.max(0,(u-e*m)/2))},[e,n]);return i.useEffect(()=>{const u=a.current;if(!u)return;const d=n?u.parentElement??u:u;if(c(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const h=new ResizeObserver(([p])=>c(p.contentRect.width,p.contentRect.height));return h.observe(d),()=>h.disconnect()},[c,n]),{scalerRef:a,scale:r,offset:s}}let tn=null;function Gi({label:e,subLabel:n,colloquialLabel:a,homonum:r,showWord:o=!0,showImage:s=!0,showPronunciation:l=!0,showColloquial:c=!0,buttonSize:u=40,wordInfo:d}){const{t:h}=pe.useTranslation(),p=i.useRef(null),m=i.useRef(null),g=i.useRef(null),[C,f]=i.useState(1),[b,y]=i.useState(!1),[w,_]=i.useState(""),[v,B]=i.useState(null),x=n&&n.length>0?n:bm()?.(e,r)??"",A=Dn()?.(e,r)??"",{imgRef:M,loading:k,failed:j,onLoad:H,onError:R}=fr(A),E=i.useCallback(()=>B(m.current?.getBoundingClientRect()??null),[]),P=i.useCallback(()=>B(null),[]),D=i.useMemo(()=>{if(!d)return null;const S=[];return d.grade&&S.push(`\uB09C\uC774\uB3C4: ${d.grade}\uB4F1\uAE09`),d.syllables&&S.push(`\uC74C\uC808 \uC218: ${d.syllables}\uC74C\uC808`),d.pos&&S.push(`\uD488\uC0AC: ${br(d.pos,zi)}`),d.wordType&&S.push(`\uC720\uD615: ${br(d.wordType,Wi)}`),S.length?S:null},[d]);i.useEffect(()=>{const S=Fa(),L=x||e;if(!S||!L)return;let $=!1;return Promise.resolve(S(L)).then(F=>{!$&&F&&_(F)}),()=>{$=!0}},[x,e]),i.useEffect(()=>()=>{g.current?.pause(),tn?.audio===g.current&&(tn=null)},[]);const z=i.useCallback(async S=>{if(S.stopPropagation(),b){g.current?.pause(),y(!1),tn=null;return}if(w){tn?.stop(),y(!0);try{const L=new Audio(w);g.current=L;const $=()=>{y(!1),tn?.audio===L&&(tn=null)};tn={audio:L,stop:()=>{L.pause(),$()}},L.onended=$,L.onerror=$,await L.play()}catch{y(!1),tn?.audio===g.current&&(tn=null)}}},[b,w]),Z=s&&!!A&&!j,Y=Z&&o?h4:Z?f4:m4,J=Z&&o?C4:Z?b4:g4;return i.useEffect(()=>{const S=p.current;if(!S||typeof ResizeObserver>"u")return;const L=new ResizeObserver(([$])=>{const{width:F,height:O}=$.contentRect;f(Math.min(F/Y,O/J))});return L.observe(S),()=>L.disconnect()},[Y,J]),t.jsxs("div",{ref:p,className:"word-table-cell",children:[t.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${C})`},children:[Z&&t.jsxs("div",{className:"word-table-cell__image-wrap",children:[k&&t.jsx("div",{className:"word-table-cell__spinner"}),t.jsx("img",{ref:M,className:"word-table-cell__image",src:A,alt:e,draggable:!1,style:{opacity:k?0:1},onLoad:H,onError:R})]}),o&&t.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&x&&t.jsxs("span",{className:"word-table-cell__sub h3",children:["[",x,"]"]}),c&&a&&t.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),t.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":w,children:[t.jsx("span",{"data-play-state":"play",style:{display:b?"none":void 0},children:t.jsx(ne,{size:u,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:h("common.play","\uC7AC\uC0DD"),onClick:z})}),t.jsx("span",{"data-play-state":"pause",style:{display:b?void 0:"none"},children:t.jsx(ne,{size:u,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:h("common.pause","\uBA48\uCDA4"),onClick:z})})]}),d&&t.jsxs("div",{ref:m,className:"word-table-cell__info-button",onPointerEnter:E,onPointerLeave:P,onFocus:E,onBlur:P,children:[t.jsx(ne,{size:u,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:h("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:S=>S.stopPropagation()}),v&&D&&t.jsx(_n,{anchorRect:v,items:D,showIndex:!1})]})]})}function Rn({title:e,titleIcon:n,disc:a,className:r,orientation:o="landscape",contentTypes:s=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:c=!0,showDivLine:u=!0,items:d,editCells:h,count:p,activeCell:m=null,onActivateCell:g,onRemoveCell:C,onRemoveItem:f,onReorder:b,showFillerAdd:y=!1,contentRef:w,buttonSize:_=40,pageNumber:v,pageNumberPosition:B="right",fitHeight:x=!1,scoring:A=!1,marks:M,onMarkClick:k,scoreIndexOffset:j=0}){const H=i.useCallback((ve,he)=>{k?.(j+ve,he)},[k,j]),R=(ve,he)=>{const T=M?.[Ca(j+ve)]??null;return t.jsx("div",{className:ye("word-table-cell__score",T?"word-table-cell__score--marked":""),children:Pi.map(W=>t.jsx("span",{className:ye("word-table-cell__score-slot",T===W?"word-table-cell__score-slot--on":""),children:t.jsx(ne,{size:_,type:"dot",icon:Fi[W],variant:T===W?Oi[W]:"default",selected:T===W,useBorder:!1,showTooltipInfo:!1,ariaLabel:E(`wordTable.scoring.${W}`,{word:he,defaultValue:`${he} ${W}`}),onClick:Q=>{Q.stopPropagation(),H(ve,W)}})},W))})},{t:E}=pe.useTranslation(),P=h!==void 0,D=i.useRef(null),[z,Z]=i.useState(null),{width:Y,height:J}=$n[o],{scalerRef:S,scale:L,offset:$}=Ui(Y,x?J:void 0),F=P?h?.length??0:d?.length??0,O=Math.max(p??F,1),{cols:X,rows:I}=d4(o,O),U={word:s.length===0||s.includes("\uB2E8\uC5B4"),image:s.length===0||s.includes("\uC774\uBBF8\uC9C0"),pron:s.length===0||s.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:s.length===0||s.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},q=P?(h??[]).some(ve=>ve!==null&&ve.length>1):(d??[]).some(ve=>ve.words.length>1),le=ye("word-table-block__content",p4[l],c&&"word-table-block__content--outline",u&&q&&"word-table-block__content--div-line"),de={transform:`scale(${1/L})`,transformOrigin:"center center"},Ce=t.jsx("div",{ref:S,className:"word-table__scaler",style:{height:J*L},children:t.jsx("div",{className:ye("word-table",r),style:{width:Y,height:J,transform:`scale(${L})`,transformOrigin:"top left",marginLeft:$},children:t.jsxs("div",{ref:w,className:le,style:{gridTemplateColumns:`repeat(${X}, 1fr)`,gridTemplateRows:`repeat(${I}, 1fr)`},children:[P?t.jsx(t.Fragment,{children:(h??[]).map((ve,he)=>t.jsx("div",{className:ye("word-table-block__edit-cell",ve?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",m===he?"word-table-block__edit-cell--active":""),style:qi(he,X,I,l),children:ve?t.jsxs(t.Fragment,{children:[ve.map((T,W)=>t.jsxs(i.Fragment,{children:[W>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(Gi,{label:T.word,subLabel:T.pronunciation,homonum:T.homonum,showWord:U.word,showImage:U.image,showPronunciation:U.pron,showColloquial:U.colloq,buttonSize:_})]},W)),A&&R(he,ve.map(T=>T.word).join(" / ")),C&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ne,{size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ve.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ve.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>C(he)})})]}):g&&t.jsx("div",{style:de,children:t.jsx(ne,{size:"48",type:"bar",icon:"plus",label:E("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g(he)})})},he))}):t.jsxs(t.Fragment,{children:[(d??[]).map((ve,he)=>t.jsxs("div",{className:`word-table-block__card${b?" word-table-block__card--draggable":""}${z===he?" word-table-block__card--drag-over":""}`,style:qi(he,X,I,l),draggable:!!b,onDragStart:b?()=>{D.current=he}:void 0,onDragOver:b?T=>{T.preventDefault(),Z(he)}:void 0,onDragLeave:b?()=>Z(null):void 0,onDrop:b?T=>{T.preventDefault(),D.current!==null&&D.current!==he&&b(D.current,he),D.current=null,Z(null)}:void 0,onDragEnd:b?()=>{D.current=null,Z(null)}:void 0,children:[ve.words.map((T,W)=>t.jsxs(i.Fragment,{children:[W>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(Gi,{label:T.label,subLabel:T.subLabel,colloquialLabel:T.colloquialLabel,homonum:T.homonum,showWord:U.word,showImage:U.image,showPronunciation:U.pron,showColloquial:U.colloq,buttonSize:_,wordInfo:T.grade||T.syllables!=null||T.pos||T.wordType?{grade:T.grade,syllables:T.syllables,pos:T.pos,wordType:T.wordType}:void 0})]},W)),A&&R(he,ve.words.map(T=>T.label).join(" / ")),f&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ne,{size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ve.words.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ve.words.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(ve.id)})})]},ve.id)),Array.from({length:Math.max(0,X*I-(d?.length??0))}).map((ve,he)=>{const T=(d?.length??0)+he<O;return t.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:y&&g&&T&&t.jsx("div",{style:de,children:t.jsx(ne,{size:_,type:"bar",icon:"plus",label:E("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g((d?.length??0)+he)})})},`filler-${he}`)})]}),v&&B!=="none"&&t.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${B}`,children:E("wordTable.filter.pageIndicator",{current:v.current,total:v.total})})]})})});return e!=null||n||a?t.jsx(Mn,{type:"page",icon:n,title:e,disc:a,className:ye("word-table-block",r),children:Ce}):Ce}function nn({title:e,headerAction:n,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:o,onCollapsedChange:s,footer:l,sections:c,selected:u={},onSelect:d,align:h,sectionAlign:p,className:m}){const g=(h??(p==="vertical"?"newline":"inline"))==="inline",{t:C}=pe.useTranslation(),[f,b]=i.useState(r),y=o??f,w=()=>{const v=!y;b(v),s?.(v)},_=e||n||a;return t.jsxs("div",{className:ye("filter-panel",a?"filter-panel--collapsible":"",y?"filter-panel--collapsed":"",m),children:[_&&t.jsxs("div",{className:"filter-panel__header",children:[t.jsxs("div",{className:"filter-panel__title-row",children:[a&&t.jsx(ne,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:y?"chevron-down":"chevron-up",ariaLabel:y?C("common.expand","\uD3BC\uCE58\uAE30"):C("common.collapse","\uC811\uAE30"),"aria-expanded":!y,onClick:w}),e&&t.jsx("span",{className:"filter-panel__title h4",children:e})]}),t.jsx("div",{className:"filter-panel__header-actions",children:!y&&n})]}),!y&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:ye("filter-panel__sections",g?"filter-panel__sections--row":""),children:c.map(v=>{const B=u[v.label],x=B===void 0||(Array.isArray(B)?B.length===0:!1),A=(v.items??[]).filter(k=>k!=null),M=k=>{const j=typeof k=="string"?k:k.value,H=typeof k!="string"&&!!k.disabled,R=typeof k!="string"?k.labels:void 0,E=typeof k!="string"?k.displayLabel:void 0,P=typeof k!="string"?k.tooltip:void 0,D=typeof k!="string"?k.descriptionTooltip:void 0,z=typeof k!="string"?k.shape:void 0,Z=Array.isArray(B)?B.includes(j):B===j;return t.jsx(ne,{size:"keyboard",label:R??E??j,type:v.itemType??(R?"bar":j.length===1?"dot":void 0),selected:Z,disabled:H,shape:z,showTooltipInfo:!!P,tooltipInfoText:P,tooltipDescription:D,onClick:()=>d?.(j,v.label)},j)};return t.jsxs(i.Fragment,{children:[v.groupLabel&&t.jsxs("div",{className:"filter-panel__group-label-row",children:[t.jsx("div",{className:"filter-panel__group-label body-2",children:v.groupLabel}),v.groupAction]}),t.jsxs("div",{className:ye("filter-panel__section",v.layout==="row"?"filter-panel__section--row":"",v.block?"filter-panel__section--block":""),children:[t.jsxs("div",{className:"filter-panel__section-label-row",children:[t.jsx("span",{className:"filter-panel__section-label body-3",children:v.displayLabel??v.label}),v.labelAction??(v.labelInfo?t.jsx(Jn,{...v.labelInfo}):null)]}),v.type==="note"?t.jsx("div",{className:"filter-panel__note body-3",children:v.content}):v.type==="input"?t.jsx(kn,{className:"filter-panel__textfield",placeholder:v.placeholder,ariaLabel:v.displayLabel??v.label,value:u[v.label]??"",onChange:k=>d?.(k,v.label),error:v.error}):!v.multiple&&v.display==="segmented"?t.jsx(An,{ariaLabel:v.displayLabel??v.label,options:[...v.allOption?[{key:un,label:v.allLabel??C("common.all","\uC804\uCCB4")}]:[],...A.map(k=>{const j=typeof k=="string"?k:k.value,H=typeof k!="string"?k.displayLabel:void 0,R=typeof k!="string"?k.disabled:void 0;return{key:j,label:H??j,disabled:R}})],value:x&&v.allOption?un:u[v.label],onChange:k=>d?.(k,v.label),size:32}):!v.multiple&&v.display==="dropdown"?t.jsx(Vt,{className:"filter-panel__dropdown",size:40,options:[...v.allOption?[{value:un,label:v.allLabel??C("common.all","\uC804\uCCB4")}]:[],...A.map(k=>{const j=typeof k=="string"?k:k.value,H=typeof k!="string"?k.displayLabel:void 0,R=typeof k!="string"?k.disabled:void 0;return{value:j,label:H??j,disabled:R}})],value:x&&v.allOption?un:u[v.label],onChange:k=>d?.(k,v.label)}):t.jsxs("div",{className:v.groups?"filter-panel__item-groups":"filter-panel__items",children:[v.allOption&&!v.groups&&t.jsx(ne,{size:"keyboard",label:v.allLabel??C("common.all","\uC804\uCCB4"),selected:x,disabled:v.allOptionDisabled,onClick:()=>d?.(un,v.label)}),v.groups?v.groups.map((k,j)=>t.jsxs("div",{className:"filter-panel__item-group",children:[j===0&&v.allOption&&t.jsx(ne,{size:"keyboard",label:v.allLabel??C("common.all","\uC804\uCCB4"),selected:x,disabled:v.allOptionDisabled,onClick:()=>d?.(un,v.label)}),k.filter(H=>H!=null).map(M)]},j)):A.map(M)]})]})]},v.label)})}),l!=null&&l!==!1&&t.jsx("div",{className:"filter-panel__footer body-3",children:l})]})]})}const y4=[1,2,3,4,5,6,7,8,9,10,11,12],v4=[8,4,2,1];function Ki(e,n){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!n.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!n.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function Zi(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"\uAC00\uB85C",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"\uC138\uB85C",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function Yi(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Xi(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Ji(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Qi(e,n){return{label:e(n.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[n.itemCount,...v4.filter(a=>a<n.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function el(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"\uC67C\uCABD",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"\uC911\uC559",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"\uC624\uB978\uCABD",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}const tl={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function nl(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function al(e,n){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:n.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:n.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:n.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:n.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:n.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}}function rl(e,n,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?n===un?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(o=>o.includes(n)?o.filter(s=>s!==n):[...o,n]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(n==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(n==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(n),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(n==="\uD45C\uC2DC"),!0):!1}function x4(e){return"sections"in e}function yr(e){const{t:n}=pe.useTranslation(),{title:a,className:r}=e;if(x4(e))return t.jsx(nn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:o,hasColloquial:s,contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:h,setters:p,showCutLine:m=!1,showDivLine2:g=!1,middleSections:C=[],extraSelected:f={},onExtraSelect:b}=e,y=[Ki(n,{hasImage:o,hasColloquial:s}),Zi(n),...C,Yi(n),...m?[Xi(n)]:[],...g?[Ji(n)]:[]],w={...al(n,{contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:h}),...f},_=(v,B)=>{rl(n,v,B,p)||b?.(v,B)};return t.jsx(nn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:y,selected:w,onSelect:_,sectionAlign:"horizontal"})}function ol(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function vr(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}function _4(e,n,a,r="",o=""){if(e.length===0)return;const s=r?vr(r):"";if(s){const u=document.title;document.title=s;const d=()=>{document.title=u,window.removeEventListener("afterprint",d)};window.addEventListener("afterprint",d)}const l=document.createElement("iframe");l.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(l);const c=l.contentDocument;if(!c){l.remove();return}c.open(),c.write(xr(e,n,a,!0,s,o)),c.close(),l.contentWindow?.addEventListener("afterprint",()=>setTimeout(()=>l.remove(),0))}function xr(e,n,a,r=!1,o="",s=""){o=o?vr(o):"";const l=Array.from(document.styleSheets).flatMap(h=>{try{return Array.from(h.cssRules).map(p=>p.cssText)}catch{return[]}}).join(`
|
|
839
|
+
`),c=document.documentElement.getAttribute("data-theme")||"light",u=s?`<div class="paper-head">${ol(s)}</div>`:"",d=e.map(h=>{const p=h.cloneNode(!0);return p.querySelectorAll('[data-play-state="play"]').forEach(m=>m.style.display=""),p.querySelectorAll('[data-play-state="pause"]').forEach(m=>m.style.display="none"),p.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(m=>m.remove()),`<div class="paper-wrap">${u}${p.outerHTML}</div>`}).join(`
|
|
840
840
|
`);return`<!DOCTYPE html>
|
|
841
841
|
<html data-theme="${c}">
|
|
842
842
|
<head>
|
|
@@ -891,7 +891,7 @@ ${_.badge}`:_.badge:void 0;if(S&&d(_.code))return null;if(!_.badge&&!u)return h(
|
|
|
891
891
|
</style>
|
|
892
892
|
</head>
|
|
893
893
|
<body class="ihabdevteam-core-scope">
|
|
894
|
-
${
|
|
894
|
+
${d}
|
|
895
895
|
<button class="button button48 button48--dot button--variant-default button--align-center new-window-close" onclick="window.close()"><span class="button__icon button__icon--medium"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="button__icon-svg"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></span></button>
|
|
896
896
|
<script>
|
|
897
897
|
function scale() {
|
|
@@ -962,10 +962,10 @@ ${_.badge}`:_.badge:void 0;if(S&&d(_.code))return null;if(!_.badge&&!u)return h(
|
|
|
962
962
|
`:""}
|
|
963
963
|
<\/script>
|
|
964
964
|
</body>
|
|
965
|
-
</html>`}function _r({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:o,header:s=""}){const l=i.useCallback(()=>{_4(e(),n,a,r,s)},[e,n,a,r,s]),c=i.useCallback(()=>{const u=e();if(u.length===0)return;const h=window.open("","_blank");if(!h){o?.();return}h.document.write(xr(u,n,a,!1,r,s)),h.document.close()},[e,n,a,r,o,s]),d=i.useCallback(()=>{const u=e();if(u.length===0)return;const h=xr(u,n,a,!1,r,s),p=new Blob([h],{type:"text/html;charset=utf-8"}),f=URL.createObjectURL(p),g=r&&vr(r),C=Object.assign(document.createElement("a"),{href:f,download:`${g}.html`});document.body.appendChild(C),C.click(),document.body.removeChild(C),URL.revokeObjectURL(f)},[e,n,a,r,s]);return{print:l,openNewWindow:c,downloadHtml:d}}function sl(e){const{t:n}=pe.useTranslation(),[a,r]=i.useState("landscape"),[o,s]=i.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[l,c]=i.useState("\uD45C\uC2DC"),[d,u]=i.useState(!0),[h,p]=i.useState(!0),[f,g]=i.useState(8),[C,m]=i.useState("right"),v=e.length,b=e.some(R=>R.words.length>1),w=e.some(R=>R.words.some(j=>!!j.colloquialLabel)),_=Math.min(f,Math.max(v,1)),y=i.useMemo(()=>Vi(e,_),[e,_]),S=y.length>1,x=_,[A,M]=i.useState(!1);i.useEffect(()=>{let R=!1;if(!Dn()){M(!1);return}return Promise.all(e.flatMap(j=>j.words.map(P=>Ko(P.label,P.homonum)))).then(j=>{R||M(j.some(Boolean))}),()=>{R=!0}},[e]);const k=i.useMemo(()=>[Ki(n,{hasImage:A,hasColloquial:w}),Zi(n),...v>0?[Qi(n,{hasPairs:b,itemCount:v})]:[],...S?[el(n)]:[],Yi(n),...x>1?[Xi(n)]:[],...b?[Ji(n)]:[]],[n,A,w,v,b,S,x]),D={...al(n,{contentTypes:o,orientation:a,showOutline:d,cutLine:l,showDivLine:h}),...v>0?{[n(b?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${_}\uAC1C`}:{},...S?{[n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:tl[C]}:{}},O=i.useCallback((R,j)=>{rl(n,R,j,{setContentTypes:s,setOrientation:r,setShowOutline:u,setCutLine:c,setShowDivLine:p})||(j===n("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||j===n("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?g(parseInt(R)):j===n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&m(nl(R)))},[n]);return{settings:{orientation:a,contentTypes:o,cutLine:l,showOutline:d,showDivLine:h,count:x},filterSections:k,filterSelected:D,handleSelect:O,pages:y,isPaginated:S,pageNumberPosition:C}}function w4({items:e,words:n,title:a,subtitle:r,emptyText:o,buttons:s,renderButtons:l,renderFooter:c,footerClassName:d,printFileName:u,showSettings:h,autoPrint:p,className:f,onClose:g,scoring:C=!1,onScoreChange:m,printHeader:v,beforeClose:b}){const{t:w}=pe.useTranslation(),_=i.useMemo(()=>Array.isArray(e)?e:(Array.isArray(n)?n:[]).filter(le=>typeof le=="string"&&le.length>0).map((le,de)=>({id:`${le}-${de}`,words:[{label:le}]})),[e,n]),{settings:y,filterSections:S,filterSelected:x,handleSelect:A,pages:M,isPaginated:k,pageNumberPosition:D}=sl(_),O=i.useMemo(()=>Hi(M.map(le=>le.length)),[M]),[R,j]=i.useState({}),P=i.useCallback((le,de)=>{j(Ce=>({...Ce,[Ca(le)]:Ii(Ce[Ca(le)]??null,de)}))},[]),B=i.useRef(m);i.useEffect(()=>{B.current=m}),i.useEffect(()=>{B.current?.(gr(R))},[R]);const F=i.useMemo(()=>gr(R),[R]),Z=i.useRef(null),{toastMessage:Y,toastKey:J,showWarning:E,clearToast:$}=qs("warning"),L=i.useRef([]),V=i.useCallback(()=>k?L.current.filter(le=>le!==null):Z.current?[Z.current]:[],[k]),{print:H,openNewWindow:X}=_r({getElements:V,paperW:$n[y.orientation].width,paperH:$n[y.orientation].height,fileName:u??"",header:v??"",onPopupBlocked:()=>E(w("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."))}),I=i.useMemo(()=>c?void 0:l?l({print:H,openNewWindow:X}):u?[{label:w("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>X()},{label:w("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>H()},...s??[]]:s,[c,l,u,s,w,H,X]),U=i.useMemo(()=>c?c({print:H,openNewWindow:X}):void 0,[c,H,X]),q=i.useRef(!1);return i.useEffect(()=>{if(!p||q.current)return;q.current=!0;const le=window.setTimeout(()=>H(),100);return()=>window.clearTimeout(le)},[p,H]),t.jsxs(pn,{title:a??w("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:ye("word-table-popup",f),buttons:I,footer:U,footerClassName:d,beforeClose:b,onClose:g,children:[_.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[h&&t.jsx(yr,{sections:S,selected:x,onSelect:A}),k?t.jsx("div",{className:"word-table-popup__pages",children:M.map((le,de)=>t.jsx(Rn,{items:le,orientation:y.orientation,contentTypes:y.contentTypes,cutLine:y.cutLine,showOutline:y.showOutline,showDivLine:y.showDivLine,count:y.count,contentRef:Ce=>{L.current[de]=Ce},pageNumber:{current:de+1,total:M.length},pageNumberPosition:D,scoring:C,scoreIndexOffset:O[de],marks:F,onMarkClick:P},de))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(Rn,{items:_,orientation:y.orientation,contentTypes:y.contentTypes,cutLine:y.cutLine,showOutline:y.showOutline,showDivLine:y.showDivLine,count:y.count,contentRef:Z,fitHeight:!0,scoring:C,marks:F,onMarkClick:P})})]}):t.jsx("p",{className:"word-table-popup__empty body-3",children:o??w("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsx(Tn,{message:Y,position:"top",onClose:$},J)]})}const k4=new Set(["x","triangle"]);function A4(e,n){const a=[];for(let r=0;r<e.length;r++){const o=n[String(r)];o&&k4.has(o)&&a.push(e[r])}return a}function N4(e,n){const[,a,r]=Ka(n).split("-"),o=`${a}.${r}`,s=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;let l=e.trim(),c=1;for(;;){const u=s.exec(l);if(!u)break;c=Math.max(c,(u[1]?Number(u[1]):1)+1),l=l.slice(0,u.index).trim()}const d=c>=2?`${c}\uCC28 `:"";return`${l||"\uB2E8\uC5B4\uD45C"} ${d}\uBCF5\uC2B5 ${o}`}function B4(e,n){const a={};for(const[r,o]of Object.entries(n)){if(o!=="o"&&o!=="triangle"&&o!=="x")continue;const s=Number(r),l=e[s];l&&(a[r]=l)}return a}function S4(e){return e.map(n=>n.label).join(" / ")}function D4(e,n,a){const r=ns(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}const j4=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function ga(e,n){return j4().compare(e,n)}function E4(e,n){return typeof e=="number"&&typeof n=="number"?e-n:ga(e==null?"":String(e),n==null?"":String(n))}function il(e,n,a){return a===0?0:(e+n*.5)/a}function T4(e){const n=new Map,a=[...e].sort((o,s)=>o.scoredAt.localeCompare(s.scoredAt));for(const o of a)for(const[s,l]of Object.entries(o.marks)){const c=o.labels?.[s];if(!c)continue;const d=n.get(c)??{o:0,triangle:0,x:0,latest:l,latestAt:o.scoredAt};if(l==="o")d.o++;else if(l==="triangle")d.triangle++;else if(l==="x")d.x++;else continue;d.latest=l,d.latestAt=o.scoredAt,n.set(c,d)}const r=[];for(const[o,s]of n){const l=s.o+s.triangle+s.x;r.push({label:o,tried:l,o:s.o,triangle:s.triangle,x:s.x,rate:il(s.o,s.triangle,l),latest:s.latest,latestAt:s.latestAt})}return r.sort((o,s)=>o.rate-s.rate||s.tried-o.tried||ga(o.label,s.label)),r}function M4(e){const n=new Map;for(const r of e){const o=r.tableId??`name:${r.tableName}`,s=n.get(o)??{tableName:r.tableName,tableId:r.tableId,rows:[]};s.rows.push(r),n.set(o,s)}const a=[];for(const r of n.values()){const o=[...r.rows].sort((l,c)=>l.scoredAt.localeCompare(c.scoredAt)),s=o.map(l=>{const c=Object.values(l.marks),d=c.filter(h=>h==="o").length,u=c.filter(h=>h==="triangle").length;return il(d,u,c.filter(h=>h==="o"||h==="triangle"||h==="x").length)});a.push({tableName:r.tableName,tableId:r.tableId,rates:s,times:o.map(l=>l.scoredAt),delta:s.length>=2?s[s.length-1]-s[0]:null})}return a.sort((r,o)=>(o.times[o.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function L4(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function $4(e){const n=new Map;let a=0,r=0;const o=[...e].sort((l,c)=>l.answeredAt.localeCompare(c.answeredAt));for(const l of o){if(l.isCorrect==null)continue;const c=l.itemTitle?.trim();if(!c){r++;continue}a++;const d=l.itemId?.trim()||c,u=`${l.trainingType}|${d}`,h=n.get(u)??{trainingType:l.trainingType,itemId:d,title:c,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};h.tried++,l.isCorrect||h.wrong++,h.title=c,h.latestCorrect=l.isCorrect,h.latestAt=l.answeredAt,h.lastSelected=l.selected,l.setId&&!h.setIds.includes(l.setId)&&h.setIds.unshift(l.setId),n.set(u,h)}const s=[...n.entries()].map(([l,c])=>({key:l,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return s.sort((l,c)=>l.rate-c.rate||c.tried-l.tried||ga(l.title,c.title)),{items:s,counted:a,skippedNoTitle:r}}function R4(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function P4(e){const n=new Map;for(const r of e){const o=n.get(r.trainingType)??[];o.push(r),n.set(r.trainingType,o)}const a=[...n.entries()].map(([r,o])=>({trainingType:r,items:o,pending:o.filter(s=>!s.latestCorrect).length}));return a.sort((r,o)=>o.pending-r.pending||r.trainingType.localeCompare(o.trainingType)),a}const wr=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function I4(e){const n=new Map;let a=0;for(const s of e){if(s.latestCorrect)continue;const l=s.setIds[0];if(!l){a++;continue}const c=`${s.trainingType}|${l}`,d=n.get(c)??{setId:l,trainingType:s.trainingType,pending:0};d.pending++,n.set(c,d)}const r=(s,l)=>l.pending-s.pending||s.trainingType.localeCompare(l.trainingType)||s.setId.localeCompare(l.setId),o=[...n.values()];return{sentence:o.filter(s=>wr.includes(s.trainingType)).sort(r),word:o.filter(s=>!wr.includes(s.trainingType)).sort(r),noSet:a}}function F4(e,n,a=5){const r=new Set(n);if(r.size===0)return[];const o=[];for(const s of e){const l=new Set,c=[];for(const d of s.cellLabels)r.has(d)&&!l.has(d)&&(l.add(d),c.push(d));c.length!==0&&o.push({id:s.id,name:s.name,kind:s.kind,covered:c,totalCells:s.cellLabels.length})}return o.sort((s,l)=>l.covered.length-s.covered.length||s.totalCells-l.totalCells||ga(s.name,l.name)),o.slice(0,Math.max(0,a))}function O4(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function H4(e,n){const a=new Map;for(const o of e)for(const s of o.cells){const l=o.labelOf(s);a.has(l)||a.set(l,s)}const r=[];for(const o of n){const s=a.get(o);s!==void 0&&r.push(s)}return r}function V4(e){if(!e||e<=0)return"-";const n=Math.floor(e/60),a=e%60;return n>0?`${n}\uBD84${a>0?` ${a}\uCD08`:""}`:`${a}\uCD08`}function z4(e,n){const a=[],r=new Set;for(const o of e){const s=n(o);r.has(s)||(r.add(s),a.push({key:s,value:o,pinned:!1}))}return a}function W4(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function q4(e,n){return e.filter(a=>a.key!==n)}function U4(e,n,a){const r=e.filter(u=>u.pinned),o=new Set(r.map(u=>u.key)),s=e.length-r.length,l=[],c=new Set(o);for(const u of n){if(l.length>=s)break;const h=a(u);c.has(h)||(c.add(h),l.push({key:h,value:u,pinned:!1}))}const d=[...l];return e.map(u=>u.pinned?u:d.shift()).filter(u=>u!==void 0)}function G4(e){return e.map(n=>n.value)}function K4(e){const{category:n={},isSelected:a=!1,onClick:r}=e||{},o=n?.key?` icon-grid-menu__button--${n.key}`:"",s=i.useId();return t.jsxs("div",{className:`icon-grid-menu__button-wrapper${o}`,children:[t.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":n?.key,onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":s,disabled:a,children:t.jsx(Oe,{icon:n.icon,label:n.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"})}),t.jsx("span",{id:s,className:"icon-grid-menu__button-label button-1",children:n.label})]})}function Z4(e){const{categories:n=[],selected:a,onSelect:r,size:o="medium"}=e||{},s=a??(n&&n[0]?.key)??null,[l,c]=i.useState(s??null);i.useEffect(()=>{a!=null&&c(a)},[a]);const d=i.useRef(r),u=i.useRef(l),h=i.useRef(a!==void 0);i.useEffect(()=>{!h.current&&u.current&&typeof d.current=="function"&&d.current(u.current)},[]);const p=i.useCallback(f=>{const g=l===f?null:f;c(g),r?.(g)},[l,r]);return t.jsx("div",{className:`icon-grid-menu icon-grid-menu--${o}`,children:(n||[]).map(f=>t.jsx(K4,{category:f,isSelected:l===f.key,onClick:()=>p(f.key)},f.key))})}function Y4({subs:e=[],selected:n,onSelect:a,size:r="medium"}){const o=r==="small"?32:40;return t.jsx("div",{className:`choice-chips choice-chips--${r}`,children:t.jsx("div",{className:"choice-chips__list",children:e.map(s=>t.jsx(ne,{size:o,type:"bar",label:s.label,selected:n===s.key,className:"choice-chips__button",onClick:()=>a?.(s.key)},s.key))})})}function X4({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",o=a?.tel??"031-380-3724",{t:s}=pe.useTranslation();return t.jsx("footer",{className:"site-footer",children:t.jsxs("div",{className:"safearea",children:[t.jsxs("div",{className:"site-footer__top",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("div",{className:"site-footer__lead h3",children:s("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
965
|
+
</html>`}function _r({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:o,header:s=""}){const l=i.useCallback(()=>{_4(e(),n,a,r,s)},[e,n,a,r,s]),c=i.useCallback(()=>{const d=e();if(d.length===0)return;const h=window.open("","_blank");if(!h){o?.();return}h.document.write(xr(d,n,a,!1,r,s)),h.document.close()},[e,n,a,r,o,s]),u=i.useCallback(()=>{const d=e();if(d.length===0)return;const h=xr(d,n,a,!1,r,s),p=new Blob([h],{type:"text/html;charset=utf-8"}),m=URL.createObjectURL(p),g=r&&vr(r),C=Object.assign(document.createElement("a"),{href:m,download:`${g}.html`});document.body.appendChild(C),C.click(),document.body.removeChild(C),URL.revokeObjectURL(m)},[e,n,a,r,s]);return{print:l,openNewWindow:c,downloadHtml:u}}function sl(e){const{t:n}=pe.useTranslation(),[a,r]=i.useState("landscape"),[o,s]=i.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[l,c]=i.useState("\uD45C\uC2DC"),[u,d]=i.useState(!0),[h,p]=i.useState(!0),[m,g]=i.useState(8),[C,f]=i.useState("right"),b=e.length,y=e.some(R=>R.words.length>1),w=e.some(R=>R.words.some(E=>!!E.colloquialLabel)),_=Math.min(m,Math.max(b,1)),v=i.useMemo(()=>Vi(e,_),[e,_]),B=v.length>1,x=_,[A,M]=i.useState(!1);i.useEffect(()=>{let R=!1;if(!Dn()){M(!1);return}return Promise.all(e.flatMap(E=>E.words.map(P=>Ko(P.label,P.homonum)))).then(E=>{R||M(E.some(Boolean))}),()=>{R=!0}},[e]);const k=i.useMemo(()=>[Ki(n,{hasImage:A,hasColloquial:w}),Zi(n),...b>0?[Qi(n,{hasPairs:y,itemCount:b})]:[],...B?[el(n)]:[],Yi(n),...x>1?[Xi(n)]:[],...y?[Ji(n)]:[]],[n,A,w,b,y,B,x]),j={...al(n,{contentTypes:o,orientation:a,showOutline:u,cutLine:l,showDivLine:h}),...b>0?{[n(y?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${_}\uAC1C`}:{},...B?{[n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:tl[C]}:{}},H=i.useCallback((R,E)=>{rl(n,R,E,{setContentTypes:s,setOrientation:r,setShowOutline:d,setCutLine:c,setShowDivLine:p})||(E===n("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||E===n("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?g(parseInt(R)):E===n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&f(nl(R)))},[n]);return{settings:{orientation:a,contentTypes:o,cutLine:l,showOutline:u,showDivLine:h,count:x},filterSections:k,filterSelected:j,handleSelect:H,pages:v,isPaginated:B,pageNumberPosition:C}}function w4({items:e,words:n,title:a,subtitle:r,emptyText:o,buttons:s,renderButtons:l,renderFooter:c,footerClassName:u,printFileName:d,showSettings:h,autoPrint:p,className:m,onClose:g,scoring:C=!1,onScoreChange:f,printHeader:b,beforeClose:y}){const{t:w}=pe.useTranslation(),_=i.useMemo(()=>Array.isArray(e)?e:(Array.isArray(n)?n:[]).filter(le=>typeof le=="string"&&le.length>0).map((le,de)=>({id:`${le}-${de}`,words:[{label:le}]})),[e,n]),{settings:v,filterSections:B,filterSelected:x,handleSelect:A,pages:M,isPaginated:k,pageNumberPosition:j}=sl(_),H=i.useMemo(()=>Hi(M.map(le=>le.length)),[M]),[R,E]=i.useState({}),P=i.useCallback((le,de)=>{E(Ce=>({...Ce,[Ca(le)]:Ii(Ce[Ca(le)]??null,de)}))},[]),D=i.useRef(f);i.useEffect(()=>{D.current=f}),i.useEffect(()=>{D.current?.(gr(R))},[R]);const z=i.useMemo(()=>gr(R),[R]),Z=i.useRef(null),{toastMessage:Y,toastKey:J,showWarning:S,clearToast:L}=qs("warning"),$=i.useRef([]),F=i.useCallback(()=>k?$.current.filter(le=>le!==null):Z.current?[Z.current]:[],[k]),{print:O,openNewWindow:X}=_r({getElements:F,paperW:$n[v.orientation].width,paperH:$n[v.orientation].height,fileName:d??"",header:b??"",onPopupBlocked:()=>S(w("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."))}),I=i.useMemo(()=>c?void 0:l?l({print:O,openNewWindow:X}):d?[{label:w("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>X()},{label:w("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>O()},...s??[]]:s,[c,l,d,s,w,O,X]),U=i.useMemo(()=>c?c({print:O,openNewWindow:X}):void 0,[c,O,X]),q=i.useRef(!1);return i.useEffect(()=>{if(!p||q.current)return;q.current=!0;const le=window.setTimeout(()=>O(),100);return()=>window.clearTimeout(le)},[p,O]),t.jsxs(pn,{title:a??w("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:ye("word-table-popup",m),buttons:I,footer:U,footerClassName:u,beforeClose:y,onClose:g,children:[_.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[h&&t.jsx(yr,{sections:B,selected:x,onSelect:A}),k?t.jsx("div",{className:"word-table-popup__pages",children:M.map((le,de)=>t.jsx(Rn,{items:le,orientation:v.orientation,contentTypes:v.contentTypes,cutLine:v.cutLine,showOutline:v.showOutline,showDivLine:v.showDivLine,count:v.count,contentRef:Ce=>{$.current[de]=Ce},pageNumber:{current:de+1,total:M.length},pageNumberPosition:j,scoring:C,scoreIndexOffset:H[de],marks:z,onMarkClick:P},de))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(Rn,{items:_,orientation:v.orientation,contentTypes:v.contentTypes,cutLine:v.cutLine,showOutline:v.showOutline,showDivLine:v.showDivLine,count:v.count,contentRef:Z,fitHeight:!0,scoring:C,marks:z,onMarkClick:P})})]}):t.jsx("p",{className:"word-table-popup__empty body-3",children:o??w("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsx(Tn,{message:Y,position:"top",onClose:L},J)]})}const k4=new Set(["x","triangle"]);function A4(e,n){const a=[];for(let r=0;r<e.length;r++){const o=n[String(r)];o&&k4.has(o)&&a.push(e[r])}return a}function N4(e,n){const[,a,r]=Ka(n).split("-"),o=`${a}.${r}`,s=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;let l=e.trim(),c=1;for(;;){const d=s.exec(l);if(!d)break;c=Math.max(c,(d[1]?Number(d[1]):1)+1),l=l.slice(0,d.index).trim()}const u=c>=2?`${c}\uCC28 `:"";return`${l||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${o}`}function B4(e,n){const a={};for(const[r,o]of Object.entries(n)){if(o!=="o"&&o!=="triangle"&&o!=="x")continue;const s=Number(r),l=e[s];l&&(a[r]=l)}return a}function S4(e){return e.map(n=>n.label).join(" / ")}function D4(e,n,a){const r=ns(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}const j4=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function ga(e,n){return j4().compare(e,n)}function E4(e,n){return typeof e=="number"&&typeof n=="number"?e-n:ga(e==null?"":String(e),n==null?"":String(n))}function il(e,n,a){return a===0?0:(e+n*.5)/a}function T4(e){const n=new Map,a=[...e].sort((o,s)=>o.scoredAt.localeCompare(s.scoredAt));for(const o of a)for(const[s,l]of Object.entries(o.marks)){const c=o.labels?.[s];if(!c)continue;const u=n.get(c)??{o:0,triangle:0,x:0,latest:l,latestAt:o.scoredAt};if(l==="o")u.o++;else if(l==="triangle")u.triangle++;else if(l==="x")u.x++;else continue;u.latest=l,u.latestAt=o.scoredAt,n.set(c,u)}const r=[];for(const[o,s]of n){const l=s.o+s.triangle+s.x;r.push({label:o,tried:l,o:s.o,triangle:s.triangle,x:s.x,rate:il(s.o,s.triangle,l),latest:s.latest,latestAt:s.latestAt})}return r.sort((o,s)=>o.rate-s.rate||s.tried-o.tried||ga(o.label,s.label)),r}function M4(e){const n=new Map;for(const r of e){const o=r.tableId??`name:${r.tableName}`,s=n.get(o)??{tableName:r.tableName,tableId:r.tableId,rows:[]};s.rows.push(r),n.set(o,s)}const a=[];for(const r of n.values()){const o=[...r.rows].sort((l,c)=>l.scoredAt.localeCompare(c.scoredAt)),s=o.map(l=>{const c=Object.values(l.marks),u=c.filter(h=>h==="o").length,d=c.filter(h=>h==="triangle").length;return il(u,d,c.filter(h=>h==="o"||h==="triangle"||h==="x").length)});a.push({tableName:r.tableName,tableId:r.tableId,rates:s,times:o.map(l=>l.scoredAt),delta:s.length>=2?s[s.length-1]-s[0]:null})}return a.sort((r,o)=>(o.times[o.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function L4(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function $4(e){const n=new Map;let a=0,r=0;const o=[...e].sort((l,c)=>l.answeredAt.localeCompare(c.answeredAt));for(const l of o){if(l.isCorrect==null)continue;const c=l.itemTitle?.trim();if(!c){r++;continue}a++;const u=l.itemId?.trim()||c,d=`${l.trainingType}|${u}`,h=n.get(d)??{trainingType:l.trainingType,itemId:u,title:c,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};h.tried++,l.isCorrect||h.wrong++,h.title=c,h.latestCorrect=l.isCorrect,h.latestAt=l.answeredAt,h.lastSelected=l.selected,l.setId&&!h.setIds.includes(l.setId)&&h.setIds.unshift(l.setId),n.set(d,h)}const s=[...n.entries()].map(([l,c])=>({key:l,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return s.sort((l,c)=>l.rate-c.rate||c.tried-l.tried||ga(l.title,c.title)),{items:s,counted:a,skippedNoTitle:r}}function R4(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function P4(e){const n=new Map;for(const r of e){const o=n.get(r.trainingType)??[];o.push(r),n.set(r.trainingType,o)}const a=[...n.entries()].map(([r,o])=>({trainingType:r,items:o,pending:o.filter(s=>!s.latestCorrect).length}));return a.sort((r,o)=>o.pending-r.pending||r.trainingType.localeCompare(o.trainingType)),a}const wr=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function I4(e){const n=new Map;let a=0;for(const s of e){if(s.latestCorrect)continue;const l=s.setIds[0];if(!l){a++;continue}const c=`${s.trainingType}|${l}`,u=n.get(c)??{setId:l,trainingType:s.trainingType,pending:0};u.pending++,n.set(c,u)}const r=(s,l)=>l.pending-s.pending||s.trainingType.localeCompare(l.trainingType)||s.setId.localeCompare(l.setId),o=[...n.values()];return{sentence:o.filter(s=>wr.includes(s.trainingType)).sort(r),word:o.filter(s=>!wr.includes(s.trainingType)).sort(r),noSet:a}}function F4(e,n,a=5){const r=new Set(n);if(r.size===0)return[];const o=[];for(const s of e){const l=new Set,c=[];for(const u of s.cellLabels)r.has(u)&&!l.has(u)&&(l.add(u),c.push(u));c.length!==0&&o.push({id:s.id,name:s.name,kind:s.kind,covered:c,totalCells:s.cellLabels.length})}return o.sort((s,l)=>l.covered.length-s.covered.length||s.totalCells-l.totalCells||ga(s.name,l.name)),o.slice(0,Math.max(0,a))}function O4(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function H4(e,n){const a=new Map;for(const o of e)for(const s of o.cells){const l=o.labelOf(s);a.has(l)||a.set(l,s)}const r=[];for(const o of n){const s=a.get(o);s!==void 0&&r.push(s)}return r}function V4(e){if(!e||e<=0)return"-";const n=Math.floor(e/60),a=e%60;return n>0?`${n}\uBD84${a>0?` ${a}\uCD08`:""}`:`${a}\uCD08`}function z4(e,n){const a=[],r=new Set;for(const o of e){const s=n(o);r.has(s)||(r.add(s),a.push({key:s,value:o,pinned:!1}))}return a}function W4(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function q4(e,n){return e.filter(a=>a.key!==n)}function U4(e,n,a){const r=e.filter(d=>d.pinned),o=new Set(r.map(d=>d.key)),s=e.length-r.length,l=[],c=new Set(o);for(const d of n){if(l.length>=s)break;const h=a(d);c.has(h)||(c.add(h),l.push({key:h,value:d,pinned:!1}))}const u=[...l];return e.map(d=>d.pinned?d:u.shift()).filter(d=>d!==void 0)}function G4(e){return e.map(n=>n.value)}function K4(e){const{category:n={},isSelected:a=!1,onClick:r}=e||{},o=n?.key?` icon-grid-menu__button--${n.key}`:"",s=i.useId();return t.jsxs("div",{className:`icon-grid-menu__button-wrapper${o}`,children:[t.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":n?.key,onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":s,disabled:a,children:t.jsx(Oe,{icon:n.icon,label:n.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"})}),t.jsx("span",{id:s,className:"icon-grid-menu__button-label button-1",children:n.label})]})}function Z4(e){const{categories:n=[],selected:a,onSelect:r,size:o="medium"}=e||{},s=a??(n&&n[0]?.key)??null,[l,c]=i.useState(s??null);i.useEffect(()=>{a!=null&&c(a)},[a]);const u=i.useRef(r),d=i.useRef(l),h=i.useRef(a!==void 0);i.useEffect(()=>{!h.current&&d.current&&typeof u.current=="function"&&u.current(d.current)},[]);const p=i.useCallback(m=>{const g=l===m?null:m;c(g),r?.(g)},[l,r]);return t.jsx("div",{className:`icon-grid-menu icon-grid-menu--${o}`,children:(n||[]).map(m=>t.jsx(K4,{category:m,isSelected:l===m.key,onClick:()=>p(m.key)},m.key))})}function Y4({subs:e=[],selected:n,onSelect:a,size:r="medium"}){const o=r==="small"?32:40;return t.jsx("div",{className:`choice-chips choice-chips--${r}`,children:t.jsx("div",{className:"choice-chips__list",children:e.map(s=>t.jsx(ne,{size:o,type:"bar",label:s.label,selected:n===s.key,className:"choice-chips__button",onClick:()=>a?.(s.key)},s.key))})})}function X4({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",o=a?.tel??"031-380-3724",{t:s}=pe.useTranslation();return t.jsx("footer",{className:"site-footer",children:t.jsxs("div",{className:"safearea",children:[t.jsxs("div",{className:"site-footer__top",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("div",{className:"site-footer__lead h3",children:s("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
966
966
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
967
967
|
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
|
|
968
|
-
`).map((l,c,d)=>t.jsxs(i.Fragment,{children:[l,c<d.length-1&&t.jsx("br",{})]},c))})}),t.jsxs("div",{className:"site-footer__links",children:[t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:s("footer.site.title","\uC0AC\uC774\uD2B8")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:s("footer.site.malgwi","\uB9D0\uADC0")})}),t.jsx("li",{children:t.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")})}),t.jsx("li",{children:t.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")})}),t.jsx("li",{children:t.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")})})]})]}),t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:s("footer.sns.title","SNS")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.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")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),t.jsx("li",{children:t.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"})})]})]}),t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:s("footer.policy.title","\uC815\uCC45")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"#",onClick:l=>{e&&(l.preventDefault(),e())},children:s("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"#",onClick:l=>{n&&(l.preventDefault(),n())},children:s("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),t.jsx("hr",{className:"site-footer__rule"}),t.jsxs("div",{className:"site-footer__bottom",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("img",{src:sr,alt:"IHAB",className:"site-footer__logo"})}),t.jsxs("div",{className:"site-footer__meta",children:[t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:s("footer.ceo","\uB300\uD45C")}),t.jsx("span",{className:"footer-meta caption-1",children:s("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:s("footer.address","\uC8FC\uC18C")}),t.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")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:s("footer.support","\uACE0\uAC1D\uC13C\uD130")}),t.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",o]})]})]})]}),t.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function J4({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:o,className:s,containerClassName:l,renderLink:c,menuLabel:d={open:"\uBA54\uB274 \uC5F4\uAE30",close:"\uBA54\uB274 \uB2EB\uAE30"}}){const[u,h]=i.useState(!1),p=l?`${l} landing-header__inner`:"landing-header__inner",f=(g,C)=>c?c(g,{onClick:C}):t.jsx("a",{href:g.href,onClick:C,"aria-current":g.current?"page":void 0,children:g.label});return t.jsxs("header",{className:s?`landing-header ${s}`:"landing-header",children:[t.jsxs("div",{className:p,children:[e!=null&&(()=>{const g=typeof e=="string"?t.jsx("img",{src:e,alt:n,className:"landing-header__logo"}):e;return a?t.jsx("a",{href:a,className:"landing-header__brand",children:g}):t.jsx("div",{className:"landing-header__brand",children:g})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map(g=>t.jsx("span",{children:f(g)},g.href))}),t.jsxs("div",{className:"landing-header__actions",children:[o,r.length>0&&t.jsx("button",{type:"button",onClick:()=>h(g=>!g),"aria-expanded":u,"aria-controls":"landing-header-drawer","aria-label":u?d.close:d.open,className:u?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:t.jsxs("span",{className:"landing-header__burger",children:[t.jsx("span",{}),t.jsx("span",{}),t.jsx("span",{})]})})]})]}),r.length>0&&t.jsx("nav",{id:"landing-header-drawer",hidden:!u,className:"landing-header__drawer",children:t.jsx("div",{className:l??void 0,children:r.map(g=>t.jsx("span",{className:"landing-header__drawer-item",children:f(g,()=>h(!1))},g.href))})})]})}function Q4({children:e,action:n,onClick:a,className:r}){const o=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return t.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:t.jsxs("div",{className:o,onClick:a,...Ti(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const ll=9,kr=2,eb=.1,cl=e=>Math.min(kr,Math.max(0,e)),tb=e=>Math.round(e*10)/10;function ba(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return cl(n);const a=Math.min(ll,Math.max(0,Number(e.level)||0))/ll,r=Number(e.mainVolume);return r>0?tb(cl(a/r)):1}const ul=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function nb(e){return ul(e)}function dl(e){return ul(e)*ba(e)}function pl(e,n=Vo()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,dl(e)/a)}function Ar(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=ba({level:a.level,mainVolume:a.mainVolume})),a}const Nr={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},hl=i.createContext(null);function Br(){return i.useContext(hl)}const Sr=e=>`${fm()}/${e}`,ml=e=>Array.from({length:10},(n,a)=>Sr(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),ya={get defaultNoise(){return Sr("noise1.mp3")},get street(){return ml("noise2")},get restaurant(){return ml("noise3")},get buzz(){return Sr("noise4.mp3")}};function ab(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return ya.defaultNoise;case"street":return ya.street[n];case"restaurant":return ya.restaurant[n];case"buzz":return ya.buzz;default:return null}}function rb({noisePlayer:e,audioRef:n,playbackStateRef:a}){const r=i.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const o=i.useRef(null),[s,l]=i.useState(null),c=i.useRef(null),d=i.useRef(null),u=i.useRef(null),h=i.useRef(0),p=i.useRef(null),f=i.useCallback(()=>{u.current!==null&&(cancelAnimationFrame(u.current),u.current=null),p.current!==null&&(clearTimeout(p.current),p.current=null)},[]),g=i.useCallback((b,w=250)=>{const _=o.current;if(!_||!_.src)return;h.current+=1,f();try{Va(),oa(_).then(A=>{try{r.current?.("noise",A)}catch{}})}catch{}const y=_.paused?0:sa(_);_.paused&&sn(_,0),_.play().catch(()=>{});const S=performance.now(),x=()=>{const A=Math.min(1,(performance.now()-S)/w);try{sn(_,y+(b-y)*A)}catch{}A<1?u.current=requestAnimationFrame(x):u.current=null};u.current=requestAnimationFrame(x)},[f]),C=i.useCallback((b=250,w)=>{const _=o.current;if(!_||_.paused){w?.();return}const y=++h.current;f();const S=performance.now(),x=sa(_),A=()=>{const M=Math.min(1,(performance.now()-S)/b);try{sn(_,x*(1-M))}catch{}if(M<1)u.current=requestAnimationFrame(A);else{u.current=null,p.current!==null&&(clearTimeout(p.current),p.current=null);try{_.pause()}catch{}w?.()}};u.current=requestAnimationFrame(A),p.current=setTimeout(()=>{if(p.current=null,h.current===y){u.current!==null&&(cancelAnimationFrame(u.current),u.current=null);try{_.paused||(sn(_,0),_.pause(),w?.())}catch{}}},b+150)},[f]);i.useEffect(()=>{const b=document.createElement("audio");return b.loop=!0,b.crossOrigin="anonymous",o.current=b,()=>{f();try{b.pause(),b.src=""}catch{}o.current=null}},[f]);const m=e?pl(e.settings):0,v=!!e?.settings.enabled&&m>0;return i.useEffect(()=>{if(!v)return;let b=0;const w=setInterval(()=>{const _=o.current;if(!_||_.paused){b=0;return}const y=n.current;if(y&&!y.paused&&!y.ended||a.current==="playing"){b=0;return}b+=1,b>=2&&(b=0,C())},400);return()=>clearInterval(w)},[C,v,n,a]),i.useEffect(()=>{const b=()=>{if(!document.hidden)return;const w=o.current;if(w&&!w.paused){f();try{w.pause()}catch{}}};return document.addEventListener("visibilitychange",b),()=>document.removeEventListener("visibilitychange",b)},[f]),i.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,volume:m,type:e.settings.type}:null},[e,e?.settings.enabled,m,e?.settings.type]),i.useEffect(()=>{const b=e?.settings,w=o.current;if(!w)return;const _=b?pl(b):0;if(!b||!b.enabled||_===0){C();return}if(c.current!==b.type){const y=ab(b.type);y&&(c.current=b.type,l(y),C(150,()=>{w.src=y,w.load();const S=n.current;S&&!S.paused&&w.addEventListener("canplay",function x(){w.removeEventListener("canplay",x);const A=n.current;A&&!A.paused&&!A.ended&&g(_)})}))}else{const y=n.current,S=!!y&&!y.paused&&!y.ended;if(S&&w.paused&&w.src)g(_);else if(!w.paused)if(!S)C();else{f();const x=sa(w),A=performance.now(),M=()=>{const k=Math.min(1,(performance.now()-A)/150);try{sn(w,x+(_-x)*k)}catch{}k<1?u.current=requestAnimationFrame(M):u.current=null};u.current=requestAnimationFrame(M)}}},[e?.settings,e?.settings.enabled,m,e?.settings.type,f,g,C,n]),i.useEffect(()=>{const b=o.current;if(b)try{b.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:o,activeNoiseUrl:s,noiseSettingsRef:d,cancelNoiseFade:f,fadeInNoise:g,fadeOutNoise:C}}function ob({ttsText:e,playbackRate:n,mainVolume:a,fillRef:r,waveProgressRef:o,setProgress:s,setPlaybackState:l,setStateLocal:c,fadeInNoise:d,fadeOutNoise:u,noiseSettingsRef:h,onDoneRef:p,handleEndRef:f}){const g=i.useRef(null),C=i.useRef(0),m=i.useRef(null);i.useEffect(()=>()=>{try{if(m.current&&(cancelAnimationFrame(m.current),m.current=null),window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}}catch{}},[]);const v=(_,y=1)=>{try{const S=(_||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(_||"").length);return Math.max(700,Math.round(S*300/Math.max(.25,y)))}catch{return 1200}},b=i.useCallback(_=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof p.current=="function"&&p.current(!0)}catch{}return}const y=window.speechSynthesis;try{try{y.cancel()}catch{}const S=_??e,x=(Array.isArray(S)?S[0]??"":S)||"",A=new SpeechSynthesisUtterance(x);try{A.rate=Math.max(.3,Math.min(3,n))}catch{}try{A.volume=Math.max(0,Math.min(1,a))}catch{}C.current=v(x,A.rate||1),g.current=performance.now(),s(0),l("playing"),c("playMode");const M=h.current;M?.enabled&&(M?.volume??0)>0&&d(M.volume);const k=()=>{try{const D=g.current||performance.now(),O=performance.now()-D,R=C.current||1200,j=Math.min(1,O/R);s(j);try{r.current&&(r.current.style.left=`${j*100}%`),o.current&&o.current.style.setProperty("--progress",String(j))}catch{}j<1&&(m.current=requestAnimationFrame(k))}catch{}};A.onend=()=>{try{m.current&&(cancelAnimationFrame(m.current),m.current=null),s(1),l("stopped");try{f.current?.()}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{}},A.onstart=()=>{try{m.current&&(cancelAnimationFrame(m.current),m.current=null),m.current=requestAnimationFrame(k)}catch{}};try{y.speak(A)}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}},[e,n,a,d,r,o,s,l,c,h,p,f]),w=i.useCallback(()=>{try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}m.current&&(cancelAnimationFrame(m.current),m.current=null),u(),g.current=null}catch{}l("stopped"),c("active"),s(0)},[u,l,c,s]);return{startTTS:b,stopTTS:w}}async function sb(e,n,a){try{const r=window.AudioContext||window.webkitAudioContext,o=new r,s=await o.decodeAudioData(e.slice(0)),l=s.numberOfChannels>0?s.getChannelData(0):null;if(!l)return null;const c=a&&a>0?Math.min(l.length,Math.floor(a*s.sampleRate)):l.length,d=Math.max(n,c),u=Math.floor(d/n)||1,h=new Array(n).fill(0).map((p,f)=>{const g=f*u,C=Math.min(g+u,d);let m=0;for(let v=g;v<C;v++){const b=Math.abs(l[v]);b>m&&(m=b)}return m});try{o.close&&o.close()}catch{}return h}catch{return null}}async function fl(e,n,a){try{const r=await(await fetch(e)).arrayBuffer();return await sb(r,n,a)}catch(r){try{const o=Jo(r)}catch{}return null}}const ib=45;function va(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function Cl(e){return va(e)/45}const gl=4;function lb(e){const{src:n,segments:a,progress:r=0,waveProgressRef:o,noiseSrc:s,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:d=0,mainVolume:u=1,onReadyChange:h,showSoundWaveForm:p=!0}=e,f=i.useRef(null),g=i.useRef(null),[C,m]=i.useState(null),[v,b]=i.useState(!1),[w,_]=i.useState(null),[y,S]=i.useState(2),[x,A]=i.useState(0),[M,k]=i.useState(null),[D,O]=i.useState(!1),R=3,j=3,P=1,B=300,F=i.useRef(0),Z=i.useCallback(async(de,Ce)=>{const ve=++F.current,he=()=>F.current===ve;try{if(b(!1),!de){he()&&m(null);return}let T=Ce;if(!T)try{for(let Ve=0;Ve<4&&!(f.current||g.current);Ve++)await new Promise(Re=>requestAnimationFrame(Re));await new Promise(Ve=>requestAnimationFrame(Ve));const Q=f.current,_e=g&&g.current?g.current:Q?Q.closest(".audio-player__wave"):null,ue=_e?_e.getBoundingClientRect():Q?Q.getBoundingClientRect():null,ie=ue?Math.max(100,ue.width):320,ae=ue?ue.height:0;ae>0&&A(ae),T=Math.max(P,Math.min(B,Math.floor((ie+j)/(R+j))));const se=T*R,Se=Math.max(0,T-1),He=Se>0?(ie-se)/Se:j;S(Math.max(0,He))}catch{T=120}const W=await fl(de,T);if(!he())return;if(!W){m(null),b(!1);return}m(W),_(T),b(!0)}catch{if(!he())return;m(null),b(!1)}},[b,m,A,S,_]);i.useEffect(()=>{const de=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;Z(typeof de=="string"?de:void 0).catch(()=>{}),O(!1)},[n,a,Z]),i.useEffect(()=>{let de=!1;if(!s||!w){k(null);return}const Ce=d>0?d*(c||1):void 0;return fl(s,w,Ce).then(ve=>{de||k(ve)}).catch(()=>{de||k(null)}),()=>{de=!0}},[s,w,d,c]);const Y=Math.max(0,Math.min(1,u)),J=i.useMemo(()=>C&&C.length&&Math.max(...C)||1,[C]),E=w||40,$=i.useMemo(()=>Array.from({length:E}).map((de,Ce)=>{const ve=C&&C[Ce]!=null?C[Ce]:null,he=ve==null?null:Math.min(1,ve/J*Y),T=he!=null&&x>0&&va(he)<=gl,W=he==null?.15:T?0:Cl(he),Q=E>1?Ce/(E-1):0;return t.jsx("div",{className:T?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":W,"--i":Ce,"--mix":Q}},Ce)}),[E,C,J,Y,x]),L={"--progress":String(Math.max(0,Math.min(1,r)))},V=s?Math.max(1,l):1,H={"--bar-gap":`${y}px`,"--wave-h":`${va(V)}px`,"--wave-h1":`${ib}px`},X=Y*Math.max(0,l)/Vo(),I=v&&(s?!!M:!0);i.useEffect(()=>{I&&O(!0)},[I]);const U=D?v:I;i.useEffect(()=>{h?.(U)},[U,h]);const q=w||40,le=i.useMemo(()=>Array.from({length:q}).map((de,Ce)=>{const ve=M&&M[Ce]!=null?M[Ce]:null,he=ve==null?0:ve/J*X,T=x>0&&va(he)<=gl,W=T?0:Cl(he),Q=q>1?Ce/(q-1):0;return t.jsx("div",{className:T?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":W,"--i":Ce,"--mix":Q}},Ce)}),[q,M,J,X,x]);return t.jsxs("div",{className:"audio-player__wave",ref:g,style:H,children:[s&&t.jsx("div",{className:`audio-player__wave-noise ${I?"is-ready":""}`,"aria-hidden":"true",children:le}),p&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${U?"is-ready":""}`,ref:f,children:$}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${U?"is-ready":""}`,ref:o,style:L,children:$})]})]})}const cb={idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"};function Dr(e,n){return new Promise((a,r)=>{const o=document.createElement("audio");let s=!1;const l=()=>{try{o.src=""}catch{}},c=()=>{if(s)return;s=!0;const u=isFinite(o.duration)&&o.duration||0;l(),a(u)},d=u=>{s||(s=!0,l(),n.rejectOnError?r(new Error(u)):a(0))};o.addEventListener("loadedmetadata",c),o.addEventListener("error",()=>d("audio load failed")),setTimeout(()=>d("audio load timeout"),n.timeoutMs),o.src=e})}const ub=2e3;function bl(e,n=ub){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.addEventListener("canplay",o,{once:!0}),e.addEventListener("error",o,{once:!0}),setTimeout(o,n)})}function db({showSoundWaveForm:e,showNoiseWaveForm:n,timeoutMs:a=2500}){const r=i.useRef(!1),o=i.useRef([]),s=i.useCallback(d=>{if(r.current=d,!d||!o.current.length)return;const u=o.current;o.current=[];for(const h of u)h()},[]),l=i.useCallback(()=>{r.current=!1},[]),c=i.useCallback(()=>!e&&!n||r.current?Promise.resolve():new Promise(d=>{const u=setTimeout(d,a);o.current.push(()=>{clearTimeout(u),d()})}),[e,n,a]);return i.useEffect(()=>()=>{const d=o.current;o.current=[];for(const u of d)u()},[]),{onReadyChange:s,waitForReady:c,markNotReady:l}}function pb(){const e=i.useRef([]),n=i.useCallback(o=>(e.current.push(o),o),[]),a=i.useCallback(o=>{const s=new Set([...o].filter(Boolean));e.current=e.current.filter(l=>{if(s.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=i.useCallback(()=>{a([])},[a]);return i.useEffect(()=>()=>{for(const o of e.current)try{URL.revokeObjectURL(o)}catch{}e.current=[]},[]),{track:n,keepOnly:a,revokeAll:r}}function hb({offsetY:e=8}={}){const n=i.useRef(null),[a,r]=i.useState(null),o=i.useCallback(()=>r(null),[]),s=i.useCallback(()=>{try{const l=n.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 i.useEffect(()=>{if(a)return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[a,o]),{ref:n,rect:a,show:s,hide:o}}function mb({currentTime:e,sources:n,index:a,audioDuration:r}){const o=a||0,s=Array.isArray(n)&&n.length>0?n[o]:void 0,l=s?s.duration||r||0:r||0;if(!(l>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/l))}function fb(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function Cb({ended:e,completedByEnd:n}){return!!e||!!n}function gb(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function bb(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function yb(e,n,a){const r=Array.isArray(e)?e:e?[e]:[],o=[];for(const s of r)if(s){if(typeof s=="object"&&s!==null&&"src"in s&&s.src){const l=s;o.push({code:l.code??null,src:l.src});continue}if(typeof s=="string"&&(s.startsWith("http")||s.includes("/"))){o.push({code:null,src:s});continue}if(typeof s=="string"||typeof s=="number"){const l=String(s),c=a(l,n);c&&o.push({code:l,resolvedPath:c})}}return o}function vb({audioRef:e,fillRef:n,waveProgressRef:a,sourcesRef:r,currentIndexRef:o}){const s=i.useRef(null),l=i.useCallback(()=>{s.current!==null&&(cancelAnimationFrame(s.current),s.current=null)},[]),c=i.useCallback(()=>{if(s.current!==null)return;const u=()=>{try{const h=e.current,p=mb({currentTime:h&&typeof h.currentTime=="number"?h.currentTime:0,sources:r.current,index:o.current,audioDuration:h&&h.duration?h.duration:0});try{n.current&&(n.current.style.left=`${p*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(p))}catch{}}catch{}s.current=requestAnimationFrame(u)};s.current=requestAnimationFrame(u)},[e,n,a,r,o]),d=i.useCallback(u=>{l();try{n.current&&(n.current.style.left=`${u*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(u))}catch{}},[l,n,a]);return i.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:d}}function jr({btnLabel:e,soundSrc:n,bucketPath:a,onDone:r,disabled:o=!1,ttsText:s=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:d=!0}){const{t:u}=pe.useTranslation(),h=e,p=Br(),f=i.useRef(p?.registerAnalyser);i.useEffect(()=>{f.current=p?.registerAnalyser});const g=i.useRef(null),C=i.useRef(null),m=i.useRef(null),v=pb(),b=i.useRef(null),w=i.useRef(!1),_=i.useRef(0),y=i.useRef(null),{ref:S,rect:x,show:A,hide:M}=hb();i.useEffect(()=>()=>{f.current?.("main",null),f.current?.("noise",null)},[]);const[k,D]=i.useState(!1),[O,R]=i.useState("idle"),[j,P]=i.useState("stopped"),B=i.useRef("stopped");i.useEffect(()=>{B.current=j},[j]);const[F,Z]=i.useState(0),[Y,J]=i.useState("active"),[E,$]=i.useState(null),[L,V]=i.useState(null),[H,X]=i.useState(0),[I,U]=i.useState(!1),[q,le]=i.useState(0),de=p?.playbackRate??1,Ce=p?.mainVolume??1,ve=p?dl(p.settings):0,he=p?nb(p.settings):Ce,[T,W]=i.useState("idle"),[Q,_e]=i.useState(""),[ue]=i.useState("top"),ie=i.useRef(null),ae=i.useRef(0),se=i.useRef(null),{start:Se,stop:He,settleTo:Ve}=vb({audioRef:g,fillRef:C,waveProgressRef:se,sourcesRef:ie,currentIndexRef:ae}),{onReadyChange:Re,waitForReady:Ee,markNotReady:je}=db({showSoundWaveForm:c,showNoiseWaveForm:d}),Ae=i.useRef(null),ze=i.useRef(o),at=i.useRef(r),ge=i.useRef(null),Pe=i.useRef(!1),[$e,Ke]=i.useState(!1),Ze=i.useCallback(K=>{Pe.current=K,Ke(K)},[]),Ue=i.useRef(null),{activeNoiseUrl:Ie,noiseSettingsRef:dt,fadeInNoise:ct,fadeOutNoise:qe}=rb({noisePlayer:p,audioRef:g,playbackStateRef:B}),{startTTS:ot,stopTTS:Te}=ob({ttsText:s,playbackRate:de,mainVolume:he,fillRef:C,waveProgressRef:se,setProgress:Z,setPlaybackState:P,setStateLocal:J,fadeInNoise:ct,fadeOutNoise:qe,noiseSettingsRef:dt,onDoneRef:at,handleEndRef:Ue}),Me=Array.isArray(n)?n.filter(Boolean):n?[n]:[],tt=(!Me||Me.length===0)&&!!s,ft=Array.isArray(E)&&E.length>0?E:Array.isArray(L)&&L.length>0?L:null,Ye=Math.max(Array.isArray(ft)?ft.length:0,Me.length),Xe=i.useCallback(async(K,te=3,be=50)=>{for(let xe=0;xe<te;xe++)try{return await K.play(),!0}catch(De){if((De instanceof Error||typeof De=="object"&&De&&"name"in De?De.name:void 0)==="AbortError"){await new Promise(ee=>setTimeout(ee,be));continue}try{_e(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}try{_e(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[u]),ht=i.useCallback(()=>{const K=g.current;if(!K)return;const te=()=>{P("playing"),J("playMode"),U(!0),Se();try{Va(),oa(K).then(ee=>{try{f.current?.("main",ee)}catch{}})}catch{}const De=dt.current;De?.enabled&&(De?.volume??0)>0&&ct(De.volume)},be=()=>{Cb({ended:!!K?.ended,completedByEnd:Pe.current})||(P("paused"),He(),qe())},xe=()=>{try{const De=ie.current,ee=fb(De,ae.current);if(ee!==null){ae.current=ee,X(ee),U(!0);const ke=De?.[ee]&&De[ee].src;if(ke&&K){K.src=ke,K.load(),Xe(K).catch(()=>{});return}}}catch{}P("stopped"),Z(1);try{if(K)try{K.currentTime=0}catch{}}catch{}He(),U(!1),qe();try{!ze.current&&Ue.current&&Ue.current()}catch{}};return K.addEventListener("play",te),K.addEventListener("pause",be),K.addEventListener("ended",xe),()=>{try{K.removeEventListener("play",te),K.removeEventListener("pause",be),K.removeEventListener("ended",xe),He()}catch{}}},[ct,qe,Xe,dt,Se,He]);i.useEffect(()=>ht(),[ht]),i.useEffect(()=>{ze.current=o},[o]),i.useEffect(()=>{at.current=r},[r]),i.useEffect(()=>{if(o||Y!=="active")return;const K=y.current;if(!K)return;let te=null;const be=requestAnimationFrame(()=>{try{const xe=K.getTotalLength();if(!xe)return;const De=xe*.2;K.style.strokeDasharray=`${xe-De} ${De}`;const ee="triFlow_"+Math.random().toString(36).slice(2);te=document.createElement("style"),te.textContent=`@keyframes ${ee}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${xe}}}`,document.head.appendChild(te),K.style.animation=`${ee} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(be),te?.remove()}},[Y,o]),i.useEffect(()=>{ie.current=E},[E]),i.useEffect(()=>{ae.current=H},[H]),i.useEffect(()=>{const K=m.current,te=b.current;if(!K||!te)return;let be=null;const xe=32,De=60,ee=()=>{try{const Fe=Array.from(K.querySelectorAll(":scope > .button"));let et=0;Fe.forEach(St=>{if(St===te)return;const gn=St.getBoundingClientRect();et+=gn.width});const Ct=K.getBoundingClientRect().width,Bt=Math.max(0,Math.floor(Ct-et-8)),$t=Ye;if(!$t||Bt<=0){Array.from(te.children).forEach(St=>{try{St.style.width=""}catch{}});return}let Rt=Math.floor(Bt/$t);Rt>De&&(Rt=De),Rt<xe&&(Rt=Math.max(xe,Math.floor(Bt/$t))),Array.from(te.querySelectorAll(".button")).forEach(St=>{try{St.style.width=`${Rt}px`}catch{}})}catch{}},ke=requestAnimationFrame(ee);try{be=new ResizeObserver(()=>{requestAnimationFrame(ee)}),be.observe(K),be.observe(te),window.addEventListener("resize",ee)}catch{}return()=>{try{cancelAnimationFrame(ke)}catch{}try{be&&(be.disconnect(),be=null)}catch{}try{window.removeEventListener("resize",ee)}catch{}}},[E,L,Ye]),i.useEffect(()=>()=>{try{Ae.current&&(clearTimeout(Ae.current),Ae.current=null),ge.current&&(clearTimeout(ge.current),ge.current=null)}catch{}},[]);const Et=(K,te)=>{$(K),le(te),je(),V(gb(K)),ie.current=K},Qe=async(K,te)=>{Ze(!1),w.current=!1,K.src=te,K.load(),await bl(K),await Ee(),D(!1),await Xe(K),J("playMode"),X(0),U(!0)},vt=async(K,te=!1)=>{const be=g.current;D(!0),R("measuring_duration");try{const xe=await Dr(K,{timeoutMs:1e4,rejectOnError:!0});Et([{src:K,objectUrl:null,duration:xe}],xe),R("ready"),te&&be&&await Qe(be,K)}finally{w.current=!1,D(!1)}},Tt=async(K,te=!1)=>{const be=g.current;D(!0),R("measuring_duration");try{const xe=await Promise.all(K.map(ee=>Dr(ee,{timeoutMs:1e4}))),De=K.map((ee,ke)=>({src:ee,objectUrl:null,duration:xe[ke]||0}));Et(De,bb(De)),R("ready"),te&&be&&De.length>0&&await Qe(be,De[0].src)}finally{w.current=!1,D(!1)}},Gt=async(K=!1,te=!0)=>{const be=g.current,xe=n?Array.isArray(n)?n:[n]:[];if(!(!xe||xe.length===0||!xe.some(Boolean))&&!w.current){w.current=!0,te&&D(!0),R("resolving");try{const De=yb(n,a,Fo),ee=[];let ke=0;for(const Fe of De){let et=Fe.src??null,Ct=null;if(!et&&Fe.resolvedPath){try{R("getting_signed_url"),et=await Oo(Fe.resolvedPath)}catch{et=null}if(!et)try{R("downloading");const $t=await Ho(Fe.resolvedPath);if($t){const Rt=$t instanceof Blob?$t:new Blob([$t]);Ct=v.track(URL.createObjectURL(Rt)),et=Ct}}catch{R("error");try{_e(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),J("active")}catch{}}}if(!et)continue;let Bt=0;try{R("measuring_duration"),Bt=await Dr(et,{timeoutMs:3e3})}catch{Bt=0}ke+=Bt||0,ee.push({...Fe,src:et,objectUrl:Ct,duration:Bt})}if(Et(ee,ke),ee.length>0&&K&&be){const Fe=ee[0];Ze(!1);try{v.keepOnly(ee.map(et=>et.objectUrl))}catch{}if(R("ready"),w.current=!1,Fe.src&&be)try{be.src=Fe.src,be.load(),await bl(be),await Ee(),te&&D(!1),be&&await Xe(be)}catch{te&&D(!1)}else te&&D(!1);J("playMode"),X(0),U(!0)}}finally{w.current=!1,te&&D(!1),R(De=>De==="ready"?"ready":"idle")}}},an=async()=>{const K=g.current;if(!(!K&&!tt)){if(tt){const te=window.speechSynthesis;if(Y==="active"){const be=Fa(),xe=Array.isArray(s)?s.filter(Boolean):s?[s]:[];if(be&&xe.length>0){J("load"),D(!0),R("resolving"),w.current=!0;try{const De=await Promise.all(xe.map(ee=>Promise.resolve(be(ee))));De.length>1?await Tt(De,!0):await vt(De[0],!0)}catch{w.current=!1,D(!1),J("active"),ot(xe[0]||void 0)}return}ot(xe[0]||void 0);return}if(Y==="playMode"){if(K){if(K.paused){if(Pe.current){await It();return}await Xe(K),P("playing")}else K.pause(),P("paused");return}try{if(te&&te.paused)try{te.resume(),P("playing")}catch{}else try{te.pause(),P("paused")}catch{}}catch{}}return}if(Y==="active"){if(o&&Array.isArray(ie.current)&&ie.current.length>0){const te=ie.current[0];try{if(te.src&&K)try{K.src=te.src,K.load(),K&&await Xe(K)}catch{}J("playMode"),X(0),U(!0);return}catch{}}J("load"),await Gt(!0);return}if(Y!=="load"&&(Y==="playMode"||Y==="active"))try{if(K&&K.paused){if(Pe.current){await It();return}K&&await Xe(K),P("playing")}else K&&(K.pause(),P("paused"))}catch(te){(te instanceof Error||typeof te=="object"&&te&&"name"in te)&&te.name}}},It=async()=>{const K=g.current;if(K)try{const te=ie.current;if(Array.isArray(te)&&te.length>1){await Kt(0);return}Ze(!1);try{K.currentTime=0}catch{}K&&await Xe(K),P("playing"),J("playMode")}catch{}},zt=()=>{if(tt){Te();return}const K=g.current;try{if(K){try{K.pause()}catch{}try{K.currentTime=0}catch{}}}catch{}qe(),P("stopped"),J("active"),Z(0),U(!1)},Wt=async(K,{sameSegment:te=!1}={})=>{const be=++_.current,xe=g.current,De=ie.current?.[K]?.src;try{if(Ze(!1),X(K),U(!0),ae.current=K,!De||!xe||(te||je(),xe.src=De,xe.load(),te||await Ee(),be!==_.current)||(await Xe(xe),be!==_.current))return;P("playing"),J("playMode")}catch{}},xt=async()=>{const K=ie.current,te=ae.current||0;if(!K||te<=0){await It();return}await Wt(te-1)},fn=async()=>{const K=ie.current,te=ae.current||0;if(!K||te>=K.length-1){zt();return}await Wt(te+1)},_t=()=>{if(Pe.current)return;const K=200,te=340;Ze(!0);try{Z(1)}catch{}Ve(1);try{W("hold")}catch{}try{const be=g.current,xe=tt&&!!be?.src;if(!tt||xe){if(be){be.pause();try{be.currentTime=0}catch{}}}else Te();qe()}catch{}try{P("stopped")}catch{}if(U(!1),!ze.current)try{ge.current&&(clearTimeout(ge.current),ge.current=null),ge.current=setTimeout(()=>{try{W("out")}catch{}ge.current=setTimeout(()=>{try{typeof at.current=="function"&&at.current(!0)}catch{}try{W("idle")}catch{}ge.current=null},te)},K)}catch{}};i.useEffect(()=>{Ue.current=_t});const Cn=i.useCallback(()=>_e(""),[]),Kt=async K=>{(ie.current||[])[K]&&await Wt(K,{sameSegment:K===ae.current})},Ge=j==="playing",Mt=i.useMemo(()=>{if(!L||L.length<=1)return L;const K=L[H];return K?[K]:L},[L,H]),wt=o===!0;i.useEffect(()=>{try{const K=g.current;K&&typeof K.playbackRate=="number"&&(K.playbackRate=de||1)}catch{}},[de]);const Zt=i.useRef({raf:null,timer:null});i.useEffect(()=>{const K=g.current;if(!K)return;const te=Math.max(0,Math.min(1,he)),be=Zt.current,xe=()=>{be.raf!==null&&(cancelAnimationFrame(be.raf),be.raf=null),be.timer!==null&&(clearTimeout(be.timer),be.timer=null)};xe();const De=sa(K);if(K.paused||Math.abs(De-te)<.001||typeof requestAnimationFrame!="function"){try{sn(K,te)}catch{}return}const ee=performance.now(),ke=()=>{const Fe=Math.min(1,(performance.now()-ee)/150);try{sn(K,De+(te-De)*Fe)}catch{}be.raf=Fe<1?requestAnimationFrame(ke):null};return be.raf=requestAnimationFrame(ke),be.timer=setTimeout(()=>{xe();try{sn(K,te)}catch{}},200),xe},[he]);const Ft=T==="hold",Lt=T==="out",qt=Y==="playMode"&&!k&&!$e||Ft||Lt,oe=j!=="stopped"||Ft||Lt,me=j==="paused",fe=Math.max(0,Math.min(100,(F||0)*100)),Ne=ye("audio-player__fill",qt?"is-visible":"",oe?"is-expanded":"",me?"is-paused":"",Lt?"is-out":"");return t.jsxs("div",{className:`audio-player ${wt?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof h=="string"?h:void 0,children:[t.jsxs("div",{className:`audio-player__panel ${Ge?"is-playing":""} ${k?"is-loading":""} ${Y!=="default"?"is-revealed":""}`,children:[k?t.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[t.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),t.jsx("span",{className:"audio-player__loading-text",children:cb[O]})]}):null,Y==="active"?t.jsx("button",{className:"audio-player__button",type:"button",onClick:()=>{M(),an()},"aria-label":typeof h=="string"?h:u("training.listen","\uB4E3\uAE30"),onMouseEnter:A,onMouseLeave:M,onFocus:A,onBlur:M,children:t.jsx("span",{ref:S,className:"audio-player__button-triangle-wrap",children:t.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:t.jsx("path",{ref:y,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,x&&t.jsx(cn,{anchorRect:x,text:typeof h=="string"&&h?h:u("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),t.jsxs("div",{className:`audio-player__play ${Y==="playMode"||Ge?"is-visible":""}`,children:[t.jsxs("div",{ref:m,className:"audio-player__buttons",children:[t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:xt,ariaLabel:u("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Y!=="playMode"}),t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Ge?"pause":"play",onClick:an,ariaLabel:u("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),width:"60px",variant:"transparent-white",disabled:Y!=="playMode"}),t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:zt,ariaLabel:u("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Y!=="playMode"}),Ye>1?t.jsx("div",{ref:b,className:"audio-player__source-buttons",children:Array.from({length:Ye}).map((K,te)=>t.jsx(ne,{size:32,type:"dot",shape:"pill",useBorder:!1,label:String(te+1),onClick:()=>{try{Kt(te)}catch{}},ariaLabel:u("training.sourcePlay",{n:te+1}),variant:"transparent-white",selected:I&&H===te,disabled:Y!=="playMode"||!(Array.isArray(E)&&E[te]),showTooltipInfo:!0},te))}):null,!Array.isArray(E)||E.length<=1?t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:It,ariaLabel:u("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:Y!=="playMode"}):null,t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:fn,ariaLabel:u("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:Y!=="playMode"}),t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:_t,ariaLabel:u("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:Y!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:Ne,ref:C,style:{left:`${fe}%`},"aria-hidden":"true"}),(c||d)&&t.jsx(lb,{segments:Mt,progress:F,totalDuration:q,onSegmentClick:Kt,waveProgressRef:se,showSoundWaveForm:c,noiseSrc:d&&p?.settings.enabled&&ve>0?Ie:null,noiseRatio:p?ba(p.settings):0,noiseSpeed:p?.settings.speed??1,mainVolume:Ce,onReadyChange:Re})]})]}),t.jsx("audio",{ref:g,crossOrigin:"anonymous",preload:"auto"})]}),!c&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(Oe,{icon:"triangle-alert",size:14}),u("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),t.jsx(Tn,{message:Q,position:ue,onClose:Cn})]})}function xa(e){const{t:n}=pe.useTranslation(),{text:a,label:r,anchorRect:o=null,onClose:s,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[d,u]=i.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});i.useEffect(()=>{try{localStorage.setItem("tooltip-theme",d)}catch{}},[d]);const{increase:h,decrease:p,canIncrease:f,canDecrease:g,fontSize:C,lineHeight:m}=Ps({storageKey:"tooltip-fontScale"}),v=i.useCallback(()=>u(S=>S==="dark"?"light":"dark"),[]),b=i.useCallback(S=>{try{S.stopPropagation()}catch{}try{typeof s=="function"&&s()}catch{}},[s]),w=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],_={fontSize:`${C}px`,lineHeight:`${m}px`,"--tt-line-height":`${m}px`,"--tt-marker-size":"28px"},y=t.jsxs("div",{className:`tooltip-textbox__root ${d==="dark"?"is-dark":""}`,children:[t.jsxs("div",{className:"tooltip-textbox__box",children:[r&&t.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),t.jsx("div",{className:"tooltip-textbox__text body-1",style:_,children:w.map((S,x)=>t.jsxs("div",{className:"tooltip-textbox__line",children:[w.length>1?t.jsx("div",{className:"tooltip-textbox__marker",children:t.jsx("span",{className:"tooltip-textbox__line-number button-1",children:x+1})}):null,t.jsx("span",{className:"tooltip-textbox__line-text",children:S})]},x))})]}),t.jsxs("div",{className:"tooltip-textbox__buttons",children:[t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:p,ariaLabel:n("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!g}),t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:h,ariaLabel:n("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!f}),t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:d==="dark"?"moon":"sun-medium",onClick:v,ariaLabel:n("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:d==="dark"?"transparent-white":"transparent-gray"}),t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:b,ariaLabel:n("common.close","\uB2EB\uAE30"),variant:d==="dark"?"transparent-white":"transparent-gray"})]})]});return o?t.jsx(ln,{anchorRect:o,className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,onClose:s,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||n("tooltip.textbox","\uBCF8\uBB38"),children:y}):t.jsx("div",{className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,children:y})}function yl({state:e="disabled"}){const{t:n}=pe.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(Oe,{icon:"chevron-right",label:n("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),t.jsx("div",{className:"ts-bullet__line"})]})}function vl({title:e,children:n,className:a="",state:r="disabled",usePreviewTextBtn:o=!1,onPreviewTextBtn:s,previewText:l=null,useFaded:c,usePlayAllBtn:d=!1,onPlayAll:u,playAllActive:h=!1}){const{t:p}=pe.useTranslation(),f=Xt("(max-width: 767px)"),g=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),C=`training-step__title-row training-step__title-row--${r}`.trim(),m=i.useRef(null),[v,b]=i.useState(!1),[w,_]=i.useState(null),[y,S]=i.useState(null),x=i.useRef(s);i.useEffect(()=>{x.current=s});const A=i.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]),M=i.useCallback(()=>{b(!1),_(null),S(null)},[]);i.useEffect(()=>{if(!v)return;let D;try{typeof x.current=="function"&&(D=x.current())}catch{}if(D===!1){M();return}S(typeof D<"u"&&D!==null?D:null)},[A]);const k=i.useCallback(()=>{let D;try{typeof s=="function"&&(D=s())}catch{}if(D!==!1){if(S(typeof D<"u"&&D!==null?D:l),!m.current){b(O=>!O);return}if(v)b(!1),_(null),S(null);else{const O=m.current.getBoundingClientRect();_(O),b(!0)}}},[s,l,v]);return t.jsxs("div",{className:C,children:[t.jsx("p",{className:g,children:t.jsx("span",{className:"training-step__title-text",children:e??n})}),o||d?t.jsxs("div",{className:"title-controls",children:[t.jsxs("div",{className:"title-buttons",children:[d&&t.jsx(ne,{size:32,type:f?"dot":"bar",icon:"play-circle",label:f?void 0:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:h,onClick:u,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||h}),o&&t.jsx("div",{ref:m,children:t.jsx(ne,{size:32,type:f?"dot":"bar",icon:"eye",label:f?void 0:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:v,onClick:k,variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof s!="function"})})]}),v&&t.jsx(xa,{text:y??l,label:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:w,onClose:M,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Er(e,n){return typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled"}function Nn({index:e,stepIndex:n,isLast:a=!1,title:r="",titleProps:o={},children:s,className:l="",onDone:c=void 0,useTitleFaded:d=void 0}){const{t:u}=pe.useTranslation(),[h,p]=i.useState(()=>Er(e,n));i.useEffect(()=>{const S=Er(e,n);if(S!==h){const x=setTimeout(()=>p(S),0);return()=>clearTimeout(x)}},[e,n,h]);const f=i.useCallback((...S)=>{Er(e,n)==="done"||h==="done"||typeof c=="function"&&c(...S)},[e,n,h,c]),[g,C]=i.useState(!1),[m,v]=i.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),b=i.useCallback(S=>{if(!S)return null;try{const x=S;if(typeof S=="object"&&(x.currentTarget||x.target)&&(x.nativeEvent||x.type)){const k=x.currentTarget??x.target;if(k&&typeof k.getBoundingClientRect=="function")return k.getBoundingClientRect()}if(S instanceof DOMRect)return S;const A=S;if(A&&typeof A.getBoundingClientRect=="function")return A.getBoundingClientRect();const M=S?.current;return M&&typeof M.getBoundingClientRect=="function"?M.getBoundingClientRect():null}catch{return null}},[]),w=i.useCallback((S,{text:x="",label:A="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:M=!1,alignX:k="center",alignY:D="top"}={})=>{const O=b(S);v({text:x,label:A,anchorRect:O,backdrop:M,alignX:k,alignY:D}),C(!0)},[b]),_=i.useCallback(()=>{C(!1),v(S=>({...S,anchorRect:null}))},[]),y=i.Children.map(s,S=>{if(i.isValidElement(S)){const x=S;if(typeof x.type=="string")return x;const A=x.props??{},M=typeof A.onDone=="function"?A.onDone:f,k=typeof A.disabled=="boolean";let D=h==="disabled";return k&&(D=!!A.disabled),i.cloneElement(x,{onDone:M,disabled:D,showTooltip:w,hideTooltip:_})}return S});return t.jsxs("div",{className:`training-step training-step--${h} ${a?"training-step--last":""} ${l}`,"aria-current":h==="active",children:[t.jsx(yl,{state:h}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(vl,{state:h,title:r,...o,useFaded:d}),y]}),g?t.jsx(ln,{anchorRect:m.anchorRect,backdrop:m.backdrop,onClose:_,ariaLabel:u("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(xa,{text:m.text,onClose:_})}):null]})}function xl({context:e,state:n="disabled",theme:a="light"}){const{t:r}=pe.useTranslation(),[o,s]=i.useState("disabled"),[l,c]=i.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});i.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const d=()=>c(k=>k==="dark"?"light":"dark"),{increase:u,decrease:h,canIncrease:p,canDecrease:f,fontSize:g,lineHeight:C}=Ps({storageKey:"textbox_fontScale"}),[m,v]=i.useState(""),b=i.useCallback(()=>s("active"),[]),w=i.useCallback(()=>v(""),[]),_=k=>{try{v(k)}catch{}},y=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");i.useEffect(()=>{if(n!=="disabled"){const k=setTimeout(()=>s(n),0);return()=>clearTimeout(k)}},[n]);const S=i.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]);i.useEffect(()=>{const k=setTimeout(()=>s("disabled"),0);return()=>clearTimeout(k)},[S]);const x=n==="disabled"?o:n,A=x==="disabled"?"training-text-box--disabled":x==="active"?"training-text-box--active":x==="done"?"training-text-box--done":"",M=i.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${C}px`}),[g,C]);return t.jsxs("div",{className:`training-text-box ${A} ${x!=="disabled"&&l==="dark"?"is-dark":""}`,children:[x==="disabled"&&t.jsx("div",{className:"training-text-box__preview",children:t.jsx(ne,{size:48,type:"bar",onClick:b,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),t.jsx("div",{className:"training-text-box__area","aria-hidden":x==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:M,children:S})}),x!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":x==="disabled",children:[t.jsx(ne,{size:32,type:"dot",onClick:h,onDisabledClick:()=>_(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!f,useBorder:!1,showTooltipInfo:!0,...!y&&{width:"60px"}}),t.jsx(ne,{size:32,type:"dot",onClick:u,onDisabledClick:()=>_(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,...!y&&{width:"60px"}}),t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:d,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(Tn,{message:m,position:"top",onClose:w})]})}function Tr({index:e,stepIndex:n,isLast:a=!1,title:r,useTitleFaded:o,onDone:s,onChange:l,answer:c,wrongAnswers:d,choices:u,multiSelect:h=!1,correctCount:p=0,useDisabledCovered:f=!1,choiceIcons:g,shuffleChoices:C=!0}){const{t:m}=pe.useTranslation(),v=r??m("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),b=typeof e=="number"?e:-1,w=typeof n!="number"?"disabled":b<n?"done":b===n?"active":"disabled",_=Array.isArray(u)&&u.length?u:typeof c<"u"?[c].concat(Array.isArray(d)?d:[]):void 0,y=d?d.join("||"):"",S=u?u.join("||"):"",[x,A]=i.useState(()=>Array.isArray(_)?C?qn(_):_.slice():void 0);i.useEffect(()=>{Array.isArray(_)&&_.length?A(C?qn(_):_.slice()):A(void 0)},[c,y,S,C]);const[M,k]=i.useState(null),[D,O]=i.useState(()=>new Set);i.useEffect(()=>{k(null),O(new Set)},[S]);const R=i.useRef(void 0);i.useEffect(()=>{const B=R.current;typeof B=="number"&&typeof n=="number"&&typeof e=="number"&&B>=e&&n<e&&(k(null),O(new Set)),R.current=n},[n,e]);const j=i.useCallback(B=>{if(w!=="active")return;const F=x?.[B];if(F==null)return;const Z=F,Y=w==="active"||w==="done";if(h){const J=new Set(D),E=J.has(Z);E?J.delete(Z):J.add(Z),O(J),typeof l=="function"&&l({selectedValues:[...J],__ts:Date.now()}),Y&&(typeof p=="number"&&p>0?J.size>=p:!E)&&typeof s=="function"&&w==="active"&&s({selectedValues:[...J],__ts:Date.now()})}else k(Z),typeof l=="function"&&l({selectedIndex:B,selectedValue:Z,__ts:Date.now()}),Y&&typeof s=="function"&&w==="active"&&s({selectedIndex:B,selectedValue:Z,__ts:Date.now()})},[x,w,h,l,s,p,D]),P=`training-step__buttons${Array.isArray(x)&&x.length>3?" training-step__buttons--wrap-3":""}`;return t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:v,useTitleFaded:o,children:t.jsx("div",{className:P,children:Array.isArray(x)&&x.length>0?x.map((B,F)=>t.jsx(ne,{size:56,type:"bar",onClick:()=>j(F),ariaLabel:String(B),label:B,useLabel:!0,icon:g?g[String(B)]:void 0,variant:"default",disabled:w==="disabled",selected:h?D.has(B):M===B,useDisabledCovered:f,minWidth:0},String(B))):null})})}function Mr({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:s,context:l,demoSelected:c}){const{t:d}=pe.useTranslation(),u=r??d("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),h=typeof e=="number"?e:-1,p=typeof n!="number"?"disabled":h<n?"done":h===n?"active":"disabled",f=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",g=l&&typeof l=="object"?l.choices:void 0,[C,m]=i.useState(c??null);i.useEffect(()=>{if(c==null&&C!==null){const _=setTimeout(()=>m(null),0);return()=>clearTimeout(_)}},[f,c,C]);const v=i.useCallback(_=>{const y=typeof _=="object"&&_!==null?Object.assign({},_,{__ts:Date.now()}):{value:_,__ts:Date.now()};typeof s=="function"&&s(y),p==="active"&&typeof o=="function"&&o(y)},[s,p,o]),b=i.useCallback(()=>{p==="active"&&(m(!1),v(!1))},[v,p]),w=i.useCallback(()=>{p==="active"&&(m(!0),v(!0))},[v,p]);return t.jsxs(Nn,{index:e,stepIndex:n,isLast:a,title:u,onDone:o,useTitleFaded:!1,children:[t.jsx(xl,{context:l,state:p}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(g)&&g.length>0?g.slice(0,6).map((_,y)=>t.jsx(ne,{size:56,type:"bar",onClick:()=>{p==="active"&&(m(y),v&&v(y))},disabled:p==="disabled",ariaLabel:String(_),label:_,variant:p,selected:C===y},y)):t.jsxs(t.Fragment,{children:[t.jsx(ne,{size:56,type:"bar",onClick:b,disabled:p==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:C===!1}),t.jsx(ne,{size:56,type:"bar",onClick:w,disabled:p==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:C===!0})]})})]})}function Lr({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,btnLabel:s,soundSrc:l,bucketPath:c,usePreviewTextBtn:d,previewText:u=null,onPreviewTextBtn:h,disabled:p,_pageIndex:f,showSoundWaveForm:g,showNoiseWaveForm:C}){const{t:m}=pe.useTranslation(),v=r??m("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),b=p??(typeof n=="number"&&typeof e=="number"?e>n:!1);return t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:v,onDone:o,titleProps:{usePreviewTextBtn:d,previewText:u,onPreviewTextBtn:h},children:t.jsx(jr,{soundSrc:l,ttsText:l?null:u??v,bucketPath:c,btnLabel:s||m("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:b,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:C},`audio-p${f??0}-s${e}`)})}function $r({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:s,context:l=[]}){const{t:c}=pe.useTranslation(),d=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),u=$=>typeof $=="string"?$:$&&($.context||$.sentence||$.question||"")||"",[h,p]=i.useState(Array.isArray(l)?l:[]),[f,g]=i.useState(()=>(h||[]).map(($,L)=>({id:L,text:u($)}))),C=i.useMemo(()=>typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled",[n,e]);i.useEffect(()=>{const $=Array.isArray(l)?l:[];p($);const L=(V=>{const H=(V||[]).map((q,le)=>({id:le,text:u(q)}));if(H.length<=1)return H;const X=(q,le)=>{if(q.length!==le.length)return!1;for(let de=0;de<q.length;de++)if(q[de].text!==le[de].text)return!1;return!0};let I=qn(H),U=0;for(;X(I,H)&&U<20;)I=qn(H),U+=1;return I})($);g(L);try{if(typeof s=="function"){const V=L.filter((H,X)=>H.text===u($[X])).length;s({shuffled:L,score:V,total:($||[]).length,initial:!0,__ts:Date.now()})}if(typeof o=="function"&&C==="active"){const V=L.filter((H,X)=>H.text===u($[X])).length;o({shuffled:L,score:V,total:($||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const m=($,L)=>{const V=[...f],H=$+L;if(H<0||H>=V.length)return;const X=V[H];V[H]=V[$],V[$]=X,P(V);try{if(typeof o=="function"&&C==="active"){const I=V.filter((U,q)=>U.text===u(h[q])).length;o({shuffled:V,score:I,total:(h||[]).length,__ts:Date.now()})}}catch{}},[v,b]=i.useState(null),w=i.useRef(null),_=i.useRef(null),y=i.useRef(null),S=i.useRef(null),x=i.useRef(null),A=i.useRef({x:0,y:0}),M=i.useRef(null),k=i.useRef({dx:0,dy:0}),D=()=>{if(M.current!==null)return;const $=()=>{M.current=requestAnimationFrame($);const L=A.current,V=k.current||{dx:0,dy:0};w.current&&(w.current.style.transform=`translate3d(${L.x-V.dx}px, ${L.y-V.dy}px, 0)`)};M.current=requestAnimationFrame($)},O=i.useRef(new Map),R=i.useRef(new Map),j=()=>{const $=new Map;return O.current.forEach((L,V)=>{L&&L.getBoundingClientRect&&$.set(V,L.getBoundingClientRect())}),$},P=$=>{const L=j();g($);try{if(typeof s=="function"){const V=$.filter((H,X)=>H.text===u(h[X])).length;s({shuffled:$,score:V,total:(h||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const V=j();$.forEach(H=>{const X=L.get(H.id),I=V.get(H.id),U=O.current.get(H.id);if(!U||!X||!I)return;const q=X.top-I.top;q&&(U.style.transition="none",U.style.transform=`translateY(${q}px)`,requestAnimationFrame(()=>{U.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",U.style.transform="";const le=()=>{U.style.transition="",U.removeEventListener("transitionend",le)};U.addEventListener("transitionend",le)}))})})},B=($,L)=>{try{try{L.dataTransfer?.setData("text/plain",String($))}catch{}try{L.dataTransfer&&(L.dataTransfer.effectAllowed="move")}catch{}try{const V=document.createElement("div");V.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(V),L.dataTransfer?.setDragImage(V,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(V)}catch{}})}catch{}}catch{}b($);try{const V=f[$],H=document.createElement("div");H.className="order-list__dragging-object order-list__dragging-object--visible",H.textContent=V&&V.text?V.text:"",document.body.appendChild(H),w.current=H;const X=O.current.get(V.id);let I=L.clientX||0,U=L.clientY||0;try{if(X&&X.getBoundingClientRect){const he=X.getBoundingClientRect();I=he.left+he.width/2,U=he.top+he.height/2}}catch{}const q=H.getBoundingClientRect(),le=q.width/2,de=q.height/2;k.current={dx:le,dy:de},H.style.transition="none",A.current={x:I,y:U},H.style.transform=`translate3d(${I-le}px, ${U-de}px, 0)`,requestAnimationFrame(()=>{try{H.style.transition=""}catch{}D()});const Ce=he=>{const T=he;A.current={x:T.clientX,y:T.clientY},D()};y.current=Ce,document.addEventListener("mousemove",Ce);const ve=he=>{const T=he;A.current={x:T.clientX,y:T.clientY},D()};_.current=ve,document.addEventListener("dragover",ve);try{L.dataTransfer?.setData("text/plain",String($));try{L.dataTransfer?.setData("application/json",JSON.stringify({idx:$}))}catch{}}catch{}}catch{}},F=($,L)=>{L.preventDefault();try{L.dataTransfer&&(L.dataTransfer.dropEffect="move")}catch{}try{x.current!==null&&(clearTimeout(x.current),x.current=null);const V=L.currentTarget&&L.currentTarget.closest?L.currentTarget.closest(".order-list__item"):null;if(V&&S.current!==V){if(S.current)try{S.current.classList.remove("drag-over")}catch{}try{V.classList.add("drag-over")}catch{}S.current=V}}catch{}},Z=($,L)=>{L.preventDefault();const V=L.dataTransfer?.getData("text/plain")||"",H=V?parseInt(V,10):v,X=$;if(typeof H!="number"||isNaN(H)||H===X){b(null),E(),Y();return}const I=Om(f,H,X);P(I),b(null),Y();try{if(typeof o=="function"&&C==="active"){const U=I.filter((q,le)=>q.text===u(h[le])).length;o({shuffled:I,score:U,total:(h||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const U=document.querySelectorAll(".order-list .order-list__item")[X];if(!U)return;const q=U.querySelector(".order-list__slot")||U;try{q.classList.add("pulse"),q.offsetHeight,q.classList.add("to-dark");const le=()=>{q.classList.remove("pulse","to-dark"),q.removeEventListener("transitionend",le)};q.addEventListener("transitionend",le)}catch{}})}catch{}E()},Y=()=>{if(w.current){try{document.body.removeChild(w.current)}catch{}w.current=null}_.current&&(document.removeEventListener("dragover",_.current),_.current=null),y.current&&(document.removeEventListener("mousemove",y.current),y.current=null),M.current!==null&&(cancelAnimationFrame(M.current),M.current=null)},J=()=>{b(null),E(),Y()};i.useEffect(()=>()=>Y(),[]);const E=()=>{try{if(x.current!==null&&(clearTimeout(x.current),x.current=null),S.current){try{S.current.classList.remove("drag-over")}catch{}S.current=null}document.querySelectorAll(".order-list .order-list__item").forEach($=>$.classList.remove("drag-over"))}catch{}};return i.useEffect(()=>{try{const $=Math.max(1,(f||[]).length);f.forEach((L,V)=>{const H=R.current.get(L.id);if(!H)return;let X=50;$>1&&(X=Math.round(V/($-1)*100));try{H.style.setProperty("--marker-pos",X+"%")}catch{}})}catch{}},[f]),i.useEffect(()=>()=>{Y(),x.current!==null&&(clearTimeout(x.current),x.current=null)},[]),t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:d,children:t.jsx("div",{className:"order-list",children:f.map(($,L)=>{const V=Math.max(1,(f||[]).length),H=V>1?Math.round(L/(V-1)*100):50;return t.jsx("div",{className:"order-list__item",children:t.jsxs("div",{className:"order-list__slot","data-disabled":C==="disabled","aria-disabled":C==="disabled",children:[C!=="disabled"?t.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":H+"%"},ref:X=>{const I=R.current;X?I.set($.id,X):I.delete($.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:L+1})}):null,t.jsxs("div",{ref:X=>{const I=O.current;X?I.set($.id,X):I.delete($.id)},className:`order-list__draggable ${v===L?"dragging":""}`,"data-disabled":C==="disabled","aria-disabled":C==="disabled",tabIndex:C==="disabled"?-1:0,draggable:C==="active",onDragStart:C==="active"?X=>B(L,X):void 0,onDragEnter:C==="active"?X=>F(L,X):void 0,onDragOver:C==="active"?X=>F(L,X):void 0,onDragLeave:C==="active"?()=>{try{x.current!==null&&clearTimeout(x.current),x.current=setTimeout(()=>{try{const X=document.querySelectorAll(".order-list .order-list__item");X&&X[L]&&(X[L].classList.remove("drag-over"),S.current===X[L]&&(S.current=null))}catch{}},80)}catch{}}:void 0,onDrop:C==="active"?X=>Z(L,X):void 0,onDragEnd:C==="active"?J:void 0,children:[t.jsx("span",{className:"order-list__item-text body-2",children:$.text}),C==="active"?t.jsxs("span",{className:"order-list__item-buttons",children:[t.jsx(ne,{size:32,type:"dot",onClick:()=>m(L,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:L===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(ne,{size:32,type:"dot",onClick:()=>m(L,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:L===f.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},$.id)})})})}const xb=8e3;function _b(e,n){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.then(o,o),setTimeout(o,n)})}function _l({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:s,context:l=[],selectable:c=!1,hideLabel:d=!1,hideAudio:u=!1,maxCards:h}){const{t:p}=pe.useTranslation(),f=r??p("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),g=i.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),C=h??3,m=(g||[]).slice(0,C);(g||[]).length>C&&console.warn(`TrainingStepCard: ${g.length} items passed but only ${C} shown`);const v=typeof e=="number"?e:-1,b=typeof n!="number"?"disabled":v<n?"done":v===n?"active":"disabled",[w,_]=i.useState(null),y=i.useRef([]),[S,x]=i.useState(!1),A=i.useMemo(()=>g.map(O=>O?.id??O?.word??"").join("|"),[g]);i.useEffect(()=>{_(null),y.current=[]},[A]);const M=i.useCallback((O,R)=>{if(c)return;const j={item:O,index:R,__ts:Date.now()};try{typeof s=="function"&&s(j)}catch{}if(b==="active"&&typeof o=="function")try{o(j)}catch{}},[c,s,b,o]),k=i.useCallback(async()=>{if(!(S||b==="disabled")){x(!0);try{for(const O of y.current)O&&await _b(O.play(),xb)}finally{x(!1)}}},[S,b]),D=i.useCallback((O,R)=>{if(b!=="active")return;_(R);const j={selectedValue:O.word||O.title||"",selectedIndex:R,item:O,__ts:Date.now()};try{typeof s=="function"&&s(j)}catch{}if(b==="active"&&typeof o=="function")try{o(j)}catch{}},[s,b,o]);return t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:f,onDone:o,titleProps:{usePlayAllBtn:!u&&m.length>0,onPlayAll:k,playAllActive:S},children:t.jsx("div",{className:"training-step__cards",children:m.length===0?t.jsx("div",{className:"training-step__empty",children:p("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):m.map((O,R)=>t.jsx(Cr,{ref:j=>{y.current[R]=j},item:O,disabled:b==="disabled",onPlayDone:()=>M(O,R),selectable:c,selected:c&&w===R,onSelect:c?()=>D(O,R):void 0,flipDelay:R*120,hideLabel:d,hideAudio:u},O&&O.id||R))})})}const wb=160,wl=()=>{};function hn(e){const n=i.useId();if(!("variant"in e)){const{label:m,sub:v,onClick:b,children:w,align:_="horizontal",icon:y}=e,S=x=>{b&&x.target===x.currentTarget&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),b())};return t.jsxs("div",{className:ye("panel-row",_==="vertical"?"panel-row--vertical":"",b?"panel-row--clickable":""),onClick:b,onKeyDown:b?S:void 0,role:b?"button":void 0,tabIndex:b?0:void 0,children:[y!=null&&t.jsx("div",{className:"panel-row__icon",children:y}),m!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:m}),v&&t.jsx("div",{className:"panel-row__sub caption-1",children:v})]}),t.jsx("div",{className:"panel-row__right",children:w})]})}if(e.variant==="description")return t.jsx("div",{className:"panel-row panel-row--block",children:t.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return t.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return t.jsx("div",{className:"panel-row panel-row--loading",children:t.jsx(Qn,{size:28})});if(e.variant==="custom"&&!e.label)return t.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:o,onClick:s,required:l,error:c,align:d="horizontal",useFullWidth:u=!1,icon:h}=e;let p=null;const f=a==="toggle"?`panel-toggle-${n}`:void 0;if(a==="toggle"){const m=e;p=t.jsx(Ci,{checked:m.checked,onChange:m.onChange,id:f})}else if(a==="segmented"){const m=e;p=t.jsx(An,{options:m.options,value:m.value,onChange:m.onChange,size:m.size??40,ariaLabel:r})}else if(a==="dropdown"){const m=e,v=m.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${u?" panel-row__dropdown-group--full":""}`,children:m.dropdowns.map((b,w)=>t.jsx("div",{className:u?"panel-row__dropdown-item--full":void 0,children:t.jsx(Vt,{options:b.options,value:b.value,onChange:b.onChange,placeholder:b.placeholder,block:u,error:!!c,ariaLabel:b.ariaLabel??([r,b.placeholder].filter(Boolean).join(" ")||void 0)})},w))}):t.jsx(Vt,{options:m.options??[],value:m.value??"",onChange:m.onChange??wl,block:u,error:!!c,ariaLabel:r});p=c?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${u?" panel-row__dropdown-error-wrap--full":""}`,children:[v,t.jsx("span",{className:"caption-1 panel-row__error",role:"alert",children:c})]}):v}else if(a==="button"){const m=e;m.buttons?.length?p=t.jsx("div",{className:"panel-row__button-group",children:m.buttons.map((v,b)=>t.jsx(ne,{size:v.btnSize??40,variant:v.btnVariant??"default",disabled:v.disabled,onClick:v.onClick,children:v.label},b))}):p=t.jsx(ne,{size:m.btnSize??40,variant:m.btnVariant??"default",disabled:m.disabled,onClick:m.onClick,children:m.buttonLabel})}else if(a==="text"){const m=e;p=t.jsx("span",{className:`panel-row__text body-2${u?" panel-row__text--full":""}`,style:m.valueColor?{color:m.valueColor}:void 0,children:m.value})}else if(a==="input"){const m=e;p=t.jsxs("div",{className:`panel-row__input-wrap${u?" panel-row__input-wrap--full":""}`,children:[t.jsx(kn,{value:m.value,onChange:m.onChange??wl,onKeyDown:m.onKeyDown,onEnter:m.onEnter,placeholder:m.placeholder,inputMode:m.inputMode,readOnly:m.readOnly,disabled:m.disabled,type:m.type,autoComplete:m.autoComplete,maxLength:m.maxLength,showCount:m.showCount,multiline:m.multiline,rows:m.rows,fullWidth:u,error:c,ariaLabel:r,required:l}),m.helperText&&t.jsx("div",{className:"panel-row__helper caption-1",children:m.helperText})]})}else a==="custom"&&(p=e.children);const g=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&u,C=m=>{s&&m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),s())};return t.jsxs("div",{className:ye("panel-row",d==="vertical"?"panel-row--vertical":"",g?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",s?"panel-row--clickable":""),onClick:s,onKeyDown:s?C:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,children:[h!=null&&t.jsx("div",{className:"panel-row__icon",children:h}),t.jsxs("div",{className:"panel-row__left",children:[f?t.jsxs("label",{htmlFor:f,className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}):t.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}),o&&t.jsx("div",{className:"panel-row__sub caption-1",children:o})]}),t.jsx("div",{className:"panel-row__right",children:p})]})}function kl(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function kb({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=pe.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(o=>{const s=e[o],l=o==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return t.jsxs("div",{className:"panel-row__device-column",children:[t.jsxs("div",{className:"panel-row__device-head",children:[t.jsx("span",{className:"panel-row__device-side body-2b",children:l}),s&&n&&t.jsx(ne,{size:32,type:"dot",icon:"x",ariaLabel:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>n(o)})]}),s?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[s.device&&t.jsx(lt,{size:"small",variant:ji(s.device),fill:"soft",label:s.device}),kl(s)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:kl(s)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:s.productName||s.brand}),t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:`${s.wornYear}.${s.wornMonth}.${s.wornDay}`})})]}):t.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},o)})})}function _a({title:e,icon:n,disc:a,actions:r,size:o="medium",minHeight:s,maxWidth:l,className:c,scrollable:d,useBorder:u=!0,useBg:h=!0,useRowBorder:p=!0,labelWidth:f,form:g=!1,loading:C,empty:m,children:v}){const b=ye("panel",`panel--${o}`,g?"panel--form":"",s!==void 0?"panel--fill":"",u?"":"panel--no-border",h?"":"panel--no-bg",p?"":"panel--no-row-border",c),w={};return s!==void 0&&(w.minHeight=s),l!==void 0&&(w.maxWidth=typeof l=="number"?`${l}px`:l),f!==void 0&&(w["--panel-label-width"]=typeof f=="number"?`${f}px`:f),t.jsxs("div",{className:b,style:Object.keys(w).length?w:void 0,children:[(e!=null||a!=null)&&t.jsxs("div",{className:ye("panel__header",a!=null?"panel__header--with-disc":""),children:[n&&t.jsx(Oe,{icon:n,label:typeof e=="string"?e:void 0,className:"panel__icon"}),t.jsxs("div",{className:"panel__title-group",children:[e!=null&&t.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&t.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&t.jsx("div",{className:"panel__actions",children:r})]}),C?t.jsx(hn,{variant:"loading"}):m!=null&&(v==null||Array.isArray(v)&&v.length===0)?t.jsx(hn,{variant:"empty",children:m}):d?t.jsx("div",{className:"panel__body--scroll",children:v}):v]})}function Ab({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function Nb(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 Al(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"}]}Nb(bn.t.bind(bn)),Al(bn.t.bind(bn));const Rr="none",Bb=.5,Sb=1.5,Db=.25;function Pr({title:e,valueLabel:n,value:a,min:r,max:o,step:s,tickStep:l,size:c,onChange:d}){return t.jsxs(hn,{variant:"custom",label:e,useFullWidth:!0,children:[t.jsx(Ni,{value:a,onChange:d,min:r,max:o,step:s,size:c,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),t.jsx("div",{className:"noise-settings__value button-1",children:n})]})}function Nl({anchorRect:e,onClose:n}){const{t:a}=pe.useTranslation(),r=Xt("(max-width: 767px)")?40:24,o=Br(),s=ba(o?.settings??Nr),l=o?.settings.type??"defaultNoise",c=o?.settings.enabled??!0,d=o?.playbackRate??1,u=o?.mainVolume??1,h=Math.round(u*100),p=i.useCallback(m=>{try{o?.setMainVolume(Math.max(0,Math.min(1,m/100)))}catch{}},[o]),f=i.useCallback(m=>{try{o?.setPlaybackRate(m)}catch{}},[o]),g=i.useCallback(m=>{const v=Math.min(kr,Math.max(0,Math.round(m*10)/10));try{o?.setSettings({noiseRatio:v})}catch{}},[o]),C=i.useCallback(m=>{try{m===Rr?o?.setSettings({enabled:!1}):o?.setSettings({type:m,enabled:!0})}catch{}},[o]);return t.jsx(ln,{anchorRect:e,offset:12,onClose:n,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:t.jsxs("div",{className:"noise-settings__header",children:[t.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),t.jsx(ne,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:n})]}),children:t.jsxs(_a,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(Pr,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${h}%`,value:h,min:0,max:100,step:10,size:r,onChange:p}),t.jsx(Pr,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:Bb,max:Sb,step:Db,size:r,onChange:f}),t.jsx(hn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:t.jsx(An,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Rr,label:a("training.noise.type.none","\uC5C6\uC74C")},...Al(a).map(m=>({key:m.value,label:m.label}))],value:c?l:Rr,onChange:C})}),t.jsx(Pr,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:s.toFixed(1)}),value:s,min:0,max:kr,step:eb,size:r,onChange:g})]})})}function Bl({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:o=0,stepCount:s=0,pageIndex:l=0,pageCount:c=1}){const{t:d}=pe.useTranslation(),[u,h]=i.useState(!1),[p,f]=i.useState(null),[g,C]=i.useState(!1),m=i.useRef(null),v=i.useRef(null),b=Br(),w=l<c-1,_=l===c-1,y=o===Math.max(0,s);i.useEffect(()=>{e||(h(!1),f(null))},[e]);const S=i.useCallback(()=>{h(!1),f(null)},[]),x=i.useCallback(()=>{if(u){h(!1),f(null);return}const k=m?.current?.getBoundingClientRect();k&&f(k),n?.(),h(!0)},[u,n]),A=i.useCallback(()=>{if(u){h(!1),f(null);return}const k=v?.current?.getBoundingClientRect();k&&f(k),n?.(),h(!0)},[u,n]),M=i.useCallback(()=>C(k=>!k),[]);return t.jsxs("div",{className:"pp-bottom",children:[t.jsxs("div",{className:"pp-bottom__left",children:[e?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pp-bottom__settings--desktop",children:t.jsx("div",{ref:m,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ne,{size:56,type:"bar",icon:"settings",onClick:x,selected:u,ariaLabel:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),t.jsx("div",{className:"pp-bottom__settings--mobile",children:t.jsx("div",{ref:v,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ne,{size:56,type:"dot",icon:"settings",onClick:A,selected:u,ariaLabel:d("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&t.jsx(ne,{size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:M,selected:g,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&g&&t.jsxs("div",{className:"pp-bottom__meters",children:[t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.sentence","\uC7AC\uC0DD")}),t.jsx(dr,{analyser:b?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.sentence","\uC7AC\uC0DD")})]}),t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.noise","\uC18C\uC74C")}),t.jsx(dr,{analyser:b?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.noise","\uC18C\uC74C")})]})]})]}),t.jsxs("div",{className:"pp-bottom__right",children:[_&&t.jsx(ne,{size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!y}),w&&t.jsx(ne,{size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!y})]}),e&&u&&t.jsx(Nl,{anchorRect:p,onClose:S})]})}function Sl({title:e,subtitle:n,desc:a,depth:r,icon:o,wrapperStyle:s,iconTooltip:l,pageIndex:c,pageCount:d,progressMax:u,progressIndex:h,onBack:p,onClose:f}){const{t:g}=pe.useTranslation(),C=Xt("(max-width: 767px)"),m=Number.isInteger(h)?h:c||0,v=Number.isInteger(u)?u:d||0,b=p||f,w=Array.isArray(r)?C?r[r.length-1]:r.join(" / "):r,_=typeof e=="string"?e.trim():e,y=typeof n=="string"?n.trim():n,S=!!(_||y),x=S?_||y:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),A=w||n,M=C&&typeof A=="string"&&(A.includes(" \xB7 ")||A.includes(" / "))?A.split(/\s[·/]\s/).pop():A,k=i.useMemo(()=>{const D=s&&typeof s=="object"?{...s}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[s]);return t.jsxs("header",{className:"pp-title training-popup-title",children:[t.jsxs("div",{className:"pp-title__left",children:[b?t.jsx(ne,{size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:b,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:o?t.jsx(Mi,{icon:o,label:e,tooltip:l,wrapperStyle:k}):null}),t.jsxs("div",{className:"pp-title__text",children:[M?t.jsx("span",{className:"pp-title__depth caption-1",children:M}):null,t.jsx("span",{className:`pp-title__title h2${S?"":" pp-title__title--empty"}`,children:x}),a?t.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),t.jsx(Di,{max:Math.max(0,v??0),index:Math.max(0,m??0)})]})}function jb(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Eb(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(n=>typeof n=="string"?n.split("|").map(a=>a.trim()).filter(Boolean):n||n===0?[String(n)]:[]):typeof e=="string"?e.split("|").map(n=>n.trim()).filter(Boolean):[String(e)]}function Dl(e,n,a){const r=e,o=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",s=rs().find(c=>c.key===(r?.category_0||r?.category_main_code)),l=s?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:o,label:r?.title||o,depth:n,icon:s?.icon,wrapperStyle:s?.color?{"--t-item-fg":s.color}:void 0,iconTooltip:[s?.label,l?.label].filter(Boolean).join(" / ")||void 0}}function Ir(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function Tb(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function Mb({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:o=[],emptyMessage:s,buildResults:l,metaPatch:c}){const d=Dl(n,a,r),u=typeof c=="function"?c(d)||{}:c||{},h=n?.id||n?.title||o.length;return{id:`${e}:${h}`,meta:{...d,...u},pages:o,emptyMessage:s,buildResults:l}}function Lb(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function $b(e){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return n.selectedValues;if(n.selectedValue!==void 0)return n.selectedValue;if(n.selectedIndex!==void 0)return n.selectedIndex;if(n.value!==void 0)return n.value}return e}function Rb(e,n=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(n))return String(n[e]??"");if(typeof e=="string")return e}function jl(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function Pb(e,n,a,r){return jl(e,n*a+r)}function Ib({payload:e,selected:n,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const o=e;if(Array.isArray(o.selectedValues))return r.every(s=>o.selectedValues.includes(s))&&o.selectedValues.every(s=>r.includes(s));if(typeof o.correct=="boolean")return o.correct}if(r.length){if(typeof n=="number"&&Array.isArray(a)&&a.length)return r.some(o=>String(o)===String(a[n]));if(typeof n<"u")return r.some(o=>String(o)===String(n))}}function Fb(e){return e?Array.isArray(e.items)?e.items.map(n=>{const a=n;return typeof n=="string"?{sentence:n}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(n=>{const a=n;return typeof n=="string"?{sentence:n}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const El=i.createContext(null);function Ob(){const e=i.useContext(El);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function Hb({index:e,stepIndex:n,isLast:a=!1,title:r="\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",choices:o=[],onDone:s,onChange:l}){const c=typeof e=="number"?e:-1,d=typeof n!="number"?"disabled":c<n?"done":c===n?"active":"disabled",[u,h]=i.useState(()=>o.map(()=>null)),p=o.join("|");i.useEffect(()=>{h(p?p.split("|").map(()=>null):[])},[p]);const f=i.useMemo(()=>u.filter(C=>C!==null).length+1,[u]),g=i.useCallback(C=>{d==="active"&&h(m=>{const v=[...m];if(v[C]!==null){const w=v[C];return v.map(_=>_!==null&&_>=w?null:_)}v[C]=f;const b={selectedOrder:v,words:o,__ts:Date.now()};try{typeof l=="function"&&l(b)}catch{}if(v.every(w=>w!==null))try{typeof s=="function"&&s(b)}catch{}return v})},[d,f,l,s,o]);return t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:r,onDone:s,children:t.jsx("div",{className:"training-step__cards",children:o.map((C,m)=>t.jsx(Cr,{item:{word:C},disabled:d==="disabled",selectable:!0,selected:u[m]!==null,orderRank:u[m],onSelect:()=>g(m),flipDelay:m*120,hideLabel:!1,hideAudio:!0},`${C}-${m}`))})})}function wa(e){return null}wa.__isTrainingPage=!0;function Pn(e,n){const a=Ob();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof n=="number"?e===n-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function Tl({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l}=Pn(e,n);return t.jsx(Lr,{...a,index:r,stepIndex:o,isLast:s,onDone:l})}function Ml({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=Pn(e,n);return t.jsx(Tr,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Ll({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=Pn(e,n);return t.jsx(Mr,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function $l({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=Pn(e,n);return t.jsx($r,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Rl({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=Pn(e,n);return t.jsx(_l,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Vb({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=Pn(e,n);return t.jsx(Hb,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Fr(...e){for(const n of e)if(typeof n=="string"){const a=n.trim();if(a.length)return a}else{if(typeof n=="number"||typeof n=="boolean")return String(n);if(Array.isArray(n)&&n.length)return n.join(", ");if(n&&typeof n=="object"){const a=n,r=[a.text,a.label,a.value];for(const o of r){if(typeof o=="string"&&o.trim().length)return o.trim();if(typeof o=="number"||typeof o=="boolean")return String(o)}}}return null}function zb(e){return Fr(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function Pl(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 n=Fr(e?.status,e?.result,e?.judge,e?.note);if(n){const a=n.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 Il(e){const{score:n,contextsLength:a,results:r=[],subtitle:o,onReplay:s,onClose:l,inline:c=!1}=e||{},{t:d}=pe.useTranslation();i.useEffect(()=>{const m=a??0;n!=null&&m>0&&n/m>.5&&window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},[n,a]);const u=i.useCallback(m=>{const v=Pl(m),b=Fr(m?.wording,m?.label);return v===!0?{variant:"main",label:b??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:v===!1?{variant:"danger",label:b??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:b??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),h=a??0,p=n??0,f=i.useMemo(()=>Array.isArray(r)?r:[],[r]),g=i.useMemo(()=>f.map(m=>{const v=m??{},b=zb(v)||"(\uB0B4\uC6A9\uC5C6\uC74C)",{variant:w,label:_}=u(v),y=Array.isArray(v.corrects)?v.corrects:[],S=y.length?y.join(", "):v.answer!=null&&v.answer!==""?String(v.answer):null,x=typeof v.selectedText=="string"?v.selectedText:null,A=Pl(v)===!0;return{problem:b,variant:w,label:_,answer:S,selectedText:x,isCorrect:A}}),[f,u]),C=i.useMemo(()=>g.some(m=>m.answer!==null||m.selectedText!==null),[g]);return t.jsx(pn,{onClose:l,inline:c,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",footerClassName:"trp-result__foot",footer:({animateThen:m,closeWithAnimation:v})=>t.jsxs("div",{className:"trp-actions",children:[t.jsx(ne,{size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>m(s)}),t.jsx(ne,{size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:v})]}),children:()=>t.jsxs("div",{className:"trp-result is-on",children:[t.jsxs("header",{className:"trp-result__head",children:[t.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),t.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),o&&t.jsx("p",{className:"trp-result__subtitle body-3",children:o}),t.jsx("div",{className:"trp-score",children:t.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:p,total:h}),children:[t.jsx("span",{className:"trp-score__big",children:p}),t.jsx("span",{className:"trp-score__sep",children:"/"}),t.jsx("span",{className:"trp-score__total",children:h})]})})]}),g.length>0&&t.jsx("section",{className:"trp-result__body",children:t.jsxs("div",{className:`result-table${C?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[t.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[t.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),C&&t.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),t.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),g.map((m,v)=>t.jsxs("div",{className:"result-table__row",role:"row",children:[t.jsxs("div",{className:"trp-row__problem",children:[t.jsx("span",{className:"trp-row__no caption-1",children:String(v+1).padStart(2,"0")}),t.jsx("div",{className:"trp-row__q body-2",children:m.problem})]}),C&&t.jsxs("div",{className:"trp-row__answers",children:[m.answer!==null&&t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),t.jsx("span",{className:"trp-row__answer-value body-2",children:m.answer})]}),t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${m.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),t.jsx("span",{className:`trp-row__answer-value body-2 ${m.isCorrect?"is-correct":"is-wrong"}`,children:m.selectedText??"\u2014"})]})]}),t.jsx("div",{className:"trp-row__judge",children:t.jsx(lt,{variant:m.variant,label:m.label,fill:"soft",minWidth:80})})]},v))]})})]})})}function Wb(e){i.useEffect(()=>{if(!e)return;const n=new Date;return()=>{const a=new Date;a.getTime()-n.getTime()<5e3||zm({trainingType:e,startedAt:n.toISOString(),endedAt:a.toISOString()})}},[e])}function Or(e,n){return e&&e.id||`page-${n??0}`}function Hr(e,n){return e&&e.key||`step-${n??0}`}function ka(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function qb(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const Fl=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),Ub=e=>t.jsx(Il,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function Gb(e){const{scenario:n,title:a,subTitle:r,depth:o,icon:s,wrapperStyle:l,iconTooltip:c,pageIndex:d,pageCount:u,stepIndex:h,stepCount:p,onBack:f,onComplete:g,onNext:C,onSettings:m,useNoiseSetting:v=!0,children:b,ariaLabel:w,label:_,buildResults:y,onResult:S,typeKey:x,entryPoint:A,dailyTotal:M,itemRef:k,renderResultPopup:D,noiseOverride:O}=e;Wb(x&&!Fl.has(x)?x:"");const R=i.useRef(0);i.useEffect(()=>{R.current=Date.now()},[]);const{t:j}=pe.useTranslation(),P=S,B=!!n,F=n?.id||null,Z=n?.meta||{},Y=Array.isArray(n?.pages)?n.pages:[],J=Array.isArray(b)||i.isValidElement(b)&&typeof b!="function"?i.Children.toArray(b).filter(i.isValidElement):[],E=J.length>0,$=oe=>oe===wa||oe?.__isTrainingPage===!0,L=E&&J.some(oe=>$(oe.type)),V=L?J.filter(oe=>$(oe.type)).map((oe,me)=>{const fe=oe.props||{};return{id:`children-page-${me}`,steps:i.Children.toArray(fe.children).filter(i.isValidElement),pageTop:fe.pageTop||fe.top||null,pageBottom:fe.pageBottom||fe.bottom||null}}):[{id:"children-page-0",steps:J}],H=E&&!B&&typeof b!="function",X=H?Math.max(1,V.length):0;i.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")}},[]),i.useEffect(()=>{if(typeof document>"u"||!document.body)return;const oe=document.body;return oe.dataset.ihabTrainingPopupCount=String(Number(oe.dataset.ihabTrainingPopupCount||"0")+1),oe.classList.add("ihab-training-popup-open"),()=>{const me=Number(oe.dataset.ihabTrainingPopupCount||"1")-1;me>0?oe.dataset.ihabTrainingPopupCount=String(me):(delete oe.dataset.ihabTrainingPopupCount,oe.classList.remove("ihab-training-popup-open"))}},[]),i.useEffect(()=>{if(!(typeof document>"u"||!document.body))return o4()},[]);const[I,U]=i.useState({...Nr,enabled:!1}),q=i.useRef(I);i.useEffect(()=>{q.current=I},[I]);const le=i.useRef(O);i.useEffect(()=>{let oe=!1;return Gm().then(me=>{if(oe)return;const fe=me?Ar(q.current,me):{...Nr};q.current=fe,U(fe),Ga(fe);const Ne=le.current;if(Ne){const K=typeof Ne=="function"?Ne(fe):Ne,te=Ar(fe,K);q.current=te,U(te),Ga(te)}}),()=>{oe=!0}},[]);const[de,Ce]=i.useState(null),[ve,he]=i.useState(null),T=i.useCallback((oe,me)=>{oe==="main"?Ce(me):he(me)},[]),W=i.useCallback(oe=>{const me=Ar(q.current,oe);q.current=me,U(me),le.current||Km(me),Ga(me)},[]),Q=I.mainSpeed,_e=I.mainVolume,ue=i.useCallback(oe=>W({mainSpeed:oe}),[W]),ie=i.useCallback(oe=>W({mainVolume:oe}),[W]),ae=i.useMemo(()=>({settings:I,setSettings:W,registerAnalyser:T,mainAnalyser:de,noiseAnalyser:ve,playbackRate:Q,setPlaybackRate:ue,mainVolume:_e,setMainVolume:ie}),[I,W,T,de,ve,Q,ue,_e,ie]),se=i.useRef(null),[Se,He]=i.useState("center"),[Ve,Re]=i.useState(!1),Ee=i.useRef(!1),je=i.useRef(null),Ae=i.useCallback(oe=>{Ee.current||(Ee.current=!0,Re(!0),je.current=setTimeout(oe,wb))},[]);i.useEffect(()=>()=>{je.current&&clearTimeout(je.current)},[]),i.useEffect(()=>{const oe=se.current;if(!oe)return;const me=Array.from(oe.querySelectorAll(Gn)).filter(Ne=>!Ne.closest('[aria-hidden="true"]'))[0];if(me)try{me.focus()}catch{}const fe=Ne=>{if(Ne.key==="Escape"){Ne.preventDefault(),Ae(()=>{typeof f=="function"&&f()});return}};return oe.addEventListener("keydown",fe),()=>oe.removeEventListener("keydown",fe)},[f,Ae]),Ya(se,!0);const[ze,at]=i.useState(!1),ge=i.useRef(!1),[Pe,$e]=i.useState(null),[Ke,Ze]=i.useState(""),[Ue,Ie]=i.useState(()=>ka()),dt=i.useRef(typeof d=="number"?d:null);i.useEffect(()=>{!B&&!H||(Ie(ka()),$e(null))},[B,F,H]),i.useEffect(()=>{H&&Ie(oe=>{const me=Math.max(0,Math.min(oe.pageIndex,Math.max(0,X-1)));return me!==oe.pageIndex?{...oe,pageIndex:me,stepIndex:0}:oe})},[H,X]);const ct=H?Math.max(0,Math.min(Ue.pageIndex,X-1)):0,qe=H?V[ct]:null,ot=H&&qe&&Array.isArray(qe.steps)?qe.steps:[],Te=B?Ue.pageIndex:H?ct:typeof d=="number"?d:0,Me=B?Y[Math.max(0,Math.min(Ue.pageIndex,Math.max(0,Y.length-1)))]:null,tt=B&&Me&&Array.isArray(Me.steps)?Me.steps:[],ft=B?tt.length:H?ot.length:typeof p=="number"?p:0,Ye=B||H?Math.max(0,Math.min(Ue.stepIndex,Math.max(0,ft))):typeof h=="number"?h:0,Xe=B?Y.length:H?X:typeof u=="number"?u:0;i.useLayoutEffect(()=>{const oe=dt.current;if(typeof Te=="number"&&oe!==null&&Te!==oe&&Te>oe)try{Ze(j("training.problemNotice",{n:Te+1}))}catch{}dt.current=typeof Te=="number"?Te:dt.current},[Te,d,j]),i.useLayoutEffect(()=>{const oe=se.current;if(!oe)return;const me=()=>oe.querySelector(".page-popup__scroll");let fe=null,Ne=null,K=null;const te=ke=>{const Fe=me();if(!Fe)return;const et=Fe.scrollHeight<=Fe.clientHeight;if(He(et?"center":"top"),ke&&!ge.current){ge.current=!0;try{at(!0)}catch{}try{De.disconnect()}catch{}}},be=()=>{fe!==null&&cancelAnimationFrame(fe),fe=requestAnimationFrame(()=>{Ne!==null&&clearTimeout(Ne),Ne=setTimeout(()=>te(!0),60)})},xe=()=>{K!==null&&cancelAnimationFrame(K),K=requestAnimationFrame(()=>te(!1))};be(),window.addEventListener("resize",xe);const De=new MutationObserver(be);De.observe(oe,{childList:!0,subtree:!0,attributes:!0});const ee=setTimeout(()=>{ge.current||te(!0)},400);return()=>{window.removeEventListener("resize",xe),fe!==null&&cancelAnimationFrame(fe),Ne!==null&&clearTimeout(Ne),K!==null&&cancelAnimationFrame(K),clearTimeout(ee);try{De.disconnect()}catch{}}},[se]);const ht=i.useCallback(oe=>{se.current&&(se.current._childOnNext=oe)},[]),Et=i.useCallback(oe=>{se.current&&(se.current._childOnResult=oe)},[]),Qe=i.useCallback((oe,me,fe)=>{Ie(Ne=>{const K=Ne.answersByPage[oe]||{},te=K[me],be=Ir(fe),xe=Ir(te);return te&&xe>be?Ne:{...Ne,answersByPage:{...Ne.answersByPage,[oe]:{...K,[me]:fe}}}})},[Ie]),vt=i.useCallback((oe,me,fe)=>{const Ne=Or(Me,Te),K=Hr(oe,me);Qe(Ne,K,fe)},[Me,Te,Qe]),Tt=i.useCallback((oe,me,fe)=>{const Ne=Or(Me,Te),K=Hr(oe,me);Qe(Ne,K,fe),!fe?.allowChange&&oe?.autoAdvance!==!1&&Ie(te=>({...te,stepIndex:Math.max(te.stepIndex,me+1)}))},[Me,Te,Qe,Ie]),Gt=i.useCallback((oe,me)=>{const fe=qe?.id||`children-page-${Te??0}`,Ne=typeof me=="number"?me:Ye??0,K=`step-${Ne}`;Qe(fe,K,oe),oe?.allowChange||Ie(te=>({...te,stepIndex:Math.max(te.stepIndex,Ne+1)}))},[qe,Te,Ye,Qe,Ie]),an=i.useCallback((oe,me)=>{const fe=qe?.id||`children-page-${Te??0}`,Ne=`step-${typeof me=="number"?me:Ye??0}`;Qe(fe,Ne,oe)},[qe,Te,Ye,Qe]),It=H?{currentPageIndex:Te??0,currentStepIndex:Ye??0,totalStepsInPage:ot.length,handleStepDone:Gt,handleStepChange:an}:null,zt=async()=>{const oe=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:Y,flowState:Ue,answersByPage:Ue.answersByPage})):null;return typeof P=="function"&&await Promise.resolve(P(oe))||oe},Wt=async()=>{const oe=qe?.id||`children-page-${Ue.pageIndex}`,me=Ue.answersByPage[oe]||{},fe=L?(()=>{const te={};let be=0;return V.forEach(xe=>{const De=Ue.answersByPage[xe.id]||{},ee=Array.isArray(xe.steps)?xe.steps.length:0;for(let ke=0;ke<ee;ke+=1){const Fe=De[`step-${ke}`];typeof Fe<"u"&&(te[`step-${be+ke}`]=Fe)}be+=ee}),te})():me;if(typeof y=="function"){const te=await Promise.resolve(y(fe,{pageAnswers:me,answersByPage:Ue.answersByPage,pages:V,currentPageId:oe}));return typeof P=="function"&&await Promise.resolve(P(te))||te}const Ne=Object.entries(me).map(([te,be],xe)=>({index:xe,key:te,payload:be})),K={results:Ne,answers:Ne,score:0};return typeof P=="function"&&await Promise.resolve(P(K))||K},xt=()=>{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(B){const fe=zt();$e({});const Ne=fe;Promise.resolve(Ne).then(K=>{$e(K||{isEmpty:!0})}).catch(K=>{$e({isEmpty:!0})});return}if(H){const fe=Wt();$e({});const Ne=fe;Promise.resolve(Ne).then(K=>{$e(K||{isEmpty:!0})}).catch(K=>{$e({isEmpty:!0})});return}const oe=se.current&&se.current._childOnResult,me=fe=>{try{return fe?fe():void 0}catch{return}};if(typeof oe=="function"){const fe=me(oe);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("components.cjs.js",document.baseURI).href}catch{}fe&&typeof fe.then!="function"?$e(fe):$e(fe&&typeof fe.then=="function"?{}:{}),Promise.resolve(fe).then(Ne=>{Ne&&$e(Ne)}).catch(Ne=>{});return}if(typeof P=="function"){const fe=me(P);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("components.cjs.js",document.baseURI).href}catch{}fe&&typeof fe.then!="function"?$e(fe):$e(fe&&typeof fe.then=="function"?{}:{}),Promise.resolve(fe).then(Ne=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("components.cjs.js",document.baseURI).href}catch{}Ne&&$e(Ne)}).catch(Ne=>{console.error("viewResults external handler failed",Ne)});return}},fn=()=>{if(B){if(typeof Te=="number"&&typeof Xe=="number"&&Te<Xe-1){Ie(me=>({...me,pageIndex:me.pageIndex+1,stepIndex:0}));return}return xt()}if(H){const me=ot.length;if(typeof Ye=="number"&&Ye<me-1){Ie(fe=>({...fe,stepIndex:fe.stepIndex+1}));return}if(typeof Te=="number"&&typeof Xe=="number"&&Te<Xe-1){Ie(fe=>({...fe,pageIndex:fe.pageIndex+1,stepIndex:0}));return}return xt()}if(typeof C=="function"){try{C()}catch{}return}const oe=se.current&&se.current._childOnNext;if(typeof oe=="function"){try{oe()}catch{}return}},_t=B?Z.title||Z.label||w||j("common.popup","\uD31D\uC5C5"):a||_||(Array.isArray(o)?o[o.length-1]:void 0)||w||j("common.popup","\uD31D\uC5C5"),Cn=B?Z.title??Z.label??_t:a??_??_t,Kt=(oe,me)=>{const fe=Or(Me,Te),Ne=Hr(oe,me),K=Ue.answersByPage[fe]?.[Ne],te=qb(oe,{page:Me,pageIndex:Te,step:oe,stepIndex:me,storedPayload:K,answersByPage:Ue.answersByPage,flowState:Ue}),be={key:Ne,index:me,stepIndex:Ye,isLast:me===tt.length-1};switch(oe?.type){case"listen":return t.jsx(Lr,{...be,...te,onDone:xe=>Tt(oe,me,xe)});case"confirm":return t.jsx(Tr,{...be,...te,onDone:xe=>Tt(oe,me,xe),onChange:xe=>vt(oe,me,xe)});case"confirmWithText":return t.jsx(Mr,{...be,...te,onDone:xe=>Tt(oe,me,xe),onChange:xe=>vt(oe,me,xe)});case"orderList":return t.jsx($r,{...be,...te,onDone:xe=>Tt(oe,me,xe),onChange:xe=>vt(oe,me,xe)});default:return null}},Ge=B?Y.length>0?t.jsx("div",{className:"training-steps",children:tt.map((oe,me)=>Kt(oe,me))}):t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||j("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Mt=H?t.jsxs(El.Provider,{value:It,children:[qe?.pageTop?t.jsx("div",{className:"training-page-top",children:qe.pageTop}):null,t.jsx("div",{className:"training-steps",children:ot.map((oe,me)=>{const fe=oe;return i.cloneElement(fe,{...fe.props,_stepIndex:me,_totalSteps:ot.length,_stepKey:`step-${me}`,_pageIndex:Te})})}),qe?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:qe.pageBottom}):null]}):null,wt=i.useCallback(()=>{let oe;if(x){const me=Pe,fe=me?.results||me?.answers||[],Ne=Array.isArray(fe)&&fe.length>0?fe.length:null,K=Array.isArray(fe)?fe.filter(be=>be?.correct===!0||be?.isCorrect===!0||be?.score===1||be?.heard===!0||be?.judgement===!0).length:null,te=Ne!=null?K:null;Wm({items:Um(fe),category:Fl.has(x)?"sentence":"word",trainingType:x,entryPoint:A??"sentence",itemRef:k??null,correct:te,total:Ne,score:typeof me?.score=="number"?me.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-R.current)/1e3)),dailyTotal:M??null}),oe={correct:te,total:Ne}}$e(null),Ae(()=>{typeof g=="function"&&g(oe),typeof f=="function"&&f()})},[g,f,x,A,M,k,Pe,$e,Ae]),Zt=i.useCallback(()=>Ze(""),[Ze]),Ft=i.useCallback(()=>{Ae(()=>{typeof f=="function"&&f()})},[f,Ae]),Lt=t.jsxs("div",{className:`page-popup${Ve?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":_t,children:[t.jsxs("div",{ref:se,className:`page-popup__panel ${ze?"":"page-popup__panel--measuring"} ${Se==="center"?"page-popup__panel--center":Se==="top"?"page-popup__panel--top":""}`,children:[t.jsx(Sl,{title:Cn,subtitle:B?Z.subtitle||Z.label:Array.isArray(o)?o.join(" / "):void 0,desc:B?void 0:r,depth:B?Z.depth:o,icon:B?Z.icon:s,wrapperStyle:B?Z.wrapperStyle:l,iconTooltip:B?Z.iconTooltip:c,progressMax:Xe,progressIndex:Te,pageIndex:Te,pageCount:Xe,onBack:Ft,onClose:Ft}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${Se==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:H?Mt:B?Ge:typeof b=="function"?b({registerOnNext:ht,registerOnResult:Et,panelRef:se,setResultOverlay:$e}):b})}),t.jsx(Bl,{onSettings:m,onNext:fn,onResult:xt,useNoiseSettingBtn:!!(B?Z.useNoiseSetting??!0:v),stepIndex:Ye,stepCount:ft,pageIndex:Te,pageCount:Xe})]}),Pe&&!Pe.isEmpty&&(D??Ub)({score:Pe.score,results:Pe.results||Pe.answers||[],contextsLength:Pe.results?Pe.results.length:Pe.answers?Pe.answers.length:0,onReplay:()=>{if($e(null),B){if(Ie(ka()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if(H){Ie(ka());return}try{const oe=se.current&&se.current._childOnResult;typeof oe=="function"&&oe({replay:!0})}catch{}},onClose:wt}),Pe?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":j("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:t.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"page-popup__empty",children:j("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(ne,{variant:"main",size:48,onClick:wt,label:j("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(Tn,{message:Ke,position:"top",onClose:Zt})]}),qt=t.jsx(hl.Provider,{value:ae,children:Lt});return typeof document<"u"&&document.body?Pt.createPortal(qt,document.body):qt}const mn=Gb;mn.Page=wa,mn.ListenStep=Tl,mn.ConfirmStep=Ml,mn.ConfirmWithTextStep=Ll,mn.OrderListStep=$l,mn.CardStep=Rl,mn.CardOrderStep=Vb;function Kb({label:e,homonum:n}){const a=Dn()?.(e,n)??"",{imgRef:r,loading:o,hasImage:s,onLoad:l,onError:c}=fr(a);return s?t.jsxs("div",{className:"tooltip-word-image__cell",children:[o&&t.jsx("div",{className:"tooltip-word-image__spinner"}),t.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:o?0:1},onLoad:l,onError:c})]}):t.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:t.jsx("span",{children:e})})}function Ol({words:e,anchorRect:n}){const a=i.useRef(null),[r,o]=i.useState(null);return i.useLayoutEffect(()=>{if(!n||!a.current)return;const{offsetWidth:s,offsetHeight:l}=a.current,c=window.innerWidth;let d=n.left+n.width/2-s/2,u=n.top-l-8;u<8&&(u=n.bottom+8),d=Math.max(8,Math.min(d,c-s-8)),o({left:d,top:u})},[n]),!n||e.length===0?null:Pt.createPortal(t.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:t.jsx("div",{className:"tooltip-word-image__cells",children:e.map(s=>t.jsx(Kb,{label:s.label,homonum:s.homonum},`${s.label}_${s.homonum??1}`))})}),document.body)}function Zb({titleIcon:e,resultCount:n,resultUnit:a,searchQuery:r,items:o,groups:s,selected:l=[],onSelect:c,maxSelect:d,onClearSelection:u,onPrint:h,onPrintEmpty:p,className:f,emptyHint:g,sectionType:C="page",disc:m,notice:v}){const{t:b,i18n:w}=pe.useTranslation(),_=w.language?.startsWith("ko")??!1,{anchorRect:y,openAt:S,close:x}=da(),[A,M]=i.useState(null),k=i.useCallback(()=>{x(),M(null)},[x]);S0(k,!!A);const D=(r??"").trim(),O=/^[^,[\]\s]+$/.test(D)?D:"",R=O.length>0,[j,P]=i.useState("ganada"),[B,F]=i.useState("50"),[Z,Y]=i.useState(1),[J,E]=i.useState(R);J!==R&&(E(R),P(R?"match":"ganada"));const $=j==="match"&&!R?"ganada":j,L=i.useMemo(()=>[...R?[{value:"match",label:b("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:b("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:b("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:b("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:b("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:b("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:b("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[b,R]),V=i.useMemo(()=>["10","25","50","100"].map(ie=>({value:ie,label:b("wordSearch.pageSize",{count:Number(ie),defaultValue:`${ie}\uAC1C\uC529 \uBCF4\uAE30`})})),[b]),H=ie=>ie.words[0],X=i.useCallback((ie,ae)=>{const se=Ve=>H(Ve)?.label??"",Se=Ve=>H(Ve)?.syllables??[...se(Ve)].length,He=Ve=>{const Re=parseInt(H(Ve)?.grade??"",10);return Number.isFinite(Re)?Re:999};switch($){case"match":{const Ve=[...O].length,Re=Ee=>Sm(se(Ee).slice(0,Ve),O)?0:1;return Re(ie)-Re(ae)||se(ie).localeCompare(se(ae),"ko")}case"ganada":return se(ie).localeCompare(se(ae),"ko");case"ganada_desc":return se(ae).localeCompare(se(ie),"ko");case"syllable":return Se(ie)-Se(ae)||se(ie).localeCompare(se(ae),"ko");case"syllable_desc":return Se(ae)-Se(ie)||se(ie).localeCompare(se(ae),"ko");case"grade":return He(ie)-He(ae)||se(ie).localeCompare(se(ae),"ko");case"grade_desc":return He(ae)-He(ie)||se(ie).localeCompare(se(ae),"ko");default:return 0}},[$,O]),I=i.useMemo(()=>o.slice().sort(X),[o,X]),U=Number(B)||10,q=i.useMemo(()=>(s??[]).flatMap(ie=>ie.items.slice().sort(X).map(ae=>({item:ae,label:ie.label}))),[s,X]),le=s?q.length:I.length,de=Math.max(1,Math.ceil(le/U)),Ce=Math.min(Z,de),ve=i.useMemo(()=>I.slice((Ce-1)*U,Ce*U),[I,Ce,U]),he=i.useMemo(()=>{if(!s)return null;const ie=q.slice((Ce-1)*U,Ce*U),ae=new Map;for(const{item:se,label:Se}of ie)ae.has(Se)||ae.set(Se,[]),ae.get(Se).push(se);return[...ae.entries()].map(([se,Se])=>({label:se,items:Se}))},[s,q,Ce,U]);i.useEffect(()=>{Y(1)},[j,B,le]);const T=le>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(Vt,{size:40,options:L,value:$,onChange:P,ariaLabel:b("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(Vt,{size:40,options:V,value:B,onChange:F,ariaLabel:b("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(ha,{page:Ce,totalPages:de,onChange:Y})]}):void 0,W=ie=>{c&&c(ie)},Q=n!==void 0&&a?t.jsxs(t.Fragment,{children:[b("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),b("wordSearch.resultTitleSuffix",{unit:_?Pm(a):a})]}):void 0,_e=n!==void 0&&n>0&&d!==void 0&&a?b("wordSearch.resultDisc",{unit:_?Fm(a):a,max:d,selected:l.length}):void 0,ue=m??(v?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"word-search-result-block__notice",children:v}),_e?t.jsx("span",{className:"word-search-result-block__disc",children:_e}):null]}):_e);return t.jsxs(Mn,{type:C,icon:e,title:Q,action:T,disc:ue,className:ye("word-search-result-block",f),children:[t.jsxs("div",{className:"word-search-result-block__inner",children:[(s?s.length===0:o.length===0)&&t.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[t.jsx("p",{className:"word-search-result-block__empty body-3",children:b("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&t.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),s?(he??[]).map(ie=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:ie.items.map(ae=>{const se=l.includes(ae.id);return t.jsx("div",{onMouseEnter:Se=>{S(Se.currentTarget),M(ae.words)},onMouseLeave:k,children:t.jsx(ne,{size:"word",align:"grid",label:ae.words.map(Se=>Se.label),subLabel:ae.words.map(Se=>Se.subLabel).filter(Boolean).length>0?ae.words.map(Se=>Se.subLabel):void 0,selected:se,onClick:()=>W(ae.id),minWidth:200})},ae.id)})})},ie.label)):t.jsx("div",{className:"word-search-result-block__items",children:ve.map(ie=>{const ae=l.includes(ie.id);return t.jsx("div",{onMouseEnter:se=>{S(se.currentTarget),M(ie.words)},onMouseLeave:k,children:t.jsx(ne,{size:"word",align:"grid",label:ie.words.map(se=>se.label),subLabel:ie.words.map(se=>se.subLabel).filter(Boolean).length>0?ie.words.map(se=>se.subLabel):void 0,selected:ae,onClick:()=>W(ie.id),minWidth:200})},ie.id)})}),A&&y&&t.jsx(Ol,{words:A,anchorRect:y})]}),de>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(ha,{page:Ce,totalPages:de,onChange:Y})}),(u||h)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[u&&t.jsx(ne,{size:"56",type:"bar",label:b("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:u}),h&&t.jsx("div",{onClick:l.length===0?p:void 0,children:t.jsx(ne,{size:"56",type:"bar",variant:"main",label:b("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:h})})]})]})}function Yb(e,n){return n.map(a=>{const r=typeof a=="string"?a:a.label,o=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:o}})}function Xb({sections:e,selectedList:n,count:a,onCountChange:r,maxCount:o=4,minCount:s=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:d,placeholder:u="-",className:h,title:p,titleIcon:f,disc:g,showInfoButton:C=!1,onClearPhoneme:m,onSearch:v,onSearchEmpty:b,searchDisabled:w=!1,searchLabel:_,searchChecking:y=!1,pairMode:S=!1,sectionType:x="page",beforeSearchContent:A,beforeContent:M,afterContent:k,hideCountControl:D=!1,ordinal:O=!1}){const{t:R}=pe.useTranslation(),j=i.useMemo(()=>R("wordPairs.infoNotes",{returnObjects:!0}),[R]),P=i.useMemo(()=>Array.from({length:o-s+1},(I,U)=>{const q=s+U;return{key:String(q),label:R("wordPairs.count",{n:q})}}),[R,o,s]),B=i.useMemo(()=>R("wordPairs.ordinals",{returnObjects:!0}),[R]),F=i.useCallback(I=>O?R("wordPairs.phonemeOrdinalLabel",{ordinal:B[I-1]??I}):a===1?R("wordPairs.phonemeSingleLabel","\uC74C\uC808"):R("wordPairs.phonemeN",{n:I}),[O,B,a,R]),Z=i.useCallback(I=>O?R("wordPairs.phonemeContrastOrdinalLabel",{ordinal:B[I-1]??I}):a===1?R("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):R("wordPairs.phonemeContrast",{n:I}),[O,B,a,R]),Y=i.useCallback((I,U)=>U?t.jsxs(t.Fragment,{children:[I,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):I,[]),{anchorRect:J,toggleAt:E,close:$}=da(),L=i.useCallback(I=>r(Number(I)),[r]),V=Xt("(max-width: 767px)"),H=i.useCallback(I=>Yb(I,e).map(({label:U,value:q,displayLabel:le})=>{const de=!!q&&q!=="\uC5C6\uC74C";return t.jsxs("span",{className:ye("phoneme-select-block__cell-jamo-part",q?"":"phoneme-select-block__cell-jamo-part--empty",de?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[t.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${q==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:q==="\uC5C6\uC74C"?"x":q||u}),de&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:le??U})]},U)}),[e,u]),X=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(ne,{size:40,type:V?"dot":void 0,icon:"info",label:V?void 0:R("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!J,onClick:I=>E(I.currentTarget)})}),J&&t.jsx(_n,{title:R("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:j,anchorRect:J,onClose:$})]});return t.jsxs(Mn,{type:x,title:p,icon:f,disc:g,action:X,className:ye("phoneme-select-block",h),children:[M,(!D||C&&!(p||g))&&t.jsxs("div",{className:"phoneme-select-block__controls",children:[!D&&t.jsx(An,{options:P,value:String(a),onChange:L,size:40,className:"phoneme-select-block__count-control"}),C&&!(p||g)&&X]}),t.jsx("div",{className:"phoneme-select-block__cells",children:S?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((I,U)=>{const q=n[U*2]??{};return t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:H(q)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:F(U+1)})]},U)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:R("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((I,U)=>{const q=n[U*2+1]??{};return t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:H(q)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:Z(U+1)})]},U)})})]}):n.map((I,U)=>t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:H(I)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:F(U+1)})]},U))}),(l||c)&&t.jsx("div",{className:"phoneme-select-block__panels",children:t.jsx("div",{className:"phoneme-select-block__detail",children:S?t.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((I,U)=>{const q=n[U*2]??{};return t.jsx(nn,{title:Y(F(U+1),U===0),sections:c?c(q,U*2):l,selected:q,onSelect:d?.(U*2),align:"newline"},U)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((I,U)=>{const q=n[U*2+1]??{};return t.jsx(nn,{title:Z(U+1),sections:c?c(q,U*2+1):l,selected:q,onSelect:d?.(U*2+1),align:"newline"},U)})})]}):n.map((I,U)=>t.jsx(nn,{title:Y(F(U+1),U===0),sections:c?c(I,U):l,selected:I,onSelect:d?.(U),align:"newline"},U))})}),A&&t.jsx("div",{className:"phoneme-select-block__before-search",children:A}),(m||v||y)&&(()=>{const I=n.every(U=>Object.entries(U).every(([q,le])=>!le||q==="\uC885\uC131"&&le==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:I?b:void 0,children:[m&&t.jsx(ne,{size:"56",type:"bar",label:R("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:I,onClick:I?void 0:m}),y?t.jsxs("div",{className:"phoneme-select-block__checking",children:[t.jsx("div",{className:"phoneme-select-block__spinner"}),t.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:_??R("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):v&&t.jsx(ne,{size:"56",type:"bar",variant:"main",label:_??R("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:I||w,onClick:I||w?void 0:v})]})})(),k]})}function Jb({title:e,sections:n,selected:a,onSelect:r,className:o}){const{t:s}=pe.useTranslation();return t.jsx(nn,{className:o,title:e??s("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:n,selected:a,onSelect:r,align:"inline"})}function Qb({title:e,headerAction:n,sections:a,selected:r,onSelect:o,className:s}){const{t:l}=pe.useTranslation();return a.length===0?null:t.jsx(nn,{className:s,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:n,sections:a,selected:r,onSelect:o,align:"newline"})}function e5({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:o,positionCount:s,onPositionCountChange:l,inputMode:c,onInputModeChange:d,className:u}){const{t:h}=pe.useTranslation(),p={searchMode:h("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:h("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:h("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:h("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:h("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:h("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:h("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:h("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:h("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:h("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:h("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},f=v=>h("wordPairs.count",{n:v}),g=[{label:p.searchMode,items:[p.include,p.pick,p.explicit],display:"segmented",labelAction:t.jsx(Jn,{title:h("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[h("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."),h("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."),h("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:t.jsx(Jn,{items:h("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:p.count,items:[f(1),f(2)],display:"segmented"},{label:p.inputMode,items:[p.charInput,p.pronInput],display:"segmented",labelAction:t.jsx(Jn,{title:h("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[h("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."),h("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.")]})}],C={[p.searchMode]:n==="explicit"?p.explicit:n==="pick"?p.pick:p.include,[p.phonemeOrder]:r==="ordered"?p.orderMatch:p.orderAny,[p.count]:f(s),[p.inputMode]:c==="phoneme"?p.pronInput:p.charInput},m=(v,b)=>{b===p.searchMode?a(v===p.explicit?"explicit":v===p.pick?"pick":"include"):b===p.phonemeOrder?o(v===p.orderMatch?"ordered":"unordered"):b===p.count?l(v===f(2)?2:1):b===p.inputMode&&d(v===p.pronInput?"phoneme":"word")};return t.jsx(nn,{className:u,title:e??h("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:C,onSelect:m,align:"inline"})}function t5(e){const{title:n,items:a,columns:r,gridTemplateColumns:o,searchPlaceholder:s,searchFn:l,defaultSortKey:c,defaultSortAsc:d=!0,selectedId:u,selectedIds:h,onSelect:p,onClose:f,pageSizeOptions:g=[10,25,50,100],initialPageSize:C,emptyText:m,countLabel:v,topContent:b,className:w=""}=e,{t:_}=pe.useTranslation(),y=s??_("common.search","\uAC80\uC0C9"),S=m??_("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[x,A]=i.useState(""),[M,k]=i.useState(c??r[0]?.key??""),[D,O]=i.useState(d),[R,j]=i.useState(String(C??g[0]??10)),[P,B]=i.useState(1);i.useEffect(()=>{B(1)},[x,R]);const F=l!==null,Z=i.useCallback((I,U)=>{if(!U)return!0;const q=U.toLowerCase();return r.some(le=>{const de=I[le.key];return de==null?!1:String(de).toLowerCase().includes(q)})},[r]),Y=l??Z,J=i.useMemo(()=>{const I=F?a.filter(U=>Y(U,x)):a;return M?[...I].sort((U,q)=>{const le=U[M]??"",de=q[M]??"";if(le===de)return 0;const Ce=E4(le,de);return D?Ce:-Ce}):I},[a,x,M,D,F,Y]),E=Math.max(1,Math.ceil(J.length/Number(R))),$=J.slice((P-1)*Number(R),P*Number(R)),L=i.useCallback(I=>{M===I?O(U=>!U):(k(I),O(!0))},[M]),V=i.useMemo(()=>{if(typeof v=="string"&&v.includes("{n}")){const[I,U]=v.split("{n}");return{prefix:I,suffix:U}}return{prefix:_("common.totalCountPrefix","\uCD1D "),suffix:_("common.totalCountSuffix","\uAC1C")}},[v,_]),H=i.useMemo(()=>r.map(I=>({label:I.label,onClick:I.sortable!==!1?()=>L(I.key):void 0,className:I.className,sortDir:I.sortable!==!1&&M===I.key?D?"asc":"desc":null})),[r,M,D,L]),X=i.useMemo(()=>g.map(I=>({value:String(I),label:_("common.pageSizeLabel",{n:I})})),[g,_]);return t.jsxs(pn,{className:`popup-list ${w}`,title:n,onClose:f,children:[b,t.jsx(ir,{count:{value:J.length,prefix:V.prefix,suffix:V.suffix},search:F?{value:x,onChange:A,placeholder:y}:void 0,pageSize:{options:X,value:R,onChange:j},pagination:{page:P,total:E,onChange:B}}),t.jsx(hr,{size:"medium",gridTemplateColumns:o,resizable:!0,fields:H,items:$,onRowClick:p,renderRow:I=>{const U=h!=null?I.id!=null&&h.has(I.id):u!=null&&I.id===u;return r.map(q=>({content:q.render?q.render(I):I[q.key]??"",className:U?"popup-list__row--selected":q.className}))},empty:S})]})}function n5(e){const{title:n,message:a,topContent:r,details:o,children:s,confirmLabel:l,cancelLabel:c,hideCancel:d=!1,extraAction:u,confirmVariant:h="main",confirmDisabled:p=!1,onConfirm:f,closeOnConfirm:g=!0,onClose:C,inline:m,size:v="small",className:b}=e,{t:w}=pe.useTranslation(),_=i.useRef(!1),[y,S]=i.useState(!1);return t.jsxs(pn,{title:n,onClose:C,closeDisabled:y,inline:m,size:v,className:ye("confirm-popup",b),buttons:[...u?[{label:u.label,variant:u.variant??"default",disabled:u.disabled||y,onClick:async({closeWithAnimation:x})=>{if(!_.current){_.current=!0,S(!0);try{await u.onClick(x),(u.closeOnClick??!0)&&x()}finally{_.current=!1,S(!1)}}}}]:[],...d?[]:[{label:c??w("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:y,onClick:({closeWithAnimation:x})=>x()}],{label:l??w("common.confirm","\uD655\uC778"),variant:h,disabled:p||y,onClick:async({closeWithAnimation:x})=>{if(!_.current){_.current=!0,S(!0);try{await f(x),g&&x()}finally{_.current=!1,S(!1)}}}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),o&&o.length>0&&t.jsx(_a,{children:o.map((x,A)=>t.jsx(hn,{label:x.label,children:t.jsx("span",{className:"panel-row__text body-2",children:x.value})},A))}),t.jsx("p",{className:"body-2 confirm-popup__message",children:a}),s]})}function a5({onApply:e,onCancel:n}){const{t:a}=pe.useTranslation(),[r,o]=i.useState(""),[s,l]=i.useState(!1),[c,d]=i.useState(null),u=i.useRef(null);i.useEffect(()=>{u.current?.focus()},[]);const h=i.useCallback(async g=>{const C=r.trim();if(C){l(!0),d(null);try{await e(C),g()}catch(m){d(Jo(m)),l(!1)}}},[r,e]),p=i.useCallback((g,C)=>{g.key==="Enter"&&h(C)},[h]),f=g=>{o(g.target.value),d(null)};return t.jsx(pn,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:n,closeDisabled:s,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:s,onClick:({closeWithAnimation:g})=>g()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||s,onClick:({closeWithAnimation:g})=>{h(g)}}],children:({closeWithAnimation:g})=>t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:u,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:f,onKeyDown:C=>p(C,g),disabled:s,autoComplete:"off",spellCheck:!1}),c&&t.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const r5=200;function o5(e){return e.itemId?(r0()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function s5({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:o}=pe.useTranslation(),s=i.useMemo(()=>o0.map(c=>({type:c,items:(e.items??[]).filter(d=>d.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items]);if(s.length===0)return null;const l=t.jsx("div",{className:"tooltip-training__box",children:t.jsx("div",{className:"tooltip-training__groups",children:s.flatMap(({type:c,items:d},u)=>[u>0?t.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,t.jsxs("div",{className:"tooltip-training__section",children:[t.jsx("div",{className:"tooltip-training__section-header",children:t.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),t.jsx("div",{className:"tooltip-training__items",children:d.map((h,p)=>{const f=o5(h);return f?t.jsx(mr,{index:p,type:c,trainingData:f,size:"compact",hideCheckBadge:!0},h.itemId??p):null})})]},c.key)])})});return n?t.jsx(ln,{anchorRect:n,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:o("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const Hl=["var(--color-main)","var(--color-sub)"];function Vl({active:e=!1,count:n=40,duration:a=2e3,strength:r=1,onComplete:o,trigger:s=0}){const l=i.useMemo(()=>{const m=Math.floor(n/2),v=n-m,b=(w,_)=>Array.from({length:w}).map((y,S)=>{const x=6+Math.random()*12,A=Math.round(Math.min(18,x*Math.min(1.5,1+r*.4))),M=Hl[Math.floor(Math.random()*Hl.length)],k=Math.random()*300,D=(360+Math.random()*260)*r*1.2,O=(_==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,R=Math.cos(O)*D,j=Math.sin(O)*D*1.35,P=Math.random()*720-360,B=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),F=Math.random()>.7?"50%":"3px";return{id:`${_}-${S}`,side:_,size:A,color:M,delay:k,vx:R,vy:j,angularVel:P,life:B,borderRadius:F}});return[...b(m,"left"),...b(v,"right")]},[n,r]),c=i.useRef(null),d=i.useRef({}),u=i.useRef(null),h=i.useRef(o);i.useEffect(()=>{h.current=o},[o]);const p=i.useRef(null),f=i.useRef(null),g=()=>{if(typeof document>"u")return null;let m=document.querySelector("[data-ihab-effect-root]");return m||(m=document.createElement("div"),m.className="app-effect",m.dataset.ihabEffectRoot="",m.style.position="fixed",m.style.inset="0",m.style.pointerEvents="none",m.style.zIndex="99998",document.body.appendChild(m)),m};if(typeof document<"u"&&f.current==null&&(f.current=g()),i.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){h.current?.();return}const m=1200,v=performance.now(),b=f.current&&f.current!==document.body?f.current.getBoundingClientRect():null,w=Math.max(60,(window.innerHeight||800)*.05),_=E=>Math.max(40,(E||window.innerWidth)*.02),y=b?.width||window.innerWidth||375,S=b?.height||window.innerHeight||812,x=E=>{const $=[...E].sort((L,V)=>L-V);return $[Math.floor($.length/2)]||1},A=x(l.map(E=>Math.abs(E.vy))),M=x(l.map(E=>Math.abs(E.vx))),k=Math.sqrt(2*m*(S*.72+w))/A,D=A*k/m,O=y*.5/(M*D),R=(E,$,L)=>Math.min(L,Math.max($,E)),j=R(k,.8,2.4),P=R(O,.7,2.2),B=l.map(E=>({...E,vx:E.vx*P,vy:E.vy*j,startTime:v+E.delay,ended:!1})),F=b?{x:b.left-_(b.width),y:b.top+b.height+w}:{x:-_(window.innerWidth),y:window.innerHeight+w},Z=b?{x:b.left+b.width+_(b.width),y:b.top+b.height+w}:{x:window.innerWidth+_(window.innerWidth),y:window.innerHeight+w},Y=E=>{let $=!1;for(const L of B){const V=d.current[L.id];if(!V||!V)continue;if(E<L.startTime){V.style.display="none";continue}if(!L._inited){const he=L.side==="left"?F.x:Z.x,T=L.side==="left"?F.y:Z.y;V.style.left=`${he}px`,V.style.top=`${T}px`,V.style.transform="translate3d(0px, 0px, 0)",V.style.display="block",V.style.zIndex="100000";try{if(typeof window<"u"&&typeof L.color=="string"&&L.color.startsWith("var(")){const W=L.color.slice(4,-1).trim(),Q=getComputedStyle(document.documentElement).getPropertyValue(W).trim();Q?V.style.background=Q:V.style.background="#FF0060"}}catch{}L._inited=!0}const H=(E-L.startTime)/1e3;if(H<0)continue;const X=L.life/1e3;if(H>=X){V.style.opacity="0",V.style.display="none",L.ended=!0;continue}$=!0;const I=L.side==="left"?F.x:Z.x,U=L.side==="left"?F.y:Z.y,q=I+L.vx*H,le=U+L.vy*H+.5*m*H*H,de=(L.angularVel||0)*H,Ce=q-I,ve=le-U;V.style.transform=`translate3d(${Ce}px, ${ve}px, 0) rotate(${de}deg)`,V.style.opacity=`${Math.max(0,1-H/X)}`}$?u.current=requestAnimationFrame(Y):h.current?.()};u.current=requestAnimationFrame(Y);const J=setTimeout(()=>{try{if((f.current?f.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const E=document.createElement("div");E.className="party-container",E.style.position="fixed",E.style.inset="0",E.style.pointerEvents="none",E.style.overflow="visible",E.style.zIndex="2147483647";for(const $ of l){const L=document.createElement("span");L.className=`confetti confetti--${$.side}`,L.setAttribute("aria-hidden","true"),L.style.display="none",L.style.position="fixed",L.style.left="0px",L.style.top="0px",L.style.width=`${$.size}px`,L.style.height=`${Math.max(4,$.size*.6)}px`;let V=$.color;try{if(typeof V=="string"&&V.startsWith("var(")){const H=V.slice(4,-1).trim(),X=getComputedStyle(document.documentElement).getPropertyValue(H).trim();X&&(V=X)}}catch{}L.style.background=V,L.style.borderRadius=$.borderRadius,L.style.transform="translate3d(0,0,0)",L.style.opacity="0",E.appendChild(L),d.current[$.id]=L}(document.body||f.current).appendChild(E),p.current=E}}catch{}},300);return()=>{if(u.current&&cancelAnimationFrame(u.current),clearTimeout(J),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,a,s,l]),!e)return null;const C=t.jsx("div",{className:"party-container",ref:c,children:l.map(m=>t.jsx("span",{"aria-hidden":!0,ref:v=>{d.current[m.id]=v},className:`confetti confetti--${m.side}`,style:{width:`${m.size}px`,height:`${Math.max(4,m.size*.6)}px`,background:m.color,borderRadius:m.borderRadius}},`${m.id}-${s}`))});return typeof document<"u"?Pt.createPortal(C,f.current||document.body):C}function i5({trigger:e=0,active:n=!1}){const a=i.useRef(0);return i.useEffect(()=>{a.current=e},[e]),t.jsx(Vl,{active:n,trigger:e})}function l5({title:e,sub:n,rightAction:a,titleAction:r,badge:o,badgeVariant:s="default",documentTitle:l,onBack:c,backLabel:d}){const{t:u}=pe.useTranslation();b0(typeof e=="string"?e:l??null);const h=d??u("common.back","\uB4A4\uB85C");return t.jsxs("div",{className:"page-title",children:[t.jsxs("div",{className:"page-title__main",children:[t.jsxs("div",{className:"page-title__title-row",children:[c&&t.jsx(ne,{className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:h,showTooltipInfo:h,onClick:c}),t.jsx("h1",{className:"page-title__title h1",children:e}),o&&t.jsx("div",{className:"page-title__badge",children:t.jsx(lt,{label:o,size:"small",variant:s,fill:"outline"})}),r?t.jsx("div",{className:"page-title__title-action",children:r}):null]}),n&&t.jsx("p",{className:"page-title__sub body-2",children:n})]}),a?t.jsx("div",{className:"page-title__action",children:a}):null]})}function c5(e){return e??""}const zl=i.createContext({words:[],loading:!1});function u5(){return i.useContext(zl)}function d5({words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:s,progress:l,clearAndRefetch:c,checkRemoteVersion:d,children:u}){return t.jsx(zl.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:s,progress:l,clearAndRefetch:c,checkRemoteVersion:d},children:u})}function p5({items:e,actions:n,columns:a,flat:r=!1,className:o,style:s}){const l=a??e.length;return t.jsx("section",{className:ye("summary-strip",r&&"summary-strip--flat",o),style:{"--summary-strip-cols":String(l),...s},children:t.jsxs("div",{className:"summary-strip__row",children:[t.jsx("div",{className:"summary-strip__items",children:e.map((c,d)=>t.jsxs("div",{className:"summary-strip__item",children:[t.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),t.jsx("p",{className:"summary-strip__value body-3b",children:c.value})]},d))}),n&&t.jsx("div",{className:"summary-strip__actions",children:n})]})})}const h5=(e,n)=>`${e} / ${n}`;function m5({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:o=h5,pageWidth:s,pageHeight:l,margin:c,className:d,style:u}){const{t:h}=pe.useTranslation(),p=i.useRef(null),f=i.useRef(null),g=i.useRef(null),C=i.useRef(null),[m,v]=i.useState(null),[b,w]=i.useState(!1);i.useEffect(()=>{const D=p.current;if(!D)return;const O=()=>w(D.scrollWidth>D.clientWidth+1);if(O(),typeof ResizeObserver>"u")return;const R=new ResizeObserver(O);return R.observe(D),()=>R.disconnect()},[m]);const _=e.map(D=>`${D.id}\0${D.section??""}\0${D.group??""}`).join("");i.useLayoutEffect(()=>{const D=f.current,O=C.current;if(!D||!O)return;const R=g.current?.offsetHeight??0,j=O.offsetHeight-R,P=Array.from(D.children).map(E=>E.offsetHeight),B=[];e.forEach((E,$)=>{const L=B[B.length-1],V=L?e[L[0]]:void 0;V&&E.group!=null&&V.group===E.group?L.push($):B.push([$])});const F=[];let Z=[],Y=0;const J=()=>{Z.length&&F.push(Z),Z=[],Y=0};B.forEach(E=>{const $=E.reduce((L,V)=>L+P[V],0);Z.length&&e[Z[0]].section!==e[E[0]].section&&J(),Z.length&&Y+$>j&&J(),$>j?E.forEach(L=>{Z.length&&Y+P[L]>j&&J(),Z.push(L),Y+=P[L]}):(E.forEach(L=>Z.push(L)),Y+=$)}),J(),v(F)},[_]);const y=sr,S=y,x=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:S,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),A=(D,O,R)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:R!=null&&n?.[R]||null}),a]}),footer:t.jsxs("div",{className:"report-doc__footer caption-1",children:[t.jsx("span",{className:"report-doc__footer-left",children:x}),t.jsx("span",{className:"report-doc__page-no",children:o(D,O)})]})}),M=A(1,1,e[0]?.section),k={...s?{"--report-page-w":s}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...u};return t.jsxs("div",{ref:p,className:ye("report-doc",d),style:k,tabIndex:b?0:void 0,role:b?"group":void 0,"aria-label":b?h("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[t.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[t.jsx("div",{ref:C,className:"report-doc__ruler"}),t.jsxs("div",{ref:g,children:[M.header,M.footer]}),t.jsx("div",{ref:f,className:"report-doc__measure-blocks",children:e.map(D=>t.jsx("div",{children:D.content},D.id))})]}),m&&t.jsx("div",{className:"report-doc__pages",children:m.map((D,O)=>{const{header:R,footer:j}=A(O+1,m.length,e[D[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[R,D.map(P=>t.jsx("div",{children:e[P].content},e[P].id)),j]},O)})})]})}function f5({title:e,fields:n,columns:a=4,className:r,style:o}){return t.jsxs("div",{className:ye("report-info",r),style:{"--report-info-cols":String(a),...o},children:[e&&t.jsx("p",{className:"report-info__title h5b",children:e}),t.jsx("div",{className:"report-info__grid",children:n.map((s,l)=>t.jsxs("div",{className:"report-info__field body-2",children:[t.jsx("span",{className:"report-info__label body-3",children:s.label}),t.jsx("span",{className:"report-info__value",children:s.value})]},l))})]})}function C5({title:e,message:n,actionLabel:a,onAction:r,icon:o,onClose:s,className:l=""}){const{t:c}=pe.useTranslation(),d=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return t.jsxs("div",{className:ye("update-alert",l),role:"alert",children:[s&&t.jsx("button",{type:"button",className:"update-alert__close",onClick:s,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),t.jsxs("div",{className:"update-alert__top",children:[t.jsx("div",{className:"update-alert__icon",children:o??t.jsx(ro,{size:20,strokeWidth:2})}),t.jsxs("div",{className:"update-alert__body",children:[t.jsx("div",{className:"update-alert__title h4",children:e}),t.jsx("div",{className:"update-alert__message body-3",children:n})]})]}),r&&t.jsx(ne,{size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:d})]})}function g5({title:e,description:n,topActions:a,children:r,footerLeft:o,footerRight:s,onClick:l,draggable:c,onDragStart:d,onDragEnd:u,className:h}){const p=o!=null||s!=null,f=r!=null&&r!==!1,g=i.useCallback(C=>{l&&C.target===C.currentTarget&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),l())},[l]);return t.jsxs("div",{className:ye("training-card",l?"training-card--clickable":"",h),onClick:l,onKeyDown:l?g:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:c,onDragStart:d,onDragEnd:u,children:[t.jsxs("div",{className:"training-card__header",children:[t.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?t.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&t.jsx("div",{className:"training-card__top-actions",onClick:C=>C.stopPropagation(),children:a})]}),n!=null?typeof n=="string"?t.jsx("p",{className:"training-card__description body-3",children:n}):n:t.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),f&&t.jsx("div",{className:"training-card__body",children:r}),p&&t.jsxs("div",{className:"training-card__footer",children:[o!=null&&t.jsx("div",{className:"training-card__footer-left",children:o}),s!=null&&t.jsx("div",{className:"training-card__meta",children:s})]})]})}function b5({title:e,count:n,collapsed:a=!1,onToggle:r,sort:o,actions:s,empty:l=!1,emptyContent:c,dragOver:d=!1,onDragOver:u,onDragLeave:h,onDrop:p,children:f,className:g}){const{t:C}=pe.useTranslation(),m=r!=null,v=ye("training-card-group",d&&"training-card-group--dragover",a&&"training-card-group--collapsed",m&&"training-card-group--collapsible",g);return t.jsxs("div",{className:v,onDragOver:u,onDragLeave:h,onDrop:p,children:[t.jsxs("header",{className:"training-card-group__header",children:[m&&t.jsx(ne,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?C("common.expand","\uD3BC\uCE58\uAE30"):C("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron",onClick:r}),typeof e=="string"?t.jsx("span",{className:"training-card-group__title h5b",children:e}):e,n!==void 0&&t.jsx("span",{className:"training-card-group__count body-3b",children:n}),(o||s!=null)&&t.jsxs("span",{className:"training-card-group__actions",onClick:b=>b.stopPropagation(),children:[o&&t.jsx(Vt,{size:40,options:o.options,value:o.value,placeholder:o.placeholder,onChange:o.onChange}),s]})]}),!a&&(l?t.jsx("div",{className:"training-card-group__empty body-3",children:c}):t.jsx("div",{className:"training-card-group__grid",children:f}))]})}const y5="speechear:saved_word_tables";function v5(e){if(typeof e!="object"||e===null)return!1;const n=e;return typeof n.id=="string"&&typeof n.name=="string"&&Array.isArray(n.items)}function x5(){try{const e=localStorage.getItem(y5);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(v5):[]}catch{return[]}}function _5({title:e,titleIcon:n,disc:a,items:r,onSaveComplete:o,onLoad:s,onRemoveItem:l,onReset:c,resetLabel:d,saveButtonLabel:u,secondarySaveButtonLabel:h,onReorder:p,showCellCount:f,onAddItem:g,className:C,renderSavePopup:m,renderWordSearch:v,hideControls:b,saveOnly:w,tableName:_,nameValue:y,onNameChange:S,descriptionValue:x,onDescriptionChange:A,namePlaceholder:M,descriptionPlaceholder:k,existingNames:D,editingName:O,onCancel:R}){const{t:j}=pe.useTranslation(),P=d??j("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),B=r===void 0,F=!!S,[Z,Y]=i.useState([]),J=(y??"").trim(),E=J||(M??"").trim(),$=(x??"").trim()||(k??"").trim(),L=(D??[]).map(ee=>ee.trim().toLowerCase()),V=[O?.trim().toLowerCase(),...Z].filter(ee=>!!ee),H=[...L];for(const ee of V){const ke=H.indexOf(ee);ke!==-1&&H.splice(ke,1)}const X=J!==""&&H.includes(J.toLowerCase()),[I,U]=i.useState(Array(4).fill(null)),[q,le]=i.useState(4),[de,Ce]=i.useState(null),[ve,he]=i.useState("landscape"),[T,W]=i.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[Q,_e]=i.useState("\uD45C\uC2DC"),[ue,ie]=i.useState(!0),[ae,se]=i.useState(!0),Se=i.useRef(null),He=i.useRef([]),[Ve,Re]=i.useState(8),[Ee,je]=i.useState("right"),[Ae,ze]=i.useState(!1),[at,ge]=i.useState(!1),{toastMessage:Pe,toastType:$e,showWarning:Ke,clearToast:Ze}=qs("warning"),Ue=i.useCallback(()=>Ce(null),[Ce]),[Ie,dt]=i.useState(()=>Math.max(r?.length??1,1));i.useEffect(()=>{B||dt(ee=>Math.max(ee,r?.length??1))},[r?.length,B]);const ct=B?q:f?Math.max(Ie,r?.length??1):Math.max(r?.length??0,1),{width:qe,height:ot}=$n[ve],Te=!B&&!f,Me=r?.length??0,tt=Math.min(Ve,Math.max(Me,1)),ft=Te?tt:ct,Ye=Te?Vi(r??[],ft):null,Xe=!!Ye&&Ye.length>1,ht=B?I.some(ee=>ee!==null&&ee.length>1):(r??[]).some(ee=>ee.words.length>1),Et=_?.trim()||`${ns(Ym())} ${ht?j("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):j("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,Qe=i.useCallback(()=>Xe?He.current.filter(ee=>ee!==null):Se.current?[Se.current]:[],[Xe]),{print:vt,openNewWindow:Tt,downloadHtml:Gt}=_r({getElements:Qe,paperW:qe,paperH:ot,fileName:Et,onPopupBlocked:()=>{Ke(j("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),an=ee=>{le(ee),U(ke=>{const Fe=Array(ee).fill(null);return ke.slice(0,ee).forEach((et,Ct)=>{Fe[Ct]=et}),Fe}),Ce(null)},It=ee=>{U(ke=>{const Fe=[...ke];return Fe[ee]=null,Fe}),de===ee&&Ce(null)},zt=ee=>{if(de===null)return;const ke=de;U(et=>{const Ct=[...et];return Ct[ke]=ee,Ct});const Fe=I.findIndex((et,Ct)=>Ct>ke&&et===null);Ce(Fe!==-1?Fe:null)},Wt=B?I.some(ee=>ee?.some(ke=>!!ke.colloquialPronunciation)):(r??[]).some(ee=>ee.words.some(ke=>!!ke.colloquialLabel)),xt=i.useMemo(()=>Dn()?B?I.flatMap(ee=>(ee??[]).map(ke=>[ke.word,ke.homonum])):(r??[]).flatMap(ee=>ee.words.map(ke=>[ke.label,ke.homonum])):[],[B,I,r]),[fn,_t]=i.useState(!1);i.useEffect(()=>{if(xt.length===0)return;let ee=!1;return Promise.all(xt.map(([ke,Fe])=>Ko(ke,Fe))).then(ke=>{ee||_t(ke.some(Boolean))}),()=>{ee=!0}},[xt]);const Cn=xt.length>0&&fn,Kt=i.useMemo(()=>[...B||f?[{label:j("wordTable.filter.columns","\uCE78 \uC218"),items:y4.map(ee=>({value:`${ee}\uCE78`,displayLabel:j("wordTable.filter.column",{count:ee})})),display:"segmented"}]:[],...Te&&(r?.length??0)>0?[Qi(j,{hasPairs:ht,itemCount:Me})]:[],...Xe?[el(j)]:[]],[j,B,f,Te,r?.length,ht,Me,Xe]),Ge={...B||f?{[j("wordTable.filter.columns","\uCE78 \uC218")]:`${B?q:Ie}\uCE78`}:{},...Te&&(r?.length??0)>0?{[j(ht?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${tt}\uAC1C`}:{},...Xe?{[j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:tl[Ee]}:{}},Mt=(ee,ke)=>{ke===j("wordTable.filter.columns","\uCE78 \uC218")?B?an(parseInt(ee)):dt(parseInt(ee)):ke===j(ht?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Re(parseInt(ee)):ke===j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&je(nl(ee))},wt=B?I.filter(ee=>ee!==null).map(ee=>({id:ee[0].word,words:ee.map(ke=>({label:ke.word,subLabel:ke.pronunciation,homonum:ke.homonum}))})):r??[],Zt=(ee=!1)=>{if(ge(ee),F&&o){const ke=E.trim().toLowerCase();ke&&Y(Fe=>Fe.includes(ke)?Fe:[...Fe,ke]),o(E,wt,$||void 0,ee);return}if(w&&o){o("",wt,void 0,ee);return}if(o){ze(!0);return}Gt()},[Ft,Lt]=i.useState(!1),[qt,oe]=i.useState(""),me=qt.trim(),fe=me!==""&&L.includes(me.toLowerCase()),Ne=()=>{oe(E?`${E} (\uBCF5\uC0AC)`:""),Lt(!0)},K=()=>{!me||fe||!o||(o(me,wt,$||void 0,!0),Lt(!1))},te=wt.length===0,be=te||F&&(E===""||X),xe=()=>{if(te){Ke(j("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(F&&E===""){Ke(j("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}F&&X&&Ke(j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},De=t.jsx(Rn,{items:wt,orientation:ve,contentTypes:T,cutLine:Q,showOutline:ue,showDivLine:ae,count:ct});return t.jsxs(t.Fragment,{children:[t.jsxs(Mn,{type:"page",icon:n,title:e,disc:a,className:ye("word-table-block",C),children:[Ft&&t.jsx(pn,{size:"small",title:h??j("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>Lt(!1),footer:({closeWithAnimation:ee})=>t.jsxs(t.Fragment,{children:[t.jsx(ne,{size:48,type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:ee}),t.jsx(ne,{size:48,type:"bar",variant:"main",label:j("common.save","\uC800\uC7A5"),disabled:!me||fe,onClick:K})]}),children:t.jsx(kn,{label:j("wordTable.save.nameLabel","\uC774\uB984"),value:qt,onChange:oe,placeholder:j("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:K,error:fe?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Ae&&o&&m?.({defaultName:typeof e=="string"?e:j("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:De,previewW:qe,previewH:ot,items:wt,existingNames:x5().map(ee=>ee.name),saveAsNew:at,onSave:(ee,ke)=>{o(ee,wt,ke,at),ze(!1)},onCancel:()=>ze(!1)}),(B||g)&&de!==null&&v?.({cellIndex:de,onConfirm:B?zt:ee=>{if(g){const ke=ee[0];ke&&g({id:ke.word,words:[{label:ke.word,subLabel:ke.pronunciation,homonum:ke.homonum}]})}Ce(null)},onClose:Ue}),!b&&t.jsx(yr,{hasImage:Cn,hasColloquial:Wt,contentTypes:T,orientation:ve,showOutline:ue,cutLine:Q,showDivLine:ae,setters:{setContentTypes:W,setOrientation:he,setShowOutline:ie,setCutLine:_e,setShowDivLine:se},showCutLine:(Te?ft:ct)>1,showDivLine2:ht,middleSections:Kt,extraSelected:Ge,onExtraSelect:Mt}),Xe&&Ye?t.jsx("div",{className:"word-table-block__pages",children:Ye.map((ee,ke)=>t.jsx(Rn,{orientation:ve,contentTypes:T,cutLine:Q,showOutline:ue,showDivLine:ae,count:ft,items:ee,onRemoveItem:l,contentRef:Fe=>{He.current[ke]=Fe},pageNumber:{current:ke+1,total:Ye.length},pageNumberPosition:Ee},ke))}):t.jsx(Rn,{orientation:ve,contentTypes:T,cutLine:Q,showOutline:ue,showDivLine:ae,count:ct,items:B?void 0:r??[],editCells:B?I:void 0,activeCell:de,onActivateCell:B||g?Ce:void 0,onRemoveCell:B?It:void 0,onRemoveItem:B?void 0:l,onReorder:B?void 0:p,showFillerAdd:!!g,contentRef:Se}),F&&!b&&t.jsxs(_a,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[t.jsx(hn,{variant:"custom",label:j("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:t.jsx(kn,{required:!0,value:y??"",onChange:S,placeholder:M?M+j("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):j("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:j("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:X?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:ee=>{(ee.key==="Tab"&&!ee.shiftKey||ee.key===" ")&&!(y??"").trim()&&(M??"").trim()&&(ee.preventDefault(),S?.(M??""))}})}),t.jsx(hn,{variant:"custom",label:j("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(kn,{value:x??"",onChange:A,placeholder:k?k+j("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):j("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:j("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:ee=>{(ee.key==="Tab"&&!ee.shiftKey||ee.key===" ")&&!(x??"").trim()&&(k??"").trim()&&(ee.preventDefault(),A?.(k??""))}})})]})]}),!b&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!w&&c&&t.jsx(ne,{size:40,type:"bar",label:P,onClick:c}),!w&&s&&t.jsx(ne,{size:40,type:"bar",label:j("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:s}),!w&&t.jsx(ne,{size:40,type:"bar",label:j("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Tt})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[R&&t.jsx(ne,{size:"56",type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:R}),!w&&t.jsx(ne,{size:"56",type:"bar",label:j("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:vt}),h&&t.jsx(ne,{size:"56",type:"bar",label:h,onClick:()=>F?Ne():Zt(!0),disabled:te,onDisabledClick:()=>{Ke(j("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),t.jsx(ne,{size:"56",type:"bar",variant:"main",label:u??j("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Zt(!1),disabled:be,onDisabledClick:xe})]})]}),t.jsx(Tn,{message:Pe,type:$e,onClose:Ze})]})}function Wl({items:e,className:n}){const a=e.length,r=a<=3?1:2,o=Math.ceil(a/r)||1,s=r*o;return t.jsx("div",{className:ye("word-table-thumb",n),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:s},(l,c)=>{const d=e[c];return d?t.jsx("div",{className:"word-table-thumb__cell",children:(d.words.length?d.words:[{label:d.id}]).map((u,h)=>t.jsxs(i.Fragment,{children:[h>0&&t.jsx("span",{className:"word-table-thumb__divider"}),t.jsx("span",{className:"word-table-thumb__word body-3",children:u.label})]},h))},c):t.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function w5({items:e,name:n,description:a,createdAt:r,published:o,publishedLabel:s,shared:l,sharedLabel:c,isNew:d,publisherName:u,publishedAt:h,likeCount:p,downloadCount:f,onPublisherClick:g,selected:C,onClick:m,onMore:v,titleNode:b,className:w}){const{t:_}=pe.useTranslation(),y=b!=null,S=u!=null||h!=null||p!=null||f!=null,x=A=>{!y&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),m?.())};return t.jsxs("div",{className:ye("word-table-button",C?"word-table-button--selected":"",S?"":"word-table-button--no-footer",w),role:"button",tabIndex:0,"aria-label":n,onClick:y?void 0:m,onKeyDown:x,children:[d&&t.jsx("span",{className:"word-table-button__new-dot","aria-label":_("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),t.jsx(Wl,{items:e,className:"word-table-button__thumb"}),t.jsxs("div",{className:"word-table-button__info",children:[t.jsxs("div",{className:"word-table-button__info-text",children:[b??t.jsx("div",{className:"word-table-button__title h4",children:n}),a&&t.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),v&&!y&&t.jsx(ne,{className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:_("common.moreFor",{name:n}),onClick:A=>{A.stopPropagation(),v(A)}})]}),(r||o||l)&&t.jsxs("div",{className:"word-table-button__meta-row",children:[t.jsx("span",{className:"word-table-button__meta caption-1",children:r?ts(r,_):""}),t.jsxs("span",{className:"word-table-button__badges",children:[o&&t.jsx(lt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:s??"\uBC1C\uD589\uB428"}),l&&t.jsx(lt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??"\uACF5\uC720 \uC911"})]})]}),S&&t.jsxs("div",{className:"word-table-button__footer",children:[t.jsxs("span",{className:"word-table-button__store-by",children:[u&&t.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:A=>{A.stopPropagation(),g?.()},children:u}),h&&t.jsx("span",{className:"training-card__date body-4",children:ts(h,_)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[p!=null&&t.jsx(lt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(p)}),f!=null&&t.jsx(lt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(f)})]})]})]})}/**
|
|
968
|
+
`).map((l,c,u)=>t.jsxs(i.Fragment,{children:[l,c<u.length-1&&t.jsx("br",{})]},c))})}),t.jsxs("div",{className:"site-footer__links",children:[t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:s("footer.site.title","\uC0AC\uC774\uD2B8")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:s("footer.site.malgwi","\uB9D0\uADC0")})}),t.jsx("li",{children:t.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")})}),t.jsx("li",{children:t.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")})}),t.jsx("li",{children:t.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")})})]})]}),t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:s("footer.sns.title","SNS")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.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")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),t.jsx("li",{children:t.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"})})]})]}),t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:s("footer.policy.title","\uC815\uCC45")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"#",onClick:l=>{e&&(l.preventDefault(),e())},children:s("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"#",onClick:l=>{n&&(l.preventDefault(),n())},children:s("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),t.jsx("hr",{className:"site-footer__rule"}),t.jsxs("div",{className:"site-footer__bottom",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("img",{src:sr,alt:"IHAB",className:"site-footer__logo"})}),t.jsxs("div",{className:"site-footer__meta",children:[t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:s("footer.ceo","\uB300\uD45C")}),t.jsx("span",{className:"footer-meta caption-1",children:s("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:s("footer.address","\uC8FC\uC18C")}),t.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")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:s("footer.support","\uACE0\uAC1D\uC13C\uD130")}),t.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",o]})]})]})]}),t.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function J4({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:o,className:s,containerClassName:l,renderLink:c,menuLabel:u={open:"\uBA54\uB274 \uC5F4\uAE30",close:"\uBA54\uB274 \uB2EB\uAE30"}}){const[d,h]=i.useState(!1),p=l?`${l} landing-header__inner`:"landing-header__inner",m=(g,C)=>c?c(g,{onClick:C}):t.jsx("a",{href:g.href,onClick:C,"aria-current":g.current?"page":void 0,children:g.label});return t.jsxs("header",{className:s?`landing-header ${s}`:"landing-header",children:[t.jsxs("div",{className:p,children:[e!=null&&(()=>{const g=typeof e=="string"?t.jsx("img",{src:e,alt:n,className:"landing-header__logo"}):e;return a?t.jsx("a",{href:a,className:"landing-header__brand",children:g}):t.jsx("div",{className:"landing-header__brand",children:g})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map(g=>t.jsx("span",{children:m(g)},g.href))}),t.jsxs("div",{className:"landing-header__actions",children:[o,r.length>0&&t.jsx("button",{type:"button",onClick:()=>h(g=>!g),"aria-expanded":d,"aria-controls":"landing-header-drawer","aria-label":d?u.close:u.open,className:d?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:t.jsxs("span",{className:"landing-header__burger",children:[t.jsx("span",{}),t.jsx("span",{}),t.jsx("span",{})]})})]})]}),r.length>0&&t.jsx("nav",{id:"landing-header-drawer",hidden:!d,className:"landing-header__drawer",children:t.jsx("div",{className:l??void 0,children:r.map(g=>t.jsx("span",{className:"landing-header__drawer-item",children:m(g,()=>h(!1))},g.href))})})]})}function Q4({children:e,action:n,onClick:a,className:r}){const o=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return t.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:t.jsxs("div",{className:o,onClick:a,...Ti(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const ll=9,kr=2,eb=.1,cl=e=>Math.min(kr,Math.max(0,e)),tb=e=>Math.round(e*10)/10;function ba(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return cl(n);const a=Math.min(ll,Math.max(0,Number(e.level)||0))/ll,r=Number(e.mainVolume);return r>0?tb(cl(a/r)):1}const ul=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function nb(e){return ul(e)}function dl(e){return ul(e)*ba(e)}function pl(e,n=Vo()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,dl(e)/a)}function Ar(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=ba({level:a.level,mainVolume:a.mainVolume})),a}const Nr={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},hl=i.createContext(null);function Br(){return i.useContext(hl)}const Sr=e=>`${fm()}/${e}`,ml=e=>Array.from({length:10},(n,a)=>Sr(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),ya={get defaultNoise(){return Sr("noise1.mp3")},get street(){return ml("noise2")},get restaurant(){return ml("noise3")},get buzz(){return Sr("noise4.mp3")}};function ab(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return ya.defaultNoise;case"street":return ya.street[n];case"restaurant":return ya.restaurant[n];case"buzz":return ya.buzz;default:return null}}function rb({noisePlayer:e,audioRef:n,playbackStateRef:a}){const r=i.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const o=i.useRef(null),[s,l]=i.useState(null),c=i.useRef(null),u=i.useRef(null),d=i.useRef(null),h=i.useRef(0),p=i.useRef(null),m=i.useCallback(()=>{d.current!==null&&(cancelAnimationFrame(d.current),d.current=null),p.current!==null&&(clearTimeout(p.current),p.current=null)},[]),g=i.useCallback((y,w=250)=>{const _=o.current;if(!_||!_.src)return;h.current+=1,m();try{Va(),oa(_).then(A=>{try{r.current?.("noise",A)}catch{}})}catch{}const v=_.paused?0:sa(_);_.paused&&sn(_,0),_.play().catch(()=>{});const B=performance.now(),x=()=>{const A=Math.min(1,(performance.now()-B)/w);try{sn(_,v+(y-v)*A)}catch{}A<1?d.current=requestAnimationFrame(x):d.current=null};d.current=requestAnimationFrame(x)},[m]),C=i.useCallback((y=250,w)=>{const _=o.current;if(!_||_.paused){w?.();return}const v=++h.current;m();const B=performance.now(),x=sa(_),A=()=>{const M=Math.min(1,(performance.now()-B)/y);try{sn(_,x*(1-M))}catch{}if(M<1)d.current=requestAnimationFrame(A);else{d.current=null,p.current!==null&&(clearTimeout(p.current),p.current=null);try{_.pause()}catch{}w?.()}};d.current=requestAnimationFrame(A),p.current=setTimeout(()=>{if(p.current=null,h.current===v){d.current!==null&&(cancelAnimationFrame(d.current),d.current=null);try{_.paused||(sn(_,0),_.pause(),w?.())}catch{}}},y+150)},[m]);i.useEffect(()=>{const y=document.createElement("audio");return y.loop=!0,y.crossOrigin="anonymous",o.current=y,()=>{m();try{y.pause(),y.src=""}catch{}o.current=null}},[m]);const f=e?pl(e.settings):0,b=!!e?.settings.enabled&&f>0;return i.useEffect(()=>{if(!b)return;let y=0;const w=setInterval(()=>{const _=o.current;if(!_||_.paused){y=0;return}const v=n.current;if(v&&!v.paused&&!v.ended||a.current==="playing"){y=0;return}y+=1,y>=2&&(y=0,C())},400);return()=>clearInterval(w)},[C,b,n,a]),i.useEffect(()=>{const y=()=>{if(!document.hidden)return;const w=o.current;if(w&&!w.paused){m();try{w.pause()}catch{}}};return document.addEventListener("visibilitychange",y),()=>document.removeEventListener("visibilitychange",y)},[m]),i.useEffect(()=>{u.current=e?{enabled:e.settings.enabled,volume:f,type:e.settings.type}:null},[e,e?.settings.enabled,f,e?.settings.type]),i.useEffect(()=>{const y=e?.settings,w=o.current;if(!w)return;const _=y?pl(y):0;if(!y||!y.enabled||_===0){C();return}if(c.current!==y.type){const v=ab(y.type);v&&(c.current=y.type,l(v),C(150,()=>{w.src=v,w.load();const B=n.current;B&&!B.paused&&w.addEventListener("canplay",function x(){w.removeEventListener("canplay",x);const A=n.current;A&&!A.paused&&!A.ended&&g(_)})}))}else{const v=n.current,B=!!v&&!v.paused&&!v.ended;if(B&&w.paused&&w.src)g(_);else if(!w.paused)if(!B)C();else{m();const x=sa(w),A=performance.now(),M=()=>{const k=Math.min(1,(performance.now()-A)/150);try{sn(w,x+(_-x)*k)}catch{}k<1?d.current=requestAnimationFrame(M):d.current=null};d.current=requestAnimationFrame(M)}}},[e?.settings,e?.settings.enabled,f,e?.settings.type,m,g,C,n]),i.useEffect(()=>{const y=o.current;if(y)try{y.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:o,activeNoiseUrl:s,noiseSettingsRef:u,cancelNoiseFade:m,fadeInNoise:g,fadeOutNoise:C}}function ob({ttsText:e,playbackRate:n,mainVolume:a,fillRef:r,waveProgressRef:o,setProgress:s,setPlaybackState:l,setStateLocal:c,fadeInNoise:u,fadeOutNoise:d,noiseSettingsRef:h,onDoneRef:p,handleEndRef:m}){const g=i.useRef(null),C=i.useRef(0),f=i.useRef(null);i.useEffect(()=>()=>{try{if(f.current&&(cancelAnimationFrame(f.current),f.current=null),window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}}catch{}},[]);const b=(_,v=1)=>{try{const B=(_||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(_||"").length);return Math.max(700,Math.round(B*300/Math.max(.25,v)))}catch{return 1200}},y=i.useCallback(_=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof p.current=="function"&&p.current(!0)}catch{}return}const v=window.speechSynthesis;try{try{v.cancel()}catch{}const B=_??e,x=(Array.isArray(B)?B[0]??"":B)||"",A=new SpeechSynthesisUtterance(x);try{A.rate=Math.max(.3,Math.min(3,n))}catch{}try{A.volume=Math.max(0,Math.min(1,a))}catch{}C.current=b(x,A.rate||1),g.current=performance.now(),s(0),l("playing"),c("playMode");const M=h.current;M?.enabled&&(M?.volume??0)>0&&u(M.volume);const k=()=>{try{const j=g.current||performance.now(),H=performance.now()-j,R=C.current||1200,E=Math.min(1,H/R);s(E);try{r.current&&(r.current.style.left=`${E*100}%`),o.current&&o.current.style.setProperty("--progress",String(E))}catch{}E<1&&(f.current=requestAnimationFrame(k))}catch{}};A.onend=()=>{try{f.current&&(cancelAnimationFrame(f.current),f.current=null),s(1),l("stopped");try{m.current?.()}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{}},A.onstart=()=>{try{f.current&&(cancelAnimationFrame(f.current),f.current=null),f.current=requestAnimationFrame(k)}catch{}};try{v.speak(A)}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}},[e,n,a,u,r,o,s,l,c,h,p,m]),w=i.useCallback(()=>{try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}f.current&&(cancelAnimationFrame(f.current),f.current=null),d(),g.current=null}catch{}l("stopped"),c("active"),s(0)},[d,l,c,s]);return{startTTS:y,stopTTS:w}}async function sb(e,n,a){try{const r=window.AudioContext||window.webkitAudioContext,o=new r,s=await o.decodeAudioData(e.slice(0)),l=s.numberOfChannels>0?s.getChannelData(0):null;if(!l)return null;const c=a&&a>0?Math.min(l.length,Math.floor(a*s.sampleRate)):l.length,u=Math.max(n,c),d=Math.floor(u/n)||1,h=new Array(n).fill(0).map((p,m)=>{const g=m*d,C=Math.min(g+d,u);let f=0;for(let b=g;b<C;b++){const y=Math.abs(l[b]);y>f&&(f=y)}return f});try{o.close&&o.close()}catch{}return h}catch{return null}}async function fl(e,n,a){try{const r=await(await fetch(e)).arrayBuffer();return await sb(r,n,a)}catch(r){try{const o=Jo(r)}catch{}return null}}const ib=45;function va(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function Cl(e){return va(e)/45}const gl=4;function lb(e){const{src:n,segments:a,progress:r=0,waveProgressRef:o,noiseSrc:s,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:u=0,mainVolume:d=1,onReadyChange:h,showSoundWaveForm:p=!0}=e,m=i.useRef(null),g=i.useRef(null),[C,f]=i.useState(null),[b,y]=i.useState(!1),[w,_]=i.useState(null),[v,B]=i.useState(2),[x,A]=i.useState(0),[M,k]=i.useState(null),[j,H]=i.useState(!1),R=3,E=3,P=1,D=300,z=i.useRef(0),Z=i.useCallback(async(de,Ce)=>{const ve=++z.current,he=()=>z.current===ve;try{if(y(!1),!de){he()&&f(null);return}let T=Ce;if(!T)try{for(let Ve=0;Ve<4&&!(m.current||g.current);Ve++)await new Promise(Re=>requestAnimationFrame(Re));await new Promise(Ve=>requestAnimationFrame(Ve));const Q=m.current,_e=g&&g.current?g.current:Q?Q.closest(".audio-player__wave"):null,ue=_e?_e.getBoundingClientRect():Q?Q.getBoundingClientRect():null,ie=ue?Math.max(100,ue.width):320,ae=ue?ue.height:0;ae>0&&A(ae),T=Math.max(P,Math.min(D,Math.floor((ie+E)/(R+E))));const se=T*R,Se=Math.max(0,T-1),He=Se>0?(ie-se)/Se:E;B(Math.max(0,He))}catch{T=120}const W=await fl(de,T);if(!he())return;if(!W){f(null),y(!1);return}f(W),_(T),y(!0)}catch{if(!he())return;f(null),y(!1)}},[y,f,A,B,_]);i.useEffect(()=>{const de=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;Z(typeof de=="string"?de:void 0).catch(()=>{}),H(!1)},[n,a,Z]),i.useEffect(()=>{let de=!1;if(!s||!w){k(null);return}const Ce=u>0?u*(c||1):void 0;return fl(s,w,Ce).then(ve=>{de||k(ve)}).catch(()=>{de||k(null)}),()=>{de=!0}},[s,w,u,c]);const Y=Math.max(0,Math.min(1,d)),J=i.useMemo(()=>C&&C.length&&Math.max(...C)||1,[C]),S=w||40,L=i.useMemo(()=>Array.from({length:S}).map((de,Ce)=>{const ve=C&&C[Ce]!=null?C[Ce]:null,he=ve==null?null:Math.min(1,ve/J*Y),T=he!=null&&x>0&&va(he)<=gl,W=he==null?.15:T?0:Cl(he),Q=S>1?Ce/(S-1):0;return t.jsx("div",{className:T?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":W,"--i":Ce,"--mix":Q}},Ce)}),[S,C,J,Y,x]),$={"--progress":String(Math.max(0,Math.min(1,r)))},F=s?Math.max(1,l):1,O={"--bar-gap":`${v}px`,"--wave-h":`${va(F)}px`,"--wave-h1":`${ib}px`},X=Y*Math.max(0,l)/Vo(),I=b&&(s?!!M:!0);i.useEffect(()=>{I&&H(!0)},[I]);const U=j?b:I;i.useEffect(()=>{h?.(U)},[U,h]);const q=w||40,le=i.useMemo(()=>Array.from({length:q}).map((de,Ce)=>{const ve=M&&M[Ce]!=null?M[Ce]:null,he=ve==null?0:ve/J*X,T=x>0&&va(he)<=gl,W=T?0:Cl(he),Q=q>1?Ce/(q-1):0;return t.jsx("div",{className:T?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":W,"--i":Ce,"--mix":Q}},Ce)}),[q,M,J,X,x]);return t.jsxs("div",{className:"audio-player__wave",ref:g,style:O,children:[s&&t.jsx("div",{className:`audio-player__wave-noise ${I?"is-ready":""}`,"aria-hidden":"true",children:le}),p&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${U?"is-ready":""}`,ref:m,children:L}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${U?"is-ready":""}`,ref:o,style:$,children:L})]})]})}const cb={idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"};function Dr(e,n){return new Promise((a,r)=>{const o=document.createElement("audio");let s=!1;const l=()=>{try{o.src=""}catch{}},c=()=>{if(s)return;s=!0;const d=isFinite(o.duration)&&o.duration||0;l(),a(d)},u=d=>{s||(s=!0,l(),n.rejectOnError?r(new Error(d)):a(0))};o.addEventListener("loadedmetadata",c),o.addEventListener("error",()=>u("audio load failed")),setTimeout(()=>u("audio load timeout"),n.timeoutMs),o.src=e})}const ub=2e3;function bl(e,n=ub){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.addEventListener("canplay",o,{once:!0}),e.addEventListener("error",o,{once:!0}),setTimeout(o,n)})}function db({showSoundWaveForm:e,showNoiseWaveForm:n,timeoutMs:a=2500}){const r=i.useRef(!1),o=i.useRef([]),s=i.useCallback(u=>{if(r.current=u,!u||!o.current.length)return;const d=o.current;o.current=[];for(const h of d)h()},[]),l=i.useCallback(()=>{r.current=!1},[]),c=i.useCallback(()=>!e&&!n||r.current?Promise.resolve():new Promise(u=>{const d=setTimeout(u,a);o.current.push(()=>{clearTimeout(d),u()})}),[e,n,a]);return i.useEffect(()=>()=>{const u=o.current;o.current=[];for(const d of u)d()},[]),{onReadyChange:s,waitForReady:c,markNotReady:l}}function pb(){const e=i.useRef([]),n=i.useCallback(o=>(e.current.push(o),o),[]),a=i.useCallback(o=>{const s=new Set([...o].filter(Boolean));e.current=e.current.filter(l=>{if(s.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=i.useCallback(()=>{a([])},[a]);return i.useEffect(()=>()=>{for(const o of e.current)try{URL.revokeObjectURL(o)}catch{}e.current=[]},[]),{track:n,keepOnly:a,revokeAll:r}}function hb({offsetY:e=8}={}){const n=i.useRef(null),[a,r]=i.useState(null),o=i.useCallback(()=>r(null),[]),s=i.useCallback(()=>{try{const l=n.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 i.useEffect(()=>{if(a)return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[a,o]),{ref:n,rect:a,show:s,hide:o}}function mb({currentTime:e,sources:n,index:a,audioDuration:r}){const o=a||0,s=Array.isArray(n)&&n.length>0?n[o]:void 0,l=s?s.duration||r||0:r||0;if(!(l>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/l))}function fb(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function Cb({ended:e,completedByEnd:n}){return!!e||!!n}function gb(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function bb(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function yb(e,n,a){const r=Array.isArray(e)?e:e?[e]:[],o=[];for(const s of r)if(s){if(typeof s=="object"&&s!==null&&"src"in s&&s.src){const l=s;o.push({code:l.code??null,src:l.src});continue}if(typeof s=="string"&&(s.startsWith("http")||s.includes("/"))){o.push({code:null,src:s});continue}if(typeof s=="string"||typeof s=="number"){const l=String(s),c=a(l,n);c&&o.push({code:l,resolvedPath:c})}}return o}function vb({audioRef:e,fillRef:n,waveProgressRef:a,sourcesRef:r,currentIndexRef:o}){const s=i.useRef(null),l=i.useCallback(()=>{s.current!==null&&(cancelAnimationFrame(s.current),s.current=null)},[]),c=i.useCallback(()=>{if(s.current!==null)return;const d=()=>{try{const h=e.current,p=mb({currentTime:h&&typeof h.currentTime=="number"?h.currentTime:0,sources:r.current,index:o.current,audioDuration:h&&h.duration?h.duration:0});try{n.current&&(n.current.style.left=`${p*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(p))}catch{}}catch{}s.current=requestAnimationFrame(d)};s.current=requestAnimationFrame(d)},[e,n,a,r,o]),u=i.useCallback(d=>{l();try{n.current&&(n.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[l,n,a]);return i.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:u}}function jr({btnLabel:e,soundSrc:n,bucketPath:a,onDone:r,disabled:o=!1,ttsText:s=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:u=!0}){const{t:d}=pe.useTranslation(),h=e,p=Br(),m=i.useRef(p?.registerAnalyser);i.useEffect(()=>{m.current=p?.registerAnalyser});const g=i.useRef(null),C=i.useRef(null),f=i.useRef(null),b=pb(),y=i.useRef(null),w=i.useRef(!1),_=i.useRef(0),v=i.useRef(null),{ref:B,rect:x,show:A,hide:M}=hb();i.useEffect(()=>()=>{m.current?.("main",null),m.current?.("noise",null)},[]);const[k,j]=i.useState(!1),[H,R]=i.useState("idle"),[E,P]=i.useState("stopped"),D=i.useRef("stopped");i.useEffect(()=>{D.current=E},[E]);const[z,Z]=i.useState(0),[Y,J]=i.useState("active"),[S,L]=i.useState(null),[$,F]=i.useState(null),[O,X]=i.useState(0),[I,U]=i.useState(!1),[q,le]=i.useState(0),de=p?.playbackRate??1,Ce=p?.mainVolume??1,ve=p?dl(p.settings):0,he=p?nb(p.settings):Ce,[T,W]=i.useState("idle"),[Q,_e]=i.useState(""),[ue]=i.useState("top"),ie=i.useRef(null),ae=i.useRef(0),se=i.useRef(null),{start:Se,stop:He,settleTo:Ve}=vb({audioRef:g,fillRef:C,waveProgressRef:se,sourcesRef:ie,currentIndexRef:ae}),{onReadyChange:Re,waitForReady:Ee,markNotReady:je}=db({showSoundWaveForm:c,showNoiseWaveForm:u}),Ae=i.useRef(null),ze=i.useRef(o),at=i.useRef(r),ge=i.useRef(null),Pe=i.useRef(!1),[$e,Ke]=i.useState(!1),Ze=i.useCallback(K=>{Pe.current=K,Ke(K)},[]),Ue=i.useRef(null),{activeNoiseUrl:Ie,noiseSettingsRef:dt,fadeInNoise:ct,fadeOutNoise:qe}=rb({noisePlayer:p,audioRef:g,playbackStateRef:D}),{startTTS:ot,stopTTS:Te}=ob({ttsText:s,playbackRate:de,mainVolume:he,fillRef:C,waveProgressRef:se,setProgress:Z,setPlaybackState:P,setStateLocal:J,fadeInNoise:ct,fadeOutNoise:qe,noiseSettingsRef:dt,onDoneRef:at,handleEndRef:Ue}),Me=Array.isArray(n)?n.filter(Boolean):n?[n]:[],tt=(!Me||Me.length===0)&&!!s,ft=Array.isArray(S)&&S.length>0?S:Array.isArray($)&&$.length>0?$:null,Ye=Math.max(Array.isArray(ft)?ft.length:0,Me.length),Xe=i.useCallback(async(K,te=3,be=50)=>{for(let xe=0;xe<te;xe++)try{return await K.play(),!0}catch(De){if((De instanceof Error||typeof De=="object"&&De&&"name"in De?De.name:void 0)==="AbortError"){await new Promise(ee=>setTimeout(ee,be));continue}try{_e(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}try{_e(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),ht=i.useCallback(()=>{const K=g.current;if(!K)return;const te=()=>{P("playing"),J("playMode"),U(!0),Se();try{Va(),oa(K).then(ee=>{try{m.current?.("main",ee)}catch{}})}catch{}const De=dt.current;De?.enabled&&(De?.volume??0)>0&&ct(De.volume)},be=()=>{Cb({ended:!!K?.ended,completedByEnd:Pe.current})||(P("paused"),He(),qe())},xe=()=>{try{const De=ie.current,ee=fb(De,ae.current);if(ee!==null){ae.current=ee,X(ee),U(!0);const ke=De?.[ee]&&De[ee].src;if(ke&&K){K.src=ke,K.load(),Xe(K).catch(()=>{});return}}}catch{}P("stopped"),Z(1);try{if(K)try{K.currentTime=0}catch{}}catch{}He(),U(!1),qe();try{!ze.current&&Ue.current&&Ue.current()}catch{}};return K.addEventListener("play",te),K.addEventListener("pause",be),K.addEventListener("ended",xe),()=>{try{K.removeEventListener("play",te),K.removeEventListener("pause",be),K.removeEventListener("ended",xe),He()}catch{}}},[ct,qe,Xe,dt,Se,He]);i.useEffect(()=>ht(),[ht]),i.useEffect(()=>{ze.current=o},[o]),i.useEffect(()=>{at.current=r},[r]),i.useEffect(()=>{if(o||Y!=="active")return;const K=v.current;if(!K)return;let te=null;const be=requestAnimationFrame(()=>{try{const xe=K.getTotalLength();if(!xe)return;const De=xe*.2;K.style.strokeDasharray=`${xe-De} ${De}`;const ee="triFlow_"+Math.random().toString(36).slice(2);te=document.createElement("style"),te.textContent=`@keyframes ${ee}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${xe}}}`,document.head.appendChild(te),K.style.animation=`${ee} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(be),te?.remove()}},[Y,o]),i.useEffect(()=>{ie.current=S},[S]),i.useEffect(()=>{ae.current=O},[O]),i.useEffect(()=>{const K=f.current,te=y.current;if(!K||!te)return;let be=null;const xe=32,De=60,ee=()=>{try{const Fe=Array.from(K.querySelectorAll(":scope > .button"));let et=0;Fe.forEach(St=>{if(St===te)return;const gn=St.getBoundingClientRect();et+=gn.width});const Ct=K.getBoundingClientRect().width,Bt=Math.max(0,Math.floor(Ct-et-8)),$t=Ye;if(!$t||Bt<=0){Array.from(te.children).forEach(St=>{try{St.style.width=""}catch{}});return}let Rt=Math.floor(Bt/$t);Rt>De&&(Rt=De),Rt<xe&&(Rt=Math.max(xe,Math.floor(Bt/$t))),Array.from(te.querySelectorAll(".button")).forEach(St=>{try{St.style.width=`${Rt}px`}catch{}})}catch{}},ke=requestAnimationFrame(ee);try{be=new ResizeObserver(()=>{requestAnimationFrame(ee)}),be.observe(K),be.observe(te),window.addEventListener("resize",ee)}catch{}return()=>{try{cancelAnimationFrame(ke)}catch{}try{be&&(be.disconnect(),be=null)}catch{}try{window.removeEventListener("resize",ee)}catch{}}},[S,$,Ye]),i.useEffect(()=>()=>{try{Ae.current&&(clearTimeout(Ae.current),Ae.current=null),ge.current&&(clearTimeout(ge.current),ge.current=null)}catch{}},[]);const Et=(K,te)=>{L(K),le(te),je(),F(gb(K)),ie.current=K},Qe=async(K,te)=>{Ze(!1),w.current=!1,K.src=te,K.load(),await bl(K),await Ee(),j(!1),await Xe(K),J("playMode"),X(0),U(!0)},vt=async(K,te=!1)=>{const be=g.current;j(!0),R("measuring_duration");try{const xe=await Dr(K,{timeoutMs:1e4,rejectOnError:!0});Et([{src:K,objectUrl:null,duration:xe}],xe),R("ready"),te&&be&&await Qe(be,K)}finally{w.current=!1,j(!1)}},Tt=async(K,te=!1)=>{const be=g.current;j(!0),R("measuring_duration");try{const xe=await Promise.all(K.map(ee=>Dr(ee,{timeoutMs:1e4}))),De=K.map((ee,ke)=>({src:ee,objectUrl:null,duration:xe[ke]||0}));Et(De,bb(De)),R("ready"),te&&be&&De.length>0&&await Qe(be,De[0].src)}finally{w.current=!1,j(!1)}},Gt=async(K=!1,te=!0)=>{const be=g.current,xe=n?Array.isArray(n)?n:[n]:[];if(!(!xe||xe.length===0||!xe.some(Boolean))&&!w.current){w.current=!0,te&&j(!0),R("resolving");try{const De=yb(n,a,Fo),ee=[];let ke=0;for(const Fe of De){let et=Fe.src??null,Ct=null;if(!et&&Fe.resolvedPath){try{R("getting_signed_url"),et=await Oo(Fe.resolvedPath)}catch{et=null}if(!et)try{R("downloading");const $t=await Ho(Fe.resolvedPath);if($t){const Rt=$t instanceof Blob?$t:new Blob([$t]);Ct=b.track(URL.createObjectURL(Rt)),et=Ct}}catch{R("error");try{_e(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),J("active")}catch{}}}if(!et)continue;let Bt=0;try{R("measuring_duration"),Bt=await Dr(et,{timeoutMs:3e3})}catch{Bt=0}ke+=Bt||0,ee.push({...Fe,src:et,objectUrl:Ct,duration:Bt})}if(Et(ee,ke),ee.length>0&&K&&be){const Fe=ee[0];Ze(!1);try{b.keepOnly(ee.map(et=>et.objectUrl))}catch{}if(R("ready"),w.current=!1,Fe.src&&be)try{be.src=Fe.src,be.load(),await bl(be),await Ee(),te&&j(!1),be&&await Xe(be)}catch{te&&j(!1)}else te&&j(!1);J("playMode"),X(0),U(!0)}}finally{w.current=!1,te&&j(!1),R(De=>De==="ready"?"ready":"idle")}}},an=async()=>{const K=g.current;if(!(!K&&!tt)){if(tt){const te=window.speechSynthesis;if(Y==="active"){const be=Fa(),xe=Array.isArray(s)?s.filter(Boolean):s?[s]:[];if(be&&xe.length>0){J("load"),j(!0),R("resolving"),w.current=!0;try{const De=await Promise.all(xe.map(ee=>Promise.resolve(be(ee))));De.length>1?await Tt(De,!0):await vt(De[0],!0)}catch{w.current=!1,j(!1),J("active"),ot(xe[0]||void 0)}return}ot(xe[0]||void 0);return}if(Y==="playMode"){if(K){if(K.paused){if(Pe.current){await It();return}await Xe(K),P("playing")}else K.pause(),P("paused");return}try{if(te&&te.paused)try{te.resume(),P("playing")}catch{}else try{te.pause(),P("paused")}catch{}}catch{}}return}if(Y==="active"){if(o&&Array.isArray(ie.current)&&ie.current.length>0){const te=ie.current[0];try{if(te.src&&K)try{K.src=te.src,K.load(),K&&await Xe(K)}catch{}J("playMode"),X(0),U(!0);return}catch{}}J("load"),await Gt(!0);return}if(Y!=="load"&&(Y==="playMode"||Y==="active"))try{if(K&&K.paused){if(Pe.current){await It();return}K&&await Xe(K),P("playing")}else K&&(K.pause(),P("paused"))}catch(te){(te instanceof Error||typeof te=="object"&&te&&"name"in te)&&te.name}}},It=async()=>{const K=g.current;if(K)try{const te=ie.current;if(Array.isArray(te)&&te.length>1){await Kt(0);return}Ze(!1);try{K.currentTime=0}catch{}K&&await Xe(K),P("playing"),J("playMode")}catch{}},zt=()=>{if(tt){Te();return}const K=g.current;try{if(K){try{K.pause()}catch{}try{K.currentTime=0}catch{}}}catch{}qe(),P("stopped"),J("active"),Z(0),U(!1)},Wt=async(K,{sameSegment:te=!1}={})=>{const be=++_.current,xe=g.current,De=ie.current?.[K]?.src;try{if(Ze(!1),X(K),U(!0),ae.current=K,!De||!xe||(te||je(),xe.src=De,xe.load(),te||await Ee(),be!==_.current)||(await Xe(xe),be!==_.current))return;P("playing"),J("playMode")}catch{}},xt=async()=>{const K=ie.current,te=ae.current||0;if(!K||te<=0){await It();return}await Wt(te-1)},fn=async()=>{const K=ie.current,te=ae.current||0;if(!K||te>=K.length-1){zt();return}await Wt(te+1)},_t=()=>{if(Pe.current)return;const K=200,te=340;Ze(!0);try{Z(1)}catch{}Ve(1);try{W("hold")}catch{}try{const be=g.current,xe=tt&&!!be?.src;if(!tt||xe){if(be){be.pause();try{be.currentTime=0}catch{}}}else Te();qe()}catch{}try{P("stopped")}catch{}if(U(!1),!ze.current)try{ge.current&&(clearTimeout(ge.current),ge.current=null),ge.current=setTimeout(()=>{try{W("out")}catch{}ge.current=setTimeout(()=>{try{typeof at.current=="function"&&at.current(!0)}catch{}try{W("idle")}catch{}ge.current=null},te)},K)}catch{}};i.useEffect(()=>{Ue.current=_t});const Cn=i.useCallback(()=>_e(""),[]),Kt=async K=>{(ie.current||[])[K]&&await Wt(K,{sameSegment:K===ae.current})},Ge=E==="playing",Mt=i.useMemo(()=>{if(!$||$.length<=1)return $;const K=$[O];return K?[K]:$},[$,O]),wt=o===!0;i.useEffect(()=>{try{const K=g.current;K&&typeof K.playbackRate=="number"&&(K.playbackRate=de||1)}catch{}},[de]);const Zt=i.useRef({raf:null,timer:null});i.useEffect(()=>{const K=g.current;if(!K)return;const te=Math.max(0,Math.min(1,he)),be=Zt.current,xe=()=>{be.raf!==null&&(cancelAnimationFrame(be.raf),be.raf=null),be.timer!==null&&(clearTimeout(be.timer),be.timer=null)};xe();const De=sa(K);if(K.paused||Math.abs(De-te)<.001||typeof requestAnimationFrame!="function"){try{sn(K,te)}catch{}return}const ee=performance.now(),ke=()=>{const Fe=Math.min(1,(performance.now()-ee)/150);try{sn(K,De+(te-De)*Fe)}catch{}be.raf=Fe<1?requestAnimationFrame(ke):null};return be.raf=requestAnimationFrame(ke),be.timer=setTimeout(()=>{xe();try{sn(K,te)}catch{}},200),xe},[he]);const Ft=T==="hold",Lt=T==="out",qt=Y==="playMode"&&!k&&!$e||Ft||Lt,oe=E!=="stopped"||Ft||Lt,me=E==="paused",fe=Math.max(0,Math.min(100,(z||0)*100)),Ne=ye("audio-player__fill",qt?"is-visible":"",oe?"is-expanded":"",me?"is-paused":"",Lt?"is-out":"");return t.jsxs("div",{className:`audio-player ${wt?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof h=="string"?h:void 0,children:[t.jsxs("div",{className:`audio-player__panel ${Ge?"is-playing":""} ${k?"is-loading":""} ${Y!=="default"?"is-revealed":""}`,children:[k?t.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[t.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),t.jsx("span",{className:"audio-player__loading-text",children:cb[H]})]}):null,Y==="active"?t.jsx("button",{className:"audio-player__button",type:"button",onClick:()=>{M(),an()},"aria-label":typeof h=="string"?h:d("training.listen","\uB4E3\uAE30"),onMouseEnter:A,onMouseLeave:M,onFocus:A,onBlur:M,children:t.jsx("span",{ref:B,className:"audio-player__button-triangle-wrap",children:t.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:t.jsx("path",{ref:v,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,x&&t.jsx(cn,{anchorRect:x,text:typeof h=="string"&&h?h:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),t.jsxs("div",{className:`audio-player__play ${Y==="playMode"||Ge?"is-visible":""}`,children:[t.jsxs("div",{ref:f,className:"audio-player__buttons",children:[t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:xt,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Y!=="playMode"}),t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Ge?"pause":"play",onClick:an,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),width:"60px",variant:"transparent-white",disabled:Y!=="playMode"}),t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:zt,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Y!=="playMode"}),Ye>1?t.jsx("div",{ref:y,className:"audio-player__source-buttons",children:Array.from({length:Ye}).map((K,te)=>t.jsx(ne,{size:32,type:"dot",shape:"pill",useBorder:!1,label:String(te+1),onClick:()=>{try{Kt(te)}catch{}},ariaLabel:d("training.sourcePlay",{n:te+1}),variant:"transparent-white",selected:I&&O===te,disabled:Y!=="playMode"||!(Array.isArray(S)&&S[te]),showTooltipInfo:!0},te))}):null,!Array.isArray(S)||S.length<=1?t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:It,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:Y!=="playMode"}):null,t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:fn,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:Y!=="playMode"}),t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:_t,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:Y!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:Ne,ref:C,style:{left:`${fe}%`},"aria-hidden":"true"}),(c||u)&&t.jsx(lb,{segments:Mt,progress:z,totalDuration:q,onSegmentClick:Kt,waveProgressRef:se,showSoundWaveForm:c,noiseSrc:u&&p?.settings.enabled&&ve>0?Ie:null,noiseRatio:p?ba(p.settings):0,noiseSpeed:p?.settings.speed??1,mainVolume:Ce,onReadyChange:Re})]})]}),t.jsx("audio",{ref:g,crossOrigin:"anonymous",preload:"auto"})]}),!c&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(Oe,{icon:"triangle-alert",size:14}),d("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),t.jsx(Tn,{message:Q,position:ue,onClose:Cn})]})}function xa(e){const{t:n}=pe.useTranslation(),{text:a,label:r,anchorRect:o=null,onClose:s,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[u,d]=i.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});i.useEffect(()=>{try{localStorage.setItem("tooltip-theme",u)}catch{}},[u]);const{increase:h,decrease:p,canIncrease:m,canDecrease:g,fontSize:C,lineHeight:f}=Ps({storageKey:"tooltip-fontScale"}),b=i.useCallback(()=>d(B=>B==="dark"?"light":"dark"),[]),y=i.useCallback(B=>{try{B.stopPropagation()}catch{}try{typeof s=="function"&&s()}catch{}},[s]),w=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],_={fontSize:`${C}px`,lineHeight:`${f}px`,"--tt-line-height":`${f}px`,"--tt-marker-size":"28px"},v=t.jsxs("div",{className:`tooltip-textbox__root ${u==="dark"?"is-dark":""}`,children:[t.jsxs("div",{className:"tooltip-textbox__box",children:[r&&t.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),t.jsx("div",{className:"tooltip-textbox__text body-1",style:_,children:w.map((B,x)=>t.jsxs("div",{className:"tooltip-textbox__line",children:[w.length>1?t.jsx("div",{className:"tooltip-textbox__marker",children:t.jsx("span",{className:"tooltip-textbox__line-number button-1",children:x+1})}):null,t.jsx("span",{className:"tooltip-textbox__line-text",children:B})]},x))})]}),t.jsxs("div",{className:"tooltip-textbox__buttons",children:[t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:p,ariaLabel:n("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!g}),t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:h,ariaLabel:n("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!m}),t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:u==="dark"?"moon":"sun-medium",onClick:b,ariaLabel:n("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:u==="dark"?"transparent-white":"transparent-gray"}),t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:y,ariaLabel:n("common.close","\uB2EB\uAE30"),variant:u==="dark"?"transparent-white":"transparent-gray"})]})]});return o?t.jsx(ln,{anchorRect:o,className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,onClose:s,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||n("tooltip.textbox","\uBCF8\uBB38"),children:v}):t.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:v})}function yl({state:e="disabled"}){const{t:n}=pe.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(Oe,{icon:"chevron-right",label:n("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),t.jsx("div",{className:"ts-bullet__line"})]})}function vl({title:e,children:n,className:a="",state:r="disabled",usePreviewTextBtn:o=!1,onPreviewTextBtn:s,previewText:l=null,useFaded:c,usePlayAllBtn:u=!1,onPlayAll:d,playAllActive:h=!1}){const{t:p}=pe.useTranslation(),m=Xt("(max-width: 767px)"),g=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),C=`training-step__title-row training-step__title-row--${r}`.trim(),f=i.useRef(null),[b,y]=i.useState(!1),[w,_]=i.useState(null),[v,B]=i.useState(null),x=i.useRef(s);i.useEffect(()=>{x.current=s});const A=i.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(j=>typeof j=="string"||typeof j=="number")?l.join(""):"",[l]),M=i.useCallback(()=>{y(!1),_(null),B(null)},[]);i.useEffect(()=>{if(!b)return;let j;try{typeof x.current=="function"&&(j=x.current())}catch{}if(j===!1){M();return}B(typeof j<"u"&&j!==null?j:null)},[A]);const k=i.useCallback(()=>{let j;try{typeof s=="function"&&(j=s())}catch{}if(j!==!1){if(B(typeof j<"u"&&j!==null?j:l),!f.current){y(H=>!H);return}if(b)y(!1),_(null),B(null);else{const H=f.current.getBoundingClientRect();_(H),y(!0)}}},[s,l,b]);return t.jsxs("div",{className:C,children:[t.jsx("p",{className:g,children:t.jsx("span",{className:"training-step__title-text",children:e??n})}),o||u?t.jsxs("div",{className:"title-controls",children:[t.jsxs("div",{className:"title-buttons",children:[u&&t.jsx(ne,{size:32,type:m?"dot":"bar",icon:"play-circle",label:m?void 0:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:h,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||h}),o&&t.jsx("div",{ref:f,children:t.jsx(ne,{size:32,type:m?"dot":"bar",icon:"eye",label:m?void 0:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:b,onClick:k,variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof s!="function"})})]}),b&&t.jsx(xa,{text:v??l,label:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:w,onClose:M,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Er(e,n){return typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled"}function Nn({index:e,stepIndex:n,isLast:a=!1,title:r="",titleProps:o={},children:s,className:l="",onDone:c=void 0,useTitleFaded:u=void 0}){const{t:d}=pe.useTranslation(),[h,p]=i.useState(()=>Er(e,n));i.useEffect(()=>{const B=Er(e,n);if(B!==h){const x=setTimeout(()=>p(B),0);return()=>clearTimeout(x)}},[e,n,h]);const m=i.useCallback((...B)=>{Er(e,n)==="done"||h==="done"||typeof c=="function"&&c(...B)},[e,n,h,c]),[g,C]=i.useState(!1),[f,b]=i.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),y=i.useCallback(B=>{if(!B)return null;try{const x=B;if(typeof B=="object"&&(x.currentTarget||x.target)&&(x.nativeEvent||x.type)){const k=x.currentTarget??x.target;if(k&&typeof k.getBoundingClientRect=="function")return k.getBoundingClientRect()}if(B instanceof DOMRect)return B;const A=B;if(A&&typeof A.getBoundingClientRect=="function")return A.getBoundingClientRect();const M=B?.current;return M&&typeof M.getBoundingClientRect=="function"?M.getBoundingClientRect():null}catch{return null}},[]),w=i.useCallback((B,{text:x="",label:A="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:M=!1,alignX:k="center",alignY:j="top"}={})=>{const H=y(B);b({text:x,label:A,anchorRect:H,backdrop:M,alignX:k,alignY:j}),C(!0)},[y]),_=i.useCallback(()=>{C(!1),b(B=>({...B,anchorRect:null}))},[]),v=i.Children.map(s,B=>{if(i.isValidElement(B)){const x=B;if(typeof x.type=="string")return x;const A=x.props??{},M=typeof A.onDone=="function"?A.onDone:m,k=typeof A.disabled=="boolean";let j=h==="disabled";return k&&(j=!!A.disabled),i.cloneElement(x,{onDone:M,disabled:j,showTooltip:w,hideTooltip:_})}return B});return t.jsxs("div",{className:`training-step training-step--${h} ${a?"training-step--last":""} ${l}`,"aria-current":h==="active",children:[t.jsx(yl,{state:h}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(vl,{state:h,title:r,...o,useFaded:u}),v]}),g?t.jsx(ln,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:_,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(xa,{text:f.text,onClose:_})}):null]})}function xl({context:e,state:n="disabled",theme:a="light"}){const{t:r}=pe.useTranslation(),[o,s]=i.useState("disabled"),[l,c]=i.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});i.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const u=()=>c(k=>k==="dark"?"light":"dark"),{increase:d,decrease:h,canIncrease:p,canDecrease:m,fontSize:g,lineHeight:C}=Ps({storageKey:"textbox_fontScale"}),[f,b]=i.useState(""),y=i.useCallback(()=>s("active"),[]),w=i.useCallback(()=>b(""),[]),_=k=>{try{b(k)}catch{}},v=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");i.useEffect(()=>{if(n!=="disabled"){const k=setTimeout(()=>s(n),0);return()=>clearTimeout(k)}},[n]);const B=i.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]);i.useEffect(()=>{const k=setTimeout(()=>s("disabled"),0);return()=>clearTimeout(k)},[B]);const x=n==="disabled"?o:n,A=x==="disabled"?"training-text-box--disabled":x==="active"?"training-text-box--active":x==="done"?"training-text-box--done":"",M=i.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${C}px`}),[g,C]);return t.jsxs("div",{className:`training-text-box ${A} ${x!=="disabled"&&l==="dark"?"is-dark":""}`,children:[x==="disabled"&&t.jsx("div",{className:"training-text-box__preview",children:t.jsx(ne,{size:48,type:"bar",onClick:y,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),t.jsx("div",{className:"training-text-box__area","aria-hidden":x==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:M,children:B})}),x!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":x==="disabled",children:[t.jsx(ne,{size:32,type:"dot",onClick:h,onDisabledClick:()=>_(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:!m,useBorder:!1,showTooltipInfo:!0,...!v&&{width:"60px"}}),t.jsx(ne,{size:32,type:"dot",onClick:d,onDisabledClick:()=>_(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"}}),t.jsx(ne,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(Tn,{message:f,position:"top",onClose:w})]})}function Tr({index:e,stepIndex:n,isLast:a=!1,title:r,useTitleFaded:o,onDone:s,onChange:l,answer:c,wrongAnswers:u,choices:d,multiSelect:h=!1,correctCount:p=0,useDisabledCovered:m=!1,choiceIcons:g,shuffleChoices:C=!0}){const{t:f}=pe.useTranslation(),b=r??f("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),y=typeof e=="number"?e:-1,w=typeof n!="number"?"disabled":y<n?"done":y===n?"active":"disabled",_=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,v=u?u.join("||"):"",B=d?d.join("||"):"",[x,A]=i.useState(()=>Array.isArray(_)?C?qn(_):_.slice():void 0);i.useEffect(()=>{Array.isArray(_)&&_.length?A(C?qn(_):_.slice()):A(void 0)},[c,v,B,C]);const[M,k]=i.useState(null),[j,H]=i.useState(()=>new Set);i.useEffect(()=>{k(null),H(new Set)},[B]);const R=i.useRef(void 0);i.useEffect(()=>{const D=R.current;typeof D=="number"&&typeof n=="number"&&typeof e=="number"&&D>=e&&n<e&&(k(null),H(new Set)),R.current=n},[n,e]);const E=i.useCallback(D=>{if(w!=="active")return;const z=x?.[D];if(z==null)return;const Z=z,Y=w==="active"||w==="done";if(h){const J=new Set(j),S=J.has(Z);S?J.delete(Z):J.add(Z),H(J),typeof l=="function"&&l({selectedValues:[...J],__ts:Date.now()}),Y&&(typeof p=="number"&&p>0?J.size>=p:!S)&&typeof s=="function"&&w==="active"&&s({selectedValues:[...J],__ts:Date.now()})}else k(Z),typeof l=="function"&&l({selectedIndex:D,selectedValue:Z,__ts:Date.now()}),Y&&typeof s=="function"&&w==="active"&&s({selectedIndex:D,selectedValue:Z,__ts:Date.now()})},[x,w,h,l,s,p,j]),P=`training-step__buttons${Array.isArray(x)&&x.length>3?" training-step__buttons--wrap-3":""}`;return t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:b,useTitleFaded:o,children:t.jsx("div",{className:P,children:Array.isArray(x)&&x.length>0?x.map((D,z)=>t.jsx(ne,{size:56,type:"bar",onClick:()=>E(z),ariaLabel:String(D),label:D,useLabel:!0,icon:g?g[String(D)]:void 0,variant:"default",disabled:w==="disabled",selected:h?j.has(D):M===D,useDisabledCovered:m,minWidth:0},String(D))):null})})}function Mr({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:s,context:l,demoSelected:c}){const{t:u}=pe.useTranslation(),d=r??u("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),h=typeof e=="number"?e:-1,p=typeof n!="number"?"disabled":h<n?"done":h===n?"active":"disabled",m=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",g=l&&typeof l=="object"?l.choices:void 0,[C,f]=i.useState(c??null);i.useEffect(()=>{if(c==null&&C!==null){const _=setTimeout(()=>f(null),0);return()=>clearTimeout(_)}},[m,c,C]);const b=i.useCallback(_=>{const v=typeof _=="object"&&_!==null?Object.assign({},_,{__ts:Date.now()}):{value:_,__ts:Date.now()};typeof s=="function"&&s(v),p==="active"&&typeof o=="function"&&o(v)},[s,p,o]),y=i.useCallback(()=>{p==="active"&&(f(!1),b(!1))},[b,p]),w=i.useCallback(()=>{p==="active"&&(f(!0),b(!0))},[b,p]);return t.jsxs(Nn,{index:e,stepIndex:n,isLast:a,title:d,onDone:o,useTitleFaded:!1,children:[t.jsx(xl,{context:l,state:p}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(g)&&g.length>0?g.slice(0,6).map((_,v)=>t.jsx(ne,{size:56,type:"bar",onClick:()=>{p==="active"&&(f(v),b&&b(v))},disabled:p==="disabled",ariaLabel:String(_),label:_,variant:p,selected:C===v},v)):t.jsxs(t.Fragment,{children:[t.jsx(ne,{size:56,type:"bar",onClick:y,disabled:p==="disabled",icon:"x",ariaLabel:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:C===!1}),t.jsx(ne,{size:56,type:"bar",onClick:w,disabled:p==="disabled",icon:"circle",ariaLabel:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:C===!0})]})})]})}function Lr({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,btnLabel:s,soundSrc:l,bucketPath:c,usePreviewTextBtn:u,previewText:d=null,onPreviewTextBtn:h,disabled:p,_pageIndex:m,showSoundWaveForm:g,showNoiseWaveForm:C}){const{t:f}=pe.useTranslation(),b=r??f("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),y=p??(typeof n=="number"&&typeof e=="number"?e>n:!1);return t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:b,onDone:o,titleProps:{usePreviewTextBtn:u,previewText:d,onPreviewTextBtn:h},children:t.jsx(jr,{soundSrc:l,ttsText:l?null:d??b,bucketPath:c,btnLabel:s||f("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:y,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:C},`audio-p${m??0}-s${e}`)})}function $r({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:s,context:l=[]}){const{t:c}=pe.useTranslation(),u=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=L=>typeof L=="string"?L:L&&(L.context||L.sentence||L.question||"")||"",[h,p]=i.useState(Array.isArray(l)?l:[]),[m,g]=i.useState(()=>(h||[]).map((L,$)=>({id:$,text:d(L)}))),C=i.useMemo(()=>typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled",[n,e]);i.useEffect(()=>{const L=Array.isArray(l)?l:[];p(L);const $=(F=>{const O=(F||[]).map((q,le)=>({id:le,text:d(q)}));if(O.length<=1)return O;const X=(q,le)=>{if(q.length!==le.length)return!1;for(let de=0;de<q.length;de++)if(q[de].text!==le[de].text)return!1;return!0};let I=qn(O),U=0;for(;X(I,O)&&U<20;)I=qn(O),U+=1;return I})(L);g($);try{if(typeof s=="function"){const F=$.filter((O,X)=>O.text===d(L[X])).length;s({shuffled:$,score:F,total:(L||[]).length,initial:!0,__ts:Date.now()})}if(typeof o=="function"&&C==="active"){const F=$.filter((O,X)=>O.text===d(L[X])).length;o({shuffled:$,score:F,total:(L||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const f=(L,$)=>{const F=[...m],O=L+$;if(O<0||O>=F.length)return;const X=F[O];F[O]=F[L],F[L]=X,P(F);try{if(typeof o=="function"&&C==="active"){const I=F.filter((U,q)=>U.text===d(h[q])).length;o({shuffled:F,score:I,total:(h||[]).length,__ts:Date.now()})}}catch{}},[b,y]=i.useState(null),w=i.useRef(null),_=i.useRef(null),v=i.useRef(null),B=i.useRef(null),x=i.useRef(null),A=i.useRef({x:0,y:0}),M=i.useRef(null),k=i.useRef({dx:0,dy:0}),j=()=>{if(M.current!==null)return;const L=()=>{M.current=requestAnimationFrame(L);const $=A.current,F=k.current||{dx:0,dy:0};w.current&&(w.current.style.transform=`translate3d(${$.x-F.dx}px, ${$.y-F.dy}px, 0)`)};M.current=requestAnimationFrame(L)},H=i.useRef(new Map),R=i.useRef(new Map),E=()=>{const L=new Map;return H.current.forEach(($,F)=>{$&&$.getBoundingClientRect&&L.set(F,$.getBoundingClientRect())}),L},P=L=>{const $=E();g(L);try{if(typeof s=="function"){const F=L.filter((O,X)=>O.text===d(h[X])).length;s({shuffled:L,score:F,total:(h||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const F=E();L.forEach(O=>{const X=$.get(O.id),I=F.get(O.id),U=H.current.get(O.id);if(!U||!X||!I)return;const q=X.top-I.top;q&&(U.style.transition="none",U.style.transform=`translateY(${q}px)`,requestAnimationFrame(()=>{U.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",U.style.transform="";const le=()=>{U.style.transition="",U.removeEventListener("transitionend",le)};U.addEventListener("transitionend",le)}))})})},D=(L,$)=>{try{try{$.dataTransfer?.setData("text/plain",String(L))}catch{}try{$.dataTransfer&&($.dataTransfer.effectAllowed="move")}catch{}try{const F=document.createElement("div");F.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(F),$.dataTransfer?.setDragImage(F,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(F)}catch{}})}catch{}}catch{}y(L);try{const F=m[L],O=document.createElement("div");O.className="order-list__dragging-object order-list__dragging-object--visible",O.textContent=F&&F.text?F.text:"",document.body.appendChild(O),w.current=O;const X=H.current.get(F.id);let I=$.clientX||0,U=$.clientY||0;try{if(X&&X.getBoundingClientRect){const he=X.getBoundingClientRect();I=he.left+he.width/2,U=he.top+he.height/2}}catch{}const q=O.getBoundingClientRect(),le=q.width/2,de=q.height/2;k.current={dx:le,dy:de},O.style.transition="none",A.current={x:I,y:U},O.style.transform=`translate3d(${I-le}px, ${U-de}px, 0)`,requestAnimationFrame(()=>{try{O.style.transition=""}catch{}j()});const Ce=he=>{const T=he;A.current={x:T.clientX,y:T.clientY},j()};v.current=Ce,document.addEventListener("mousemove",Ce);const ve=he=>{const T=he;A.current={x:T.clientX,y:T.clientY},j()};_.current=ve,document.addEventListener("dragover",ve);try{$.dataTransfer?.setData("text/plain",String(L));try{$.dataTransfer?.setData("application/json",JSON.stringify({idx:L}))}catch{}}catch{}}catch{}},z=(L,$)=>{$.preventDefault();try{$.dataTransfer&&($.dataTransfer.dropEffect="move")}catch{}try{x.current!==null&&(clearTimeout(x.current),x.current=null);const F=$.currentTarget&&$.currentTarget.closest?$.currentTarget.closest(".order-list__item"):null;if(F&&B.current!==F){if(B.current)try{B.current.classList.remove("drag-over")}catch{}try{F.classList.add("drag-over")}catch{}B.current=F}}catch{}},Z=(L,$)=>{$.preventDefault();const F=$.dataTransfer?.getData("text/plain")||"",O=F?parseInt(F,10):b,X=L;if(typeof O!="number"||isNaN(O)||O===X){y(null),S(),Y();return}const I=Om(m,O,X);P(I),y(null),Y();try{if(typeof o=="function"&&C==="active"){const U=I.filter((q,le)=>q.text===d(h[le])).length;o({shuffled:I,score:U,total:(h||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const U=document.querySelectorAll(".order-list .order-list__item")[X];if(!U)return;const q=U.querySelector(".order-list__slot")||U;try{q.classList.add("pulse"),q.offsetHeight,q.classList.add("to-dark");const le=()=>{q.classList.remove("pulse","to-dark"),q.removeEventListener("transitionend",le)};q.addEventListener("transitionend",le)}catch{}})}catch{}S()},Y=()=>{if(w.current){try{document.body.removeChild(w.current)}catch{}w.current=null}_.current&&(document.removeEventListener("dragover",_.current),_.current=null),v.current&&(document.removeEventListener("mousemove",v.current),v.current=null),M.current!==null&&(cancelAnimationFrame(M.current),M.current=null)},J=()=>{y(null),S(),Y()};i.useEffect(()=>()=>Y(),[]);const S=()=>{try{if(x.current!==null&&(clearTimeout(x.current),x.current=null),B.current){try{B.current.classList.remove("drag-over")}catch{}B.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(L=>L.classList.remove("drag-over"))}catch{}};return i.useEffect(()=>{try{const L=Math.max(1,(m||[]).length);m.forEach(($,F)=>{const O=R.current.get($.id);if(!O)return;let X=50;L>1&&(X=Math.round(F/(L-1)*100));try{O.style.setProperty("--marker-pos",X+"%")}catch{}})}catch{}},[m]),i.useEffect(()=>()=>{Y(),x.current!==null&&(clearTimeout(x.current),x.current=null)},[]),t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:u,children:t.jsx("div",{className:"order-list",children:m.map((L,$)=>{const F=Math.max(1,(m||[]).length),O=F>1?Math.round($/(F-1)*100):50;return t.jsx("div",{className:"order-list__item",children:t.jsxs("div",{className:"order-list__slot","data-disabled":C==="disabled","aria-disabled":C==="disabled",children:[C!=="disabled"?t.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":O+"%"},ref:X=>{const I=R.current;X?I.set(L.id,X):I.delete(L.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:$+1})}):null,t.jsxs("div",{ref:X=>{const I=H.current;X?I.set(L.id,X):I.delete(L.id)},className:`order-list__draggable ${b===$?"dragging":""}`,"data-disabled":C==="disabled","aria-disabled":C==="disabled",tabIndex:C==="disabled"?-1:0,draggable:C==="active",onDragStart:C==="active"?X=>D($,X):void 0,onDragEnter:C==="active"?X=>z($,X):void 0,onDragOver:C==="active"?X=>z($,X):void 0,onDragLeave:C==="active"?()=>{try{x.current!==null&&clearTimeout(x.current),x.current=setTimeout(()=>{try{const X=document.querySelectorAll(".order-list .order-list__item");X&&X[$]&&(X[$].classList.remove("drag-over"),B.current===X[$]&&(B.current=null))}catch{}},80)}catch{}}:void 0,onDrop:C==="active"?X=>Z($,X):void 0,onDragEnd:C==="active"?J:void 0,children:[t.jsx("span",{className:"order-list__item-text body-2",children:L.text}),C==="active"?t.jsxs("span",{className:"order-list__item-buttons",children:[t.jsx(ne,{size:32,type:"dot",onClick:()=>f($,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:$===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(ne,{size:32,type:"dot",onClick:()=>f($,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:$===m.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},L.id)})})})}const xb=8e3;function _b(e,n){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.then(o,o),setTimeout(o,n)})}function _l({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:s,context:l=[],selectable:c=!1,hideLabel:u=!1,hideAudio:d=!1,maxCards:h}){const{t:p}=pe.useTranslation(),m=r??p("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),g=i.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),C=h??3,f=(g||[]).slice(0,C);(g||[]).length>C&&console.warn(`TrainingStepCard: ${g.length} items passed but only ${C} shown`);const b=typeof e=="number"?e:-1,y=typeof n!="number"?"disabled":b<n?"done":b===n?"active":"disabled",[w,_]=i.useState(null),v=i.useRef([]),[B,x]=i.useState(!1),A=i.useMemo(()=>g.map(H=>H?.id??H?.word??"").join("|"),[g]);i.useEffect(()=>{_(null),v.current=[]},[A]);const M=i.useCallback((H,R)=>{if(c)return;const E={item:H,index:R,__ts:Date.now()};try{typeof s=="function"&&s(E)}catch{}if(y==="active"&&typeof o=="function")try{o(E)}catch{}},[c,s,y,o]),k=i.useCallback(async()=>{if(!(B||y==="disabled")){x(!0);try{for(const H of v.current)H&&await _b(H.play(),xb)}finally{x(!1)}}},[B,y]),j=i.useCallback((H,R)=>{if(y!=="active")return;_(R);const E={selectedValue:H.word||H.title||"",selectedIndex:R,item:H,__ts:Date.now()};try{typeof s=="function"&&s(E)}catch{}if(y==="active"&&typeof o=="function")try{o(E)}catch{}},[s,y,o]);return t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:m,onDone:o,titleProps:{usePlayAllBtn:!d&&f.length>0,onPlayAll:k,playAllActive:B},children:t.jsx("div",{className:"training-step__cards",children:f.length===0?t.jsx("div",{className:"training-step__empty",children:p("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):f.map((H,R)=>t.jsx(Cr,{ref:E=>{v.current[R]=E},item:H,disabled:y==="disabled",onPlayDone:()=>M(H,R),selectable:c,selected:c&&w===R,onSelect:c?()=>j(H,R):void 0,flipDelay:R*120,hideLabel:u,hideAudio:d},H&&H.id||R))})})}const wb=160,wl=()=>{};function hn(e){const n=i.useId();if(!("variant"in e)){const{label:f,sub:b,onClick:y,children:w,align:_="horizontal",icon:v}=e,B=x=>{y&&x.target===x.currentTarget&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),y())};return t.jsxs("div",{className:ye("panel-row",_==="vertical"?"panel-row--vertical":"",y?"panel-row--clickable":""),onClick:y,onKeyDown:y?B:void 0,role:y?"button":void 0,tabIndex:y?0:void 0,children:[v!=null&&t.jsx("div",{className:"panel-row__icon",children:v}),f!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:f}),b&&t.jsx("div",{className:"panel-row__sub caption-1",children:b})]}),t.jsx("div",{className:"panel-row__right",children:w})]})}if(e.variant==="description")return t.jsx("div",{className:"panel-row panel-row--block",children:t.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return t.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return t.jsx("div",{className:"panel-row panel-row--loading",children:t.jsx(Qn,{size:28})});if(e.variant==="custom"&&!e.label)return t.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:o,onClick:s,required:l,error:c,align:u="horizontal",useFullWidth:d=!1,icon:h}=e;let p=null;const m=a==="toggle"?`panel-toggle-${n}`:void 0;if(a==="toggle"){const f=e;p=t.jsx(Ci,{checked:f.checked,onChange:f.onChange,id:m})}else if(a==="segmented"){const f=e;p=t.jsx(An,{options:f.options,value:f.value,onChange:f.onChange,size:f.size??40,ariaLabel:r})}else if(a==="dropdown"){const f=e,b=f.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:f.dropdowns.map((y,w)=>t.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:t.jsx(Vt,{options:y.options,value:y.value,onChange:y.onChange,placeholder:y.placeholder,block:d,error:!!c,ariaLabel:y.ariaLabel??([r,y.placeholder].filter(Boolean).join(" ")||void 0)})},w))}):t.jsx(Vt,{options:f.options??[],value:f.value??"",onChange:f.onChange??wl,block:d,error:!!c,ariaLabel:r});p=c?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[b,t.jsx("span",{className:"caption-1 panel-row__error",role:"alert",children:c})]}):b}else if(a==="button"){const f=e;f.buttons?.length?p=t.jsx("div",{className:"panel-row__button-group",children:f.buttons.map((b,y)=>t.jsx(ne,{size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.label},y))}):p=t.jsx(ne,{size:f.btnSize??40,variant:f.btnVariant??"default",disabled:f.disabled,onClick:f.onClick,children:f.buttonLabel})}else if(a==="text"){const f=e;p=t.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:f.valueColor?{color:f.valueColor}:void 0,children:f.value})}else if(a==="input"){const f=e;p=t.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[t.jsx(kn,{value:f.value,onChange:f.onChange??wl,onKeyDown:f.onKeyDown,onEnter:f.onEnter,placeholder:f.placeholder,inputMode:f.inputMode,readOnly:f.readOnly,disabled:f.disabled,type:f.type,autoComplete:f.autoComplete,maxLength:f.maxLength,showCount:f.showCount,multiline:f.multiline,rows:f.rows,fullWidth:d,error:c,ariaLabel:r,required:l}),f.helperText&&t.jsx("div",{className:"panel-row__helper caption-1",children:f.helperText})]})}else a==="custom"&&(p=e.children);const g=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,C=f=>{s&&f.target===f.currentTarget&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),s())};return t.jsxs("div",{className:ye("panel-row",u==="vertical"?"panel-row--vertical":"",g?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",s?"panel-row--clickable":""),onClick:s,onKeyDown:s?C:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,children:[h!=null&&t.jsx("div",{className:"panel-row__icon",children:h}),t.jsxs("div",{className:"panel-row__left",children:[m?t.jsxs("label",{htmlFor:m,className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}):t.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}),o&&t.jsx("div",{className:"panel-row__sub caption-1",children:o})]}),t.jsx("div",{className:"panel-row__right",children:p})]})}function kl(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function kb({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=pe.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(o=>{const s=e[o],l=o==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return t.jsxs("div",{className:"panel-row__device-column",children:[t.jsxs("div",{className:"panel-row__device-head",children:[t.jsx("span",{className:"panel-row__device-side body-2b",children:l}),s&&n&&t.jsx(ne,{size:32,type:"dot",icon:"x",ariaLabel:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>n(o)})]}),s?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[s.device&&t.jsx(lt,{size:"small",variant:ji(s.device),fill:"soft",label:s.device}),kl(s)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:kl(s)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:s.productName||s.brand}),t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:`${s.wornYear}.${s.wornMonth}.${s.wornDay}`})})]}):t.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},o)})})}function _a({title:e,icon:n,disc:a,actions:r,size:o="medium",minHeight:s,maxWidth:l,className:c,scrollable:u,useBorder:d=!0,useBg:h=!0,useRowBorder:p=!0,labelWidth:m,form:g=!1,loading:C,empty:f,children:b}){const y=ye("panel",`panel--${o}`,g?"panel--form":"",s!==void 0?"panel--fill":"",d?"":"panel--no-border",h?"":"panel--no-bg",p?"":"panel--no-row-border",c),w={};return s!==void 0&&(w.minHeight=s),l!==void 0&&(w.maxWidth=typeof l=="number"?`${l}px`:l),m!==void 0&&(w["--panel-label-width"]=typeof m=="number"?`${m}px`:m),t.jsxs("div",{className:y,style:Object.keys(w).length?w:void 0,children:[(e!=null||a!=null)&&t.jsxs("div",{className:ye("panel__header",a!=null?"panel__header--with-disc":""),children:[n&&t.jsx(Oe,{icon:n,label:typeof e=="string"?e:void 0,className:"panel__icon"}),t.jsxs("div",{className:"panel__title-group",children:[e!=null&&t.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&t.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&t.jsx("div",{className:"panel__actions",children:r})]}),C?t.jsx(hn,{variant:"loading"}):f!=null&&(b==null||Array.isArray(b)&&b.length===0)?t.jsx(hn,{variant:"empty",children:f}):u?t.jsx("div",{className:"panel__body--scroll",children:b}):b]})}function Ab({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function Nb(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 Al(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"}]}Nb(bn.t.bind(bn)),Al(bn.t.bind(bn));const Rr="none",Bb=.5,Sb=1.5,Db=.25;function Pr({title:e,valueLabel:n,value:a,min:r,max:o,step:s,tickStep:l,size:c,onChange:u}){return t.jsxs(hn,{variant:"custom",label:e,useFullWidth:!0,children:[t.jsx(Ni,{value:a,onChange:u,min:r,max:o,step:s,size:c,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),t.jsx("div",{className:"noise-settings__value button-1",children:n})]})}function Nl({anchorRect:e,onClose:n}){const{t:a}=pe.useTranslation(),r=Xt("(max-width: 767px)")?40:24,o=Br(),s=ba(o?.settings??Nr),l=o?.settings.type??"defaultNoise",c=o?.settings.enabled??!0,u=o?.playbackRate??1,d=o?.mainVolume??1,h=Math.round(d*100),p=i.useCallback(f=>{try{o?.setMainVolume(Math.max(0,Math.min(1,f/100)))}catch{}},[o]),m=i.useCallback(f=>{try{o?.setPlaybackRate(f)}catch{}},[o]),g=i.useCallback(f=>{const b=Math.min(kr,Math.max(0,Math.round(f*10)/10));try{o?.setSettings({noiseRatio:b})}catch{}},[o]),C=i.useCallback(f=>{try{f===Rr?o?.setSettings({enabled:!1}):o?.setSettings({type:f,enabled:!0})}catch{}},[o]);return t.jsx(ln,{anchorRect:e,offset:12,onClose:n,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:t.jsxs("div",{className:"noise-settings__header",children:[t.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),t.jsx(ne,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:n})]}),children:t.jsxs(_a,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(Pr,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${h}%`,value:h,min:0,max:100,step:10,size:r,onChange:p}),t.jsx(Pr,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:Bb,max:Sb,step:Db,size:r,onChange:m}),t.jsx(hn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:t.jsx(An,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Rr,label:a("training.noise.type.none","\uC5C6\uC74C")},...Al(a).map(f=>({key:f.value,label:f.label}))],value:c?l:Rr,onChange:C})}),t.jsx(Pr,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:s.toFixed(1)}),value:s,min:0,max:kr,step:eb,size:r,onChange:g})]})})}function Bl({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:o=0,stepCount:s=0,pageIndex:l=0,pageCount:c=1}){const{t:u}=pe.useTranslation(),[d,h]=i.useState(!1),[p,m]=i.useState(null),[g,C]=i.useState(!1),f=i.useRef(null),b=i.useRef(null),y=Br(),w=l<c-1,_=l===c-1,v=o===Math.max(0,s);i.useEffect(()=>{e||(h(!1),m(null))},[e]);const B=i.useCallback(()=>{h(!1),m(null)},[]),x=i.useCallback(()=>{if(d){h(!1),m(null);return}const k=f?.current?.getBoundingClientRect();k&&m(k),n?.(),h(!0)},[d,n]),A=i.useCallback(()=>{if(d){h(!1),m(null);return}const k=b?.current?.getBoundingClientRect();k&&m(k),n?.(),h(!0)},[d,n]),M=i.useCallback(()=>C(k=>!k),[]);return t.jsxs("div",{className:"pp-bottom",children:[t.jsxs("div",{className:"pp-bottom__left",children:[e?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pp-bottom__settings--desktop",children:t.jsx("div",{ref:f,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ne,{size:56,type:"bar",icon:"settings",onClick:x,selected:d,ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),t.jsx("div",{className:"pp-bottom__settings--mobile",children:t.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ne,{size:56,type:"dot",icon:"settings",onClick:A,selected:d,ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&t.jsx(ne,{size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:M,selected:g,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&g&&t.jsxs("div",{className:"pp-bottom__meters",children:[t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.sentence","\uC7AC\uC0DD")}),t.jsx(dr,{analyser:y?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.sentence","\uC7AC\uC0DD")})]}),t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.noise","\uC18C\uC74C")}),t.jsx(dr,{analyser:y?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]})]}),t.jsxs("div",{className:"pp-bottom__right",children:[_&&t.jsx(ne,{size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!v}),w&&t.jsx(ne,{size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!v})]}),e&&d&&t.jsx(Nl,{anchorRect:p,onClose:B})]})}function Sl({title:e,subtitle:n,desc:a,depth:r,icon:o,wrapperStyle:s,iconTooltip:l,pageIndex:c,pageCount:u,progressMax:d,progressIndex:h,onBack:p,onClose:m}){const{t:g}=pe.useTranslation(),C=Xt("(max-width: 767px)"),f=Number.isInteger(h)?h:c||0,b=Number.isInteger(d)?d:u||0,y=p||m,w=Array.isArray(r)?C?r[r.length-1]:r.join(" / "):r,_=typeof e=="string"?e.trim():e,v=typeof n=="string"?n.trim():n,B=!!(_||v),x=B?_||v:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),A=w||n,M=C&&typeof A=="string"&&(A.includes(" \xB7 ")||A.includes(" / "))?A.split(/\s[·/]\s/).pop():A,k=i.useMemo(()=>{const j=s&&typeof s=="object"?{...s}:{};return!("width"in j)&&!("height"in j)&&(j.width="40px",j.height="40px"),j},[s]);return t.jsxs("header",{className:"pp-title training-popup-title",children:[t.jsxs("div",{className:"pp-title__left",children:[y?t.jsx(ne,{size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:y,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:o?t.jsx(Mi,{icon:o,label:e,tooltip:l,wrapperStyle:k}):null}),t.jsxs("div",{className:"pp-title__text",children:[M?t.jsx("span",{className:"pp-title__depth caption-1",children:M}):null,t.jsx("span",{className:`pp-title__title h2${B?"":" pp-title__title--empty"}`,children:x}),a?t.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),t.jsx(Di,{max:Math.max(0,b??0),index:Math.max(0,f??0)})]})}function jb(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Eb(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(n=>typeof n=="string"?n.split("|").map(a=>a.trim()).filter(Boolean):n||n===0?[String(n)]:[]):typeof e=="string"?e.split("|").map(n=>n.trim()).filter(Boolean):[String(e)]}function Dl(e,n,a){const r=e,o=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",s=rs().find(c=>c.key===(r?.category_0||r?.category_main_code)),l=s?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:o,label:r?.title||o,depth:n,icon:s?.icon,wrapperStyle:s?.color?{"--t-item-fg":s.color}:void 0,iconTooltip:[s?.label,l?.label].filter(Boolean).join(" / ")||void 0}}function Ir(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function Tb(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function Mb({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:o=[],emptyMessage:s,buildResults:l,metaPatch:c}){const u=Dl(n,a,r),d=typeof c=="function"?c(u)||{}:c||{},h=n?.id||n?.title||o.length;return{id:`${e}:${h}`,meta:{...u,...d},pages:o,emptyMessage:s,buildResults:l}}function Lb(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function $b(e){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return n.selectedValues;if(n.selectedValue!==void 0)return n.selectedValue;if(n.selectedIndex!==void 0)return n.selectedIndex;if(n.value!==void 0)return n.value}return e}function Rb(e,n=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(n))return String(n[e]??"");if(typeof e=="string")return e}function jl(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function Pb(e,n,a,r){return jl(e,n*a+r)}function Ib({payload:e,selected:n,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const o=e;if(Array.isArray(o.selectedValues))return r.every(s=>o.selectedValues.includes(s))&&o.selectedValues.every(s=>r.includes(s));if(typeof o.correct=="boolean")return o.correct}if(r.length){if(typeof n=="number"&&Array.isArray(a)&&a.length)return r.some(o=>String(o)===String(a[n]));if(typeof n<"u")return r.some(o=>String(o)===String(n))}}function Fb(e){return e?Array.isArray(e.items)?e.items.map(n=>{const a=n;return typeof n=="string"?{sentence:n}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(n=>{const a=n;return typeof n=="string"?{sentence:n}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const El=i.createContext(null);function Ob(){const e=i.useContext(El);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function Hb({index:e,stepIndex:n,isLast:a=!1,title:r="\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",choices:o=[],onDone:s,onChange:l}){const c=typeof e=="number"?e:-1,u=typeof n!="number"?"disabled":c<n?"done":c===n?"active":"disabled",[d,h]=i.useState(()=>o.map(()=>null)),p=o.join("|");i.useEffect(()=>{h(p?p.split("|").map(()=>null):[])},[p]);const m=i.useMemo(()=>d.filter(C=>C!==null).length+1,[d]),g=i.useCallback(C=>{u==="active"&&h(f=>{const b=[...f];if(b[C]!==null){const w=b[C];return b.map(_=>_!==null&&_>=w?null:_)}b[C]=m;const y={selectedOrder:b,words:o,__ts:Date.now()};try{typeof l=="function"&&l(y)}catch{}if(b.every(w=>w!==null))try{typeof s=="function"&&s(y)}catch{}return b})},[u,m,l,s,o]);return t.jsx(Nn,{index:e,stepIndex:n,isLast:a,title:r,onDone:s,children:t.jsx("div",{className:"training-step__cards",children:o.map((C,f)=>t.jsx(Cr,{item:{word:C},disabled:u==="disabled",selectable:!0,selected:d[f]!==null,orderRank:d[f],onSelect:()=>g(f),flipDelay:f*120,hideLabel:!1,hideAudio:!0},`${C}-${f}`))})})}function wa(e){return null}wa.__isTrainingPage=!0;function Pn(e,n){const a=Ob();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof n=="number"?e===n-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function Tl({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l}=Pn(e,n);return t.jsx(Lr,{...a,index:r,stepIndex:o,isLast:s,onDone:l})}function Ml({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=Pn(e,n);return t.jsx(Tr,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Ll({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=Pn(e,n);return t.jsx(Mr,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function $l({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=Pn(e,n);return t.jsx($r,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Rl({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=Pn(e,n);return t.jsx(_l,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Vb({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=Pn(e,n);return t.jsx(Hb,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Fr(...e){for(const n of e)if(typeof n=="string"){const a=n.trim();if(a.length)return a}else{if(typeof n=="number"||typeof n=="boolean")return String(n);if(Array.isArray(n)&&n.length)return n.join(", ");if(n&&typeof n=="object"){const a=n,r=[a.text,a.label,a.value];for(const o of r){if(typeof o=="string"&&o.trim().length)return o.trim();if(typeof o=="number"||typeof o=="boolean")return String(o)}}}return null}function zb(e){return Fr(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function Pl(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 n=Fr(e?.status,e?.result,e?.judge,e?.note);if(n){const a=n.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 Il(e){const{score:n,contextsLength:a,results:r=[],subtitle:o,onReplay:s,onClose:l,inline:c=!1}=e||{},{t:u}=pe.useTranslation();i.useEffect(()=>{const f=a??0;n!=null&&f>0&&n/f>.5&&window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},[n,a]);const d=i.useCallback(f=>{const b=Pl(f),y=Fr(f?.wording,f?.label);return b===!0?{variant:"main",label:y??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:b===!1?{variant:"danger",label:y??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:y??u("training.result.notJudged","\uBBF8\uD310\uC815")}},[u]),h=a??0,p=n??0,m=i.useMemo(()=>Array.isArray(r)?r:[],[r]),g=i.useMemo(()=>m.map(f=>{const b=f??{},y=zb(b)||"(\uB0B4\uC6A9\uC5C6\uC74C)",{variant:w,label:_}=d(b),v=Array.isArray(b.corrects)?b.corrects:[],B=v.length?v.join(", "):b.answer!=null&&b.answer!==""?String(b.answer):null,x=typeof b.selectedText=="string"?b.selectedText:null,A=Pl(b)===!0;return{problem:y,variant:w,label:_,answer:B,selectedText:x,isCorrect:A}}),[m,d]),C=i.useMemo(()=>g.some(f=>f.answer!==null||f.selectedText!==null),[g]);return t.jsx(pn,{onClose:l,inline:c,ariaLabel:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",footerClassName:"trp-result__foot",footer:({animateThen:f,closeWithAnimation:b})=>t.jsxs("div",{className:"trp-actions",children:[t.jsx(ne,{size:56,type:"bar",label:u("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>f(s)}),t.jsx(ne,{size:56,type:"bar",label:u("training.result.done","\uC644\uB8CC"),variant:"main",onClick:b})]}),children:()=>t.jsxs("div",{className:"trp-result is-on",children:[t.jsxs("header",{className:"trp-result__head",children:[t.jsx("p",{className:"trp-result__eyebrow caption-1",children:u("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),t.jsx("h1",{className:"trp-result__title h2",children:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),o&&t.jsx("p",{className:"trp-result__subtitle body-3",children:o}),t.jsx("div",{className:"trp-score",children:t.jsxs("div",{className:"trp-score__figure","aria-label":u("training.result.scoreAria",{correct:p,total:h}),children:[t.jsx("span",{className:"trp-score__big",children:p}),t.jsx("span",{className:"trp-score__sep",children:"/"}),t.jsx("span",{className:"trp-score__total",children:h})]})})]}),g.length>0&&t.jsx("section",{className:"trp-result__body",children:t.jsxs("div",{className:`result-table${C?" result-table--answer":""}`,role:"table","aria-label":u("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[t.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[t.jsx("span",{role:"columnheader",children:u("common.col.problem","\uBB38\uC81C")}),C&&t.jsx("span",{role:"columnheader",children:u("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),t.jsx("span",{className:"col-right",role:"columnheader",children:u("training.result.colJudge","\uD310\uC815")})]}),g.map((f,b)=>t.jsxs("div",{className:"result-table__row",role:"row",children:[t.jsxs("div",{className:"trp-row__problem",children:[t.jsx("span",{className:"trp-row__no caption-1",children:String(b+1).padStart(2,"0")}),t.jsx("div",{className:"trp-row__q body-2",children:f.problem})]}),C&&t.jsxs("div",{className:"trp-row__answers",children:[f.answer!==null&&t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:u("training.result.colAnswer","\uC815\uB2F5")}),t.jsx("span",{className:"trp-row__answer-value body-2",children:f.answer})]}),t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${f.isCorrect?"is-correct":"is-wrong"}`,children:u("training.result.colSelected","\uC120\uD0DD")}),t.jsx("span",{className:`trp-row__answer-value body-2 ${f.isCorrect?"is-correct":"is-wrong"}`,children:f.selectedText??"\u2014"})]})]}),t.jsx("div",{className:"trp-row__judge",children:t.jsx(lt,{variant:f.variant,label:f.label,fill:"soft",minWidth:80})})]},b))]})})]})})}function Wb(e){i.useEffect(()=>{if(!e)return;const n=new Date;return()=>{const a=new Date;a.getTime()-n.getTime()<5e3||zm({trainingType:e,startedAt:n.toISOString(),endedAt:a.toISOString()})}},[e])}function Or(e,n){return e&&e.id||`page-${n??0}`}function Hr(e,n){return e&&e.key||`step-${n??0}`}function ka(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function qb(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const Fl=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),Ub=e=>t.jsx(Il,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function Gb(e){const{scenario:n,title:a,subTitle:r,depth:o,icon:s,wrapperStyle:l,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:h,stepCount:p,onBack:m,onComplete:g,onNext:C,onSettings:f,useNoiseSetting:b=!0,children:y,ariaLabel:w,label:_,buildResults:v,onResult:B,typeKey:x,entryPoint:A,dailyTotal:M,itemRef:k,renderResultPopup:j,noiseOverride:H}=e;Wb(x&&!Fl.has(x)?x:"");const R=i.useRef(0);i.useEffect(()=>{R.current=Date.now()},[]);const{t:E}=pe.useTranslation(),P=B,D=!!n,z=n?.id||null,Z=n?.meta||{},Y=Array.isArray(n?.pages)?n.pages:[],J=Array.isArray(y)||i.isValidElement(y)&&typeof y!="function"?i.Children.toArray(y).filter(i.isValidElement):[],S=J.length>0,L=oe=>oe===wa||oe?.__isTrainingPage===!0,$=S&&J.some(oe=>L(oe.type)),F=$?J.filter(oe=>L(oe.type)).map((oe,me)=>{const fe=oe.props||{};return{id:`children-page-${me}`,steps:i.Children.toArray(fe.children).filter(i.isValidElement),pageTop:fe.pageTop||fe.top||null,pageBottom:fe.pageBottom||fe.bottom||null}}):[{id:"children-page-0",steps:J}],O=S&&!D&&typeof y!="function",X=O?Math.max(1,F.length):0;i.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")}},[]),i.useEffect(()=>{if(typeof document>"u"||!document.body)return;const oe=document.body;return oe.dataset.ihabTrainingPopupCount=String(Number(oe.dataset.ihabTrainingPopupCount||"0")+1),oe.classList.add("ihab-training-popup-open"),()=>{const me=Number(oe.dataset.ihabTrainingPopupCount||"1")-1;me>0?oe.dataset.ihabTrainingPopupCount=String(me):(delete oe.dataset.ihabTrainingPopupCount,oe.classList.remove("ihab-training-popup-open"))}},[]),i.useEffect(()=>{if(!(typeof document>"u"||!document.body))return o4()},[]);const[I,U]=i.useState({...Nr,enabled:!1}),q=i.useRef(I);i.useEffect(()=>{q.current=I},[I]);const le=i.useRef(H);i.useEffect(()=>{let oe=!1;return Gm().then(me=>{if(oe)return;const fe=me?Ar(q.current,me):{...Nr};q.current=fe,U(fe),Ga(fe);const Ne=le.current;if(Ne){const K=typeof Ne=="function"?Ne(fe):Ne,te=Ar(fe,K);q.current=te,U(te),Ga(te)}}),()=>{oe=!0}},[]);const[de,Ce]=i.useState(null),[ve,he]=i.useState(null),T=i.useCallback((oe,me)=>{oe==="main"?Ce(me):he(me)},[]),W=i.useCallback(oe=>{const me=Ar(q.current,oe);q.current=me,U(me),le.current||Km(me),Ga(me)},[]),Q=I.mainSpeed,_e=I.mainVolume,ue=i.useCallback(oe=>W({mainSpeed:oe}),[W]),ie=i.useCallback(oe=>W({mainVolume:oe}),[W]),ae=i.useMemo(()=>({settings:I,setSettings:W,registerAnalyser:T,mainAnalyser:de,noiseAnalyser:ve,playbackRate:Q,setPlaybackRate:ue,mainVolume:_e,setMainVolume:ie}),[I,W,T,de,ve,Q,ue,_e,ie]),se=i.useRef(null),[Se,He]=i.useState("center"),[Ve,Re]=i.useState(!1),Ee=i.useRef(!1),je=i.useRef(null),Ae=i.useCallback(oe=>{Ee.current||(Ee.current=!0,Re(!0),je.current=setTimeout(oe,wb))},[]);i.useEffect(()=>()=>{je.current&&clearTimeout(je.current)},[]),i.useEffect(()=>{const oe=se.current;if(!oe)return;const me=Array.from(oe.querySelectorAll(Gn)).filter(Ne=>!Ne.closest('[aria-hidden="true"]'))[0];if(me)try{me.focus()}catch{}const fe=Ne=>{if(Ne.key==="Escape"){Ne.preventDefault(),Ae(()=>{typeof m=="function"&&m()});return}};return oe.addEventListener("keydown",fe),()=>oe.removeEventListener("keydown",fe)},[m,Ae]),Ya(se,!0);const[ze,at]=i.useState(!1),ge=i.useRef(!1),[Pe,$e]=i.useState(null),[Ke,Ze]=i.useState(""),[Ue,Ie]=i.useState(()=>ka()),dt=i.useRef(typeof u=="number"?u:null);i.useEffect(()=>{!D&&!O||(Ie(ka()),$e(null))},[D,z,O]),i.useEffect(()=>{O&&Ie(oe=>{const me=Math.max(0,Math.min(oe.pageIndex,Math.max(0,X-1)));return me!==oe.pageIndex?{...oe,pageIndex:me,stepIndex:0}:oe})},[O,X]);const ct=O?Math.max(0,Math.min(Ue.pageIndex,X-1)):0,qe=O?F[ct]:null,ot=O&&qe&&Array.isArray(qe.steps)?qe.steps:[],Te=D?Ue.pageIndex:O?ct:typeof u=="number"?u:0,Me=D?Y[Math.max(0,Math.min(Ue.pageIndex,Math.max(0,Y.length-1)))]:null,tt=D&&Me&&Array.isArray(Me.steps)?Me.steps:[],ft=D?tt.length:O?ot.length:typeof p=="number"?p:0,Ye=D||O?Math.max(0,Math.min(Ue.stepIndex,Math.max(0,ft))):typeof h=="number"?h:0,Xe=D?Y.length:O?X:typeof d=="number"?d:0;i.useLayoutEffect(()=>{const oe=dt.current;if(typeof Te=="number"&&oe!==null&&Te!==oe&&Te>oe)try{Ze(E("training.problemNotice",{n:Te+1}))}catch{}dt.current=typeof Te=="number"?Te:dt.current},[Te,u,E]),i.useLayoutEffect(()=>{const oe=se.current;if(!oe)return;const me=()=>oe.querySelector(".page-popup__scroll");let fe=null,Ne=null,K=null;const te=ke=>{const Fe=me();if(!Fe)return;const et=Fe.scrollHeight<=Fe.clientHeight;if(He(et?"center":"top"),ke&&!ge.current){ge.current=!0;try{at(!0)}catch{}try{De.disconnect()}catch{}}},be=()=>{fe!==null&&cancelAnimationFrame(fe),fe=requestAnimationFrame(()=>{Ne!==null&&clearTimeout(Ne),Ne=setTimeout(()=>te(!0),60)})},xe=()=>{K!==null&&cancelAnimationFrame(K),K=requestAnimationFrame(()=>te(!1))};be(),window.addEventListener("resize",xe);const De=new MutationObserver(be);De.observe(oe,{childList:!0,subtree:!0,attributes:!0});const ee=setTimeout(()=>{ge.current||te(!0)},400);return()=>{window.removeEventListener("resize",xe),fe!==null&&cancelAnimationFrame(fe),Ne!==null&&clearTimeout(Ne),K!==null&&cancelAnimationFrame(K),clearTimeout(ee);try{De.disconnect()}catch{}}},[se]);const ht=i.useCallback(oe=>{se.current&&(se.current._childOnNext=oe)},[]),Et=i.useCallback(oe=>{se.current&&(se.current._childOnResult=oe)},[]),Qe=i.useCallback((oe,me,fe)=>{Ie(Ne=>{const K=Ne.answersByPage[oe]||{},te=K[me],be=Ir(fe),xe=Ir(te);return te&&xe>be?Ne:{...Ne,answersByPage:{...Ne.answersByPage,[oe]:{...K,[me]:fe}}}})},[Ie]),vt=i.useCallback((oe,me,fe)=>{const Ne=Or(Me,Te),K=Hr(oe,me);Qe(Ne,K,fe)},[Me,Te,Qe]),Tt=i.useCallback((oe,me,fe)=>{const Ne=Or(Me,Te),K=Hr(oe,me);Qe(Ne,K,fe),!fe?.allowChange&&oe?.autoAdvance!==!1&&Ie(te=>({...te,stepIndex:Math.max(te.stepIndex,me+1)}))},[Me,Te,Qe,Ie]),Gt=i.useCallback((oe,me)=>{const fe=qe?.id||`children-page-${Te??0}`,Ne=typeof me=="number"?me:Ye??0,K=`step-${Ne}`;Qe(fe,K,oe),oe?.allowChange||Ie(te=>({...te,stepIndex:Math.max(te.stepIndex,Ne+1)}))},[qe,Te,Ye,Qe,Ie]),an=i.useCallback((oe,me)=>{const fe=qe?.id||`children-page-${Te??0}`,Ne=`step-${typeof me=="number"?me:Ye??0}`;Qe(fe,Ne,oe)},[qe,Te,Ye,Qe]),It=O?{currentPageIndex:Te??0,currentStepIndex:Ye??0,totalStepsInPage:ot.length,handleStepDone:Gt,handleStepChange:an}:null,zt=async()=>{const oe=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:Y,flowState:Ue,answersByPage:Ue.answersByPage})):null;return typeof P=="function"&&await Promise.resolve(P(oe))||oe},Wt=async()=>{const oe=qe?.id||`children-page-${Ue.pageIndex}`,me=Ue.answersByPage[oe]||{},fe=$?(()=>{const te={};let be=0;return F.forEach(xe=>{const De=Ue.answersByPage[xe.id]||{},ee=Array.isArray(xe.steps)?xe.steps.length:0;for(let ke=0;ke<ee;ke+=1){const Fe=De[`step-${ke}`];typeof Fe<"u"&&(te[`step-${be+ke}`]=Fe)}be+=ee}),te})():me;if(typeof v=="function"){const te=await Promise.resolve(v(fe,{pageAnswers:me,answersByPage:Ue.answersByPage,pages:F,currentPageId:oe}));return typeof P=="function"&&await Promise.resolve(P(te))||te}const Ne=Object.entries(me).map(([te,be],xe)=>({index:xe,key:te,payload:be})),K={results:Ne,answers:Ne,score:0};return typeof P=="function"&&await Promise.resolve(P(K))||K},xt=()=>{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(D){const fe=zt();$e({});const Ne=fe;Promise.resolve(Ne).then(K=>{$e(K||{isEmpty:!0})}).catch(K=>{$e({isEmpty:!0})});return}if(O){const fe=Wt();$e({});const Ne=fe;Promise.resolve(Ne).then(K=>{$e(K||{isEmpty:!0})}).catch(K=>{$e({isEmpty:!0})});return}const oe=se.current&&se.current._childOnResult,me=fe=>{try{return fe?fe():void 0}catch{return}};if(typeof oe=="function"){const fe=me(oe);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("components.cjs.js",document.baseURI).href}catch{}fe&&typeof fe.then!="function"?$e(fe):$e(fe&&typeof fe.then=="function"?{}:{}),Promise.resolve(fe).then(Ne=>{Ne&&$e(Ne)}).catch(Ne=>{});return}if(typeof P=="function"){const fe=me(P);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("components.cjs.js",document.baseURI).href}catch{}fe&&typeof fe.then!="function"?$e(fe):$e(fe&&typeof fe.then=="function"?{}:{}),Promise.resolve(fe).then(Ne=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("components.cjs.js",document.baseURI).href}catch{}Ne&&$e(Ne)}).catch(Ne=>{console.error("viewResults external handler failed",Ne)});return}},fn=()=>{if(D){if(typeof Te=="number"&&typeof Xe=="number"&&Te<Xe-1){Ie(me=>({...me,pageIndex:me.pageIndex+1,stepIndex:0}));return}return xt()}if(O){const me=ot.length;if(typeof Ye=="number"&&Ye<me-1){Ie(fe=>({...fe,stepIndex:fe.stepIndex+1}));return}if(typeof Te=="number"&&typeof Xe=="number"&&Te<Xe-1){Ie(fe=>({...fe,pageIndex:fe.pageIndex+1,stepIndex:0}));return}return xt()}if(typeof C=="function"){try{C()}catch{}return}const oe=se.current&&se.current._childOnNext;if(typeof oe=="function"){try{oe()}catch{}return}},_t=D?Z.title||Z.label||w||E("common.popup","\uD31D\uC5C5"):a||_||(Array.isArray(o)?o[o.length-1]:void 0)||w||E("common.popup","\uD31D\uC5C5"),Cn=D?Z.title??Z.label??_t:a??_??_t,Kt=(oe,me)=>{const fe=Or(Me,Te),Ne=Hr(oe,me),K=Ue.answersByPage[fe]?.[Ne],te=qb(oe,{page:Me,pageIndex:Te,step:oe,stepIndex:me,storedPayload:K,answersByPage:Ue.answersByPage,flowState:Ue}),be={key:Ne,index:me,stepIndex:Ye,isLast:me===tt.length-1};switch(oe?.type){case"listen":return t.jsx(Lr,{...be,...te,onDone:xe=>Tt(oe,me,xe)});case"confirm":return t.jsx(Tr,{...be,...te,onDone:xe=>Tt(oe,me,xe),onChange:xe=>vt(oe,me,xe)});case"confirmWithText":return t.jsx(Mr,{...be,...te,onDone:xe=>Tt(oe,me,xe),onChange:xe=>vt(oe,me,xe)});case"orderList":return t.jsx($r,{...be,...te,onDone:xe=>Tt(oe,me,xe),onChange:xe=>vt(oe,me,xe)});default:return null}},Ge=D?Y.length>0?t.jsx("div",{className:"training-steps",children:tt.map((oe,me)=>Kt(oe,me))}):t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||E("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Mt=O?t.jsxs(El.Provider,{value:It,children:[qe?.pageTop?t.jsx("div",{className:"training-page-top",children:qe.pageTop}):null,t.jsx("div",{className:"training-steps",children:ot.map((oe,me)=>{const fe=oe;return i.cloneElement(fe,{...fe.props,_stepIndex:me,_totalSteps:ot.length,_stepKey:`step-${me}`,_pageIndex:Te})})}),qe?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:qe.pageBottom}):null]}):null,wt=i.useCallback(()=>{let oe;if(x){const me=Pe,fe=me?.results||me?.answers||[],Ne=Array.isArray(fe)&&fe.length>0?fe.length:null,K=Array.isArray(fe)?fe.filter(be=>be?.correct===!0||be?.isCorrect===!0||be?.score===1||be?.heard===!0||be?.judgement===!0).length:null,te=Ne!=null?K:null;Wm({items:Um(fe),category:Fl.has(x)?"sentence":"word",trainingType:x,entryPoint:A??"sentence",itemRef:k??null,correct:te,total:Ne,score:typeof me?.score=="number"?me.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-R.current)/1e3)),dailyTotal:M??null}),oe={correct:te,total:Ne}}$e(null),Ae(()=>{typeof g=="function"&&g(oe),typeof m=="function"&&m()})},[g,m,x,A,M,k,Pe,$e,Ae]),Zt=i.useCallback(()=>Ze(""),[Ze]),Ft=i.useCallback(()=>{Ae(()=>{typeof m=="function"&&m()})},[m,Ae]),Lt=t.jsxs("div",{className:`page-popup${Ve?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":_t,children:[t.jsxs("div",{ref:se,className:`page-popup__panel ${ze?"":"page-popup__panel--measuring"} ${Se==="center"?"page-popup__panel--center":Se==="top"?"page-popup__panel--top":""}`,children:[t.jsx(Sl,{title:Cn,subtitle:D?Z.subtitle||Z.label:Array.isArray(o)?o.join(" / "):void 0,desc:D?void 0:r,depth:D?Z.depth:o,icon:D?Z.icon:s,wrapperStyle:D?Z.wrapperStyle:l,iconTooltip:D?Z.iconTooltip:c,progressMax:Xe,progressIndex:Te,pageIndex:Te,pageCount:Xe,onBack:Ft,onClose:Ft}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${Se==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:O?Mt:D?Ge:typeof y=="function"?y({registerOnNext:ht,registerOnResult:Et,panelRef:se,setResultOverlay:$e}):y})}),t.jsx(Bl,{onSettings:f,onNext:fn,onResult:xt,useNoiseSettingBtn:!!(D?Z.useNoiseSetting??!0:b),stepIndex:Ye,stepCount:ft,pageIndex:Te,pageCount:Xe})]}),Pe&&!Pe.isEmpty&&(j??Ub)({score:Pe.score,results:Pe.results||Pe.answers||[],contextsLength:Pe.results?Pe.results.length:Pe.answers?Pe.answers.length:0,onReplay:()=>{if($e(null),D){if(Ie(ka()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if(O){Ie(ka());return}try{const oe=se.current&&se.current._childOnResult;typeof oe=="function"&&oe({replay:!0})}catch{}},onClose:wt}),Pe?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":E("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:t.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"page-popup__empty",children:E("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(ne,{variant:"main",size:48,onClick:wt,label:E("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(Tn,{message:Ke,position:"top",onClose:Zt})]}),qt=t.jsx(hl.Provider,{value:ae,children:Lt});return typeof document<"u"&&document.body?Pt.createPortal(qt,document.body):qt}const mn=Gb;mn.Page=wa,mn.ListenStep=Tl,mn.ConfirmStep=Ml,mn.ConfirmWithTextStep=Ll,mn.OrderListStep=$l,mn.CardStep=Rl,mn.CardOrderStep=Vb;function Kb({label:e,homonum:n}){const a=Dn()?.(e,n)??"",{imgRef:r,loading:o,hasImage:s,onLoad:l,onError:c}=fr(a);return s?t.jsxs("div",{className:"tooltip-word-image__cell",children:[o&&t.jsx("div",{className:"tooltip-word-image__spinner"}),t.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:o?0:1},onLoad:l,onError:c})]}):t.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:t.jsx("span",{children:e})})}function Ol({words:e,anchorRect:n}){const a=i.useRef(null),[r,o]=i.useState(null);return i.useLayoutEffect(()=>{if(!n||!a.current)return;const{offsetWidth:s,offsetHeight:l}=a.current,c=window.innerWidth;let u=n.left+n.width/2-s/2,d=n.top-l-8;d<8&&(d=n.bottom+8),u=Math.max(8,Math.min(u,c-s-8)),o({left:u,top:d})},[n]),!n||e.length===0?null:Pt.createPortal(t.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:t.jsx("div",{className:"tooltip-word-image__cells",children:e.map(s=>t.jsx(Kb,{label:s.label,homonum:s.homonum},`${s.label}_${s.homonum??1}`))})}),document.body)}function Zb({titleIcon:e,resultCount:n,resultUnit:a,searchQuery:r,items:o,groups:s,selected:l=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:h,onPrintEmpty:p,className:m,emptyHint:g,sectionType:C="page",disc:f,notice:b}){const{t:y,i18n:w}=pe.useTranslation(),_=w.language?.startsWith("ko")??!1,{anchorRect:v,openAt:B,close:x}=da(),[A,M]=i.useState(null),k=i.useCallback(()=>{x(),M(null)},[x]);S0(k,!!A);const j=(r??"").trim(),H=/^[^,[\]\s]+$/.test(j)?j:"",R=H.length>0,[E,P]=i.useState("ganada"),[D,z]=i.useState("50"),[Z,Y]=i.useState(1),[J,S]=i.useState(R);J!==R&&(S(R),P(R?"match":"ganada"));const L=E==="match"&&!R?"ganada":E,$=i.useMemo(()=>[...R?[{value:"match",label:y("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:y("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:y("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:y("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:y("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:y("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:y("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[y,R]),F=i.useMemo(()=>["10","25","50","100"].map(ie=>({value:ie,label:y("wordSearch.pageSize",{count:Number(ie),defaultValue:`${ie}\uAC1C\uC529 \uBCF4\uAE30`})})),[y]),O=ie=>ie.words[0],X=i.useCallback((ie,ae)=>{const se=Ve=>O(Ve)?.label??"",Se=Ve=>O(Ve)?.syllables??[...se(Ve)].length,He=Ve=>{const Re=parseInt(O(Ve)?.grade??"",10);return Number.isFinite(Re)?Re:999};switch(L){case"match":{const Ve=[...H].length,Re=Ee=>Sm(se(Ee).slice(0,Ve),H)?0:1;return Re(ie)-Re(ae)||se(ie).localeCompare(se(ae),"ko")}case"ganada":return se(ie).localeCompare(se(ae),"ko");case"ganada_desc":return se(ae).localeCompare(se(ie),"ko");case"syllable":return Se(ie)-Se(ae)||se(ie).localeCompare(se(ae),"ko");case"syllable_desc":return Se(ae)-Se(ie)||se(ie).localeCompare(se(ae),"ko");case"grade":return He(ie)-He(ae)||se(ie).localeCompare(se(ae),"ko");case"grade_desc":return He(ae)-He(ie)||se(ie).localeCompare(se(ae),"ko");default:return 0}},[L,H]),I=i.useMemo(()=>o.slice().sort(X),[o,X]),U=Number(D)||10,q=i.useMemo(()=>(s??[]).flatMap(ie=>ie.items.slice().sort(X).map(ae=>({item:ae,label:ie.label}))),[s,X]),le=s?q.length:I.length,de=Math.max(1,Math.ceil(le/U)),Ce=Math.min(Z,de),ve=i.useMemo(()=>I.slice((Ce-1)*U,Ce*U),[I,Ce,U]),he=i.useMemo(()=>{if(!s)return null;const ie=q.slice((Ce-1)*U,Ce*U),ae=new Map;for(const{item:se,label:Se}of ie)ae.has(Se)||ae.set(Se,[]),ae.get(Se).push(se);return[...ae.entries()].map(([se,Se])=>({label:se,items:Se}))},[s,q,Ce,U]);i.useEffect(()=>{Y(1)},[E,D,le]);const T=le>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(Vt,{size:40,options:$,value:L,onChange:P,ariaLabel:y("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(Vt,{size:40,options:F,value:D,onChange:z,ariaLabel:y("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(ha,{page:Ce,totalPages:de,onChange:Y})]}):void 0,W=ie=>{c&&c(ie)},Q=n!==void 0&&a?t.jsxs(t.Fragment,{children:[y("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),y("wordSearch.resultTitleSuffix",{unit:_?Pm(a):a})]}):void 0,_e=n!==void 0&&n>0&&u!==void 0&&a?y("wordSearch.resultDisc",{unit:_?Fm(a):a,max:u,selected:l.length}):void 0,ue=f??(b?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"word-search-result-block__notice",children:b}),_e?t.jsx("span",{className:"word-search-result-block__disc",children:_e}):null]}):_e);return t.jsxs(Mn,{type:C,icon:e,title:Q,action:T,disc:ue,className:ye("word-search-result-block",m),children:[t.jsxs("div",{className:"word-search-result-block__inner",children:[(s?s.length===0:o.length===0)&&t.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[t.jsx("p",{className:"word-search-result-block__empty body-3",children:y("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&t.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),s?(he??[]).map(ie=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:ie.items.map(ae=>{const se=l.includes(ae.id);return t.jsx("div",{onMouseEnter:Se=>{B(Se.currentTarget),M(ae.words)},onMouseLeave:k,children:t.jsx(ne,{size:"word",align:"grid",label:ae.words.map(Se=>Se.label),subLabel:ae.words.map(Se=>Se.subLabel).filter(Boolean).length>0?ae.words.map(Se=>Se.subLabel):void 0,selected:se,onClick:()=>W(ae.id),minWidth:200})},ae.id)})})},ie.label)):t.jsx("div",{className:"word-search-result-block__items",children:ve.map(ie=>{const ae=l.includes(ie.id);return t.jsx("div",{onMouseEnter:se=>{B(se.currentTarget),M(ie.words)},onMouseLeave:k,children:t.jsx(ne,{size:"word",align:"grid",label:ie.words.map(se=>se.label),subLabel:ie.words.map(se=>se.subLabel).filter(Boolean).length>0?ie.words.map(se=>se.subLabel):void 0,selected:ae,onClick:()=>W(ie.id),minWidth:200})},ie.id)})}),A&&v&&t.jsx(Ol,{words:A,anchorRect:v})]}),de>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(ha,{page:Ce,totalPages:de,onChange:Y})}),(d||h)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[d&&t.jsx(ne,{size:"56",type:"bar",label:y("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),h&&t.jsx("div",{onClick:l.length===0?p:void 0,children:t.jsx(ne,{size:"56",type:"bar",variant:"main",label:y("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:h})})]})]})}function Yb(e,n){return n.map(a=>{const r=typeof a=="string"?a:a.label,o=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:o}})}function Xb({sections:e,selectedList:n,count:a,onCountChange:r,maxCount:o=4,minCount:s=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:h,title:p,titleIcon:m,disc:g,showInfoButton:C=!1,onClearPhoneme:f,onSearch:b,onSearchEmpty:y,searchDisabled:w=!1,searchLabel:_,searchChecking:v=!1,pairMode:B=!1,sectionType:x="page",beforeSearchContent:A,beforeContent:M,afterContent:k,hideCountControl:j=!1,ordinal:H=!1}){const{t:R}=pe.useTranslation(),E=i.useMemo(()=>R("wordPairs.infoNotes",{returnObjects:!0}),[R]),P=i.useMemo(()=>Array.from({length:o-s+1},(I,U)=>{const q=s+U;return{key:String(q),label:R("wordPairs.count",{n:q})}}),[R,o,s]),D=i.useMemo(()=>R("wordPairs.ordinals",{returnObjects:!0}),[R]),z=i.useCallback(I=>H?R("wordPairs.phonemeOrdinalLabel",{ordinal:D[I-1]??I}):a===1?R("wordPairs.phonemeSingleLabel","\uC74C\uC808"):R("wordPairs.phonemeN",{n:I}),[H,D,a,R]),Z=i.useCallback(I=>H?R("wordPairs.phonemeContrastOrdinalLabel",{ordinal:D[I-1]??I}):a===1?R("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):R("wordPairs.phonemeContrast",{n:I}),[H,D,a,R]),Y=i.useCallback((I,U)=>U?t.jsxs(t.Fragment,{children:[I,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):I,[]),{anchorRect:J,toggleAt:S,close:L}=da(),$=i.useCallback(I=>r(Number(I)),[r]),F=Xt("(max-width: 767px)"),O=i.useCallback(I=>Yb(I,e).map(({label:U,value:q,displayLabel:le})=>{const de=!!q&&q!=="\uC5C6\uC74C";return t.jsxs("span",{className:ye("phoneme-select-block__cell-jamo-part",q?"":"phoneme-select-block__cell-jamo-part--empty",de?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[t.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${q==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:q==="\uC5C6\uC74C"?"x":q||d}),de&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:le??U})]},U)}),[e,d]),X=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(ne,{size:40,type:F?"dot":void 0,icon:"info",label:F?void 0:R("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!J,onClick:I=>S(I.currentTarget)})}),J&&t.jsx(_n,{title:R("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:E,anchorRect:J,onClose:L})]});return t.jsxs(Mn,{type:x,title:p,icon:m,disc:g,action:X,className:ye("phoneme-select-block",h),children:[M,(!j||C&&!(p||g))&&t.jsxs("div",{className:"phoneme-select-block__controls",children:[!j&&t.jsx(An,{options:P,value:String(a),onChange:$,size:40,className:"phoneme-select-block__count-control"}),C&&!(p||g)&&X]}),t.jsx("div",{className:"phoneme-select-block__cells",children:B?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((I,U)=>{const q=n[U*2]??{};return t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:O(q)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:z(U+1)})]},U)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:R("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((I,U)=>{const q=n[U*2+1]??{};return t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:O(q)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:Z(U+1)})]},U)})})]}):n.map((I,U)=>t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:O(I)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:z(U+1)})]},U))}),(l||c)&&t.jsx("div",{className:"phoneme-select-block__panels",children:t.jsx("div",{className:"phoneme-select-block__detail",children:B?t.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((I,U)=>{const q=n[U*2]??{};return t.jsx(nn,{title:Y(z(U+1),U===0),sections:c?c(q,U*2):l,selected:q,onSelect:u?.(U*2),align:"newline"},U)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((I,U)=>{const q=n[U*2+1]??{};return t.jsx(nn,{title:Z(U+1),sections:c?c(q,U*2+1):l,selected:q,onSelect:u?.(U*2+1),align:"newline"},U)})})]}):n.map((I,U)=>t.jsx(nn,{title:Y(z(U+1),U===0),sections:c?c(I,U):l,selected:I,onSelect:u?.(U),align:"newline"},U))})}),A&&t.jsx("div",{className:"phoneme-select-block__before-search",children:A}),(f||b||v)&&(()=>{const I=n.every(U=>Object.entries(U).every(([q,le])=>!le||q==="\uC885\uC131"&&le==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:I?y:void 0,children:[f&&t.jsx(ne,{size:"56",type:"bar",label:R("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:I,onClick:I?void 0:f}),v?t.jsxs("div",{className:"phoneme-select-block__checking",children:[t.jsx("div",{className:"phoneme-select-block__spinner"}),t.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:_??R("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):b&&t.jsx(ne,{size:"56",type:"bar",variant:"main",label:_??R("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:I||w,onClick:I||w?void 0:b})]})})(),k]})}function Jb({title:e,sections:n,selected:a,onSelect:r,className:o}){const{t:s}=pe.useTranslation();return t.jsx(nn,{className:o,title:e??s("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:n,selected:a,onSelect:r,align:"inline"})}function Qb({title:e,headerAction:n,sections:a,selected:r,onSelect:o,className:s}){const{t:l}=pe.useTranslation();return a.length===0?null:t.jsx(nn,{className:s,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:n,sections:a,selected:r,onSelect:o,align:"newline"})}function e5({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:o,positionCount:s,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){const{t:h}=pe.useTranslation(),p={searchMode:h("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:h("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:h("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:h("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:h("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:h("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:h("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:h("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:h("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:h("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:h("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},m=b=>h("wordPairs.count",{n:b}),g=[{label:p.searchMode,items:[p.include,p.pick,p.explicit],display:"segmented",labelAction:t.jsx(Jn,{title:h("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[h("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."),h("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."),h("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:t.jsx(Jn,{items:h("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:p.count,items:[m(1),m(2)],display:"segmented"},{label:p.inputMode,items:[p.charInput,p.pronInput],display:"segmented",labelAction:t.jsx(Jn,{title:h("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[h("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."),h("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.")]})}],C={[p.searchMode]:n==="explicit"?p.explicit:n==="pick"?p.pick:p.include,[p.phonemeOrder]:r==="ordered"?p.orderMatch:p.orderAny,[p.count]:m(s),[p.inputMode]:c==="phoneme"?p.pronInput:p.charInput},f=(b,y)=>{y===p.searchMode?a(b===p.explicit?"explicit":b===p.pick?"pick":"include"):y===p.phonemeOrder?o(b===p.orderMatch?"ordered":"unordered"):y===p.count?l(b===m(2)?2:1):y===p.inputMode&&u(b===p.pronInput?"phoneme":"word")};return t.jsx(nn,{className:d,title:e??h("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:C,onSelect:f,align:"inline"})}function t5(e){const{title:n,items:a,columns:r,gridTemplateColumns:o,searchPlaceholder:s,searchFn:l,defaultSortKey:c,defaultSortAsc:u=!0,selectedId:d,selectedIds:h,onSelect:p,onClose:m,pageSizeOptions:g=[10,25,50,100],initialPageSize:C,emptyText:f,countLabel:b,topContent:y,className:w=""}=e,{t:_}=pe.useTranslation(),v=s??_("common.search","\uAC80\uC0C9"),B=f??_("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[x,A]=i.useState(""),[M,k]=i.useState(c??r[0]?.key??""),[j,H]=i.useState(u),[R,E]=i.useState(String(C??g[0]??10)),[P,D]=i.useState(1);i.useEffect(()=>{D(1)},[x,R]);const z=l!==null,Z=i.useCallback((I,U)=>{if(!U)return!0;const q=U.toLowerCase();return r.some(le=>{const de=I[le.key];return de==null?!1:String(de).toLowerCase().includes(q)})},[r]),Y=l??Z,J=i.useMemo(()=>{const I=z?a.filter(U=>Y(U,x)):a;return M?[...I].sort((U,q)=>{const le=U[M]??"",de=q[M]??"";if(le===de)return 0;const Ce=E4(le,de);return j?Ce:-Ce}):I},[a,x,M,j,z,Y]),S=Math.max(1,Math.ceil(J.length/Number(R))),L=J.slice((P-1)*Number(R),P*Number(R)),$=i.useCallback(I=>{M===I?H(U=>!U):(k(I),H(!0))},[M]),F=i.useMemo(()=>{if(typeof b=="string"&&b.includes("{n}")){const[I,U]=b.split("{n}");return{prefix:I,suffix:U}}return{prefix:_("common.totalCountPrefix","\uCD1D "),suffix:_("common.totalCountSuffix","\uAC1C")}},[b,_]),O=i.useMemo(()=>r.map(I=>({label:I.label,onClick:I.sortable!==!1?()=>$(I.key):void 0,className:I.className,sortDir:I.sortable!==!1&&M===I.key?j?"asc":"desc":null})),[r,M,j,$]),X=i.useMemo(()=>g.map(I=>({value:String(I),label:_("common.pageSizeLabel",{n:I})})),[g,_]);return t.jsxs(pn,{className:`popup-list ${w}`,title:n,onClose:m,children:[y,t.jsx(ir,{count:{value:J.length,prefix:F.prefix,suffix:F.suffix},search:z?{value:x,onChange:A,placeholder:v}:void 0,pageSize:{options:X,value:R,onChange:E},pagination:{page:P,total:S,onChange:D}}),t.jsx(hr,{size:"medium",gridTemplateColumns:o,resizable:!0,fields:O,items:L,onRowClick:p,renderRow:I=>{const U=h!=null?I.id!=null&&h.has(I.id):d!=null&&I.id===d;return r.map(q=>({content:q.render?q.render(I):I[q.key]??"",className:U?"popup-list__row--selected":q.className}))},empty:B})]})}function n5(e){const{title:n,message:a,topContent:r,details:o,children:s,confirmLabel:l,cancelLabel:c,hideCancel:u=!1,extraAction:d,confirmVariant:h="main",confirmDisabled:p=!1,onConfirm:m,closeOnConfirm:g=!0,onClose:C,inline:f,size:b="small",className:y}=e,{t:w}=pe.useTranslation(),_=i.useRef(!1),[v,B]=i.useState(!1);return t.jsxs(pn,{title:n,onClose:C,closeDisabled:v,inline:f,size:b,className:ye("confirm-popup",y),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||v,onClick:async({closeWithAnimation:x})=>{if(!_.current){_.current=!0,B(!0);try{await d.onClick(x),(d.closeOnClick??!0)&&x()}finally{_.current=!1,B(!1)}}}}]:[],...u?[]:[{label:c??w("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:v,onClick:({closeWithAnimation:x})=>x()}],{label:l??w("common.confirm","\uD655\uC778"),variant:h,disabled:p||v,onClick:async({closeWithAnimation:x})=>{if(!_.current){_.current=!0,B(!0);try{await m(x),g&&x()}finally{_.current=!1,B(!1)}}}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),o&&o.length>0&&t.jsx(_a,{children:o.map((x,A)=>t.jsx(hn,{label:x.label,children:t.jsx("span",{className:"panel-row__text body-2",children:x.value})},A))}),t.jsx("p",{className:"body-2 confirm-popup__message",children:a}),s]})}function a5({onApply:e,onCancel:n}){const{t:a}=pe.useTranslation(),[r,o]=i.useState(""),[s,l]=i.useState(!1),[c,u]=i.useState(null),d=i.useRef(null);i.useEffect(()=>{d.current?.focus()},[]);const h=i.useCallback(async g=>{const C=r.trim();if(C){l(!0),u(null);try{await e(C),g()}catch(f){u(Jo(f)),l(!1)}}},[r,e]),p=i.useCallback((g,C)=>{g.key==="Enter"&&h(C)},[h]),m=g=>{o(g.target.value),u(null)};return t.jsx(pn,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:n,closeDisabled:s,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:s,onClick:({closeWithAnimation:g})=>g()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||s,onClick:({closeWithAnimation:g})=>{h(g)}}],children:({closeWithAnimation:g})=>t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:m,onKeyDown:C=>p(C,g),disabled:s,autoComplete:"off",spellCheck:!1}),c&&t.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const r5=200;function o5(e){return e.itemId?(r0()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function s5({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:o}=pe.useTranslation(),s=i.useMemo(()=>o0.map(c=>({type:c,items:(e.items??[]).filter(u=>u.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items]);if(s.length===0)return null;const l=t.jsx("div",{className:"tooltip-training__box",children:t.jsx("div",{className:"tooltip-training__groups",children:s.flatMap(({type:c,items:u},d)=>[d>0?t.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,t.jsxs("div",{className:"tooltip-training__section",children:[t.jsx("div",{className:"tooltip-training__section-header",children:t.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),t.jsx("div",{className:"tooltip-training__items",children:u.map((h,p)=>{const m=o5(h);return m?t.jsx(mr,{index:p,type:c,trainingData:m,size:"compact",hideCheckBadge:!0},h.itemId??p):null})})]},c.key)])})});return n?t.jsx(ln,{anchorRect:n,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:o("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const Hl=["var(--color-main)","var(--color-sub)"];function Vl({active:e=!1,count:n=40,duration:a=2e3,strength:r=1,onComplete:o,trigger:s=0}){const l=i.useMemo(()=>{const f=Math.floor(n/2),b=n-f,y=(w,_)=>Array.from({length:w}).map((v,B)=>{const x=6+Math.random()*12,A=Math.round(Math.min(18,x*Math.min(1.5,1+r*.4))),M=Hl[Math.floor(Math.random()*Hl.length)],k=Math.random()*300,j=(360+Math.random()*260)*r*1.2,H=(_==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,R=Math.cos(H)*j,E=Math.sin(H)*j*1.35,P=Math.random()*720-360,D=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),z=Math.random()>.7?"50%":"3px";return{id:`${_}-${B}`,side:_,size:A,color:M,delay:k,vx:R,vy:E,angularVel:P,life:D,borderRadius:z}});return[...y(f,"left"),...y(b,"right")]},[n,r]),c=i.useRef(null),u=i.useRef({}),d=i.useRef(null),h=i.useRef(o);i.useEffect(()=>{h.current=o},[o]);const p=i.useRef(null),m=i.useRef(null),g=()=>{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"&&m.current==null&&(m.current=g()),i.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){h.current?.();return}const f=1200,b=performance.now(),y=m.current&&m.current!==document.body?m.current.getBoundingClientRect():null,w=Math.max(60,(window.innerHeight||800)*.05),_=S=>Math.max(40,(S||window.innerWidth)*.02),v=y?.width||window.innerWidth||375,B=y?.height||window.innerHeight||812,x=S=>{const L=[...S].sort(($,F)=>$-F);return L[Math.floor(L.length/2)]||1},A=x(l.map(S=>Math.abs(S.vy))),M=x(l.map(S=>Math.abs(S.vx))),k=Math.sqrt(2*f*(B*.72+w))/A,j=A*k/f,H=v*.5/(M*j),R=(S,L,$)=>Math.min($,Math.max(L,S)),E=R(k,.8,2.4),P=R(H,.7,2.2),D=l.map(S=>({...S,vx:S.vx*P,vy:S.vy*E,startTime:b+S.delay,ended:!1})),z=y?{x:y.left-_(y.width),y:y.top+y.height+w}:{x:-_(window.innerWidth),y:window.innerHeight+w},Z=y?{x:y.left+y.width+_(y.width),y:y.top+y.height+w}:{x:window.innerWidth+_(window.innerWidth),y:window.innerHeight+w},Y=S=>{let L=!1;for(const $ of D){const F=u.current[$.id];if(!F||!F)continue;if(S<$.startTime){F.style.display="none";continue}if(!$._inited){const he=$.side==="left"?z.x:Z.x,T=$.side==="left"?z.y:Z.y;F.style.left=`${he}px`,F.style.top=`${T}px`,F.style.transform="translate3d(0px, 0px, 0)",F.style.display="block",F.style.zIndex="100000";try{if(typeof window<"u"&&typeof $.color=="string"&&$.color.startsWith("var(")){const W=$.color.slice(4,-1).trim(),Q=getComputedStyle(document.documentElement).getPropertyValue(W).trim();Q?F.style.background=Q:F.style.background="#FF0060"}}catch{}$._inited=!0}const O=(S-$.startTime)/1e3;if(O<0)continue;const X=$.life/1e3;if(O>=X){F.style.opacity="0",F.style.display="none",$.ended=!0;continue}L=!0;const I=$.side==="left"?z.x:Z.x,U=$.side==="left"?z.y:Z.y,q=I+$.vx*O,le=U+$.vy*O+.5*f*O*O,de=($.angularVel||0)*O,Ce=q-I,ve=le-U;F.style.transform=`translate3d(${Ce}px, ${ve}px, 0) rotate(${de}deg)`,F.style.opacity=`${Math.max(0,1-O/X)}`}L?d.current=requestAnimationFrame(Y):h.current?.()};d.current=requestAnimationFrame(Y);const J=setTimeout(()=>{try{if((m.current?m.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const S=document.createElement("div");S.className="party-container",S.style.position="fixed",S.style.inset="0",S.style.pointerEvents="none",S.style.overflow="visible",S.style.zIndex="2147483647";for(const L of l){const $=document.createElement("span");$.className=`confetti confetti--${L.side}`,$.setAttribute("aria-hidden","true"),$.style.display="none",$.style.position="fixed",$.style.left="0px",$.style.top="0px",$.style.width=`${L.size}px`,$.style.height=`${Math.max(4,L.size*.6)}px`;let F=L.color;try{if(typeof F=="string"&&F.startsWith("var(")){const O=F.slice(4,-1).trim(),X=getComputedStyle(document.documentElement).getPropertyValue(O).trim();X&&(F=X)}}catch{}$.style.background=F,$.style.borderRadius=L.borderRadius,$.style.transform="translate3d(0,0,0)",$.style.opacity="0",S.appendChild($),u.current[L.id]=$}(document.body||m.current).appendChild(S),p.current=S}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(J),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,a,s,l]),!e)return null;const C=t.jsx("div",{className:"party-container",ref:c,children:l.map(f=>t.jsx("span",{"aria-hidden":!0,ref:b=>{u.current[f.id]=b},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"?Pt.createPortal(C,m.current||document.body):C}function i5({trigger:e=0,active:n=!1}){const a=i.useRef(0);return i.useEffect(()=>{a.current=e},[e]),t.jsx(Vl,{active:n,trigger:e})}function l5({title:e,sub:n,rightAction:a,titleAction:r,badge:o,badgeVariant:s="default",documentTitle:l,onBack:c,backLabel:u}){const{t:d}=pe.useTranslation();b0(typeof e=="string"?e:l??null);const h=u??d("common.back","\uB4A4\uB85C");return t.jsxs("div",{className:"page-title",children:[t.jsxs("div",{className:"page-title__main",children:[t.jsxs("div",{className:"page-title__title-row",children:[c&&t.jsx(ne,{className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:h,showTooltipInfo:h,onClick:c}),t.jsx("h1",{className:"page-title__title h1",children:e}),o&&t.jsx("div",{className:"page-title__badge",children:t.jsx(lt,{label:o,size:"small",variant:s,fill:"outline"})}),r?t.jsx("div",{className:"page-title__title-action",children:r}):null]}),n&&t.jsx("p",{className:"page-title__sub body-2",children:n})]}),a?t.jsx("div",{className:"page-title__action",children:a}):null]})}function c5(e){return e??""}const zl=i.createContext({words:[],loading:!1});function u5(){return i.useContext(zl)}function d5({words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:s,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return t.jsx(zl.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:s,progress:l,clearAndRefetch:c,checkRemoteVersion:u},children:d})}function p5({items:e,actions:n,columns:a,flat:r=!1,className:o,style:s}){const l=a??e.length;return t.jsx("section",{className:ye("summary-strip",r&&"summary-strip--flat",o),style:{"--summary-strip-cols":String(l),...s},children:t.jsxs("div",{className:"summary-strip__row",children:[t.jsx("div",{className:"summary-strip__items",children:e.map((c,u)=>t.jsxs("div",{className:"summary-strip__item",children:[t.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),t.jsx("p",{className:"summary-strip__value body-3b",children:c.value})]},u))}),n&&t.jsx("div",{className:"summary-strip__actions",children:n})]})})}const h5=(e,n)=>`${e} / ${n}`;function m5({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:o=h5,pageWidth:s,pageHeight:l,margin:c,className:u,style:d}){const{t:h}=pe.useTranslation(),p=i.useRef(null),m=i.useRef(null),g=i.useRef(null),C=i.useRef(null),[f,b]=i.useState(null),[y,w]=i.useState(!1);i.useEffect(()=>{const j=p.current;if(!j)return;const H=()=>w(j.scrollWidth>j.clientWidth+1);if(H(),typeof ResizeObserver>"u")return;const R=new ResizeObserver(H);return R.observe(j),()=>R.disconnect()},[f]);const _=e.map(j=>`${j.id}\0${j.section??""}\0${j.group??""}`).join("");i.useLayoutEffect(()=>{const j=m.current,H=C.current;if(!j||!H)return;const R=g.current?.offsetHeight??0,E=H.offsetHeight-R,P=Array.from(j.children).map(S=>S.offsetHeight),D=[];e.forEach((S,L)=>{const $=D[D.length-1],F=$?e[$[0]]:void 0;F&&S.group!=null&&F.group===S.group?$.push(L):D.push([L])});const z=[];let Z=[],Y=0;const J=()=>{Z.length&&z.push(Z),Z=[],Y=0};D.forEach(S=>{const L=S.reduce(($,F)=>$+P[F],0);Z.length&&e[Z[0]].section!==e[S[0]].section&&J(),Z.length&&Y+L>E&&J(),L>E?S.forEach($=>{Z.length&&Y+P[$]>E&&J(),Z.push($),Y+=P[$]}):(S.forEach($=>Z.push($)),Y+=L)}),J(),b(z)},[_]);const v=sr,B=v,x=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:B,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),A=(j,H,R)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:R!=null&&n?.[R]||null}),a]}),footer:t.jsxs("div",{className:"report-doc__footer caption-1",children:[t.jsx("span",{className:"report-doc__footer-left",children:x}),t.jsx("span",{className:"report-doc__page-no",children:o(j,H)})]})}),M=A(1,1,e[0]?.section),k={...s?{"--report-page-w":s}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...d};return t.jsxs("div",{ref:p,className:ye("report-doc",u),style:k,tabIndex:y?0:void 0,role:y?"group":void 0,"aria-label":y?h("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[t.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[t.jsx("div",{ref:C,className:"report-doc__ruler"}),t.jsxs("div",{ref:g,children:[M.header,M.footer]}),t.jsx("div",{ref:m,className:"report-doc__measure-blocks",children:e.map(j=>t.jsx("div",{children:j.content},j.id))})]}),f&&t.jsx("div",{className:"report-doc__pages",children:f.map((j,H)=>{const{header:R,footer:E}=A(H+1,f.length,e[j[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[R,j.map(P=>t.jsx("div",{children:e[P].content},e[P].id)),E]},H)})})]})}function f5({title:e,fields:n,columns:a=4,className:r,style:o}){return t.jsxs("div",{className:ye("report-info",r),style:{"--report-info-cols":String(a),...o},children:[e&&t.jsx("p",{className:"report-info__title h5b",children:e}),t.jsx("div",{className:"report-info__grid",children:n.map((s,l)=>t.jsxs("div",{className:"report-info__field body-2",children:[t.jsx("span",{className:"report-info__label body-3",children:s.label}),t.jsx("span",{className:"report-info__value",children:s.value})]},l))})]})}function C5({title:e,message:n,actionLabel:a,onAction:r,icon:o,onClose:s,className:l=""}){const{t:c}=pe.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return t.jsxs("div",{className:ye("update-alert",l),role:"alert",children:[s&&t.jsx("button",{type:"button",className:"update-alert__close",onClick:s,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),t.jsxs("div",{className:"update-alert__top",children:[t.jsx("div",{className:"update-alert__icon",children:o??t.jsx(ro,{size:20,strokeWidth:2})}),t.jsxs("div",{className:"update-alert__body",children:[t.jsx("div",{className:"update-alert__title h4",children:e}),t.jsx("div",{className:"update-alert__message body-3",children:n})]})]}),r&&t.jsx(ne,{size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:u})]})}function g5({title:e,description:n,topActions:a,children:r,footerLeft:o,footerRight:s,onClick:l,draggable:c,onDragStart:u,onDragEnd:d,className:h}){const p=o!=null||s!=null,m=r!=null&&r!==!1,g=i.useCallback(C=>{l&&C.target===C.currentTarget&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),l())},[l]);return t.jsxs("div",{className:ye("training-card",l?"training-card--clickable":"",h),onClick:l,onKeyDown:l?g:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:c,onDragStart:u,onDragEnd:d,children:[t.jsxs("div",{className:"training-card__header",children:[t.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?t.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&t.jsx("div",{className:"training-card__top-actions",onClick:C=>C.stopPropagation(),children:a})]}),n!=null?typeof n=="string"?t.jsx("p",{className:"training-card__description body-3",children:n}):n:t.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),m&&t.jsx("div",{className:"training-card__body",children:r}),p&&t.jsxs("div",{className:"training-card__footer",children:[o!=null&&t.jsx("div",{className:"training-card__footer-left",children:o}),s!=null&&t.jsx("div",{className:"training-card__meta",children:s})]})]})}function b5({title:e,count:n,collapsed:a=!1,onToggle:r,sort:o,actions:s,empty:l=!1,emptyContent:c,dragOver:u=!1,onDragOver:d,onDragLeave:h,onDrop:p,children:m,className:g}){const{t:C}=pe.useTranslation(),f=r!=null,b=ye("training-card-group",u&&"training-card-group--dragover",a&&"training-card-group--collapsed",f&&"training-card-group--collapsible",g);return t.jsxs("div",{className:b,onDragOver:d,onDragLeave:h,onDrop:p,children:[t.jsxs("header",{className:"training-card-group__header",children:[f&&t.jsx(ne,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?C("common.expand","\uD3BC\uCE58\uAE30"):C("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron",onClick:r}),typeof e=="string"?t.jsx("span",{className:"training-card-group__title h5b",children:e}):e,n!==void 0&&t.jsx("span",{className:"training-card-group__count body-3b",children:n}),(o||s!=null)&&t.jsxs("span",{className:"training-card-group__actions",onClick:y=>y.stopPropagation(),children:[o&&t.jsx(Vt,{size:40,options:o.options,value:o.value,placeholder:o.placeholder,onChange:o.onChange}),s]})]}),!a&&(l?t.jsx("div",{className:"training-card-group__empty body-3",children:c}):t.jsx("div",{className:"training-card-group__grid",children:m}))]})}const y5="speechear:saved_word_tables";function v5(e){if(typeof e!="object"||e===null)return!1;const n=e;return typeof n.id=="string"&&typeof n.name=="string"&&Array.isArray(n.items)}function x5(){try{const e=localStorage.getItem(y5);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(v5):[]}catch{return[]}}function _5({title:e,titleIcon:n,disc:a,items:r,onSaveComplete:o,onLoad:s,onRemoveItem:l,onReset:c,resetLabel:u,saveButtonLabel:d,secondarySaveButtonLabel:h,onReorder:p,showCellCount:m,onAddItem:g,className:C,renderSavePopup:f,renderWordSearch:b,hideControls:y,saveOnly:w,tableName:_,nameValue:v,onNameChange:B,descriptionValue:x,onDescriptionChange:A,namePlaceholder:M,descriptionPlaceholder:k,existingNames:j,editingName:H,onCancel:R}){const{t:E}=pe.useTranslation(),P=u??E("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),D=r===void 0,z=!!B,[Z,Y]=i.useState([]),J=(v??"").trim(),S=J||(M??"").trim(),L=(x??"").trim()||(k??"").trim(),$=(j??[]).map(ee=>ee.trim().toLowerCase()),F=[H?.trim().toLowerCase(),...Z].filter(ee=>!!ee),O=[...$];for(const ee of F){const ke=O.indexOf(ee);ke!==-1&&O.splice(ke,1)}const X=J!==""&&O.includes(J.toLowerCase()),[I,U]=i.useState(Array(4).fill(null)),[q,le]=i.useState(4),[de,Ce]=i.useState(null),[ve,he]=i.useState("landscape"),[T,W]=i.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[Q,_e]=i.useState("\uD45C\uC2DC"),[ue,ie]=i.useState(!0),[ae,se]=i.useState(!0),Se=i.useRef(null),He=i.useRef([]),[Ve,Re]=i.useState(8),[Ee,je]=i.useState("right"),[Ae,ze]=i.useState(!1),[at,ge]=i.useState(!1),{toastMessage:Pe,toastType:$e,showWarning:Ke,clearToast:Ze}=qs("warning"),Ue=i.useCallback(()=>Ce(null),[Ce]),[Ie,dt]=i.useState(()=>Math.max(r?.length??1,1));i.useEffect(()=>{D||dt(ee=>Math.max(ee,r?.length??1))},[r?.length,D]);const ct=D?q:m?Math.max(Ie,r?.length??1):Math.max(r?.length??0,1),{width:qe,height:ot}=$n[ve],Te=!D&&!m,Me=r?.length??0,tt=Math.min(Ve,Math.max(Me,1)),ft=Te?tt:ct,Ye=Te?Vi(r??[],ft):null,Xe=!!Ye&&Ye.length>1,ht=D?I.some(ee=>ee!==null&&ee.length>1):(r??[]).some(ee=>ee.words.length>1),Et=_?.trim()||`${ns(Ym())} ${ht?E("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):E("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,Qe=i.useCallback(()=>Xe?He.current.filter(ee=>ee!==null):Se.current?[Se.current]:[],[Xe]),{print:vt,openNewWindow:Tt,downloadHtml:Gt}=_r({getElements:Qe,paperW:qe,paperH:ot,fileName:Et,onPopupBlocked:()=>{Ke(E("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."))}}),an=ee=>{le(ee),U(ke=>{const Fe=Array(ee).fill(null);return ke.slice(0,ee).forEach((et,Ct)=>{Fe[Ct]=et}),Fe}),Ce(null)},It=ee=>{U(ke=>{const Fe=[...ke];return Fe[ee]=null,Fe}),de===ee&&Ce(null)},zt=ee=>{if(de===null)return;const ke=de;U(et=>{const Ct=[...et];return Ct[ke]=ee,Ct});const Fe=I.findIndex((et,Ct)=>Ct>ke&&et===null);Ce(Fe!==-1?Fe:null)},Wt=D?I.some(ee=>ee?.some(ke=>!!ke.colloquialPronunciation)):(r??[]).some(ee=>ee.words.some(ke=>!!ke.colloquialLabel)),xt=i.useMemo(()=>Dn()?D?I.flatMap(ee=>(ee??[]).map(ke=>[ke.word,ke.homonum])):(r??[]).flatMap(ee=>ee.words.map(ke=>[ke.label,ke.homonum])):[],[D,I,r]),[fn,_t]=i.useState(!1);i.useEffect(()=>{if(xt.length===0)return;let ee=!1;return Promise.all(xt.map(([ke,Fe])=>Ko(ke,Fe))).then(ke=>{ee||_t(ke.some(Boolean))}),()=>{ee=!0}},[xt]);const Cn=xt.length>0&&fn,Kt=i.useMemo(()=>[...D||m?[{label:E("wordTable.filter.columns","\uCE78 \uC218"),items:y4.map(ee=>({value:`${ee}\uCE78`,displayLabel:E("wordTable.filter.column",{count:ee})})),display:"segmented"}]:[],...Te&&(r?.length??0)>0?[Qi(E,{hasPairs:ht,itemCount:Me})]:[],...Xe?[el(E)]:[]],[E,D,m,Te,r?.length,ht,Me,Xe]),Ge={...D||m?{[E("wordTable.filter.columns","\uCE78 \uC218")]:`${D?q:Ie}\uCE78`}:{},...Te&&(r?.length??0)>0?{[E(ht?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${tt}\uAC1C`}:{},...Xe?{[E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:tl[Ee]}:{}},Mt=(ee,ke)=>{ke===E("wordTable.filter.columns","\uCE78 \uC218")?D?an(parseInt(ee)):dt(parseInt(ee)):ke===E(ht?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Re(parseInt(ee)):ke===E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&je(nl(ee))},wt=D?I.filter(ee=>ee!==null).map(ee=>({id:ee[0].word,words:ee.map(ke=>({label:ke.word,subLabel:ke.pronunciation,homonum:ke.homonum}))})):r??[],Zt=(ee=!1)=>{if(ge(ee),z&&o){const ke=S.trim().toLowerCase();ke&&Y(Fe=>Fe.includes(ke)?Fe:[...Fe,ke]),o(S,wt,L||void 0,ee);return}if(w&&o){o("",wt,void 0,ee);return}if(o){ze(!0);return}Gt()},[Ft,Lt]=i.useState(!1),[qt,oe]=i.useState(""),me=qt.trim(),fe=me!==""&&$.includes(me.toLowerCase()),Ne=()=>{oe(S?`${S} (\uBCF5\uC0AC)`:""),Lt(!0)},K=()=>{!me||fe||!o||(o(me,wt,L||void 0,!0),Lt(!1))},te=wt.length===0,be=te||z&&(S===""||X),xe=()=>{if(te){Ke(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(z&&S===""){Ke(E("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}z&&X&&Ke(E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},De=t.jsx(Rn,{items:wt,orientation:ve,contentTypes:T,cutLine:Q,showOutline:ue,showDivLine:ae,count:ct});return t.jsxs(t.Fragment,{children:[t.jsxs(Mn,{type:"page",icon:n,title:e,disc:a,className:ye("word-table-block",C),children:[Ft&&t.jsx(pn,{size:"small",title:h??E("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>Lt(!1),footer:({closeWithAnimation:ee})=>t.jsxs(t.Fragment,{children:[t.jsx(ne,{size:48,type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:ee}),t.jsx(ne,{size:48,type:"bar",variant:"main",label:E("common.save","\uC800\uC7A5"),disabled:!me||fe,onClick:K})]}),children:t.jsx(kn,{label:E("wordTable.save.nameLabel","\uC774\uB984"),value:qt,onChange:oe,placeholder:E("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:K,error:fe?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Ae&&o&&f?.({defaultName:typeof e=="string"?e:E("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:De,previewW:qe,previewH:ot,items:wt,existingNames:x5().map(ee=>ee.name),saveAsNew:at,onSave:(ee,ke)=>{o(ee,wt,ke,at),ze(!1)},onCancel:()=>ze(!1)}),(D||g)&&de!==null&&b?.({cellIndex:de,onConfirm:D?zt:ee=>{if(g){const ke=ee[0];ke&&g({id:ke.word,words:[{label:ke.word,subLabel:ke.pronunciation,homonum:ke.homonum}]})}Ce(null)},onClose:Ue}),!y&&t.jsx(yr,{hasImage:Cn,hasColloquial:Wt,contentTypes:T,orientation:ve,showOutline:ue,cutLine:Q,showDivLine:ae,setters:{setContentTypes:W,setOrientation:he,setShowOutline:ie,setCutLine:_e,setShowDivLine:se},showCutLine:(Te?ft:ct)>1,showDivLine2:ht,middleSections:Kt,extraSelected:Ge,onExtraSelect:Mt}),Xe&&Ye?t.jsx("div",{className:"word-table-block__pages",children:Ye.map((ee,ke)=>t.jsx(Rn,{orientation:ve,contentTypes:T,cutLine:Q,showOutline:ue,showDivLine:ae,count:ft,items:ee,onRemoveItem:l,contentRef:Fe=>{He.current[ke]=Fe},pageNumber:{current:ke+1,total:Ye.length},pageNumberPosition:Ee},ke))}):t.jsx(Rn,{orientation:ve,contentTypes:T,cutLine:Q,showOutline:ue,showDivLine:ae,count:ct,items:D?void 0:r??[],editCells:D?I:void 0,activeCell:de,onActivateCell:D||g?Ce:void 0,onRemoveCell:D?It:void 0,onRemoveItem:D?void 0:l,onReorder:D?void 0:p,showFillerAdd:!!g,contentRef:Se}),z&&!y&&t.jsxs(_a,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[t.jsx(hn,{variant:"custom",label:E("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:t.jsx(kn,{required:!0,value:v??"",onChange:B,placeholder:M?M+E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):E("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:E("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:X?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:ee=>{(ee.key==="Tab"&&!ee.shiftKey||ee.key===" ")&&!(v??"").trim()&&(M??"").trim()&&(ee.preventDefault(),B?.(M??""))}})}),t.jsx(hn,{variant:"custom",label:E("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(kn,{value:x??"",onChange:A,placeholder:k?k+E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):E("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:E("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:ee=>{(ee.key==="Tab"&&!ee.shiftKey||ee.key===" ")&&!(x??"").trim()&&(k??"").trim()&&(ee.preventDefault(),A?.(k??""))}})})]})]}),!y&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!w&&c&&t.jsx(ne,{size:40,type:"bar",label:P,onClick:c}),!w&&s&&t.jsx(ne,{size:40,type:"bar",label:E("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:s}),!w&&t.jsx(ne,{size:40,type:"bar",label:E("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Tt})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[R&&t.jsx(ne,{size:"56",type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:R}),!w&&t.jsx(ne,{size:"56",type:"bar",label:E("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:vt}),h&&t.jsx(ne,{size:"56",type:"bar",label:h,onClick:()=>z?Ne():Zt(!0),disabled:te,onDisabledClick:()=>{Ke(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),t.jsx(ne,{size:"56",type:"bar",variant:"main",label:d??E("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Zt(!1),disabled:be,onDisabledClick:xe})]})]}),t.jsx(Tn,{message:Pe,type:$e,onClose:Ze})]})}function Wl({items:e,className:n}){const a=e.length,r=a<=3?1:2,o=Math.ceil(a/r)||1,s=r*o;return t.jsx("div",{className:ye("word-table-thumb",n),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:s},(l,c)=>{const u=e[c];return u?t.jsx("div",{className:"word-table-thumb__cell",children:(u.words.length?u.words:[{label:u.id}]).map((d,h)=>t.jsxs(i.Fragment,{children:[h>0&&t.jsx("span",{className:"word-table-thumb__divider"}),t.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},h))},c):t.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function w5({items:e,name:n,description:a,createdAt:r,published:o,publishedLabel:s,shared:l,sharedLabel:c,isNew:u,publisherName:d,publishedAt:h,likeCount:p,downloadCount:m,onPublisherClick:g,selected:C,onClick:f,onMore:b,titleNode:y,className:w}){const{t:_}=pe.useTranslation(),v=y!=null,B=d!=null||h!=null||p!=null||m!=null,x=A=>{!v&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),f?.())};return t.jsxs("div",{className:ye("word-table-button",C?"word-table-button--selected":"",B?"":"word-table-button--no-footer",w),role:"button",tabIndex:0,"aria-label":n,onClick:v?void 0:f,onKeyDown:x,children:[u&&t.jsx("span",{className:"word-table-button__new-dot","aria-label":_("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),t.jsx(Wl,{items:e,className:"word-table-button__thumb"}),t.jsxs("div",{className:"word-table-button__info",children:[t.jsxs("div",{className:"word-table-button__info-text",children:[y??t.jsx("div",{className:"word-table-button__title h4",children:n}),a&&t.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),b&&!v&&t.jsx(ne,{className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:_("common.moreFor",{name:n}),onClick:A=>{A.stopPropagation(),b(A)}})]}),(r||o||l)&&t.jsxs("div",{className:"word-table-button__meta-row",children:[t.jsx("span",{className:"word-table-button__meta caption-1",children:r?ts(r,_):""}),t.jsxs("span",{className:"word-table-button__badges",children:[o&&t.jsx(lt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:s??"\uBC1C\uD589\uB428"}),l&&t.jsx(lt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??"\uACF5\uC720 \uC911"})]})]}),B&&t.jsxs("div",{className:"word-table-button__footer",children:[t.jsxs("span",{className:"word-table-button__store-by",children:[d&&t.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:A=>{A.stopPropagation(),g?.()},children:d}),h&&t.jsx("span",{className:"training-card__date body-4",children:ts(h,_)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[p!=null&&t.jsx(lt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(p)}),m!=null&&t.jsx(lt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(m)})]})]})]})}/**
|
|
969
969
|
* @license lucide-react v1.38.0 - ISC
|
|
970
970
|
*
|
|
971
971
|
* This source code is licensed under the ISC license.
|
|
@@ -975,4 +975,4 @@ ${_.badge}`:_.badge:void 0;if(S&&d(_.code))return null;if(!_.badge&&!u)return h(
|
|
|
975
975
|
*
|
|
976
976
|
* This source code is licensed under the ISC license.
|
|
977
977
|
* See the LICENSE file in the root directory of this source tree.
|
|
978
|
-
*/const N5=[["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"}]],B5=G("circle-x",N5);function S5(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Vr({icon:e,label:n,state:a,pct:r,subText:o}){const{t:s}=pe.useTranslation(),l=a==="done",c=a==="pending",d=a==="error",u=l?100:r??0;return t.jsxs("div",{className:"wdup-phase-card",children:[t.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":d?" wdup-phase-card__icon--error":""}`,children:l?t.jsx(lo,{size:22,color:"white",strokeWidth:2.5}):d?t.jsx(B5,{size:22,color:"white",strokeWidth:2.5}):t.jsx("span",{className:`wdup-phase-card__icon-inner${c?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),t.jsxs("div",{className:"wdup-phase-card__body",children:[t.jsxs("div",{className:"wdup-phase-card__top",children:[t.jsx("span",{className:`wdup-phase-card__label body-2${c?" wdup-phase-card__label--pending":""}`,children:n}),l?t.jsx(lt,{variant:"sub",fill:"soft",size:"small",label:s("common.done","\uC644\uB8CC")}):d?t.jsx(lt,{variant:"danger",fill:"soft",size:"small",label:s("common.failed","\uC2E4\uD328")}):(o||r!==void 0)&&t.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[o,o&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&t.jsx("div",{className:"wdup-bar",children:t.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":d?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||d?`${d?100:u}%`:void 0}})})]})]})}function D5({title:e,progress:n,onDone:a,onRetry:r,inline:o}){const{t:s}=pe.useTranslation(),{phase:l,error:c,wordCount:d,imagePage:u,imageDone:h,imageTotal:p,pairPercent:f}=n,g=S5(l),C=l==="done",m=!!c;function v(x){return m&&g===x?"error":g>x?"done":g===x?"active":"pending"}const b=v(1),w=v(2),_=v(3),y=l==="image-match"&&p?Math.round((h??0)/p*100):void 0,S=i.useMemo(()=>{if(w!=="done"){if(l==="image-list")return s("wordData.checkingPage",{page:u??1});if(l==="image-match"&&p)return s("wordData.imageCount",{done:Za(h),total:Za(p)})}},[w,l,u,p,h,s]);return t.jsx(pn,{inline:o,className:"popup--word-data-update",title:e,footer:m?t.jsx(ne,{size:56,variant:"main",onClick:r,children:s("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):t.jsx(ne,{size:56,variant:"main",disabled:!C,onClick:a,children:s("common.done","\uC644\uB8CC")}),children:t.jsxs("div",{className:"wdup-cards",children:[t.jsx(Vr,{icon:t.jsx(ao,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:s("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:b,subText:b==="active"?s("wordData.downloadingCount",{n:Za(d)}):void 0}),t.jsx(Vr,{icon:t.jsx(A5,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:s("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:w,pct:y,subText:S}),t.jsx(Vr,{icon:t.jsx(so,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:s("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:_,pct:_==="active"?f??0:void 0,subText:void 0})]})})}function j5({enabled:e=!1,renderResultPopup:n}={}){const[a,r]=i.useState(null),[o,s]=i.useState(null),l=f=>{let g=null;f==="noise"?g={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:f==="short"?g={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:f==="long"?g={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:f==="order"&&(g={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),s(g),r(f)},c=i.useCallback(()=>{r(null),s(null)},[]),d=i.useCallback(()=>l("noise"),[]),u=i.useCallback(()=>l("short"),[]),h=i.useCallback(()=>l("long"),[]),p=i.useCallback(()=>l("order"),[]);return e?t.jsxs("div",{className:"debug-result-launcher",children:[t.jsxs("div",{className:"debug-buttons",children:[t.jsx("button",{className:"debug-button",onClick:d,children:"Noise \uACB0\uACFC\uBCF4\uAE30"}),t.jsx("button",{className:"debug-button",onClick:u,children:"ShortStory \uACB0\uACFC\uBCF4\uAE30"}),t.jsx("button",{className:"debug-button",onClick:h,children:"LongStory \uACB0\uACFC\uBCF4\uAE30"}),t.jsx("button",{className:"debug-button",onClick:p,children:"Order \uACB0\uACFC\uBCF4\uAE30"})]}),a&&o?n?.({score:o.score,contextsLength:o.contextsLength,results:o.results,onReplay:c,onClose:c}):null]}):null}exports.Accordion=M0,exports.ActionCard=p0,exports.Alert=WC,exports.AppHeader=O0,exports.AudioMeter=dr,exports.AudioPlayer=jr,exports.Avatar=XC,exports.Badge=lt,exports.BarChart=Mg,exports.BarChartControls=_i,exports.Board=cg,exports.BottomNav=Gs,exports.BrandIdentity=Ys,exports.Breadcrumb=eg,exports.BulkBar=xg,exports.Button=ne,exports.CORE_VERSION=i0,exports.Calendar=Zg,exports.CardStep=Rl,exports.ChartLegend=lr,exports.ChartSection=cr,exports.ChartTotal=ma,exports.Checkbox=gi,exports.ChoiceChips=Y4,exports.CircleBadge=OC,exports.CodeBox=vg,exports.ColorPicker=og,exports.CompanyMeta=fg,exports.ConfirmPopup=n5,exports.ConfirmStep=Ml,exports.ConfirmWithTextStep=Ll,exports.ContrastFilterPanel=e5,exports.CoreScope=h0,exports.CountTile=sg,exports.CouponInputPopup=a5,exports.DatePicker=Ag,exports.DebugResultLauncher=j5,exports.DescriptionTooltip=_n,exports.DeviceSideTable=Ug,exports.Dialog=lg,exports.Divider=HC,exports.Dropdown=Vt,exports.EffectPartyPopper=Vl,exports.EffectPartyPopperHost=i5,exports.EmptyState=u0,exports.ErrorState=d0,exports.FILTER_ALL_VALUE=un,exports.FileUpload=QC,exports.FilterPanel=nn,exports.FilterSectionInfo=Jn,exports.Footer=X4,exports.Header=Xs,exports.Icon=Oe,exports.IconGridMenu=Z4,exports.IconRenderer=Oe,exports.InfoTooltip=cn,exports.LandingBottomSticky=Q4,exports.LandingHeader=J4,exports.ListPopup=t5,exports.ListenStep=Tl,exports.Loader=Qn,exports.MARKS=Pi,exports.MARK_ICON=Fi,exports.MARK_VARIANT=Oi,exports.MediaQueryOverrideContext=Is,exports.MenuTooltip=pa,exports.NoiseSettingsTooltip=Nl,exports.NoticeBox=m0,exports.OrderListStep=$l,exports.PASS_CARD_BG_VARS=wn,exports.POS_LABEL=zi,exports.PROMO_BANNER_BG_COMPONENTS=Rs,exports.PROMO_BANNER_BG_OPTIONS=f0,exports.PROMO_BANNER_BG_VARS=Kn,exports.Page=wa,exports.PageTitle=l5,exports.Pagination=ha,exports.Panel=_a,exports.PanelGrid=Ab,exports.PanelRow=hn,exports.PanelRowDevice=kb,exports.PassCard=ci,exports.PassCardBg=RC,exports.PassCardBgIHAB=PC,exports.PassCardBgLeftColorGrid=IC,exports.PassCardBgTwoCircle=oi,exports.PaymentPlan=$C,exports.PersonCard=ug,exports.PhonemeFilterPanel=Qb,exports.PhonemeSelectBlock=Xb,exports.Popup=pn,exports.ProgressBar=Og,exports.ProgressIndicator=Di,exports.PromoBanner=j0,exports.PromoBannerBgDark=xs,exports.PromoBannerBgDeep=fs,exports.PromoBannerBgDiagonal=As,exports.PromoBannerBgDots=Bs,exports.PromoBannerBgInstagram=$s,exports.PromoBannerBgMain=cs,exports.PromoBannerBgNaver=Ms,exports.PromoBannerBgOutline=Ds,exports.PromoBannerBgRadial=ws,exports.PromoBannerBgSoft=ds,exports.PromoBannerBgSoftSub=gs,exports.PromoBannerBgSub=hs,exports.PromoBannerBgSuccess=Es,exports.PromoBannerBgWarm=ys,exports.PublicationCard=pg,exports.Radio=hi,exports.RadioGroup=VC,exports.Rating=ng,exports.ReportDocument=m5,exports.ReportInfoPanel=f5,exports.RingChart=$g,exports.SENTENCE_TRAINING_TYPES=wr,exports.SearchSummary=GC,exports.Section=Mn,exports.SectionHeader=mg,exports.SegmentedControl=An,exports.ShortcutBadge=pi,exports.SideNav=Zs,exports.Slider=Ni,exports.SoundCompass=FC,exports.SplashLogo=hg,exports.StatChart=Rg,exports.SummaryStrip=p5,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=r5,exports.Table=hr,exports.TableFilterPanel=yr,exports.Tabs=KC,exports.TextBoxTooltip=xa,exports.TextField=kn,exports.Timeline=dg,exports.Toast=Tn,exports.Toggle=Ci,exports.Toolbar=ir,exports.Tooltip=ln,exports.TooltipInfo=cn,exports.TooltipTextBox=xa,exports.TopBanner=E0,exports.TrainingBlock=e4,exports.TrainingBlockButton=mr,exports.TrainingCard=g5,exports.TrainingCardGroup=b5,exports.TrainingPagePopup=mn,exports.TrainingPagePopupBottom=Bl,exports.TrainingPagePopupTitle=Sl,exports.TrainingResultPopup=Il,exports.TrainingStep=Nn,exports.TrainingStepAudioPlayer=jr,exports.TrainingStepBullet=yl,exports.TrainingStepCard=_l,exports.TrainingStepConfirm=Tr,exports.TrainingStepConfirmWithText=Mr,exports.TrainingStepListen=Lr,exports.TrainingStepOrderList=$r,exports.TrainingStepTextBox=xl,exports.TrainingStepTitle=vl,exports.TrainingTooltip=s5,exports.TrainingWordCard=Cr,exports.UpdateAlert=C5,exports.WORD_TABLE_PAPER=$n,exports.WORD_TYPE_LABEL=Wi,exports.WordDataProvider=d5,exports.WordDataUpdatePopup=D5,exports.WordImageTooltip=Ol,exports.WordSearchFilterPanel=Jb,exports.WordSearchResultBlock=Zb,exports.WordTable=Rn,exports.WordTableBlock=_5,exports.WordTableButton=w5,exports.WordTablePopup=w4,exports.WordTableThumbnail=Wl,exports.buildMonthChartData=Bg,exports.cellLabel=S4,exports.cellsForLabels=H4,exports.clearPassCardBgTheme=en,exports.clearPromoBannerBgTheme=yt,exports.closeTrainingPopup=jb,exports.companyTypeLabel=c5,exports.createTrainingScenario=Mb,exports.cx=ye,exports.deriveNoiseContexts=Fb,exports.derivePassCard=ni,exports.draftValues=G4,exports.expandSlashLabel=br,exports.formatDuration=V4,exports.getControlDateRange=Lg,exports.getPayloadTimestamp=Ir,exports.getPromoBannerBgTheme=is,exports.getSelectedFromPayload=$b,exports.getSelectedText=Rb,exports.getStepPayload=jl,exports.getSteppedPayload=Pb,exports.injectPassCardBgTheme=Qt,exports.injectPromoBannerBgTheme=bt,exports.isSelectionCorrect=Ib,exports.labelsForSave=B4,exports.markAfterClick=Ii,exports.marksForSave=gr,exports.missesByType=P4,exports.nextFocus=L4,exports.nextMisses=R4,exports.pageStartIndexes=Hi,exports.passCardBgIhabTheme=ui,exports.passCardBgLeftColorGridTheme=di,exports.passCardBgTwoCircleTheme=ri,exports.printWordTable=c4,exports.promoBannerBgDarkTheme=vs,exports.promoBannerBgDeepTheme=ms,exports.promoBannerBgDiagonalTheme=ks,exports.promoBannerBgDotsTheme=Ns,exports.promoBannerBgInstagramTheme=Ls,exports.promoBannerBgMainTheme=ls,exports.promoBannerBgNaverTheme=Ts,exports.promoBannerBgOutlineTheme=Ss,exports.promoBannerBgRadialTheme=_s,exports.promoBannerBgSoftSubTheme=Cs,exports.promoBannerBgSoftTheme=us,exports.promoBannerBgSubTheme=ps,exports.promoBannerBgSuccessTheme=js,exports.promoBannerBgWarmTheme=bs,exports.recommendTables=F4,exports.regenerateUnpinned=U4,exports.removeItem=q4,exports.resolveTrainingItems=Tb,exports.resolveTrainingPopupMeta=Dl,exports.reviewCells=A4,exports.reviewSetPlan=I4,exports.reviewTableName=N4,exports.scoreKey=Ca,exports.scoreSheetHeader=D4,exports.shouldConfirmDiscard=l4,exports.splitTrainingVariants=Eb,exports.summarize=i4,exports.summarizeMisses=$4,exports.tableTrends=M4,exports.toDraft=z4,exports.toTrainingText=Lb,exports.togglePin=W4,exports.uncoveredLabels=O4,exports.useAnchoredMenu=Zn,exports.useBarChartControl=xi,exports.useCalendarMonth=bi,exports.useComboboxSuggestions=mi,exports.useFitScale=Ui,exports.useSoundCompassExam=D0,exports.useToastLifecycle=Si,exports.useWordData=u5,exports.useWordTableDisplaySettings=sl,exports.useWordTablePrint=_r,exports.weakItems=T4;
|
|
978
|
+
*/const N5=[["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"}]],B5=G("circle-x",N5);function S5(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Vr({icon:e,label:n,state:a,pct:r,subText:o}){const{t:s}=pe.useTranslation(),l=a==="done",c=a==="pending",u=a==="error",d=l?100:r??0;return t.jsxs("div",{className:"wdup-phase-card",children:[t.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":u?" wdup-phase-card__icon--error":""}`,children:l?t.jsx(lo,{size:22,color:"white",strokeWidth:2.5}):u?t.jsx(B5,{size:22,color:"white",strokeWidth:2.5}):t.jsx("span",{className:`wdup-phase-card__icon-inner${c?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),t.jsxs("div",{className:"wdup-phase-card__body",children:[t.jsxs("div",{className:"wdup-phase-card__top",children:[t.jsx("span",{className:`wdup-phase-card__label body-2${c?" wdup-phase-card__label--pending":""}`,children:n}),l?t.jsx(lt,{variant:"sub",fill:"soft",size:"small",label:s("common.done","\uC644\uB8CC")}):u?t.jsx(lt,{variant:"danger",fill:"soft",size:"small",label:s("common.failed","\uC2E4\uD328")}):(o||r!==void 0)&&t.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[o,o&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&t.jsx("div",{className:"wdup-bar",children:t.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":u?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||u?`${u?100:d}%`:void 0}})})]})]})}function D5({title:e,progress:n,onDone:a,onRetry:r,inline:o}){const{t:s}=pe.useTranslation(),{phase:l,error:c,wordCount:u,imagePage:d,imageDone:h,imageTotal:p,pairPercent:m}=n,g=S5(l),C=l==="done",f=!!c;function b(x){return f&&g===x?"error":g>x?"done":g===x?"active":"pending"}const y=b(1),w=b(2),_=b(3),v=l==="image-match"&&p?Math.round((h??0)/p*100):void 0,B=i.useMemo(()=>{if(w!=="done"){if(l==="image-list")return s("wordData.checkingPage",{page:d??1});if(l==="image-match"&&p)return s("wordData.imageCount",{done:Za(h),total:Za(p)})}},[w,l,d,p,h,s]);return t.jsx(pn,{inline:o,className:"popup--word-data-update",title:e,footer:f?t.jsx(ne,{size:56,variant:"main",onClick:r,children:s("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):t.jsx(ne,{size:56,variant:"main",disabled:!C,onClick:a,children:s("common.done","\uC644\uB8CC")}),children:t.jsxs("div",{className:"wdup-cards",children:[t.jsx(Vr,{icon:t.jsx(ao,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:s("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:y,subText:y==="active"?s("wordData.downloadingCount",{n:Za(u)}):void 0}),t.jsx(Vr,{icon:t.jsx(A5,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:s("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:w,pct:v,subText:B}),t.jsx(Vr,{icon:t.jsx(so,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:s("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:_,pct:_==="active"?m??0:void 0,subText:void 0})]})})}function j5({enabled:e=!1,renderResultPopup:n}={}){const[a,r]=i.useState(null),[o,s]=i.useState(null),l=m=>{let g=null;m==="noise"?g={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:m==="short"?g={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:m==="long"?g={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:m==="order"&&(g={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),s(g),r(m)},c=i.useCallback(()=>{r(null),s(null)},[]),u=i.useCallback(()=>l("noise"),[]),d=i.useCallback(()=>l("short"),[]),h=i.useCallback(()=>l("long"),[]),p=i.useCallback(()=>l("order"),[]);return e?t.jsxs("div",{className:"debug-result-launcher",children:[t.jsxs("div",{className:"debug-buttons",children:[t.jsx("button",{className:"debug-button",onClick:u,children:"Noise \uACB0\uACFC\uBCF4\uAE30"}),t.jsx("button",{className:"debug-button",onClick:d,children:"ShortStory \uACB0\uACFC\uBCF4\uAE30"}),t.jsx("button",{className:"debug-button",onClick:h,children:"LongStory \uACB0\uACFC\uBCF4\uAE30"}),t.jsx("button",{className:"debug-button",onClick:p,children:"Order \uACB0\uACFC\uBCF4\uAE30"})]}),a&&o?n?.({score:o.score,contextsLength:o.contextsLength,results:o.results,onReplay:c,onClose:c}):null]}):null}exports.Accordion=M0,exports.ActionCard=p0,exports.Alert=WC,exports.AppHeader=O0,exports.AudioMeter=dr,exports.AudioPlayer=jr,exports.Avatar=XC,exports.Badge=lt,exports.BarChart=Mg,exports.BarChartControls=_i,exports.Board=cg,exports.BottomNav=Gs,exports.BrandIdentity=Ys,exports.Breadcrumb=eg,exports.BulkBar=xg,exports.Button=ne,exports.CORE_VERSION=i0,exports.Calendar=Zg,exports.CardStep=Rl,exports.ChartLegend=lr,exports.ChartSection=cr,exports.ChartTotal=ma,exports.Checkbox=gi,exports.ChoiceChips=Y4,exports.CircleBadge=OC,exports.CodeBox=vg,exports.ColorPicker=og,exports.CompanyMeta=fg,exports.ConfirmPopup=n5,exports.ConfirmStep=Ml,exports.ConfirmWithTextStep=Ll,exports.ContrastFilterPanel=e5,exports.CoreScope=h0,exports.CountTile=sg,exports.CouponInputPopup=a5,exports.DatePicker=Ag,exports.DebugResultLauncher=j5,exports.DescriptionTooltip=_n,exports.DeviceSideTable=Ug,exports.Dialog=lg,exports.Divider=HC,exports.Dropdown=Vt,exports.EffectPartyPopper=Vl,exports.EffectPartyPopperHost=i5,exports.EmptyState=u0,exports.ErrorState=d0,exports.FILTER_ALL_VALUE=un,exports.FileUpload=QC,exports.FilterPanel=nn,exports.FilterSectionInfo=Jn,exports.Footer=X4,exports.Header=Xs,exports.Icon=Oe,exports.IconGridMenu=Z4,exports.IconRenderer=Oe,exports.InfoTooltip=cn,exports.LandingBottomSticky=Q4,exports.LandingHeader=J4,exports.ListPopup=t5,exports.ListenStep=Tl,exports.Loader=Qn,exports.MARKS=Pi,exports.MARK_ICON=Fi,exports.MARK_VARIANT=Oi,exports.MediaQueryOverrideContext=Is,exports.MenuTooltip=pa,exports.NoiseSettingsTooltip=Nl,exports.NoticeBox=m0,exports.OrderListStep=$l,exports.PASS_CARD_BG_VARS=wn,exports.POS_LABEL=zi,exports.PROMO_BANNER_BG_COMPONENTS=Rs,exports.PROMO_BANNER_BG_OPTIONS=f0,exports.PROMO_BANNER_BG_VARS=Kn,exports.Page=wa,exports.PageTitle=l5,exports.Pagination=ha,exports.Panel=_a,exports.PanelGrid=Ab,exports.PanelRow=hn,exports.PanelRowDevice=kb,exports.PassCard=ci,exports.PassCardBg=RC,exports.PassCardBgIHAB=PC,exports.PassCardBgLeftColorGrid=IC,exports.PassCardBgTwoCircle=oi,exports.PaymentPlan=$C,exports.PersonCard=ug,exports.PhonemeFilterPanel=Qb,exports.PhonemeSelectBlock=Xb,exports.Popup=pn,exports.ProgressBar=Og,exports.ProgressIndicator=Di,exports.PromoBanner=j0,exports.PromoBannerBgDark=xs,exports.PromoBannerBgDeep=fs,exports.PromoBannerBgDiagonal=As,exports.PromoBannerBgDots=Bs,exports.PromoBannerBgInstagram=$s,exports.PromoBannerBgMain=cs,exports.PromoBannerBgNaver=Ms,exports.PromoBannerBgOutline=Ds,exports.PromoBannerBgRadial=ws,exports.PromoBannerBgSoft=ds,exports.PromoBannerBgSoftSub=gs,exports.PromoBannerBgSub=hs,exports.PromoBannerBgSuccess=Es,exports.PromoBannerBgWarm=ys,exports.PublicationCard=pg,exports.Radio=hi,exports.RadioGroup=VC,exports.Rating=ng,exports.ReportDocument=m5,exports.ReportInfoPanel=f5,exports.RingChart=$g,exports.SENTENCE_TRAINING_TYPES=wr,exports.SearchSummary=GC,exports.Section=Mn,exports.SectionHeader=mg,exports.SegmentedControl=An,exports.ShortcutBadge=pi,exports.SideNav=Zs,exports.Slider=Ni,exports.SoundCompass=FC,exports.SplashLogo=hg,exports.StatChart=Rg,exports.SummaryStrip=p5,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=r5,exports.Table=hr,exports.TableFilterPanel=yr,exports.Tabs=KC,exports.TextBoxTooltip=xa,exports.TextField=kn,exports.Timeline=dg,exports.Toast=Tn,exports.Toggle=Ci,exports.Toolbar=ir,exports.Tooltip=ln,exports.TooltipInfo=cn,exports.TooltipTextBox=xa,exports.TopBanner=E0,exports.TrainingBlock=e4,exports.TrainingBlockButton=mr,exports.TrainingCard=g5,exports.TrainingCardGroup=b5,exports.TrainingPagePopup=mn,exports.TrainingPagePopupBottom=Bl,exports.TrainingPagePopupTitle=Sl,exports.TrainingResultPopup=Il,exports.TrainingStep=Nn,exports.TrainingStepAudioPlayer=jr,exports.TrainingStepBullet=yl,exports.TrainingStepCard=_l,exports.TrainingStepConfirm=Tr,exports.TrainingStepConfirmWithText=Mr,exports.TrainingStepListen=Lr,exports.TrainingStepOrderList=$r,exports.TrainingStepTextBox=xl,exports.TrainingStepTitle=vl,exports.TrainingTooltip=s5,exports.TrainingWordCard=Cr,exports.UpdateAlert=C5,exports.WORD_TABLE_PAPER=$n,exports.WORD_TYPE_LABEL=Wi,exports.WordDataProvider=d5,exports.WordDataUpdatePopup=D5,exports.WordImageTooltip=Ol,exports.WordSearchFilterPanel=Jb,exports.WordSearchResultBlock=Zb,exports.WordTable=Rn,exports.WordTableBlock=_5,exports.WordTableButton=w5,exports.WordTablePopup=w4,exports.WordTableThumbnail=Wl,exports.buildMonthChartData=Bg,exports.cellLabel=S4,exports.cellsForLabels=H4,exports.clearPassCardBgTheme=en,exports.clearPromoBannerBgTheme=yt,exports.closeTrainingPopup=jb,exports.companyTypeLabel=c5,exports.createTrainingScenario=Mb,exports.cx=ye,exports.deriveNoiseContexts=Fb,exports.derivePassCard=ni,exports.draftValues=G4,exports.expandSlashLabel=br,exports.formatDuration=V4,exports.getControlDateRange=Lg,exports.getPayloadTimestamp=Ir,exports.getPromoBannerBgTheme=is,exports.getSelectedFromPayload=$b,exports.getSelectedText=Rb,exports.getStepPayload=jl,exports.getSteppedPayload=Pb,exports.injectPassCardBgTheme=Qt,exports.injectPromoBannerBgTheme=bt,exports.isSelectionCorrect=Ib,exports.labelsForSave=B4,exports.markAfterClick=Ii,exports.marksForSave=gr,exports.missesByType=P4,exports.nextFocus=L4,exports.nextMisses=R4,exports.pageStartIndexes=Hi,exports.passCardBgIhabTheme=ui,exports.passCardBgLeftColorGridTheme=di,exports.passCardBgTwoCircleTheme=ri,exports.printWordTable=c4,exports.promoBannerBgDarkTheme=vs,exports.promoBannerBgDeepTheme=ms,exports.promoBannerBgDiagonalTheme=ks,exports.promoBannerBgDotsTheme=Ns,exports.promoBannerBgInstagramTheme=Ls,exports.promoBannerBgMainTheme=ls,exports.promoBannerBgNaverTheme=Ts,exports.promoBannerBgOutlineTheme=Ss,exports.promoBannerBgRadialTheme=_s,exports.promoBannerBgSoftSubTheme=Cs,exports.promoBannerBgSoftTheme=us,exports.promoBannerBgSubTheme=ps,exports.promoBannerBgSuccessTheme=js,exports.promoBannerBgWarmTheme=bs,exports.recommendTables=F4,exports.regenerateUnpinned=U4,exports.removeItem=q4,exports.resolveTrainingItems=Tb,exports.resolveTrainingPopupMeta=Dl,exports.reviewCells=A4,exports.reviewSetPlan=I4,exports.reviewTableName=N4,exports.scoreKey=Ca,exports.scoreSheetHeader=D4,exports.shouldConfirmDiscard=l4,exports.splitTrainingVariants=Eb,exports.summarize=i4,exports.summarizeMisses=$4,exports.tableTrends=M4,exports.toDraft=z4,exports.toTrainingText=Lb,exports.togglePin=W4,exports.uncoveredLabels=O4,exports.useAnchoredMenu=Zn,exports.useBarChartControl=xi,exports.useCalendarMonth=bi,exports.useComboboxSuggestions=mi,exports.useFitScale=Ui,exports.useSoundCompassExam=D0,exports.useToastLifecycle=Si,exports.useWordData=u5,exports.useWordTableDisplaySettings=sl,exports.useWordTablePrint=_r,exports.weakItems=T4;
|